PR symtab/14601
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
aa14df25
DE
12012-10-03 Doug Evans <dje@google.com>
2
3 PR symtab/14601
4 * buildsym.c (buildsym_init): Reset using_directives to NULL.
5
3d468296
AB
62012-10-02 Andrew Burgess <aburgess@broadcom.com>
7
8 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
9 output and use uint32_t not long to ensure 4 byte size.
10
8f0ee2eb
JB
112012-10-02 Joel Brobecker <brobecker@adacore.com>
12
13 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
14 unref'ed it.
15
b3dc46ff
AB
162012-10-01 Andrew Burgess <aburgess@broadcom.com>
17
18 * target.c (simple_search_memory): Include access length in
19 warning message.
20
f712f01f
EBM
212012-09-28 Nathan Miller <nathanm2@us.ibm.com>
22 Edjunior Machado <emachado@linux.vnet.ibm.com>
23
24 PR gdb/13989
25 * solib.c (solib_find): Prevent GDB from loading native libraries when
26 debugging a cross-target corefile.
27
39181896
PA
282012-09-28 selven <pcthegreat@gmail.com>
29
30 Make definition match declaration.
31
32 * regcache.c (regcache_register_status): Change return type to
33 enum register_status.
34
4c2786ba
YQ
352012-09-28 Yao Qi <yao@codesourcery.com>
36
37 * mi/mi-main.c (mi_cmd_data_write_memory): Call
38 write_memory_with_notification instead of write_memory.
39 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
40 instead of target_write_memory.
41
1ae0c35e
YQ
422012-09-28 Yao Qi <yao@codesourcery.com>
43
44 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
45 when the length of content is not an even number.
46
7977e5d2
TT
472012-09-27 Tom Tromey <tromey@redhat.com>
48
49 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
50 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
51
807160da
JB
522012-09-27 Joel Brobecker <brobecker@adacore.com>
53
54 * sol-thread.c (sol_thread_fetch_registers)
55 (sol_thread_store_registers): Delete commented out code.
56
43c75337
JB
572012-09-27 Joel Brobecker <brobecker@adacore.com>
58
59 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
60 Move these functions to sparc-sol-thread.c.
61 * sparc-sol-thread.c: New file.
62 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
63 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
64 configurations.
65 * configure: Regenerate.
66
d292a972
JB
672012-09-27 Joel Brobecker <brobecker@adacore.com>
68
69 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
70 Remove commented-out code.
71
8c3da003
JB
722012-09-27 Joel Brobecker <brobecker@adacore.com>
73
74 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
75 Enable this code for sparc hosts only.
76
f00482b6
JB
772012-09-27 Joel Brobecker <brobecker@adacore.com>
78
79 * procfs.h (procfs_find_LDT_entry): Add declaration.
80 * sol-thread.c (ps_lgetLDT): Delete local declaration of
81 function procfs_find_LDT_entry.
82
337c776f
JB
832012-09-27 Joel Brobecker <brobecker@adacore.com>
84
85 * procfs.c (proc_get_LDT_entry): Make static.
86
1a04d88f
JB
872012-09-27 Joel Brobecker <brobecker@adacore.com>
88
89 * procfs.c (proc_find_memory_regions): Fix declaration.
90
bad43aa5
SP
912012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
92
93 * amd64-tdep.c (amd64_return_value): Revert previous change
94 that used TYPE_LENGTH directly.
95 * bfin-tdep.c (bfin_extract_return_value): Likewise.
96 (bfin_store_return_value): Likewise.
97 * cris-tdep.c (cris_store_return_value): Likewise.
98 (cris_extract_return_value): Likewise.
99 * h8300-tdep.c (h8300_extract_return_value): Likewise.
100 * hppa-tdep.c (hppa64_return_value): Likewise.
101 * lm32-tdep.c (lm32_store_return_value): Likewise.
102 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
103 * spu-tdep.c (spu_value_from_register): Likewise.
104 * vax-tdep.c (vax_return_value): Likewise.
105
63375b74
SP
1062012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
107
108 * gdbtypes.c (lookup_array_range_type): Expand parameters
109 LOW_BOUND and HIGH_BOUND to LONGEST.
110 (lookup_string_range_type): Likewise.
111 * gdbtypes.h (lookup_array_range_type): Likewise.
112 (lookup_string_range_type): Likewise.
113 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
114 Expand HIGHBOUND to ssize_t.
115 (value_string): Likewise.
116 * value.h (value_cstring): Expand parameter LEN to ssize_t.
117 (value_string): Likewise.
118
19ca11c5
YQ
1192012-09-27 Yao Qi <yao@codesourcery.com>
120
121 PR breakpoints/13898
122 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
123 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
124 per breakpoint type.
125
92107356
PM
1262012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
127
128 * procfs.c: Add gdb_bfd header.
129 * rs6000-nat.c: Likewise.
130 * solib-pa64.c: Likewise.
131 * spu-linux-nat.c: Likewise.
132 * windows-nat.c: Likewise.
133
9742094a
TT
1342012-09-26 Tom Tromey <tromey@redhat.com>
135
136 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
137
0971de02
TT
1382012-09-26 Tom Tromey <tromey@redhat.com>
139
140 * dwarf2read.c (mark_common_block_symbol_computed): New function.
141 (read_common_block): Handle child DIEs with
142 DW_AT_data_member_location.
143 (new_symbol_full): Add special case for common blocks.
144
4357ac6c
TT
1452012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
146 Tom Tromey <tromey@redhat.com>
147
148 * dwarf2read.c (read_common_block): Rewrite.
149 (new_symbol_full): Handle DW_TAG_common_block.
150 * f-lang.c (head_common_list, find_common_for_function):
151 Remove.
152 * f-lang.h (struct common_entry, struct saved_f77_common,
153 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
154 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
155 BLANK_COMMON_NAME_LOCAL): Remove.
156 (struct common_block): New.
157 * f-valprint.c (list_all_visible_commons): Remove.
158 (info_common_command_for_block): New function.
159 (info_common_command): Use it.
160 * stack.c (iterate_over_block_locals): Special case for
161 COMMON_BLOCK_DOMAIN.
162 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
163 constant.
164 (struct general_symbol_info) <value.common_block>: New field.
165 (SYMBOL_VALUE_COMMON_BLOCK): New define.
166
965f07a8
TT
1672012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
168 Tom Tromey <tromey@redhat.com>
169
170 * f-lang.c (allocate_saved_bf_node,
171 allocate_saved_function_node, allocate_saved_f77_common_node,
172 allocate_common_entry_node, tail_common_list, current_common,
173 saved_bf_list, saved_bf_list_end, current_head_bf_list,
174 tmp_bf_ptr, add_common_block, add_common_entry,
175 find_first_common_named, patch_common_entries,
176 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
177 global_remote_debug, get_bf_for_fcn, saved_function_list,
178 saved_function_list_end, clear_function_list, struct saved_fcn,
179 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
180 SAVED_BF, SAVED_BF_PTR): Remove.
181 * f-lang.h (tail_common_list, current_common,
182 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
183 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
184 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
185 real_main_c_value): Remove.
186 * f-valprint.c (there_is_a_visible_common_named): Remove.
187
6f380991
AB
1882012-09-26 Andrew Burgess <aburgess@broadcom.com>
189
190 * breakpoint.c (update_global_location_list): Ignore previous
191 duplicate status of a breakpoint when starting a new scan for
192 duplicate breakpoints.
193
9ead7ae4 1942012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 195 PR breakpoints/14419
2536b51c
YQ
196 * arm-tdep.c (arm_skip_prologue): Extending producer check to
197 support LLVM compiler.
9ead7ae4 198
8f8a23a2
SP
1992012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
200
201 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
202 * bfin-tdep.c (bfin_extract_return_value): Likewise.
203 (bfin_store_return_value): Likewise.
204 * cris-tdep.c (cris_store_return_value): Likewise.
205 (cris_extract_return_value): Likewise.
206 * h8300-tdep.c (h8300_extract_return_value): Likewise.
207 * hppa-tdep.c (hppa64_return_value): Likewise.
208 * lm32-tdep.c (lm32_store_return_value): Likewise.
209 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
210 * spu-tdep.c (spu_value_from_register): Likewise.
211 * vax-tdep.c (vax_return_value): Likewise.
212
d7019589
SP
2132012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
214
215 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
216 parameter LEN to ssize_t.
217
744a8059
SP
2182012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
219
220 * ada-valprint.c (ada_val_print_1): Eliminate single-use
221 variable LEN.
222 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
223 directly.
224 (alpha_store_return_value): Likewise.
225 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
226 (amd64_push_arguments): Likewise.
227 * ax-gdb.c (gen_trace_static_fields): Likewise.
228 (gen_traced_pop): Likewise.
229 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
230 * breakpoint.c (update_watchpoint): Likewise.
231 * findcmd.c (parse_find_args): Use local variable for type
232 instead of length.
233 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
234 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
235 (h8300_store_return_value): Likewise.
236 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
237 Use i386_darwin_arg_type_alignment directly.
238 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
239 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
240 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
241 (m68hc11_extract_return_value): Likewise.
242 * mep-tdep.c (mep_push_dummy_call): Likewise.
243 * printcmd.c (float_type_from_length): Likewise.
244 * s390-tdep.c (s390_value_from_register): Likewise.
245 * stack.c (read_frame_arg): Likewise.
246 * tracepoint.c (encode_actions_1): Likewise.
247 * valops.c (value_fetch_lazy): Use local variable for type
248 instead of length. Use TYPE_LENGTH directly.
249 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
250
a4b411d6
JB
2512012-09-25 Joel Brobecker <brobecker@adacore.com>
252
253 * symtab.c (skip_prologue_sal): Fix typo in comment.
254
11dba07a
JB
2552012-09-25 Joel Brobecker <brobecker@adacore.com>
256
257 * linespec.c (create_sals_line_offset): Fix typo in comment.
258
318102b9
SP
2592012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
260
261 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
262 use plongest to print the array size.
263
b4aa388a
SP
2642012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
265
266 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
267 * p-valprint.c (pascal_type_print_base): Likewise.
268
84cebc4a
YQ
2692012-09-22 Yao Qi <yao@codesourcery.com>
270
271 * remote.c (remote_get_trace_status): Remove setting default
272 values of fields of 'ts'.
273
04e7407c
JK
2742012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
275
276 Fix internal error on canonicalization of clang types.
277 * cp-name-parser.y (operator): New comment at make_operator call for
278 new, delete, new[] and delete[].
279 (exp): Use "sizeof ". Add new comment at make_operator call.
280
9bf4bce9
JK
2812012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
282
283 Fix disassemble without parameters in tailcall frame.
284 * cli/cli-cmds.c (disassemble_current_function): Use
285 get_frame_address_in_block.
286
1c5b7826
TT
2872012-09-21 Tom Tromey <tromey@redhat.com>
288
289 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
290 TYPE_CODE_UNION>: Unify, removing a goto.
291
62a49610
TT
2922012-09-21 Tom Tromey <tromey@redhat.com>
293
294 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
295
2603f7ee
AB
2962012-09-21 Andrew Burgess <aburgess@broadcom.com>
297
298 * findvar.c (read_frame_register_value): Mark the result value as
299 optimized out if any of the input registers have been optimized out.
300
810849a3
AS
3012012-09-21 Andreas Schwab <schwab@linux-m68k.org>
302
303 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
304
0953dec1
SP
3052012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
306
307 * eval.c (evaluate_subexp_standard): Eliminate single-use
308 variable LOWER.
309
82a90ccf
YQ
3102012-09-21 Yao Qi <yao@codesourcery.com>
311
312 * mi/mi-interp.c: Declare mi_record_changed.
313 (mi_interpreter_init): Call observer_attach_record_changed.
314 (mi_record_changed): New.
315 * record.c (record_open): Call observer_notify_record_changed.
316 (cmd_record_stop): Call observer_notify_record_changed.
317 * NEWS: Mention it.
318
d7de8e3c
TT
3192012-09-20 Tom Tromey <tromey@redhat.com>
320
321 * NEWS: Update.
322 * python/python.c (finalize_python): New function.
323 (_initialize_python): Make a final cleanup.
324
43c7c83d
DE
3252012-09-19 Doug Evans <dje@google.com>
326
327 * buildsym.h (param_symbols): Delete, unused.
328 (context_stack): Delete member "params", unused.
329 * buildsym.c (push_context): Update.
330 * dwarf2read.c (read_func_scope): Update.
331
aa9259cc
TS
3322012-09-19 Thomas Schwinge <thomas@codesourcery.com>
333
a6521d9a
TS
334 * sh-tdep.c (sh_register_convert_to_virtual)
335 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
336 all callers. Just do a memcpy if not the little-endian case.
337
f92589cb
TS
338 * h8300-tdep.c (h8300_gdbarch_init): Invoke
339 set_gdbarch_double_format and set_gdbarch_long_double_format.
340 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
341 set_gdbarch_double_format.
342 * sh-tdep.c (sh_gdbarch_init): Likewise.
343
aa9259cc
TS
344 * NEWS: Document the removal of SH's 'regs' command.
345 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
346 command.
347
c1d780c2
SDJ
3482012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
349
350 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
351 `jump'.
352
4ae24af0
JB
3532012-09-18 Joel Brobecker <brobecker@adacore.com>
354
355 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
356 language when iterating over symbols.
357
bb25a15c
YQ
3582012-09-18 Yao Qi <yao@codesourcery.com>
359
360 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
361 (mi_interpreter_init): Call observer_attach_tsv_created and
362 observer_attach_tsv_deleted.
363 (mi_tsv_created, mi_tsv_deleted): New.
364 * tracepoint.c (delete_trace_state_variable): Call
365 observer_notify_tsv_deleted.
366 (trace_variable_command): Call observer_notify_tsv_created.
367 (delete_trace_variable_command): Call
368 observer_notify_tsv_deleted.
369 (create_tsv_from_upload): Call observer_notify_tsv_created.
370 * NEWS: Mention it.
371
201b4506
YQ
3722012-09-18 Yao Qi <yao@codesourcery.com>
373
374 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
375 if traceframe changed.
376 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
377 "trace-find".
378 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
379 (mi_interpreter_init): Hook mi_traceframe_changed to observer
380 'traceframe_changed'.
381 (mi_traceframe_changed): New.
382 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
383 New field.
384 * NEWS: Mention the new MI notification.
385
eaeb12db
MW
3862012-09-17 Mike Wrighton <wrighton@codesourcery.com>
387
388 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
389
6e3c039e
JK
3902012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
393 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
394 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
395 Extend code also for PaX support. Convert all gdb_assert to warning
396 calls.
397
9a950c7c
JK
3982012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
399
400 Implement auto-load user conveniences suggested by Doug Evans.
401 * auto-load.c: Include top.h.
402 (file_is_auto_load_safe): New variable advice_printed. Print advice.
403 (_initialize_auto_load): New variable scripts_directory_help. Mention
404 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
405 scripts-directory. Document in online help one can use also files for
406 set auto-load safe-path.
407 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
408 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
409
deec9a9d
SP
4102012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
411
412 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
413 of LEN.
414
354ecfd5
SP
4152012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
416
417 * m2-valprint.c (m2_print_array_contents): Eliminate variable
418 ELTLEN and use TYPE_LENGTH directly.
419 (m2_val_print): Likewise.
420 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
421 variable LEN and use TYPE_LENGTH directly.
422 (m68k_svr4_store_return_value): Likewise.
423 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
424 ARGLEN and use TYPE_LENGTH directly.
425 (mips_o64_push_dummy_call): Likewise.
426 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
427 variable LENGTH and use TYPE_LENGTH directly.
428 (s390_function_arg_float): Likewise.
429 (s390_function_arg_integer): Likewise.
430 (s390_push_dummy_call): Likewise.
431 (s390_return_value_convention): Likewise.
432 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
433 TYPE_LENGTH directly.
434
6fc1c773
YQ
4352012-09-17 Yao Qi <yao@codesourcery.com>
436
437 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
438 Update comment to add_setshow_integer_cmd.
439 * cli/cli-setshow.c (do_set_command): Handle case
440 'var_zuinteger_unlimited'.
441 (do_show_command): Likewise.
442 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
443 for command 'remotetimeout'.
444 * command.h (enum var_types): New zuinteger_unlimited. Update comment
445 to var_integer.
446 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
447 for command 'set listsize'.
448
6acef6cd
SP
4492012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
450
451 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
452 variable LEN.
453
1ab3b62c
JK
4542012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
455
456 PR 14119
457 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
458 (frame_pop): Drop also TAILCALL_FRAME frames.
459 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
460
acf9414f
JK
4612012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
462 Pedro Alves <palves@redhat.com>
463
464 PR 14548
465 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
466 function start if we are already at function start. Both for
467 reverse-next and for reverse-step into function without line number
468 info.
469
193facb3
JK
4702012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
471
472 Code cleanup - rename 'inline' depth to 'artificial' depth.
473 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
474 frame_id_artificial_p, extend the comment.
475 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
476 * frame.c (fprint_frame_id): Rename at a user, change debug output
477 text to "artificial=".
478 (skip_inlined_frames): Rename to ...
479 (skip_artificial_frames): ... here. Extend the comment.
480 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
481 (frame_id_inlined_p): Rename to ...
482 (frame_id_artificial_p): ... here. Rename at a user.
483 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
484 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
485 at a user.
486 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
487 Extend the comment.
488 (frame_id_inlined_p): Rename to ...
489 (frame_id_artificial_p): ... here.
490 * inline-frame.c (inline_frame_this_id): Rename at a user.
491
42056501
AB
4922012-09-14 Andrew Burgess <aburgess@broadcom.com>
493
494 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
495 vector variables using vector_size syntax rather than array
496 syntax.
497
84c47588
SP
4982012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
499
500 * valarith.c (value_concat): Replace unsafe ALLOCA with
501 XMALLOC/XFREE.
502
f4045bcb
PA
5032012-09-14 Pedro Alves <palves@redhat.com>
504
505 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
506
63b46266
YPK
5072012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
508
509 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
510 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
511 data-directory as appropriate.
512
ddd7a8e7
SP
5132012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
514
515 * printcmd.c (ui_printf): Eliminate single-use variable
516 PARAM_LEN.
517
d649a38e
YQ
5182012-09-14 Yao Qi <yao@codesourcery.com>
519 Pedro Alves <palves@redhat.com>
520
521 * valops.c (value_assign): Move observer_notify_target_changed
522 below to replace reinit_frame_cache.
523
b9516fa1
YPK
5242012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
525
526 Refactor Python "gdb" module into a proper Python package, by
527 introducing a new "_gdb" module for code implemented in C, and
528 using reload/__import__ instead of exec.
529 * python/lib/gdb/__init__.py: Import * from _gdb.
530 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
531 prompt_hook, sys.argv): Moved from finish_python_initialization.
532 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
533 (packages, auto_load_packages): New list and function replacing
534 module_dict and auto-loading code, using __file__ instead of
535 gdb.PYTHONDIR and reload/__import__ instead of exec.
536 (GdbSetPythonDirectory): Replacing function of the same name
537 from finish_python_initialization, using reload/__import__ instead
538 of exec, as well as call auto_load_packages.
539 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
540 gdb_python_module and not gdb_module.
541 * python/python-internal.h (gdb_python_module): Declare.
542 * python/python.c (gdb_python_module): New global.
543 (before_prompt_hook): Check gdb_python_module and not gdb_module.
544 (_initialize_python): Rename gdb module to _gdb.
545 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
546 (finish_python_initialization): Move Python code to
547 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
548 __main__.
549
aa0fbdd8
PA
5502012-09-13 Pedro Alves <palves@redhat.com>
551
552 * Makefile.in (COMMON_OBS): Add registry.o.
553 * registry.c: New file.
554 * registry.h (struct registry_container): Declare.
555 (registry_data_callback): New typedef.
556 (struct registry_data, struct registry_data_registration, struct
557 registry_data_registry): New type.
558 (register_data_with_cleanup, registry_alloc_data)
559 (registry_callback_adaptor, registry_clear_data)
560 (registry_container_free_data, registry_set_data, registry_data):
561 Declare.
562 (DEFINE_REGISTRY): Refactor structures and functions as shims over
563 the new common structures and functions.
564 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
565 callback typedefs.
566
42b5c53d
MW
5672012-09-12 Mike Wrighton <wrighton@codesourcery.com>
568
569 * remote.c (remote_insert_hw_breakpoint): Throw exception if
570 there is an error inserting hardware breakpoints and use the
571 error message from the target.
572
573 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
574 Catch this exception and print the error message contained within. Do not
575 print the default hardware error breakpoint message in this case.
576
a1b64ce1
DE
5772012-09-12 Doug Evans <dje@google.com>
578
579 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
580 cu == NULL.
581
83a788b8
DE
5822012-09-11 Doug Evans <dje@google.com>
583
584 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
585 .gdb_index symbol attributes if there are none.
586
d9eaeb59
JB
5872012-09-11 Joel Brobecker <brobecker@adacore.com>
588
589 * symtab.h (struct minimal_symbol) [has_size]: New field.
590 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
591 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
592 * printcmd.c (build_address_symbolic): Only filter out zero-sized
593 minimal symbols if the symbol's size is actually known.
594 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
595 of msymbol's size field. Add comment.
596 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
597 SET_MSYMBOL_SIZE to set the minimal symbol size.
598
a83e9154
JB
5992012-09-11 Joel Brobecker <brobecker@adacore.com>
600
601 * minsyms.c (install_minimal_symbols): Use memset to fill entire
602 minimal_symbol struct object, rather than setting some of its
603 fields one by one.
604
350b1b26
AB
6052012-09-11 Andrew Burgess <aburgess@broadcom.com>
606
607 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
608 passed_a_ptr flag when displaying typedef types.
609
2fa15f23
JB
6102012-09-10 Joel Brobecker <brobecker@adacore.com>
611
612 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
613 the optimized_out flag is preserved.
614
5152ff90
AG
6152012-09-10 Anthony Green <green@moxielogic.com>
616
617 * moxie-tdep.c (moxie_analyze_prologue): Update for function
618 prologue changes in GCC.
619
5b4f6e25
KS
6202012-09-10 Keith Seitz <keiths@redhat.com>
621
622 PR gdb/13483
623 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
624 (BOOL_CONVERSION_BADNESS): ... this.
625 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
626 (rank_one_type): Allow all boolean conversions
627 permitted by the standard.
628
f1070426
TT
6292012-09-06 Tom Tromey <tromey@redhat.com>
630
631 * python/py-newobjfileevent.c (create_new_objfile_event_object):
632 Don't decref py_objfile.
633
a8db4212
YPK
6342012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
635
636 Do not enable -lmcheck by default when Python is enabled with
637 threading support.
638 * configure.ac: (python_has_threads) New variable, by testing
639 if WITH_THREAD is defined in Python.h.
640 Move --enable-lmcheck after --with-python.
641 Do not enable -lmcheck by default if python_has_threads=yes.
642 Warn if --enable-lmcheck and python_has_threads=yes.
643 * configure: Regenerate.
644
648beb2b
YQ
6452012-08-31 Yao Qi <yao@codesourcery.com>
646
647 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
648 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
649 Update some commands.
650 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
651 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
652 to 1.
653
ef07a9f7
YQ
6542012-08-31 Yao Qi <yao@codesourcery.com>
655
656 * mi/mi-cmds.c (mi_cmds): Add 'static'.
657
fda395cf
YPK
6582012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
659
660 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
661
8efd8e78
DE
6622012-08-29 Doug Evans <dje@google.com>
663
664 * main.c (print_gdb_help): Remove reference to
665 --use-deprecated-index-sections.
666
883b9c6c
YQ
6672012-08-28 Yao Qi <yao@codesourcery.com>
668
669 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
670 (init_cmds): Call add_setshow_uinteger_cmd for command
671 'max-user-call-depth'.
672 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
673 declaration of 'max_user_call_depth'.
674 * frame.c (backtrace_limit): Add 'unsigned'.
675 (_initialize_frame): Call add_setshow_uinteger_cmd for command
676 'limit'.
677 * remote.c (remoteaddresssize): Add 'unsigned'.
678 (remote_address_masked): Change local var 'address_size' to
679 'unsigned'.
680 (_initialize_remote): Call add_setshow_uinteger_cmd for
681 'remoteaddresssize'.
682 * top.c (history_size): Add 'unsigned'.
683 (show_commands): Change local variables to 'unsigned'.
684 (set_history_size_command): Don't check history_size is negative.
685 Adjust the condition to call unstifle_history and set history_size
686 to UNIT_MAX.
687
1292279a
PA
6882012-08-28 Pedro Alves <palves@redhat.com>
689
690 PR gdb/14428
691
692 * infcmd.c (default_print_one_register_info): New, factored out
693 from default_print_registers_info.
694 (default_print_registers_info): Use it. Mark value unavailable if
695 necessary.
696 (registers_info): Print user registers with
697 default_print_one_register_info.
698
f629cd75
L
6992010-08-27 H.J. Lu <hongjiu.lu@intel.com>
700
701 PR tui/14486
702 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
703 is not NULL before referencing it.
704
1c8cdcb1
JK
7052012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
706
707 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
708 variable pc. Call find_pc_line instead of find_pc_overlay, restore
709 original PC for it.
710
e9687799
JK
7112012-08-27 Eli Zaretskii <eliz@gnu.org>
712 Jan Kratochvil <jan.kratochvil@redhat.com>
713
714 * auto-load.c (auto_load_objfile_script): Rename to ...
715 (auto_load_objfile_script_1): ... here, change variable realname to
716 parameter realname, document it, add return value, add variable retval.
717 (auto_load_objfile_script): New function.
718
7afa1642
JK
7192012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
720
721 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
722 followed by a whitespace.
723
dc7650b8
JK
7242012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
725
28e66c70 726 PR gdb/14494.
dc7650b8
JK
727 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
728 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
729 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
730 here.
731
1591a1e8
PA
7322012-08-27 Wei-cheng Wang <cole945@gmail.com>
733
734 * memattr.c (create_mem_region): Fix memory region overlapping
735 checking.
736
ecfb0d68
SP
7372012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
738
739 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
740 with xmalloc/cleanup.
741 * mt-tdep.c (mt_push_dummy_call): Likewise.
742 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
743 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
744
8c56c1b9
YQ
7452012-08-24 Yao Qi <yao@codesourcery.com>
746
747 * jv-exp.y (push_expression_name): Add "." at the end of error
748 message.
749
e3480f4a
YPK
7502012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
751
752 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
753 * python/python.c (_initialize_python): Update documentation.
754
dfbd5e7b
PA
7552012-08-23 Pedro Alves <palves@redhat.com>
756
757 * infrun.c (_initialize_infrun) <handle command help text>:
758 Mention that multiple signals are supported.
759
2edda2ff
PA
7602012-08-23 Pedro Alves <palves@redhat.com>
761
762 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
763 string.
764
8d735b87
YQ
7652012-08-23 Yao Qi <yao@codesourcery.com>
766
767 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
768 (tfind_1): Don't call registers_changed, set_traceframe_num,
769 and clear_traceframe_info.
770 Call set_current_traceframe.
771 (set_current_traceframe): call set_traceframe_num.
772
c5d9b215
SDJ
7732012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
774
775 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
776 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
777
037bbc8e
YPK
7782012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
779
780 Enable readline in Python in a GDB-specific way and block the
781 standard Python readline module to prevent conflicts with GDB.
782 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
783 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
784 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
785 * python/py-gdb-readline.c: New file.
786 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
787 prototype.
788 * python/python.c (_initialize_python): Call
789 gdbpy_initialize_gdb_readline.
790
406b1477
KS
7912012-08-22 Keith Seitz <keiths@redhat.com>
792
793 * defs.h: Include build-gnulib/config.h
794
6ca1b147
JM
7952012-08-22 Joseph Myers <joseph@codesourcery.com>
796
797 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
798 and blx pc.
799
8315665e
YPK
8002012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
801
802 Add a new "python-interactive" command that starts a standard
803 Python interactive prompt with "pi" as alias, and add "py" as
804 an alias to "python".
805 * NEWS: Mention the new commands.
8315665e
YPK
806 * python/python.c (eval_python_command): New function.
807 (python_interactive_command): For "python-interactive" with
808 arguments, call eval_python_command. For "python-interactive"
809 without arguments, call PyRun_InteractiveLoop.
810 (_initialize_python): Add "python-interactive" command with
811 "pi" as alias, and add "py" as an alias to "python".
812
522002f9
TT
8132012-08-22 Tom Tromey <tromey@redhat.com>
814
815 * defs.h (quit_flag): Don't declare.
816 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
817 (QUIT): Use new functions.
818 * event-top.c (command_handler): Use clear_quit_flag.
819 (handle_sigint): Use set_quit_flag.
820 (async_request_quit): Use check_quit_flag. Don't check
821 immediate_quit.
822 * exceptions.c (throw_exception): Use clear_quit_flag.
823 * main.c (captured_main): Use clear_quit_flag.
824 * python/python.c (clear_quit_flag, set_quit_flag)
825 (check_quit_flag): New functions.
826 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
827 clear_quit_flag.
828 * remote.c (remote_wait_as): Use check_quit_flag,
829 clear_quit_flag.
830 (remote_start_remote): Call QUIT.
831 * symfile.c (load_progress): Use check_quit_flag.
832 * top.c (command_loop): Use clear_quit_flag.
833 (command_line_input): Call QUIT.
834 * utils.c (quit_flag): Conditionally define.
835 (clear_quit_flag, check_quit_flag, set_quit_flag): New
836 functions.
837 (prompt_for_continue): Call QUIT. Use quit, not
838 async_request_quit.
839 * remote-mips.c (mips_expect_timeout): Call QUIT.
840 * monitor.c (monitor_expect): Call QUIT.
841
b583003e
TT
8422012-08-22 Tom Tromey <tromey@redhat.com>
843
844 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
845 (async_init_signals): Update.
846 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
847 (SIGWINCH_HANDLER_BODY): Remove.
848
e1507e95
TT
8492012-08-22 Tom Tromey <tromey@redhat.com>
850
851 * jit.c (jit_object_close_impl): Don't malloc the objfile
852 name.
853 * objfiles.c (allocate_objfile): Don't malloc the objfile
854 name.
855 (free_objfile): Don't free the objfile name.
856 * objfiles.h (struct objfile) <name>: Update comment.
857 * symfile.c (reread_symbols): Fix reference counting. Don't
858 malloc objfile name.
859
1c00ec6b
TT
8602012-08-22 Tom Tromey <tromey@redhat.com>
861
862 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
863 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
864 (symfile_bfd_open): Likewise.
865 (generic_load): Likewise.
866 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
867 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
868 gdb_bfd_open.
869 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
870 Use gdb_bfd_open.
871 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
872 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
873 (pmon_load_fast): Likewise.
874 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
875 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
876 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
877 (macho_check_dsym): Likewise.
878 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
879 (m32r_upload_command): Likewise.
880 * gdb_bfd.h (gdb_bfd_cache): Declare.
881 * gdb_bfd.c (struct gdb_bfd_data): New.
882 (gdb_bfd_cache): New global.
883 (struct gdb_bfd_cache_search): New.
884 (hash_bfd): New function.
885 (eq_bfd): Likewise.
886 (gdb_bfd_open): Likewise.
887 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
888 (gdb_bfd_unref): Remove closed BFD from cache. Update for
889 gdb_bfd_data.
890 * exec.c (exec_file_attach): Use gdb_bfd_open.
891 * dsrec.c (load_srec): Use gdb_bfd_open.
892
6532ff36
TT
8932012-08-22 Tom Tromey <tromey@redhat.com>
894
895 * dwarf2read.c (macro_start_file): Update.
896 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
897 (free_objfile_per_bfd_storage): Destroy macro_cache.
898 (allocate_objfile, free_objfile): Update.
899 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
900 New field.
901 (struct objfile) <macro_cache>: Remove.
902 * symfile.c (reread_symbols): Update.
903 * symmisc.c (print_symbol_bcache_statistics): Update.
904 (print_objfile_statistics): Update.
905
706e3705
TT
9062012-08-22 Tom Tromey <tromey@redhat.com>
907
908 * elfread.c (elf_symtab_read): Update.
909 * objfiles.c (objfiles_bfd_data): New global.
910 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
911 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
912 (allocate_objfile, free_objfile): Update.
913 (_initialize_objfiles): Initialize objfiles_bfd_data.
914 * objfiles.h (struct objfile_per_bfd_storage): New.
915 (struct objfile) <per_bfd>: New field.
916 <filename_cache>: Remove.
917 (set_objfile_per_bfd): Declare.
918 * symfile.c (reread_symbols): Update. Call
919 set_objfile_per_bfd.
920 (allocate_symtab): Update.
921 * symmisc.c (print_symbol_bcache_statistics): Update.
922 (print_objfile_statistics): Print the size of the BFD obstack.
923
e992eda4
TT
9242012-08-22 Tom Tromey <tromey@redhat.com>
925
926 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
927 * gdb_bfd.c: Use DEFINE_REGISTRY.
928 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
929 (gdb_bfd_ref): Call bfd_alloc_data.
930 (gdb_bfd_unref): Call bfd_free_data.
931
6b81941e
TT
9322012-08-22 Tom Tromey <tromey@redhat.com>
933
934 * registry.h (struct registry_fields): New.
935 (REGISTRY_FIELDS): Redefine.
936 (REGISTRY_ACCESS_FIELD): New macro.
937 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
938 functions.
939
8e260fc0
TT
9402012-08-22 Tom Tromey <tromey@redhat.com>
941
942 * auto-load.c (_initialize_auto_load): Update.
943 * solib-svr4.c (_initialize_svr4_solib): Update
944 * solib-dsbt.c (_initialize_dsbt_solib): Update.
945 * solib-darwin.c (_initialize_darwin_solib): Update.
946 * registry.h: New file.
947 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
948 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
949 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
950 (register_program_space_data_with_cleanup)
951 (register_program_space_data, program_space_alloc_data)
952 (clear_program_space_data, set_program_space_data)
953 (program_space_data): Don't declare.
954 * progspace.c: Use DEFINE_REGISTRY.
955 (struct program_space_data, struct
956 program_space_data_registration, struct
957 program_space_data_registry, program_space_data_registry)
958 (register_program_space_data_with_cleanup)
959 (register_program_space_data, program_space_alloc_data)
960 (program_space_free_data, clear_program_space_data)
961 (set_program_space_data, program_space_data): Remove.
962 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
963 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
964 (register_objfile_data_with_cleanup, register_objfile_data)
965 (clear_objfile_data, set_objfile_data, objfile_data): Don't
966 declare.
967 * objfiles.c: Use DEFINE_REGISTRY.
968 (struct objfile_data, struct objfile_data_registration, struct
969 objfile_data_registry, objfile_data_registry)
970 (register_objfile_data_with_cleanup, register_objfile_data)
971 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
972 (set_objfile_data, objfile_data): Remove.
973 (_initialize_objfiles): Update.
974 * jit.c (_initialize_jit): Update.
975 * inflow.c (_initialize_inflow): Update.
976 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
977 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
978 (register_inferior_data_with_cleanup, register_inferior_data)
979 (clear_inferior_data, set_inferior_data, inferior_data): Don't
980 declare.
981 * inferior.c: Use DEFINE_REGISTRY.
982 (struct inferior_data, struct inferior_data_registration, struct
983 inferior_data_registry, inferior_data_registry)
984 (register_inferior_data_with_cleanup, register_inferior_data)
985 (inferior_alloc_data, inferior_free_data clear_inferior_data)
986 (set_inferior_data, inferior_data): Remove.
987 * auxv.c (_initialize_auxv): Update.
988 * ada-lang.c (_initialize_ada_language): Update.
989 * breakpoint.c (_initialize_breakpoint): Update.
990 * i386-nat.c (i386_use_watchpoints): Update.
991
ed9eebaf
TT
9922012-08-22 Tom Tromey <tromey@redhat.com>
993
994 * exec.c (exec_close, exec_file_attach): Update.
995 (add_to_section_table): Initialize 'key' field.
996 (add_target_sections, remove_target_sections): Add 'key' argument.
997 * exec.h (add_target_sections, remove_target_sections): Add
998 'key' argument.
999 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1000 (reload_shared_libraries_1): Update.
1001 * target.h (struct target_section) <key>: New field.
1002
2f2e97fa
TT
10032012-08-22 Tom Tromey <tromey@redhat.com>
1004
1005 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1006
b3dbbd6f
PM
10072012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1008
1009 * symfile.c (allocate_symtab): Use host_address_to_string
1010 function instead of cast of pointer to long which is not
1011 compatible with x86_64-w64-mingw32 build.
1012
f94363d7
AP
10132012-08-19 Andrew Pinski <apinski@cavium.com>
1014
1015 * mips-tdep.c (is_octeon): New function.
1016 (is_octeon_bbit_op): New function.
1017 (mips32_next_pc): Handle Octeon's bbit instructions.
1018 (mips32_instruction_has_delay_slot): Likewise.
1019
78a59c2f
AP
10202012-08-19 Andrew Pinski <apinski@cavium.com>
1021
1022 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1023 before the function.
1024
4f5bcb50
AP
10252012-08-19 Andrew Pinski <apinski@cavium.com>
1026
1027 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1028
e5afdbd7
KS
10292012-08-19 Keith Seitz <keiths@redhat.com>
1030
1031 PR c++/14365
1032 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1033 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1034
13c9750e
EZ
10352012-08-18 Eli Zaretskii <eliz@gnu.org>
1036
1037 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1038 The typo broke "make TAGS".
1039
db761810 10402012-08-17 Joel Brobecker <brobecker@adacore.com>
1041
1042 GDB 7.5 released.
1043
a451cb65
KS
10442012-08-17 Keith Seitz <keiths@redhat.com>
1045
1046 PR c++/13356
1047 * gdbtypes.c (strict_type_checking): New variable.
1048 (show_strict_type_checking): New function.
1049 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1050 if strict type checking is disabled.
1051 (_initialize_gdbtypes): Add "check type" subcommand.
1052 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1053
10542012-08-17 Keith Seitz <keiths@redhat.com>
1055
1056 * language.h (type_mode): Remove.
1057 (type_check): Remove.
1058 (struct language_defn): Remove la_type_check.
1059 (STRICT_TYPE): Remove unused macro.
1060 (type_error): Remove.
1061 * language.c (set_type_range_case): Renamed to ...
1062 (set_range_case): ... this. Update all callers.
1063 Remove type_mode/type_check.
1064 (type_mode): Remove.
1065 (type_check): Remove.
1066 (show_type_command): Remove.
1067 (set_type_command): Remove.
1068 (language_info): Remove type checking output.
1069 (type_error): Remove unused function.
1070 (range_error): Update comment.
1071 (unknown_language_defn): Remove la_type_check.
1072 (auto_language_defn): Likewise.
1073 (local_language_defn): Likewise.
1074 (_initialize_language): Remove "check type" subcommand.
1075 * ada-lang.c (ada_language_defn): Remove la_type_check.
1076 * c-lang.c (c_language_defn): Likewise.
1077 (cplus_language_defn): Likewise.
1078 (asm_language_defn): Likewise.
1079 (minimal_language_defn): Likewise.
1080 * d-lang.c (d_language_defn): Likewise.
1081 * f-lang.c (f_language_defn): Likewise.
1082 * go-lang.c (go_language_defn): Likewise.
1083 * jv-lang.c (java_language_defn): Likewise.
1084 * m2-lang.c (m2_language_defn): Likewise.
1085 * objc-lang.c (objc_language_defn): Likewise.
1086 * opencl-lang.c (opencl_language_defn): Likewise.
1087 * p-lang.c (pascal_language_defn): Likewise.
1088
dbf6a605
MF
10892012-08-16 Mike Frysinger <vapier@gentoo.org>
1090
1091 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1092
973e3cf7
JB
10932012-08-16 Joel Brobecker <brobecker@adacore.com>
1094
1095 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1096 New function.
1097 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1098 using the regache. Use ia64_hpux_get_register_from_save_state_t
1099 to access the bsp and bspstore registers if not.
1100
d80ee84f
JB
11012012-08-16 Joel Brobecker <brobecker@adacore.com>
1102
1103 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1104 * breakpoint.c (detach_breakpoints): Change pid parameter into
1105 a ptid. Adjust code accordingly.
1106 * infrun.c (handle_inferior_event): Delete variable child_pid.
1107 Update call to detach_breakpoints to pass the child ptid for
1108 fork events.
1109 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1110 assert that inferior_ptid's lwp is zero.
1111 (linux_handle_extended_wait): Update call to detach_breakpoints.
1112 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1113 detach_breakpoints.
1114
2dcc6086
JB
11152012-08-16 Joel Brobecker <brobecker@adacore.com>
1116
1117 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1118 parent, only call detach_breakpoints if tts.tts_event ==
1119 TTEVT_VFORK.
1120
0c92d8c1
JB
11212012-08-16 Joel Brobecker <brobecker@adacore.com>
1122
1123 * dwarf2-frame.c (dwarf2_frame_cache): Use
1124 get_frame_address_in_block instead of get_frame_pc as
1125 the bound for executing the frame's FDE.
1126
6b1755ce
YQ
11272012-08-16 Yao Qi <yao@codesourcery.com>
1128
1129 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1130 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1131 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1132 (c_type_print_varspec_suffix): Likewise.
1133 * eval.c (evaluate_subexp_standard): Likewise.
1134 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1135 (f_type_print_varspec_suffix): Likewise.
1136 * gdbtypes.c (is_scalar_type): Likewise.
1137 (recursive_dump_type): Likewise.
1138 * infcall.c (value_arg_coerce): Likewise.
1139 * m2-valprint.c (m2_val_print): Likewise.
1140 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1141 (pascal_type_print_varspec_suffix): Likewise.
1142 (pascal_type_print_base): Likewise.
1143 * p-valprint.c (pascal_val_print): Likewise.
1144 (pascal_val_print): Likewise.
1145 * valops.c (value_slice): Likewise.
1146 * valprint.c (scalar_type_p): Likewise.
1147 * valarith.c (value_bitstring_subscript): Remove.
1148 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1149 Remove comment on TYPE_CODE_BITSTRING.
1150
1151 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1152 TYPE_CODE_BITSTRING.
1153
1154 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1155 slot 0.
1156
8acc4065
YQ
11572012-08-16 Yao Qi <yao@codesourcery.com>
1158
1159 * tracepoint.c (trace_find_none_command): Remove.
1160 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1161
8128fd8e
YQ
11622012-08-16 Yao Qi <yao@codesourcery.com>
1163
1164 * remote.c (handle_notification): Remove parameter 'length'.
1165 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1166
2873700e
KS
11672012-08-15 Keith Seitz <keiths@redhat.com>
1168
1169 * gdbtypes.c (opaque_type_resolution): Make static.
1170 Add missing comment.
1171 (overload_debug): Add missing comment.
1172 (show_opaque_type_resolution): Likewise.
1173 (show_overload_debug): Likewise.
1174 (print_bit_vector): Remove unnecessary forward declaration.
1175 (print_arg_types): Likewise.
1176 (dump_fn_fieldlists): Likewise.
1177 (print_cplus_stuff): Likewise.
1178
b82d08cd
TT
11792012-08-15 Tom Tromey <tromey@redhat.com>
1180
1181 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1182 (gdb_bfd_ref): Initialize new field.
1183 (gdb_bfd_unref): Unref the archive BFD.
1184 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1185 parent archive.
1186
db6573d6
TT
11872012-08-15 Tom Tromey <tromey@redhat.com>
1188
1189 PR python/14387:
1190 * python/py-bpevent.c (create_breakpoint_event_object): Update
1191 comment.
1192 * python/py-event.c (evpy_add_attribute): Update comment.
1193 * python/py-exitedevent.c (create_exited_event_object): Fix
1194 reference counting and error handling.
1195 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1196 Fix reference counting.
1197 * python/py-signalevent.c (create_signal_event_object): Fix
1198 reference counting and error handling.
1199 * python/py-stopevent.c (emit_stop_event): Fix reference
1200 counting.
1201 * python/py-threadevent.c (get_event_thread): Return a
1202 borrowed reference.
1203 * python/py-type.c (convert_field): Fix reference counting.
1204
a036ba48
TT
12052012-08-15 Tom Tromey <tromey@redhat.com>
1206
1207 * dwarf2read.c (dwarf_decode_macro_bytes)
1208 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1209 as hash key.
1210
486c7739
MF
12112012-08-14 Mike Frysinger <vapier@gentoo.org>
1212
1213 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1214 stepi, nexti, finish, next, step, jump, and continue commands.
1215 * infrun.c (_initialize_infrun): Update help text for the handle
1216 command.
1217
4cf93a03
DE
12182012-08-14 Doug Evans <dje@google.com>
1219
70b099cf
DE
1220 * gdbtypes.c (struct extra): Delete, unused.
1221
5212577a
DE
1222 * gdbtypes.c: Whitespace cleanup.
1223 (address_space_name_to_int): Remove "extern" from definition.
1224 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1225
4cf93a03
DE
1226 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1227 TYPE_POINTER_TYPE (type).
1228
3756ef7e
GB
12292012-08-14 Gary Benson <gbenson@redhat.com>
1230
1231 * solib-svr4.c (svr4_free_library_list): Use free_so.
1232
40d72643
MF
12332012-08-13 Mike Frysinger <vapier@gentoo.org>
1234
1235 * .gitignore: Add go-exp.c.
1236
f47f77df
DE
12372012-08-13 Doug Evans <dje@google.com>
1238
1239 * value.c (show_convenience): Tweak comment.
1240 (_initialize_values): Mention convenience functions in the help text
1241 for "show convenience".
1242
7507c54a
YQ
12432012-08-13 Yao Qi <yao@codesourcery.com>
1244
1245 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1246 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1247 TERNOP_SLICE_COUNT.
1248 * eval.c (evaluate_subexp_standard): Likewise.
1249 * expprint.c (print_subexp_standard): Likewise.
1250 (dump_subexp_body_standard): Likewise.
1251 * parse.c (operator_length_standard): Likewise.
1252
5cad9736
YQ
12532012-08-13 Yao Qi <yao@codesourcery.com>
1254
1255 * std-operator.def: Remove OP_BITSTRING.
1256 * breakpoint.c (watchpoint_exp_is_const): Update.
1257 * eval.c (evaluate_subexp_standard): Remove handling to
1258 OP_BITSTRING.
1259 * expprint.c (print_subexp_standard): Likewise.
1260 (dump_subexp_body_standard): Likewise.
1261 * parse.c (operator_length_standard): Likewise.
1262 * valops.c (value_bitstring): Remove.
1263 * value.h: Remove the declaration of 'value_bitstring'.
1264
bad7670a
SDJ
12652012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1266
1267 * linespec.c (find_methods): Remove unused variables `i1' and
1268 `name_len'.
1269 (decode_line_full): Likewise for `arg_start'.
1270
d9dce7fa
SDJ
12712012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1272
1273 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1274 (zlib_decompress_section): Likewise for `section_data'.
1275 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1276
a72c3253
DE
12772012-08-10 Doug Evans <dje@google.com>
1278
1279 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1280 * NEWS: Document them.
1281 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1282 function/strfns.py.
1283 * python/py-type.c (typy_array_1): New function.
1284 (typy_array): Call it.
1285 (typy_vector): New function.
1286 (type_object_methods): Add "vector".
1287 * python/lib/gdb/function/__init__.py: New file.
1288 * python/lib/gdb/function/strfns.py: New file.
1289
200bc880
SP
12902012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1291
1292 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1293 for TYPE_FIELD_BITPOS.
1294 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1295
de0bea00
MF
12962012-08-10 Mike Frysinger <vapier@gentoo.org>
1297
1298 PR cli/10436:
1299 * common/vec.h (VEC_merge): Define.
1300 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1301 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1302 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1303 * completer.c: Include gdb_signals.h.
1304 (signal_completer): Define.
1305 * completer.h (signal_completer): Add prototype.
1306 * infcmd.c (_initialize_infcmd): Assign the command
1307 completer for "signal" to handle_completer.
1308 * infrun.c: Include completer.h.
1309 (handle_completer): Define.
1310 (_initialize_infrun): Declare a new local variable c. Store the
1311 result of add_com("handle") to it. Assign the command
1312 completer for "handle" to handle_completer.
1313
5b9afe8a
YQ
13142012-08-09 Yao Qi <yao@codesourcery.com>
1315
1316 * cli/cli-decode.c (set_cmd_prefix): New.
1317 (lookup_cmd_for_prefixlist): New.
1318 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1319 of each cmd_list_element in *prefixlist.
1320 (add_setshow_cmd_full): set_cmd_prefix.
1321 (add_alias_cmd): Likewise.
1322 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1323 Declare 'auto_boolean_enums'.
1324 * cli/cli-setshow.c: Include "observer.h".
1325 (notify_command_param_changed_p): New.
1326 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1327 Remove 'static'.
1328 (do_setshow_command): Split it to ...
1329 (do_set_command, do_show_command): ... them. New.
1330 (do_set_command): Call observer_notify_command_param_changed if
1331 notify_command_param_changed_p returns true.
1332 (cmd_show_list): Caller update.
1333 * auto-load.c (set_auto_load_cmd): Likewise.
1334 * remote.c (show_remote_cmd): Likewise.
1335 * cli/cli-setshow.h: Update declarations.
1336 * top.c (execute_command): Call do_set_command and do_show_command.
1337
1338 * NEWS: Mention new MI notification.
1339 * mi/mi-interp.c: Declare mi_command_param_changed.
1340 (mi_interpreter_init): Attach mi_command_param_changed to
1341 observer command_param_changed.
1342 (mi_command_param_changed): New.
1343 Remove mi_suppress_breakpoint_notifications.
1344 Define global variable mi_suppress_notification.
1345 (mi_breakpoint_created): Update.
1346 (mi_breakpoint_deleted): Likewise.
1347 (mi_breakpoint_modified): Likewise.
1348 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1349 'gdb-set' and set mi_suppress_notification.
1350 * mi/mi-main.h: (mi_suppress_notification): New struct.
1351
1969df89
JK
13522012-08-09 Andreas Tobler <andreast@fgznet.ch>
1353 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1356
8bfd80db
YQ
13572012-08-09 Yao Qi <yao@codesourcery.com>
1358
1359 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1360 (skiplist): Move it to skip.c.
1361 (init_cmd_lists): Remove code setting enablebreaklist and
1362 skiplist to NULL.
1363 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1364 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1365 skiplist.
1366 * gdbcmd.h: Likewise.
1367 * skip.c (_initialize_step_skip): Move 'skiplist' from
1368 cli/cli-cmds.c.
1369
28578e6b
YQ
13702012-08-09 Yao Qi <yao@codesourcery.com>
1371
1372 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1373 * gnu-nat.c, symfile.c: Likewise.
1374
260c0b2a
DE
13752012-08-08 Aaron Gamble <agamble@google.com>
1376
1377 * utils.c (prompt_for_continue_wait_time): New static global.
1378 (make_command_stats_cleanup): Initialize it.
1379 (report_command_stats): Subtract time waiting for user.
1380 (prompt_for_continue): Track time waiting for user.
1381 (defaulted_query): Track time waiting for user.
1382
4f485ebc
DE
13832012-08-08 Doug Evans <dje@google.com>
1384
1385 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1386 UNOP_MEMVAL_TYPE.
1387 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1388 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1389 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1390 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1391 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1392 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1393 elt.
1394 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1395 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1396 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1397 (dump_prefix_expression): Handle OP_TYPE.
1398
2acf2b39
KS
13992012-08-08 Keith Seitz <keiths@redhat.com>
1400
1401 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1402 addr_start.
1403
e6712ff1
DE
14042012-08-08 Doug Evans <dje@google.com>
1405
1406 * linux-thread-db.c: #include "gdb_vecs.h".
1407 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1408 updated.
1409 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1410 (thread_db_load_search): Use a vector to iterate over path elements.
1411 Handle text appearing after "$pdir".
1412
1413 * gdb_string.h: Moved to ...
1414 * common/gdb_string.h: ... here.
1415 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1416 gdb_string.h and gdb_assert.h.
1417
ab854e54
YQ
14182012-08-08 Yao Qi <yao@codesourcery.com>
1419
1420 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1421 (tic6x_value_to_register): Likewise.
1422 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1423 and set_gdbarch_value_to_register.
1424
4f69f4c2
JK
14252012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1426 Jean-Marc Saffroy <saffroy@gmail.com>
1427
1428 PR 11804
1429 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1430 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1431 * gcore.c (gcore_create_callback): New function comment. Add modified
1432 parameter. Only write modified regions. Set SEC_READONLY exactly
1433 according to MODIFIED.
1434 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1435 the passed modified value to FUNC.
1436 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1437 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1438 first. New variables modified and has_anonymous. Parse the lines of
1439 smaps file. Add the passed MODIFIED value to FUNC.
1440 * procfs.c (find_memory_regions_callback): Add the passed modified
1441 value.
1442
78ac5f83
TT
14432012-08-06 Tom Tromey <tromey@redhat.com>
1444
1445 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1446 (dwarf2_frame_cache): Use it.
1447 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1448 cache initialization constraint.
1449
2c12abee
TT
14502012-08-06 Tom Tromey <tromey@redhat.com>
1451
1452 PR python/14386:
1453 * varobj.c (update_dynamic_varobj_children): Don't call
1454 PyIter_Check.
1455
4979d7f0
TT
14562012-08-06 Tom Tromey <tromey@redhat.com>
1457
1458 PR cli/14392:
1459 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1460
f3c8a52a
JK
14612012-08-06 Nathaniel Flath <flat0103@gmail.com>
1462
1463 * NEWS: New entry for 'cd' default parameters.
1464 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1465
5a1cf4d6
TT
14662012-08-03 Tom Tromey <tromey@redhat.com>
1467
1468 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1469 return.
1470
7c3270ae
UW
14712012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1472
1473 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1474 to attempting lseek/write.
1475 (inf_child_fileio_pread): Likewise for pread.
1476
ccce17b0
YQ
14772012-08-02 Yao Qi <yao@codesourcery.com>
1478
1479 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1480 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1481 add_setshow_zinteger_cmd.
1482 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1483 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1484 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1485 instead of add_setshow_zinteger_cmd.
1486 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1487 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1488 instead of add_setshow_zinteger_cmd.
1489 * frame.c (frame_debug): Add 'unsigned'.
1490 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1491 add_setshow_zinteger_cmd.
1492 * frame.h: Update the declaration of 'frame_debug'.
1493 * gdbtypes.c (overload_debug): Add 'unsigned'.
1494 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1495 add_setshow_zinteger_cmd.
1496 * inferior.h: Update declaration of 'debug_infrun'.
1497 * infrun.c (debug_infrun): Add 'unsigned'.
1498 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1499 add_setshow_zinteger_cmd.
1500 * jit.c (jit_debug): Add 'unsigned'.
1501 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1502 add_setshow_zinteger_cmd.
1503 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1504 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1505 instead of add_setshow_zinteger_cmd.
1506 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1507 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1508 add_setshow_zinteger_cmd.
1509 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1510 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1511 instead of add_setshow_zinteger_cmd.
1512 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1513 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1514 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1515 intead of add_setshow_zinteger_cmd.
1516 * mips-tdep.c (mips_debug): Add 'unsigned'.
1517 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1518 instead of add_setshow_zinteger_cmd.
1519 * monitor.c (monitor_debug): Add 'unsigned'.
1520 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1521 add_setshow_zinteger_cmd.
1522 * observer.c (observer_debug): Add 'unsigned'.
1523 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1524 add_setshow_zinteger_cmd.
1525 * parse.c (expressiondebug): Add 'unsigned'.
1526 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1527 add_setshow_zinteger_cmd.
1528 * record.c (record_debug): Add 'unsigned'.
1529 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1530 add_setshow_zinteger_cmd.
1531 * record.h: Update the declaration of 'record_debug'.
1532 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1533 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1534 add_setshow_zinteger_cmd.
1535 * serial.c (global_serial_debug_p): Add 'unsigned'.
1536 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1537 add_setshow_zinteger_cmd.
1538 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1539 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1540 add_setshow_zinteger_cmd.
1541 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1542 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1543 add_setshow_zinteger_cmd.
1544 * target.c (targetdebug): Add 'unsigned'.
1545 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1546 add_setshow_zinteger_cmd.
1547 * valops.c (overload_debug): Add 'unsigned'.
1548 * varobj.c (varobjdebug): Add 'unsigned'.
1549 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1550 add_setshow_zinteger_cmd.
1551 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1552 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1553 instead of add_setshow_zinteger_cmd.
1554
1555 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1556 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1557 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1558 instead of add_setshow_zinteger_cmd.
1559 * gdbarch.c, gdbarch.h: Re-generated.
1560
95b07c96
YQ
15612012-08-02 Yao Qi <yao@codesourcery.com>
1562
1563 * nto-tdep.c: Don't include cli/cli-decode.h and
1564 cli/cli-cmds.h.
1565 (_initialize_nto_tdep): Remove.
1566 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1567 Remove field.
1568 Remove macro nto_internal_debugging.
1569
57295b0b
RH
15702012-08-01 Richard Henderson <rth@redhat.com>
1571
1572 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1573 (mep-*-*) [gdb_target_obs]: Likewise.
1574
f782ad9b
AS
15752012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1576
1577 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1578 linux_get_siginfo_type.
1579
a14dd77e
JK
15802012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1581
1582 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1583 AT_ENTRY_POINT.
1584 (call_function_by_hand) <ON_STACK>: Call write_memory with
1585 gdbarch_breakpoint_from_pc, if possible.
1586 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1587 here.
1588
1467929f
YQ
15892012-07-31 Yao Qi <yao@codesourcery.com>
1590
1591 * tracepoint.c: Add 'static' for some variables.
1592
70976b65
YQ
15932012-07-31 Yao Qi <yao@codesourcery.com>
1594
1595 * go32-nat.c: Declare _initialize_go32_nat.
1596 * ser-go32.c: Declare _initialize_ser_dos.
1597 * top.c (do_chdir_cleanup): Add 'static'.
1598
eff9c3e6
KS
15992012-07-30 Keith Seitz <keiths@redhat.com>
1600
1601 * linespec.c (linespec_lex_number): A number followed
1602 by quotes is a valid number, too.
1603
728400d7
TT
16042012-07-30 Tom Tromey <tromey@redhat.com>
1605
1606 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1607
fcf303ab
UW
16082012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1609
1610 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1611 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1612
4e969b4f
AB
16132012-07-30 Andrew Burgess <aburgess@broadcom.com>
1614
1615 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1616 invalid or reevaluated to prevent prevent references to possibly
1617 delete'd type objects being left in the varobj.
1618
c4bfde41
JK
16192012-07-27 Tom Tromey <tromey@redhat.com>
1620 Jan Kratochvil <jan.kratochvil@redhat.com>
1621
1622 * copying.awk: Print buffer-read-only and vi ro markers.
1623 * copying.c: Rebuild.
1624 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1625 * gdbarch.c, gdbarch.h: Rebuild.
1626 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1627 buffer-read-only and vi ro markers.
1628 * features/arm-with-iwmmxt.c: Rebuild.
1629 * features/arm-with-m-fpa-layout.c: Rebuild.
1630 * features/arm-with-m-vfp-d16.c: Rebuild.
1631 * features/arm-with-m.c: Rebuild.
1632 * features/arm-with-neon.c: Rebuild.
1633 * features/arm-with-vfpv2.c: Rebuild.
1634 * features/arm-with-vfpv3.c: Rebuild.
1635 * features/i386/amd64-avx-linux.c: Rebuild.
1636 * features/i386/amd64-avx.c: Rebuild.
1637 * features/i386/amd64-linux.c: Rebuild.
1638 * features/i386/amd64.c: Rebuild.
1639 * features/i386/i386-avx-linux.c: Rebuild.
1640 * features/i386/i386-avx.c: Rebuild.
1641 * features/i386/i386-linux.c: Rebuild.
1642 * features/i386/i386-mmx-linux.c: Rebuild.
1643 * features/i386/i386-mmx.c: Rebuild.
1644 * features/i386/i386.c: Rebuild.
1645 * features/i386/x32-avx-linux.c: Rebuild.
1646 * features/i386/x32-avx.c: Rebuild.
1647 * features/i386/x32-linux.c: Rebuild.
1648 * features/i386/x32.c: Rebuild.
1649 * features/mips-dsp-linux.c: Rebuild.
1650 * features/mips-linux.c: Rebuild.
1651 * features/mips64-dsp-linux.c: Rebuild.
1652 * features/mips64-linux.c: Rebuild.
1653 * features/rs6000/powerpc-32.c: Rebuild.
1654 * features/rs6000/powerpc-32l.c: Rebuild.
1655 * features/rs6000/powerpc-403.c: Rebuild.
1656 * features/rs6000/powerpc-403gc.c: Rebuild.
1657 * features/rs6000/powerpc-405.c: Rebuild.
1658 * features/rs6000/powerpc-505.c: Rebuild.
1659 * features/rs6000/powerpc-601.c: Rebuild.
1660 * features/rs6000/powerpc-602.c: Rebuild.
1661 * features/rs6000/powerpc-603.c: Rebuild.
1662 * features/rs6000/powerpc-604.c: Rebuild.
1663 * features/rs6000/powerpc-64.c: Rebuild.
1664 * features/rs6000/powerpc-64l.c: Rebuild.
1665 * features/rs6000/powerpc-7400.c: Rebuild.
1666 * features/rs6000/powerpc-750.c: Rebuild.
1667 * features/rs6000/powerpc-860.c: Rebuild.
1668 * features/rs6000/powerpc-altivec32.c: Rebuild.
1669 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1670 * features/rs6000/powerpc-altivec64.c: Rebuild.
1671 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1672 * features/rs6000/powerpc-cell32l.c: Rebuild.
1673 * features/rs6000/powerpc-cell64l.c: Rebuild.
1674 * features/rs6000/powerpc-e500.c: Rebuild.
1675 * features/rs6000/powerpc-e500l.c: Rebuild.
1676 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1677 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1678 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1679 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1680 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1681 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1682 * features/rs6000/powerpc-vsx32.c: Rebuild.
1683 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1684 * features/rs6000/powerpc-vsx64.c: Rebuild.
1685 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1686 * features/rs6000/rs6000.c: Rebuild.
1687 * features/s390-linux32.c: Rebuild.
1688 * features/s390-linux32v1.c: Rebuild.
1689 * features/s390-linux32v2.c: Rebuild.
1690 * features/s390-linux64.c: Rebuild.
1691 * features/s390-linux64v1.c: Rebuild.
1692 * features/s390-linux64v2.c: Rebuild.
1693 * features/s390x-linux64.c: Rebuild.
1694 * features/s390x-linux64v1.c: Rebuild.
1695 * features/s390x-linux64v2.c: Rebuild.
1696 * features/tic6x-c62x-linux.c: Rebuild.
1697 * features/tic6x-c62x.c: Rebuild.
1698 * features/tic6x-c64x-linux.c: Rebuild.
1699 * features/tic6x-c64x.c: Rebuild.
1700 * features/tic6x-c64xp-linux.c: Rebuild.
1701 * features/tic6x-c64xp.c: Rebuild.
1702
826f0041
TT
17032012-07-27 Tom Tromey <tromey@redhat.com>
1704
1705 * c-exp.y (classify_name): Avoid assignment in condition.
1706
84552b16
PA
17072012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1708
1709 * amd64-windows-tdep.c: Include "frame.h".
1710 (amd64_windows_skip_trampoline_code): New function.
1711 (amd64_windows_init_abi): Add trampoline registration.
1712
a8a64aa8
YQ
17132012-07-27 Yao Qi <yao@codesourcery.com>
1714
1715 * tracepoint.c (cur_traceframe_number): Remove.
1716 (set_tfile_traceframe): Remove.
1717 (tfile_trace_find, tfile_fetch_registers): Update callers.
1718 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1719 (tfile_open, tfile_trace_find): Likewise.
1720
d99067cb
YQ
17212012-07-27 Yao Qi <yao@codesourcery.com>
1722
1723 * thread.c (switch_to_thread): Don't call registers_changed.
1724
f2e8016f
TT
17252012-07-26 Tom Tromey <tromey@redhat.com>
1726
f782ad9b
AS
1727 * Makefile.in (SFILES): Remove objc-exp.y.
1728 (YYFILES): Remove objc-exp.c.
1729 (YYOBJ): Remove objc-exp.o.
1730 (local-maintainer-clean): Don't mention objc-exp.c.
1731 * c-exp.y: Include objc-lang.h.
1732 (%union) <class>: New field.
1733 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1734 (exp): Clone subscript production for OBJC_LBRAC. Add various
1735 Objective C productions.
1736 (msglist, msgarglist, msgarg): New productions.
1737 (array_mod, func_mod, operator): Clone productions for
1738 OBJC_LBRAC.
1739 (parse_string_or_char): Handle '@' strings.
1740 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1741 (classify_name): Check la_name_of_this. Recognize ObjC class
1742 names.
1743 * objc-exp.y: Remove.
1744 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1745 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1746
f66713d2
JK
17472012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1748
1749 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1750
7cfe01b4
JK
17512012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1752
1753 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1754 and decrement.
1755
5ba19b4c
TT
17562012-07-26 Tom Tromey <tromey@redhat.com>
1757
1758 * copying.c: Rebuild.
1759 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1760 'no_class'.
1761
27618ce4
TT
17622012-07-26 Tom Tromey <tromey@redhat.com>
1763
1764 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1765 immediate_quit.
1766 (print_objfile_statistics): Likewise.
1767 (maintenance_print_symbols): Likewise.
1768 (maintenance_print_msymbols): Likewise.
1769 (maintenance_print_objfiles): Likewise.
1770 * psymtab.c (print_partial_symbols): Call QUIT.
1771 (maintenance_print_psymbols): Likewise. Don't modify
1772 immediate_quit.
1773 * copying.c (show_copying_command): Don't modify immediate_quit.
1774 (show_warranty_command): Likewise.
1775 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1776
dd3818c8
KS
17772012-07-26 Keith Seitz <keiths@redhat.com>
1778
1779 * linespec.c (linespec_lexer_lex_number): The input
1780 is also a valid number if the next character is a comma
1781 or colon.
1782
23a80689
JB
17832012-07-26 Joel Brobecker <brobecker@adacore.com>
1784
1785 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1786 configure options.
1787
29f77997
TG
17882012-07-26 Tristan Gingold <gingold@adacore.com>
1789
1790 * machoread.c: Include gdb_bfd.h.
1791
a55c1f32
TG
17922012-07-26 Tristan Gingold <gingold@adacore.com>
1793
1794 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1795 offset.
1796
56eb65bd
SP
17972012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1798
1799 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1800 SIZE to size_t.
1801 (dwarf2_evaluate_loc_desc): Likewise.
1802 (dwarf2_loc_desc_needs_frame): Likewise.
1803 (locexpr_describe_location_1): Likewise.
1804 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1805 size_t.
1806 (struct dwarf2_loclist_baton): Likewise.
1807 * dwarf2read.c (struct dwarf_block): Likewise.
1808 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1809 (decode_locdesc): Expand SIZE and I to size_t.
1810
aec8845c
JK
18112012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1812
1813 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1814
33d7655b
JB
18152012-07-25 Joel Brobecker <brobecker@adacore.com>
1816
1817 * doublest.c (convert_doublest_to_floatformat): If the exponent
1818 is too small, treat the value as zero. If the exponent is too
1819 large, treat the value as infinity.
1820
a22d44ff
JB
18212012-07-25 Joel Brobecker <brobecker@adacore.com>
1822
1823 * configure.ac: Add --enable-lmcheck configure option.
1824 * configure: Regenerate.
1825
d6b28940
TT
18262012-07-25 Tom Tromey <tromey@redhat.com>
1827
f782ad9b
AS
1828 * NEWS: Mention maint info bfds.
1829 * gdb_bfd.c (all_bfds): New global.
1830 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1831 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1832 New functions.
d6b28940 1833
6e73ba20
RC
18342012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1835
1836 * configure.tgt: Add v850*-*-rtems*.
1837
d560eebd
TT
18382012-07-25 Tom Tromey <tromey@redhat.com>
1839
1840 * macrotab.c (macro_bcache_str): Remove cast.
1841
d7cbec71
HZ
18422012-07-25 Hui Zhu <hui_zhu@mentor.com>
1843
1844 * linespec.c (linespec_lexer_lex_number): Update comments,
1845 change the return and add check to make sure the input is
1846 the decimal numbers.
1847 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1848 false, call linespec_lexer_lex_string.
1849
882f447f
TT
18502012-07-24 Tom Tromey <tromey@redhat.com>
1851
1852 * symfile.c (symbol_file_add): Don't open BFD twice.
1853
53ab4066 18542012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1855
1856 * breakpoint.c (create_breakpoint): Store condition for pending
1857 breakpoints.
1858
108fb0f7
AS
18592012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1860
1861 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1862 (m68k_return_value): Handle complex types like structures.
1863 (m68k_svr4_return_value): Likewise.
1864
1634dcbe
JK
18652012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1866
1867 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1868 parameters to bfd_get_section_name.
1869
e2d12c21
YQ
18702012-07-24 Yao Qi <yao@codesourcery.com>
1871
1872 * cli/cli-setshow.c: Handle case 'var_uinteger'
1873 and 'var_zuninteger' together. Handle case 'var_integer' and
1874 'var_zinteger' together.
1875
64b92e45
KS
18762012-07-23 Keith Seitz <keiths@redhat.com>
1877
1878 * linespec.c (convert_linespec_to_sal): Don't add
1879 any symbols to the result vector if symbol_to_sal
1880 returns zero.
1881
0f5f4ffe
KS
18822012-07-23 Keith Seitz <keiths@redhat.com>
1883
1884 * linespec.c (decode_objc): Record the function name
1885 in the linespec.
1886
da1cc82f
TT
18872012-07-23 Tom Tromey <tromey@redhat.com>
1888
1889 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1890 counting.
1891 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1892 (map_vmap): Acquire a reference to the BFD.
1893
6c18f3e0
SP
18942012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1895
1896 * p-valprint.c (pascal_object_print_value): Replace potentially
1897 unsafe alloca with xmalloc/xfree.
1898 * valops.c (search_struct_method): Likewise.
1899
695c3173
TT
19002012-07-23 Tom Tromey <tromey@redhat.com>
1901
1902 * solib-svr4.c (enable_break): Update.
1903 * bfd-target.h (target_bfd_reopen): Update documentation.
1904
08d2cd74
TT
19052012-07-23 Tom Tromey <tromey@redhat.com>
1906
1907 * symfile.c (separate_debug_file_exists): Update.
1908 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1909 (reread_symbols): Update.
1910 * elfread.c (build_id_verify): Update.
1911 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1912 bfd_open_maybe_remote.
1913
596f7d67
TT
19142012-07-23 Tom Tromey <tromey@redhat.com>
1915
1916 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1917
8ac244b4
TT
19182012-07-23 Tom Tromey <tromey@redhat.com>
1919
1920 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1921 and 'abfd'.
1922 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1923 and 'abfd'.
1924 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1925 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1926 'abfd'.
1927 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1928 * objfiles.c (allocate_objfile): Acquire a new reference.
1929 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1930 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1931 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1932 a cleanup for 'nbfd'.
1933 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1934 for 'nbfd'.
1935 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1936 make a cleanup for 'abfd'.
1937 (symbol_file_add): Make a BFD cleanup.
1938
64c31149
TT
19392012-07-23 Tom Tromey <tromey@redhat.com>
1940
1941 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1942 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1943 * corelow.c (core_open): Use gdb_bfd_fopen.
1944 * dsrec.c (load_srec): Use gdb_bfd_openr.
1945 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1946 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1947 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1948 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1949 (gdb_bfd_fdopenr): New functions.
1950 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1951 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1952 (gdb_bfd_fdopenr): Declare.
1953 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1954 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1955 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1956 gdb_bfd_openr_next_archived_file.
1957 (macho_check_dsym): Use gdb_bfd_openr.
1958 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1959 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1960 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1961 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1962 gdb_bfd_openr.
1963 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1964 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1965 gdb_bfd_openr_next_archived_file.
1966 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1967 Use gdb_bfd_openr.
1968 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1969 gdb_bfd_openr.
1970 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1971 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1972 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1973 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1974 (symfile_bfd_open): Use gdb_bfd_fopen.
1975 (generic_load): Use gdb_bfd_openr.
1976 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1977
520b0001
TT
19782012-07-23 Tom Tromey <tromey@redhat.com>
1979
1980 * bfd-target.c (target_bfd_reopen): Update.
1981 * cli/cli-dump.c (bfd_openr_with_cleanup)
1982 (bfd_openw_with_cleanup): Update.
1983 * corelow.c (core_open): Update.
1984 * dsrec.c (load_srec): Update.
1985 * exec.c (exec_file_attach): Update.
1986 * gcore.c (create_gcore_bfd): Update.
1987 * gdb_bfd.c (gdb_bfd_ref): Return void.
1988 (gdb_bfd_open): Update.
1989 * gdb_bfd.h (gdb_bfd_ref): Return void.
1990 Update comments.
1991 * jit.c (jit_bfd_try_read_symtab): Update.
1992 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1993 * machoread.c (macho_symfile_read_all_oso): Update.
1994 (macho_check_dsym): Update.
1995 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1996 * remote-m32r-sdi.c (m32r_load): Update.
1997 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1998 * rs6000-nat.c (add_vmap): Update.
1999 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2000 Update.
2001 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2002 * solib-spu.c (spu_bfd_open): Update.
2003 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2004 * spu-linux-nat.c (spu_bfd_open): Update.
2005 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2006 (generic_load): Update.
2007 * windows-nat.c (windows_make_so): Update.
2008
2322ff16
SP
20092012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2010
2011 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2012
3def0b36
PA
20132012-07-20 Jeff Kenton <jkenton@tilera.com>
2014
2015 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2016 SIGTRAMP_FRAME unwinding.
2017
e615022a
DE
20182012-07-20 Doug Evans <dje@google.com>
2019
2020 * NEWS: Document new options "set/show use-deprecated-index-sections",
2021 and delete reference to --use-deprecated-index-sections.
2022 * symfile.h (use_deprecated_index_sections): Delete.
2023 * dwarf2read.c (use_deprecated_index_sections): Make static.
2024 (read_index_from_section): Update wording of how to load
2025 deprecated index sections.
2026 (_initialize_dwarf2_read): New options
2027 "set/show use-deprecated-index-sections".
2028 * main.c (captured_main): Delete --use-deprecated-index-sections.
2029
64776a0b
PA
20302012-07-20 Pedro Alves <palves@redhat.com>
2031
2032 PR threads/11692
2033 PR gdb/12203
2034
2035 * infrun.c (handle_inferior_event) <new thread>: Don't special
2036 case minus_one_ptid.
2037 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2038 * linux-thread-db.c (thread_get_info_callback): Don't return early
2039 if the thread is zombie.
2040 (thread_from_lwp): Change return type to void. Rewrite stale
2041 comment.
2042 (attach_thread): Don't return early if the thread is zombie,
2043 instead set its "dying" flag.
2044 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2045 (find_new_threads_callback): Don't return early if the thread is
2046 zombie.
2047
09826ec5
PA
20482012-07-20 Pedro Alves <palves@redhat.com>
2049
2050 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2051 * target.c (target_wait): Likewise.
2052 (str_comma_list_concat_elem, do_option, target_options_to_string):
2053 New functions.
2054 * target.h (target_options_to_string): Declare.
2055
f7a35f02
TT
20562012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2057 Tom Tromey <tromey@redhat.com>
2058
2059 * dwarf2read.c (dwarf_decode_macros)
2060 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2061 DW_MACRO_GNU_transparent_include_alt>: New cases.
2062 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2063 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2064
b81e1ee0
TT
20652012-07-20 Tom Tromey <tromey@redhat.com>
2066
2067 * dwarf2read.c (try_open_dwo_file): Don't call
2068 gdb_bfd_stash_filename.
2069
99c1624c
PA
20702012-07-20 Pedro Alves <palves@redhat.com>
2071
2072 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2073 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2074 (i386_process_record): Tweak description comments.
2075
4ffa4fc7
PA
20762012-07-20 Pedro Alves <palves@redhat.com>
2077
2078 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2079 (i386_process_record): Use record_read_memory.
2080 * record.c (record_read_memory): New function.
2081 (record_arch_list_add_mem, record_exec_insn): Use
2082 record_read_memory.
2083 * record.h (record_read_memory): Declare.
2084
c24343e2
YQ
20852012-07-20 Yao Qi <yao@codesourcery.com>
2086
2087 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2088 NULL for xfree.
2089
90f47860
PA
20902012-07-19 Pedro Alves <palves@redhat.com>
2091
2092 * record.c (record_resume): Ask the target beneath to report all
2093 signals.
2094
01093045
DE
20952012-07-19 Doug Evans <dje@google.com>
2096
2097 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2098 there's no section at address zero.
2099 (dwarf2_record_block_ranges): Ditto.
2100
a7c3d162
YQ
21012012-07-19 Yao Qi <yao@codesourcery.com>
2102
2103 * command.h, remote.c: Fix a typo in comment.
2104
608b4967
TT
21052012-07-19 Tom Tromey <tromey@redhat.com>
2106
2107 PR exp/13206:
2108 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2109 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2110 OP_DECLTYPE>: New cases.
2111 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2112 (type_exp): Add new productions.
2113 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2114 and decltype.
2115 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2116 New case.
2117 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2118 OP_DECLTYPE>: New case.
2119 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2120 New case.
2121 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2122 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2123
274b54d7
TT
21242012-07-19 Tom Tromey <tromey@redhat.com>
2125
2126 * c-exp.y (enum token_flags): New.
2127 (struct token) <cxx_only>: Remove.
2128 <flags>: New field.
2129 (tokentab3, tokentab2, ident_tokens): Update.
2130 (lex_one_token): Update. Handle FLAG_SHADOW.
2131
9eaf6705
TT
21322012-07-19 Tom Tromey <tromey@redhat.com>
2133
2134 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2135 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2136 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2137 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2138 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2139 type_exp production where appropriate.
2140 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2141 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2142 <UNOP_MEMVAL_TYPE>: New case.
2143 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2144 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2145 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2146 <UNOP_MEMVAL_TYPE>: New case.
2147 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2148 UNOP_REINTERPRET_CAST>: Update.
2149 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2150 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2151 UNOP_REINTERPRET_CAST>: Update.
2152 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2153 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2154 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2155 constants.
2156
6ace3df1
YQ
21572012-07-19 Yao Qi <yao@codesourcery.com>
2158 Jan Kratochvil <jan.kratochvil@redhat.com>
2159
2160 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2161 and case 'var_optional_filename' together.
2162 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2163 instead of add_setshow_optional_filename_cmd for setshow command
2164 'args'. Set completer for 'set args'.
2165
48faced0
DE
21662012-07-18 Doug Evans <dje@google.com>
2167
2168 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2169 * common/gdb_vecs.c: New file, contents from utils.c.
2170 * common/host-defs.h: New file, contents from defs.h.
2171 * utils.h: New file, contents from defs.h.
2172 * defs.h: Move all declarations of objects defined in utils.c
2173 to utils.h (except QUIT() and related).
2174 #include "utils.h", "host-defs.h".
2175 * probe.h (probe_p): Move here from gdb_vecs.h.
2176 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2177 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2178 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2179 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2180 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2181 (COMMON_OBS): Add gdb_vecs.o.
2182 (gdb_vecs.o): New rule.
2183
66f1999b
KS
21842012-07-18 Keith Seitz <keiths@redhat.com>
2185
2186 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2187 parameter. If non-zero, use SYMNAME as the canonical name
2188 for the SaL.
2189 Update all callers.
2190 (convert_linespec_to_sals): Use add_sal_to_sals for
2191 expressions, too.
2192 (decode_line_full): No need to "fill in missing canonical names"
2193 anymore. Simply make cleanups for the allocated names.
2194
5d94e27b
KS
21952012-07-18 Keith Seitz <keiths@redhat.com>
2196
2197 * linespec.c (struct linespec): Constify expression,
2198 source_filename, function_name, and label_name.
2199 (symbol_not_found_error): Make all parameters const.
2200 (linespec_parser_delete): No need to check for NULL
2201 when using xfree. Cast const char * to char * for xfree.
2202
af4908ba
KS
22032012-07-18 Keith Seitz <keiths@redhat.com>
2204
2205 * breakpoint.c (invalid_thread_id_error): New function.
2206 (find_condition_and_thread): Use invalid_thread_id_error.
2207 (watch_command_1): Likewise.
2208
853254db
TT
22092012-07-18 Tom Tromey <tromey@redhat.com>
2210
2211 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2212 * contrib/cc-with-tweaks.sh: New file.
2213
2ec9a5e0
TT
22142012-07-18 Tom Tromey <tromey@redhat.com>
2215
2216 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2217 (locate_dwz_sections): Recognize .gdb_index.
2218 (create_cus_from_index_list): New function.
2219 (create_cus_from_index): Use it. Handle .dwz data.
2220 (read_index_from_section): New function, extracted from
2221 dwarf2_read_index.
2222 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2223 if needed.
2224
36586728
TT
22252012-07-18 Tom Tromey <tromey@redhat.com>
2226
2227 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2228 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2229 <is_dwz>: New field.
2230 (struct dwz_file): New.
2231 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2232 (locate_dwz_sections, dwarf2_get_dwz_file)
2233 (get_abbrev_section_for_cu): New functions.
2234 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2235 (read_and_check_type_unit_head): Add abbrev_section argument.
2236 (create_debug_types_hash_table): Update.
2237 (init_cutu_and_read_dies): Use proper abbrev section.
2238 (init_cutu_and_read_dies_no_follow): Likewise.
2239 (set_partial_user): Do nothing if PST==NULL.
2240 (read_comp_units_from_section): New function.
2241 (create_all_comp_units): Use it.
2242 (scan_partial_symbols, partial_die_parent_scope): Update.
2243 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2244 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2245 (find_partial_die): Add offset_in_dwz argument. Update.
2246 (guess_partial_die_structure_name, fixup_partial_die): Update.
2247 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2248 DW_FORM_GNU_strp_alt.
2249 (read_indirect_string_from_dwz): New function.
2250 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2251 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2252 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2253 (follow_die_offset): Add offset_in_dwz argument.
2254 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2255 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2256 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2257 Handle new macro forms.
2258 (dwarf_decode_macros): Update.
2259 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2260 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2261 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2262 (create_debug_types_hash_table): Use correct abbrev section.
2263 (get_debug_line_section): New function.
2264 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2265 (process_full_comp_unit): Pass 'required' argument to
2266 end_symtab_get_static_block.
2267 * buildsym.h (end_symtab_get_static_block): Update.
2268 * buildsym.c (end_symtab_get_static_block): Add 'required'
2269 argument.
2270 (end_symtab, end_expandable_symtab): Update.
2271
4bf44c1c
TT
22722012-07-18 Tom Tromey <tromey@redhat.com>
2273
2274 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2275 (pagesize): Remove.
2276 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2277 (zlib_decompress_section): Remove.
2278 (dwarf2_read_section): Use gdb_bfd_map_section.
2279 (munmap_section_buffer): Remove.
2280 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2281 munmap_section_buffer.
2282 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2283 (struct gdb_bfd_section_data): New.
2284 (free_one_bfd_section): New function.
2285 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2286 (get_section_descriptor, zlib_decompress_section)
2287 (gdb_bfd_map_section): New functions.
2288 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2289
bb397797
TT
22902012-07-18 Tom Tromey <tromey@redhat.com>
2291
2292 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2293
6ec53d05
TT
22942012-07-18 Tom Tromey <tromey@redhat.com>
2295
2296 * gdb_bfd.c (struct gdb_bfd_data): New.
2297 (gdb_bfd_cache): New global.
2298 (struct gdb_bfd_cache_search): New.
2299 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2300 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2301 * gdb_bfd.h (gdb_bfd_open): Declare.
2302
f9a062ff
TT
23032012-07-18 Tom Tromey <tromey@redhat.com>
2304
2305 * utils.c (make_cleanup_bfd_unref): Rename from
2306 make_cleanup_bfd_close.
2307 * defs.h (make_cleanup_bfd_unref): Rename from
2308 make_cleanup_bfd_close.
2309 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2310 (bfd_openw_with_cleanup): Update.
2311 * corelow.c (core_open): Update.
2312 * dsrec.c (load_srec): Update.
2313 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2314 * remote-m32r-sdi.c (m32r_load): Update.
2315 * remote-mips.c (mips_load_srec): Update.
2316 (pmon_load_fast): Update.
2317 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2318 Update.
2319 (darwin_bfd_open): Update.
2320 * solib.c (solib_bfd_fopen): Update.
2321 * symfile-mem.c (symbol_file_add_from_memory): Update.
2322 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2323 (symfile_bfd_open): Update.
2324 (generic_load): Update.
2325
d6ad71ba
TT
23262012-07-18 Tom Tromey <tromey@redhat.com>
2327
2328 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2329 (pmon_load_fast): Likewise.
2330 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2331 (m32r_upload_command): Likewise.
2332 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2333 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2334 Use make_cleanup_bfd_close.
2335
a4453b7e
TT
23362012-07-18 Tom Tromey <tromey@redhat.com>
2337
2338 * symfile.c (symfile_bfd_open): Don't copy name. Call
2339 gdb_bfd_stash_filename.
2340 (load_command): Open the new BFD before freeing the old.
2341 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2342 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2343 Call gdb_bfd_stash_filename.
2344 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2345 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2346 gdb_bfd_stash_filename.
2347 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2348 Free found_pathname.
2349 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2350 gdb_bfd_stash_filename.
2351 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2352 * machoread.c (macho_add_oso_symfile): Call
2353 gdb_bfd_stash_filename.
2354 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2355 gdb_bfd_stash_filename.
2356 (macho_check_dsym): Don't copy filename. Call
2357 gdb_bfd_stash_filename.
2358 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2359 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2360 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2361 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2362 * exec.c (exec_close): Don't free the BFD's filename.
2363 (exec_file_attach): Don't copy the filename. Call
2364 gdb_bfd_stash_filename.
2365 * corelow.c (core_close): Don't free the BFD's filename.
2366 (core_open): Call gdb_bfd_stash_filename.
2367 * corefile.c (reopen_exec_file): Remove #if 0 code.
2368 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2369 pathname.
2370 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2371
cbb099e8
TT
23722012-07-18 Tom Tromey <tromey@redhat.com>
2373
2374 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2375 gdb_bfd_unref.
2376 (free_dwo_file): Use gdb_bfd_unref.
2377 * cli/cli-dump.c: Include gdb_bfd.h.
2378 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2379 (bfd_openr_with_cleanup): Likewise.
2380 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2381 gdb_bfd_unref.
2382 * utils.c: Include gdb_bfd.h.
2383 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2384 * symfile.c: Include gdb_bfd.h.
2385 (separate_debug_file_exists): Use gdb_bfd_unref.
2386 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2387 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2388 (generic_load): Use gdb_bfd_ref.
2389 (reread_symbols): Use gdb_bfd_unref.
2390 * symfile-mem.c: Include gdb_bfd.h.
2391 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2392 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2393 * solib.c: Include gdb_bfd.h.
2394 (solib_bfd_fopen): Use gdb_bfd_ref.
2395 (solib_bfd_open): Use gdb_bfd_unref.
2396 (free_so_symbols): Use gdb_bfd_unref.
2397 (reload_shared_libraries_1): Use gdb_bfd_unref.
2398 * solib-spu.c: Include gdb_bfd.h.
2399 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2400 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2401 gdb_bfd_unref.
2402 * solib-frv.c: Include gdb_bfd.h.
2403 (enable_break2): Use gdb_bfd_unref.
2404 * solib-dsbt.c: Include gdb_bfd.h.
2405 (enable_break2): Use gdb_bfd_unref.
2406 * solib-darwin.c: Include gdb_bfd.h.
2407 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2408 gdb_bfd_unref.
2409 (darwin_bfd_open): Use gdb_bfd_unref.
2410 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2411 * remote-mips.c: Include gdb_bfd.h.
2412 (mips_load_srec): Use gdb_bfd_ref.
2413 (pmon_load_fast): Use gdb_bfd_ref.
2414 * remote-m32r-sdi.c: Include gdb_bfd.h.
2415 (m32r_load): Use gdb_bfd_ref.
2416 * record.c: Include gdb_bfd.h.
2417 (record_save_cleanups): Use gdb_bfd_unref.
2418 (cmd_record_save): Use gdb_bfd_unref.
2419 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2420 gdb_bfd_unref.
2421 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2422 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2423 * objfiles.c: Include gdb_bfd.h.
2424 (free_objfile): Use gdb_bfd_unref.
2425 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2426 gdb_bfd.c.
2427 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2428 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2429 (macho_check_dsym): Likewise.
2430 * m32r-rom.c: Include gdb_bfd.h.
2431 (m32r_load): Use gdb_bfd_ref.
2432 (m32r_upload_command): Use gdb_bfd_ref.
2433 * jit.c: Include gdb_bfd.h.
2434 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2435 * gdb_bfd.h: New file.
2436 * gdb_bfd.c: New file.
2437 * gcore.c: Include gdb_bfd.h.
2438 (create_gcore_bfd): Use gdb_bfd_ref.
2439 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2440 (gcore_command): Use gdb_bfd_unref.
2441 * exec.c: Include gdb_bfd.h.
2442 (exec_close): Use gdb_bfd_unref.
2443 (exec_close_1): Use gdb_bfd_unref.
2444 (exec_file_attach): Use gdb_bfd_ref.
2445 * elfread.c: Include gdb_bfd.h.
2446 (build_id_verify): Use gdb_bfd_unref.
2447 * dsrec.c: Include gdb_bfd.h.
2448 (load_srec): Use gdb_bfd_ref.
2449 * corelow.c: Include gdb_bfd.h.
2450 (core_close): Use gdb_bfd_unref.
2451 (core_open): Use gdb_bfd_ref.
2452 * bfd-target.c: Include gdb_bfd.h.
2453 (target_bfd_xclose): Use gdb_bfd_unref.
2454 (target_bfd_reopen): Use gdb_bfd_ref.
2455 * Makefile.in (SFILES): Add gdb_bfd.c.
2456 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2457 (COMMON_OBS): Add gdb_bfd.o.
2458
ed1d1739
KS
24592012-07-18 Keith Seitz <keiths@redhat.com>
2460
2461 * breakpoint.c (find_condition_and_thread): Initialize
2462 TASK and REST.
2463 (create_breakpiont): find_condition_and_thread will now
2464 initialize COND_STRING, THREAD, and REST (and TASK).
2465 (addr_string_to_sals): Likewise.
2466
eab402df
PA
24672012-07-18 Pedro Alves <palves@redhat.com>
2468
2469 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2470 Pull the single step breakpoints out of the target.
2471
2b963b68
SDJ
24722012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2473
2474 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2475 * stap-probe.c (compile_probe_arg): Likewise.
2476
6bac7473
SDJ
24772012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2478
2479 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2480 (elf_compile_to_ax): Likewise.
2481 * infrun.c (insert_exception_resume_from_probe): Likewise.
2482 (check_exception_resume): Remove `objfile' variable.
2483 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2484 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2485 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2486 (compare_entries): Rename to...
2487 (compare_probes): ...this. Adjust function to work with
2488 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2489 respectively.
2490 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2491 `VEC (probe_p) *'.
2492 (print_ui_out_info): Adjust argument to be `struct probe *'.
2493 (info_probes_for_ops): Adjust internal computations to use
2494 `VEC (probe_p) *'.
2495 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2496 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2497 gen_info_probes_table_values>: Remove `objfile' argument.
2498 (struct probe) <objfile>: New field.
2499 (find_probe_by_pc): Remove `objfile' argument.
2500 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2501 (stap_get_probe_argument_count): Likewise.
2502 (stap_get_arg): Likewise.
2503 (stap_evaluate_probe_argument): Likewise.
2504 (stap_compile_to_ax): Likewise.
2505 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2506 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2507 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2508 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2509 sym_compile_to_ax>: Likewise.
2510
3347eb1a 25112012-07-18 Terry Guo <terry.guo@arm.com>
2512
2513 PR 14329
2514 * defs.h (GDB_MI_MSG_WIDTH): New.
2515 * ser_base (ser_base_read_error_fd): New function.
2516 (do_ser_base_readchar): Poll error file descriptor as well as
2517 standard output.
f782ad9b 2518 (generic_readchar): Refactor error handling.
3347eb1a 2519
80c8d323
JB
25202012-07-18 Joel Brobecker <brobecker@adacore.com>
2521
2522 * NEWS: Create a new section for the next release branch.
2523 Rename the section of the current branch, now that it has
2524 been cut.
2525
b45a0664 25262012-07-18 Joel Brobecker <brobecker@adacore.com>
2527
2528 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2529 * version.in: Bump version to 7.5.50.20120718-cvs.
2530
09cf2b22
KS
25312012-07-17 Keith Seitz <keiths@redhat.com>
2532
2533 * linespec.c (linespec_parse_line_offset): Make parameter
2534 const.
2535
8f043999
JK
25362012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2537
2538 PR 11914
2539 * f-valprint.c (info_common_command): New variable frame_id.
2540 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2541 * printcmd.c (print_variable_and_value): Extend function comment.
2542 Add comment for invalidated FRAME.
2543 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2544 FI form FRAME_ID after each print_frame_local_vars.
2545 (struct print_variable_and_value_data): Change frame to frame_id.
2546 (do_print_variable_and_value): New variable frame, initialize it from
2547 p->frame_id. Add comment for invalidated FRAME.
2548 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2549 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2550 for invalidated FRAME.
2551
ae5e0686
MK
25522012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2553 Pedro Alves <palves@redhat.com>
2554
2555 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2556 loop.
2557
5049c5be
TT
25582012-07-16 Tom Tromey <tromey@redhat.com>
2559
2560 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2561
2908cac6
DE
25622012-07-15 Doug Evans <dje@google.com>
2563
094b34ac
DE
2564 * dwarf2read.c (stmt_list_hash): New struct.
2565 (type_unit_group): Embed "per_cu" member, remove pointer.
2566 New union member "t", move member "tus" into it, all uses updated.
2567 New member "hash", replaces member "line_offset, all uses updated.
2568 (quick_file_names): Replace member "offset" with "hash", all uses
2569 updated.
2570 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2571 (hash_file_name_entry, eq_file_name_entry): Call them.
2572 (hash_type_unit_group, eq_type_unit_group): Ditto.
2573 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2574 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2575 (dw2_get_file_names): Update.
2576 (create_type_unit_group): Replace "per_cu" arg with "cu".
2577 All callers updated. Fix "quick" (.gdb_index) handling.
2578 (get_type_unit_group): Replace "per_cu" arg with "cu".
2579 All callers updated.
2580 (build_type_unit_groups): Don't reset tu_stats.
2581
2908cac6
DE
2582 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2583 "tab_cur_size". Change member "tab" to be a htab_t.
2584 (create_filename_seen_cache): Update.
2585 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2586 (filename_seen): Update.
2587
a2b6eff5
DE
25882012-07-13 Doug Evans <dje@google.com>
2589
2590 * symtab.c (filename_seen): Update comment.
2591
4359dff1
JK
25922012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2593 Doug Evans <dje@google.com>
2594
2595 * buildsym.c (end_symtab_1): Split it to ...
2596 (end_symtab_get_static_block): ... this ...
2597 (end_symtab_from_static_block): ... and this function.
2598 (end_symtab, end_expandable_symtab): Call them.
2599 * buildsym.h (end_symtab_get_static_block)
2600 (end_symtab_from_static_block): New declarations.
2601 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2602 Set its valid CU ranges.
2603
a24f71ab
JK
26042012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2605
2606 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2607 DW_OP_GNU_parameter_ref.
2608
d76b7dbc
JK
26092012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2610
2611 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2612 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2613
9fdc877b
DE
26142012-07-13 Doug Evans <dje@google.com>
2615
2616 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2617 (filename_seen_cache): New struct.
2618 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2619 (create_filename_seen_cache): New function.
2620 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2621 (filename_seen): Delete arg "first". New arg "cache". All callers
2622 updated.
2623 (output_source_filename_data): New struct.
2624 (output_source_filename): Delete arg "first". New arg "data".
2625 All callers updated.
2626 (sources_info): Delete local "first". New locals "data", "cleanups".
2627 Rewrite to use filename_seen_cache.
2628 (add_partial_filename_data): Delete member "first". New member
2629 "filename_seen_cache". All uses updated.
2630 (make_source_files_completion_list): Rewrite to use
2631 filename_seen_cache.
2632
f80c6f3f
DE
26332012-07-12 Doug Evans <dje@google.com>
2634
2635 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2636
0bfa869d
DE
26372012-07-10 Doug Evans <dje@google.com>
2638
f4dc4d17
DE
2639 PR gdb/13498
2640 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2641 all_type_unit_groups, type_unit_groups, tu_stats.
2642 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2643 All uses updated. Add type_unit_group to union "s".
2644 (type_unit_group): New struct.
2645 (IS_TYPE_UNIT_GROUP): New macro.
2646 (abbrev_table): Delete unused member "section".
2647 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2648 (dw2_get_cu): Assert not used with type_unit_group.
2649 (dw2_get_primary_cu): New function.
2650 (dw2_build_type_unit_groups_reader): New function.
2651 (dw2_build_type_unit_groups): New function.
2652 (dw2_get_file_names): Assert not called on type units.
2653 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2654 Redo loop to iterate over type unit groups instead of type units.
2655 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2656 (read_abbrev_offset): New function.
2657 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2658 updated.
2659 (create_partial_symtab): New function.
2660 (process_psymtab_comp_unit_reader): Assert not used with type units.
2661 Call create_partial_symtab.
2662 (process_psymtab_type_unit): Delete.
2663 (hash_type_unit_group, eq_type_unit_group): New functions.
2664 (allocate_type_unit_groups_table): New function.
2665 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2666 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2667 (create_type_unit_group, get_type_unit_group): New functions.
2668 (tu_abbrev_offset): New struct.
2669 (sort_tu_by_abbrev_offset): New function.
2670 (add_type_unit_group_to_table): New function.
2671 (build_type_unit_groups): New function.
2672 (build_type_psymtabs_reader): New function.
2673 (build_type_psymtab_dependencies): New function.
2674 (build_type_psymtabs): Rewrite.
2675 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2676 is seen in a type unit.
2677 (process_queue): Move symtab expansion debugging printfs here.
2678 Call process_full_type_unit for type units.
2679 (compute_symtab_includes): Assert not called for type units.
2680 (process_cu_includes): Don't call compute_symtab_includes for
2681 type units.
2682 (process_full_type_unit): New function.
2683 (process_imported_unit_die): Flag an error if called for type units.
2684 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2685 updated. Assert not called for type units.
2686 (read_file_scope): Call dwarf2_start_symtab.
2687 (setup_type_unit_groups): New function.
2688 (read_type_unit_scope): Rewrite.
2689 (abbrev_table_read_table): Initialize abbrev_table->offset.
2690 (abbrev_table_free_cleanup): New function.
2691 (dwarf2_start_symtab): New function.
2692 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2693 * buildsym.c (finish_block_internal): New arg "expandable".
2694 All callers updated.
2695 (start_symtab): Move most contents to ...
2696 (restart_symtab): ... here. New function.
2697 (reset_symtab_globals): New function.
2698 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2699 Call reset_symtab_globals.
2700 (end_symtab, end_expandable_symtab): New functions.
2701 (set_missing_symtab, augment_type_symtab): New functions.
2702 * buildsym.h (end_expandable_symtab): Declare.
2703 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2704 * psympriv.h (struct partial_symtab): New member "anonymous".
2705 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2706 anonymous psymtabs.
2707 (read_psymtabs_with_filename): Ditto.
2708 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2709 (expand_symtabs_matching_via_partial): Ditto.
2710 (dump_psymtab): Update.
0bfa869d
DE
2711 * dictionary.c (dict_add_pending): New function.
2712 * dictionary.h (dict_add_pending): Declare.
2713
45e58e77
DE
27142012-07-09 Doug Evans <dje@google.com>
2715
b74db436
DE
2716 * buildsym.c (start_subfile): Remove unnecessary check for
2717 name == NULL.
2718
fd55216c
DE
2719 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2720
6721b2ec
DE
2721 * dwarf2read.c (load_full_type_unit): Simplify.
2722
b4dd5633
DE
2723 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2724 to struct signatured_type **. All uses updated.
2725
45e58e77
DE
2726 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2727 All callers updated.
2728
e314d629
TT
27292012-07-09 Tom Tromey <tromey@redhat.com>
2730
2731 * c-exp.y (check_parameter_typelist): New function.
2732 (parameter_typelist): Call it.
2733 * eval.c (make_params): Handle '(void)' case.
2734 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2735 '(void)' case.
2736
aa7c7447
JK
27372012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2738
2739 * common/linux-ptrace.c: Include gdb_assert.h.
2740 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2741 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2742 stdint.h.
2743 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2744 functions.
2745 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2746 * linux-nat.c (linux_child_post_attach)
2747 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2748
889003ed
JK
27492012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2752 nptl <2.7 bug workaround for core files.
2753
da559b09
JK
27542012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2755
2756 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2757 clearing.
2758 (save_siginfo): Remove.
2759 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2760 call.
2761 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2762 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2763 * linux-nat.h (struct lwp_info): Remove field siginfo.
2764
f865ee35
JK
27652012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2766
2767 Code cleanup for the next patch.
2768 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2769 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2770 call for it.
2771 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2772 (ia64_linux_stopped_data_address):
2773 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2774 the return value.
2775 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2776 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2777 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2778 call for it.
2779
76b83c51
JK
27802012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2781
2782 PR 14321
2783 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2784 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2785
a6fb9c08
TT
27862012-07-06 Tom Tromey <tromey@redhat.com>
2787
2788 * c-exp.y (DOTDOTDOT): New token.
2789 (func_mod, exp): Use parameter_typelist.
2790 (parameter_typelist): New production.
2791 (tokentab3): Add "..." token.
2792 * eval.c (make_params): Handle varargs.
2793 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2794 varargs.
2795
71918a86
TT
27962012-07-06 Tom Tromey <tromey@redhat.com>
2797
2798 PR exp/9608:
2799 * c-exp.y (%union) <tvec>: Change type.
2800 (func_mod): Now uses <tvec> type.
2801 (exp): Update for tvec change.
2802 (direct_abs_decl): Push the typelist.
2803 (func_mod): Return a typelist.
2804 (nonempty_typelist): Update for tvec change.
2805 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2806 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2807 * parse.c (pop_type_list): New function.
2808 (push_typelist): New function.
2809 (follow_types): Handle tp_function_with_arguments.
2810 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2811 (enum type_pieces) <tp_function_with_arguments>: New constant.
2812 (union type_stack_elt) <typelist_val>: New field.
2813 (push_typelist): Declare.
2814
fcde5961
TT
28152012-07-06 Tom Tromey <tromey@redhat.com>
2816
2817 * c-exp.y (%union) <type_stack>: New field.
2818 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2819 (ptr_operator_ts): New production.
2820 (ptype): Update.
2821 * parse.c (type_stack_reserve): New function.
2822 (check_type_stack_depth): Use it.
2823 (pop_type_stack, append_type_stack, push_type_stack)
2824 (get_type_stack, type_stack_cleanup): New functions.
2825 (follow_types): Handle tp_type_stack.
2826 (_initialize_parse): Simplify initialization.
2827 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2828 constant.
2829 (union type_stack_elt) <stack_val>: New field.
2830 (get_type_stack, append_type_stack, push_type_stack)
2831 (type_stack_cleanup): Declare.
2832
1a7d0ce4
TT
28332012-07-06 Tom Tromey <tromey@redhat.com>
2834
2835 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2836 Remove.
2837 (struct type_stack): New.
2838 * parse.c (type_stack, type_stack_size, type_stack_depth):
2839 Remove.
2840 (type_stack): New global.
2841 (parse_exp_in_context, check_type_stack_depth)
2842 (insert_into_type_stack, insert_type, push_type, push_type_int)
2843 (insert_type_address_space, pop_type, pop_type_int)
2844 (_initialize_parse): Update.
2845
16d01384
TT
28462012-07-06 Tom Tromey <tromey@redhat.com>
2847
2848 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2849 Remove %type.
2850
9bfc60bf
SP
28512012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2852
2853 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2854
d5161074
SP
28552012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2856 Jan Kratochvil <jan.kratochvil@redhat.com>
2857
2858 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2859 alloca with xmalloc/xfree.
2860
a74bc576
SP
28612012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2862
2863 * MAINTAINERS (Write After Approval): Add myself to the list.
2864
667e0a4b
DE
28652012-07-05 Doug Evans <dje@google.com>
2866
2867 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2868
34b536a8
HZ
28692012-07-05 Hui Zhu <hui_zhu@mentor.com>
2870
2871 * ax-gdb.c (cli/cli-utils.h): New include.
2872 (linespec.h): Ditto.
2873 (agent_eval_command_one): New function.
2874 (agent_command_1): Ditto.
2875 (agent_command): Call function agent_command_1.
2876 (agent_eval_command): Ditto.
2877 (_initialize_ax_gdb): Change help for "maint agent"
2878 and "maint agent-eval".
2879
e6f0bce7
HZ
28802012-07-05 Hui Zhu <hui_zhu@mentor.com>
2881
2882 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2883 * cli/cli-utils.c (check_for_argument): New function.
2884 * cli/cli-utils.h (check_for_argument): Ditto.
2885
1b3371b1
L
28862012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 * NEWS: Mention x32 ABI support.
2889
23e2d720
L
28902012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2891
2892 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2893 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2894
2895 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2896 and pc_regnum_from_eax to -1. Update SP regnum from
2897 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2898 needed.
2899
2900 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2901 pc_regnum_from_eax.
2902
836bf454
JK
29032012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2904
2905 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2906 * dwarf2expr.h: Include gdbtypes.h.
2907 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2908 these forward declarations.
2909 (cu_offset, sect_offset): Move these ...
2910 * gdbtypes.h: Remove include dwarf2expr.h.
2911 (cu_offset, sect_offset): ... here.
2912
1e55e04f
L
29132012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2914
2915 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2916 (amd64_linux_sigtramp_code): This.
2917 (amd64_x32_linux_sigtramp_code): New.
2918 (LINUX_SIGTRAMP_LEN): Updated.
2919 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2920
7d0e21ad
JK
29212012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2922
2923 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2924
8775fd2d
JK
29252012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2926
2927 * config.in: Regenerate.
2928 * configure: Regenerate.
2929 * configure.ac: Remove check for gnu/libc-version.h.
2930 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2931 gnu/libc-version.h.
2932 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2933 variables libc_version, libc_major and libc_minor. Replace sscanf by
2934 inferior_has_bug. Extend the comment.
2935
fcb44371
JK
29362012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2937
2938 * linux-thread-db.c (inferior_has_bug): New function.
2939 (thread_db_find_new_threads_silently): Return boolean as checked by
2940 inferior_has_bug, describe it in the comments.
2941 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2942 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2943 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2944 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2945 if UNTIL_NO_NEW,
2946
09406207
DE
29472012-07-02 Doug Evans <dje@google.com>
2948
0907af0c
DE
2949 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2950 related to queue management.
2951
09406207
DE
2952 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2953 instead of "debug dwarf2-die" in debugging printfs.
2954 (create_debug_info_hash_table_reader): Ditto.
2955 (create_debug_info_hash_table): Ditto.
2956 (init_dwo_file): Ditto.
2957 (init_cutu_and_read_dies): Add debugging printf.
2958 (init_cutu_and_read_dies_no_follow): Ditto.
2959 (process_psymtab_comp_unit_reader): Ditto.
2960
d3ce09f5
SS
29612012-07-02 Stan Shebs <stan@codesourcery.com>
2962
2963 Add target-side support for dynamic printf.
2964 * NEWS: Mention the additional style.
2965 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2966 (struct bp_location): New field cmd_bytecode.
2967 * breakpoint.c: Include format.h.
2968 (disconnected_dprintf): New global.
2969 (parse_cmd_to_aexpr): New function.
2970 (build_target_command_list): New function.
2971 (insert_bp_location): Call it.
2972 (remove_breakpoints_pid): Skip dprintf breakpoints.
2973 (print_one_breakpoint_location): Ditto.
2974 (dprintf_style_agent): New global.
2975 (dprintf_style_enums): Add dprintf_style_agent.
2976 (update_dprintf_command_list): Add agent case.
2977 (agent_printf_command): New function.
2978 (_initialize_breakpoint): Add new commands.
2979 * common/ax.def (printf): New bytecode.
2980 * ax.h (ax_string): Declare.
2981 * ax-gdb.h (gen_printf): Declare.
2982 * ax-gdb.c: Include cli-utils.h, format.h.
2983 (gen_printf): New function.
2984 (maint_agent_print_command): New function.
2985 (_initialize_ax_gdb): Add maint agent-printf command.
2986 * ax-general.c (ax_string): New function.
2987 (ax_print): Add printf disassembly.
2988 * Makefile.in (SFILES): Add format.c
2989 (COMMON_OBS): Add format.o.
2990 * common/format.h: New file.
2991 * common/format.c: New file.
2992 * printcmd.c: Include format.h.
2993 (ui_printf): Call parse_format_string.
2994 * remote.c (remote_state): New field breakpoint_commands.
2995 (PACKET_BreakpointCommands): New enum.
2996 (remote_breakpoint_commands_feature): New function.
2997 (remote_protocol_features): Add new BreakpointCommands entry.
2998 (remote_can_run_breakpoint_commands): New function.
2999 (remote_add_target_side_commands): New function.
3000 (remote_insert_breakpoint): Call it.
3001 (remote_insert_hw_breakpoint): Ditto.
3002 (_initialize_remote): Add new packet configuration for
3003 target-side breakpoint commands.
3004 * target.h (struct target_ops): New field
3005 to_can_run_breakpoint_commands.
3006 (target_can_run_breakpoint_commands): New macro.
3007 * target.c (update_current_target): Handle
3008 to_can_run_breakpoint_commands.
3009
2d7b58e8
JK
30102012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3011
3012 Execute -ix and -iex only after system and user gdbinit files.
3013 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3014 processing down after gdbinit files.
3015
8690e634
JK
30162012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3017
3018 Add fnmatch-gnu module.
3019 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3020 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3021 * gnulib/aclocal.m4: Regenerate.
3022 * gnulib/config.in: Regenerate.
3023 * gnulib/configure: Regenerate.
3024 * gnulib/import/dummy.c: Remove.
3025 * gnulib/import/Makefile.am: Regenerate.
3026 * gnulib/import/Makefile.in: Likewise.
3027 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3028 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3029 * gnulib/import/alloca.c: New file.
3030 * gnulib/import/alloca.in.h: Likewise.
3031 * gnulib/import/config.charset: Likewise.
3032 * gnulib/import/fnmatch.c: Likewise.
3033 * gnulib/import/fnmatch.in.h: Likewise.
3034 * gnulib/import/fnmatch_loop.c: Likewise.
3035 * gnulib/import/localcharset.c: Likewise.
3036 * gnulib/import/localcharset.h: Likewise.
3037 * gnulib/import/m4/alloca.m4: Likewise.
3038 * gnulib/import/m4/codeset.m4: Likewise.
3039 * gnulib/import/m4/configmake.m4: Likewise.
3040 * gnulib/import/m4/fcntl-o.m4: Likewise.
3041 * gnulib/import/m4/fnmatch.m4: Likewise.
3042 * gnulib/import/m4/glibc21.m4: Likewise.
3043 * gnulib/import/m4/localcharset.m4: Likewise.
3044 * gnulib/import/m4/locale-fr.m4: Likewise.
3045 * gnulib/import/m4/locale-ja.m4: Likewise.
3046 * gnulib/import/m4/locale-zh.m4: Likewise.
3047 * gnulib/import/m4/mbrtowc.m4: Likewise.
3048 * gnulib/import/m4/mbsinit.m4: Likewise.
3049 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3050 * gnulib/import/m4/mbstate_t.m4: Likewise.
3051 * gnulib/import/m4/stdbool.m4: Likewise.
3052 * gnulib/import/m4/wchar_h.m4: Likewise.
3053 * gnulib/import/m4/wctype_h.m4: Likewise.
3054 * gnulib/import/m4/wint_t.m4: Likewise.
3055 * gnulib/import/mbrtowc.c: Likewise.
3056 * gnulib/import/mbsinit.c: Likewise.
3057 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3058 * gnulib/import/mbsrtowcs-state.c: Likewise.
3059 * gnulib/import/mbsrtowcs.c: Likewise.
3060 * gnulib/import/ref-add.sin: Likewise.
3061 * gnulib/import/ref-del.sin: Likewise.
3062 * gnulib/import/stdbool.in.h: Likewise.
3063 * gnulib/import/streq.h: Likewise.
3064 * gnulib/import/strnlen1.c: Likewise.
3065 * gnulib/import/strnlen1.h: Likewise.
3066 * gnulib/import/verify.h: Likewise.
3067 * gnulib/import/wchar.in.h: Likewise.
3068 * gnulib/import/wctype.in.h: Likewise.
3069
202cbf1c
JK
30702012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3071
3072 Support shell wildcards for 'set auto-load safe-path'.
3073 * auto-load.c: Include fnmatch.h.
3074 (filename_is_in_dir): Rename to ...
3075 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3076 it. Update function comment. Rename dir_len to pattern_len. New
3077 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3078 messages. Use gdb_filename_fnmatch.
3079 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3080 pattern.
3081 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3082 * defs.h (gdb_filename_fnmatch): New declaration.
3083 * utils.c: Include fnmatch.h.
3084 (gdb_filename_fnmatch): New function.
3085
fb7b5af4
SDJ
30862012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3087
3088 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3089 `-probe' and `-probe-stap' options.
3090
72d0e2c5
YQ
30912012-07-01 Yao Qi <yao@codesourcery.com>
3092
3093 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3094 always_inserted_off, and always_inserted_enums.
3095 Change always_inserted_mode's type to 'enum auto_boolean'.
3096 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3097 callers.
3098 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3099 of add_setshow_enum_cmd.
3100 * infrun.c: Remove can_use_displaced_stepping_auto,
3101 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3102 can_use_displaced_stepping_enum.
3103 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3104 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3105 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3106 add_setshow_enum_cmd.
3107
42e7ad6c
DE
31082012-06-30 Doug Evans <dje@google.com>
3109
3110 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3111 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3112 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3113
39cf75f7
DE
31142012-06-29 Doug Evans <dje@google.com>
3115
3116 * linespec.c: #include "stack.h".
3117 (decode_line_with_current_source): Moved here from symtab.c and
3118 renamed from decode_line_spec. All callers updated.
3119 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3120 renamed from decode_line_spec_1. All callers updated.
3121 * linespec.h (decode_line_with_current_source): Move declaration here
3122 from symtab.h and renamed from decode_line_spec.
3123 (decode_line_with_last_displayed): Move declaration here from symtab.h
3124 and renamed from decode_line_spec_1.
3125 * macrocmd.c: #include "linespec.h".
3126 * symtab.c: Remove #include "linespec.h".
3127
433df2d4
DE
31282012-06-28 Doug Evans <dje@google.com>
3129
1ce1cefd
DE
3130 * dwarf2read.c (get_cu_length): New function.
3131 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3132 (create_debug_types_hash_table): Ditto.
3133 (init_cutu_and_read_dies): Ditto.
3134 (init_cutu_and_read_dies_no_follow): Ditto.
3135
3b80fe9b
DE
3136 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3137
433df2d4
DE
3138 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3139 (struct abbrev_table): Define.
3140 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3141 abbrev_table.
3142 (init_cutu_and_read_dies): Update.
3143 (abbrev_table_alloc_abbrev): New function. Replaces
3144 dwarf_alloc_abbrev. All callers updated.
3145 (abbrev_table_add_abbrev): New function.
3146 (abbrev_table_lookup_abbrev): New function. Replaces
3147 dwarf2_lookup_abbrev. All callers updated.
3148 (abbrev_table_read_table): New function. Contents moved here from
3149 dwarf2_read_abbrevs.
3150 (dwarf2_read_abbrevs): Call it.
3151 (abbrev_table_free): New function.
3152 (dwarf2_free_abbrev_table): Call it.
3153
71caed83
SS
31542012-06-28 Stan Shebs <stan@codesourcery.com>
3155
3156 * osdata.c (info_osdata_command): Filter out "Title" columns
3157 from non-MI uses.
3158 * common/linux-osdata.c (struct osdata_type): Add title field.
3159 (osdata_table): Add titles to each entry.
3160 (linux_command_xfer_osdata): Add a column for title data.
3161
37ce89eb
SS
31622012-06-28 Stan Shebs <stan@codesourcery.com>
3163
3164 Make logging work for MI.
3165 * NEWS: Mention it.
3166 * interps.h (interp_set_logging_ftype): New typedef.
3167 (struct interp_procs): New field set_logging_proc.
3168 (current_interp_set_logging): Declare.
3169 * interps.c (current_interp_set_logging): New function.
3170 * cli/cli-logging.c: Include interps.h.
3171 (set_logging_redirect): Call current_interp_set_logging.
3172 (pop_output_files): Ditto.
3173 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3174 * mi/mi-console.h (mi_console_set_raw): Declare.
3175 * mi/mi-console.c (mi_console_set_raw): New function.
3176 * mi/mi-interp.c (saved_raw_stdout): New global.
3177 (mi_set_logging): New function.
3178 (_initialize_mi_interp): Add it to interp procs.
3179
659c9f3a
DE
31802012-06-28 Doug Evans <dje@google.com>
3181
a743abeb
DE
3182 * symtab.c (lookup_symbol_aux_objfile): Use
3183 ALL_OBJFILE_PRIMARY_SYMTABS.
3184
659c9f3a
DE
3185 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3186
da2d6d3d
JK
31872012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3188
3189 * common/buffer.c: Include inttypes.h and stdint.h.
3190 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3191
e5ef252a
PA
31922012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3193 Pedro Alves <palves@redhat.com>
3194
3195 * gdbthread.h (ALL_THREADS): New macro.
3196 (thread_list): Declare.
3197 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3198 going, but instead fall through to the stepping handling.
3199 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3200 the passed in signal. Adjust debug output.
3201 (resume_callback): Rename to ...
3202 (linux_nat_resume_callback): ... this. Pass the thread's last
3203 stop signal, if in "pass" state.
3204 (linux_nat_resume): Adjust to rename.
3205 (stop_wait_callback): New assertion. Don't respawn signals;
3206 instead let the LWP remain with SIGNALLED set.
3207 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3208 * remote.c (append_pending_thread_resumptions): New.
3209 (remote_vcont_resume): Call it.
3210 * target.h (target_resume): Extend comment.
3211
1d7975eb
IS
32122012-06-28 Iain Sandoe <iain@codesourcery.com>
3213
3214 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3215
2e3cf129
DE
32162012-06-27 Doug Evans <dje@google.com>
3217
3218 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3219 Delete have_addr_base, unused. All uses updated.
3220 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3221 (dwarf2_get_pc_bounds): Add ranges_base.
3222 (dwarf2_record_block_ranges): Ditto.
3223
1bb9788d
TT
32242012-06-27 Tom Tromey <tromey@redhat.com>
3225
3226 PR macros/7961:
3227 * varobj.c (varobj_create): Update.
3228 (varobj_set_value): Update.
3229 * tracepoint.c (validate_actionline): Update.
3230 (encode_actions_1): Update.
3231 * parse.c (parse_exp_1): Add 'pc' argument.
3232 (parse_exp_in_context): Add 'pc' argument. Change how
3233 expression_context_pc is set.
3234 (parse_expression): Update.
3235 (parse_field_expression): Update.
3236 * expression.h (parse_exp_1): Update.
3237 * eval.c (parse_to_comma_and_eval): Update.
3238 * breakpoint.c (set_breakpoint_condition): Update.
3239 (update_watchpoint): Update.
3240 (init_breakpoint_sal): Update
3241 (find_condition_and_thread): Update.
3242 (watch_command_1): Update.
3243 (update_breakpoint_locations): Update.
3244 * ada-lang.c (ada_read_renaming_var_value): Update.
3245 (create_excep_cond_exprs): Update.
3246
0bc3a05c
DE
32472012-06-27 Doug Evans <dje@google.com>
3248
3249 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3250 type units.
3251
4bdcc0c1
DE
32522012-06-26 Doug Evans <dje@google.com>
3253
3254 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3255 prototype.
3256 (error_check_comp_unit_head): New arg abbrev_section. All callers
3257 updated.
3258 (read_and_check_comp_unit_head): Ditto.
3259 (read_and_check_type_unit_head): Ditto.
3260
ee0bf529
SCR
32612012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3262
3263 New attribute 'last' for gdb.Symtab_and_line.
3264 * NEWS (Python Scripting): Add entry about the new attribute.
3265 * python/py-symtab.c (salpy_get_last): New function which
3266 implements the get method for the 'last' attribute of
3267 gdb.Symtab_and_line.
3268 (sal_object_getset): Add entry for the 'last' attribute.
3269
1c658ad5
DE
32702012-06-26 Doug Evans <dje@google.com>
3271
09262596
DE
3272 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3273 (dwo_sections): Add macinfo, macro.
3274 (dwarf2_locate_dwo_sections): Watch for macro sections.
3275 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3276 All callers updated. Handle DWO files.
3277
45cfd468
DE
3278 * NEWS: Mention new options "set debug dwarf2-read" and
3279 "set debug symtab-create".
3280 * dwarf2read.c (dwarf2_read_debug): New static global.
3281 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3282 (process_queue): Ditto.
3283 (process_full_comp_unit): Ditto.
3284 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3285 * elfread.c (elf_symfile_read): Add debugging printf.
3286 * minsyms.c (install_minimal_symbols): Ditto.
3287 * psymtab.c (allocate_psymtab): Ditto.
3288 * symfile.c (allocate_symtab): Ditto.
3289 * symtab.c (symtab_create_debug): New global.
3290 (_initialize_symtab): Add new option "set debug symtab-create".
3291 * symtab.h (symtab_create_debug): Declare.
3292
1c658ad5
DE
3293 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3294 (lookup_dwo_type_unit): Ditto.
3295
6fea9e18
L
32962012-06-26 Roland McGrath <roland@hack.frob.com>
3297 H.J. Lu <hongjiu.lu@intel.com>
3298
3299 * amd64-linux-nat.c: Include <sys/user.h>.
3300 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3301 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3302 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3303
3304 * configure.ac: Check if the fs_base and gs_base members of
3305 `struct user_regs_struct' exist.
3306 * config.in: Regenerated.
3307 * configure: Likewise.
3308
adb4fe3b
ME
33092012-06-25 Michael Eager <eager@eagercon.com>
3310
3311 PR python/14291
f782ad9b 3312 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3313
fc51cce1
MGD
33142012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3315
3316 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3317 register as a stack alignment in ARM mode.
3318
40a73391
JK
33192012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3320
3321 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3322 * gnulib/config.in: Regenerate.
3323 * gnulib/configure: Likewise.
3324 * gnulib/import/m4/extensions.m4: Update it.
3325 * gnulib/import/m4/gnulib-common.m4: Likewise.
3326 * gnulib/import/m4/memmem.m4: Likewise.
3327 * gnulib/import/m4/mmap-anon.m4: Likewise.
3328 * gnulib/import/m4/multiarch.m4: Likewise.
3329 * gnulib/import/stdint.in.h: Likewise.
3330
972daa01
YQ
33312012-06-24 Yao Qi <yao@codesourcery.com>
3332
3333 * corefile.c (write_memory_with_notification): New.
3334 * gdbcore.h: Declare write_memory_with_notification.
3335 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3336 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3337 * valops.c (value_assign): Likewise.
3338 * python/py-inferior.c (infpy_write_memory): Call
3339 'write_memory_with_notification'.
3340
8d6e0714
JK
33412012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 * cc-with-index.sh: Use also -ex "set auto-load no".
3344
156942c7
DE
33452012-06-23 Doug Evans <dje@google.com>
3346
3347 PR 14125
3348 * NEWS: Document additions to .gdb_index.
3349 * dwarf2read.c: #include "gdb/gdb-index.h".
3350 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3351 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3352 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3353 (dwarf2_read_index): Recognize version 7.
3354 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3355 block_kind, domain): All callers updated.
3356 (dw2_find_symbol_file): Handle new index CU values.
3357 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3358 (add_index_entry): New args is_static, kind. All callers updated.
3359 (offset_type_compare, uniquify_cu_indices): New functions
3360 (symbol_kind): New function.
3361 (write_psymtabs_to_index): Remove duplicate CU values.
3362 (write_psymtabs_to_index): Write .gdb_index version 7.
3363
352b3eda
JB
33642012-06-22 Joel Brobecker <brobecker@adacore.com>
3365
3366 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3367 * configure: Regenerate.
3368
2678e2af
YQ
33692012-06-20 Yao Qi <yao@codesourcery.com>
3370
3371 * python/py-inferior.c: Update comments of infpy_read_memory
3372 and infpy_write_memory.
3373
95c391b6
TT
33742012-06-19 Tom Tromey <tromey@redhat.com>
3375
3376 PR exp/9514:
3377 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3378 (push_type_address_space): Remove.
3379 * parse.c (insert_into_type_stack): New function.
3380 (insert_type): Likewise.
3381 (insert_type_address_space): Rename from push_type_address_space.
3382 Insert tp_space_identifier.
3383 * c-exp.y (ptr_operator): New production.
3384 (abs_decl): Use ptr_operator.
3385 (space_identifier): Call insert_type_address_space.
3386 (ptype): Don't use const_or_volatile_or_space_identifier.
3387 (const_or_volatile_noopt): Call insert_type.
3388 (conversion_type_id, conversion_declarator): New productions.
3389 (operator): Use conversion_type_id.
3390
6ac9ef80
DE
33912012-06-18 Doug Evans <dje@google.com>
3392
422d65e7
DE
3393 * symtab.h (minimal_symbol): New member created_by_gdb.
3394 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3395 created by gdb.
3396 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3397 (search_symbols): Call it instead of lookup_symbol.
3398 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3399
49f6c839
DE
3400 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3401 Adjust address for DW_OP_GNU_addr_index.
3402 * dwarf2expr.h (dwarf_expr_context): Update comment.
3403 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3404 all callers updated. Handle TLS vars described with
3405 DW_OP_GNU_const_index.
3406 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3407 and DW_OP_GNU_const_index.
3408 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3409
6ac9ef80
DE
3410 * block.c (find_block_in_blockvector): Make explicit the fact that we
3411 ignore GLOBAL_BLOCK.
3412
4cd18215
TT
34132012-06-18 Tom Tromey <tromey@redhat.com>
3414
3415 * c-exp.y (operator): Remove trailing space after "delete" and
3416 "delete[]".
3417
a9b8d892
JK
34182012-06-18 Mark Kettenis <kettenis@gnu.org>
3419 Jan Kratochvil <jan.kratochvil@redhat.com>
3420
3421 Switch i386 and derived targets to ON_STACK.
3422 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3423 (amd64_dicos_init_abi): Remove its installment.
3424 * dicos-tdep.c (dicos_init_abi): Remove the
3425 set_gdbarch_call_dummy_location call. Update the comment here.
3426 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3427 (i386_dicos_init_abi): Remove its installment.
3428 * i386-tdep.c (i386_push_dummy_code): New function.
3429 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3430 i386_push_dummy_code.
3431
e2e4d78b
JK
34322012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3433
3434 Remove stale dummy frames.
3435 * breakpoint.c: Include dummy-frame.h.
3436 (longjmp_breakpoint_ops): New variable.
3437 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3438 bp_longjmp_call_dummy.
3439 (bpstat_what, bptype_string, print_one_breakpoint_location)
3440 (init_bp_location): Support bp_longjmp_call_dummy.
3441 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3442 (set_longjmp_breakpoint_for_call_dummy)
3443 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3444 functions.
3445 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3446 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3447 FIXME comment and extend the other comment for bp_call_dummy.
3448 (set_longjmp_breakpoint_for_call_dummy)
3449 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3450 * dummy-frame.c: Include gdbthread.h.
3451 (pop_dummy_frame_bpt): New function.
3452 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3453 (dummy_frame_discard): New function.
3454 (cleanup_dummy_frames): Update the comment about longjmps.
3455 * dummy-frame.h (dummy_frame_discard): New declaration.
3456 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3457 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3458 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3459 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3460 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3461 keep_going if IS_LONGJMP and there is no other reason to stop.
3462
09d5912c
TT
34632012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3464
3465 * remote-sim.c (sim_command_completer): Initialize
3466 variable 'result'.
3467
1788b2d3
JK
34682012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3469
3470 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3471 * dwarf2loc.c (call_site_parameter_matches): Support
3472 CALL_SITE_PARAMETER_PARAM_OFFSET.
3473 (needs_dwarf_reg_entry_value): Push stub value.
3474 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3475 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3476 * gdbtypes.h (enum call_site_parameter_kind): New item
3477 CALL_SITE_PARAMETER_PARAM_OFFSET.
3478 (struct call_site.parameter.u): New field param_offset.
3479
24c5c679
JK
34802012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3481
3482 Code cleanup: Generalize call_site.parameter key.
3483 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3484 variable dwarf_reg. New variable kind_u. Update parameters to
3485 push_dwarf_reg_entry_value.
3486 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3487 * dwarf2expr.h (enum call_site_parameter_kind)
3488 (union call_site_parameter_u): Forward declarations.
3489 (struct dwarf_expr_context_funcs): Update parameters and their
3490 description for push_dwarf_reg_entry_value.
3491 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3492 * dwarf2loc.c (call_site_parameter_matches): New function.
3493 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3494 description. Use call_site_parameter_matches.
3495 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3496 Update parameters and their description.
3497 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3498 New variable kind_u. Adjust the caller for updated parameters.
3499 (needs_dwarf_reg_entry_value): Update parameters.
3500 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3501 instead of attr. Update for the changed fields of struct
3502 call_site_parameter.
3503 * gdbtypes.h: Include dwarf2expr.h.
3504 (enum call_site_parameter_kind): New.
3505 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3506 fb_offset into new union u.
3507
ac142d96
L
35082012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3509
3510 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3511 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3512 for x32.
3513
ba224c70
L
35142012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3515
3516 * amd64-linux-nat.c (compat_x32_clock_t): New.
3517 (compat_x32_siginfo_t): Likewise.
3518 (compat_x32_siginfo_from_siginfo): Likewise.
3519 (siginfo_from_compat_x32_siginfo): Likewise.
3520 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3521 and siginfo_from_compat_x32_siginfo for x32.
3522
7ecbc825
HZ
35232012-06-15 Hui Zhu <hui_zhu@mentor.com>
3524
3525 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3526
233dfcf0
L
35272012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3528
3529 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3530 instead of gdbarch_ptr_bit.
3531 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3532 (amd64_supply_native_gregset): Likewise.
3533 (amd64_collect_native_gregset): Likewise.
3534 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3535 (amd64_supply_xsave): Likewise.
3536 (amd64_collect_fxsave): Likewise.
3537 (amd64_collect_xsave): Likewise.
3538
6da38f42
L
35392012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3540
3541 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3542 (amd64_linux_read_description): Check DS segment register for
3543 x32 process.
3544
663b969e
TT
35452012-06-15 Tom Tromey <tromey@redhat.com>
3546
3547 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3548 init_cutu_and_read_dies.
3549
d6f05027
IS
35502012-06-15 Iain Sandoe <iain@codesourcery.com>
3551
3552 * MAINTAINERS (Write After Approval): Add myself to the list.
3553
6598ed07
TT
35542012-06-15 Tom Tromey <tromey@redhat.com>
3555
3556 * valops.c (value_find_oload_method_list): Now static.
3557 * value.h (value_find_oload_method_list): Don't declare.
3558
2b214ea6
TT
35592012-06-15 Tom Tromey <tromey@redhat.com>
3560
3561 * valops.c (find_overload_match): Use value_ind.
3562
a210c238
MR
35632012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3564
3565 * infrun.c (handle_inferior_event): Correct indentation.
3566
3771a44c
DE
35672012-06-14 Doug Evans <dje@google.com>
3568
3569 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3570 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3571 All uses updated.
3572 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3573 updated. Handle DEBUG_LOC_START_LENGTH.
3574 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3575 (loclist_describe_location): Ditto.
3576
1c5a993e
MR
35772012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3578
3579 PR backtrace/13866
3580 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3581 after hiding inline functions.
3582
0b155465
JB
35832012-06-13 Joel Brobecker <brobecker@adacore.com>
3584
3585 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3586 _initialize_inf_ttrace.
3587
45717bac
JB
35882012-06-13 Joel Brobecker <brobecker@adacore.com>
3589
3590 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3591 _initialize_hppa_hpux_nat.
3592
34370865
JB
35932012-06-13 Joel Brobecker <brobecker@adacore.com>
3594
3595 * remote-sim.c (sim_command_completer): Change type of return
3596 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3597
284c5a60
MK
35982012-06-13 Mark Kettenis <kettenis@gnu.org>
3599 Jan Kratochvil <jan.kratochvil@redhat.com>
3600
3601 PR tdep/14222
3602 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3603 stack on a 16-byte boundary.
3604
2535757a
TT
36052012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3606
3607 * jit.c (finalize_symtab): Set function's return type to 'void' by
3608 default.
3609
fff4548b
MK
36102012-06-13 Mark Kettenis <kettenis@gnu.org>
3611 H.J. Lu <hongjiu.lu@intel.com>
3612
5a83521a
MK
3613 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3614 Move bits common to both the classic LP64 and the new x32 ILP32
3615 ABI here.
3616 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3617 (amd64_x32_linux_init_abi): New function.
3618 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3619 subtype.
3620
fff4548b
MK
3621 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3622 * i386-tdep.c (i386_pseudo_register_name): Make public.
3623 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3624 * amd64-tdep.c (amd64_dword_names): Add "eip".
3625 (amd64_x32_pseudo_register_type): New function
3626 (amd64_x32_init_abi): New function.
3627
dd80ea3c
JK
36282012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3629
3630 PR build/14003
3631 * inferior.h (struct inferior_suspend_state): Comment out.
3632 (struct inferior): Comment out the field suspend.
3633 * infrun.c (struct infcall_suspend_state): Comment out the field
3634 inferior_suspend.
3635 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3636 out its assignment.
3637
50af5481
JK
36382012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3639
3640 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3641 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3642 function comment. Return ERROR for unresolved cases. Implement
3643 returning proper NAME.
3644 (yylex): Accept also NAME from classify_inner_name.
3645 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3646 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3647 LOC_TYPEDEF type.
3648 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3649
d55637df
TT
36502012-06-13 Tom Tromey <tromey@redhat.com>
3651
3652 * breakpoint.c (condition_completer): New function.
3653 (_initialize_breakpoint): Use it.
3654 * value.c (complete_internalvar): New function.
3655 * value.h (complete_internalvar): Declare.
3656
49c4e619
TT
36572012-06-13 Tom Tromey <tromey@redhat.com>
3658
3659 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3660 * breakpoint.c (catch_syscall_completer): Return a VEC.
3661 * cli/cli-cmds.c (complete_command): Update.
3662 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3663 (complete_on_enum): Likewise.
3664 * command.h: Include gdb_vecs.h.
3665 (completer_ftype): Change return type.
3666 (complete_on_cmdlist, complete_on_enum): Likewise.
3667 * completer.c (noop_completer, filename_completer)
3668 (location_completer): Return a VEC.
3669 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3670 to a VEC.
3671 (expression_completer, complete_line_internal, complete_line)
3672 (command_completer): Return a VEC.
3673 (gdb_completion_word_break_characters, line_completion_function):
3674 Update.
3675 * completer.h: Include gdb_vecs.h.
3676 (complete_line, noop_completer, filename_completer)
3677 (expression_completer, location_completer, command_completer):
3678 Update.
3679 * f-lang.c (f_word_break_characters): Return a VEC.
3680 * interps.c (interpreter_completer): Return a VEC.
3681 * language.h (struct language_defn)
3682 <la_make_symbol_completion_list>: Return a VEC.
3683 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3684 * symtab.c (free_completion_list): Take a VEC.
3685 (return_val_size, return_val_index): Remove.
3686 (return_val): Now a VEC.
3687 (completion_list_add_name): Update.
3688 (default_make_symbol_completion_list_break_on)
3689 (default_make_symbol_completion_list, make_symbol_completion_list)
3690 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3691 Return a VEC.
3692 (add_filename_to_list): Update.
3693 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3694 <list>: Now a VEC.
3695 (maybe_add_partial_symtab_filename): Update.
3696 (make_source_files_completion_list): Return a VEC.
3697 * symtab.h (default_make_symbol_completion_list_break_on)
3698 (default_make_symbol_completion_list, make_symbol_completion_list)
3699 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3700 (make_source_files_completion_list): Update.
3701
625e8578
TT
37022012-06-13 Tom Tromey <tromey@redhat.com>
3703
3704 * breakpoint.c (add_catch_command): Use completer_ftype.
3705 * breakpoint.h: Include command.h.
3706 (add_catch_command): Use completer_ftype.
3707 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3708 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3709 Use completer_ftype.
3710 * command.h (completer_ftype): New typedef.
3711 (set_cmd_completer): Use it.
3712 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3713 completer_ftype.
3714
5eb3b062
PA
37152012-06-13 Pedro Alves <palves@redhat.com>
3716
3717 Partial revert of previous change.
3718
3719 * serial.c (scb_base): New global.
3720 (serial_for_fd): New.
3721 (serial_open, serial_fdopen_ops): Link new serial in open serials
3722 chain.
3723 (do_serial_close): Unlink serial from the open serials chain.
3724
8b3ee56d
PA
37252012-06-12 Pedro Alves <palves@redhat.com>
3726
3727 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3728 threads here.
3729 (prepare_for_detach): No longer context switch here in non-stop
3730 mode.
3731 (fetch_inferior_event): Ditto.
3732 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3733 to the event thread before removing breakpoints. Switch to the
3734 event thread before inserting breakpoints and resuming.
3735 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3736 event thread before resuming.
3737 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3738 Switch to the event thread before removing breakpoints.
3739
5d60742e
EZ
37402012-06-12 Eli Zaretskii <eliz@gnu.org>
3741
3742 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3743 special characters correctly for the Windows shells. See
3744 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3745 report.
3746 [!__MINGW32__]: Remove extra double quote character from special
3747 characters.
3748
a6feecf7
SS
37492012-06-11 Stan Shebs <stan@codesourcery.com>
3750
3751 * ui-out.h: Remove #if 0 declarations.
3752 * ui-out.c: Remove #if 0 functions.
3753
ddefb60f
PA
37542012-06-11 Pedro Alves <palves@redhat.com>
3755
3756 * ser-base.c (run_async_handler_and_reschedule): New.
3757 (fd_event, push_event): Use it.
3758 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3759 reference count to 1.
3760 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3761 instead of xfree.
3762 (serial_is_open, serial_ref, serial_unref): New.
3763 * serial.h (serial_open): Adjust comment.
3764 (serial_is_open): Declare.
3765 (serial_close): Adjust comment.
3766 (serial_ref, serial_unref) Declare.
3767 (struct serial): New field 'refcnt'.
3768
d5ad6aa5
PA
37692012-06-11 Pedro Alves <palves@redhat.com>
3770
3771 Remove #if 0'd "connect" command, and unnecessary associated
3772 refcounting and serial reuse bits.
3773
3774 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3775 * serial.c (last_serial_opened): Delete.
3776 (scb_base): Delete.
3777 (serial_open): Adjust.
3778 (serial_for_fd): Delete.
3779 (serial_fdopen_ops, do_serial_close): Adjust.
3780 (serial_fdopen_ops): Adjust.
3781
318aa544
PA
37822012-06-11 Pedro Alves <palves@redhat.com>
3783
3784 * serial.c (do_serial_close): Remove early return when SCB is
3785 null.
3786
07261596
TT
37872012-06-11 Tom Tromey <tromey@redhat.com>
3788
3789 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3790
cc80f267
JK
37912012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3792
3793 Fix regression by the "ambiguous linespec" series.
3794 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3795 get_last_displayed_symtab and get_last_displayed_line and depending
3796 on CURSAL.
3797
356d9f9d
TT
37982012-06-11 Tom Tromey <tromey@redhat.com>
3799
3800 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3801 (dw2_find_symbol_file): Use it.
3802
232b8704
ME
38032012-06-11 Michael Eager <eager@eagercon.com>
3804
3805 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3806 * mips-linux-tdep.h (mips_signals): New
3807
e81a37f7
TT
38082012-06-11 Tom Tromey <tromey@redhat.com>
3809
3810 * infrun.c (handle_inferior_event)
3811 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3812 breakpoint.
3813 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3814 exception logic in all cases. Update comments.
3815 (insert_longjmp_resume_breakpoint): Set the exception resume
3816 breakpoint.
3817
2e81047f
MR
38182012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3819
3820 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3821
4e32eda7
SCR
38222012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3823
3824 * valarith.c (binop_types_user_defined_p): Fix a typo.
3825
18648a37 38262012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3827 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3828
3829 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3830 * arch-utils.h: Declare.
3831 * gdbarch.sh: Add return_in_first_hidden_param_p.
3832 * gdbarch.c, gdbarch.h: Regenerated.
3833 * infcall.c (call_function_by_hand): Call
3834 gdbarch_return_in_first_hidden_param_p instead of
3835 language_pass_by_reference.
3836
3837 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3838 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3839 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3840 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3841 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3842 `cplus_return_struct_by_reference'.
3843 (tic6x_return_value): Handle language cplusplus.
3844 (tic6x_return_in_first_hidden_param_p): New.
3845 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3846
034e5797
DE
38472012-06-07 Doug Evans <dje@google.com>
3848
3849 * dwarf2read.c (dwarf2_cu): Add comment.
3850
6a00aa1e
MR
38512012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3852
3853 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3854 variable.
3855 (mips_eabi_push_dummy_call): Likewise.
3856 (mips_n32n64_push_dummy_call): Likewise.
3857 (mips_o32_push_dummy_call): Likewise.
3858 (mips_o64_push_dummy_call): Likewise.
3859
eaa05d59
MR
38602012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3861
3862 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3863
de13fcf2
MR
38642012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3865
3866 * mips-tdep.c (mips_pseudo_register_type): Use
3867 mips_float_register_p.
3868
c3a01a22
PA
38692012-06-06 Pedro Alves <palves@redhat.com>
3870
3871 * infrun.c (handle_inferior_event): Remove calls to
3872 reinit_frame_cache that follow a context_switch call.
3873
d25f45d9
PA
38742012-06-06 Pedro Alves <palves@redhat.com>
3875
3876 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3877 context_switch and remove stale comment.
3878
359f5fe6
PA
38792012-06-06 Pedro Alves <palves@redhat.com>
3880
3881 * infrun.c (struct execution_control_state): Remove
3882 `new_thread_event' field.
3883 (handle_inferior_event): Simplify new threads handling; don't
3884 resume the inferior if we find a new thread.
3885
2d4c29c5
TS
38862012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3887
3888 * NEWS: Document the deprecation of SH's 'regs' command.
3889 * inferior.h (all_registers_info): Add function declaration.
3890 * sh-tdep.c (sh_show_regs): Remove variable.
3891 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3892 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3893 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3894 (sh_show_regs_command): Remove functions.
3895 (sh_gdbarch_init): Don't set sh_show_regs.
3896 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3897 'info all-registers'.
3898 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3899 (sh64_show_regs): Remove functions.
3900 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3901
f5f1cdb6
JK
39022012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3903
3904 * configure.ac: Move development=true below AC_INIT.
3905 * configure: Regenerate.
3906
bf6309af
SS
39072012-06-05 Stan Shebs <stan@codesourcery.com>
3908
3909 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3910 gdb_stdout.
3911
45aa4659
JK
39122012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3913
3914 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3915 argument as ssize_t.
3916 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3917 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3918 * target.c (target_read_stack, target_write_memory)
3919 (target_write_raw_memory): Likewise.
3920 * target.h (target_read_stack, target_write_memory)
3921 (target_write_raw_memory): Likewise.
3922
1b162304
JK
39232012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3924
3925 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3926 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3927 * target.c (target_read_memory): Change LEN to ssize_t.
3928 * target.h (target_read_memory): Change LEN to ssize_t.
3929
8556afb4
PA
39302012-06-05 Pedro Alves <palves@redhat.com>
3931
3932 PR backtrace/13866
3933
3934 * breakpoint.c (until_break_command): Only fetch the selected
3935 frame after decode_line_1.
3936
fb139f32
PA
39372012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3938
3939 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3940 event breakpoint at _start, __start or main if a program
3941 interpreter is not found.
3942
a8e1bb34
JB
39432012-06-05 Joel Brobecker <brobecker@adacore.com>
3944
3945 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3946 Add declaration.
3947 * windows-tdep.c: #include "objfiles.h".
3948 (windows_iterate_over_objfiles_in_search_order): New function.
3949 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3950 iterate_over_objfiles_in_search_order gdbarch method to
3951 windows_iterate_over_objfiles_in_search_order.
3952 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3953
19630284
JB
39542012-06-05 Joel Brobecker <brobecker@adacore.com>
3955
3956 * gdbarch.sh: Add generation of
3957 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3958 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3959 (iterate_over_objfiles_in_search_order): New gdbarch method.
3960 * gdbarch.h, gdbarch.c: Regenerate.
3961 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3962 Add declaration.
3963 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3964 New function.
3965 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3966 out of lookup_symbol_aux_symtabs.
3967 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3968 call to lookup_symbol_aux_objfile.
3969 (struct global_sym_lookup_data): New type.
3970 (lookup_symbol_global_iterator_cb): New function.
3971 (lookup_symbol_global): Search for symbol using
3972 gdbarch_iterate_over_objfiles_in_search_order and
3973 lookup_symbol_global_iterator_cb.
3974 * findvar.c (struct minsym_lookup_data): New type.
3975 (minsym_lookup_iterator_cb): New function.
3976 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3977 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3978 and minsym_lookup_iterator_cb.
3979
67ff19f7
JB
39802012-06-05 Joel Brobecker <brobecker@adacore.com>
3981
3982 Revert the following patch:
3983 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3984 try locating the symbol in the symbol's own objfile first, before
3985 extending the search to all objfiles.
3986 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3987 out of lookup_symbol_aux_symtabs.
3988 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3989 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3990 Do not search EXCLUDE_OBJFILE.
3991 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3992 (lookup_symbol_global): Search for matches in the block's objfile
3993 first, before searching all other objfiles.
3994
ccab2054
JB
39952012-06-05 Joel Brobecker <brobecker@adacore.com>
3996
3997 * breakpoint.c (find_condition_and_thread): Stop parsing
3998 as soon as the first invalid keyword is found.
3999
e23d4a9c
JB
40002012-06-05 Joel Brobecker <brobecker@adacore.com>
4001
4002 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4003
70160166
JB
40042012-06-05 Joel Brobecker <brobecker@adacore.com>
4005
4006 * config/djgpp/djcheck.sh: Add copyright header.
4007
399501a5
JB
40082012-06-05 Joel Brobecker <brobecker@adacore.com>
4009
4010 * copyright.py (update_files, main): Fix path to update-copyright
4011 script.
4012
3770a159
JB
40132012-06-05 Joel Brobecker <brobecker@adacore.com>
4014
4015 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4016 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4017 for which a reminder to update by hand is printed.
4018
4aad0dfc
DE
40192012-06-04 Doug Evans <dje@google.com>
4020
4021 * buildsym.c (make_blockvector): Add comment.
4022
1f8cf220
PA
40232012-06-04 Pedro Alves <palves@redhat.com>
4024
4025 * arch-utils.c (default_gdb_signal_from_target): Delete.
4026 * arch-utils.h (default_gdb_signal_from_target): Delete.
4027 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4028 gdbarch_gdb_signal_from_target_p.
4029 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4030 predicate).
4031 * gdbarch.h: Regenerate.
4032 * gdbarch.c: Regenerate.
4033
86b49880
PA
40342012-06-04 Pedro Alves <palves@redhat.com>
4035
4036 * gdbarch.sh (gdb_signal_from_target): Mention that the
4037 implementation of the method must be host independent.
4038 * gdbarch.h: Regenerate.
4039
fe78531d
JK
40402012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4041
4042 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4043 parameters.
4044 (target_read_memory_bfd): New function.
4045 (symbol_file_add_from_memory): Use it.
4046
d790cf0a
DE
40472012-06-03 Doug Evans <dje@google.com>
4048
78e5175a
DE
4049 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4050 of primary symtab.
4051 (basic_lookup_transparent_type): Ditto.
4052
d790cf0a
DE
4053 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4054 (ALL_PRIMARY_SYMTABS): Use it.
4055 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4056 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4057 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4058 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4059 (basic_lookup_transparent_type): Ditto.
4060
c6e5ee5e
SDJ
40612012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4062
4063 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4064 it to optimize resolution of demangled name.
4065
a68ffae9
JK
40662012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4067
4068 * configure.ac (development): Define new variable.
4069 Call AC_CHECK_LIB for mcheck if $development.
4070 (ERROR_ON_WARNING): Enable it by default only if $development.
4071 * config.in: Regenerate.
4072 * configure: Regenerate.
4073
5299c1c4
JK
40742012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4075
4076 * target.c (target_read_memory): Make LEN argument as size_t.
4077 * target.h (target_read_memory): Likewise.
4078
40792012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4080
4081 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4082
0c56f59b
EBM
40832012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4084
4085 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4086 BookE interface for PowerPC server processors if not available
4087 in the Linux Kernel.
4088
71bdabee
KS
40892012-05-31 Keith Seitz <keiths@redhat.com>
4090
4091 * linespec.c (decode_objc): Add cleanup to free
4092 INFO.FILE_SYMTABS.
4093 (find_linespec_symbols): Add cleanup to free CLASSES.
4094 * symfile.c (find_separate_debug_file_by_debuglink): Add
4095 cleanup to free DEBUGLINK.
4096 * ui-out.c (clear_header_list): No need to check if
4097 HEADER_NEXT.COLHDR is NULL.
4098 Free HEADER_NEXT.COL_NAME.
4099
acbd605d
MGD
41002012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4101
4102 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4103 warning.
4104
65662cde
PA
41052012-05-30 Jeff Kenton <jkenton@tilera.com>
4106
4107 * configure.host (gdb_host_cpu): Handle tilegx*.
4108 (gdb_host): Handle tilegx-*-linux*.
4109 * tilegx-linux-nat.c: New file.
4110 * config/tilegx/linux.mh: New file.
4111
ade64f0e
PA
41122012-05-30 Jeff Kenton <jkenton@tilera.com>
4113
4114 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4115 tilegx-linux-tdep.o.
4116 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4117 tilegx-linux-tdep.c.
4118 * configure.tgt: Handle tilegx-*-linux*.
4119 * tilegx-tdep.h: New file.
4120 * tilegx-tdep.c: New file.
4121 * tilegx-linux-tdep.c: New file.
4122 * regformats/reg-tilegx.dat: New file.
4123
bb08bdbd
EBM
41242012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4125
4126 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4127 accounting of hw watchpoints on ppc.
4128
ebd86fb5
TJB
41292012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4130
4131 * source.c (openp): Expand tilde in path entries.
4132
0a0edcd5
DE
41332012-05-29 Doug Evans <dje@google.com>
4134
98cc87bd
DE
4135 * buildsym.c (block_compar): Fix comment.
4136 (end_symtab): Fix and clarify some comments.
4137
0a0edcd5
DE
4138 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4139 cleanup_undefined_types.
4140 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4141 All callers updated.
4142
6f0c7050
TT
41432012-05-29 Tom Tromey <tromey@redhat.com>
4144
4145 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4146 fails.
4147 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4148 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4149 fails.
4150 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4151 fails.
4152
ec95993c
TG
41532012-05-29 Tristan Gingold <gingold@adacore.com>
4154
4155 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4156 (struct darwin_info): ... New struct.
4157 (solib_darwin_pspace_data): New variable.
4158 (darwin_pspace_data_cleanup): New function.
4159 (get_darwin_info): Likewise.
4160 (darwin_dyld_version_ok, darwin_load_image_infos)
4161 (darwin_solib_get_all_image_info_addr_at_init)
4162 (darwin_solib_read_all_image_info_addr): Add info argument.
4163 Adjust code.
4164 (darwin_current_sos): Use per pspace structure.
4165 (darwin_solib_create_inferior_hook): Likewise.
4166 (darwin_clear_solib): Likewise.
4167 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4168
ae25568b
PA
41692012-05-28 Pedro Alves <palves@redhat.com>
4170
4171 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4172 block that uses them. Clear ecss before handling each event.
4173
0c5bf5a9
JK
41742012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * solib-svr4.c (svr4_current_sos): New comment on
4177 svr4_current_sos_via_xfer_libraries fall back.
4178
bfb05775
JK
41792012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4180
4181 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4182 it as a fallback for TYPE_IS_OPAQUE.
4183 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4184 symbols for lookup_symbol.
4185
685b1105
JK
41862012-05-24 John Steele Scott <toojays@toojays.net>
4187
4188 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4189 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4190 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4191 (check_producer): ... this new function, which also checks for ICC
4192 and caches the result.
4193 (producer_is_icc): New function.
4194 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4195 producer was ICC.
4196
22203bbf
PA
41972012-05-24 Pedro Alves <palves@redhat.com>
4198
4199 PR gdb/7205
4200
4201 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4202 (default_gdb_signal_to_target): ... this. Add comment.
4203 (default_gdb_signal_from_host): Rename to ...
4204 (default_gdb_signal_from_target): ... this. Add comment.
4205 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4206 (default_gdb_signal_to_target): ... this.
4207 (default_gdb_signal_from_host): Rename to ...
4208 (default_gdb_signal_from_target): ... this.
4209 * corelow.c (core_open): Adjust to naming change. Replace comment.
4210 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4211 (gdb_signal_from_target): ... this. Adjust to
4212 default_gdb_signal_from_host naming change. Extend comment.
4213 (gdb_signal_to_host): Rename to ...
4214 (gdb_signal_to_target): ... this. Adjust to
4215 default_gdb_signal_to_host naming change.
4216 * gdbarch.h, gdbarch.c: Renegerate.
4217
a493e3e2
PA
42182012-05-24 Pedro Alves <palves@redhat.com>
4219
4220 PR gdb/7205
4221
f782ad9b 4222 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4223
2ea28649
PA
42242012-05-24 Pedro Alves <palves@redhat.com>
4225
4226 PR gdb/7205
4227
4228 Replace target_signal with gdb_signal throughout.
4229
b09846a9
PA
42302012-05-24 Pedro Alves <palves@redhat.com>
4231
4232 PR tui/14159
4233
4234 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4235 string, instead of reusing the va_list argument.
4236
e77c107e
TT
42372012-05-24 Tom Tromey <tromey@redhat.com>
4238
4239 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4240 Remove.
4241
9fccedf7
DE
42422012-05-23 Doug Evans <dje@google.com>
4243
d50bd42b
DE
4244 * symtab.c (search_symbols): Formatting fixes.
4245 (print_symbol_info): Formatting fixes.
4246
9fccedf7
DE
4247 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4248 int64_t change to leb128 API.
4249 (read_encoded_value, decode_frame_entry_1): Ditto.
4250 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4251 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4252 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4253 (execute_stack_op): Ditto.
4254 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4255 (safe_read_uleb128, safe_read_sleb128): Ditto.
4256 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4257 (dwarf2_compile_expr_to_ax): Ditto.
4258 (locexpr_describe_location_piece): Ditto.
4259 (disassemble_dwarf_expression): Ditto.
4260 (locexpr_describe_location_1): Ditto.
4261
f3e0e960
SS
42622012-05-23 Stan Shebs <stan@codesourcery.com>
4263 Kwok Cheung Yeung <kcy@codesourcery.com>
4264
4265 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4266 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4267 (mi-cmd-info.o): New rule.
4268 * osdata.h (info_osdata_command): New declaration.
4269 * osdata.c (info_osdata_command): Change to non-static.
4270 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4271 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4272 * mi/mi-cmd-info.c: New file.
4273
c51fe631
DE
42742012-05-23 Doug Evans <dje@google.com>
4275
71cddcc1
DE
4276 * symtab.c (search_symbols): Pass NULL for file_matcher to
4277 expand_symtabs_matching if there are no files to match.
4278
c51fe631
DE
4279 * gdbtypes.c (lookup_typename): Simplify.
4280
a79378d4
PA
42812012-05-23 Pedro Alves <palves@redhat.com>
4282
4283 * arch-utils.h (default_target_signal_to_host): Delete.
4284 * arch-utils.c (default_target_signal_to_host): Delete.
4285 * gdbarch.sh (target_signal_to_host): Remove.
4286 * gdbarch.h, gdbarch.c: Regenerate.
4287
f664829e
DE
42882012-05-22 Doug Evans <dje@google.com>
4289
4290 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4291 "const gdb_byte *".
4292 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4293 (execute_cfa_program): Update to match API of leb128 functions.
4294 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4295 "const gdb_byte *".
4296 (read_unsigned_leb128, read_signed_leb128): Delete.
4297 (read_initial_length): Change type of buf argument to
4298 "const gdb_byte *".
4299 (read_encoded_value): Update to match API of leb128 functions.
4300 (decode_frame_entry): Change result to "const gdb_byte *", and
4301 similarly for "start" parameter.
4302 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4303 (dwarf2_build_frame_info): Change local frame_ptr to
4304 "const gdb_byte *".
4305 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4306 read_uleb128, read_sleb128. All callers updated.
4307 (safe_skip_leb128): New function.
4308 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4309 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4310 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4311 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4312 read_uleb128, read_sleb128.
4313 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4314 (execute_stack_op): Update to match API of leb128 functions.
4315 * dwarf2expr.h: #include "leb128.h".
4316 (read_uleb128, read_sleb128): Delete.
4317 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4318 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4319 * dwarf2loc.c (debug_loc_kind): New enum.
4320 (decode_debug_loc_addresses): New function.
4321 (decode_debug_loc_dwo_addresses): New function.
4322 (dwarf2_find_location_expression): Rewrite.
4323 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4324 (locexpr_describe_location_piece): Ditto.
4325 (disassemble_dwarf_expression): Ditto.
4326 (locexpr_describe_location_1): Ditto.
4327 (loclist_describe_location): Rewrite.
4328 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4329 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4330 (dwarf2_section_buffer_overflow_complaint): Renamed from
4331 dwarf2_macros_too_long_complaint. All callers updated.
4332 (skip_leb128): Delete.
4333 (init_cu_die_reader): Initialize reader->buffer_end.
4334 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4335 (skip_form_bytes): New arg buffer_end. All callers updated.
4336 Replace call to skip_leb128 with gdb_skip_leb128.
4337 (skip_unknown_opcode): New arg mac_end. All callers updated.
4338 (fill_in_loclist_baton): Initialize baton->from_dwo.
4339
837a1b32
MR
43402012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4341
4342 * mips-linux-nat.c (mips_linux_read_description): Use a more
4343 verbose error message.
4344
d0e64392
MR
43452012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4346
4347 * NEWS: Add MIPS/Linux DSP support.
4348 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4349 (SIGCONTEXT_DSPCTL): New macro.
4350 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4351 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4352 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4353 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4354 (N64_SIGCONTEXT_HI3): Likewise.
4355 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4356 (N64_SIGCONTEXT_LO3): Likewise.
4357 (N64_SIGCONTEXT_DSPCTL): Likewise.
4358 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4359 (mips_linux_o32_sigframe_init): Handle DSP registers.
4360 (mips_linux_n32n64_sigframe_init): Likewise.
4361
8bea7ed1
PM
43622012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4363
4364 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4365 call to abort.
4366
dab06dbe
PA
43672012-05-22 Pedro Alves <palves@redhat.com>
4368
4369 * target.h (store_waitstatus): Move declaration ...
4370 * inf-child.h (store_waitstatus): ... here.
4371 * target.c: Move inclusion of gdb_wait.h, and ...
4372 (store_waitstatus): ... this ...
4373 * inf-child.c: ... here.
4374 * linux-nat.c: Include inf-child.h.
4375 * rs6000-nat.c: Include inf-child.h.
4376 * spu-linux-nat.c: Include inf-child.h.
4377
43011e52
PM
43782012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4379
4380 * tracepoint.c (start_tracing): Add missing i18n markup.
4381 (stop_tracing, set_trace_user): Ditto.
4382 (set_trace_notes, set_trace_stop_notes): Ditto.
4383
b1af9e97
TT
43842012-05-21 Tom Tromey <tromey@redhat.com>
4385
4386 PR c++/7173:
4387 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4388 types.
4389 * value.h (value_cast_pointers): Update.
4390 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4391 (value_cast): Update.
4392 (update_search_result): New function.
4393 (do_search_struct_field): New, from search_struct_field. Check
4394 for ambiguous results.
4395 (search_struct_field): Rewrite.
4396 * infcall.c (value_arg_coerce): Update.
4397 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4398 value_cast_pointers.
4399 * ada-lang.c (ada_convert_actual): Update.
4400
e9e5e6b3
TT
44012012-05-21 Tom Tromey <tromey@redhat.com>
4402
4403 * macroexp.c (macro_stringify): Terminate the string.
4404
1564a261
JK
44052012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4406
4407 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4408 Describe it.
4409 * auto-load.c (auto_load_expand_dir_vars): New function.
4410 (auto_load_safe_path_vec_update): Use it, remove the
4411 substitute_path_component call thanks to it.
4412 (auto_load_objfile_script): Remove the debug_file_directory processing.
4413 Use auto_load_expand_dir_vars, remove the substitute_path_component
4414 call thanks to it.
4415 * configure: Regenerate.
4416 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4417 path. Escape $ also for $debugdir.
4418 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4419 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4420
a3ec0bb1
DE
44212012-05-20 Doug Evans <dje@google.com>
4422
4423 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4424 before use. Check for symtab->includes == NULL before scanning it.
4425
d467df4e
MR
44262012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4427
4428 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4429
4cc0665f
MR
44302012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4431
4432 * NEWS: Add microMIPS support and "set mips compression",
4433 "show mips compression" commands.
4434 * mips-tdep.h (mips_isa): New enum.
4435 (gdbarch_tdep): Add mips_isa.
4436 (mips_pc_is_mips16): Update prototype.
4437 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4438 * mips-tdep.c (mips_compression_mips16): New variable.
4439 (mips_compression_micromips): Likewise.
4440 (mips_compression_strings): Likewise.
4441 (mips_compression_string): Likewise.
4442 (is_mips16_isa, is_micromips_isa): New functions.
4443 (is_mips16_addr): Rename to...
4444 (is_compact_addr): ... this.
4445 (unmake_mips16_addr): Likewise to...
4446 (unmake_compact_addr): ... this.
4447 (make_mips16_addr): Likewise to...
4448 (make_compact_addr): ... this.
4449 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4450 functions.
4451 (mips_elf_make_msymbol_special): Handle microMIPS code.
4452 (msymbol_is_special): Rename to...
4453 (msymbol_is_mips16): ... this.
4454 (mips_make_symbol_special, mips_pc_is_mips16): Update
4455 accordingly.
4456 (msymbol_is_mips, msymbol_is_micromips): New functions.
4457 (mips16_to_32_reg): Rename to...
4458 (mips_reg3_to_reg): ... this.
4459 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4460 (mips_pc_isa): Likewise.
4461 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4462 code.
4463 (mips_fetch_instruction): Pass return status instead of printing
4464 an error message if requested. Handle microMIPS code. Bail out
4465 on an invalid ISA.
4466 (micromips_op): New macro.
4467 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4468 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4469 (b6s4_op, b7s3_reg): Likewise.
4470 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4471 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4472 (mips_insn_size): New function.
4473 (mips32_next_pc): Update mips_fetch_instruction call.
4474 (micromips_relative_offset7): New function.
4475 (micromips_relative_offset10): Likewise.
4476 (micromips_relative_offset16): Likewise.
4477 (micromips_pc_insn_size): Likewise.
4478 (micromips_bc1_pc): Likewise.
4479 (micromips_next_pc): Likewise.
4480 (unpack_mips16): Update mips_fetch_instruction call.
4481 (extended_mips16_next_pc): Update according to change to
4482 mips16_to_32_reg.
4483 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4484 code.
4485 (mips16_scan_prologue): Update mips_fetch_instruction call.
4486 Update according to change to mips16_to_32_reg.
4487 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4488 (mips_insn16_frame_base_sniffer): Likewise.
4489 (micromips_decode_imm9): New function.
4490 (micromips_scan_prologue): Likewise.
4491 (mips_micro_frame_cache): Likewise.
4492 (mips_micro_frame_this_id): Likewise.
4493 (mips_micro_frame_prev_register): Likewise.
4494 (mips_micro_frame_sniffer): Likewise.
4495 (mips_micro_frame_unwind): New variable.
4496 (mips_micro_frame_base_address): New function.
4497 (mips_micro_frame_base): New variable.
4498 (mips_micro_frame_base_sniffer): New function.
4499 (mips32_scan_prologue): Update mips_fetch_instruction call.
4500 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4501 rather than for MIPS16.
4502 (mips_insn32_frame_base_sniffer): Likewise.
4503 (mips_addr_bits_remove): Handle microMIPS code.
4504 (deal_with_atomic_sequence): Rename to...
4505 (mips_deal_with_atomic_sequence): ... this. Update the type
4506 of the variable used to hold an instruction. Remove the ISA bit
4507 check. Update mips_fetch_instruction call.
4508 (micromips_deal_with_atomic_sequence): New function.
4509 (deal_with_atomic_sequence): Likewise.
4510 (mips_about_to_return): Handle microMIPS code. Update
4511 mips_fetch_instruction call.
4512 (heuristic_proc_start): Check for the standard MIPS ISA rather
4513 than for MIPS16. Update mips_pc_is_mips16 and
4514 mips_fetch_instruction calls. Handle microMIPS code.
4515 (mips_push_dummy_code): Handle microMIPS code.
4516 (mips_eabi_push_dummy_call): Likewise.
4517 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4518 (mips_o64_push_dummy_call): Handle microMIPS code.
4519 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4520 (is_delayed): Remove function.
4521 (mips_single_step_through_delay): Replace the call to is_delayed
4522 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4523 Handle microMIPS code.
4524 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4525 microMIPS code.
4526 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4527 call.
4528 (micromips_in_function_epilogue_p): New function.
4529 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4530 call.
4531 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4532 Handle microMIPS.
4533 (gdb_print_insn_mips): Likewise.
4534 (mips_breakpoint_from_pc): Likewise.
4535 (mips_remote_breakpoint_from_pc): New function.
4536 (mips32_instruction_has_delay_slot): Simplify making use of the
4537 updated mips_fetch_instruction interface.
4538 (micromips_instruction_has_delay_slot): New function.
4539 (mips16_instruction_has_delay_slot): Simplify making use of the
4540 updated mips_fetch_instruction interface.
4541 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4542 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4543 calls. Handle microMIPS code.
4544 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4545 (mips_skip_trampoline_code): Handle microMIPS code.
4546 (global_mips_compression): New function.
4547 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4548 file flags. Register the microMIPS remote breakpoint handler
4549 and heuristic frame unwinder.
4550 (show_mips_compression): New function.
4551 (_initialize_mips_tdep): Add the "set mips compression" and
4552 "show mips compression" commands.
4553
22e048c9
SDJ
45542012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4555
4556 * ada-lang.c:
4557 * ada-tasks.c:
4558 * ada-varobj.c:
4559 * amd64-darwin-tdep.c:
4560 * arm-symbian-tdep.c:
4561 * arm-tdep.c:
4562 * avr-tdep.c:
4563 * ax-gdb.c:
4564 * bfin-linux-tdep.c:
4565 * breakpoint.c:
4566 * c-valprint.c:
4567 * cli/cli-cmds.c:
4568 * coffread.c:
4569 * cp-support.c:
4570 * cris-tdep.c:
4571 * dwarf2-frame-tailcall.c:
4572 * dwarf2-frame.c:
4573 * dwarf2expr.c:
4574 * dwarf2loc.c:
4575 * dwarf2read.c:
4576 * elfread.c:
4577 * eval.c:
4578 * expprint.c:
4579 * f-valprint.c:
4580 * frv-tdep.c:
4581 * h8300-tdep.c:
4582 * hppa-hpux-tdep.c:
4583 * hppa-tdep.c:
4584 * hppanbsd-tdep.c:
4585 * i386-nto-tdep.c:
4586 * i386-tdep.c:
4587 * i387-tdep.c:
4588 * ia64-tdep.c:
4589 * jit.c:
4590 * linespec.c:
4591 * linux-tdep.c:
4592 * lm32-tdep.c:
4593 * m2-valprint.c:
4594 * m32c-tdep.c:
4595 * m32r-rom.c:
4596 * m32r-tdep.c:
4597 * m68k-tdep.c:
4598 * m68klinux-tdep.c:
4599 * mi/mi-main.c:
4600 * microblaze-tdep.c:
4601 * mips-linux-tdep.c:
4602 * mips-tdep.c:
4603 * mn10300-tdep.c:
4604 * p-valprint.c:
4605 * parse.c:
4606 * ppc-linux-tdep.c:
4607 * ppc-sysv-tdep.c:
4608 * printcmd.c:
4609 * python/py-finishbreakpoint.c:
4610 * python/py-inferior.c:
4611 * python/py-infthread.c:
4612 * python/py-type.c:
4613 * python/python.c:
4614 * remote-fileio.c:
4615 * remote-m32r-sdi.c:
4616 * remote-mips.c:
4617 * reverse.c:
4618 * rl78-tdep.c:
4619 * rs6000-aix-tdep.c:
4620 * rs6000-tdep.c:
4621 * s390-tdep.c:
4622 * score-tdep.c:
4623 * sh64-tdep.c:
4624 * skip.c:
4625 * solib-darwin.c:
4626 * solib-dsbt.c:
4627 * solib-frv.c:
4628 * sparc-tdep.c:
4629 * spu-multiarch.c:
4630 * spu-tdep.c:
4631 * stack.c:
4632 * symfile.c:
4633 * symtab.c:
4634 * tic6x-tdep.c:
4635 * tracepoint.c:
4636 * v850-tdep.c:
4637 * valarith.c:
4638 * valprint.c:
4639 * value.c:
4640 * xcoffread.c:
4641 * xtensa-tdep.c:
4642 * ada-lang.c:
4643 * ada-tasks.c:
4644 * ada-varobj.c:
4645 * amd64-darwin-tdep.c:
4646 * arm-symbian-tdep.c:
4647 * arm-tdep.c: Delete unused variables.
4648
aff139ff
JK
46492012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4650
4651 Rename $ddir to $datadir.
4652 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4653 * auto-load.c (auto_load_safe_path_vec_update)
4654 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4655 * configure: Regenerate.
4656 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4657 Likewise. Remove the 'use $ddir' help string.
4658
f7bfa992
JK
46592012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4660
4661 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4662 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4663
9cb709b6
TT
46642012-05-18 Tom Tromey <tromey@redhat.com>
4665
4666 PR exp/13907:
4667 * valprint.h (struct value_print_options) <symbol_print>: New
4668 field.
4669 * valprint.c (user_print_options): Add default for symbol_print.
4670 (show_symbol_print): New function.
4671 (generic_val_print): Respect symbol_print.
4672 (_initialize_valprint): Add "print symbol" setting.
4673 * f-valprint.c (f_val_print): Respect symbol_print.
4674 * c-valprint.c (c_val_print): Respect symbol_print.
4675 * NEWS: Update.
4676 * printcmd.c (print_address_symbolic): Return int. Ignore some
4677 zero-size symbols.
4678 (print_address_demangle): Return int.
4679 * defs.h: (print_address_symbolic): Return int.
4680 * value.h (print_address_demangle): Return int.
4681
b012acdd
TT
46822012-05-18 Tom Tromey <tromey@redhat.com>
4683
4684 * valprint.c (val_print_string): Don't print leading space.
4685 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4686 print space before string or vtbl.
4687 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4688 before string.
4689 * jv-valprint.c (java_value_print): Print space before string.
4690 * go-valprint.c (print_go_string): Print space before string.
4691 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4692 space before string.
4693 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4694 space before string or vtbl.
4695 * auxv.c (fprint_target_auxv): Print space after address.
4696
1d51a733
TT
46972012-05-18 Tom Tromey <tromey@redhat.com>
4698
4699 * printcmd.c (print_address_demangle): Remove special case for 0.
4700
edf0c1b7
TT
47012012-05-18 Tom Tromey <tromey@redhat.com>
4702
4703 * printcmd.c (print_address_demangle): Add 'opts' argument.
4704 * p-valprint.c (pascal_val_print): Update.
4705 * jv-valprint.c (java_val_print): Update.
4706 * value.h: Update.
4707 * valprint.c (generic_val_print): Update.
4708 (print_function_pointer_address): Add 'options' argument. Remove
4709 'addressprint' argument. Update.
4710 * m2-valprint.c (print_unpacked_pointer): Update.
4711 * gnu-v3-abi.c (print_one_vtable): Update.
4712 (gnuv3_print_method_ptr): Update.
4713 * f-valprint.c (f_val_print): Update.
4714 * cp-valprint.c (cp_print_value_fields): Update.
4715 * valprint.h (print_function_pointer_address): Update.
4716 * c-valprint.c (c_val_print): Update.
4717
9703b513
TT
47182012-05-18 Tom Tromey <tromey@redhat.com>
4719
4720 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4721 directly corresponding to the found psymtab.
4722 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4723 (dw2_find_pc_sect_symtab): Use it.
4724 * block.h (blockvector_contains_pc): Declare.
4725 * block.c (find_block_in_blockvector): New function.
4726 (blockvector_for_pc_sect): Use it.
4727 (blockvector_contains_pc): New function.
4728
5a439849
MR
47292012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4730
4731 * mips-tdep.h (mips_write_pc): New prototype.
4732 * mips-tdep.c (mips_write_pc): Make external, add description.
4733 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4734 add description.
4735
8376de04
MR
47362012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4737
4738 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4739 mips_regnum->pc.
4740 (mips_unwind_pc, mips_write_pc): Likewise.
4741 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4742 gdbarch_read_pc.
4743
d3581e61
JB
47442012-05-17 Joel Brobecker <brobecker@adacore.com>
4745
4746 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4747 proc_warn, proc_error, proc_get_status, proc_flags,
4748 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4749 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4750 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4751 proc_stop_process, proc_wait_for_stop, proc_run_process,
4752 proc_set_traced_signals, proc_set_traced_faults,
4753 proc_set_traced_sysentry, proc_set_traced_sysexit,
4754 proc_set_held_signals, proc_get_held_signals,
4755 proc_get_traced_signals, proc_get_traced_faults,
4756 proc_get_traced_sysentry, proc_get_traced_sysexit,
4757 proc_clear_current_fault, proc_set_current_signal,
4758 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4759 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4760 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4761 proc_get_current_thread, proc_get_current_thread,
4762 proc_get_current_thread, proc_update_threads,
4763 proc_update_threads, proc_update_threads, proc_update_threads,
4764 proc_iterate_over_threads, procfs_find_new_threads,
4765 procfs_pid_to_str): Make static. Remove advance declaration.
4766 (proc_cursig): Make static. Conditionalized defintion on
4767 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4768 (proc_syscall, proc_set_kill_on_last_close,
4769 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4770 proc_get_pending_signals, proc_get_signal_actions,
4771 proc_trace_signal, proc_ignore_signal): Delete.
4772
81b9b86e
SDJ
47732012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4774
4775 * coffread.c (cs_section_address): Passing proper argument for
4776 `bfd_get_section_vma'.
4777 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4778 `bfd_get_section_flags'.
4779 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4780 `bfd_get_section_vma'.
4781
abc9d0dc
TT
47822012-05-16 Tom Tromey <tromey@redhat.com>
4783
4784 PR macros/13205:
4785 * macrotab.h: (macro_define_special): Declare.
4786 (enum macro_special_kind): New.
4787 (struct macro_definition) <argc, replacement>: Update comments.
4788 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4789 (macro_define_object_internal): New function.
4790 (macro_define_object): Use it.
4791 (macro_define_special): New function.
4792 (fixup_definition): New function.
4793 (macro_lookup_definition, foreach_macro_in_scope)
4794 (foreach_macro): Use fixup_definition.
4795 * macroexp.h (macro_stringify): Declare.
4796 * macroexp.c (free_buffer_return_text): New function.
4797 (stringify): Constify "arg".
4798 (macro_stringify): New function.
4799 * dwarf2read.c (macro_start_file): Call macro_define_special.
4800
6a3a010b 48012012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4802 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4803
4804 * breakpoint.h (bp_location): Add related_address member.
4805 * inferior.h (get_return_value): Take a pointer to struct value
4806 instead of struct type for the function requested.
4807 * value.h (using_struct_return): Likewise.
4808 * gdbarch.sh (return_value): Take a pointer to struct value
4809 instead of struct type for the function requested.
4810 * breakpoint.c (set_breakpoint_location_function): Initialize
4811 related_address for bp_gnu_ifunc_resolver breakpoints.
4812 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4813 requested function's address to gdbarch_return_value.
4814 * eval.c (evaluate_subexp_standard): Pass the requested
4815 function's address to using_struct_return.
4816 * infcall.c (call_function_by_hand): Pass the requested
4817 function's address to using_struct_return and
4818 gdbarch_return_value.
4819 * infcmd.c (get_return_value): Take a pointer to struct value
4820 instead of struct type for the function requested.
4821 (print_return_value): Update accordingly.
4822 (finish_command_continuation): Likewise.
4823 * stack.c (return_command): Pass the requested function's
4824 address to using_struct_return and gdbarch_return_value.
4825 * value.c (using_struct_return): Take a pointer to struct value
4826 instead of struct type for the function requested. Pass the
4827 requested function's address to gdbarch_return_value.
4828 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4829 New function_value member, replacing function_type.
4830 (bpfinishpy_dealloc): Update accordingly.
4831 (bpfinishpy_pre_stop_hook): Likewise.
4832 (bpfinishpy_init): Likewise. Record the requested function's
4833 address.
4834 * mips-tdep.c (mips_fval_reg): New enum.
4835 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4836 words put in GP registers.
4837 (mips_o64_push_dummy_call): Update a comment.
4838 (mips_o32_return_value): Take a pointer to struct value instead
4839 of struct type for the function requested and use it to check if
4840 using the MIPS16 calling convention. Return the designated
4841 general purpose registers for floating-point values returned in
4842 MIPS16 mode.
4843 (mips_o64_return_value): Likewise.
4844 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4845 (ppc_sysv_abi_broken_return_value): Likewise.
4846 (ppc64_sysv_abi_return_value): Likewise.
4847 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4848 value instead of struct type for the function requested.
4849 * amd64-tdep.c (amd64_return_value): Likewise.
4850 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4851 * arm-tdep.c (arm_return_value): Likewise.
4852 * avr-tdep.c (avr_return_value): Likewise.
4853 * bfin-tdep.c (bfin_return_value): Likewise.
4854 * cris-tdep.c (cris_return_value): Likewise.
4855 * frv-tdep.c (frv_return_value): Likewise.
4856 * h8300-tdep.c (h8300_return_value): Likewise.
4857 (h8300h_return_value): Likewise.
4858 * hppa-tdep.c (hppa32_return_value): Likewise.
4859 (hppa64_return_value): Likewise.
4860 * i386-tdep.c (i386_return_value): Likewise.
4861 * ia64-tdep.c (ia64_return_value): Likewise.
4862 * iq2000-tdep.c (iq2000_return_value): Likewise.
4863 * lm32-tdep.c (lm32_return_value): Likewise.
4864 * m32c-tdep.c (m32c_return_value): Likewise.
4865 * m32r-tdep.c (m32r_return_value): Likewise.
4866 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4867 * m68k-tdep.c (m68k_return_value): Likewise.
4868 (m68k_svr4_return_value): Likewise.
4869 * m88k-tdep.c (m88k_return_value): Likewise.
4870 * mep-tdep.c (mep_return_value): Likewise.
4871 * microblaze-tdep.c (microblaze_return_value): Likewise.
4872 * mn10300-tdep.c (mn10300_return_value): Likewise.
4873 * moxie-tdep.c (moxie_return_value): Likewise.
4874 * mt-tdep.c (mt_return_value): Likewise.
4875 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4876 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4877 (ppc_sysv_abi_broken_return_value): Likewise.
4878 (ppc64_sysv_abi_return_value): Likewise.
4879 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4880 * rl78-tdep.c (rl78_return_value): Likewise.
4881 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4882 * rx-tdep.c (rx_return_value): Likewise.
4883 * s390-tdep.c (s390_return_value): Likewise.
4884 * score-tdep.c (score_return_value): Likewise.
4885 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4886 (sh_return_value_fpu): Likewise.
4887 * sh64-tdep.c (sh64_return_value): Likewise.
4888 * sparc-tdep.c (sparc32_return_value): Likewise.
4889 * sparc64-tdep.c (sparc64_return_value): Likewise.
4890 * spu-tdep.c (spu_return_value): Likewise.
4891 * tic6x-tdep.c (tic6x_return_value): Likewise.
4892 * v850-tdep.c (v850_return_value): Likewise.
4893 * vax-tdep.c (vax_return_value): Likewise.
4894 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4895 * xtensa-tdep.c (xtensa_return_value): Likewise.
4896 * gdbarch.c: Regenerate.
4897 * gdbarch.h: Regenerate.
4898
29ca12b3
TT
48992012-05-15 Tom Tromey <tromey@redhat.com>
4900
4901 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4902
588ae58c
JB
49032012-05-15 Joel Brobecker <brobecker@adacore.com>
4904
4905 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4906 of command in two error message.
4907
855a6e68
JB
49082012-05-15 Joel Brobecker <brobecker@adacore.com>
4909
4910 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4911
d634f2de
JB
49122012-05-15 Joel Brobecker <brobecker@adacore.com>
4913
4914 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4915
9cc815f5
JK
49162012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4917
4918 * NEWS (show auto-load scripts-directory): Add forgotten command.
4919
6a609e58
JK
49202012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4921
4922 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4923 parameters.
4924
ac1438b5
L
49252012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4926
4927 * amd64-tdep.c: Include features/i386/x32.c and
4928 features/i386/x32-avx.c.
4929 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4930 initialize_tdesc_x32_avx.
4931
e7e0cddf
SS
49322012-05-14 Stan Shebs <stan@codesourcery.com>
4933
4934 Add dynamic printf.
4935 * breakpoint.h (enum bptype): New type bp_dprintf.
4936 (struct breakpoint): New field extra_string.
4937 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4938 (create_breakpoint): Add extra_string arg.
4939 * breakpoint.c (dprintf_breakpoint_ops): New.
4940 (is_breakpoint): Add bp_dprintf.
4941 (bpstat_what): Add dprintf case.
4942 (bptype_string): Ditto.
4943 (print_one_breakpoint_location): Ditto.
4944 (init_bp_location): Ditto.
4945 (bkpt_print_mention): Ditto.
4946 (dprintf_style_enums): New array.
4947 (dprintf_style): New global.
4948 (dprintf_function): New global.
4949 (dprintf_channel): New global.
4950 (update_dprintf_command_list): New function.
4951 (update_dprintf_commands): New function.
4952 (init_breakpoint_sal): Add extra_string argument, handle it.
4953 (create_breakpoint_sal): Add extra_string argument.
4954 (create_breakpoints_sal): Add extra_string argument, update callers.
4955 (find_condition_and_thread): Add extra argument.
4956 (create_breakpoint): Add extra_string argument, record it.
4957 (dprintf_command): New function.
4958 (break_command_1): Add arg to create_breakpoint call.
4959 (handle_gnu_v3_exceptions): Ditto.
4960 (trace_command): Ditto.
4961 (ftrace_command): Ditto.
4962 (strace_command): Ditto.
4963 (bkpt_print_mention): Add dprintf case.
4964 (create_breakpoint_sal_default): Add extra_string argument.
4965 (_initialize_breakpoint): Add new commands.
4966 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4967 * python/py-breakpoint.c (bppy_init): Ditto.
4968 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4969
8ae38c14
MR
49702012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4971
4972 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4973
9f676e66
SCR
49742012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4975
4976 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4977 unsigned long long.
4978
7efc75aa
SCR
49792012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4980
4981 Add a new function gdb.find_pc_line to the Python API.
4982 * NEWS (Python Scripting): Add entry about the new function.
4983 * python/python.c (gdbpy_find_pc_line): New function which
4984 implements gdb.find_pc_line.
4985 (GdbMethods): Add entry for the new function.
4986
70af3797
PA
49872012-05-12 Pedro Alves <palves@redhat.com>
4988
4989 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4990 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4991
06da564e
EZ
49922012-05-12 Eli Zaretskii <eliz@gnu.org>
4993
4994 * inferior.c: Include completer.h
4995 (initialize_inferiors): Set completer of add-inferior to
4996 filename_completer.
4997
0288cee2
L
49982012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4999
5000 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5001 gdbarch_ptr_bit for x32 core dump.
5002
f6537a2c
L
50032012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5004
5005 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5006 and features/i386/x32-avx-linux.c.
5007
85d4a676
SS
50082012-05-11 Stan Shebs <stan@codesourcery.com>
5009 Kwok Cheung Yeung <kcy@codesourcery.com>
5010
5011 * NEWS: Describe new info os commands.
5012 * common/linux-osdata.c (PID_T, TIME_T): Define.
5013 (MAX_PID_T_STRLEN): New.
5014 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5015 MAX_PID_T_STRLEN.
5016 (command_from_pid): Add comment. Change to use PID_T.
5017 (commandline_from_pid): Change to use PID_T.
5018 (user_from_pid): Add comment.
5019 (get_process_owner): Add comment. Change to use PID_T and
5020 MAX_PID_T_STRLEN.
5021 (get_number_of_cpu_cores): Add comment.
5022 (get_cores_used_by_process): Add comment. Change to use PID_T and
5023 MAX_PID_T_STRLEN.
5024 (linux_xfer_osdata_processes): Change to use PID_T and
5025 MAX_PID_T_STRLEN.
5026 (compare_processes): New function.
5027 (linux_xfer_osdata_processgroups): New function.
5028 (linux_xfer_osdata_threads): Change to use PID_T.
5029 (linux_xfer_osdata_fds): New function.
5030 (format_socket_state, print_sockets): New functions.
5031 (union socket_addr): New union.
5032 (linux_xfer_osdata_isockets): New function.
5033 (time_from_time_t, group_from_gid): New functions.
5034 (linux_xfer_osdata_shm): New function.
5035 (linux_xfer_osdata_sem): New function.
5036 (linux_xfer_osdata_msg): New function.
5037 (linux_xfer_osdata_modules): New function.
5038 (osdata_table): Add new entries.
5039 * common/buffer.c (buffer_xml_printf): Add support for long and
5040 long long format specifiers.
5041
f24afd6d
L
50422012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5043
5044 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5045 (tdesc_x32_avx_linux): Likewise.
5046
7349ff92
JK
50472012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 Implement multi-component --with-auto-load-dir.
5050 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5051 entries.
5052 (--with-auto-load-safe-path): Update the default value description.
5053 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5054 New.
5055 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5056 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5057 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5058 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5059 "set auto-load scripts-directory".
5060 * config.in: Regenerate.
5061 * configure: Regenerate.
5062 * configure.ac (--with-auto-load-dir): New configure option.
5063 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5064
6dea1fbd
JK
50652012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5066
5067 Provide $ddir substitution for --with-auto-load-safe-path.
5068 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5069 entries.
5070 * auto-load.c: Include observer.h.
5071 (auto_load_safe_path_vec_update): Call substitute_path_component for
5072 each component. New variable ddir_subst.
5073 (auto_load_gdb_datadir_changed): New function.
5074 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5075 AUTO_LOAD_SAFE_PATH. New comment.
5076 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5077 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5078 * config.in: Regenerate.
5079 * configure: Regenerate.
5080 * configure.ac (--auto-load-safe-path): Rename
5081 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5082 GDB_DATADIR/auto-load.
5083 * defs.h (substitute_path_component): New declaration.
5084 * top.c: Include observer.h.
5085 (set_gdb_datadir): New function.
5086 (init_main): Install it for "set data-directory".
5087 * utils.c (substitute_path_component): New function.
5088
b09aca3a
JK
50892012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5090
5091 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5092 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5093 DEBUG_FILE_DIRECTORY. Handle multiple components of
5094 DEBUG_FILE_DIRECTORY.
5095
95554aad
TT
50962012-05-10 Tom Tromey <tromey@redhat.com>
5097
5098 * dwarf2read.c (recursively_write_psymbols): New function.
5099 (write_psymtabs_to_index): Use it.
5100
5101 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5102 field.
5103 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5104 (load_partial_comp_unit): Update.
5105 (queue_comp_unit): Add argument 'pretend_language'.
5106 (process_queue): Update.
5107 (psymtab_to_symtab_1): Skip dependencies that have a user.
5108 (load_partial_comp_unit_reader): Give meaning to the 'data'
5109 argument.
5110 (load_full_comp_unit): Add 'pretend_language' argument.
5111 (process_full_comp_unit): Add 'pretend_language' argument. Set
5112 language on CU.
5113 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5114 Update.
5115 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5116 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5117 Update.
5118 (prepare_one_comp_unit): Add 'pretend_language' argument.
5119
5120 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5121 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5122 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5123 (dw2_do_instantiate_symtab): Check whether symtab was read in
5124 before queueing.
5125 (dw2_instantiate_symtab): Add assertion. Call
5126 process_cu_includes.
5127 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5128 (partial_symtab_p): New typedef.
5129 (set_partial_user): New function.
5130 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5131 (scan_partial_symbols): Add imported CU to imported_symtabs.
5132 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5133 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5134 (get_symtab, recursively_compute_inclusions)
5135 (compute_symtab_includes, process_cu_includes)
5136 (process_imported_unit_die): New functions.
5137 (process_die) <DW_TAG_imported_unit>: New case.
5138 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5139
5140 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5141 comment.
5142 (struct partial_die_info) <locdesc>: Remove.
5143 <d>: New field.
5144 (process_psymtab_comp_unit): Add 'read_partial' argument.
5145 Update.
5146 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5147 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5148 (add_partial_symbol): Update.
5149 (process_die): Handle DW_TAG_partial_unit.
5150 (read_file_scope): Update comment.
5151 (load_partial_dies): Handle DW_TAG_imported_unit.
5152 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5153 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5154
e871fbb9
TT
51552012-05-10 Tom Tromey <tromey@redhat.com>
5156
5157 * cc-with-dwz.sh: New file.
5158
b5b04b5b
TT
51592012-05-10 Tom Tromey <tromey@redhat.com>
5160
5161 * symtab.h (struct symtab) <includes, user>: New fields.
5162 * block.h (struct block_iterator) <d, idx, which>: New fields.
5163 * block.c (initialize_block_iterator, find_iterator_symtab)
5164 (block_iterator_step, block_iter_name_step)
5165 (block_iter_match_step): New functions.
5166 (block_iterator_first, block_iterator_next)
5167 (block_iter_name_first, block_iter_name_next)
5168 (block_iter_match_first, block_iter_match_next): Rewrite.
5169 (get_block_symtab): New function.
5170
84a146c9
TT
51712012-05-10 Tom Tromey <tromey@redhat.com>
5172
5173 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5174 set_block_symtab.
5175 * jit.c (finalize_symtab): Use allocate_global_block,
5176 set_block_symtab.
5177 * buildsym.c (finish_block_internal): New function, from old
5178 finish_block.
5179 (finish_block): Rewrite.
5180 (end_symtab): Use finish_block_internal, set_block_symtab.
5181 * block.h (struct global_block): New.
5182 (allocate_global_block, set_block_symtab): Declare.
5183 * block.c (allocate_global_block, set_block_symtab): New
5184 functions.
5185
9439a077
TT
51862012-05-10 Tom Tromey <tromey@redhat.com>
5187
5188 * psymtab.c (partial_map_expand_apply): Add assertion.
5189 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5190 (psymtab_to_symtab): Find unshared psymtab.
5191 (dump_psymtab): Print including psymtabs.
5192 (recursively_search_psymtabs): New function.
5193 (expand_symtabs_matching_via_partial): Use it.
5194 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5195 fields.
5196 (enum psymtab_search_status): New.
5197
8157b174
TT
51982012-05-10 Tom Tromey <tromey@redhat.com>
5199
5200 * tracepoint.c (scope_info): Update.
5201 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5202 (find_pc_sect_symtab, search_symbols)
5203 (default_make_symbol_completion_list_break_on)
5204 (make_file_symbol_completion_list): Update.
5205 * symmisc.c (dump_symtab_1): Update.
5206 * stack.c (print_frame_args, iterate_over_block_locals)
5207 (print_frame_labels, iterate_over_block_arg_vars): Update.
5208 * python/py-block.c (block_object) <dict>: Remove.
5209 <block>: New field.
5210 <iter>: Change type.
5211 (blpy_iter): Update.
5212 (blpy_block_syms_iternext): Update.
5213 * psymtab.c (map_block): Use block iterators.
5214 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5215 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5216 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5217 * infrun.c (check_exception_resume): Update.
5218 * cp-support.c (make_symbol_overload_list_block): Update.
5219 * coffread.c (patch_opaque_types): Update.
5220 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5221 * block.h (struct block_iterator): New.
5222 (block_iterator_first, block_iterator_next, block_iter_name_first)
5223 (block_iter_name_next, block_iter_match_first)
5224 (block_iter_match_next): Declare.
5225 (ALL_BLOCK_SYMBOLS): Redefine.
5226 * block.c (block_iterator_first, block_iterator_next)
5227 (block_iter_name_first, block_iter_name_next)
5228 (block_iter_match_first, block_iter_match_next): New functions.
5229 * ada-lang.c (ada_add_block_symbols)
5230 (ada_make_symbol_completion_list): Use block iterator.
5231
a2ca7a52
TT
52322012-05-10 Tom Tromey <tromey@redhat.com>
5233
5234 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5235 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5236 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5237 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5238 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5239 Update.
5240
64ea88dc
JB
52412012-05-10 Joel Brobecker <brobecker@adacore.com>
5242
5243 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5244 print-file-var-lib2.c, print-file-var-main.c and
5245 print-file-var.exp (located in gdb/testsuite/gdb.base).
5246
99a547d6
JB
52472012-05-10 Joel Brobecker <brobecker@adacore.com>
5248
5249 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5250 try locating the symbol in the symbol's own objfile first, before
5251 extending the search to all objfiles.
5252 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5253 out of lookup_symbol_aux_symtabs.
5254 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5255 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5256 Do not search EXCLUDE_OBJFILE.
5257 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5258 (lookup_symbol_global): Search for matches in the block's objfile
5259 first, before searching all other objfiles.
5260
0ece64fd
TG
52612012-05-10 Tristan Gingold <gingold@adacore.com>
5262
5263 * printcmd.c (set_command): Add pre/post inc/dec.
5264
3d16a105
FCE
52652012-05-09 Frank Ch. Eigler <fche@redhat.com>
5266
5267 * gdb.1: Document -ex option.
5268
2efbc0f7
JB
52692012-05-09 Joel Brobecker <brobecker@adacore.com>
5270
5271 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5272 * inferior.h (AT_SYMBOL): Delete.
5273
2c76a0c7
JB
52742012-05-09 Joel Brobecker <brobecker@adacore.com>
5275
5276 * mips-tdep.c (mips_push_dummy_code): New function.
5277 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5278 ON_STACK and install mips_push_dummy_code as our gdbarch
5279 push_dummy_code routine.
5280
9401a810
PA
52812012-05-09 Pedro Alves <palves@redhat.com>
5282
5283 * target.c (set_maintenance_target_async_permitted): Rename to ...
5284 (set_target_async_command): ... this.
5285 (show_maintenance_target_async_permitted): Rename to ...
5286 (show_target_async_command): ... this.
5287 (initialize_targets): Adjust.
5288
3929b321
DE
52892012-05-08 Doug Evans <dje@google.com>
5290
5291 * go-exp.y (classify_name): Add missing assignment of fields of
5292 yylval.ssym.
5293
c41535fd
EZ
52942012-05-08 Eli Zaretskii <eliz@gnu.org>
5295
5296 Display the ">" prompt in interactive mode while reading canned
5297 commands, even when the current interpreter is MI.
5298
5299 * interps.c (interp_set_temp): New function.
5300
5301 * interps.h (interp_set_temp): Add prototype.
5302
5303 * cli/cli-script.c (restore_interp): New cleanup function.
5304 (read_command_lines): Temporarily override the current interpreter
5305 with CLI and arrange for restoring the original one.
5306
c0749c4d
JS
53072012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5308
5309 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5310
d7333987
SDJ
53112012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5312
5313 * probe.c (parse_probes): Move conditional to check for
5314 debuginfo files from here...
5315 * stap-probe.c (stap_get_probes): ... to here.
5316
649e6d92
MK
53172012-05-07 Mark Kettenis <kettenis@gnu.org>
5318 H.J. Lu <hongjiu.lu@intel.com>
5319
5320 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5321 `movl %esp, %ebp' for the X32 ABI.
5322
f39c6ffd
TT
53232012-05-07 Tom Tromey <tromey@redhat.com>
5324
5325 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5326 get_DW_TAG_name.
5327 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5328 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5329 (dwarf_stack_op_name): Remove.
5330 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5331 (decode_locdesc): Use get_DW_OP_name.
5332 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5333 (dwarf2_compile_expr_to_ax): Likewise.
5334 (disassemble_dwarf_expression): Likewise.
5335 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5336
1e1f6591
CLT
53372012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5338
5339 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5340 (sh_linux_sigtramp_cache): New function.
5341 (sh_linux_sigreturn_init): New function.
5342 (sh_linux_rt_sigreturn_init): New function.
5343 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5344 patterns.
5345 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5346 syscall codes.
5347 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5348 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5349 (sh_linux_init_abi): Add init calls to register new tramp_frame
5350 definitions under 32-bit SH, update comments.
5351
545c08b4
PA
53522012-05-07 Pedro Alves <palves@redhat.com>
5353
daac165e
PA
5354 PR gdb/10952
5355
545c08b4
PA
5356 * amd64-linux-tdep.c: Include glibc-tdep.h.
5357 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5358 gdbarch_skip_solib_resolver callback.
5359
af2c1515
JK
53602012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5361
5362 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5363 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5364 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5365 (add_auto_load_safe_path): Change the error message.
5366 (_initialize_auto_load): Change the "safe-path" help text.
5367 * configure: Regenerate
5368 * configure.ac (--without-auto-load-safe-path): Set
5369 WITH_AUTO_LOAD_SAFE_PATH to /.
5370
1067f998
SDJ
53712012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5372
5373 * stap-probe.h: Do not include unecessary `probe.h'.
5374
45dfa85a
AM
53752012-05-05 Alan Modra <amodra@gmail.com>
5376
5377 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5378 bfd_und_section_ptr.
5379 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5380 and bfd_com_section_ptr.
5381
cf093994
JB
53822012-05-04 Joel Brobecker <brobecker@adacore.com>
5383
762ebb75 5384 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5385
d40dc7a8
JB
53862012-05-04 Joel Brobecker <brobecker@adacore.com>
5387
5388 * windows-nat.h (segment_register_p_ftype): New typedef.
5389 (windows_set_segment_register_p): Add declaration.
5390 * windows-nat.c (segment_register_p): New static global.
5391 (windows_set_segment_register_p): New function.
5392 (do_windows_fetch_inferior_registers): Add special handling
5393 for segment registers.
5394 * amd64-windows-nat.c: #include "amd64-tdep.h".
5395 (amd64_windows_segment_register_p): New function.
5396 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5397 * i386-windows-nat.c: #include "i386-tdep.h".
5398 (i386_windows_segment_register_p): New function.
5399 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5400
52b3699b
TG
54012012-05-04 Tristan Gingold <gingold@adacore.com>
5402
5403 * printcmd.c (set_command): Emit a warning if the expression is not
5404 an assignment.
5405
94c74239
JB
54062012-05-03 Joel Brobecker <brobecker@adacore.com>
5407
5408 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5409 Make static.
5410
fcf57f19
SDJ
54112012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5412
5413 * stap-probe.c (stap_is_operator): Change declaration.
5414 (stap_get_opcode): Change return value.
5415 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5416 `stap_parse_argument_1'.
5417
27d2932e
PA
54182012-05-03 Pedro Alves <pedro@codesourcery.com>
5419
5420 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5421 debug log.
5422
a20ee7a4
SCR
54232012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5424
5425 Add two new methods global_block and static_block to gdb.Symtab
5426 objects.
5427 * NEWS (Python scripting): Add entry about the new methods.
5428 * python/py-symtab.c (stpy_global_block): New function which
5429 implements the gdb.Symtab.global_block() method.
5430 (stpy_static_block): New function which implements the
5431 gdb.Symtab.static_block() method.
5432 (symtab_object_methods): Add entries for the two new methods.
5433
943cb756
DE
54342012-05-03 Doug Evans <dje@google.com>
5435
5436 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5437 files.
5438
f4644a3f
YQ
54392012-05-03 Yao Qi <yao@codesourcery.com>
5440
5441 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5442 space.
5443 (i386_process_record): Ditto.
5444
ef61f180
JB
54452012-05-02 Joel Brobecker <brobecker@adacore.com>
5446
5447 * infcall.c (unwind_on_signal_p): Make static.
5448
02f1df11
JB
54492012-05-02 Joel Brobecker <brobecker@adacore.com>
5450
5451 * sol-thread.c (solaris_pid_to_str): Make static.
5452 (_initialize_sol_thread): Add prototype.
5453
39023530
JB
54542012-05-02 Joel Brobecker <brobecker@adacore.com>
5455
5456 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5457
c6b0c501
CF
54582012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5459
5460 * MAINTAINERS: Remove myself.
5461
1ef71717
JK
54622012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5463
5464 Fix --without-auto-load-safe-path for MS-Windows host platform.
5465 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5466
b31b86a7
EZ
54672012-05-02 Eli Zaretskii <eliz@gnu.org>
5468
5469 * gdb_curses.h: Undefine KEY_EVENT before including curses
5470 headers. Move "#undef MOUSE_MOVED" before any curses header
5471 inclusion.
5472
777532fc
SDJ
54732012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5474
5475 * features/i386/i386-mmx-linux.c: Regenerate.
5476 * features/rs6000/powerpc-32.c: Likewise.
5477 * features/rs6000/powerpc-32l.c: Likewise.
5478 * features/rs6000/powerpc-403.c: Likewise.
5479 * features/rs6000/powerpc-403gc.c: Likewise.
5480 * features/rs6000/powerpc-405.c: Likewise.
5481 * features/rs6000/powerpc-505.c: Likewise.
5482 * features/rs6000/powerpc-601.c: Likewise.
5483 * features/rs6000/powerpc-602.c: Likewise.
5484 * features/rs6000/powerpc-603.c: Likewise.
5485 * features/rs6000/powerpc-604.c: Likewise.
5486 * features/rs6000/powerpc-64.c: Likewise.
5487 * features/rs6000/powerpc-64l.c: Likewise.
5488 * features/rs6000/powerpc-750.c: Likewise.
5489 * features/rs6000/powerpc-860.c: Likewise.
5490 * features/rs6000/powerpc-e500.c: Likewise.
5491 * features/rs6000/powerpc-e500l.c: Likewise.
5492 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5493 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5494 * features/rs6000/rs6000.c: Likewise.
5495
d71871bc
SDJ
54962012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5497
5498 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5499 variable.
5500 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5501 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5502 (stap_parse_argument) <e>: Likewise.
5503 (handle_stap_probe) <byte_order>: Likewise.
5504
fd820528
DE
55052012-04-30 Doug Evans <dje@google.com>
5506
5507 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5508 init_and_read_dies_worker. All callers updated.
5509 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5510 replaced with init_cutu_and_read_dies.
5511 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5512 (find_partial_die): Remove FIXME. Don't free current CU.
5513
ec3f619d 55142012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5515
5516 * contrib: New directory.
5517 * contrib/test_pubnames_and_indexes.py: New file.
5518
fceca515
DE
55192012-04-30 Doug Evans <dje@google.com>
5520
5521 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5522 All callers updated.
5523 (init_cu_die_reader): Verify the section is non-empty.
5524 (dwarf_decode_line_header): Don't dereference section->asection
5525 until we know the section is present.
5526
311fe7e1
SDJ
55272012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5528
5529 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5530 probes.
5531
5977971a
YQ
55322012-04-29 Yao Qi <yao@codesourcery.com>
5533
5534 * gdb-code-style.el: New hook gdb-markup-hook
5535 and gdb-comment-hook.
5536
dee91e82
DE
55372012-04-28 Doug Evans <dje@google.com>
5538
3019eac3
DE
5539 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5540 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5541 objfile->obfd.
5542 * symfile.h (dwarf2_debug_sections): New member addr.
5543 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5544 (ctx_no_get_addr_index): New function.
5545 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5546 (ctx_no_get_addr_index): Declare.
5547 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5548 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5549 (dwarf_expr_ctx_funcs): Update.
5550 (needs_get_addr_index): New function.
5551 (needs_frame_ctx_funcs): Update.
5552 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5553 * dwarf2read.c: #include "gdbcore.h".
5554 (dwarf2_per_objfile): New members addr, dwo_files.
5555 (dwarf2_elf_names): Add entry for addr.
5556 (struct dwo_section_names): New type.
5557 (dwo_section_names): New static global.
5558 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5559 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5560 old debug_types_section member updated to use this.
5561 Rename member debug_types_section to info_or_types_section,
5562 all uses updated.
5563 (signatured_type): Rename member type_offset to type_offset_in_tu,
5564 all uses updated. New member type_offset_in_section.
5565 (struct dwo_sections): New type.
5566 (struct dwo_unit): New type.
5567 (struct dwo_file): New type.
5568 (die_reader_specs): New member dwo_file.
5569 (dwarf2_locate_sections): Watch for .debug_addr.
5570 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5571 (dwarf2_read_section): Get bfd of section from bfd's asection,
5572 instead of objfile.
5573 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5574 (create_signatured_type_table_from_index): Initialize
5575 sig_type->info_or_types_section.
5576 (dw2_get_file_names): Statement lists for type units with DWO files
5577 live in the DWO file.
5578 (create_debug_types_hash_table): New function.
5579 (create_all_type_units): Rewrite.
5580 (init_cu_die_reader): New arg dwo_file, all callers updated.
5581 (init_and_read_dies_worker): Get section from
5582 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5583 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5584 continue reading the CU/TU from there.
5585 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5586 updated. Get section from this_cu->info_or_types_section.
5587 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5588 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5589 DW_FORM_GNU_str_index.
5590 (hash_dwo_file, eq_dwo_file): New functions.
5591 (allocate_dwo_file_hash_table): New function.
5592 (hash_dwo_unit, eq_dwo_unit): New functions.
5593 (allocate_dwo_unit_table): New function.
5594 (dwarf2_locate_dwo_sections): New function.
5595 (struct create_dwo_info_table_data): New type.
5596 (create_debug_info_hash_table_reader): New function.
5597 (create_debug_info_hash_table): New function.
5598 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5599 (lookup_dwo_file): New function.
5600 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5601 (free_dwo_file, free_dwo_file_cleanup): New functions.
5602 (free_dwo_file_from_slot, free_dwo_files): New functions.
5603 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5604 (dwarf2_record_block_ranges): Ditto.
5605 (read_partial_die): Ditto.
5606 (process_enumeration_scope): Update to use type_offset_in_section.
5607 (read_full_die_1): New function.
5608 (read_full_die): Rewrite.
5609 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5610 DW_FORM_GNU_str_index.
5611 (read_addr_index_1, read_addr_index): New functions.
5612 (read_addr_index_from_leb128): New function.
5613 (struct dwarf2_read_addr_index_data): New type.
5614 (dwarf2_read_addr_index_reader): New function.
5615 (dwarf2_read_addr_index): New function.
5616 (read_str_index): New function.
5617 (leb128_size): New function.
5618 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5619 If processing a type unit from a DWO file, get the line section
5620 from the DWO file.
5621 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5622 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5623 DW_FORM_GNU_str_index.
5624 (lookup_die_type): Check whether section offset of type's die is
5625 known before looking it up. Remove assert. Condition can
5626 legimately happen for inter-cu type references.
5627 (dwarf_attr_name): Handle Fission attributes.
5628 (dwarf_form_name): Handle Fission forms.
5629 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5630 DW_FORM_GNU_str_index.
5631 (follow_die_sig): Update to use type_offset_in_section.
5632 (decode_locdesc): New case DW_OP_GNU_addr_index.
5633 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5634 DW_FORM_GNU_str_index.
5635 (cu_debug_loc_section): New function.
5636 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5637 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5638 Free DWO files if present.
5639 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5640
dee91e82
DE
5641 Refactor DIE reading.
5642 * dwarf2read.c (dwarf2_per_objfile): Replace members
5643 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5644 (die_reader_specs): New member "die_section". Temporarily make
5645 member "buffer" non-const, pending constifying all info_ptr uses.
5646 (die_reader_func_ftype): New typedef.
5647 (dw2_get_file_names_reader): New function.
5648 (dw2_get_file_names): Rewrite.
5649 (read_and_check_type_unit_head): Rename arg type_offset to
5650 type_offset_in_tu.
5651 (create_all_type_units): Improve debugging message.
5652 Improve dummy type unit check.
5653 (init_cu_die_reader): New arg "section". All callers updated.
5654 (init_and_read_dies_worker): New function.
5655 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5656 (init_cutu_and_read_dies_no_follow): New function.
5657 (init_cutu_and_read_dies_simple): New function.
5658 (process_psymtab_comp_unit_reader): New function.
5659 (process_psymtab_comp_unit): Delete args section,
5660 is_debug_types_section. Rewrite. All callers updated.
5661 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5662 All callers updated. Rewrite.
5663 (load_partial_comp_unit_reader): New function.
5664 (load_partial_comp_unit): Rewrite.
5665 (skip_children): New arg reader. Delete args buffer, cu.
5666 All callers updated.
5667 (skip_one_die): New arg reader. Delete args buffer, cu.
5668 All callers updated.
5669 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5670 All callers updated.
5671 (load_full_comp_unit_reader): New function.
5672 (load_full_comp_unit): Rewrite.
5673 (read_comp_unit): Delete.
5674 (read_die_and_children_1): Delete, contents moved ...
5675 (read_die_and_children): ... here.
5676 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5677 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5678 All callers updated.
5679 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5680 All callers updated.
5681 (find_partial_die): Rewrite load_all_dies support.
5682 (read_attribute_value): New arg reader. Delete args abfd, cu.
5683 All callers updated.
5684 (read_attribute): New arg reader. Delete args abfd, cu.
5685 All callers updated.
5686 (load_full_type_unit): Add assert.
5687 (read_signatured_type_reader): New function.
5688 (read_signatured_type): Rewrite.
5689 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5690 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5691 All callers updated. Set per_cu->cu = NULL after freeing it.
5692 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5693 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5694 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5695 (set_die_type): Update.
5696 (get_die_type_at_offset): Update.
5697 (read_file_scope): Call prepare_one_comp_unit.
5698 (read_type_unit_scope): Ditto.
5699 (prepare_one_comp_unit): Set producer if present.
5700
72d59e0d
SDJ
57012012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5702
5703 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5704 gettext function on `error'.
5705
0fefef59
DE
57062012-04-27 Doug Evans <dje@google.com>
5707
5708 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5709 is empty.
5710
28106bc2
SDJ
57112012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5712 Tom Tromey <tromey@redhat.com>
5713
5714 * breakpoint.c (struct breakpoint_objfile_data)
5715 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5716 <exception_probes>: New fields.
5717 (free_breakpoint_probes): New function.
5718 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5719 `_Unwind_DebugHook'.
5720 (create_exception_master_breakpoint): Likewise.
5721 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5722 * infrun.c: Including necessary header files for handling SystemTap
5723 probes.
5724 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5725 via SystemTap probes.
5726 (check_exception_resume): Remove `func' argument. Handle exception
5727 unwinding breakpoint set via a SystemTap probe.
5728 (insert_exception_resume_from_probe): New function.
5729
55aa24fb
SDJ
57302012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5731 Tom Tromey <tromey@redhat.com>
5732 Jan Kratochvil <jan.kratochvil@redhat.com>
5733
5734 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5735 (COMMON_OBS): Likewise.
5736 (HFILES_NO_SRCDIR): Add `probe'.
5737 * NEWS: Mention support for static and SystemTap probes.
5738 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5739 SystemTap probes' arguments parser.
5740 * arm-linux-tdep.c: Including headers needed to perform the parsing
5741 of SystemTap probes' arguments.
5742 (arm_stap_is_single_operand): New function.
5743 (arm_stap_parse_special_token): Likewise.
5744 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5745 probes' arguments parser.
5746 * ax-gdb.c (require_rvalue): Removing static declaration.
5747 (gen_expr): Likewise.
5748 * ax-gdb.h (gen_expr): Declaring function.
5749 (require_rvalue): Likewise.
5750 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5751 (bkpt_probe_breakpoint_ops): New variable.
5752 (momentary_breakpoint_from_master): Set the `probe' value.
5753 (add_location_to_breakpoint): Likewise.
5754 (break_command_1): Using proper breakpoint_ops according to the
5755 argument passed by the user in the command line.
5756 (bkpt_probe_insert_location): New function.
5757 (bkpt_probe_remove_location): Likewise.
5758 (bkpt_probe_create_sals_from_address): Likewise.
5759 (bkpt_probe_decode_linespec): Likewise.
5760 (tracepoint_probe_create_sals_from_address): Likewise.
5761 (tracepoint_probe_decode_linespec): Likewise.
5762 (tracepoint_probe_breakpoint_ops): New variable.
5763 (trace_command): Using proper breakpoint_ops according to the
5764 argument passed by the user in the command line.
5765 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5766 static probes on breakpoints and tracepoints.
5767 * breakpoint.h (struct bp_location) <probe>: New field.
5768 * cli-utils.c (skip_spaces_const): New function.
5769 (extract_arg): Likewise.
5770 * cli-utils.h (skip_spaces_const): Likewise.
5771 (extract_arg): Likewise.
5772 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5773 * configure.ac: Append `stap-probe.o' to be generated when ELF
5774 support is present.
5775 * configure: Regenerate.
5776 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5777 * elfread.c: Include `probe.h' and `arch-utils.h'.
5778 (probe_key): New variable.
5779 (elf_get_probes): New function.
5780 (elf_get_probe_argument_count): Likewise.
5781 (elf_evaluate_probe_argument): Likewise.
5782 (elf_compile_to_ax): Likewise.
5783 (elf_symfile_relocate_probe): Likewise.
5784 (stap_probe_key_free): Likewise.
5785 (elf_probe_fns): New variable.
5786 (elf_sym_fns): Add `sym_probe_fns' value.
5787 (elf_sym_fns_lazy_psyms): Likewise.
5788 (elf_sym_fns_gdb_index): Likewise.
5789 (_initialize_elfread): Initialize objfile cache for static
5790 probes.
5791 * gdb_vecs.h (struct probe): New forward declaration.
5792 (probe_p): New VEC declaration.
5793 * gdbarch.c: Regenerate.
5794 * gdbarch.h: Regenerate.
5795 * gdbarch.sh (stap_integer_prefix): New variable.
5796 (stap_integer_suffix): Likewise.
5797 (stap_register_prefix): Likewise.
5798 (stap_register_suffix): Likewise.
5799 (stap_register_indirection_prefix): Likewise.
5800 (stap_register_indirection_suffix): Likewise.
5801 (stap_gdb_register_prefix): Likewise.
5802 (stap_gdb_register_suffix): Likewise.
5803 (stap_is_single_operand): New function.
5804 (stap_parse_special_token): Likewise.
5805 (struct stap_parse_info): Forward declaration.
5806 * i386-tdep.c: Including headers needed to perform the parsing
5807 of SystemTap probes' arguments.
5808 (i386_stap_is_single_operand): New function.
5809 (i386_stap_parse_special_token): Likewise.
5810 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5811 probes' arguments parser.
5812 * i386-tdep.h (i386_stap_is_single_operand): New function.
5813 (i386_stap_parse_special_token): Likewise.
5814 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5815 * mipsread.c (ecoff_sym_fns): Likewise.
5816 * objfiles.c (objfile_relocate1): Support relocation for static
5817 probes.
5818 * parse.c (prefixify_expression): Remove static declaration.
5819 (initialize_expout): Likewise.
5820 (reallocate_expout): Likewise.
5821 * parser-defs.h (initialize_expout): Declare function.
5822 (reallocate_expout): Likewise.
5823 (prefixify_expression): Likewise.
5824 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5825 of SystemTap probes' arguments.
5826 (ppc_stap_is_single_operand): New function.
5827 (ppc_stap_parse_special_token): Likewise.
5828 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5829 probes' arguments parser.
5830 * probe.c: New file, for generic statically defined probe support.
5831 * probe.h: Likewise.
5832 * s390-tdep.c: Including headers needed to perform the parsing of
5833 SystemTap probes' arguments.
5834 (s390_stap_is_single_operand): New function.
5835 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5836 probes' arguments parser.
5837 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5838 * stap-probe.c: New file, for SystemTap probe support.
5839 * stap-probe.h: Likewise.
5840 * symfile.h: Include `gdb_vecs.h'.
5841 (struct sym_probe_fns): New struct.
5842 (struct sym_fns) <sym_probe_fns>: New field.
5843 * symtab.c (init_sal): Initialize `probe' field.
5844 * symtab.h (struct probe): Forward declaration.
5845 (struct symtab_and_line) <probe>: New field.
5846 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5847 locations.
5848 (stop_tracing): Likewise.
5849 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5850
22d2b532
SDJ
58512012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5852 Tom Tromey <tromey@redhat.com>
5853
5854 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5855 and to compile agent expressions.
5856 * infrun.c (siginfo_make_value): New argument `ignore'.
5857 (siginfo_funcs): New struct.
5858 (_initialize_infrun): New argument when calling
5859 `create_internalvar_type_lazy'.
5860 * thread.c (thread_id_make_value): New argument `ignore'.
5861 (thread_funcs): New struct.
5862 (_initialize_thread): New argument when calling
5863 `create_internalvar_type_lazy'.
5864 * tracepoint.c (sdata_make_value): New argument `ignore'.
5865 (sdata_funcs): New struct.
5866 (_initialize_tracepoint): New argument when calling
5867 `create_internalvar_type_lazy'.
5868 * value.c (make_value): New struct.
5869 (create_internalvar_type_lazy): New argument `data'.
5870 (compile_internalvar_to_ax): New function.
5871 (value_of_internalvar): Properly handling `make_value' case.
5872 (clear_internalvar): Likewise.
5873 (show_convenience): Adding `TRY_CATCH' block.
5874 * value.h (internalvar_make_value): Delete, replace by...
5875 (struct internalvar_funcs): ... this.
5876 (create_internalvar_type_lazy) <fun>: Delete argument.
5877 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5878 (compile_internalvar_to_ax): New function.
5879 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5880 (tlb_funcs): New struct.
5881 (_initialize_windows_tdep): New argument when calling
5882 `create_internalvar_type_lazy'.
5883
91da1414
MW
58842012-04-27 Mark Wielaard <mjw@redhat.com>
5885
5886 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5887 see whether it is an address or a constant offset from DW_AT_low_pc.
5888 (dwarf2_record_block_ranges): Likewise.
5889 (read_partial_die): Likewise.
5890
4ab9d8ec
MW
58912012-04-26 Mark Wielaard <mjw@redhat.com>
5892
5893 * MAINTAINERS (Write After Approval): Add myself to the list.
5894
a0911fd0
MR
58952012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5896
5897 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5898 (proc_prettyprint_signal): Likewise.
5899 (proc_prettyprint_faultset): Likewise.
5900 (proc_prettyprint_fault): Likewise.
5901 (proc_prettyprint_actionset): Likewise.
5902 (proc_prettyprint_flags): Move to new proc-flags.c section.
5903 (proc_prettyfprint_flags): New prototype.
5904 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5905 (proc_syscall, proc_cursig): Likewise.
5906 (proc_set_kill_on_last_close): Likewise.
5907 (proc_unset_kill_on_last_close): Likewise.
5908 (proc_set_watchpoint): Make static.
5909 (proc_delete_dead_threads): Likewise.
5910 (procfs_set_watchpoint): Likewise.
5911 (_initialize_procfs): Add prototype.
5912 * proc-events.c: Include proc-utils.h.
5913 (init_syscall_table): Make static.
5914 * proc-api.c (_initialize_proc_api): Add prototype.
5915 * proc-flags.c: Include proc-utils.h.
5916
9009e1ae
MR
59172012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5918
5919 * configure.ac: Add AC_ARG_PROGRAM.
5920 * configure: Regenerate.
5921
4fae6e18
JK
59222012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5923
5924 Fix DW_AT_lower_bound defaults for DWARF-4+.
5925 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5926 high. New variable low_default_is_valid. Implement DWARF-4+
5927 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5928 no default by the DWARF standard.
5929
14132e89 59302012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5931 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5932
5933 * infrun.c (handle_inferior_event): Move the check for return
5934 trampolines ahead of the check for function trampolines.
5935 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5936 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5937 (mips_str_mips16_ret_stub): Likewise.
5938 (mips_str_call_fp_stub): Likewise.
5939 (mips_str_call_stub): Likewise.
5940 (mips_str_fn_stub): Likewise.
5941 (mips_str_pic): Likewise.
5942 (mips_in_frame_stub): New function.
5943 (mips_unwind_pc): Return the return address rather than the PC
5944 if the PC of an intermediate frame is inside a call thunk.
5945 (mips_is_stub_suffix): New function.
5946 (mips_is_stub_mode): Likewise.
5947 (mips_get_mips16_fn_stub_pc): Likewise.
5948 (mips_skip_mips16_trampoline_code): Update to handle all the
5949 currently generated stub types. Don't recurse into __fn_stub
5950 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5951 Use cooked register accesses.
5952 (mips_in_return_stub): Reintroduce function.
5953 (mips_skip_trampoline_code): Traverse trampolines recursively.
5954 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5955
518f0db5 59562012-04-26 Joel Brobecker <brobecker@adacore.com>
5957
5958 GDB 7.4.1 released.
5959
3184d3f9
JL
59602012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5961
5962 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5963 * features/arm-with-m-vfp-d16.xml: New file. Describes
5964 Cortex-M with VFPv4-sp-d16 FPU register layout.
5965 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5966 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5967 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5968 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5969 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5970
b6201d44
DE
59712012-04-25 Doug Evans <dje@google.com>
5972
5973 * cli/cli-decode.c (print_doc_line): Use stream instead of
5974 current_uiout.
5975
4e2f8df6
SDJ
59762012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5977
5978 * features/arm-with-iwmmxt.c: Regenerate.
5979 * features/arm-with-m-fpa-layout.c: Likewise.
5980 * features/arm-with-m.c: Likewise.
5981 * features/arm-with-neon.c: Likewise.
5982 * features/arm-with-vfpv2.c: Likewise.
5983 * features/arm-with-vfpv3.c: Likewise.
5984 * features/mips-dsp-linux.c: Likewise.
5985 * features/mips-linux.c: Likewise.
5986 * features/mips64-dsp-linux.c: Likewise.
5987 * features/mips64-linux.c: Likewise.
5988 * features/s390-linux32.c: Likewise.
5989 * features/s390-linux32v1.c: Likewise.
5990 * features/s390-linux32v2.c: Likewise.
5991 * features/s390-linux64.c: Likewise.
5992 * features/s390-linux64v1.c: Likewise.
5993 * features/s390-linux64v2.c: Likewise.
5994 * features/s390x-linux64.c: Likewise.
5995 * features/s390x-linux64v1.c: Likewise.
5996 * features/s390x-linux64v2.c: Likewise.
5997 * features/tic6x-c62x-linux.c: Likewise.
5998 * features/tic6x-c62x.c: Likewise.
5999 * features/tic6x-c64x-linux.c: Likewise.
6000 * features/tic6x-c64x.c: Likewise.
6001 * features/tic6x-c64xp-linux.c: Likewise.
6002 * features/tic6x-c64xp.c: Likewise.
6003 * target-descriptions.c: Only generate `field_type' and `type'
6004 variables when needed.
6005
2def3e66
JB
60062012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6007
6008 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6009
a766d390
DE
60102012-04-25 Doug Evans <dje@google.com>
6011
6012 Initial pass at Go language support.
6013 * NEWS: Mention Go.
6014 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6015 go-valprint.c.
6016 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6017 (YYFILES): Add go-exp.c.
6018 (YYOBJ): Add go-exp.o.
6019 (local-maintainer-clean): Delete go-exp.c.
6020 * defs.h (enum language): Add language_go.
6021 * dwarf2read.c: #include "go-lang.h".
6022 (fixup_go_packaging): New function.
6023 (process_full_comp_unit): Call it when processing Go CUs.
6024 (dwarf2_physname): Add Go support.
6025 (read_file_scope): Handle missing language spec for GNU Go.
6026 (set_cu_language): Handle DW_LANG_Go.
6027 * go-exp.y: New file.
6028 * go-lang.h: New file.
6029 * go-lang.c: New file.
6030 * go-typeprint.c: New file.
6031 * go-valprint.c: New file.
6032 * symtab.c: #include "go-lang.h".
6033 (symbol_set_language): Handle language_go.
6034 (symbol_find_demangled_name, symbol_set_names): Ditto.
6035 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6036
4e2af517
JM
60372012-04-24 Jim Meyering <meyering@redhat.com>
6038
6039 avoid a few strncpy-induced buffer overruns
6040 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6041 fname and psargs before trying to concatenate.
6042 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6043 "name" before applying strchr.
6044
b77b7f52
SCR
60452012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6046
6047 * CONTRIBUTE: Use unified diff instead of context diff when
6048 generating patches.
6049
6321c22a
MR
60502012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6051
6052 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6053 code. Handle JR.HB correctly.
6054
742c84f6
MR
60552012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6056
6057 * mips-tdep.c
6058 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6059 with the other MIPS16 helpers.
6060
7fc7e0c3
SDJ
60612012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6062
6063 * observer.sh: Conditionally declare `args', thus cleaning up
6064 unused instances of this variable.
6065
20388dd6
YQ
60662012-04-24 Yao Qi <yao@codesourcery.com>
6067
6068 Revert this patch to allow breakpoint always-inserted
6069 in record target.
6070 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6071 * breakpoint.c: Include record.h.
6072 (breakpoints_always_inserted_mode): Return false when the record
6073 target is in use.
20388dd6
YQ
6074
6075 * breakpoint.c (iterate_over_bp_locations): New.
6076 * breakpoint.h: Declare.
6077 New typedef walk_bp_location_callback.
6078 * record.c (record_open): Call record_init_record_breakpoints.
6079 (record_sync_record_breakpoints): New.
6080 (record_init_record_breakpoints): New.
6081 * NEWS: Mention supporting breakpoint always-inserted mode in
6082 record target.
6083
4734f50e
MK
60842012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6085
6086 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6087 any thread.
6088
c326b90e
YQ
60892012-04-24 Yao Qi <yao@codesourcery.com>
6090
6091 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6092 (is_catchpoint): ... it.
6093 (print_one_breakpoint_location): Caller update.
6094 * breakpoint.h: Update declaration.
6095
d8fb5a1e
DM
60962012-04-23 David S. Miller <davem@davemloft.net>
6097
6098 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6099
34431a2a
TT
61002012-04-23 Tom Tromey <tromey@redhat.com>
6101
6102 * buildsym.c (add_free_pendings): Remove.
6103 * buildsym.h (add_free_pendings): Remove.
6104
4568ecf9
DE
61052012-04-23 Doug Evans <dje@google.com>
6106
6107 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6108 attr.u.unsnd instead of attr.u.addr.
6109 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6110 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6111 DW_FORM_ref_udata.
6112 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6113 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6114 DW_FORM_ref_udata.
6115 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6116
dca9aa3a
MR
61172012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6118
6119 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6120 (mips_o32_return_value): Likewise.
6121 (mips_o64_return_value): Likewise.
6122
c8ea1972
PH
61232012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6124
6125 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6126 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6127 their treatment in eval.c.
c8ea1972 6128
8d1b3521
DM
61292012-04-21 David S. Miller <davem@davemloft.net>
6130
6131 * sparc-tdep.c (X_DISP10): Define.
6132 (sparc_analyze_control_transfer): Handle compare-and-branch.
6133
03145bf4
JL
61342012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6135
6136 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6137 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6138
004159a2 61392012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6140 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6141
6142 * mips-tdep.c (mips_float_register_p): New function.
6143 (mips_convert_register_float_case_p): Use mips_float_register_p.
6144 (mips_register_type): Likewise.
6145 (mips_print_register): Likewise.
6146 (print_gp_register_row): Likewise.
6147 (mips_print_registers_info): Likewise.
6148
7f0e6aae
MR
61492012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6150
6151 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6152 of mips16 symbols.
6153
bc17beea
AP
61542012-04-20 Andrew Pinski <apinski@cavium.com>
6155
6156 * MAINTAINERS (Write After Approval): Add myself to the list.
6157
1730a5a5
SDJ
61582012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6159
6160 * MAINTAINERS: Update my e-mail address.
6161
38ea300a
PA
61622012-04-20 Pedro Alves <palves@redhat.com>
6163
6164 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6165 $srcdir.
6166 * configure: Regenerate.
6167
111dfaae
SDJ
61682012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6169
6170 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6171 declaration.
6172 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6173
4fb2c64a
JK
61742012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6175
6176 Fix compilation compatibility with python-2.4
6177 * python/py-type.c (convert_field): Cast ADDRSTRING for
6178 PyObject_SetAttrString as non-const. New comment.
6179
6328eb38
TT
61802012-04-19 Tom Tromey <tromey@redhat.com>
6181
6182 * top.c (quit_target): Use all_cleanups.
6183 * main.c (captured_command_loop): Use all_cleanups.
6184 * exceptions.c (throw_exception): Use all_cleanups.
6185
c971b7fa
PA
61862012-04-19 Pedro Alves <palves@redhat.com>
6187
6188 * Makefile.in (GNULIB_BUILDDIR): New.
6189 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6190 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6191 (CLEANDIRS). Remove gnulib/import.
6192 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6193 (all-lib): Ditto.
6194 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6195 (gnulib/import/Makefile): Replace gnulib/import with
6196 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6197 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6198 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6199 acx_configure_dir.m4.
6200 * acinclude.m4: Include acx_configure_dir.m4.
6201 * acx_configure_dir.m4: New file.
6202 * aclocal.m4: Regenerate.
a09130f9
PA
6203 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6204 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6205 (GNULIB): New variable.
6206 (GNULIB_STDINT_H): Adjust.
6207 (AC_OUTPUT): Don't output gnulib/Makefile.
6208 * gdb/defs.h: Include build-gnulib/config.h.
6209 * aclocal.m4: Regenerate.
6210 * config.in: Regenerate.
6211 * configure: Regenerate.
6212
6213 * gnulib/Makefile.in: New file.
6214 * gnulib/configure.ac: New file.
6215 * gnulib/aclocal.m4: New file.
6216 * gnulib/config.in: New file.
6217 * gnulib/configure: New file.
c971b7fa
PA
6218 * gnulib/: Re-run gnulib-tool to adjust.
6219
b10faa68
DE
62202012-04-19 Doug Evans <dje@google.com>
6221
6222 * cleanups.h (struct cleanup): Move to cleanups.c.
6223 (make_cleanup_dtor_ftype): New typedef.
6224 (make_cleanup_dtor): Use it.
6225 (ALL_CLEANUPS): Replace with ...
6226 (all_cleanups): ... this. Declare. All uses updated.
6227 * cleanups.c: #include "gdb_assert.h".
6228 (sentinel_cleanup): New static global.
6229 (SENTINEL_CLEANUP): Define.
6230 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6231 (make_my_cleanup2): Assert result is non-NULL.
6232 (all_cleanups): New function.
6233 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6234 of NULL.
6235
d8c267cc
PA
62362012-04-19 Pedro Alves <palves@redhat.com>
6237
6238 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6239 Adjust paths to gnulib imported files.
6240
809277f8
PA
62412012-04-19 Pedro Alves <palves@redhat.com>
6242
6243 * gnulib/: Move whole directory ...
6244 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6245 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6246 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6247 (aclocal_m4_deps): Adjust.
6248 * aclocal.m4: Regenerate.
6249 * configure: Regenerate.
6250 * configure.ac: Adjust AC_OUTPUT output.
6251
aad9eab9
YQ
62522012-04-19 Yao Qi <yao@codesourcery.com>
6253
6254 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6255 (vec.o): New rule.
6256 * vec.c: Move it ...
6257 * common/vec.c: ... here.
6258 * vec.h: Move it ...
6259 * common/vec.h: ... here.
6260
48fe4669
YQ
62612012-04-19 Yao Qi <yao@codesourcery.com>
6262
6263 * gdb-code-style.el: New.
6264
770d76d7
PA
62652012-04-18 Pedro Alves <palves@redhat.com>
6266
6267 Update gnulib from latest git.
6268 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6269
6270 * gnulib/Makefile.am: Update.
6271 * gnulib/dummy.c: Update.
6272 * gnulib/extra/arg-nonnull.h: Update.
6273 * gnulib/extra/c++defs.h: Update.
6274 * gnulib/extra/update-copyright: Update.
6275 * gnulib/extra/warn-on-use.h: Update.
6276 * gnulib/inttypes.in.h: Update.
6277 * gnulib/m4/00gnulib.m4: Update.
6278 * gnulib/m4/extensions.m4: Update.
6279 * gnulib/m4/gnulib-cache.m4: Update.
6280 * gnulib/m4/gnulib-common.m4: Update.
6281 * gnulib/m4/gnulib-comp.m4: Update.
6282 * gnulib/m4/gnulib-tool.m4: Update.
6283 * gnulib/m4/include_next.m4: Update.
6284 * gnulib/m4/inttypes-pri.m4: Update.
6285 * gnulib/m4/inttypes.m4: Update.
6286 * gnulib/m4/longlong.m4: Update.
6287 * gnulib/m4/memchr.m4: Update.
6288 * gnulib/m4/memmem.m4: Update.
6289 * gnulib/m4/mmap-anon.m4: Update.
6290 * gnulib/m4/multiarch.m4: Update.
6291 * gnulib/m4/onceonly.m4: Update.
6292 * gnulib/m4/stddef_h.m4: Update.
6293 * gnulib/m4/stdint.m4: Update.
6294 * gnulib/m4/string_h.m4: Update.
6295 * gnulib/m4/warn-on-use.m4: Update.
6296 * gnulib/m4/wchar_h.m4: Update.
6297 * gnulib/m4/wchar_t.m4: Update.
6298 * gnulib/m4/wint_t.m4: Update.
6299 * gnulib/memchr.c: Update.
6300 * gnulib/memmem.c: Update.
6301 * gnulib/stddef.in.h: Update.
6302 * gnulib/stdint.in.h: Update.
6303 * gnulib/str-two-way.h: Update.
6304 * gnulib/string.in.h: Update.
6305 * gnulib/wchar.in.h: Update.
6306
6307 * gnulib/extra/arg-nonnull.h: Delete.
6308 * gnulib/extra/c++defs.h: Delete.
6309 * gnulib/extra/warn-on-use.h: Delete.
6310 * gnulib/m4/wchar_h.m4: Delete.
6311 * gnulib/m4/wint_t.m4: Delete.
6312 * gnulib/wchar.in.h: Delete.
6313
6314 * gnulib/extra/snippets/arg-nonnull.h: New.
6315 * gnulib/extra/snippets/c++defs.h: New.
6316 * gnulib/extra/snippets/warn-on-use.h: New.
6317
6318 * aclocal.m4: Regenerate.
6319 * config.in: Regenerate.
6320 * configure: Regenerate.
6321 * gnulib/Makefile.in: Regenerate.
6322
174e088e
PA
63232012-04-18 Pedro Alves <palves@redhat.com>
6324
6325 Reimport the update-copyright module from gnulib
6326 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6327
6328 * configure: Regenerate.
6329 * gnulib/Makefile.am: Update.
6330 * gnulib/Makefile.in: Regenerate.
6331 * gnulib/extra/update-copyright: Update.
6332 * gnulib/m4/gnulib-cache.m4: Update.
6333 * gnulib/m4/gnulib-comp.m4: Update.
6334
7f533142
JB
63352012-04-18 Tristan Gingold <gingold@adacore.com>
6336
6337 * configure.ac (aix): Put -lpthread into libs.
6338 * configure: Regenerate.
6339
001822aa
TT
63402012-04-18 Tom Tromey <tromey@redhat.com>
6341
6342 * linespec.c (convert_linespec_to_sals): Don't use
6343 SYMBOL_OBJ_SECTION.
6344 (compare_msymbols): Arguments are minsym_and_objfile, not
6345 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6346
db026a31
PA
63472012-04-18 Pedro Alves <palves@redhat.com>
6348
6349 Revert gnulib/ part of:
6350 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6351 Copyright year update in most files (performed by copyright.sh).
6352
12df843f
JK
63532012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 Fix 64-bit constants on 32-bit hosts.
6356 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6357 from unsigned long to ULONGEST.
6358 (read_signed_leb128): Change declaration return type from long to
6359 LONGEST.
6360 (dwarf2_const_value_attr): Change declaration parameter value from long
6361 to LONGEST.
6362 (dwarf2_compute_name): Change variable value from long to LONGEST.
6363 (read_unsigned_leb128): Change return type, variable result and some
6364 casts from unsigned long to ULONGEST.
6365 (read_signed_leb128): Change return type, variable result and some
6366 casts from long to LONGEST.
6367 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6368 value from long to LONGEST.
6369 (dwarf2_const_value): Change variable value from long to LONGEST.
6370 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6371 plongest and hex_string.
6372 * symtab.h (struct general_symbol_info): Change ivalue from long to
6373 LONGEST, remove the comment.
6374 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6375 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6376
14e75d8e
JK
63772012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6378
6379 PR symtab/7259:
6380 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6381 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6382 (ada_discrete_type_low_bound): Fix function comment. Use
6383 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6384 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6385 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6386 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6387 Use TYPE_FIELD_ENUMVAL.
6388 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6389 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6390 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6391 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6392 TYPE_CODE_ENUM.
6393 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6394 * dwarf2read.c (process_enumeration_scope): Likewise.
6395 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6396 field.bitpos.
6397 (class StructMainTypePrettyPrinter): Support also
6398 FIELD_LOC_KIND_ENUMVAL.
6399 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6400 TYPE_CODE_ENUM.
6401 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6402 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6403 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6404 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6405 field enumval.
6406 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6407 accommodate enumval.
6408 (struct call_site): Adjust loc_kind to accommodate enumval.
6409 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6410 (TYPE_FIELD_ENUMVAL): New macros.
6411 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6412 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6413 TYPE_CODE_ENUM.
6414 * p-typeprint.c (pascal_type_print_base): Likewise.
6415 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6416 enumval.
6417 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6418 * python/py-type.c (convert_field): New variable addrstring. Use
6419 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6420 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6421 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6422 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6423 TYPE_CODE_ENUM.
6424 * valprint.c (generic_val_print): Likewise.
6425
380bca97
DE
64262012-04-17 Doug Evans <dje@google.com>
6427
dcc07052
DE
6428 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6429
380bca97
DE
6430 * dwarf2read.c: Whitespace fixes.
6431 (lookup_signatured_type): Tweak comment.
6432 (get_die_type_at_offset): Fix comment.
6433
ec92004f
JB
64342012-04-17 Joel Brobecker <brobecker@adacore.com>
6435
6436 * xcoffread.c (xcoff_secnum_to_sections): New function.
6437 (secnum_to_section, secnum_to_bfd_section): Reimplement
6438 using xcoff_secnum_to_sections. Rename "secnum" parameter
6439 into "n_scnum".
6440 (RECORD_MINIMAL_SYMBOL): Delete.
6441 (record_minimal_symbol): New function.
6442 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6443 by call to record_minimal_symbol and set misc_func_recorded
6444 to 1. Set last_csect_sec to the XCOFF section index instead
6445 of GDB's section_offset index. Update calls to
6446 prim_record_minimal_symbol_and_info to pass the BFD section
6447 as well.
6448
40301fb7
JB
64492012-04-17 Joel Brobecker <brobecker@adacore.com>
6450
6451 * xcoffread.c (read_xcoff_symtab): Delete variables
6452 last_csect_val and last_csect_sec and associated code.
6453
e0088cfd
DE
64542012-04-17 Doug Evans <dje@google.com>
6455
58d5e2c3
DE
6456 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6457 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6458 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6459 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6460
c27f5738
DE
6461 * cleanups.h: New file.
6462 * cleanups.c: New file.
6463 * Makefile.in (SFILES): Add cleanups.c.
6464 (HFILES_NO_SRCDIR): Add cleanups.h.
6465 (COMMON_OBS): Add cleanups.o.
6466 * defs.h (struct cleanup): Moved to cleanups.h.
6467 (do_cleanups,do_final_cleanups): Ditto.
6468 (discard_cleanups,discard_final_cleanups): Ditto
6469 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6470 (save_cleanups,save_final_cleanups): Ditto.
6471 (restore_cleanups,restore_final_cleanups): Ditto.
6472 (null_cleanup): Ditto.
6473 (make_my_cleanup,make_my_cleanup2): Ditto.
6474 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6475 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6476 (do_cleanups,do_final_cleanups): Ditto.
6477 (discard_cleanups,discard_final_cleanups): Ditto
6478 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6479 (save_cleanups,save_final_cleanups): Ditto.
6480 (restore_cleanups,restore_final_cleanups): Ditto.
6481 (null_cleanup): Ditto.
6482 (make_my_cleanup,make_my_cleanup2): Ditto.
6483 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6484
e0088cfd
DE
6485 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6486 make_my_cleanup.
6487 (make_cleanup_dyn_string_delete): Ditto.
6488 (make_cleanup_ui_file_delete): Ditto.
6489 (make_cleanup_ui_out_redirect_pop): Ditto.
6490 (make_cleanup_free_section_addr_info): Ditto.
6491 (make_cleanup_restore_integer): Ditto.
6492 (make_cleanup_unpush_target): Ditto.
6493 (make_cleanup_value_free_to_mark): Ditto.
6494 (make_cleanup_value_free): Ditto.
6495 (make_cleanup_free_so): Ditto.
6496
4dc84fd1
JK
64972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6498
6499 New option "set debug auto-load".
6500 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6501 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6502 (auto_load_safe_path_vec_update)
6503 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6504 if DEBUG_AUTO_LOAD.
6505 (file_is_auto_load_safe): New parameters debug_fmt and ....
6506 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6507 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6508 caller by explanatory string.
6509 (_initialize_auto_load): Register "set debug auto-load".
6510 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6511 and ....
6512 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6513 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6514 by explanatory string.
6515 * main.c (captured_main): Likewise.
6516 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6517 (source_section_scripts): Likewise.
6518
bccbefd2
JK
65192012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6520
6521 New option "set auto-load safe-path".
6522 * NEWS: New commands "set auto-load safe-path"
6523 and "show auto-load safe-path".
6524 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6525 (auto_load_safe_path, auto_load_safe_path_vec)
6526 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6527 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6528 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6529 (source_gdb_script_for_objfile): New variable is_safe. Call
6530 file_is_auto_load_safe. Return if it is not.
6531 (struct loaded_script): New field loaded.
6532 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6533 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6534 output "Missing" to "No".
6535 (_initialize_auto_load): New variable cmd. Initialize
6536 auto_load_safe_path. Register "set auto-load safe-path",
6537 "show auto-load safe-path" and "add-auto-load-safe-path".
6538 * auto-load.h (maybe_add_script): Add parameter loaded.
6539 (file_is_auto_load_safe): New declaration.
6540 * config.in: Regenerate.
6541 * configure: Regenerate.
6542 * configure.ac: New parameters --with-auto-load-safe-path
6543 and --without-auto-load-safe-path.
6544 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6545 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6546 * main.c (captured_main): Check file_is_auto_load_safe for
6547 LOCAL_GDBINIT.
6548 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6549 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6550 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6551 not.
6552
bf88dd68
JK
65532012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6554
6555 auto-load: Implementation.
6556 * NEWS: New descriptions for "info auto-load",
6557 "info auto-load gdb-scripts", "info auto-load python-scripts",
6558 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6559 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6560 and "show auto-load-scripts". New description for "set auto-load",
6561 "show auto-load", "set auto-load gdb-scripts",
6562 "show auto-load gdb-scripts", "set auto-load python-scripts",
6563 "show auto-load python-scripts", "set auto-load local-gdbinit",
6564 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6565 "show auto-load libthread-db".
6566 * auto-load.c: Remove include python/python-internal.h. Add includes
6567 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6568 cli/cli-setshow.h.
6569 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6570 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6571 (gdbpy_global_auto_load): Rename to ...
6572 (global_auto_load): ... here.
6573 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6574 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6575 (script_language_gdb, source_gdb_script_for_objfile): New.
6576 (struct loaded_script): New field language.
6577 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6578 LANGUAGE.
6579 (maybe_add_script): Add parameter language. Drop redundant
6580 entry.full_path initialization. Initialize entry.language and
6581 (*slot)->language.
6582 (auto_load_objfile_script): Change parameter suffix to language.
6583 Remove the call of maybe_add_script.
6584 Call language->source_script_for_objfile.
6585 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6586 New.
6587 (collect_matching_scripts): Adjust it for
6588 struct collect_matching_scripts_data.
6589 (auto_load_info_scripts_pattern_nl): New variable.
6590 (info_auto_load_scripts): Rename to ...
6591 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6592 for struct collect_matching_scripts_data.
6593 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6594 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6595 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6596 (auto_load_info_cmdlist_get): New.
6597 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6598 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6599 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6600 "info auto-load local-gdbinit".
6601 * auto-load.h (struct script_language): New.
6602 (gdbpy_global_auto_load): Rename to ...
6603 (global_auto_load): ... here.
6604 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6605 (auto_load_local_gdbinit_loaded): New declarations.
6606 (maybe_add_script): New parameter language.
6607 (auto_load_objfile_script): Change parameter suffix to language.
6608 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6609 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6610 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6611 declarations.
6612 * linux-thread-db.c: Include auto-load.h and ctype.h.
6613 (auto_load_thread_db, show_auto_load_thread_db): New.
6614 (struct thread_db_info): New field filename.
6615 (delete_thread_db_info): Call xfree for FILENAME.
6616 (try_thread_db_load): Initialize FILENAME.
6617 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6618 if !AUTO_LOAD_THREAD_DB.
6619 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6620 (_initialize_thread_db): Install auto_load_thread_db
6621 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6622 as "info auto-load libthread-db".
6623 * main.c (captured_main): Rename gdbpy_global_auto_load to
6624 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6625 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6626 (print_gdb_help): Extend the help for 'local init file'.
6627 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6628 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6629 (auto_load_scripts): Rename to ...
6630 (auto_load_python_scripts): ... here, update the comment.
6631 (gdbpy_load_auto_script_for_objfile): New declaration.
6632 (show_auto_load_python_scripts, script_language_python)
6633 (gdbpy_load_auto_script_for_objfile): New.
6634 (source_section_scripts): Refactor the code.
6635 (load_auto_scripts_for_objfile): Rename to ...
6636 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6637 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6638 (info_auto_load_python_scripts): New.
6639 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6640 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6641 Register "set auto-load-scripts" as its deprecated alias. Register
6642 "info auto-load python-scripts". Register "info auto-load-scripts" as
6643 its deprecated alias.
6644 (load_auto_scripts_for_objfile): Rename to ...
6645 (gdbpy_load_auto_scripts_for_objfile): ... here.
6646 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6647 (gdbpy_load_auto_scripts_for_objfile): ... here.
6648
e2207b9a
JK
66492012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6650
6651 auto-load: Move files.
6652 * Makefile.in (SFILES): Add auto-load.c.
6653 (HFILES_NO_SRCDIR): Add auto-load.h.
6654 (COMMON_OBS): Add auto-load.o.
6655 (distclean): Change .gdbinit for gdb-gdb.gdb.
6656 * auto-load.c: New file, with parts from python/py-auto-load.c.
6657 * auto-load.h: New file, with parts from python/python.h.
6658 * configure: Regenerate.
6659 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6660 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6661 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6662 * main.c: Include auto-load.h.
6663 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6664 command.h, observer.h and progspace.h to auto-load.c. Add include
6665 auto-load.h.
6666 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6667 (struct loaded_script, auto_load_pspace_data)
6668 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6669 (hash_loaded_script_entry, eq_loaded_script_entry)
6670 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6671 (maybe_add_script): Move to auto-load.c.
6672 (source_section_scripts): Change maybe_add_script parameters passing,
6673 use script_not_found_warning_print.
6674 (clear_section_scripts, auto_load_objfile_script)
6675 (auto_load_new_objfile, loaded_script_ptr)
6676 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6677 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6678 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6679 auto_load_new_objfile and info_auto_load_scripts initizations to
6680 auto-load.c.
6681 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6682
e4ab2fad
JK
66832012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6684
6685 Code cleanup.
6686 * charset.c (find_charset_names): Remove variables ix and elt.
6687 Use free_char_ptr_vec.
6688 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6689 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6690 debugdir_end. New variable debugdir_len.
6691 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6692 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6693 declarations.
6694 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6695 and elt. Use free_char_ptr_vec.
6696 * source.c (add_path): Remove variables argv, arg and argv_index.
6697 New variables dir_vec, back_to, ix and name.
6698 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6699 make_cleanup_freeargv. Remove variable separator. Simplify the code
6700 no longer expecting DIRNAME_SEPARATOR.
6701 (openp): Remove variable p, p1 and len. New variables dir_vec,
6702 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6703 no longer expecting DIRNAME_SEPARATOR.
6704 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6705 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6706 debugdir_end.
6707 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6708 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6709 (dirnames_to_char_ptr_vec): New functions.
6710
5ee4ed9f
JK
67112012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6712
6713 Code cleanup.
6714 * source.c (add_path): Remove always true conditional 'p == 0' and
6715 unindent its code block.
6716
f41f5e61
PA
67172012-04-17 Pedro Alves <palves@redhat.com>
6718
6719 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6720 (FIELD_BITPOS_LVAL): ... this.
6721 (FIELD_BITPOS): New.
6722 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6723 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6724 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6725 SET_FIELD_BITPOS.
6726 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6727 SET_FIELD_BITPOS.
6728 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6729 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6730 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6731 SET_FIELD_BITPOS.
6732
945b3a32
JK
67332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6734
6735 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6736 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6737 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6738 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6739 * jv-lang.c (java_link_class_type): Likewise, once.
6740 * stabsread.c (read_enum_type): Likewise.
6741
42476b70
YQ
67422012-04-16 Yao Qi <yao@codesourcery.com>
6743
6744 * common/agent.c (agent_run_command): Add one more parameter `len'.
6745 Update callers.
6746 * common/agent.h: Update declaration.
6747 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6748 Update.
6749 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6750
8264ba82
AG
67512012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6752
6753 PR mi/13393
6754 * value.c (value_actual_type): New function.
6755 * value.h (value_actual_type): New declaration.
6756 * varobj.c (update_type_if_necessary): New function.
6757 (varobj_create): Call value_actual_type instead of
6758 value_type.
6759 (install_dynamic_child): distinct changed and type changed MI variable
6760 objects.
6761 (update_dynamic_varobj_children): Updated for install_dynamic_child
6762 change. All callers updated.
a09130f9 6763 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6764 the value changed and RTTI is used to determine the type.
6765 (create_child_with_value): Call value_actual_type instead of
6766 value_type.
a09130f9 6767 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6768 specify whether the given value should be casted to enclosing type.
6769 All callers updated.
6770
55a8c076
YQ
67712012-04-14 Yao Qi <yao@codesourcery.com>
6772
6773 Import gnulib module inttypes from git
6774 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6775 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6776 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6777 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6778 * aclocal.m4, config.in, configure: Regenerated.
6779 * gnulib/Makefile.am: Update.
6780 * gnulib/Makefile.in: Update.
6781 * gnulib/m4/gnulib-cache.m4: Update.
6782 * gnulib/m4/gnulib-comp.m4: Update.
6783 * gnulib/inttypes.in.h: New.
6784 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6785 * gnulib/m4/inttypes.m4: New.
55a8c076 6786
ca7781d2
LM
67872012-04-13 Luis Machado <lgustavo@codesourcery.com>
6788
6789 * infrun.c (resume): Update PC address to the real PC after
6790 preparing to do displaced stepping.
6791
e319fa28
DE
67922012-04-12 Doug Evans <dje@google.com>
6793
6794 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6795 All callers updated.
6796
15add3f5
MK
67972012-04-12 Mark Kettenis <kettenis@gnu.org>
6798
6799 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6800
52dc124a
DE
68012012-04-12 Doug Evans <dje@google.com>
6802
0e50663e
DE
6803 * dwarf2read.c (create_all_type_units): Renamed from
6804 create_debug_types_hash_table. All callers updated.
6805
52dc124a
DE
6806 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6807 local type_sig to sig_type, type_offset to type_offset_in_tu.
6808 (hash_signatured_type): Renamed from hash_type_signature,
6809 all callers updated.
6810 (eq_signatured_type): Renamed from eq_type_signature,
6811 all callers updated.
6812 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6813 (process_enumeration_scope): Ditto.
6814 (lookup_signatured_type_at_offset): Ditto.
6815 (load_full_type_unit, read_signatured_type): Ditto.
6816
248fd3bf
YQ
68172012-04-12 Yao Qi <yao@codesourcery.com>
6818
6819 * remote.c (async_remote_interrupt): Correct function name in
6820 debug message.
6821 (async_remote_interrupt_twice): Ditto.
6822
bc3aa6c3
DE
68232012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6824
6825 * source.c (find_and_open_source): Consistently pass resulting
6826 full path through xfullpath.
6827
9e529e1d
JK
68282012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6829
6830 Provide more specific displaced-stepping memory error message.
6831 * infrun.c (displaced_step_prepare): New variable status. Call
6832 target_read_memory instead of read_memory, provide more specific
6833 error message.
6834
82e0cec1
TG
68352012-04-11 Tristan Gingold <gingold@adacore.com>
6836
6837 PR gdb/13901
6838 * darwin-nat.c (darwin_execvp): Revert previous patch.
6839
d987a266
TG
68402012-04-11 Tristan Gingold <gingold@adacore.com>
6841
6842 PR gdb/13901
6843 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6844 in case of change.
6845
016b7430
TG
68462012-04-11 Tristan Gingold <gingold@adacore.com>
6847
6848 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6849 warning.
6850
06fc020f
SCR
68512012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6852
6853 New command 'explore' which helps explore values and types in
6854 scope.
6855 * NEWS: Add an entry about the new 'explore' command.
6856 * data-directory/Makefile.in: Add gdb/command/explore.py
6857 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6858 command using the GDB Python API.
06fc020f 6859
de0919f8 68602012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6861
6862 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6863 extension in jump target calculation.
6864
de0919f8 68652012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6866
6867 * mips-tdep.c (mips32_next_pc): Handle JALX.
6868
2f26ef89
YQ
68692012-04-10 Yao Qi <yao@codesourcery.com>
6870
6871 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6872
2e505b66
YQ
68732012-04-10 Yao Qi <yao@codesourcery.com>
6874
6875 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6876 and gnulib/m4/gnulib-tool.m4.
6877
0d99eb77
DE
68782012-04-10 Doug Evans <dje@google.com>
6879
6880 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6881 (load_partial_dies): Clarify comment.
6882 (find_partial_die): Support rereading type units.
6883 Clarify CU handling, if we know offset is in CU, don't search for the
6884 containing CU. Add comment regarding memory waste.
6885
9a82b8ff
L
68862012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6887
6888 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6889 i386/x32-avx and i386/x32-avx-linux.
6890 (i386/x32-expedite): New.
6891 (i386/x32-linux-expedite): Likewise.
6892 (i386/x32-avx-expedite): Likewise.
6893 (i386/x32-avx-linux-expedite): Likewise.
6894 ($(outdir)/i386/x32.dat): Likewise.
6895 ($(outdir)/i386/x32-linux.dat): Likewise.
6896 ($(outdir)/i386/x32-avx.dat): Likewise.
6897 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6898
6899 * features/i386/x32-avx-linux.xml: New file.
6900 * features/i386/x32-avx.xml: Likewise.
6901 * features/i386/x32-core.xml: Likewise.
6902 * features/i386/x32-linux.xml: Likewise.
6903 * features/i386/x32.xml: Likewise.
6904
6905 * features/i386/x32-avx-linux.c: New. Generated.
6906 * features/i386/x32-avx.c: Likewise.
6907 * features/i386/x32-linux.c: Likewise.
6908 * features/i386/x32.c: Likewise.
6909 * regformats/i386/x32-avx-linux.dat: Likewise.
6910 * regformats/i386/x32-avx.dat: Likewise.
6911 * regformats/i386/x32-linux.dat: Likewise.
6912 * regformats/i386/x32.dat: Likewise.
6913
ee41036f
TG
69142012-04-10 Tristan Gingold <gingold@adacore.com>
6915
6916 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6917 code to kill the inferior.
6918
a7aa5b8a
MK
69192012-04-09 Mark Kettenis <kettenis@gnu.org>
6920
6921 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6922 defines.
6923 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6924 defines.
a09130f9 6925 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6926 (yyvsp): New defines.
6927 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6928 defines.
6929 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6930 defines.
6931 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6932 defines.
6933 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6934 defines.
6935 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6936 defines.
6937
fb57d452
MK
69382012-04-09 Mark Kettenis <kettenis@gnu.org>
6939
a09130f9 6940 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6941 (sparc64_store_arguments): Fix coding style.
6942
cdc7b32f
MK
69432012-04-07 Mark Kettenis <kettenis@gnu.org>
6944
6945 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6946 complex floats, adjust some related comments and tighten a related
6947 assertion.
6948 (sparc64_extract_return_value): Handle complex floats.
6949
7adf1e79
DE
69502012-04-07 Doug Evans <dje@google.com>
6951
6952 * dwarf2read.c (load_partial_dies): Change condition to assert.
6953
50f1ae7b
DE
69542012-04-06 Doug Evans <dje@google.com>
6955
6956 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6957 "mov %rsp,%rbp".
6958
55fa75c3
KB
69592012-04-05 Kevin Buettner <kevinb@redhat.com>
6960
6961 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6962 fencepost error.
6963 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6964 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6965 architecture.
6966
40e084e1
KS
69672012-04-05 Keith Seitz <keiths@redhat.com>
6968
6969 * linespec.c (decode_compound): Remove.
6970 (enum offset_relative_sign): New enum.
6971 (struct line_offset): New struct.
6972 (struct linespec): New struct.
6973 (struct linespec_state): Move file_symtabs,
6974 user_filename, and user_function into struct linespec.
6975 Make result an anonymous struct holding vectors of
6976 symbolp and minsym_and_objfile_d.
6977 Add language member.
6978 (enum ls_token_type): New enum.
6979 (linespec_keywords): New array.
6980 (struct ls_token): New struct.
6981 (struct ls_parser): New struct.
6982 (linespec_lexer_lex_number): New function.
6983 (linespec_lexer_lex_keyword): New function.
6984 (is_ada_operator): New function.
6985 (skip_quote_char): New function.
6986 (copy_token_string): New function.
6987 (is_closing_quote_enclosed): New function.
6988 (find_parameter_list_end): New function.
6989 (linespec_lexer_lex_string): New function.
6990 (linespec_lexer_lex_one): New function.
6991 (linespec_lexer_consume_token): New function.
6992 (linespec_lexer_peek_token): New function.
6993 (cplusplus_error): Remove unused function.
6994 (find_methods): Update comment.
6995 (find_toplevel_char): Return const.
6996 (is_objc_method_format): Remove unused function.
6997 (find_toplevel_string): New function.
6998 (is_linespec_boundary): Remove.
6999 (symbol_not_found_error): New function.
7000 (find_method_overload_end): Remove function.
7001 (unexpected_linespec_error): New function.
7002 (keep_name_info): Remove.
7003 (linespec_parse_line_offset): New function.
7004 (linespec_parse_basic): New function.
7005 (canonicalize_linespec): New function.
7006 (decode_line_internal): Remove.
7007 (create_sals_line_offset): New function adapted from
7008 decode_all_digits.
7009 (convert_linespec_to_sals): New function.
7010 (parse_linespec): New function.
7011 (linespec_parser_new): New function.
7012 (linespec_state_destructor): Change parameter type to
7013 struct linespec_state *.
7014 Add language parameter.
7015 Remove freeing of moved members.
7016 (linespec_parser_delete): New function.
7017 (decode_line_full): Use parse_linespec and linespec_parser_new.
7018 (decode_line_1): Likewise.
7019 (decode_indirect): Rename to ...
7020 (linespec_expression_to_pc): ... this and rewrite
7021 to simply find CORE_ADDR, storing this result for later
7022 conversion to SALs.
7023 (locate_first_half): Remove.
7024 (deocde_objc): Add parameter LS.
7025 Initialize new struct collect_info members.
7026 Handle minimal symbols, too.
7027 (decode_compound): Delete.
7028 (lookup_prefix_sym): Rewrite.
7029 (compare_msymbols): New function.
7030 (find_method): Rewrite.
7031 Do not call cplusplus_error.
7032 (symtabs_from_filename): Rewrite.
7033 (collect_function_symbols): Delete.
7034 (find_function_symbols): Rewrite without ARGPTR-style
7035 processing.
7036 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7037 (decode_dollar): Adapted and renamed to ...
7038 (linespec_parse_variable): ... this.
7039 (find_linespec_symbols): New function.
7040 (decode_label): Adapted and renamed to ...
7041 (find_label_symbols): ... this.
7042 (decode_digits_list_mode): Add and use LS argument.
7043 (decode_digits_ordinary): Likewise.
7044 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7045 If in list mode, allow any symbol class. Otherwise, only
7046 permit LOC_BLOCK symbols.
7047 (minsym_found): Update comments.
7048 (search_minsyms_for_name): Do not convert the matching symbol
7049 into a SAL. Simply push the symbol and objfile into the
7050 result vector.
7051 (decode_variable): Delete. Contents adapted into
7052 find_linespec_symbols.
7053
7054 * cp-support.c (SKIP_SPACE): Remove.
7055 (operator_tokens): Remove unused global.
7056 (cp_validate_operator): Remove.
7057 * cp-support.h (cp_validate_operator): Remove declaration.
7058
a72c8f6a
JK
70592012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7060
7061 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7062 for TYPE_VPTR_FIELDNO.
7063 * valprint.c (valprint_check_validity): Make it global, move the
7064 function comment ...
7065 * value.h (valprint_check_validity): ... to this new declaration.
7066
cf9bb588
TG
70672012-04-02 Tristan Gingold <gingold@adacore.com>
7068
7069 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7070 the STATE32 api for i386 state.
7071 (i386_darwin_store_inferior_registers): Likewise.
7072
17092398
TG
70732012-04-02 Tristan Gingold <gingold@adacore.com>
7074
7075 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7076 SS offset.
7077 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7078 format_string.
7079
ece0061f
TG
70802012-04-02 Tristan Gingold <gingold@adacore.com>
7081
7082 PR gdb/13901
d987a266 7083 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7084
cf65ecd3
JK
70852012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7086
7087 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7088
9bc3523d
TT
70892012-03-30 Tom Tromey <tromey@redhat.com>
7090
7091 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7092 of TRY_CATCH. Fix error handling.
7093 * python/py-value.c (convert_value_from_python): Move 'old'
7094 declaration to innermost scope.
7095
b1ed564a
JB
70962012-03-29 Joel Brobecker <brobecker@adacore.com>
7097 Andrey Smirnov <andrew.smirnov@gmail.com>
7098
7099 -Wshadow warning fix.
7100 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7101 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7102 Adjust code accordingly.
7103
cb8e9b97
JB
71042012-03-29 Joel Brobecker <brobecker@adacore.com>
7105
7106 * ada-lang.c (symbol_completion_add): Rename parameter
7107 "encoded" into "encoded_p". Ajust code and documentation
7108 accordingly.
7109
c0af1706
JB
71102012-03-29 Joel Brobecker <brobecker@adacore.com>
7111 Andrey Smirnov <andrew.smirnov@gmail.com>
7112
7113 -Wshadow warning fix.
7114 * ada-lang.c (symbol_completion_add): Rename parameter
7115 "wild_match" into wild_match_p. Update code and documentation
7116 accordingly.
7117
6ea35997
JB
71182012-03-29 Joel Brobecker <brobecker@adacore.com>
7119
7120 * ada-lang.c (symbol_completion_match): Rename parameter
7121 "encoded" into "encoded_p". Ajust code and documentation
7122 accordingly.
7123
e701b3c0
JB
71242012-03-29 Joel Brobecker <brobecker@adacore.com>
7125 Andrey Smirnov <andrew.smirnov@gmail.com>
7126
7127 -Wshadow warning fix.
7128 * ada-lang.c (symbol_completion_match): Rename parameter
7129 "wild_match" into "wild_match_p". Adjust code and function
7130 documentation accordingly.
7131
5e2336be
JB
71322012-03-29 Joel Brobecker <brobecker@adacore.com>
7133 Andrey Smirnov <andrew.smirnov@gmail.com>
7134
7135 -Wshadow warning fix.
7136 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7137 "symbol_info" into "info". Adjust code accordingly.
7138 (ada_lookup_symbol): Likewise.
7139
9f88c959
JB
71402012-03-29 Joel Brobecker <brobecker@adacore.com>
7141
7142 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7143 of this function's documentation.
7144
82ccd55e
JB
71452012-03-29 Joel Brobecker <brobecker@adacore.com>
7146 Andrey Smirnov <andrew.smirnov@gmail.com>
7147
7148 -Wshadow warning fix.
7149 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7150 variable into "wild_match_p". Adjust code accordingly.
7151
d0a8ab18
JB
71522012-03-29 Joel Brobecker <brobecker@adacore.com>
7153 Andrey Smirnov <andrew.smirnov@gmail.com>
7154
7155 -Wshadow warning fix.
7156 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7157 parameter into "wild_match_p". Adjust code accordingly.
7158 Document this parameter in the function description.
7159
48b78332
JB
71602012-03-29 Joel Brobecker <brobecker@adacore.com>
7161 Andrey Smirnov <andrew.smirnov@gmail.com>
7162
7163 -Wshadow warning fix.
7164 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7165 "wild_match" parameter to "wild_match_p" (-Wshadow).
7166
2e6e0353
JB
71672012-03-29 Joel Brobecker <brobecker@adacore.com>
7168
7169 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7170 in function documentation.
7171
dc4024cd
JB
71722012-03-29 Joel Brobecker <brobecker@adacore.com>
7173 Andrey Smirnov <andrew.smirnov@gmail.com>
7174
7175 -Wshadow warning fix.
7176 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7177 variable into wild_match_p. Adjust code accordingly.
7178
6c88661c
JB
71792012-03-29 Joel Brobecker <brobecker@adacore.com>
7180 Andrey Smirnov <andrew.smirnov@gmail.com>
7181
7182 * ada-valprint.c (ada_val_print_1): Move the code handling
7183 TYPE_CODE_ENUM inside its own lexical block. Declare
7184 variables len and val there, instead of in the function's
7185 top level block. Avoid declaring deref_val again in a way
7186 that shadows another variable of the same name declared
7187 in one of the up-level blocks. Just re-use the up-level
7188 variable instead.
7189
4e5c77fe
JB
71902012-03-29 Joel Brobecker <brobecker@adacore.com>
7191
7192 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7193 Replace block_found argument by symbol_info. Adjust
7194 implementation accordingly. Add function documentation.
7195 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7196 Fix documentation.
7197 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7198 * ada-exp.y (write_object_renaming): Adjust to new
7199 ada_lookup_encoded_symbol API.
7200
1c0ac8c7
JB
72012012-03-29 Joel Brobecker <brobecker@adacore.com>
7202
7203 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7204 documentation.
7205
2aaed979
KB
72062012-03-28 Rathish C <rathish.c@kpitcummins.com>
7207
7208 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7209 (v850_register_name): Add the mpu and fpu register names.
7210 (v850e_register_name): Add the mpu and fpu register names.
7211 (v850e2_register_name): New function.
a09130f9 7212 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7213 bfd_mach_v850e2v3.
7214
927fbba6
JB
72152012-03-28 Joel Brobecker <brobecker@adacore.com>
7216
7217 * NEWS: Add entry for Ada varobj support.
7218
d32cafc7
JB
72192012-03-28 Joel Brobecker <brobecker@adacore.com>
7220
7221 * varobj.c (default_value_is_changeable_p): New function,
7222 extracted from varobj_value_is_changeable_p. Add declaration.
7223 (ada_value_is_changeable_p): New function, extracted from
7224 varobj_value_is_changeable_p. Add declaration.
7225 (struct language_specific): New field "value_is_changeable_p".
7226 (languages): Add entries for new field.
7227 (varobj_create): Set language before calling install_new_value.
7228 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7229 "value_is_changeable_p" language callback.
7230
181875a4
JB
72312012-03-28 Joel Brobecker <brobecker@adacore.com>
7232
7233 * ada-varobj.h, ada-varobj.c: New files.
7234 * Makefile.in (SFILES): Add ada-varobj.c.
7235 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7236 (COMMON_OBS): Add ada-varobj.o.
7237
7a290c40
JB
72382012-03-28 Joel Brobecker <brobecker@adacore.com>
7239
7240 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7241 (struct language_specific): New field "value_has_mutated".
7242 (languages): Set field "value_has_mutated" in each entry of array.
7243 (varobj_value_has_mutated): New function.
7244 (varobj_udpdate): Add handling of type mutation.
7245 (value_of_root): Add handling of type mutation.
7246 (ada_value_has_mutated): New function.
7247
ca9b8b9c
PA
72482012-03-28 Pedro Alves <palves@redhat.com>
7249
7250 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7251 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7252
cc0265cd
TT
72532012-03-28 Tom Tromey <tromey@redhat.com>
7254
7255 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7256 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7257 before returning.
7258
3ad2ec6f
TT
72592012-03-28 Tom Tromey <tromey@redhat.com>
7260
7261 * .dir-locals.el: New file.
7262
4a6510ba
PA
72632012-03-28 Pedro Alves <palves@redhat.com>
7264
7265 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7266
5a75128f
JB
72672012-03-28 Joel Brobecker <brobecker@adacore.com>
7268
7269 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7270 handling for r0.
7271
f99d8bf4
PA
72722012-03-27 Pedro Alves <palves@redhat.com>
7273
7274 Eliminate struct ui_stream.
7275
7276 * ui-out.h (struct ui_stream): Delete.
7277 (ui_out_field_stream): Adjust prototype.
7278 (ui_out_stream_new, ui_out_stream_delete)
7279 (make_cleanup_ui_out_stream_delete): Delete declarations.
7280 * ui-out.c (ui_out_field_stream): Change prototype to take a
7281 ui_file instead of a ui_stream. Adjust.
7282 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7283 (make_cleanup_ui_out_stream_delete): Delete.
7284 * breakpoint.c (print_breakpoint_location)
7285 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7286 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7287 * disasm.c (dump_insns): Ditto.
7288 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7289 prototype.
7290 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7291 ui_stream/ui_out_stream_new.
7292 * infcmd.c (print_return_value): Ditto.
7293 * osdata.c (info_osdata_command): Don't allocate a local
7294 ui_stream.
7295 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7296 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7297 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7298 allocate a local ui_stream.
7299 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7300 instead of ui_stream/ui_out_stream_new.
7301 (list_args_or_locals): Don't allocate a local ui_stream.
7302 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7303 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7304 ui_stream/ui_out_stream_new.
7305 * cli/cli-setshow.c (do_setshow_command): Ditto.
7306
6350a066 73072012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7308
6350a066
PA
7309 * arm-linux-tdep.c (arm_linux_init_abi): Call
7310 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7311 * arm-tdep.c (arm_process_record): New function.
7312 (deallocate_reg_mem): New function.
7313 (decode_insn): New function.
7314 (thumb_record_branch): New function.
7315 (thumb_record_ldm_stm_swi(): New function.
7316 (thumb_record_misc): New function.
7317 (thumb_record_ld_st_stack): New function.
7318 (thumb_record_ld_st_imm_offset): New function.
7319 (thumb_record_ld_st_reg_offset(): New function.
7320 (thumb_record_add_sub_cmp_mov): New function.
7321 (thumb_record_shift_add_sub): New function.
7322 (arm_record_coproc_data_proc): New function.
7323 (arm_record_coproc): New function.
7324 (arm_record_b_bl): New function.
7325 (arm_record_ld_st_multiple): New function.
7326 (arm_record_ld_st_reg_offset): New function.
7327 (arm_record_ld_st_imm_offset): New function.
7328 (arm_record_data_proc_imm): New function.
7329 (arm_record_data_proc_misc_ld_str): New function.
7330 (arm_record_extension_space): New function.
7331 (arm_record_strx): New function.
7332 (sbo_sbz): New function.
7333 (struct insn_decode_record): New structure for arm insn record.
7334 (REG_ALLOC): New macro for reg allocations.
7335 (MEM_ALLOC): New macro for memory allocations.
7336 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7337
89e028e2
AS
73382012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7339
7340 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7341 (store_register): Likewise.
7342
6350a066 73432012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7344
6350a066 7345 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7346
5b43fab2
JK
73472012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7348
7349 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7350 Describe also the option "auto".
7351
b5453b95
RH
73522012-03-22 Richard Henderson <rth@redhat.com>
7353
7354 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7355 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7356
227ee7fc
RH
73572012-03-22 Richard Henderson <rth@redhat.com>
7358
7359 * jit.c (jit_read_code_entry): Compute alignment and offset of
7360 int64_t member before computing entry_size.
7361
7b282c5a
SCR
73622012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7363
7364 Python scripting: Add new method Value.referenced_value to
7365 gdb.Value which can dereference pointer as well as reference
7366 values.
7367 * NEWS: Add entry under 'Python scripting' about the new method
7368 Value.referenced_value on gdb.Value objects.
7369 * python/py-value.c (valpy_referenced_value): New function
7370 defining a new method on gdb.Value objects which can dereference
7371 pointer and reference values.
7372
0c83539f
SCR
73732012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7374
7375 * MAINTAINERS (Write After Approval): Add myself to the list.
7376
7ccffd7c
KB
73772012-03-21 Kevin Buettner <kevinb@redhat.com>
7378
7379 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7380 in addition to "main".
7381
bd0b9f9e
JB
73822012-03-21 Joel Brobecker <brobecker@adacore.com>
7383
7384 * expression.h (op_name): Add declaration.
7385 * expprint.c (op_name): Remove declaration. Make non-static.
7386 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7387
a5362b9a
TS
73882012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7389
7390 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7391 of struct siginfo.
7392 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7393 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7394 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7395 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7396 (linux_nat_get_siginfo): Likewise.
7397 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7398 (linux_nat_get_siginfo): Likewise.
7399 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7400 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7401 * procfs.c (gdb_siginfo_t): Likewise.
7402
adcadaab
MF
74032012-03-21 Mike Frysinger <vapier@gentoo.org>
7404
7405 * .gitignore: Ignore more files.
7406
e278ad5b
PA
74072012-03-20 Pedro Alves <palves@redhat.com>
7408
7409 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7410 returns.
7411
741e63d7
YQ
74122012-03-20 Yao Qi <yao@codesourcery.com>
7413
7414 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7415 comment.
7416
b64f50a1
JK
74172012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7418
7419 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7420 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7421 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7422 sect_offset.
7423 * dwarf2expr.h (cu_offset, sect_offset): New types.
7424 (struct dwarf_expr_context_funcs) <dwarf_call>
7425 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7426 sect_offset.
7427 (struct dwarf_expr_context) <len>: Improve the comment.
7428 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7429 cu_offset and sect_offset.
7430 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7431 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7432 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7433 * dwarf2loc.h: Include dwarf2expr.h.
7434 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7435 and sect_offset.
7436 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7437 Improve the comment.
7438 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7439 (struct signatured_type, struct line_header, struct partial_die_info)
7440 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7441 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7442 (get_die_type_at_offset, create_cus_from_index)
7443 (create_signatured_type_table_from_index, dw2_get_file_names)
7444 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7445 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7446 (create_debug_types_hash_table, process_psymtab_comp_unit)
7447 (load_partial_comp_unit, create_all_comp_units)
7448 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7449 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7450 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7451 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7452 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7453 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7454 (find_partial_die, read_attribute_value, lookup_die_type)
7455 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7456 (is_ref_attr): New function comment.
7457 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7458 Use cu_offset and sect_offset.
7459 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7460 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7461 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7462 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7463 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7464 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7465 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7466 sect_offset.
7467
e97a38f7
JK
74682012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7469
7470 Code cleanup.
7471 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7472 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7473 with xfree.
7474 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7475
8320cc4f
JK
74762012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7477
7478 * NEWS: Describe new options --init-command=FILE, -ix and
7479 --init-eval-command=COMMAND, -iex.
7480 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7481 CMDARG_INIT_COMMAND.
7482 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7483 "init-command", "init-eval-command", "ix" and "iex" to the variable
7484 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7485 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7486 (print_gdb_help): Describe --init-command=FILE, -ix and
7487 --init-eval-command=COMMAND, -iex.
7488
26743505
JK
74892012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7490
7491 Code cleanup.
7492 * main.c (struct cmdarg): Move it here from main. Add more comments.
7493 (cmdarg_s, VEC (cmdarg_s)): New.
7494 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7495 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7496 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7497 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7498 of CMDARG.
7499
5ff5c7b4
TT
75002012-03-19 Tom Tromey <tromey@redhat.com>
7501
7502 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7503
ab260dad
JK
75042012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7505
7506 PR symtab/13777
7507 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7508 GCC >=4.5.
7509
c366c1f0
TT
75102012-03-16 Chris January <chris.january@allinea.com>
7511
7512 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7513 of clear.
7514
e16edb45
TT
75152012-03-16 Chris January <chris.january@allinea.com>
7516
7517 * source.c (add_path): Use memmove instead of strcpy because the
7518 strings overlap.
7519
53ba8333
JB
75202012-03-16 Joel Brobecker <brobecker@adacore.com>
7521
7522 * value.h (set_value_parent): Add declaration.
7523 * value.c (set_value_parent): New function.
7524 (value_address): If VALUE->PARENT is not NULL, then use it as
7525 the base address instead of VALUE->LOCATION.address.
7526 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7527 the same as OBJ's address. Adjust V's offset accordingly.
7528 Set V's parent.
7529
481860b3
GB
75302012-03-16 Gary Benson <gbenson@redhat.com>
7531
7532 PR breakpoints/10738
7533 * dwarf2read.c (use_deprecated_index_sections): New global.
7534 (struct partial_die_info): New member may_be_inlined.
7535 (read_partial_die): Set may_be_inlined where appropriate.
7536 (add_partial_subprogram): Add partial symbols for partial
7537 DIEs that may be inlined.
7538 (new_symbol_full): Add inlined subroutines to the current
7539 scope.
7540 (write_psymtabs_to_index): Bump version number.
7541 (dwarf2_read_index): Read only version 6 indices unless
7542 use_deprecated_index_sections is set.
7543 * linespec.c (symbol_and_data_callback): New structure.
7544 (iterate_inline_only): New function.
7545 (iterate_over_all_matching_symtabs): New argument
7546 "include_inline". If nonzero, also call the callback for
7547 symbols representing inlined subroutines.
7548 (lookup_prefix_sym): Pass extra argument to the above.
7549 (find_function_symbols): Likewise.
7550 (add_matching_symbols_to_info): Likewise.
7551 * NEWS: Mention that GDB can now set breakpoints on inlined
7552 functions.
7553
d0e7e15a
PM
75542012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7555
7556 * p-typeprint.c (pascal_type_print_method_args):
7557 Fix display of parameter of methods.
7558
3d354654
PM
75592012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7560
7561 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7562 Add missing prototype.
7563
cafe75b0
JK
75642012-03-16 Yao Qi <yao@codesourcery.com>
7565 Jan Kratochvil <jan.kratochvil@redhat.com>
7566
7567 Fix false compilation warning.
7568 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7569
25f8c692
JL
75702012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7571 Pedro Alves <pedro@codesourcery.com>
7572
7573 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7574 (arm_register_g_packet_guesses): New function.
7575 (arm_gdbarch_init): Don't force a target description with
7576 registers when the executable is detected as M-profile. Instead
7577 set gdbarch->tdep->is_m. Register `g' packet guesses.
7578 (_initialize_arm_tdep): Initialize the new target description.
7579 * features/arm-with-m-fpa-layout.xml: New description.
7580 * features/arm-with-m-fpa-layout.c: New, generated.
7581
35c63cd8
JB
75822012-03-15 Joel Brobecker <brobecker@adacore.com>
7583
7584 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7585 Update function description.
7586 (insert_bp_location): Do not wipe bl->target_info out.
7587 * mem-break.c: #include "gdb_string.h".
7588 (default_memory_insert_breakpoint): Do not call target_read_memory
7589 with a pointer to the breakpoint's shadow_contents buffer. Use
7590 a local buffer instead.
7591 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7592
57651221
TT
75932012-03-15 Tom Tromey <tromey@redhat.com>
7594
7595 * NEWS: Mention "info vtbl", not "info vtable".
7596 * cp-support.c (info_vtbl_command): Fix comment.
7597 (_initialize_cp_support): Fix text.
7598
410528f0
TT
75992012-03-15 Tom Tromey <tromey@redhat.com>
7600
7601 * cp-valprint.c (cp_print_value_fields): Use
7602 print_function_pointer_address for vtable slot.
7603
c4aeac85
TT
76042012-03-15 Tom Tromey <tromey@redhat.com>
7605
7606 * gnu-v3-abi.c (struct value_and_voffset): New.
7607 (hash_value_and_voffset, eq_value_and_voffset)
7608 (compare_value_and_voffset, compute_vtable_size)
7609 (print_one_vtable, gnuv3_print_vtable): New functions.
7610 (init_gnuv3_ops): Initialize 'print_vtable' field.
7611 * cp-support.c (info_vtbl_command): New function.
7612 (_initialize_cp_support): Add "info vtbl".
7613 * cp-abi.h (cplus_print_vtable): Declare.
7614 (struct cp_abi_ops) <print_vtable>: New field.
7615 * cp-abi.c (cplus_print_vtable): New function.
7616 * NEWS: Update.
7617
95cbceff
TT
76182012-03-15 Tom Tromey <tromey@redhat.com>
7619
7620 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7621 iterate_over_symbols.
7622
589b4a32
DE
76232012-03-14 Doug Evans <dje@google.com>
7624
7625 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7626 DW_OP_GNU_parameter_ref.
7627
e837f12a
JK
76282012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7629
7630 Fix double prompt of 'interpreter-exec mi'.
7631 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7632 (mi_interpreter_resume): use it.
7633 (mi_execute_command_input_handler): New function.
7634 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7635 mi_execute_command_input_handler.
7636
ff1e4526 76372012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7638
7639 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7640 prototype.
7641 (darwin_debug_port_info): Make static.
7642 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7643 * machoread.c (_initialize_machoread): Add prototype.
7644 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7645 (i386_darwin_set_control, i386_darwin_get_control)
7646 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7647 i386_darwin_get_status, i386_darwin_get_control):
7648 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7649
d8a5d6ee
JB
76502012-03-13 Joel Brobecker <brobecker@adacore.com>
7651
7652 * ax-gdb.c (gen_usual_unary): Remove special handling of
7653 enum and bool types.
7654
af381b8c
JB
76552012-03-13 Joel Brobecker <brobecker@adacore.com>
7656
7657 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7658
786c562f
JB
76592012-03-13 Joel Brobecker <brobecker@adacore.com>
7660
7661 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7662
e3ebf1bb
JB
76632012-03-13 Chris January <chris.january@allinea.com>
7664
7665 * aix-thread.c (fill_sprs): Store the floating point registers
7666 at the correct offsets into vals.
7667
c5b7e1cb
DE
76682012-03-13 Doug Evans <dje@google.com>
7669
16899756
DE
7670 * NEWS: Mention symbol-reloading has been deleted.
7671 * symfile.c (symbol_reloading): Delete.
7672 (show_symbol_reloading): Delete.
7673 (_initialize_symfile): Delete set/show symbol-reloading.
7674
c5b7e1cb
DE
7675 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7676 read_in_chain until we have successfully read it in.
7677 (load_full_comp_unit): Ditto.
7678 (read_signatured_type): Add comment.
7679
46cb6474
JB
76802012-03-13 Chris January <chris.january@allinea.com>
7681
7682 * stabsread.c (fix_common_block): Change type of valu argument
7683 to CORE_ADDR.
7684
76219d77
JB
76852012-03-13 Chris January <chris.january@allinea.com>
7686
7687 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7688 instruction.
7689
87b0bb13
JK
76902012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7691
7692 * common/linux-procfs.c (linux_proc_get_int): New, from
7693 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7694 field.
7695 (linux_proc_get_tgid): Only call linux_proc_get_int.
7696 (linux_proc_get_tracerpid): New.
7697 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7698 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7699 linux_proc_pid_has_state.
7700 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7701 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7702 (linux_ptrace_attach_warnings): New.
7703 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7704 New declaration.
7705 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7706 (linux_nat_attach): New variables ex, buffer, message and message_s.
7707 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7708
5f572dec
JK
77092012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7710
7711 * Makefile.in (linux-ptrace.o): New.
7712 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7713 from linux-nat.c.
7714 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7715 * common/linux-ptrace.c: New file.
7716 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7717 * config/arm/linux.mh: Likewise.
7718 * config/i386/linux.mh: Likewise.
7719 * config/i386/linux64.mh: Likewise.
7720 * config/ia64/linux.mh: Likewise.
7721 * config/m32r/linux.mh: Likewise.
7722 * config/m68k/linux.mh: Likewise.
7723 * config/mips/linux.mh: Likewise.
7724 * config/pa/linux.mh: Likewise.
7725 * config/powerpc/linux.mh: Likewise.
7726 * config/powerpc/ppc64-linux.mh: Likewise.
7727 * config/powerpc/spu-linux.mh: Likewise.
7728 * config/s390/s390.mh: Likewise.
7729 * config/sparc/linux.mh: Likewise.
7730 * config/sparc/linux64.mh: Likewise.
7731 * config/xtensa/linux.mh: Likewise.
7732 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7733 common/linux-procfs.c.
7734 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7735
44f238bb
PA
77362012-03-13 Hui Zhu <teawater@gmail.com>
7737 Pedro Alves <palves@redhat.com>
7738
7739 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7740 CREATE_BREAKPOINT_FLAGS_INSERTED.
7741 (create_breakpoint_sal, create_breakpoints_sal)
7742 (base_breakpoint_create_breakpoints_sal)
7743 (tracepoint_create_breakpoints_sal)
7744 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7745 down.
7746 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7747 (ftrace_command, strace_command): Adjust.
7748 (create_tracepoint_from_upload): Pass
7749 CREATE_BREAKPOINT_FLAGS_INSERTED.
7750 * breakpoint.h (enum breakpoint_create_flags): New.
7751 (create_breakpoint): New flags parameter.
7752 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7753 * python/py-breakpoint.c (bppy_init): Adjust.
7754 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7755 * spu-tdep.c (spu_catch_start): Adjust.
7756
1e51243a
PA
77572012-03-13 Pedro Alves <palves@redhat.com>
7758 Hui Zhu <teawater@gmail.com>
7759 Yao Qi <yao@codesourcery.com>
7760
7761 * remote.c (struct remote_state): New field `starting_up'.
7762 (remote_start_remote): Set and clear it.
7763 (remote_can_download_tracepoint): If starting up, return false.
7764
fa3064dd
YQ
77652012-03-13 Yao Qi <yao@codesourcery.com>
7766
7767 * inferior.h (struct inferior): Remove fields any_syscall_count,
7768 syscalls_counts and total_syscalls_count. Move them to new
7769 struct catch_syscall_inferior_data in breakpoint.c.
7770 * breakpoint.c: Call DEF_VEC_I(int).
7771 (struct catch_syscall_inferior_data): New.
7772 (get_catch_syscall_inferior_data): New.
7773 (catch_syscall_inferior_data_cleanup): New.
7774 (insert_catch_syscall): Update to access data in
7775 struct catch_syscall_inferior_data.
7776 (insert_catch_syscall): Likewise.
7777 (remove_catch_syscall): Likewise.
7778 (remove_catch_syscall): Likewise.
7779 (is_syscall_catchpoint_enabled): Likewise.
7780 (add_catch_command): Likewise.
7781 (_initialize_breakpoint): Register cleanup.
7782 * breakpoint.h: Removed DEF_VEC_I(int).
7783 * dwarf2loc.c: Call DEF_VEC_I(int).
7784 * mi/mi-main.c: Likewise.
7785
460fac3c
MK
77862012-03-12 Mark Kettenis <kettenis@gnu.org>
7787
7788 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7789
e1aca11e
JB
77902012-03-12 Chris January <chris.january@allinea.com>
7791
7792 * aix-thread.c (_initialize_aix_thread): Add prototype.
7793 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7794 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7795
649c7061
JB
77962012-03-12 Joel Brobecker <brobecker@adacore.com>
7797
7798 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7799 include of "amd64-nat.h".
7800
0b49e518
TT
78012012-03-12 Tom Tromey <tromey@redhat.com>
7802
7803 * buildsym.c (record_pending_block): Now static.
7804 * buildsym.h: (record_pending_block): Remove.
7805
fd24fa94
AT
78062012-03-12 Andreas Tobler <andreast@fgznet.ch>
7807
7808 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7809
ba919b58
TT
78102012-03-09 Tom Tromey <tromey@redhat.com>
7811
7812 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7813 producer_is_gxx_lt_4_6>: New fields.
7814 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7815
a48e046c
TT
78162012-03-09 Tom Tromey <tromey@redhat.com>
7817
7818 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7819
6f5e9362
JB
78202012-03-08 Joel Brobecker <brobecker@adacore.com>
7821
7822 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7823 prototype.
7824
8d037db9
JB
78252012-03-08 Joel Brobecker <brobecker@adacore.com>
7826
7827 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7828
4e841acf
JK
78292012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7830
7831 Fix -Wmissing-prototypes build.
7832 * arm-linux-nat.c (get_thread_id): Make it static.
7833 * xtensa-linux-nat.c (get_thread_id): Likewise.
7834
c6030312
JB
78352012-03-08 Joel Brobecker <brobecker@adacore.com>
7836
7837 * server.c (process_point_options): If a conditional expression
7838 is found, only print a message if remote_debug is nonzero.
7839
52323be9
LM
78402012-03-08 Luis Machado <lgustavo@codesourcery.com>
7841
7842 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7843 of internal error for unknown/unsupported types.
7844
7fe25d9b
JK
78452012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7846
7847 Fix CU relative vs. absolute DIE offsets.
7848 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7849 offset to offset_in_cu.
7850 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7851 TYPE_OFFSET.
7852 (dwarf2_fetch_die_location_block): Rename parameter offset to
7853 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7854
05e7c244
JK
78552012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7856
7857 * libunwind-frame.c: Rename to ...
7858 * ia64-libunwind-tdep.c: ... here.
7859 * libunwind-frame.h: Rename to ...
7860 * ia64-libunwind-tdep.h: ... here.
7861 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7862 ia64-libunwind-tdep.h.
7863 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7864 * README (--with-libunwind): Rename to ...
7865 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7866 * config.in: Regenerate.
7867 * configure: Regenerate.
7868 * configure.ac: New option --with-libunwind-ia64, make the
7869 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7870 Remove AC_DEFINE for HAVE_LIBUNWIND.
7871 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7872 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7873 Rename libunwind-frame in the general comment.
7874 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7875 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7876 Move forward declarations inside #ifndef. Rename libunwind-frame in
7877 the general comment.
7878 * ia64-tdep.c: Rename libunwind-frame.h #include to
7879 ia64-libunwind-tdep.h.
7880 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7881 (ia64_libunwind_descr): Rename libunwind-frame to
7882 ia64-libunwind-tdep in these function comments.
7883 * ia64-tdep.h: Rename libunwind-frame.h #include to
7884 ia64-libunwind-tdep.h.
7885 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7886 ia64-libunwind-tdep in that data comment.
7887
3755cbfd
JK
78882012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 * libunwind-frame.h (struct frame_unwind): New declaration.
7891
d1cda5d9
JB
78922012-03-08 Joel Brobecker <brobecker@adacore.com>
7893
7894 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7895 "set breakpoint condition-evaluation" command.
7896
a0ba0aa2
TG
78972012-03-08 Tristan Gingold <gingold@adacore.com>
7898
7899 * sparc-stub.c: Move to stubs/
7900 * sh-stub.c: Likewise.
7901 * m68k-stub.c: Likewise.
7902 * m32r-stub.c: Likewise.
7903 * i386-stub.c: Likewise.
7904
7b8b6d6d
AS
79052012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7906
007cafee
AS
7907 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7908 linux_get_siginfo_type.
7909
7b8b6d6d
AS
7910 * m68klinux-nat.c: Include "gdb_proc_service.h".
7911 (PTRACE_GET_THREAD_AREA): Define.
7912 (ps_get_thread_area): New function.
7913
bba74b36
YQ
79142012-03-08 Yao Qi <yao@codesourcery.com>
7915
7916 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7917 `xsnprintf'.
7918 (remote_query_attached): Likewise.
7919 (remote_static_tracepoint_marker_at): Likewise.
7920 (remote_set_permissions): Likewise.
7921 (remote_detach_1, extended_remote_attach_1): Likewise.
7922 (send_g_packet, remote_vkill): Likewise.
7923 (extended_remote_disable_randomization): Likewise.
7924 (remote_add_target_side_condition): Likewise.
7925 (remote_insert_breakpoint): Likewise.
7926 (remote_remove_breakpoint): Likewise.
7927 (remote_insert_watchpoint): Likewise.
7928 (remote_remove_watchpoint): Likewise.
7929 (remote_insert_hw_breakpoint): Likewise.
7930 (remote_insert_hw_breakpoint): Likewise.
7931 (remote_remove_hw_breakpoint): Likewise.
7932 (remote_download_command_source): Likewise.
7933 (remote_download_tracepoint): Likewise.
7934 (remote_download_trace_state_variable): Likewise.
7935 (remote_disable_tracepoint): Likewise.
7936 (remote_trace_set_readonly_regions): Likewise.
7937 (remote_get_tracepoint_status): Likewise.
7938 (remote_trace_find): Likewise.
7939 (remote_get_trace_state_variable_value): Likewise.
7940 (remote_set_disconnected_tracing): Likewise.
7941 (remote_set_circular_trace_buffer): Likewise.
7942 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7943 (remote_use_agent): Likewise.
7944 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7945 Update callers.
7946
9b224c5e
PA
79472012-03-07 Pedro Alves <palves@redhat.com>
7948
7949 * NEWS: Mention QProgramSignals.
7950 * inferior.h (update_signals_program_target): Declare.
7951 * infrun.c: (update_signals_program_target): New.
7952 (handle_command): Update the target of the new program signals
7953 array changes.
7954 * remote.c (PACKET_QProgramSignals): New enum.
7955 (last_program_signals_packet): New global.
7956 (remote_program_signals): New.
7957 (remote_start_remote): Update the target with the program signals
7958 list.
7959 (remote_protocol_features): Add entry for QPassSignals.
7960 (remote_open_1): Free anc clear last_program_signals_packet.
7961 (init_remote_ops): Install remote_program_signals.
7962 * target.c (update_current_target): Adjust.
7963 (target_program_signals): New.
7964 * target.h (struct target_ops) <to_program_signals>: New field.
7965 (target_program_signals): Declare.
7966
74c48cbb
PA
79672012-03-07 Pedro Alves <palves@redhat.com>
7968
7969 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7970 extensions.
7971
0c13fc49
AS
79722012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7973
7974 * m68klinux-nat.c (getregs_supplies): Make static.
7975 (getfpregs_supplies): Likewise.
7976 (have_ptrace_getregs): Likewise.
7977
1281d2a3
JB
79782012-03-06 Joel Brobecker <brobecker@adacore.com>
7979
7980 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7981 in call to get_die_type_at_offset.
7982
2b03b41d
SS
79832012-03-06 Stan Shebs <stan@codesourcery.com>
7984
7985 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7986 * mi/mi-cmd-disas.c: Ditto.
7987 * mi/mi-cmd-env.c: Ditto.
7988 * mi/mi-cmd-file.c: Ditto.
7989 * mi/mi-cmd-stack.c: Ditto.
7990 * mi/mi-cmd-target.c: Ditto.
7991 * mi/mi-cmd-var.c: Ditto.
7992 * mi/mi-cmds.c: Ditto.
7993 * mi/mi-cmds.h: Ditto.
7994 * mi/mi-console.c: Ditto.
7995 * mi/mi-getopt.c: Ditto.
7996 * mi/mi-getopt.h: Ditto.
7997 * mi/mi-interp.c: Ditto.
7998 * mi/mi-main.c: Ditto.
7999 * mi/mi-out.c: Ditto.
8000 * mi/mi-parse.c: Ditto.
8001 * mi/mi-parse.h: Ditto.
8002 * mi/mi-symbol-cmds.c: Ditto.
8003
8004 * mi/mi-getopt.h: Move mi_opt struct up.
8005 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8006 return.
8007 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8008
c988ad87
TT
80092012-03-06 Tom Tromey <tromey@redhat.com>
8010
8011 * proc-service.c (ps_pglobal_lookup): Set the current program
8012 space.
8013
1b7c1b10
PA
80142012-03-06 Pedro Alves <palves@redhat.com>
8015
8016 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8017
3c182069
JB
80182012-03-05 Joel Brobecker <brobecker@adacore.com>
8019
8020 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8021
2e794194
JK
80222012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8023
8024 Code cleanup.
8025 * common/linux-osdata.c (linux_common_core_of_thread): New function
8026 comment.
8027 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8028 call by linux_common_core_of_thread.
8029 (linux_nat_core_of_thread_1): Remove.
8030 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8031 * linux-thread-db.c: Include linux-osdata.h.
8032 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8033 linux_common_core_of_thread.
8034
9f9f1f31
TT
80352012-03-05 Tom Tromey <tromey@redhat.com>
8036
8037 * value.c (value_primitive_field): Don't fetch contents for
8038 non-virtual bases.
8039
b7b189f3
TT
80402012-03-05 Tom Tromey <tromey@redhat.com>
8041
8042 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8043
05b8a789 80442012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8045
5538f557
JB
8046 * s390-nat.c: Include "gregset.h".
8047
75528772
JK
80482012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8049
8050 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8051 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8052 (libunwind_load): New variable so_error, use it for dlerror. Try to
8053 load also LIBUNWIND_SO_7.
8054
275418ae
PA
80552012-03-05 Pedro Alves <palves@redhat.com>
8056
8057 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8058 is not NULL, and remove resulting dead code.
8059
5cbb9812
TS
80602012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8061
8062 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8063 prologue to sh_analyze_prologue.
8064 (sh_analyze_prologue): Make better use of such an upper limit, and
8065 generally be more cautious about accessing memory.
8066
541515ad
TT
80672012-03-05 Tom Tromey <tromey@redhat.com>
8068
8069 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8070 _initialize_ia64_hpux_tdep.
8071
b4d36fb8
PA
80722012-03-05 Pedro Alves <palves@redhat.com>
8073
24490249
PA
8074 PR gdb/13766
8075
b4d36fb8
PA
8076 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8077 the register state is clear, supply explicit zero, instead of
8078 marking the register unavailable.
8079
60c9a3c0
TG
80802012-03-05 Tristan Gingold <gingold@adacore.com>
8081
8082 * NEWS: Mention OpenVMS ia64 new target.
8083
696759ad
TG
80842012-03-05 Tristan Gingold <gingold@adacore.com>
8085
8086 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8087 (ia64_unw_accessors, ia64_unw_rse_accessors)
8088 (ia64_libunwind_descr): Declare.
8089 * ia64-vms-tdep.c: New file.
8090 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8091 (ia64_libunwind_descr): Make them public.
8092 * configure.tgt: Add ia64-*-*vms*.
8093 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8094 (ALLDEPFILES): Add ia64-vms-tdep.c
8095
34864976
TG
80962012-03-05 Tristan Gingold <gingold@adacore.com>
8097
169081d0
TG
8098 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8099 * remote.c (PACKET_qXfer_uib): New enum value.
8100 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8101 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8102 (_initialize_remote): Call add_packet_config_cmd for
8103 xfer:uib packet.
8104
81052012-03-05 Tristan Gingold <gingold@adacore.com>
8106
8107 * osabi.c (gdb_osabi_names): Add OpenVMS.
8108 (generic_elf_osabi_sniffer): Likewise.
8109 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8110
6597b100
JK
81112012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8112
8113 Removed unused code.
8114 * libunwind-frame.c (libunwind_frame_unwind)
8115 (libunwind_frame_base_address): Remove.
8116 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8117
87399aa1
YQ
81182012-03-04 Yao Qi <yao@codesourcery.com>
8119
8120 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8121 remove trailing new line.
8122 (agent_run_command, agent_run_command): Add _ markup.
8123 (agent_capability_check): Likewise.
8124
abf1152a
JK
81252012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8126
8127 * breakpoint.c (set_condition_evaluation_mode): Set
8128 CONDITION_EVALUATION_MODE unconditionally.
8129
5808517f
YQ
81302012-03-03 Yao Qi <yao@codesourcery.com>
8131
8132 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8133 * common/agent.h: Update declaration.
8134 * inf-child.c (inf_child_use_agent): New.
8135 (inf_child_can_use_agent): New.
8136 (inf_child_target): Initialize fields `to_use_agent'
8137 and `to_can_use_agent'.
8138 * agent.c (agent_new_objfile): New.
89b7509a 8139 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8140 observer.
8141
8142 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8143 New.
89b7509a 8144 (linux_target_install_ops): Initialize field
5808517f
YQ
8145 `to_static_tracepoint_markers_by_strid'.
8146 * remote.c (free_current_marker): Move it to ...
8147 * tracepoint.c (free_current_marker): ... here. New.
8148 (cleanup_target_stop): New.
8149 * tracepoint.h: Declare free_current_marker.
8150 * NEWS: Add one entry about `info static-tracepoint-marker'.
8151
58b4daa5
YQ
81522012-03-03 Yao Qi <yao@codesourcery.com>
8153
8154 * common/agent.c (agent_loaded_p): New.
89b7509a 8155 (agent_look_up_symbols): New global.
58b4daa5
YQ
8156 * common/agent.h: Declare agent_loaded_p.
8157
8ffcbaaf
YQ
81582012-03-03 Yao Qi <yao@codesourcery.com>
8159
8160 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8161 (agent_capability_check, agent_capability_invalidate): New.
8162 (symbol_list): New array element.
8163 * common/agent.h (enum agent_capa): New.
8164 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8165
d1feda86
YQ
81662012-03-03 Yao Qi <yao@codesourcery.com>
8167
8168 * target.h (struct target_ops) <to_use_agent>: New field.
8169 (struct target_ops) <to_can_use_agent>: New field.
8170 (target_use_agent, target_can_use_agent): New macro.
8171 * target.c (update_current_target): Update.
8172 * remote.c: New enum `PACKET_QAgent'.
8173 (remote_protocol_features): Add a new element.
8174 (remote_use_agent, remote_can_use_agent): New.
8175 (init_remote_ops): Initialize field `can_use_agent' with
8176 remote_can_use_agent. Intiailize field `use_agent' with
8177 remote_use_agent.
8178 * common/agent.c (use_agent): New global.
8179 * common/agent.h: Declare it.
8180 * tracepoint.c (info_static_tracepoint_markers_command): Add
8181 comment.
8182 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8183 (COMMON_OBS): Add common/agent.o and agent.o
8184 (common-agent.o): New rule.
8185 * agent.c: New.
8186
2fa291ac
YQ
81872012-03-03 Yao Qi <yao@codesourcery.com>
8188
8189 * common/agent.c: New.
8190 * common/agent.h: New.
8191 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8192 AC_CHECK_HEADERS.
8193 * configure, configh.in: Regenerated.
8194
9fc05685
KB
81952012-03-02 Kevin Buettner <kevinb@redhat.com>
8196
8197 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8198 unless it exists for this architecture.
8199
a5ee536b
JB
82002012-03-02 Joel Brobecker <brobecker@adacore.com>
8201
8202 * language.h (struct language_defn): New "method" la_read_var_value.
8203 * findvar.c: #include "language.h".
8204 (default_read_var_value): Renames read_var_value. Rewrite
8205 function description.
8206 (read_var_value): New function.
8207 * value.h (default_read_var_value): Add prototype.
8208 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8209 New functions.
8210 (ada_language_defn): Add entry for la_read_var_value.
8211 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8212 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8213 language_defn structures to add entry for new la_read_var_value
8214 field.
8215
f59f708a
PA
82162012-03-02 Tom Tromey <tromey@redhat.com>
8217 Pedro Alves <palves@redhat.com>
8218
8219 PR breakpoints/13776:
8220 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8221 breakpoints.
8222 (delete_longjmp_breakpoint_at_next_stop): New.
8223 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8224 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8225 before deleting the inferior. Add comments.
8226 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8227 breakpoints immediately, but only on next stop. Move that code
8228 next to where we mark other breakpoints for deletion.
8229
44099a67
JB
82302012-03-02 Joel Brobecker <brobecker@adacore.com>
8231
8232 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8233 marker.
8234 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8235 violation.
8236
2a2ef594
PA
82372012-03-02 Pedro Alves <palves@redhat.com>
8238
8239 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8240
b261e0c5
UW
82412012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8242
8243 Fix -Wmissing-prototypes build.
8244 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8245 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8246 (gdbsim_has_memory): Likewise.
8247
a95babbf
YQ
82482012-03-02 Yao Qi <yao@codesourcery.com>
8249
8250 Fix -Wmissing-prototypes build.
8251 * charset.c (phony_iconv_open): Make static.
8252 (phony_iconv_close, phony_iconv): Likewise.
8253 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8254 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8255 prototype.
8256 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8257 * ser-mingw.c (create_select_thread): Make static.
8258 * windows-termcap.c (tgetent): New prototype.
8259 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8260
d603d4b3
JK
82612012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8262
8263 Fix -Wmissing-prototypes build.
8264 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8265 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8266 (_initialize_loadable): New prototypes.
8267
7fb3ad1f
DE
82682012-03-02 Doug Evans <dje@google.com>
8269
8270 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8271 abbrev table, read_comp_unit will do it.
8272
693be288
JK
82732012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8274
8275 Fix -Wmissing-prototypes build.
8276 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8277 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8278 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8279 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8280 (_initialize_arm_symbian_tdep): New prototype.
8281 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8282 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8283 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8284 static.
8285 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8286 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8287 prototype.
8288 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8289 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8290 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8291 static.
8292 * moxie-tdep.c (moxie_process_record): Likewise.
8293 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8294 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8295 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8296 (_initialize_rl78_tdep): New prototype.
8297 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8298 (_initialize_rx_tdep): New prototype.
8299 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8300 (_initialize_darwin_solib): New prototype.
8301 * solib-spu.c: Include solib-spu.h.
8302 (_initialize_spu_solib): New prototype.
8303 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8304 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8305 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8306 (tic6x_software_single_step): Make it static.
8307 (_initialize_tic6x_tdep): New prototype.
8308
638234e5
JK
83092012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8310
8311 Fix -Wmissing-prototypes build.
8312 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8313 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8314
f4a6f16d
JK
83152012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8316
8317 Fix -Wmissing-prototypes build.
8318 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8319 (frv_have_stopped_data_address): Remove.
8320
04dcf5fa
JK
83212012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8322
8323 Fix -Wmissing-prototypes build.
8324 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8325 * sh-tdep.c: Include sh64-tdep.h.
8326 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8327 * sh64-tdep.c: Include sh64-tdep.h.
8328 * sh64-tdep.h: New file.
8329
19080931
MR
83302012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8331
8332 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8333
9aac7884
MR
83342012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8335
8336 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8337 sp_regnum once the gdbarch_init_osabi hook has been called.
8338
a385295e
MR
83392012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8340
8341 * mips-tdep.c (mips32_bc1_pc): New function.
8342 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8343 BPOSGE32 and BPOSGE64 instructions.
8344 (deal_with_atomic_sequence): Likewise.
8345 (mips32_instruction_has_delay_slot): Likewise.
8346
1faeff08 83472012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8348 Chris Dearman <chris@mips.com>
8349 Maciej W. Rozycki <macro@codesourcery.com>
8350 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8351
8352 * features/mips-dsp.xml: New file.
8353 * features/mips64-dsp.xml: New file.
8354 * features/mips-dsp-linux.xml: New file.
8355 * features/mips64-dsp-linux.xml: New file.
8356 * features/Makefile (WHICH): Add mips-dsp-linux and
8357 mips64-dsp-linux.
8358 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8359 * features/mips-dsp-linux.c: New file.
8360 * features/mips64-dsp-linux.c: New file.
8361 * regformats/mips-dsp-linux.dat: New file.
8362 * regformats/mips64-dsp-linux.dat: New file.
8363 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8364 registers.
8365 (mips64_linux_register_addr): Likewise.
8366 (mips64_linux_regsets_fetch_registers): Likewise.
8367 (mips64_linux_regsets_store_registers): Likewise.
8368 (mips64_linux_fetch_registers): Update call to
8369 mips64_linux_regsets_fetch_registers.
8370 (mips64_linux_store_registers): Update call to
8371 mips64_linux_regsets_store_registers.
8372 (mips_linux_read_description): Probe for DSP registers.
8373 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8374 and initialize_tdesc_mips64_dsp_linux.
8375 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8376 Remove padding of no longer used embedded register slots.
8377 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8378 (MIPS_RESTART_REGNUM): Redefine enum value.
8379 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8380 strings.
8381 (mips_tx39_reg_names): Likewise.
8382 (mips_linux_reg_names): New array of register names for Linux
8383 targets.
8384 (mips_register_name): Check for a null pointer in
8385 mips_processor_reg_names and return an empty string.
8386 (mips_register_type): Exclude embedded registers for the IRIX
8387 and Linux ABIs.
8388 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8389 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8390 DSP registers.
8391 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8392 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8393 (mips_gdbarch_init): Likewise. Initialize internal register
8394 indices for the Linux ABI. Use dynamic numbers to refer to
8395 registers, as applicable, while parsing the target description.
8396 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8397
263689d8
JB
83982012-03-01 Joel Brobecker <brobecker@adacore.com>
8399
8400 * frame.h (read_frame_register_unsigned): Fix typo in function
8401 description.
8402
f3b4f45c
PA
84032012-03-01 Pedro Alves <palves@redhat.com>
8404
8405 * jit-reader.in [!__cplusplus]
8406 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8407
b03a2011
PA
84082012-03-01 Pedro Alves <palves@redhat.com>
8409
8410 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8411 * configure: Regenerate.
8412
70221824
PA
84132012-03-01 Pedro Alves <palves@redhat.com>
8414
8415 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8416 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8417 (ftrace_command, strace_command): Make static.
8418 * d-lang.c (_initialize_d_language): Declare.
8419 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8420 * dwarf2loc.c (_initialize_dwarf2loc):
8421 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8422 * exec.c (exec_get_section_table): Make static.
8423 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8424 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8425 * inferior.c (remove_inferior_command, add_inferior_command)
8426 (clone_inferior_command): Make static.
8427 * linux-nat.c (linux_nat_thread_address_space)
8428 (linux_nat_core_of_thread): Make static.
8429 * linux-tdep.c (_initialize_linux_tdep): Declare.
8430 * objc-lang.c (_initialize_objc_lang): Declare.
8431 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8432 Make static.
8433 (_initialize_opencl_language): Declare.
8434 * record.c (_initialize_record): Declare.
8435 * remote.c (demand_private_info, remote_get_tib_address)
8436 (remote_supports_cond_tracepoints)
8437 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8438 Make static.
8439 * skip.c (_initialize_step_skip): Declare.
8440 * symtab.c (skip_prologue_using_lineinfo): Make static.
8441 * tracepoint.c (delete_trace_state_variable)
8442 (trace_variable_command, delete_trace_variable_command)
8443 (get_uploaded_tsv, find_matching_tracepoint_location)
8444 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8445 Make static.
8446 * value.c (pack_unsigned_long): Make static.
8447 * varobj.c (varobj_ensure_python_env): Make static.
8448 * windows-tdep.c (_initialize_windows_tdep): Declare.
8449 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8450
33fbcbee
PA
84512012-03-01 Pedro Alves <palves@redhat.com>
8452
8453 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8454 gdbarch parameter.
8455 (linux_init_abi): Install it as has_shared_address_space gdbarch
8456 callback.
8457
44d0cd3b
PA
84582012-03-01 Pedro Alves <palves@redhat.com>
8459
8460 * observer.c (observer_test_first_notification_function)
8461 (observer_test_second_notification_function)
8462 (observer_test_third_notification_function): Add declarations.
8463
ed01b82c
PA
84642012-03-01 Pedro Alves <palves@redhat.com>
8465
8466 * common/signals.c (default_target_signal_to_host)
8467 (default_target_signal_from_host): Move ...
8468 * arch-utils.c: ... here.
8469 * arch-utils.h (default_target_signal_to_host)
8470 (default_target_signal_from_host): Declare.
8471
8472 * common/signals.c (target_signal_from_command): Move ...
8473 * infrun.c: ... here.
8474 * inferior.h (target_signal_from_command): Declare.
8475 * target.h (target_signal_from_command)
8476 (default_target_signal_from_host, default_target_signal_to_host):
8477 Delete declarations.
8478
8479 * common/signals.c (_initialize_signals): Delete.
8480
c9b87335
PA
84812012-03-01 Pedro Alves <palves@redhat.com>
8482
8483 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8484 both __cplusplus and !__cplusplus.
8485
9340a6c0
PA
84862012-03-01 Pedro Alves <palves@redhat.com>
8487
8488 * psymtab.c (find_and_open_source): Delete declaration.
8489 * source.c (find_and_open_source): Move comment ...
8490 * source.h (find_and_open_source): ... to this new declaration.
8491
e451c4a1
PA
84922012-03-01 Pedro Alves <palves@redhat.com>
8493
8494 * inline-frame.c: Include inline-frame.h.
8495
983fb104
PA
84962012-03-01 Pedro Alves <palves@redhat.com>
8497
8498 * tui/tui-data.c (set_gen_win_origin): Delete.
8499 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8500 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8501
5fbce5df
PA
85022012-03-01 Pedro Alves <palves@redhat.com>
8503
8504 * remote.c (encode_actions): Delete declaration.
8505 * tracepoint.c (encode_actions): Make extern.
8506 * tracepoint.h (encode_actions): Declare.
8507
49a8461d
PA
85082012-03-01 Pedro Alves <palves@redhat.com>
8509
8510 * python/py-breakpoint.c: Include python.h.
8511 * python/py-continueevent.c (create_continue_event_object): Make
8512 static.
8513 * python/py-lazy-string.c (stpy_get_type): Make static.
8514 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8515 Make static.
8516 * python/py-utils.c (unicode_to_target_python_string): Make
8517 static.
8518 * python/py-value.c: Include python.h.
8519
9079102f
PA
85202012-03-01 Pedro Alves <palves@redhat.com>
8521
8522 * inferior.c (delete_threads_of_inferior): Delete.
8523
a298c5e8
PA
85242012-03-01 Pedro Alves <palves@redhat.com>
8525
8526 Import fallback definitions from glibc.
8527
8528 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8529 ps_prochandle): Forward declare.
8530 (ps_err_e): Use glibc's comments.
8531 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8532 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8533 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8534 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8535 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8536 (struct ps_prochandle): Adjust comment.
8537
e3084549
PA
85382012-03-01 Pedro Alves <palves@redhat.com>
8539
8540 * ada-lang.c (ada_modulus_from_name): Delete.
8541 * ada-lex.l (lexer_init): Make static.
8542
ad5f7d6e
PA
85432012-03-01 Pedro Alves <palves@redhat.com>
8544
8545 PR gdb/13767
8546
8547 * frame.c (read_frame_register_unsigned): New.
8548 * frame.h (read_frame_register_unsigned): Declare.
8549 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8550 Handle it.
8551 (print_i387_control_word): New parameter `control_p'. Handle it.
8552 (i387_print_float_info): Handle unavailable float registers.
8553
e0a4d108
KS
85542012-03-01 Keith Seitz <keiths@redhat.com>
8555
8556 * linespec.c (decode_line_2): Sort the list of methods
8557 alphabetically before presenting the user with a selection
8558 menu.
8559
122d1940
DE
85602012-03-01 Doug Evans <dje@google.com>
8561
8562 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8563 has_namespace_info.
8564 (dwarf2_read_abbrevs): Remove corresponding initialization.
8565
7d74f244
DE
85662012-03-01 Scott J. Goldman <scottjg@vmware.com>
8567
8568 * NEWS: Mention new python command class gdb.COMMAND_USER.
8569 * cli/cli-cmds.c (show_user): Print error when used on a python
8570 command.
8571 (init_cli_cmds): Update documentation strings for "show user" and
8572 "set/show max-user-call-depth" to clarify that it does not apply to
8573 python commands.
8574 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8575 error check.
8576 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8577 gdb python api.
8578 * top.c (execute_command): Only execute a user-defined command as a
8579 legacy macro if c->user_commands is set.
8580
e88acd96
TT
85812012-03-01 Tom Tromey <tromey@redhat.com>
8582
8583 * valprint.h (struct generic_val_print_decorations): New.
8584 (generic_val_print): Declare.
8585 * valprint.c (generic_val_print): New function.
8586 * p-valprint.c (p_decorations): New global.
8587 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8588 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8589 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8590 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8591 * m2-valprint.c (m2_decorations): New global.
8592 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8593 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8594 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8595 TYPE_CODE_ERROR>: Call generic_val_print.
8596 * f-valprint.c (f_decorations): New global.
8597 (f_val_print): Use print_function_pointer_address.
8598 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8599 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8600 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8601 generic_val_print.
8602 * c-valprint.c (c_decorations): New global.
8603 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8604 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8605 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8606 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8607 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8608 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8609 case.
8610
d3eab38a
TT
86112012-03-01 Tom Tromey <tromey@redhat.com>
8612
8613 * valprint.c (val_print): Update.
8614 * p-valprint (pascal_val_print): Return void.
8615 * p-lang.h (pascal_val_print): Return void.
8616 * m2-valprint.c (m2_val_print): Return void.
8617 * m2-lang.h (m2_val_print): Return void.
8618 * language.h (struct language_defn) <la_val_print>: Return void.
8619 * language.c (unk_lang_val_print): Return void.
8620 * jv-valprint.c (java_val_print): Return void.
8621 * jv-lang.h (java_val_print): Return void.
8622 * f-valprint.c (f_val_print): Return void.
8623 * f-lang.h (f_val_print): Return void.
8624 * d-valprint.c (d_val_print): Return void.
8625 (dynamic_array_type): Update.
8626 * d-lang.h (d_val_print): Return void.
8627 * c-valprint.c (c_val_print): Return void.
8628 * c-lang.h (c_val_print): Return void.
8629 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8630 void.
8631 * ada-lang.h (ada_val_print): Return void.
8632
35c0084b
TT
86332012-03-01 Tom Tromey <tromey@redhat.com>
8634
8635 * value.h (val_print): Return void.
8636 * valprint.c (val_print): Return void.
8637
a1f5dd1b
TT
86382012-03-01 Tom Tromey <tromey@redhat.com>
8639
8640 * value.h (common_val_print): Return void.
8641 * valprint.c (common_val_print): Return void.
8642
8e069a98
TT
86432012-03-01 Tom Tromey <tromey@redhat.com>
8644
8645 * value.h (value_print): Return void.
8646 * valprint.c (value_print): Return void.
8647 * p-valprint.c (pascal_value_print): Return void.
8648 * p-lang.h (pascal_value_print): Return void.
8649 * language.h (struct language_defn) <la_value_print>: Return
8650 void.
8651 * language.c (unk_lang_value_print): Return void.
8652 * jv-valprint.c (java_value_print): Return void.
8653 * jv-lang.h (java_value_print): Return void.
8654 * f-valprint.c (c_value_print): Don't declare.
8655 Include c-lang.h.
8656 * c-valprint.c (c_value_print): Return void.
8657 * c-lang.h (c_value_print): Return void.
8658 * ada-valprint.c (ada_value_print): Return void.
8659 * ada-lang.h (ada_value_print): Return void.
8660
be335936
TT
86612012-03-01 Tom Tromey <tromey@redhat.com>
8662
8663 * value.c (value_primitive_field): Handle virtual base classes.
8664
b0db66a7
TT
86652012-03-01 Tom Tromey <tromey@redhat.com>
8666
8667 * gdbtypes.h (struct vbase): Remove.
8668
132c57b4
TT
86692012-03-01 Tom Tromey <tromey@redhat.com>
8670
8671 * c-valprint.c (print_function_pointer_address): Move...
8672 * valprint.c: ... here. Make non-static.
8673 * m2-valprint.c (print_function_pointer_address): Remove.
8674 * valprint.h (print_function_pointer_address): Declare.
8675
e41eec66
JB
86762012-03-01 Joel Brobecker <brobecker@adacore.com>
8677
8678 * NEWS: Document the fact that one can provide a condition when
8679 creating an Ada exception catchpoint.
8680
19c37f24
TT
86812012-03-01 Tom Tromey <tromey@redhat.com>
8682
8683 * valprint.c (val_print_type_code_flags): Fix placement of
8684 trailing brace.
8685
f0fed3a3
JB
86862012-03-01 Joel Brobecker <brobecker@adacore.com>
8687
8688 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8689 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8690 environment variable before calling update-copyright.
8691
8ba85d85
JB
86922012-03-01 Joel Brobecker <brobecker@adacore.com>
8693
8694 * gnulib/extra/update-copyright: Update to the latest from
8695 gnulib's git repository.
8696 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8697 variable to 2 instead of 1.
8698
8219b1e8
JB
86992012-02-29 Joel Brobecker <brobecker@adacore.com>
8700
8701 * varobj.c (c_value_of_variable): Remove dead code.
8702
718cb7da
JB
87032012-02-29 Joel Brobecker <brobecker@adacore.com>
8704
8705 * ada-lex.p (processId): Do not modify already encoded IDs.
8706 Update function documentation.
8707
739593e0
JB
87082012-02-29 Joel Brobecker <brobecker@adacore.com>
8709
8710 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8711 "name" with "struct symbol *name_sym".
8712 * ada-exp.y (write_var_or_type): Update call to
8713 ada_find_renaming_symbol.
8714 "name" with "struct symbol *name_sym". Adjust Implementation
8715 accordingly. Adjust the function documentation.
8716
852dff6c
JB
87172012-02-29 Joel Brobecker <brobecker@adacore.com>
8718
8719 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8720 * ada-lang.c (ada_find_any_type): Add advance declaration.
8721 Make static. Replace ada_find_any_symbol by
8722 ada_find_any_type_symbol.
8723 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8724 Improve function description. Make static.
8725 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8726 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8727
1b611343
JB
87282012-02-29 Joel Brobecker <brobecker@adacore.com>
8729
8730 * ada-lang.c (struct tag_args): Delete.
8731 (ada_get_tsd_type): Function body moved up in source file.
8732 (ada_tag_name_1, ada_tag_name_2): Delete.
8733 (ada_get_tsd_from_tag): New function.
8734 (ada_tag_name_from_tsd): New function.
8735 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8736 to determine the tag name.
8737
41246937
JB
87382012-02-29 Joel Brobecker <brobecker@adacore.com>
8739
8740 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8741 declaration.
8742 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8743 function.
8744
ffde82bf
JB
87452012-02-29 Joel Brobecker <brobecker@adacore.com>
8746
8747 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8748
2ad01556
JB
87492012-02-29 Joel Brobecker <brobecker@adacore.com>
8750
8751 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8752 full searches.
8753
99b1c762
JB
87542012-02-29 Joel Brobecker <brobecker@adacore.com>
8755
8756 * ada-lang.c (constrained_packed_array_type): If there is a
8757 parallel XA type, use it to determine the array index type.
8758
2d4a02ee
JB
87592012-02-29 Joel Brobecker <brobecker@adacore.com>
8760
8761 * ada-valprint.c (ada_val_print_1): If our value is a reference
8762 to an array descriptor, dereference it before converting it
8763 to a simple array.
8764
c48db5ca
JB
87652012-02-29 Joel Brobecker <brobecker@adacore.com>
8766
8767 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8768 creating fixed value.
8769 (ada_value_ind, ada_coerce_ref, assign_component)
8770 (ada_evaluate_subexp): Remove call to unwrap_value before
8771 call to ada_to_fixed_value.
8772
2e6fda7d
JB
87732012-02-29 Joel Brobecker <brobecker@adacore.com>
8774
8775 * ada-lang.c (to_fixed_array_type): Set result's type name.
8776
5845583d
JB
87772012-02-29 Joel Brobecker <brobecker@adacore.com>
8778
8779 * ada-lang.c (catch_ada_exception_command_split): Add new
8780 argument cond_string. Add support for condition at end of
8781 "catch exception" commands.
8782 (ada_decode_exception_location): Add new argument cond_string.
8783 Update call to catch_ada_exception_command_split.
8784 (create_ada_exception_catchpoint): Add new argument cond_string.
8785 Set the breakpoint condition if needed.
8786 (catch_ada_exception_command): Update call to
8787 ada_decode_exception_location.
8788 (ada_decode_assert_location): Add function documentation.
8789 Add support for condition at end of "catch assert" command.
8790 (catch_assert_command): Update calls to ada_decode_assert_location
8791 and create_ada_exception_catchpoint.
8792
9a7f938f
JK
87932012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8794
8795 Fix disp-step-syscall.exp: fork: single step over fork.
8796 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8797 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8798 comment, change parameters gdbarch and ptid to regcache. Remove
8799 parameter regcache, initialize gdbarch from regcache here.
8800 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8801 New functions.
8802 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8803 instead.
8804 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8805 'syscall'. Make the 'int' check more strict.
8806
ffdf6de5
JK
88072012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8808
8809 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8810 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8811 (i386_linux_intx80_sysenter_syscall_record): ... here.
8812 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8813 Use the renamed function name.
8814
c70a6932
JK
88152012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8816
8817 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8818 * breakpoint.c (until_break_command): Likewise.
8819 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8820 * infcall.c (call_function_by_hand): Likewise.
8821 * infcmd.c (finish_forward): Likewise.
8822 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8823
05b8a789 88242012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8825
d4cd3da9
JB
8826 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8827 avoid variable assignments inside condition.
8828
6425366c
JK
88292012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8830
8831 Fix static analysis issue found by cppcheck.
8832 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8833 uninitialized BUF for size 2.
8834
c8cef75f 88352012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8836 Nathan Froyd <froydnj@codesourcery.com>
8837 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8838
8839 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8840 (mips16_instruction_has_delay_slot): Likewise.
8841 (mips_segment_boundary): Likewise.
8842 (mips_adjust_breakpoint_address): Likewise.
8843 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8844
473347ad 88452012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8846 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8847
8848 * infrun.c (handle_inferior_event): Don't proceed through
8849 shared library trampolines if stepping at the machine
8850 instruction level.
8851
cf233303
MR
88522012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8853
8854 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8855 too.
8856
cb2cf4ce
TS
88572012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8858
8859 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8860 (sh_stub_unwind_sniffer): New functions.
8861 (sh_stub_unwind): New variable.
8862 (sh_gdbarch_init): Wire everything.
8863
644cebc9
PA
88642012-02-27 Pedro Alves <palves@redhat.com>
8865
8866 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8867 (linux_nat_post_attach_wait): Adjust to use
8868 linux_proc_pid_is_stopped.
8869 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8870 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8871 based on pid_is_stopped from both linux-nat.c and
8872 gdbserver/linux-low.c, and renamed.
8873
283002cf
MR
88742012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8875
8876 * remote.c (remote_watchpoint_addr_within_range): New function.
8877 (init_remote_ops): Use it.
8878
9b3e86b1
MR
88792012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8880
8881 * target.h (target_watchpoint_addr_within_range): Document macro.
8882
e36930bb
PA
88832012-02-24 Pedro Alves <palves@redhat.com>
8884
8885 * stack.c (set_last_displayed_sal): Issue internal_error instead
8886 of warning, and issue it after clearing the last displayed sal.
8887
883bc8d1
PA
88882012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8889 Pedro Alves <palves@redhat.com>
8890
8891 * breakpoint.c (until_break_command): Install breakpoints after
8892 all frame manipulations.
8893
b775012e
LM
88942012-02-24 Luis Machado <lgustavo@codesourcery.com>
8895
8896 * remote.c (remote_supports_cond_breakpoints): New forward
8897 declaration.
8898 (remote_add_target_side_condition): New function.
8899 (remote_insert_breakpoint): Add target-side breakpoint
8900 conditional if supported.
8901 (remote_insert_hw_breakpoint): Likewise.
8902 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8903 hook.
8904
8905 * target.c (update_current_target): Inherit
8906 to_supports_evaluation_of_breakpoint_conditions.
8907 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8908
8909 * target.h (struct target_ops)
8910 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8911 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8912
8913 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8914 (condition_evaluation_both, condition_evaluation_auto,
8915 condition_evaluation_host, condition_evaluation_target,
8916 condition_evaluation_enums, condition_evaluation_mode_1,
8917 condition_evaluation_mode): New static globals.
8918 (translate_condition_evaluation_mode): New function.
8919 (breakpoint_condition_evaluation_mode): New function.
8920 (gdb_evaluates_breakpoint_condition_p): New function.
8921 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8922 (mark_breakpoint_modified): New function.
8923 (mark_breakpoint_location_modified): New function.
8924 (set_condition_evaluation_mode): New function.
8925 (show_condition_evaluation_mode): New function.
8926 (bp_location_compare_addrs): New function.
8927 (get_first_location_gte_addr): New helper function.
8928 (set_breakpoint_condition): Free condition bytecode if locations
8929 has become unconditional. Call mark_breakpoint_modified (...).
8930 (condition_command): Call update_global_location_list (1) for
8931 breakpoints.
8932 (breakpoint_xfer_memory): Use is_breakpoint (...).
8933 (is_breakpoint): New function.
8934 (parse_cond_to_aexpr): New function.
8935 (build_target_condition_list): New function.
8936 (insert_bp_location): Handle target-side conditional
8937 breakpoints and call build_target_condition_list (...).
8938 (update_inserted_breakpoint_locations): New function.
8939 (insert_breakpoint_locations): Handle target-side conditional
8940 breakpoints.
8941 (bpstat_check_breakpoint_conditions): Add comment.
8942 (bp_condition_evaluator): New function.
8943 (bp_location_condition_evaluator): New function.
8944 (print_breakpoint_location): Print information on where the condition
8945 will be evaluated.
8946 (print_one_breakpoint_location): Likewise.
8947 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8948 breakpoint location.
8949 (force_breakpoint_reinsertion): New functions.
8950 (update_global_location_list): Handle target-side breakpoint
8951 conditions.
8952 Reinsert locations that are already inserted if conditions have
8953 changed.
8954 (bp_location_dtor): Free agent expression bytecode.
8955 (disable_breakpoint): Call mark_breakpoint_modified (...).
8956 Call update_global_location_list (...) with parameter 1 for breakpoints.
8957 (disable_command): Call mark_breakpoint_location_modified (...).
8958 Call update_global_location_list (...) with parameter 1 for breakpoints.
8959 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8960 (enable_command): mark_breakpoint_location_modified (...).
8961 (_initialize_breakpoint): Update documentation and add
8962 condition-evaluation breakpoint subcommand.
8963
8964 * breakpoint.h: Include ax.h.
8965 (condition_list): New data structure.
8966 (condition_status): New enum.
8967 (bp_target_info) <cond_list>: New field.
8968 (bp_location) <condition_changed, cond_bytecode>: New fields.
8969 (is_breakpoint): New prototype.
8970
3788aec7
LM
89712012-02-24 Luis Machado <lgustavo@codesourcery.com>
8972
8973 * remote.c (remote_state) <cond_breakpoints>: New field.
8974 (PACKET_ConditionalBreakpoints): New enum.
8975 (remote_cond_breakpoint_feature): New function.
8976 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8977 (remote_supports_cond_breakpoints): New function.
8978 (_initialize_remote): Add new packet configuration for
8979 target-side conditional breakpoints.
8980
72895ff6
LM
89812012-02-24 Luis Machado <lgustavo@codesourcery.com>
8982
8983 * NEWS: Mention target-side conditional breakpoint support,
8984 new condition-evaluation breakpoint subcommand and remote
8985 packet extensions.
8986
dea2aa5f
LM
89872012-02-24 Luis Machado <lgustavo@codesourcery.com>
8988
8989 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8990 number.
8991
8a8bc27f
TS
89922012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8993
8994 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8995 (after_prologue): Remove.
8996
6b446fdf
TT
89972012-02-23 Tom Tromey <tromey@redhat.com>
8998
8999 * jv-valprint.c (java_val_print): Remove dead code.
9000
ef59abfb
TG
90012012-02-23 Tristan Gingold <gingold@adacore.com>
9002
a09130f9
PA
9003 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9004 known_tasks_element and known_tasks_length fields.
9005 (read_known_tasks_array): Change argument type. Use pointer type
9006 and number of elements from DATA. Adjust.
9007 (read_known_tasks_list): Likewise.
9008 (get_known_tasks_addr): Remove.
9009 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9010 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9011 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9012
def166f6
JK
90132012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9014
9015 PR backtrace/13716
9016 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9017 it after set_momentary_breakpoint.
9018
aeaa2474
SA
90192012-02-22 Sterling Augustine <saugustine@google.com>
9020
9021 PR 13689:
9022 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9023
feea76c2
GB
90242012-02-22 Gary Benson <gbenson@redhat.com>
9025
9026 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9027 (find_slot_in_mapped_hash): Likewise.
9028
f06e05e0
JK
90292012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9030
9031 PR build/13638
9032 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9033 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9034 * configure: Regenerate.
9035
b54a8fd7
PA
90362012-02-21 Tristan Gingold <gingold@adacore.com>
9037 Pedro Alves <palves@redhat.com>
9038
9039 * ia64-tdep.c: Do not include libunwind-ia64.h.
9040 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9041 Include libunwind-ia64.h instead of libunwind.h.
9042 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9043 for libunwind.h existence.
9044 * configure, config.in: Regenerate.
9045
dfcee124
AG
90462012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9047
9048 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9049 instead of value_rtti_target_type.
9050 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9051 instead of value_rtti_target_type.
9052 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9053 value_rtti_target_type.
9054 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9055 (value_rtti_target_type): Rename to ...
9056 (value_rtti_indirect_type): ... here and make it indirect. Update
9057 function comment.
9058 * value.c (readjust_indirect_value_type): New function.
9059 (coerce_ref): Support for enclosing type setting for references
9060 with readjust_indirect_value_type.
9061 * value.h (readjust_value_type): New declaration.
9062 (value_rtti_target_type): Rename to ...
9063 (value_rtti_indirect_type): ... here.
9064
02568277
AG
90652012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9066
9067 * MAINTAINERS (Write After Approval): Add myself to the list.
9068
10c07b7e 90692012-02-20 Doug Evans <dje@google.com>
28ee876a 9070
d82ea6a8
DE
9071 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9072 Rename objfile_p_char parameter to objfilep.
9073 (build_objfile_section_table): Result is now void. All callers
9074 updated.
9075 * objfiles.h (struct objfile): Tweak comments, whitespace.
9076 (build_objfile_section_table): Update.
9077
28ee876a
DE
9078 * elfread.c (elf_symfile_segments): Fix warning text.
9079
24c79950
TT
90802012-02-20 Tom Tromey <tromey@redhat.com>
9081
9082 PR gdb/13498:
9083 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9084 particular set of file names once.
9085 (dw2_map_symbol_filenames): Likewise.
9086
3a9b40b6
JK
90872012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9088
9089 Code cleanup.
9090 * main.c (write_files): Remove the declaration.
9091 (external_editor_command): Move the declaration ...
9092 [GDBTK] (external_editor_command): ... here. Fix the comment.
9093
4d0795ca
TT
90942012-02-20 Tom Tromey <tromey@redhat.com>
9095
9096 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9097 extraneous block.
9098
637fd620
TG
90992012-02-20 Tristan Gingold <gingold@adacore.com>
9100
9101 * darwin-nat.h (enum darwin_msg_state): Add comments.
9102
6f124894
TG
91032012-02-20 Tristan Gingold <gingold@adacore.com>
9104
9105 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9106 value.
9107
2e6e3d9c
JB
91082012-20-18 Joel Brobecker <brobecker@adacore.com>
9109
9110 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9111 between function description and implementation.
9112
2e8265fd
TT
91132012-02-17 Tom Tromey <tromey@redhat.com>
9114
9115 PR python/12070:
9116 * python/py-event.c (event_object_getset): New global.
9117 (event_object_type): Reference it.
9118 * python/py-type.c (field_object_getset): New global.
9119 (field_object_type): Reference it.
9120 * python/python-internal.h (gdb_py_generic_dict): Declare.
9121 * python/py-utils.c (gdb_py_generic_dict): New function.
9122
8544a150 91232012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9124
8544a150 9125 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9126
ca193e27
TS
91272012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9128
9129 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9130 TYPE_CALLING_CONVENTION annotation.
9131
e5586183
KB
91322012-02-16 Kevin Buettner <kevinb@redhat.com>
9133
9134 * MAINTAINERS: Add rx to target ISA section.
9135 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9136 (ALLDEPFILES): Add rx-tdep.c.
9137
7dcd53a0
TT
91382012-02-16 Tom Tromey <tromey@redhat.com>
9139
9140 * symfile.c (symbol_file_add_main_1): Use inferior's
9141 symfile_flags.
9142 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9143 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9144 inferior.
9145 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9146 inferior.
9147 (follow_exec): Use inferior's symfile_flags.
9148 * inferior.h (struct inferior) <symfile_flags>: New field.
9149
ddd60447
MF
91502012-02-16 Mike Frysinger <vapier@gentoo.org>
9151
9152 PR gdb/9734:
9153 * remote-sim.c (gdbsim_create_inferior): Call error() when
9154 sim_create_inferior() fails.
9155
b0d32fb6
TG
91562012-02-16 Josh Matthews <josh@joshmatthews.net>
9157
9158 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9159
9addecb9
TT
91602012-02-16 Tom Tromey <tromey@redhat.com>
9161
9162 PR c++/13653:
9163 * thread.c (struct current_thread_cleanup) <was_removable>: New
9164 field.
9165 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9166 (make_cleanup_restore_current_thread): Initialize new field.
9167
a58b110a
KB
91682012-02-15 Kevin Buettner <kevinb@redhat.com>
9169
9170 * MAINTAINERS: Add rl78 to target ISA section.
9171 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9172 (ALLDEPFILES): Add rl78-tdep.c.
9173 * NEWS: Mention rl78 as a new target.
9174
4cb6da1c
AR
91752012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9176
9177 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9178 data.
9179 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9180
3af2590d
TT
91812012-02-15 Tom Tromey <tromey@redhat.com>
9182
9183 PR gdb/12659:
9184 * infcmd.c (registers_info): Print just the current register's
9185 name.
9186
c6910659
TT
91872012-02-15 Tom Tromey <tromey@redhat.com>
9188
9189 * python/py-symbol.c (sympy_value): Use _().
9190
7cee1e54
PA
91912012-02-15 Pedro Alves <palves@redhat.com>
9192
9193 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9194 output to be like native targets'.
9195 (remote_pid_to_str): Special case the null ptid.
9196
816338b5
SS
91972012-02-14 Stan Shebs <stan@codesourcery.com>
9198
9199 * NEWS: Mention enable count command.
9200 * breakpoint.h (struct breakpoint): New field enable_count.
9201 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9202 (enable_breakpoint): Add arg to call.
9203 (struct disp_data): New struct.
9204 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9205 (do_map_enable_once_breakpoint): Create a struct and pass it.
9206 (do_map_enable_delete_breakpoint): Ditto.
9207 (do_map_enable_count_breakpoint): New function.
9208 (enable_count_command): New function.
9209 (bpstat_stop_status): Decrement enable_count.
9210 (print_one_breakpoint_location): Report enable count.
9211 (_initialize_breakpoint): Add enable count command.
9212
c47a44f4
KB
92132012-02-14 Kevin Buettner <kevinb@redhat.com>
9214
9215 * rl78-tdep.c (reggroups.h): Include.
9216 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9217 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9218 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9219 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9220 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9221 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9222 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9223 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9224 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9225 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9226 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9227 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9228 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9229 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9230 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9231 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9232 beginning of register list.
9233 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9234 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9235 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9236 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9237 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9238 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9239 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9240 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9241 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9242 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9243 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9244 the pseudo registers. Rearrange other pseudo registers too so
9245 that the bank registers appear at the end.
9246 (rl78_register_type): Account for the fact that the byte sized
9247 bank registers are now pseudo-registers.
9248 (rl78_register_name): Rearrange the register name array. Make
9249 initial set of raw banked registers inaccessible.
9250 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9251 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9252 case for copying bytes back and forth between raw and pseudo
9253 versions of the banked registers. Update other cases to reflect
9254 the changed names.
9255 (rl78_return_value): Update to account for changed names of
9256 raw registers.
9257 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9258 rl78_register_sim_regno().
9259
e4569f1e
KB
92602012-02-14 Kevin Buettner <kevinb@redhat.com>
9261
9262 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9263 the name parameter being passed to find_pc_partial_function().
9264
7a05aae7
JK
92652012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9266
9267 * MAINTAINERS: Step down from being ia64 target maintainer.
9268
11fde611
JK
92692012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9270
9271 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9272 compilation warning.
9273
57008375
JK
92742012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9275
9276 Fix crash on loaded shlibs without loaded exec_bfd.
9277 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9278 (set_section_command): Replace exec_bfd by p->bfd.
9279
ff3c9849
TT
92802012-02-10 Tom Tromey <tromey@redhat.com>
9281
9282 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9283 when we have a C++ qualified name.
9284
db2b9fdd
PA
92852012-02-10 Pedro Alves <palves@redhat.com>
9286
9287 * inferior.c (inferior_pid_to_str): New.
9288 (print_inferior, inferior_command): Use it.
9289
12cd34f3
PA
92902012-02-10 Pedro Alves <palves@redhat.com>
9291
9292 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9293 the test CFLAGS.
9294 * configure: Regenerate.
9295
e871429d
JK
92962012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9297
9298 * linespec.c (decode_line_internal): Fix comment correctness.
9299
1916efaf
PA
93002012-02-09 Valery Khromov <valery.khromov@gmail.com>
9301
9302 PR gdb/12953
9303 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9304 * amd64bsd-nat.c: Add support for debug registers (adapted from
9305 i386bsd-nat.c).
9306 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9307 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9308 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9309 (amd64bsd_dr_get_control): New functions.
9310 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9311 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9312 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9313 watchpoints initialization.
9314 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9315
f4859d94
JK
93162012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9317
9318 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9319 flds_bnds.fields.
9320 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9321
c56a97f9
JK
93222012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9323
9324 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9325
1a119f36
JB
93262012-02-08 Joel Brobecker <brobecker@adacore.com>
9327
9328 * language.h (symbol_name_cmp_ftype): Renames
9329 symbol_name_match_p_ftype.
9330 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9331 la_get_symbol_name_match_p.
9332 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9333 ada_get_symbol_name_match_p. Update comment.
9334 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9335 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9336 Renames symbol_name_match_p. Update field type.
9337 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9338 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9339 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9340 "la_get_symbol_name_cmp" in comments.
9341 * language.c: Likewise.
9342
c71bb1cf
RO
93432012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9344
9345 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9346 %eflags offset.
9347 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9348 (amd64_sol2_gregset32_reg_offs): Likewise.
9349
4b2d20a5
TG
93502012-02-08 Joel Brobecker <brobecker@adacore.com>
9351
9352 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9353 of the returned BFD is allocated by GDB.
9354
f0823d2c
TT
93552012-02-07 Tom Tromey <tromey@redhat.com>
9356
9357 PR python/12027:
9358 * python/python-internal.h (frame_object_type): Declare.
9359 * python/py-symbol.c (sympy_needs_frame): New function.
9360 (sympy_value): New function.
9361 (symbol_object_getset): Add "needs_frame".
9362 (symbol_object_methods): Add "value".
9363 * python/py-frame.c (frame_object_type): No longer static.
9364
64e7d9dd
TT
93652012-02-07 Tom Tromey <tromey@redhat.com>
9366
9367 PR python/13599:
9368 * python/py-symbol.c (sympy_line): New function.
9369 (symbol_object_getset): Add "line".
9370
1d6b2d2b
TT
93712012-02-07 Tom Tromey <tromey@redhat.com>
9372
9373 * charset.c (find_charset_names): Check 'in' against NULL.
9374
0d5cff50
DE
93752012-02-06 Doug Evans <dje@google.com>
9376
9377 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9378 and fields.name members from char * to const char *. All uses updated.
9379 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9380 from char * to const char *. All uses updated.
9381 (type_name_no_tag): Update.
9382 (lookup_unsigned_typename, lookup_signed_typename): Update.
9383 * gdbtypes.c (type_name_no_tag): Change result type
9384 from char * to const char *. All callers updated.
9385 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9386 name parameter from char * to const char *.
9387 * symtab.h (struct cplus_specific): Change type of demangled_name
9388 member from char * to const char *. All uses updated.
9389 (struct general_symbol_info): Change type of name and
9390 mangled_lang.demangled_name members from char * to const char *.
9391 All uses updated.
9392 (symbol_get_demangled_name, symbol_natural_name): Update.
9393 (symbol_demangled_name, symbol_search_name): Update.
9394 * symtab.c (symbol_get_demangled_name): Change result type
9395 from char * to const char *. All callers updated.
9396 (symbol_natural_name, symbol_demangled_name): Ditto.
9397 (symbol_search_name): Ditto.
9398 (completion_list_add_name): Change type of symname,sym_text,
9399 text,word parameters from char * to const char *.
9400 (completion_list_objc_symbol): Change type of sym_text,
9401 text,word parameters from char * to const char *.
9402 * ada-lang.c (find_struct_field): Change type of name parameter
9403 from char * to const char *.
9404 (encoded_ordered_before): Similarly for N0,N1 parameters.
9405 (old_renaming_is_invisible): Similarly for function_name parameter.
9406 (ada_type_name): Change result type from char * to const char *.
9407 All callers updated.
9408 * ada-lang.h (ada_type_name): Update.
9409 * buildsym.c (hashname): Change type of name parameter
9410 from char * to const char *.
9411 * buildsym.h (hashname): Update.
9412 * dbxread.c (end_psymtab): Change type of include_list parameter
9413 from char ** to const char **.
9414 * dwarf2read.c (determine_prefix): Change result type
9415 from char * to const char *. All callers updated.
9416 * f-lang.c (find_common_for_function): Change type of name, funcname
9417 parameters from char * to const char *.
9418 * f-lang.c (find_common_for_function): Update.
9419 * f-valprint.c (list_all_visible_commons): Change type of funcname
9420 parameters from char * to const char *.
9421 * gdbarch.sh (static_transform_name): Change type of name parameter
9422 and result from char * to const char *.
9423 * gdbarch.c: Regenerate.
9424 * gdbarch.h: Regenerate.
9425 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9426 of name parameter from char * to const char *.
9427 * jv-lang.c (java_primitive_type_from_name): Ditto.
9428 (java_demangled_signature_length): Similarly for signature parameter.
9429 (java_demangled_signature_copy): Ditto.
9430 (java_demangle_type_signature): Ditto.
9431 * jv-lang.h (java_primitive_type_from_name): Update.
9432 (java_demangle_type_signature): Update.
9433 * objc-lang.c (specialcmp): Change type of a,b parameters
9434 from char * to const char *.
9435 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9436 from char * to const char *. All callers updated.
9437 * p-lang.h (is_pascal_string_type): Update.
9438 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9439 of name parameter from char * to const char *.
9440 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9441 * utils.c (fprintf_symbol_filtered): Ditto.
9442 * defs.h (fprintf_symbol_filtered): Update.
9443 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9444 * stabsread.h (end_psymtab): Update.
9445 * stack.c (find_frame_funname): Change type of funname parameter
9446 from char ** to const char **.
9447 * stack.h (find_frame_funname): Update.
9448 * typeprint.c (type_print): Change type of varstring parameter
9449 from char * to const char *.
9450 * value.h (type_print): Update.
9451 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9452 from char * to const char *. All callers updated.
9453 (xcoff_end_psymtab): Change type of include_list parameter
9454 from char ** to const char **. All callers updated.
9455 (swap_sym): Similarly for name parameter. All callers updated.
9456 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9457 Use xstrdup.
9458 (process_coff_symbol): Use xstrdup.
9459 * stabsread.c (stabs_method_name_from_physname): Renamed from
9460 update_method_name_from_physname. Change result type from void
9461 to char *. All callers updated.
9462 (read_member_functions): In has_destructor case, store name in objfile
9463 obstack instead of malloc space. In !has_stub case, fix mem leak.
9464
5579a92e
TT
94652012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9466
9467 * configure: Rebuild.
9468 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9469 LDFLAGS.
9470
9058f767
KB
94712012-02-03 Kevin Buettner <kevinb@redhat.com>
9472
9473 * configure.tgt (rl78-*-elf): New target.
9474 * rl78-tdep.c: New file.
9475
5b37825d
PW
94762012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9477
9478 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9479 and continue the loop. Add QUIT statement.
9480
e009ee71
TT
94812012-02-03 Tom Tromey <tromey@redhat.com>
9482
9483 PR gdb/13596:
9484 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9485 bfd_lookup_symbol_from_symtab.
9486 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9487 gdb_bfd_lookup_symbol_from_symtab.
9488
f7e44f65
JB
94892012-02-03 Joel Brobecker <brobecker@adacore.com>
9490
9491 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9492 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9493 symbol. Add assertion that sym2 is never NULL.
9494
2c02bd72
DE
94952012-02-02 Doug Evans <dje@google.com>
9496
9497 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9498 "name" parameter to const char ** from char **. All callers updated.
9499 (find_pc_partial_function): Ditto.
9500 (cache_pc_function_name): Change type to const char * from char *.
9501 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9502 (find_pc_partial_function): Update.
9503 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9504 type of "name" parameter to const char * from char *.
9505 All uses updated.
9506 * arch-utils.c (generic_in_solib_return_trampoline): Change
9507 type of "name" parameter to const char * from char *.
9508 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9509 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9510 type of "name" parameter to const char * from char *.
9511 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9512 * gdbarch.c: Regenerate.
9513 * gdbarch.h: Regenerate.
9514 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9515 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9516 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9517 type of "name" parameter to const char * from char *.
9518 * skip.c (skip_function_pc): Ditto.
9519 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9520 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9521 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9522 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9523 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9524 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9525 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9526 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9527 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9528
e886a173
PA
95292012-02-02 Pedro Alves <palves@redhat.com>
9530
9531 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9532 the current inferior has no execution. Make sure the current
9533 remote process matches gdb's current inferior.
9534
c709a7c2
TT
95352012-02-02 Tom Tromey <tromey@redhat.com>
9536
9537 PR gdb/13405:
9538 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9539 read-only memory.
9540
f149aabd
TT
95412012-02-02 Tom Tromey <tromey@redhat.com>
9542
9543 PR gdb/9307:
9544 * symtab.c (lookup_language_this): Set block_found.
9545
03bef283
TT
95462012-02-01 Tom Tromey <tromey@redhat.com>
9547
9548 PR gdb/13431:
9549 * jit.c (struct jit_inferior_data): Rewrite.
9550 (struct jit_objfile_data): New.
9551 (get_jit_objfile_data): New function.
9552 (add_objfile_entry): Update.
9553 (jit_read_descriptor): Return int. Replace descriptor_addr
9554 argument with inf_data. Update. Don't call error.
9555 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9556 descriptor here.
9557 (jit_inferior_init): Don't look up descriptor. Don't call error.
9558 (jit_reset_inferior_data_and_breakpoints)
9559 (jit_inferior_created_observer): Remove.
9560 (jit_inferior_exit_hook): Update.
9561 (jit_executable_changed_observer): Remove.
9562 (jit_event_handler): Update.
9563 (free_objfile_data): Reset inferior data if needed.
9564 (_initialize_jit): Update.
9565
f0bbc364
TT
95662012-02-01 Tom Tromey <tromey@redhat.com>
9567
9568 * jit.c (bfd_open_from_target_memory): Move higher in file.
9569
47c1316c
TG
95702012-02-01 Tristan Gingold <gingold@adacore.com>
9571
9572 * libunwind-frame.c (libunwind_load): Display message if dlopen
9573 failed.
9574
8e704927
GB
95752012-02-01 Gary Benson <gbenson@redhat.com>
9576
09c7a31f 9577 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9578 (iterate_over_symbols): Use the above.
9579 * symtab.c (iterate_over_symbols): Likewise.
9580 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9581 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9582 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9583 (iterate_name_matcher): Document return values.
9584 (collect_one_symbol): Likewise.
9585 (collect_function_symbols): Likewise.
9586 (collect_symbols): Likewise.
9587
d9680e73
TT
95882012-02-01 Tom Tromey <tromey@redhat.com>
9589
9590 * ada-lang.c (resolve_subexp): Update.
9591 (ada_lookup_symbol_list): Add 'full_search' argument.
9592 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9593 ada_lookup_symbol_list.
9594 (ada_lookup_encoded_symbol): Update.
9595 (get_var_value): Update.
9596 * ada-exp.y (block_lookup): Update.
9597 (write_var_or_type): Update.
9598 (write_name_assoc): Update.
9599 * ada-lang.h (ada_lookup_symbol_list): Update.
9600
72e1143f
TT
96012012-01-31 Tom Tromey <tromey@redhat.com>
9602
9603 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9604 comment.
9605
ab2d2ad3
DE
96062012-01-31 Doug Evans <dje@google.com>
9607
9608 * symtab.h: Remove outdated comment.
e9111bf7 9609 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9610
bc884eba
JB
96112012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9612
9613 Fix build error in Darwin port.
9614 * i386-darwin-nat.c: Include i386-nat.h.
9615
8fc3fc34
TT
96162012-01-30 Tom Tromey <tromey@redhat.com>
9617
9618 PR breakpoints/13568:
9619 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9620 argument. Check for recursive includes.
9621 (dwarf_decode_macros): Create an include hash.
9622
5d853008
ME
96232012-01-30 Michael Eager <eager@eagercon.com>
9624
9625 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9626 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9627 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9628 (powerpc_linux_in_plt_stub): New function.
9629 (powerpc_linux_in_dynsym_resolve_code): New function.
9630 (ppc_skip_trampoline_code): New function.
9631 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9632 Use glibc_skip_solib_resolver.
9633
40478521
JK
96342012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9635
9636 Code cleanup: Make 1440 bytes of data segment read-only.
9637 * arch-utils.c (endian_enum): Make it const char *const [].
9638 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9639 Likewise.
9640 * breakpoint.c (always_inserted_enums): Likewise.
9641 * cli/cli-cmds.c (script_ext_enums): Likewise.
9642 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9643 enumlist parameter const char *const *.
9644 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9645 const char *const *.
9646 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9647 parameter const char *const *.
9648 * cris-tdep.c (cris_modes): Make it const char *const [].
9649 * filesystem.c (target_file_system_kinds): Likewise.
9650 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9651 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9652 (can_use_displaced_stepping_enum, scheduler_enums)
9653 (exec_direction_names): Likewise.
9654 * language.c (_initialize_language): Make the type_or_range_names and
9655 case_sensitive_names variables const char *const [].
9656 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9657 * python/python.c (python_excp_enums): Likewise.
9658 * remote.c (interrupt_sequence_modes): Likewise.
9659 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9660 * serial.c (logbase_enums): Likewise.
9661 * sh-tdep.c (sh_cc_enum): Likewise.
9662 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9663 Likewise.
9664 * symtab.c (multiple_symbols_modes): Likewise.
9665 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9666 Likewise.
9667 * utils.c (internal_problem_modes): Likewise.
9668
b3b8b934
JK
96692012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9670
9671 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9672 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9673 result.
9674
8c85a4e2
DE
96752012-01-27 Doug Evans <dje@google.com>
9676
9677 * configure.ac (with_python): Fix absolute path handling for win32.
9678 * configure: Regenerate.
9679
78d8b4d7
DE
96802012-01-26 Doug Evans <dje@google.com>
9681
eca864fe
DE
9682 * symtab.c: Whitespace cleanup, no code changes.
9683
7e082072
DE
9684 * symtab.c (lookup_symbol_in_language): Improve comment.
9685 (lookup_symbol_aux): Fix comment.
9686
7dc25483
DE
9687 * psymtab.c (add_psymbol_to_list): Result is now "void".
9688 * psympriv.h (add_psymbol_to_list): Update.
9689
78d8b4d7
DE
9690 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9691
4c63965b
JK
96922012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9693
9694 Do not open script filenames twice.
9695 * cli/cli-cmds.c (source_script_from_stream): Pass to
9696 source_python_script also STREAM.
9697 * python/py-auto-load.c (source_section_scripts): Pass to
9698 source_python_script_for_objfile also STREAM.
9699 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9700 also INPUT.
9701 * python/python-internal.h (source_python_script_for_objfile): New
9702 parameter file, rename parameter file to filename.
9703 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9704 instead if !_WIN32. Update the function comment.
9705 (source_python_script, source_python_script_for_objfile)
9706 (source_python_script): New parameter file, rename parameter file to
9707 filename. Pass FILENAME to python_run_simple_file.
9708 * python/python.h (source_python_script): New parameter file, rename
9709 parameter file to filename.
9710
88f38a04
PA
97112012-01-26 Pedro Alves <palves@redhat.com>
9712
9713 * corelow.c (core_has_fake_pid): Delete.
9714 (core_close): Delete references to `core_has_fake_pid'.
9715 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9716 (core_open): Delete references to `core_has_fake_pid'.
9717 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9718 the removed global.
9719
e078317b
JB
97202012-01-26 Joel Brobecker <brobecker@adacore.com>
9721
9722 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9723 Remove language parameter from name_matcher. Adjust the comment.
9724 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9725 Remove language parameter.
9726 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9727 * linespec.c (iterate_name_matcher): Likewise.
9728 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9729 name_matcher. Adjust call accordingly.
9730 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9731 (maintenance_check_symtabs): Adjust type of parameter "fun".
9732 * psymtab.h (maintenance_check_symtabs): Likewise.
9733
74ccd7f5
JB
97342012-01-26 Joel Brobecker <brobecker@adacore.com>
9735
9736 * language.h (symbol_name_match_p_ftype): New typedef.
9737 (struct language_defn): Replace field la_symbol_name_compare
9738 by la_get_symbol_name_match_p.
9739 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9740 (ada_language_defn): Use it.
9741 * linespec.c (struct symbol_matcher_data): New type.
9742 (iterate_name_matcher): Rewrite.
9743 (iterate_over_all_matching_symtabs): Pass a pointer to
9744 a symbol_matcher_data struct to expand_symtabs_matching
9745 instead of just the lookup name.
9746 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9747 opencl-lang.c, p-lang.c, language.c: Delete field
9748 la_symbol_name_compare, and replace by NULL for new field
9749 la_get_symbol_name_match_p.
9750 * symfile.h (struct quick_symbol_functions): Update comment.
9751
5d268276
TT
97522012-01-25 Tom Tromey <tromey@redhat.com>
9753
9754 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9755 dereferencing.
9756
edcc5120
TT
97572012-01-24 Tom Tromey <tromey@redhat.com>
9758
9759 PR symtab/12406:
9760 * solib.c (update_solib_list): Update the program space's
9761 added_solibs and deleted_solibs fields.
9762 * progspace.h (struct program_space) <added_solibs,
9763 deleted_solibs>: New fields.
9764 (clear_program_space_solib_cache): Declare.
9765 * progspace.c (release_program_space): Call
9766 clear_program_space_solib_cache.
9767 (clear_program_space_solib_cache): New function.
9768 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9769 bpstat_stop_status. Use handle_solib_event.
9770 * breakpoint.c: Include gdb_regex.h.
9771 (print_solib_event): New function.
9772 (bpstat_print): Use print_solib_event.
9773 (bpstat_stop_status): Add special case for bp_shlib_event.
9774 (handle_solib_event): New function.
9775 (bpstat_what): Use handle_solib_event.
9776 (struct solib_catchpoint): New.
9777 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9778 (breakpoint_hit_catch_solib, check_status_catch_solib)
9779 (print_it_catch_solib, print_one_catch_solib)
9780 (print_mention_catch_solib, print_recreate_catch_solib): New
9781 functions.
9782 (catch_solib_breakpoint_ops): New global.
9783 (catch_load_or_unload, catch_load_command_1)
9784 (catch_unload_command_1): New functions.
9785 (internal_bkpt_check_status): Add special case for
9786 bp_shlib_event.
9787 (internal_bkpt_print_it): Use print_solib_event.
9788 (initialize_breakpoint_ops): Initialize
9789 catch_solib_breakpoint_ops.
9790 (_initialize_breakpoint): Register "catch load" and "catch
9791 unload".
9792 * breakpoint.h (handle_solib_event): Declare.
9793 * NEWS: Add entry for "catch load" and "catch unload".
9794
fa864999
TT
97952012-01-24 Tom Tromey <tromey@redhat.com>
9796
9797 * ada-lang.c: Include gdb_vecs.h.
9798 * charset.c: Include gdb_vecs.h.
9799 * tracepoint.h: Include gdb_vecs.h.
9800 * gdb_vecs.h: New file.
9801
f90263c1
TT
98022012-01-24 Pedro Alves <pedro@codesourcery.com>
9803
9804 * breakpoint.c (breakpoint_hit_catch_fork)
9805 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9806 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9807 * infrun.c (inferior_has_forked, inferior_has_vforked)
9808 (inferior_has_execd, inferior_has_called_syscall): Delete.
9809 (handle_syscall_event): Get syscall_number from the execution
9810 control state's wait status.
9811 (wait_for_inferior): Don't clear syscall_number.
9812
09ac7c10
TT
98132012-01-24 Pedro Alves <palves@redhat.com>
9814
9815 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9816 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9817 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9818 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9819 `ws' parameter.
9820 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9821 false for events other than TARGET_SIGNAL_TRAP.
9822 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9823 Add `ws' parameter.
9824 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9825 events other than TARGET_SIGNAL_TRAP.
9826 (tracepoint_breakpoint_hit): Add `ws' parameter.
9827 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9828 parameter.
9829 (bpstat_stop_status): Same.
9830 (pc_at_non_inline_function): Same.
9831 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9832 to pass the current event's waitstatus to bpstat_stop_status
9833 and pc_at_non_inline_function.
9834
86eb7e95
JK
98352012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9836
9837 Code cleanup.
9838 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9839 Update the function comment for it.
9840 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9841 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9842 for STREAM.
9843
a9b3a50f
PA
98442012-01-24 Pedro Alves <palves@redhat.com>
9845
9846 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9847 outside `bs->stop' block.
9848 (bpstat_what): Rework bp_shlib_event handling.
9849 (internal_bkpt_check_status): If the breakpoint is a
9850 bp_shlib_event, then set bs->stop and bs->print if
9851 stop_on_solib_events is set.
9852
53fe1783
GB
98532012-01-24 Gary Benson <gbenson@redhat.com>
9854
9855 Delete #if 0'd out code.
9856 * stack.c (print_frame_label_vars): Remove.
9857 (catch_info): Likewise.
9858 (_initialize_stack): Remove "info catch" command.
9859 * NEWS: Mention the above.
9860
49c62f2e
PA
98612012-01-24 Pedro Alves <palves@redhat.com>
9862
9863 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9864 it.
9865 (remote_notice_new_inferior): If the remote end doesn't support
9866 the multiprocess extensions, then the PID is fake.
9867 (add_current_inferior_and_thread): New.
9868 (remote_start_remote): Use it.
9869 (extended_remote_attach_1): Adjust.
9870 (extended_remote_create_inferior_1): Use
9871 add_current_inferior_and_thread.
9872
d0d8b0c6
JK
98732012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9874
9875 Fix watchpoints to be specific for each inferior.
9876 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9877 current_program_space.
9878 * i386-nat.c (i386_inferior_data_cleanup): New.
9879 (i386_inferior_data_get): Replace variable inf_data_local by an
9880 inferior_data call.
9881 (i386_use_watchpoints): Initialize i386_inferior_data.
9882 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9883 specific iterate_over_lwps.
9884
4403d8e9
JK
98852012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9886
9887 Fix watchpoints across inferior fork.
9888 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9889 comment for linux_nat_iterate_watchpoint_lwps.
9890 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9891 linux_nat_iterate_watchpoint_lwps.
9892 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9893 * i386-linux-nat.c (update_debug_registers_callback): Update the
9894 comment for linux_nat_iterate_watchpoint_lwps.
9895 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9896 linux_nat_iterate_watchpoint_lwps.
9897 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9898 * i386-nat.c: Include inferior.h.
9899 (dr_mirror): Remove.
9900 (i386_inferior_data, struct i386_inferior_data)
9901 (i386_inferior_data_get): New.
9902 (i386_debug_reg_state): Use i386_inferior_data_get.
9903 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9904 (i386_insert_watchpoint, i386_remove_watchpoint)
9905 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9906 (i386_remove_hw_breakpoint): New variable state, use
9907 i386_debug_reg_state instead of DR_MIRROR.
9908 * linux-nat.c (delete_lwp): New declaration.
9909 (num_lwps): Move here from downwards.
9910 (delete_lwp_cleanup): New.
9911 (linux_child_follow_fork): Create new child_lp, call
9912 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9913 PTRACE_DETACH.
9914 (num_lwps): Move upwards.
9915 (linux_nat_iterate_watchpoint_lwps): New.
9916 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9917 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9918
2992c9a7 99192012-01-24 Joel Brobecker <brobecker@adacore.com>
9920
9921 GDB 7.4 released.
9922
e360902b
PA
99232012-01-23 Pedro Alves <palves@redhat.com>
9924
9925 * top.c (caution): Rename to ...
9926 (confirm): ... this.
9927 (show_caution): Rename to ...
9928 (show_confirm): ... this.
9929 (quit_cover): Adjust.
9930 (init_main): Adjust.
9931 * top.h (caution): Rename to ...
9932 (confirm): ... this.
9933 * utils.c (internal_vproblem, defaulted_query): Adjust.
9934
050a2e1d
PA
99352012-01-23 Pedro Alves <palves@redhat.com>
9936
9937 * top.c (caution): Update comment.
9938 (execute_command): Don't consider the current value of `caution'.
9939
77a35dd8
JK
99402012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9941
9942 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9943
a71b5a38
UW
99442012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9945
9946 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9947 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9948 * target.c (target_fileio_pwrite): Remove buffer address from
9949 debug output.
9950 (target_fileio_pread): Likewise.
9951
d99bd577
UW
99522012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9953
9954 * NEWS: Document remote "info proc" and "generate-core-file".
9955
35c2fab7
UW
99562012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9957
9958 * gdbarch.sh (find_memory_regions): New callback.
9959 * gdbarch.c, gdbarch.h: Regenerate.
9960
9961 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9962 callback before falling back to target method.
9963
9964 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9965 (linux_target_install_ops): No longer install it.
9966
9967 * linux-tdep.c (linux_find_memory_regions): New function.
9968 (linux_init_abi): Install it.
9969
6432734d
UW
99702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9971
9972 * gdbarch.sh (make_corefile_notes): New architecture callback.
9973 * gdbarch.c: Regenerate.
9974 * gdbarch.h: Likewise.
9975
9976 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9977 before target_make_corefile_notes. If NULL is returned, the
9978 target does not support core file generation.
9979
9980 * linux-nat.c: Include "linux-tdep.h".
9981 (find_signalled_thread, find_stop_signal): Remove.
9982 (linux_nat_do_thread_registers): Likewise.
9983 (struct linux_nat_corefile_thread_data): Likewise.
9984 (linux_nat_corefile_thread_callback): Likewise.
9985 (iterate_over_spus): Likewise.
9986 (struct linux_spu_corefile_data): Likewise.
9987 (linux_spu_corefile_callback): Likewise.
9988 (linux_spu_make_corefile_notes): Likewise.
9989 (linux_nat_collect_thread_registers): New function.
9990 (linux_nat_make_corefile_notes): Replace contents by call to
9991 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9992 as native-only callback.
9993
9994 * linux-tdep.h: Include "bfd.h".
9995 (struct regcache): Add forward declaration.
9996 (linux_collect_thread_registers_ftype): New typedef.
9997 (linux_make_corefile_notes): Add prototype.
9998 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9999 "regset.h", and "elf-bfd.h".
10000 (find_signalled_thread, find_stop_signal): New functions.
10001 (linux_spu_make_corefile_notes): Likewise.
10002 (linux_collect_thread_registers): Likewise.
10003 (struct linux_corefile_thread_data): New data structure.
10004 (linux_corefile_thread_callback): New funcion.
10005 (linux_make_corefile_notes): Likewise.
10006 (linux_make_corefile_notes_1): Likewise.
10007 (linux_init_abi): Install it.
10008
3030c96e
UW
100092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10010
10011 * gdbarch.sh (info_proc): New callback.
10012 * gdbarch.c, gdbarch.h: Regenerate.
10013
10014 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10015 before falling back to the target info_proc callback.
10016
10017 * linux-nat.c: Do not include "cli/cli-utils.h".
10018 (linux_nat_info_proc): Remove.
10019 (linux_target_install_ops): No longer install it.
10020
10021 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10022 (read_mapping): New function.
10023 (linux_info_proc): Likewise.
10024 (linux_init_abi): Install it.
10025
145b16a9
UW
100262012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10027
10028 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10029 * infcmd.c: (info_proc_cmd_1): New function.
10030 (info_proc_cmd): New function, moved here from equivalent routine
10031 orignally in linux-nat.c.
10032 (info_proc_cmd_mappings): Likewise.
10033 (info_proc_cmd_stat): Likewise.
10034 (info_proc_cmd_status): Likewise.
10035 (info_proc_cmd_cwd): Likewise.
10036 (info_proc_cmd_cmdline): Likewise.
10037 (info_proc_cmd_exe): Likewise.
10038 (info_proc_cmd_all): Likewise.
10039 (_initialize_infcmd): Install "info proc" command and subcommands.
10040
10041 * target.h (struct target_ops): Add to_info_proc.
10042 (target_info_proc): Add prototype.
10043 * target.c (target_info_proc): New function.
10044
10045 * procfs.c (procfs_info_proc): Add prototype.
10046 (info_proc_cmd): Rename into ...
10047 (procfs_info_proc): ... this. Update argument types as appropriate
10048 for a to_info_proc implementation. Handle "what" argument.
10049 (procfs_target): Install procfs_info_proc.
10050 (_initialize_procfs): No longer install "info proc" command.
10051
10052 * linux-nat.c: (enum info_proc_what): Remove.
10053 (linux_nat_info_proc_cmd_1): Rename into ...
10054 (linux_nat_info_proc): ... this. Update argument types as appropriate
10055 for a to_info_proc implementation.
10056 (linux_nat_info_proc_cmd): Remove.
10057 (linux_nat_info_proc_cmd_mappings): Likewise.
10058 (linux_nat_info_proc_cmd_stat): Likewise.
10059 (linux_nat_info_proc_cmd_status): Likewise.
10060 (linux_nat_info_proc_cmd_cwd): Likewise.
10061 (linux_nat_info_proc_cmd_cmdline): Likewise.
10062 (linux_nat_info_proc_cmd_exe): Likewise.
10063 (linux_nat_info_proc_cmd_all): Likewise.
10064 (linux_target_install_ops): Install linux_nat_info_proc.
10065 (_initialize_linux_nat): No longer install "info proc" command
10066 and subcommands.
10067
b9e7b9c3
UW
100682012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10069
10070 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10071 * config.in, configure: Regenerate.
10072
10073 * target.h (struct target_ops): Add to_fileio_readlink.
10074 (target_fileio_readlink): Add prototype.
10075 * target.c (target_fileio_readlink): New function.
10076
10077 * inf-child.c: Conditionally include <sys/param.h>.
10078 (inf_child_fileio_readlink): New function.
10079 (inf_child_target): Install it.
10080
10081 * remote.c (PACKET_vFile_readlink): New enum value.
10082 (remote_hostio_readlink): New function.
10083 (init_remote_ops): Install it.
10084 (_initialize_remote): Handle vFile:readlink packet type.
10085
7313baad
UW
100862012-01-20 Pedro Alves <palves@redhat.com>
10087 Ulrich Weigand <ulrich.weigand@linaro.org>
10088
10089 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10090 * config.in, configure: Regenerate.
10091
10092 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10093 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10094 (target_fileio_open): Add prototype.
10095 (target_fileio_pwrite): Likewise.
10096 (target_fileio_pread): Likewise.
10097 (target_fileio_close): Likewise.
10098 (target_fileio_unlink): Likewise.
10099 (target_fileio_read_alloc): Likewise.
10100 (target_fileio_read_stralloc): Likewise.
10101
10102 * target.c: Include "gdb/fileio.h".
10103 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10104 (default_fileio_target): New function.
10105 (target_fileio_open): Likewise.
10106 (target_fileio_pwrite): Likewise.
10107 (target_fileio_pread): Likewise.
10108 (target_fileio_close): Likewise.
10109 (target_fileio_unlink): Likewise.
10110 (target_fileio_close_cleanup): Likewise.
10111 (target_fileio_read_alloc_1): Likewise.
10112 (target_fileio_read_alloc): Likewise.
10113 (target_fileio_read_stralloc): Likewise.
10114
10115 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10116 <fcntl.h>, and <unistd.h>.
10117 (inf_child_fileio_open_flags_to_host): New function.
10118 (inf_child_errno_to_fileio_error): Likewise.
10119 (inf_child_fileio_open): Likewise.
10120 (inf_child_fileio_pwrite): Likewise.
10121 (inf_child_fileio_pread): Likewise.
10122 (inf_child_fileio_close): Likewise.
10123 (inf_child_fileio_unlink): Likewise.
10124 (inf_child_target): Install to_fileio routines.
10125
10126 * remote.c (init_remote_ops): Install to_fileio routines.
10127
901f9912
UW
101282012-01-20 Pedro Alves <palves@redhat.com>
10129 Ulrich Weigand <ulrich.weigand@linaro.org>
10130
10131 * remote.c (remote_multi_process_p): Only check for multi-process
10132 protocol feature, do not check for extended protocol.
10133 (remote_supports_multi_process): Check for extended protocol here.
10134 (set_general_process): Likewise.
10135 (extended_remote_kill): Likewise.
10136 (remote_pid_to_str): Likewise.
10137 (remote_query_supported): Always query multiprocess mode.
10138
e714e1bf
UW
101392012-01-20 Pedro Alves <palves@redhat.com>
10140 Ulrich Weigand <ulrich.weigand@linaro.org>
10141
10142 * inferior.h (struct inferior): Add fake_pid_p.
10143 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10144 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10145 magic_null_ptid since the remote side doesn't provide a real PID.
10146
50897289
TT
101472012-01-19 Tom Tromey <tromey@redhat.com>
10148
10149 * NEWS: Combine the two Python sections.
10150
1afc2033
JK
101512012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10152
10153 * target.h (target_close): Update comment on the target's unpush state.
10154
305436e0
PA
101552012-01-19 Pedro Alves <palves@redhat.com>
10156
10157 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10158 linux_nat_async directly instead of going through the target
10159 vector.
10160 * target.c (unpush_target): Close target after unpushing it, not
10161 before.
10162
49323895
GB
101632012-01-19 Gary Benson <gbenson@redhat.com>
10164
10165 * mdebugread.c (sort_blocks): Replace integer constants with ones
10166 derived from FIRST_LOCAL_BLOCK.
10167
1db33378
PP
101682012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10169 Jan Kratochvil <jan.kratochvil@redhat.com>
10170
10171 PR gdb/9538
10172 * symfile.c (find_separate_debug_file): New function.
10173 (terminate_after_last_dir_separator): Likewise.
10174 (find_separate_debug_file_by_debuglink): Also try realpath.
10175 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10176 * configure: Regenerate.
10177 * config.in: Regenerate.
10178
f83d8a90
DE
101792012-01-18 Doug Evans <dje@google.com>
10180
10181 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10182 (main.o): Remove rule.
10183 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10184 (--with-sysroot): Rewrite.
10185 * configure: Regenerate.
10186 * config.in: Regenerate.
10187
2dbca4d6
SDJ
101882012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10189
10190 * parse.c (initialize_expout): New function.
10191 (reallocate_expout): Likewise.
10192 (parse_exp_in_context): Use `initialize_expout' and
10193 `reallocate_expout' when appropriate.
10194
0695b514
PA
101952012-01-18 Pedro Alves <palves@redhat.com>
10196
10197 * record.c (struct record_breakpoint, record_breakpoint_p)
10198 (record_breakpoints): New.
10199 (record_insert_breakpoint, record_remove_breakpoint): Manage
10200 record breakpoints list. Only remove breakpoints from the
10201 inferior if they had been inserted there in the first place.
10202
136e1c30
DE
102032012-01-17 Doug Evans <dje@google.com>
10204
10205 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10206 if we know we don't have a file name to look for.
10207
c0bf857d
PA
102082012-01-17 Pedro Alves <palves@redhat.com>
10209
10210 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10211 the frame's stop reason is UNWIND_UNAVAILABLE.
10212
b486de60
JK
102132012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10214
10215 Fix compilation error.
10216 * m2-exp.y (yyerror): Use ANSI C prototype.
10217
d04550a6
SDJ
102182012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10219
10220 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10221 (growbuf_by_size): Likewise.
10222 (yyerror): Likewise.
10223 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10224 (modblock): Remove variable (was #if 0'ed).
10225 (parse_number): Convert prototype from K&R to ANSI C.
10226 (yyerror): Likewise.
10227 * objc-exp.y (parse_number): Likewise.
10228 (yyerror): Likewise.
10229 (yylex): Remove #if 0'ed code.
10230 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10231 (yyerror): Likewise.
10232
4aac40c8
TT
102332012-01-16 Tom Tromey <tromey@redhat.com>
10234
10235 * NEWS: Add item.
10236 * symtab.h (compare_filenames_for_search): Declare.
10237 * symtab.c (compare_filenames_for_search): New function.
10238 (iterate_over_some_symtabs): Use it.
10239 * symfile.h (struct quick_symbol_functions)
10240 <map_symtabs_matching_filename>: Change spec.
10241 * psymtab.c (partial_map_symtabs_matching_filename): Use
10242 compare_filenames_for_search. Update for new spec.
10243 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10244 compare_filenames_for_search. Update for new spec.
10245 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10246
cafec441
TT
102472012-01-16 Tom Tromey <tromey@redhat.com>
10248
10249 PR python/13281:
10250 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10251 (struct main_type) <flag_flag_enum>: New field.
10252 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10253 * NEWS: Add entries.
10254 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10255 enums.
10256 * python/lib/gdb/printing.py (_EnumInstance): New class.
10257 (FlagEnumerationPrinter): Likewise.
10258
983af33b
SDJ
102592012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10260
10261 * breakpoint.c (create_sals_from_address_default): New function.
10262 (create_breakpoints_sal_default): Likewise.
10263 (decode_linespec_default): Likewise.
10264 (is_marker_spec): Removed.
10265 (strace_marker_p): New function.
10266 (init_breakpoint_sal): Using `strace_marker_p' instead of
10267 `is_marker_spec'.
10268 (create_breakpoint): Call method `create_sals_from_address' from
10269 breakpoint_ops, replacing code that created SALs conditionally
10270 on the type of the breakpoint. Call method `create_breakpoints_sal',
10271 replacing code that created breakpoints conditionally on the type
10272 wanted.
10273 (base_breakpoint_create_sals_from_address): New function.
10274 (base_breakpoint_create_breakpoints_sal): Likewise.
10275 (base_breakpoint_decode_linespec): Likewise.
10276 (base_breakpoint_ops): Add methods
10277 `base_breakpoint_create_sals_from_address',
10278 `base_breakpoint_create_breakpoints_sal' and
10279 `base_breakpoint_decode_linespec'.
10280 (bkpt_create_sals_from_address): New function.
10281 (bkpt_create_breakpoints_sal): Likewise.
10282 (bkpt_decode_linespec): Likewise.
10283 (tracepoint_create_sals_from_address): Likewise.
10284 (tracepoint_create_breakpoints_sal): Likewise.
10285 (tracepoint_decode_linespec): Likewise.
10286 (strace_marker_create_sals_from_address): Likewise.
10287 (strace_marker_create_breakpoints_sal): Likewise.
10288 (strace_marker_decode_linespec): Likewise.
10289 (strace_marker_breakpoint_ops): New variable.
10290 (addr_string_to_sals): Remove `marker_spec'. Call method
10291 `decode_linespec' from breakpoint_ops, replacing code that decoded
10292 an address string into a SAL. Use `strace_marker_p' instead of
10293 `marker_spec'.
10294 (strace_command): Decide whether we are dealing with a static
10295 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10296 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10297 * breakpoint.h (linespec_result, linespec_sals): New forward
10298 declarations.
10299 (breakpoint_ops) <create_sals_from_address>,
10300 <create_breakpoints_sal>, <decode_linespec>: New methods.
10301
4795f398
DE
103022012-01-14 Doug Evans <dje@google.com>
10303
10304 * NEWS: Update text for "maint set python print-stack".
10305 It is deprecated in gdb 7.4 and deleted in 7.5.
10306
ee5106fe
EZ
103072012-01-13 Eli Zaretskii <eliz@gnu.org>
10308
10309 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10310 including curses.h.
10311
b161e06f
JK
103122012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10313
10314 * configure: Regenerate.
10315 * config.in: Regenerate.
10316
85254831
KS
103172012-01-12 Keith Seitz <keiths@redhat.com>
10318
10319 PR mi/10586
10320 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10321 (ANONYMOUS_UNION_NAME): Define.
10322 (is_path_expr_parent): New function.
10323 (get_path_expr_parent): New function.
10324 (is_anonymous_child): New function.
10325 (create_child_with_value): If the child is anonymous and without
10326 a name, assign an object name to it.
10327 (c_describe_child): Use get_path_expr_parent to determine
10328 the parent expression.
10329 If there field represents an anonymous struct or union and
10330 has no name, set an appropriate display name and expression.
10331 (cplus_describe_child): Likewise.
10332
620fa63a
PA
103332012-01-12 Pedro Alves <palves@redhat.com>
10334
10335 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10336 available when %ebp is found to be zero (outermost).
10337
2efa2c79
AT
103382012-01-11 Andreas Tobler <andreast@fgznet.ch>
10339
10340 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10341 an internal gdb_static_assert.
10342 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10343
88e7d25d
TT
103442012-01-11 Tom Tromey <tromey@redhat.com>
10345
10346 PR gdb/9598:
10347 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10348 catch" and "catch throw".
10349
72384ba3
PH
103502012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10351
10352 * blockframe.c (block_innermost_frame): Start search from selected
10353 frame, if present, or otherwise the current frame.
10354
10355 * c-exp.y (variable): Update innermost_block for
10356 'block COLONCOLON NAME' clause.
10357 * m2-exp.y (variable): Ditto.
10358 * objc-exp.y (variable): Ditto.
10359
065a711f
TT
103602012-01-10 Tom Tromey <tromey@redhat.com>
10361
10362 PR python/13199:
10363 * python/python.c (finish_python_initialization): Set sys.argv.
10364
f3f5162e
DE
103652012-01-10 Doug Evans <dje@google.com>
10366
10367 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10368 "want_line_info". All callers updated.
10369 (dwarf_decode_lines_1): New function.
10370 (handle_DW_AT_stmt_list): Add function comment.
10371 New arg "want_line_info". All callers updated.
10372 (read_file_scope,read_type_unit_scope): Move comment from
10373 handle_DW_AT_stmt_list to here.
10374
9934703b
JK
103752012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10376
10377 Fix regression after libiberty/ update for GCC PR 6057 and others.
10378 * c-exp.y (operator) <OPERATOR DELETE>
10379 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10380 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10381 (make_builtin_type, make_name): New variable i, add gdb_assert.
10382 (operator) <OPERATOR NEW>: Update ARGS to 3.
10383 (operator) <OPERATOR DELETE>: Add trailing space.
10384 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10385 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10386 * cp-support.c (cp_canonicalize_string): Check NULL from
10387 cp_comp_to_string, call warning and return.
10388
06b9f45f
JK
103892012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10390
10391 Fix duplicate .o files after omitting libbfd.a.
10392 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10393 (SFILES): Add corelow.c.
10394 (COMMON_OBS): Add corelow.o.
10395 (ALLDEPFILES): Remove corelow.c.
10396 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10397 * config/alpha/alpha-osf3.mh: Likewise.
10398 * config/alpha/fbsd.mh: Likewise.
10399 * config/arm/nbsdaout.mh: Likewise.
10400 * config/arm/nbsdelf.mh: Likewise.
10401 * config/i386/i386gnu.mh: Likewise.
10402 * config/ia64/hpux.mh: Likewise.
10403 * config/ia64/linux.mh: Likewise.
10404 * config/m32r/linux.mh: Likewise.
10405 * config/m68k/linux.mh: Likewise.
10406 * config/mips/irix5.mh: Likewise.
10407 * config/mips/irix6.mh: Likewise.
10408 * config/pa/hpux.mh: Likewise.
10409 * config/pa/linux.mh: Likewise.
10410 * config/powerpc/aix.mh: Likewise.
10411 * config/sparc/linux.mh: Likewise.
10412 * config/sparc/linux64.mh: Likewise.
10413 * config/sparc/sol2.mh: Likewise.
10414 * config/vax/vax.mh: Likewise.
10415 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10416 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10417 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10418 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10419 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10420 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10421 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10422 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10423 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10424 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10425 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10426 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10427 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10428 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10429 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10430 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10431 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10432 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10433 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10434 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10435 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10436 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10437 corelow.o from gdb_target_obs.
10438 * corefile.c (core_target): Update the comment on NULL value.
10439 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10440 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10441 MATCHES. Drop YUMMY set on NULL.
10442 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10443 reclaim CORE_DATA if it is already NULL.
10444
34365054
DE
104452012-01-09 Doug Evans <dje@google.com>
10446
10447 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10448 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10449
696166a3
KS
104502012-01-09 Keith Seitz <keiths@redhat.com>
10451
10452 * breakpoint.c (wrapper.h): Don't include.
10453
8e7b59a5
KS
104542012-01-09 Keith Seitz <keiths@redhat.com>
10455
10456 * Makefile.in (SFILES): Remove wrapper.c.
10457 (HFILES_NO_SRCDIR): Remove wrapper.h.
10458 (COMMON_OBS): Remove wrapper.o.
10459 * cli/cli-interp.c: Don't inlude wrapper.h.
10460 * corelow.c: Likewise.
10461 (core_open): Replace gdb_target_find_new_threads with
10462 TRY_CATCH around target_find_new_threads.
10463 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10464 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10465 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10466 evaluate_expression.
10467 (varobj_set_value): Likewise for evaluate_expression and
10468 value_assign.
10469 (install_new_variable): Likewise for value_fetch_lazy.
10470 (adjust_value_for_child_access): Likewise for value_ind.
10471 (c_describe_child): Likewise for value_subscript and
10472 value_ind.
10473 (c_value_of_root): Likewise for evaluate_expression.
10474 * wrapper.c: Remove.
10475 * wrapper.h: Remove.
10476
1a4eeb98
DE
104772012-01-09 Doug Evans <dje@google.com>
10478
9ff913ba
DE
10479 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10480 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10481 "abfd" args with "section". All callers updated.
10482 Error checking code moved ...
10483 (error_check_comp_unit_head): ... here. New function.
10484 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10485 Delete arg "abfd". New arg "type_offset". All callers updated.
10486 (create_debug_types_hash_table): Simplify by using
10487 read_and_check_type_unit_head.
10488
1a4eeb98
DE
10489 * parser-defs.h (namecopy): Delete.
10490 * parse.c (namecopy, namecopy_size): Move into copy_name.
10491
2e6af8c0
JK
104922012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10493
10494 Partially fix duplicate .o files after omitting libbfd.a.
10495 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10496 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10497 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10498 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10499 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10500 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10501 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10502
9f2f828a
PA
105032012-01-09 Pedro Alves <palves@redhat.com>
10504
10505 * MAINTAINERS: Update my email address.
10506
4d72c0bc
DE
105072012-01-08 Doug Evans <dje@google.com>
10508
d467dd73
DE
10509 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10510 n_type_units. Rename type_comp_units to all_type_units.
10511 All uses updated.
10512 (add_signatured_type_cu_to_table): Renamed from
10513 add_signatured_type_cu_to_list. All callers updated.
10514
4d72c0bc
DE
10515 * gdbtypes.h (struct cplus_struct_type): Delete member
10516 nfn_fields_total. All uses removed.
10517
21b2bd31
DE
105182012-01-06 Doug Evans <dje@google.com>
10519
10520 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10521 to top of file.
10522 (dwarf2_find_comp_unit): Delete.
10523 (process_psymtab_comp_unit): Make result "void".
10524 Delete args buffer, info_ptr, buffer_size, and replace with
10525 "section". All callers updated.
10526 (dwarf2_build_psymtabs_hard): Simplify.
10527
bfd189b1
SDJ
105282012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10529 Thiago Jung Bauermann <bauerman@br.ibm.com>
10530
10531 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10532 before `struct gdb_exception'.
10533 * breakpoint.c (update_global_location_list_nothrow)
10534 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10535 * cp-abi.c (value_rtti_type): Likewise.
10536 * cp-support.c (cp_validate_operator): Likewise.
10537 * infrun.c (insert_exception_resume_breakpoint)
10538 (check_exception_resume, keep_going): Likewise.
10539 * mi-interp.c (mi_breakpoint_created)
10540 (mi_breakpoint_modified): Likewise.
10541 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10542 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10543 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10544
6b07635f
DE
105452012-01-05 Doug Evans <dje@google.com>
10546
0b30b85c
DE
10547 * dwarf2read.c (statement_prologue): Delete, unused.
10548
98714339
DE
10549 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10550 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10551
6b07635f
DE
10552 * dwarf2read.c (comp_unit_header): Delete, unused.
10553
761f4555
UW
105542012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10555
10556 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10557 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10558
2ca0b532
PA
105592012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10560
10561 * infrun.c (normal_stop): Don't skip calling the normal_stop
10562 observers if the thread was doing a multi-step, but stopped for
10563 some reason other than stepping.
10564
50aeff07
PA
105652012-01-05 Pedro Alves <alves.ped@gmail.com>
10566
10567 * cli/cli-decode.h: Add comments.
10568 (CMD_LIST_AMBIGUOUS): Moved to command.h
10569 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10570 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10571 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10572 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10573 (add_com, add_com_alias, add_info, add_info_alias)
10574 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10575 declarations.
10576 * command.h: Add and adjust comments.
10577 (CMD_LIST_AMBIGUOUS): Moved here.
10578 (help_cmd, help_cmd_list): Delete declarations.
10579
5953832c
DE
105802012-01-04 Doug Evans <dje@google.com>
10581
e5fe5e75
DE
10582 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10583 All callers updated.
10584 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10585 Replace all arguments with "per_cu". All callers updated.
10586
28dee7f5
DE
10587 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10588
23745b47
DE
10589 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10590 New arg "per_cu". All callers updated.
10591
5953832c
DE
10592 Delete #if 0'd out code.
10593 * language.c (binop_result_type): Delete.
10594 (simple_type, ordered_type, same_type, integral_type): Delete.
10595 (numeric_type, character_type, string_type, boolean_type): Delete.
10596 (float_type, structured_type): Delete.
10597 * language.h: Update.
10598
0f5b7562
TT
105992012-01-04 Tom Tromey <tromey@redhat.com>
10600
10601 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10602
78218f56
JB
106032012-01-04 Joel Brobecker <brobecker@adacore.com>
10604
10605 * corefile.c (close_exec_file): Delete.
10606 (reopen_exec_file): Remove commented out code that seems related
10607 to close_exec_file, which is being deleted here.
10608 * inferior.h (close_exec_file): Delete.
10609 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10610
0fcd72ba
JB
106112012-01-04 Joel Brobecker <brobecker@adacore.com>
10612
10613 * ada-lang.c: #include "cli/cli-utils.h".
10614 (get_selections): Use skip_spaces.
10615 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10616 (catch_ada_exception_command_split): Use skip_spaces.
10617 (ada_decode_assert_location): Likewise.
10618
1dabb4c4
JB
106192012-01-04 Joel Brobecker <brobecker@adacore.com>
10620
10621 * linespec.c (decode_line_internal): Check for C++ or Java
10622 compound constructs only if the current language is C, C++
10623 or Java.
10624
5931a2fa
JK
106252012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10626
10627 Revert:
10628 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10629 Joel Brobecker <brobecker@adacore.com>
10630 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10631 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10632 3 times.
10633 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10634 fall through into AT_ENTRY_POINT.
10635 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10636 DUMMY_ADDR with it.
10637 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10638 PPC_INSN_SIZE skip to 3 times.
10639
1a2da5ee
JB
106402012-01-04 Joel Brobecker <brobecker@adacore.com>
10641
10642 * linespec.c (add_minsym): Preserve function descriptors.
10643
8645ff69
UW
106442012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10645
10646 * breakpoint.c (all_locations_are_pending): Consider locations
10647 in program spaces executing during startup pending as well.
10648
0b302171
JB
106492012-01-04 Joel Brobecker <brobecker@adacore.com>
10650
10651 Copyright year update in most files of the GDB Project.
10652
8ba098ad
JB
106532012-01-04 Joel Brobecker <brobecker@adacore.com>
10654
10655 * copyright.sh: Delete.
10656 * copyright.py: Rewrite.
10657
09c01c30
JB
106582012-01-04 Joel Brobecker <brobecker@adacore.com>
10659
10660 * gnulib/extra/update-copyright: New file, imported from gnulib.
10661
3c36c0af
JB
106622012-01-04 Joel Brobecker <brobecker@adacore.com>
10663
10664 * README (Copyright and License Notices): New section.
10665
888fe1e1
TT
106662012-01-03 Tom Tromey <tromey@redhat.com>
10667
10668 PR python/12533:
10669 * python/py-value.c (valpy_dereference, valpy_get_address
10670 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10671 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10672 (valpy_absolute, valpy_richcompare): Free intermediate values.
10673
6e681866
JB
106742011-01-03 Joel Brobecker <brobecker@adacore.com>
10675
10676 * ada-lang.c: Reformat the copyright notice.
10677
0cd09acb
JK
106782012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10679
10680 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10681 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10682 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10683 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10684 Revert this part of:
10685 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10686 Build gdb directly from *.o files not using libgdb.a.
10687 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10688
12c3e59c
JB
106892012-01-02 Joel Brobecker <brobecker@adacore.com>
10690
10691 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10692 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10693 Reformat the copyright header.
10694
11bf1490
JK
106952012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10696
10697 Revert this part of:
10698 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10699 Remove the gdbtui binary.
10700 * gdb.c (main): Remove args.interpreter_p initialization.
10701 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10702 * main.h (struct captured_main_args): Remove interpreter_p.
10703
1fef196f
JB
107042012-01-02 Joel Brobecker <brobecker@adacore.com>
10705
10706 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10707
67827812
JB
107082012-01-02 Joel Brobecker <brobecker@adacore.com>
10709
10710 * top.c (print_gdb_version): Update copyright year.
10711
a4d0b831
YQ
107122012-01-02 Yao Qi <yao@codesourcery.com>
10713
10714 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10715
b5914469
JK
107162012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10717 Joel Brobecker <brobecker@adacore.com>
10718
10719 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10720 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10721 3 times.
10722 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10723 fall through into AT_ENTRY_POINT.
10724 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10725 DUMMY_ADDR with it.
10726 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10727 PPC_INSN_SIZE skip to 3 times.
10728
8da828f7
JK
107292012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10730
10731 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10732 the return value.
10733 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10734
8574e74b
JK
107352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10736
10737 Build gdb directly from *.o files not using libgdb.a.
10738 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10739 (COMMON_OBS): Remove solib-target.o.
10740 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10741 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10742 (LIBGDB_OBS, libgdb.a): Move it above.
10743 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10744 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10745 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10746 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10747 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10748 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10749 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10750 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10751 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10752 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10753 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10754 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10755 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10756 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10757 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10758 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10759 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10760 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10761 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10762 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10763 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10764 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10765 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10766 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10767 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10768 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10769 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10770
217bff3e
JK
107712012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10772
10773 Remove the gdbtui binary.
10774 * .gitignore (/gdbtui): Remove.
10775 * Makefile.in (TUI): Remove.
10776 (SUBDIR_TUI_OBS): Remove tui-main.o.
10777 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10778 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10779 (tui-main.o): Remove.
10780 (all_object_files): Remove tui-main.o.
10781 * NEWS: New note for the gdbtui removal.
10782 * configure: Rebuilt.
10783 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10784 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10785 CONFIG_UNINSTALL respectively.
10786 * gdb.c (main): Remove args.interpreter_p initialization.
10787 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10788 * main.h (struct captured_main_args): Remove interpreter_p.
10789 * tui/tui-main.c: Remove.
10790
9cdd5dbd
DE
107912012-01-01 Doug Evans <dje@google.com>
10792
bb5ed363
DE
10793 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10794 (dwarf2_physname, read_import_statement): Ditto.
10795 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10796 (process_structure_scope read_subroutine_type): Ditto.
10797 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10798 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10799 (dwarf2_fetch_die_location_block): Ditto.
10800 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10801
a0f42c21
DE
10802 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10803 All callers updated.
10804 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10805 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10806 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10807
2dc860c0
DE
10808 * dwarf2read.c (load_cu): Move assert to more useful location.
10809
68dc6402
DE
10810 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10811 All callers updated.
10812
9cdd5dbd
DE
10813 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10814 (dwarf2_elf_names): Minor reformat.
10815 (dwarf2_per_cu_data): Tweak comment.
10816 (dwarf2_read_section): Fix comment.
10817 (create_all_comp_units): Fix comment.
10818 (load_full_comp_unit): Fix comment.
10819 (process_full_comp_unit): Fix comment.
10820 (read_signatured_type): Fix comment.
10821
0c10e53e 10822For older changes see ChangeLog-2011.
c906108c
SS
10823\f
10824Local Variables:
10825mode: change-log
10826left-margin: 8
10827fill-column: 74
10828version-control: never
57da7796 10829coding: utf-8
c906108c 10830End:
This page took 1.9092 seconds and 4 git commands to generate.