2012-09-28 selven <pcthegreat@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
39181896
PA
12012-09-28 selven <pcthegreat@gmail.com>
2
3 Make definition match declaration.
4
5 * regcache.c (regcache_register_status): Change return type to
6 enum register_status.
7
4c2786ba
YQ
82012-09-28 Yao Qi <yao@codesourcery.com>
9
10 * mi/mi-main.c (mi_cmd_data_write_memory): Call
11 write_memory_with_notification instead of write_memory.
12 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
13 instead of target_write_memory.
14
1ae0c35e
YQ
152012-09-28 Yao Qi <yao@codesourcery.com>
16
17 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
18 when the length of content is not an even number.
19
7977e5d2
TT
202012-09-27 Tom Tromey <tromey@redhat.com>
21
22 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
23 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
24
807160da
JB
252012-09-27 Joel Brobecker <brobecker@adacore.com>
26
27 * sol-thread.c (sol_thread_fetch_registers)
28 (sol_thread_store_registers): Delete commented out code.
29
43c75337
JB
302012-09-27 Joel Brobecker <brobecker@adacore.com>
31
32 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
33 Move these functions to sparc-sol-thread.c.
34 * sparc-sol-thread.c: New file.
35 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
36 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
37 configurations.
38 * configure: Regenerate.
39
d292a972
JB
402012-09-27 Joel Brobecker <brobecker@adacore.com>
41
42 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
43 Remove commented-out code.
44
8c3da003
JB
452012-09-27 Joel Brobecker <brobecker@adacore.com>
46
47 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
48 Enable this code for sparc hosts only.
49
f00482b6
JB
502012-09-27 Joel Brobecker <brobecker@adacore.com>
51
52 * procfs.h (procfs_find_LDT_entry): Add declaration.
53 * sol-thread.c (ps_lgetLDT): Delete local declaration of
54 function procfs_find_LDT_entry.
55
337c776f
JB
562012-09-27 Joel Brobecker <brobecker@adacore.com>
57
58 * procfs.c (proc_get_LDT_entry): Make static.
59
1a04d88f
JB
602012-09-27 Joel Brobecker <brobecker@adacore.com>
61
62 * procfs.c (proc_find_memory_regions): Fix declaration.
63
bad43aa5
SP
642012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
65
66 * amd64-tdep.c (amd64_return_value): Revert previous change
67 that used TYPE_LENGTH directly.
68 * bfin-tdep.c (bfin_extract_return_value): Likewise.
69 (bfin_store_return_value): Likewise.
70 * cris-tdep.c (cris_store_return_value): Likewise.
71 (cris_extract_return_value): Likewise.
72 * h8300-tdep.c (h8300_extract_return_value): Likewise.
73 * hppa-tdep.c (hppa64_return_value): Likewise.
74 * lm32-tdep.c (lm32_store_return_value): Likewise.
75 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
76 * spu-tdep.c (spu_value_from_register): Likewise.
77 * vax-tdep.c (vax_return_value): Likewise.
78
63375b74
SP
792012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
80
81 * gdbtypes.c (lookup_array_range_type): Expand parameters
82 LOW_BOUND and HIGH_BOUND to LONGEST.
83 (lookup_string_range_type): Likewise.
84 * gdbtypes.h (lookup_array_range_type): Likewise.
85 (lookup_string_range_type): Likewise.
86 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
87 Expand HIGHBOUND to ssize_t.
88 (value_string): Likewise.
89 * value.h (value_cstring): Expand parameter LEN to ssize_t.
90 (value_string): Likewise.
91
19ca11c5
YQ
922012-09-27 Yao Qi <yao@codesourcery.com>
93
94 PR breakpoints/13898
95 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
96 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
97 per breakpoint type.
98
92107356
PM
992012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
100
101 * procfs.c: Add gdb_bfd header.
102 * rs6000-nat.c: Likewise.
103 * solib-pa64.c: Likewise.
104 * spu-linux-nat.c: Likewise.
105 * windows-nat.c: Likewise.
106
9742094a
TT
1072012-09-26 Tom Tromey <tromey@redhat.com>
108
109 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
110
0971de02
TT
1112012-09-26 Tom Tromey <tromey@redhat.com>
112
113 * dwarf2read.c (mark_common_block_symbol_computed): New function.
114 (read_common_block): Handle child DIEs with
115 DW_AT_data_member_location.
116 (new_symbol_full): Add special case for common blocks.
117
4357ac6c
TT
1182012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
119 Tom Tromey <tromey@redhat.com>
120
121 * dwarf2read.c (read_common_block): Rewrite.
122 (new_symbol_full): Handle DW_TAG_common_block.
123 * f-lang.c (head_common_list, find_common_for_function):
124 Remove.
125 * f-lang.h (struct common_entry, struct saved_f77_common,
126 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
127 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
128 BLANK_COMMON_NAME_LOCAL): Remove.
129 (struct common_block): New.
130 * f-valprint.c (list_all_visible_commons): Remove.
131 (info_common_command_for_block): New function.
132 (info_common_command): Use it.
133 * stack.c (iterate_over_block_locals): Special case for
134 COMMON_BLOCK_DOMAIN.
135 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
136 constant.
137 (struct general_symbol_info) <value.common_block>: New field.
138 (SYMBOL_VALUE_COMMON_BLOCK): New define.
139
965f07a8
TT
1402012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
141 Tom Tromey <tromey@redhat.com>
142
143 * f-lang.c (allocate_saved_bf_node,
144 allocate_saved_function_node, allocate_saved_f77_common_node,
145 allocate_common_entry_node, tail_common_list, current_common,
146 saved_bf_list, saved_bf_list_end, current_head_bf_list,
147 tmp_bf_ptr, add_common_block, add_common_entry,
148 find_first_common_named, patch_common_entries,
149 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
150 global_remote_debug, get_bf_for_fcn, saved_function_list,
151 saved_function_list_end, clear_function_list, struct saved_fcn,
152 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
153 SAVED_BF, SAVED_BF_PTR): Remove.
154 * f-lang.h (tail_common_list, current_common,
155 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
156 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
157 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
158 real_main_c_value): Remove.
159 * f-valprint.c (there_is_a_visible_common_named): Remove.
160
6f380991
AB
1612012-09-26 Andrew Burgess <aburgess@broadcom.com>
162
163 * breakpoint.c (update_global_location_list): Ignore previous
164 duplicate status of a breakpoint when starting a new scan for
165 duplicate breakpoints.
166
9ead7ae4 1672012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 168 PR breakpoints/14419
2536b51c
YQ
169 * arm-tdep.c (arm_skip_prologue): Extending producer check to
170 support LLVM compiler.
9ead7ae4 171
8f8a23a2
SP
1722012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
173
174 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
175 * bfin-tdep.c (bfin_extract_return_value): Likewise.
176 (bfin_store_return_value): Likewise.
177 * cris-tdep.c (cris_store_return_value): Likewise.
178 (cris_extract_return_value): Likewise.
179 * h8300-tdep.c (h8300_extract_return_value): Likewise.
180 * hppa-tdep.c (hppa64_return_value): Likewise.
181 * lm32-tdep.c (lm32_store_return_value): Likewise.
182 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
183 * spu-tdep.c (spu_value_from_register): Likewise.
184 * vax-tdep.c (vax_return_value): Likewise.
185
d7019589
SP
1862012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
187
188 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
189 parameter LEN to ssize_t.
190
744a8059
SP
1912012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
192
193 * ada-valprint.c (ada_val_print_1): Eliminate single-use
194 variable LEN.
195 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
196 directly.
197 (alpha_store_return_value): Likewise.
198 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
199 (amd64_push_arguments): Likewise.
200 * ax-gdb.c (gen_trace_static_fields): Likewise.
201 (gen_traced_pop): Likewise.
202 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
203 * breakpoint.c (update_watchpoint): Likewise.
204 * findcmd.c (parse_find_args): Use local variable for type
205 instead of length.
206 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
207 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
208 (h8300_store_return_value): Likewise.
209 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
210 Use i386_darwin_arg_type_alignment directly.
211 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
212 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
213 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
214 (m68hc11_extract_return_value): Likewise.
215 * mep-tdep.c (mep_push_dummy_call): Likewise.
216 * printcmd.c (float_type_from_length): Likewise.
217 * s390-tdep.c (s390_value_from_register): Likewise.
218 * stack.c (read_frame_arg): Likewise.
219 * tracepoint.c (encode_actions_1): Likewise.
220 * valops.c (value_fetch_lazy): Use local variable for type
221 instead of length. Use TYPE_LENGTH directly.
222 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
223
a4b411d6
JB
2242012-09-25 Joel Brobecker <brobecker@adacore.com>
225
226 * symtab.c (skip_prologue_sal): Fix typo in comment.
227
11dba07a
JB
2282012-09-25 Joel Brobecker <brobecker@adacore.com>
229
230 * linespec.c (create_sals_line_offset): Fix typo in comment.
231
318102b9
SP
2322012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
233
234 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
235 use plongest to print the array size.
236
b4aa388a
SP
2372012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
238
239 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
240 * p-valprint.c (pascal_type_print_base): Likewise.
241
84cebc4a
YQ
2422012-09-22 Yao Qi <yao@codesourcery.com>
243
244 * remote.c (remote_get_trace_status): Remove setting default
245 values of fields of 'ts'.
246
04e7407c
JK
2472012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
248
249 Fix internal error on canonicalization of clang types.
250 * cp-name-parser.y (operator): New comment at make_operator call for
251 new, delete, new[] and delete[].
252 (exp): Use "sizeof ". Add new comment at make_operator call.
253
9bf4bce9
JK
2542012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
255
256 Fix disassemble without parameters in tailcall frame.
257 * cli/cli-cmds.c (disassemble_current_function): Use
258 get_frame_address_in_block.
259
1c5b7826
TT
2602012-09-21 Tom Tromey <tromey@redhat.com>
261
262 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
263 TYPE_CODE_UNION>: Unify, removing a goto.
264
62a49610
TT
2652012-09-21 Tom Tromey <tromey@redhat.com>
266
267 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
268
2603f7ee
AB
2692012-09-21 Andrew Burgess <aburgess@broadcom.com>
270
271 * findvar.c (read_frame_register_value): Mark the result value as
272 optimized out if any of the input registers have been optimized out.
273
810849a3
AS
2742012-09-21 Andreas Schwab <schwab@linux-m68k.org>
275
276 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
277
0953dec1
SP
2782012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
279
280 * eval.c (evaluate_subexp_standard): Eliminate single-use
281 variable LOWER.
282
82a90ccf
YQ
2832012-09-21 Yao Qi <yao@codesourcery.com>
284
285 * mi/mi-interp.c: Declare mi_record_changed.
286 (mi_interpreter_init): Call observer_attach_record_changed.
287 (mi_record_changed): New.
288 * record.c (record_open): Call observer_notify_record_changed.
289 (cmd_record_stop): Call observer_notify_record_changed.
290 * NEWS: Mention it.
291
d7de8e3c
TT
2922012-09-20 Tom Tromey <tromey@redhat.com>
293
294 * NEWS: Update.
295 * python/python.c (finalize_python): New function.
296 (_initialize_python): Make a final cleanup.
297
43c7c83d
DE
2982012-09-19 Doug Evans <dje@google.com>
299
300 * buildsym.h (param_symbols): Delete, unused.
301 (context_stack): Delete member "params", unused.
302 * buildsym.c (push_context): Update.
303 * dwarf2read.c (read_func_scope): Update.
304
aa9259cc
TS
3052012-09-19 Thomas Schwinge <thomas@codesourcery.com>
306
a6521d9a
TS
307 * sh-tdep.c (sh_register_convert_to_virtual)
308 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
309 all callers. Just do a memcpy if not the little-endian case.
310
f92589cb
TS
311 * h8300-tdep.c (h8300_gdbarch_init): Invoke
312 set_gdbarch_double_format and set_gdbarch_long_double_format.
313 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
314 set_gdbarch_double_format.
315 * sh-tdep.c (sh_gdbarch_init): Likewise.
316
aa9259cc
TS
317 * NEWS: Document the removal of SH's 'regs' command.
318 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
319 command.
320
c1d780c2
SDJ
3212012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
322
323 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
324 `jump'.
325
4ae24af0
JB
3262012-09-18 Joel Brobecker <brobecker@adacore.com>
327
328 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
329 language when iterating over symbols.
330
bb25a15c
YQ
3312012-09-18 Yao Qi <yao@codesourcery.com>
332
333 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
334 (mi_interpreter_init): Call observer_attach_tsv_created and
335 observer_attach_tsv_deleted.
336 (mi_tsv_created, mi_tsv_deleted): New.
337 * tracepoint.c (delete_trace_state_variable): Call
338 observer_notify_tsv_deleted.
339 (trace_variable_command): Call observer_notify_tsv_created.
340 (delete_trace_variable_command): Call
341 observer_notify_tsv_deleted.
342 (create_tsv_from_upload): Call observer_notify_tsv_created.
343 * NEWS: Mention it.
344
201b4506
YQ
3452012-09-18 Yao Qi <yao@codesourcery.com>
346
347 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
348 if traceframe changed.
349 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
350 "trace-find".
351 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
352 (mi_interpreter_init): Hook mi_traceframe_changed to observer
353 'traceframe_changed'.
354 (mi_traceframe_changed): New.
355 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
356 New field.
357 * NEWS: Mention the new MI notification.
358
eaeb12db
MW
3592012-09-17 Mike Wrighton <wrighton@codesourcery.com>
360
361 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
362
6e3c039e
JK
3632012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
364
365 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
366 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
367 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
368 Extend code also for PaX support. Convert all gdb_assert to warning
369 calls.
370
9a950c7c
JK
3712012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
372
373 Implement auto-load user conveniences suggested by Doug Evans.
374 * auto-load.c: Include top.h.
375 (file_is_auto_load_safe): New variable advice_printed. Print advice.
376 (_initialize_auto_load): New variable scripts_directory_help. Mention
377 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
378 scripts-directory. Document in online help one can use also files for
379 set auto-load safe-path.
380 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
381 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
382
deec9a9d
SP
3832012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
384
385 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
386 of LEN.
387
354ecfd5
SP
3882012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
389
390 * m2-valprint.c (m2_print_array_contents): Eliminate variable
391 ELTLEN and use TYPE_LENGTH directly.
392 (m2_val_print): Likewise.
393 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
394 variable LEN and use TYPE_LENGTH directly.
395 (m68k_svr4_store_return_value): Likewise.
396 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
397 ARGLEN and use TYPE_LENGTH directly.
398 (mips_o64_push_dummy_call): Likewise.
399 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
400 variable LENGTH and use TYPE_LENGTH directly.
401 (s390_function_arg_float): Likewise.
402 (s390_function_arg_integer): Likewise.
403 (s390_push_dummy_call): Likewise.
404 (s390_return_value_convention): Likewise.
405 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
406 TYPE_LENGTH directly.
407
6fc1c773
YQ
4082012-09-17 Yao Qi <yao@codesourcery.com>
409
410 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
411 Update comment to add_setshow_integer_cmd.
412 * cli/cli-setshow.c (do_set_command): Handle case
413 'var_zuinteger_unlimited'.
414 (do_show_command): Likewise.
415 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
416 for command 'remotetimeout'.
417 * command.h (enum var_types): New zuinteger_unlimited. Update comment
418 to var_integer.
419 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
420 for command 'set listsize'.
421
6acef6cd
SP
4222012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
423
424 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
425 variable LEN.
426
1ab3b62c
JK
4272012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
428
429 PR 14119
430 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
431 (frame_pop): Drop also TAILCALL_FRAME frames.
432 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
433
acf9414f
JK
4342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
435 Pedro Alves <palves@redhat.com>
436
437 PR 14548
438 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
439 function start if we are already at function start. Both for
440 reverse-next and for reverse-step into function without line number
441 info.
442
193facb3
JK
4432012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
444
445 Code cleanup - rename 'inline' depth to 'artificial' depth.
446 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
447 frame_id_artificial_p, extend the comment.
448 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
449 * frame.c (fprint_frame_id): Rename at a user, change debug output
450 text to "artificial=".
451 (skip_inlined_frames): Rename to ...
452 (skip_artificial_frames): ... here. Extend the comment.
453 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
454 (frame_id_inlined_p): Rename to ...
455 (frame_id_artificial_p): ... here. Rename at a user.
456 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
457 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
458 at a user.
459 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
460 Extend the comment.
461 (frame_id_inlined_p): Rename to ...
462 (frame_id_artificial_p): ... here.
463 * inline-frame.c (inline_frame_this_id): Rename at a user.
464
42056501
AB
4652012-09-14 Andrew Burgess <aburgess@broadcom.com>
466
467 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
468 vector variables using vector_size syntax rather than array
469 syntax.
470
84c47588
SP
4712012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
472
473 * valarith.c (value_concat): Replace unsafe ALLOCA with
474 XMALLOC/XFREE.
475
f4045bcb
PA
4762012-09-14 Pedro Alves <palves@redhat.com>
477
478 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
479
63b46266
YPK
4802012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
481
482 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
483 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
484 data-directory as appropriate.
485
ddd7a8e7
SP
4862012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
487
488 * printcmd.c (ui_printf): Eliminate single-use variable
489 PARAM_LEN.
490
d649a38e
YQ
4912012-09-14 Yao Qi <yao@codesourcery.com>
492 Pedro Alves <palves@redhat.com>
493
494 * valops.c (value_assign): Move observer_notify_target_changed
495 below to replace reinit_frame_cache.
496
b9516fa1
YPK
4972012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
498
499 Refactor Python "gdb" module into a proper Python package, by
500 introducing a new "_gdb" module for code implemented in C, and
501 using reload/__import__ instead of exec.
502 * python/lib/gdb/__init__.py: Import * from _gdb.
503 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
504 prompt_hook, sys.argv): Moved from finish_python_initialization.
505 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
506 (packages, auto_load_packages): New list and function replacing
507 module_dict and auto-loading code, using __file__ instead of
508 gdb.PYTHONDIR and reload/__import__ instead of exec.
509 (GdbSetPythonDirectory): Replacing function of the same name
510 from finish_python_initialization, using reload/__import__ instead
511 of exec, as well as call auto_load_packages.
512 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
513 gdb_python_module and not gdb_module.
514 * python/python-internal.h (gdb_python_module): Declare.
515 * python/python.c (gdb_python_module): New global.
516 (before_prompt_hook): Check gdb_python_module and not gdb_module.
517 (_initialize_python): Rename gdb module to _gdb.
518 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
519 (finish_python_initialization): Move Python code to
520 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
521 __main__.
522
aa0fbdd8
PA
5232012-09-13 Pedro Alves <palves@redhat.com>
524
525 * Makefile.in (COMMON_OBS): Add registry.o.
526 * registry.c: New file.
527 * registry.h (struct registry_container): Declare.
528 (registry_data_callback): New typedef.
529 (struct registry_data, struct registry_data_registration, struct
530 registry_data_registry): New type.
531 (register_data_with_cleanup, registry_alloc_data)
532 (registry_callback_adaptor, registry_clear_data)
533 (registry_container_free_data, registry_set_data, registry_data):
534 Declare.
535 (DEFINE_REGISTRY): Refactor structures and functions as shims over
536 the new common structures and functions.
537 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
538 callback typedefs.
539
42b5c53d
MW
5402012-09-12 Mike Wrighton <wrighton@codesourcery.com>
541
542 * remote.c (remote_insert_hw_breakpoint): Throw exception if
543 there is an error inserting hardware breakpoints and use the
544 error message from the target.
545
546 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
547 Catch this exception and print the error message contained within. Do not
548 print the default hardware error breakpoint message in this case.
549
a1b64ce1
DE
5502012-09-12 Doug Evans <dje@google.com>
551
552 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
553 cu == NULL.
554
83a788b8
DE
5552012-09-11 Doug Evans <dje@google.com>
556
557 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
558 .gdb_index symbol attributes if there are none.
559
d9eaeb59
JB
5602012-09-11 Joel Brobecker <brobecker@adacore.com>
561
562 * symtab.h (struct minimal_symbol) [has_size]: New field.
563 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
564 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
565 * printcmd.c (build_address_symbolic): Only filter out zero-sized
566 minimal symbols if the symbol's size is actually known.
567 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
568 of msymbol's size field. Add comment.
569 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
570 SET_MSYMBOL_SIZE to set the minimal symbol size.
571
a83e9154
JB
5722012-09-11 Joel Brobecker <brobecker@adacore.com>
573
574 * minsyms.c (install_minimal_symbols): Use memset to fill entire
575 minimal_symbol struct object, rather than setting some of its
576 fields one by one.
577
350b1b26
AB
5782012-09-11 Andrew Burgess <aburgess@broadcom.com>
579
580 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
581 passed_a_ptr flag when displaying typedef types.
582
2fa15f23
JB
5832012-09-10 Joel Brobecker <brobecker@adacore.com>
584
585 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
586 the optimized_out flag is preserved.
587
5152ff90
AG
5882012-09-10 Anthony Green <green@moxielogic.com>
589
590 * moxie-tdep.c (moxie_analyze_prologue): Update for function
591 prologue changes in GCC.
592
5b4f6e25
KS
5932012-09-10 Keith Seitz <keiths@redhat.com>
594
595 PR gdb/13483
596 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
597 (BOOL_CONVERSION_BADNESS): ... this.
598 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
599 (rank_one_type): Allow all boolean conversions
600 permitted by the standard.
601
f1070426
TT
6022012-09-06 Tom Tromey <tromey@redhat.com>
603
604 * python/py-newobjfileevent.c (create_new_objfile_event_object):
605 Don't decref py_objfile.
606
a8db4212
YPK
6072012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
608
609 Do not enable -lmcheck by default when Python is enabled with
610 threading support.
611 * configure.ac: (python_has_threads) New variable, by testing
612 if WITH_THREAD is defined in Python.h.
613 Move --enable-lmcheck after --with-python.
614 Do not enable -lmcheck by default if python_has_threads=yes.
615 Warn if --enable-lmcheck and python_has_threads=yes.
616 * configure: Regenerate.
617
648beb2b
YQ
6182012-08-31 Yao Qi <yao@codesourcery.com>
619
620 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
621 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
622 Update some commands.
623 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
624 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
625 to 1.
626
ef07a9f7
YQ
6272012-08-31 Yao Qi <yao@codesourcery.com>
628
629 * mi/mi-cmds.c (mi_cmds): Add 'static'.
630
fda395cf
YPK
6312012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
632
633 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
634
8efd8e78
DE
6352012-08-29 Doug Evans <dje@google.com>
636
637 * main.c (print_gdb_help): Remove reference to
638 --use-deprecated-index-sections.
639
883b9c6c
YQ
6402012-08-28 Yao Qi <yao@codesourcery.com>
641
642 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
643 (init_cmds): Call add_setshow_uinteger_cmd for command
644 'max-user-call-depth'.
645 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
646 declaration of 'max_user_call_depth'.
647 * frame.c (backtrace_limit): Add 'unsigned'.
648 (_initialize_frame): Call add_setshow_uinteger_cmd for command
649 'limit'.
650 * remote.c (remoteaddresssize): Add 'unsigned'.
651 (remote_address_masked): Change local var 'address_size' to
652 'unsigned'.
653 (_initialize_remote): Call add_setshow_uinteger_cmd for
654 'remoteaddresssize'.
655 * top.c (history_size): Add 'unsigned'.
656 (show_commands): Change local variables to 'unsigned'.
657 (set_history_size_command): Don't check history_size is negative.
658 Adjust the condition to call unstifle_history and set history_size
659 to UNIT_MAX.
660
1292279a
PA
6612012-08-28 Pedro Alves <palves@redhat.com>
662
663 PR gdb/14428
664
665 * infcmd.c (default_print_one_register_info): New, factored out
666 from default_print_registers_info.
667 (default_print_registers_info): Use it. Mark value unavailable if
668 necessary.
669 (registers_info): Print user registers with
670 default_print_one_register_info.
671
f629cd75
L
6722010-08-27 H.J. Lu <hongjiu.lu@intel.com>
673
674 PR tui/14486
675 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
676 is not NULL before referencing it.
677
1c8cdcb1
JK
6782012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
679
680 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
681 variable pc. Call find_pc_line instead of find_pc_overlay, restore
682 original PC for it.
683
e9687799
JK
6842012-08-27 Eli Zaretskii <eliz@gnu.org>
685 Jan Kratochvil <jan.kratochvil@redhat.com>
686
687 * auto-load.c (auto_load_objfile_script): Rename to ...
688 (auto_load_objfile_script_1): ... here, change variable realname to
689 parameter realname, document it, add return value, add variable retval.
690 (auto_load_objfile_script): New function.
691
7afa1642
JK
6922012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
693
694 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
695 followed by a whitespace.
696
dc7650b8
JK
6972012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
698
28e66c70 699 PR gdb/14494.
dc7650b8
JK
700 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
701 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
702 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
703 here.
704
1591a1e8
PA
7052012-08-27 Wei-cheng Wang <cole945@gmail.com>
706
707 * memattr.c (create_mem_region): Fix memory region overlapping
708 checking.
709
ecfb0d68
SP
7102012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
711
712 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
713 with xmalloc/cleanup.
714 * mt-tdep.c (mt_push_dummy_call): Likewise.
715 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
716 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
717
8c56c1b9
YQ
7182012-08-24 Yao Qi <yao@codesourcery.com>
719
720 * jv-exp.y (push_expression_name): Add "." at the end of error
721 message.
722
e3480f4a
YPK
7232012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
724
725 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
726 * python/python.c (_initialize_python): Update documentation.
727
dfbd5e7b
PA
7282012-08-23 Pedro Alves <palves@redhat.com>
729
730 * infrun.c (_initialize_infrun) <handle command help text>:
731 Mention that multiple signals are supported.
732
2edda2ff
PA
7332012-08-23 Pedro Alves <palves@redhat.com>
734
735 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
736 string.
737
8d735b87
YQ
7382012-08-23 Yao Qi <yao@codesourcery.com>
739
740 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
741 (tfind_1): Don't call registers_changed, set_traceframe_num,
742 and clear_traceframe_info.
743 Call set_current_traceframe.
744 (set_current_traceframe): call set_traceframe_num.
745
c5d9b215
SDJ
7462012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
747
748 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
749 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
750
037bbc8e
YPK
7512012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
752
753 Enable readline in Python in a GDB-specific way and block the
754 standard Python readline module to prevent conflicts with GDB.
755 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
756 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
757 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
758 * python/py-gdb-readline.c: New file.
759 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
760 prototype.
761 * python/python.c (_initialize_python): Call
762 gdbpy_initialize_gdb_readline.
763
406b1477
KS
7642012-08-22 Keith Seitz <keiths@redhat.com>
765
766 * defs.h: Include build-gnulib/config.h
767
6ca1b147
JM
7682012-08-22 Joseph Myers <joseph@codesourcery.com>
769
770 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
771 and blx pc.
772
8315665e
YPK
7732012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
774
775 Add a new "python-interactive" command that starts a standard
776 Python interactive prompt with "pi" as alias, and add "py" as
777 an alias to "python".
778 * NEWS: Mention the new commands.
8315665e
YPK
779 * python/python.c (eval_python_command): New function.
780 (python_interactive_command): For "python-interactive" with
781 arguments, call eval_python_command. For "python-interactive"
782 without arguments, call PyRun_InteractiveLoop.
783 (_initialize_python): Add "python-interactive" command with
784 "pi" as alias, and add "py" as an alias to "python".
785
522002f9
TT
7862012-08-22 Tom Tromey <tromey@redhat.com>
787
788 * defs.h (quit_flag): Don't declare.
789 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
790 (QUIT): Use new functions.
791 * event-top.c (command_handler): Use clear_quit_flag.
792 (handle_sigint): Use set_quit_flag.
793 (async_request_quit): Use check_quit_flag. Don't check
794 immediate_quit.
795 * exceptions.c (throw_exception): Use clear_quit_flag.
796 * main.c (captured_main): Use clear_quit_flag.
797 * python/python.c (clear_quit_flag, set_quit_flag)
798 (check_quit_flag): New functions.
799 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
800 clear_quit_flag.
801 * remote.c (remote_wait_as): Use check_quit_flag,
802 clear_quit_flag.
803 (remote_start_remote): Call QUIT.
804 * symfile.c (load_progress): Use check_quit_flag.
805 * top.c (command_loop): Use clear_quit_flag.
806 (command_line_input): Call QUIT.
807 * utils.c (quit_flag): Conditionally define.
808 (clear_quit_flag, check_quit_flag, set_quit_flag): New
809 functions.
810 (prompt_for_continue): Call QUIT. Use quit, not
811 async_request_quit.
812 * remote-mips.c (mips_expect_timeout): Call QUIT.
813 * monitor.c (monitor_expect): Call QUIT.
814
b583003e
TT
8152012-08-22 Tom Tromey <tromey@redhat.com>
816
817 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
818 (async_init_signals): Update.
819 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
820 (SIGWINCH_HANDLER_BODY): Remove.
821
e1507e95
TT
8222012-08-22 Tom Tromey <tromey@redhat.com>
823
824 * jit.c (jit_object_close_impl): Don't malloc the objfile
825 name.
826 * objfiles.c (allocate_objfile): Don't malloc the objfile
827 name.
828 (free_objfile): Don't free the objfile name.
829 * objfiles.h (struct objfile) <name>: Update comment.
830 * symfile.c (reread_symbols): Fix reference counting. Don't
831 malloc objfile name.
832
1c00ec6b
TT
8332012-08-22 Tom Tromey <tromey@redhat.com>
834
835 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
836 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
837 (symfile_bfd_open): Likewise.
838 (generic_load): Likewise.
839 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
840 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
841 gdb_bfd_open.
842 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
843 Use gdb_bfd_open.
844 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
845 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
846 (pmon_load_fast): Likewise.
847 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
848 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
849 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
850 (macho_check_dsym): Likewise.
851 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
852 (m32r_upload_command): Likewise.
853 * gdb_bfd.h (gdb_bfd_cache): Declare.
854 * gdb_bfd.c (struct gdb_bfd_data): New.
855 (gdb_bfd_cache): New global.
856 (struct gdb_bfd_cache_search): New.
857 (hash_bfd): New function.
858 (eq_bfd): Likewise.
859 (gdb_bfd_open): Likewise.
860 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
861 (gdb_bfd_unref): Remove closed BFD from cache. Update for
862 gdb_bfd_data.
863 * exec.c (exec_file_attach): Use gdb_bfd_open.
864 * dsrec.c (load_srec): Use gdb_bfd_open.
865
6532ff36
TT
8662012-08-22 Tom Tromey <tromey@redhat.com>
867
868 * dwarf2read.c (macro_start_file): Update.
869 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
870 (free_objfile_per_bfd_storage): Destroy macro_cache.
871 (allocate_objfile, free_objfile): Update.
872 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
873 New field.
874 (struct objfile) <macro_cache>: Remove.
875 * symfile.c (reread_symbols): Update.
876 * symmisc.c (print_symbol_bcache_statistics): Update.
877 (print_objfile_statistics): Update.
878
706e3705
TT
8792012-08-22 Tom Tromey <tromey@redhat.com>
880
881 * elfread.c (elf_symtab_read): Update.
882 * objfiles.c (objfiles_bfd_data): New global.
883 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
884 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
885 (allocate_objfile, free_objfile): Update.
886 (_initialize_objfiles): Initialize objfiles_bfd_data.
887 * objfiles.h (struct objfile_per_bfd_storage): New.
888 (struct objfile) <per_bfd>: New field.
889 <filename_cache>: Remove.
890 (set_objfile_per_bfd): Declare.
891 * symfile.c (reread_symbols): Update. Call
892 set_objfile_per_bfd.
893 (allocate_symtab): Update.
894 * symmisc.c (print_symbol_bcache_statistics): Update.
895 (print_objfile_statistics): Print the size of the BFD obstack.
896
e992eda4
TT
8972012-08-22 Tom Tromey <tromey@redhat.com>
898
899 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
900 * gdb_bfd.c: Use DEFINE_REGISTRY.
901 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
902 (gdb_bfd_ref): Call bfd_alloc_data.
903 (gdb_bfd_unref): Call bfd_free_data.
904
6b81941e
TT
9052012-08-22 Tom Tromey <tromey@redhat.com>
906
907 * registry.h (struct registry_fields): New.
908 (REGISTRY_FIELDS): Redefine.
909 (REGISTRY_ACCESS_FIELD): New macro.
910 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
911 functions.
912
8e260fc0
TT
9132012-08-22 Tom Tromey <tromey@redhat.com>
914
915 * auto-load.c (_initialize_auto_load): Update.
916 * solib-svr4.c (_initialize_svr4_solib): Update
917 * solib-dsbt.c (_initialize_dsbt_solib): Update.
918 * solib-darwin.c (_initialize_darwin_solib): Update.
919 * registry.h: New file.
920 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
921 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
922 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
923 (register_program_space_data_with_cleanup)
924 (register_program_space_data, program_space_alloc_data)
925 (clear_program_space_data, set_program_space_data)
926 (program_space_data): Don't declare.
927 * progspace.c: Use DEFINE_REGISTRY.
928 (struct program_space_data, struct
929 program_space_data_registration, struct
930 program_space_data_registry, program_space_data_registry)
931 (register_program_space_data_with_cleanup)
932 (register_program_space_data, program_space_alloc_data)
933 (program_space_free_data, clear_program_space_data)
934 (set_program_space_data, program_space_data): Remove.
935 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
936 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
937 (register_objfile_data_with_cleanup, register_objfile_data)
938 (clear_objfile_data, set_objfile_data, objfile_data): Don't
939 declare.
940 * objfiles.c: Use DEFINE_REGISTRY.
941 (struct objfile_data, struct objfile_data_registration, struct
942 objfile_data_registry, objfile_data_registry)
943 (register_objfile_data_with_cleanup, register_objfile_data)
944 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
945 (set_objfile_data, objfile_data): Remove.
946 (_initialize_objfiles): Update.
947 * jit.c (_initialize_jit): Update.
948 * inflow.c (_initialize_inflow): Update.
949 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
950 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
951 (register_inferior_data_with_cleanup, register_inferior_data)
952 (clear_inferior_data, set_inferior_data, inferior_data): Don't
953 declare.
954 * inferior.c: Use DEFINE_REGISTRY.
955 (struct inferior_data, struct inferior_data_registration, struct
956 inferior_data_registry, inferior_data_registry)
957 (register_inferior_data_with_cleanup, register_inferior_data)
958 (inferior_alloc_data, inferior_free_data clear_inferior_data)
959 (set_inferior_data, inferior_data): Remove.
960 * auxv.c (_initialize_auxv): Update.
961 * ada-lang.c (_initialize_ada_language): Update.
962 * breakpoint.c (_initialize_breakpoint): Update.
963 * i386-nat.c (i386_use_watchpoints): Update.
964
ed9eebaf
TT
9652012-08-22 Tom Tromey <tromey@redhat.com>
966
967 * exec.c (exec_close, exec_file_attach): Update.
968 (add_to_section_table): Initialize 'key' field.
969 (add_target_sections, remove_target_sections): Add 'key' argument.
970 * exec.h (add_target_sections, remove_target_sections): Add
971 'key' argument.
972 * solib.c (solib_map_sections, update_solib_list, clear_solib)
973 (reload_shared_libraries_1): Update.
974 * target.h (struct target_section) <key>: New field.
975
2f2e97fa
TT
9762012-08-22 Tom Tromey <tromey@redhat.com>
977
978 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
979
b3dbbd6f
PM
9802012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
981
982 * symfile.c (allocate_symtab): Use host_address_to_string
983 function instead of cast of pointer to long which is not
984 compatible with x86_64-w64-mingw32 build.
985
f94363d7
AP
9862012-08-19 Andrew Pinski <apinski@cavium.com>
987
988 * mips-tdep.c (is_octeon): New function.
989 (is_octeon_bbit_op): New function.
990 (mips32_next_pc): Handle Octeon's bbit instructions.
991 (mips32_instruction_has_delay_slot): Likewise.
992
78a59c2f
AP
9932012-08-19 Andrew Pinski <apinski@cavium.com>
994
995 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
996 before the function.
997
4f5bcb50
AP
9982012-08-19 Andrew Pinski <apinski@cavium.com>
999
1000 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1001
e5afdbd7
KS
10022012-08-19 Keith Seitz <keiths@redhat.com>
1003
1004 PR c++/14365
1005 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1006 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1007
13c9750e
EZ
10082012-08-18 Eli Zaretskii <eliz@gnu.org>
1009
1010 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1011 The typo broke "make TAGS".
1012
db761810 10132012-08-17 Joel Brobecker <brobecker@adacore.com>
1014
1015 GDB 7.5 released.
1016
a451cb65
KS
10172012-08-17 Keith Seitz <keiths@redhat.com>
1018
1019 PR c++/13356
1020 * gdbtypes.c (strict_type_checking): New variable.
1021 (show_strict_type_checking): New function.
1022 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1023 if strict type checking is disabled.
1024 (_initialize_gdbtypes): Add "check type" subcommand.
1025 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1026
10272012-08-17 Keith Seitz <keiths@redhat.com>
1028
1029 * language.h (type_mode): Remove.
1030 (type_check): Remove.
1031 (struct language_defn): Remove la_type_check.
1032 (STRICT_TYPE): Remove unused macro.
1033 (type_error): Remove.
1034 * language.c (set_type_range_case): Renamed to ...
1035 (set_range_case): ... this. Update all callers.
1036 Remove type_mode/type_check.
1037 (type_mode): Remove.
1038 (type_check): Remove.
1039 (show_type_command): Remove.
1040 (set_type_command): Remove.
1041 (language_info): Remove type checking output.
1042 (type_error): Remove unused function.
1043 (range_error): Update comment.
1044 (unknown_language_defn): Remove la_type_check.
1045 (auto_language_defn): Likewise.
1046 (local_language_defn): Likewise.
1047 (_initialize_language): Remove "check type" subcommand.
1048 * ada-lang.c (ada_language_defn): Remove la_type_check.
1049 * c-lang.c (c_language_defn): Likewise.
1050 (cplus_language_defn): Likewise.
1051 (asm_language_defn): Likewise.
1052 (minimal_language_defn): Likewise.
1053 * d-lang.c (d_language_defn): Likewise.
1054 * f-lang.c (f_language_defn): Likewise.
1055 * go-lang.c (go_language_defn): Likewise.
1056 * jv-lang.c (java_language_defn): Likewise.
1057 * m2-lang.c (m2_language_defn): Likewise.
1058 * objc-lang.c (objc_language_defn): Likewise.
1059 * opencl-lang.c (opencl_language_defn): Likewise.
1060 * p-lang.c (pascal_language_defn): Likewise.
1061
dbf6a605
MF
10622012-08-16 Mike Frysinger <vapier@gentoo.org>
1063
1064 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1065
973e3cf7
JB
10662012-08-16 Joel Brobecker <brobecker@adacore.com>
1067
1068 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1069 New function.
1070 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1071 using the regache. Use ia64_hpux_get_register_from_save_state_t
1072 to access the bsp and bspstore registers if not.
1073
d80ee84f
JB
10742012-08-16 Joel Brobecker <brobecker@adacore.com>
1075
1076 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1077 * breakpoint.c (detach_breakpoints): Change pid parameter into
1078 a ptid. Adjust code accordingly.
1079 * infrun.c (handle_inferior_event): Delete variable child_pid.
1080 Update call to detach_breakpoints to pass the child ptid for
1081 fork events.
1082 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1083 assert that inferior_ptid's lwp is zero.
1084 (linux_handle_extended_wait): Update call to detach_breakpoints.
1085 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1086 detach_breakpoints.
1087
2dcc6086
JB
10882012-08-16 Joel Brobecker <brobecker@adacore.com>
1089
1090 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1091 parent, only call detach_breakpoints if tts.tts_event ==
1092 TTEVT_VFORK.
1093
0c92d8c1
JB
10942012-08-16 Joel Brobecker <brobecker@adacore.com>
1095
1096 * dwarf2-frame.c (dwarf2_frame_cache): Use
1097 get_frame_address_in_block instead of get_frame_pc as
1098 the bound for executing the frame's FDE.
1099
6b1755ce
YQ
11002012-08-16 Yao Qi <yao@codesourcery.com>
1101
1102 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1103 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1104 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1105 (c_type_print_varspec_suffix): Likewise.
1106 * eval.c (evaluate_subexp_standard): Likewise.
1107 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1108 (f_type_print_varspec_suffix): Likewise.
1109 * gdbtypes.c (is_scalar_type): Likewise.
1110 (recursive_dump_type): Likewise.
1111 * infcall.c (value_arg_coerce): Likewise.
1112 * m2-valprint.c (m2_val_print): Likewise.
1113 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1114 (pascal_type_print_varspec_suffix): Likewise.
1115 (pascal_type_print_base): Likewise.
1116 * p-valprint.c (pascal_val_print): Likewise.
1117 (pascal_val_print): Likewise.
1118 * valops.c (value_slice): Likewise.
1119 * valprint.c (scalar_type_p): Likewise.
1120 * valarith.c (value_bitstring_subscript): Remove.
1121 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1122 Remove comment on TYPE_CODE_BITSTRING.
1123
1124 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1125 TYPE_CODE_BITSTRING.
1126
1127 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1128 slot 0.
1129
8acc4065
YQ
11302012-08-16 Yao Qi <yao@codesourcery.com>
1131
1132 * tracepoint.c (trace_find_none_command): Remove.
1133 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1134
8128fd8e
YQ
11352012-08-16 Yao Qi <yao@codesourcery.com>
1136
1137 * remote.c (handle_notification): Remove parameter 'length'.
1138 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1139
2873700e
KS
11402012-08-15 Keith Seitz <keiths@redhat.com>
1141
1142 * gdbtypes.c (opaque_type_resolution): Make static.
1143 Add missing comment.
1144 (overload_debug): Add missing comment.
1145 (show_opaque_type_resolution): Likewise.
1146 (show_overload_debug): Likewise.
1147 (print_bit_vector): Remove unnecessary forward declaration.
1148 (print_arg_types): Likewise.
1149 (dump_fn_fieldlists): Likewise.
1150 (print_cplus_stuff): Likewise.
1151
b82d08cd
TT
11522012-08-15 Tom Tromey <tromey@redhat.com>
1153
1154 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1155 (gdb_bfd_ref): Initialize new field.
1156 (gdb_bfd_unref): Unref the archive BFD.
1157 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1158 parent archive.
1159
db6573d6
TT
11602012-08-15 Tom Tromey <tromey@redhat.com>
1161
1162 PR python/14387:
1163 * python/py-bpevent.c (create_breakpoint_event_object): Update
1164 comment.
1165 * python/py-event.c (evpy_add_attribute): Update comment.
1166 * python/py-exitedevent.c (create_exited_event_object): Fix
1167 reference counting and error handling.
1168 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1169 Fix reference counting.
1170 * python/py-signalevent.c (create_signal_event_object): Fix
1171 reference counting and error handling.
1172 * python/py-stopevent.c (emit_stop_event): Fix reference
1173 counting.
1174 * python/py-threadevent.c (get_event_thread): Return a
1175 borrowed reference.
1176 * python/py-type.c (convert_field): Fix reference counting.
1177
a036ba48
TT
11782012-08-15 Tom Tromey <tromey@redhat.com>
1179
1180 * dwarf2read.c (dwarf_decode_macro_bytes)
1181 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1182 as hash key.
1183
486c7739
MF
11842012-08-14 Mike Frysinger <vapier@gentoo.org>
1185
1186 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1187 stepi, nexti, finish, next, step, jump, and continue commands.
1188 * infrun.c (_initialize_infrun): Update help text for the handle
1189 command.
1190
4cf93a03
DE
11912012-08-14 Doug Evans <dje@google.com>
1192
70b099cf
DE
1193 * gdbtypes.c (struct extra): Delete, unused.
1194
5212577a
DE
1195 * gdbtypes.c: Whitespace cleanup.
1196 (address_space_name_to_int): Remove "extern" from definition.
1197 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1198
4cf93a03
DE
1199 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1200 TYPE_POINTER_TYPE (type).
1201
3756ef7e
GB
12022012-08-14 Gary Benson <gbenson@redhat.com>
1203
1204 * solib-svr4.c (svr4_free_library_list): Use free_so.
1205
40d72643
MF
12062012-08-13 Mike Frysinger <vapier@gentoo.org>
1207
1208 * .gitignore: Add go-exp.c.
1209
f47f77df
DE
12102012-08-13 Doug Evans <dje@google.com>
1211
1212 * value.c (show_convenience): Tweak comment.
1213 (_initialize_values): Mention convenience functions in the help text
1214 for "show convenience".
1215
7507c54a
YQ
12162012-08-13 Yao Qi <yao@codesourcery.com>
1217
1218 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1219 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1220 TERNOP_SLICE_COUNT.
1221 * eval.c (evaluate_subexp_standard): Likewise.
1222 * expprint.c (print_subexp_standard): Likewise.
1223 (dump_subexp_body_standard): Likewise.
1224 * parse.c (operator_length_standard): Likewise.
1225
5cad9736
YQ
12262012-08-13 Yao Qi <yao@codesourcery.com>
1227
1228 * std-operator.def: Remove OP_BITSTRING.
1229 * breakpoint.c (watchpoint_exp_is_const): Update.
1230 * eval.c (evaluate_subexp_standard): Remove handling to
1231 OP_BITSTRING.
1232 * expprint.c (print_subexp_standard): Likewise.
1233 (dump_subexp_body_standard): Likewise.
1234 * parse.c (operator_length_standard): Likewise.
1235 * valops.c (value_bitstring): Remove.
1236 * value.h: Remove the declaration of 'value_bitstring'.
1237
bad7670a
SDJ
12382012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1239
1240 * linespec.c (find_methods): Remove unused variables `i1' and
1241 `name_len'.
1242 (decode_line_full): Likewise for `arg_start'.
1243
d9dce7fa
SDJ
12442012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1245
1246 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1247 (zlib_decompress_section): Likewise for `section_data'.
1248 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1249
a72c3253
DE
12502012-08-10 Doug Evans <dje@google.com>
1251
1252 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1253 * NEWS: Document them.
1254 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1255 function/strfns.py.
1256 * python/py-type.c (typy_array_1): New function.
1257 (typy_array): Call it.
1258 (typy_vector): New function.
1259 (type_object_methods): Add "vector".
1260 * python/lib/gdb/function/__init__.py: New file.
1261 * python/lib/gdb/function/strfns.py: New file.
1262
200bc880
SP
12632012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1264
1265 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1266 for TYPE_FIELD_BITPOS.
1267 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1268
de0bea00
MF
12692012-08-10 Mike Frysinger <vapier@gentoo.org>
1270
1271 PR cli/10436:
1272 * common/vec.h (VEC_merge): Define.
1273 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1274 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1275 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1276 * completer.c: Include gdb_signals.h.
1277 (signal_completer): Define.
1278 * completer.h (signal_completer): Add prototype.
1279 * infcmd.c (_initialize_infcmd): Assign the command
1280 completer for "signal" to handle_completer.
1281 * infrun.c: Include completer.h.
1282 (handle_completer): Define.
1283 (_initialize_infrun): Declare a new local variable c. Store the
1284 result of add_com("handle") to it. Assign the command
1285 completer for "handle" to handle_completer.
1286
5b9afe8a
YQ
12872012-08-09 Yao Qi <yao@codesourcery.com>
1288
1289 * cli/cli-decode.c (set_cmd_prefix): New.
1290 (lookup_cmd_for_prefixlist): New.
1291 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1292 of each cmd_list_element in *prefixlist.
1293 (add_setshow_cmd_full): set_cmd_prefix.
1294 (add_alias_cmd): Likewise.
1295 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1296 Declare 'auto_boolean_enums'.
1297 * cli/cli-setshow.c: Include "observer.h".
1298 (notify_command_param_changed_p): New.
1299 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1300 Remove 'static'.
1301 (do_setshow_command): Split it to ...
1302 (do_set_command, do_show_command): ... them. New.
1303 (do_set_command): Call observer_notify_command_param_changed if
1304 notify_command_param_changed_p returns true.
1305 (cmd_show_list): Caller update.
1306 * auto-load.c (set_auto_load_cmd): Likewise.
1307 * remote.c (show_remote_cmd): Likewise.
1308 * cli/cli-setshow.h: Update declarations.
1309 * top.c (execute_command): Call do_set_command and do_show_command.
1310
1311 * NEWS: Mention new MI notification.
1312 * mi/mi-interp.c: Declare mi_command_param_changed.
1313 (mi_interpreter_init): Attach mi_command_param_changed to
1314 observer command_param_changed.
1315 (mi_command_param_changed): New.
1316 Remove mi_suppress_breakpoint_notifications.
1317 Define global variable mi_suppress_notification.
1318 (mi_breakpoint_created): Update.
1319 (mi_breakpoint_deleted): Likewise.
1320 (mi_breakpoint_modified): Likewise.
1321 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1322 'gdb-set' and set mi_suppress_notification.
1323 * mi/mi-main.h: (mi_suppress_notification): New struct.
1324
1969df89
JK
13252012-08-09 Andreas Tobler <andreast@fgznet.ch>
1326 Jan Kratochvil <jan.kratochvil@redhat.com>
1327
1328 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1329
8bfd80db
YQ
13302012-08-09 Yao Qi <yao@codesourcery.com>
1331
1332 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1333 (skiplist): Move it to skip.c.
1334 (init_cmd_lists): Remove code setting enablebreaklist and
1335 skiplist to NULL.
1336 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1337 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1338 skiplist.
1339 * gdbcmd.h: Likewise.
1340 * skip.c (_initialize_step_skip): Move 'skiplist' from
1341 cli/cli-cmds.c.
1342
28578e6b
YQ
13432012-08-09 Yao Qi <yao@codesourcery.com>
1344
1345 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1346 * gnu-nat.c, symfile.c: Likewise.
1347
260c0b2a
DE
13482012-08-08 Aaron Gamble <agamble@google.com>
1349
1350 * utils.c (prompt_for_continue_wait_time): New static global.
1351 (make_command_stats_cleanup): Initialize it.
1352 (report_command_stats): Subtract time waiting for user.
1353 (prompt_for_continue): Track time waiting for user.
1354 (defaulted_query): Track time waiting for user.
1355
4f485ebc
DE
13562012-08-08 Doug Evans <dje@google.com>
1357
1358 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1359 UNOP_MEMVAL_TYPE.
1360 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1361 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1362 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1363 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1364 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1365 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1366 elt.
1367 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1368 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1369 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1370 (dump_prefix_expression): Handle OP_TYPE.
1371
2acf2b39
KS
13722012-08-08 Keith Seitz <keiths@redhat.com>
1373
1374 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1375 addr_start.
1376
e6712ff1
DE
13772012-08-08 Doug Evans <dje@google.com>
1378
1379 * linux-thread-db.c: #include "gdb_vecs.h".
1380 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1381 updated.
1382 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1383 (thread_db_load_search): Use a vector to iterate over path elements.
1384 Handle text appearing after "$pdir".
1385
1386 * gdb_string.h: Moved to ...
1387 * common/gdb_string.h: ... here.
1388 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1389 gdb_string.h and gdb_assert.h.
1390
ab854e54
YQ
13912012-08-08 Yao Qi <yao@codesourcery.com>
1392
1393 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1394 (tic6x_value_to_register): Likewise.
1395 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1396 and set_gdbarch_value_to_register.
1397
4f69f4c2
JK
13982012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1399 Jean-Marc Saffroy <saffroy@gmail.com>
1400
1401 PR 11804
1402 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1403 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1404 * gcore.c (gcore_create_callback): New function comment. Add modified
1405 parameter. Only write modified regions. Set SEC_READONLY exactly
1406 according to MODIFIED.
1407 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1408 the passed modified value to FUNC.
1409 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1410 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1411 first. New variables modified and has_anonymous. Parse the lines of
1412 smaps file. Add the passed MODIFIED value to FUNC.
1413 * procfs.c (find_memory_regions_callback): Add the passed modified
1414 value.
1415
78ac5f83
TT
14162012-08-06 Tom Tromey <tromey@redhat.com>
1417
1418 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1419 (dwarf2_frame_cache): Use it.
1420 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1421 cache initialization constraint.
1422
2c12abee
TT
14232012-08-06 Tom Tromey <tromey@redhat.com>
1424
1425 PR python/14386:
1426 * varobj.c (update_dynamic_varobj_children): Don't call
1427 PyIter_Check.
1428
4979d7f0
TT
14292012-08-06 Tom Tromey <tromey@redhat.com>
1430
1431 PR cli/14392:
1432 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1433
f3c8a52a
JK
14342012-08-06 Nathaniel Flath <flat0103@gmail.com>
1435
1436 * NEWS: New entry for 'cd' default parameters.
1437 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1438
5a1cf4d6
TT
14392012-08-03 Tom Tromey <tromey@redhat.com>
1440
1441 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1442 return.
1443
7c3270ae
UW
14442012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1445
1446 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1447 to attempting lseek/write.
1448 (inf_child_fileio_pread): Likewise for pread.
1449
ccce17b0
YQ
14502012-08-02 Yao Qi <yao@codesourcery.com>
1451
1452 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1453 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1454 add_setshow_zinteger_cmd.
1455 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1456 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1457 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1458 instead of add_setshow_zinteger_cmd.
1459 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1460 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1461 instead of add_setshow_zinteger_cmd.
1462 * frame.c (frame_debug): Add 'unsigned'.
1463 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1464 add_setshow_zinteger_cmd.
1465 * frame.h: Update the declaration of 'frame_debug'.
1466 * gdbtypes.c (overload_debug): Add 'unsigned'.
1467 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1468 add_setshow_zinteger_cmd.
1469 * inferior.h: Update declaration of 'debug_infrun'.
1470 * infrun.c (debug_infrun): Add 'unsigned'.
1471 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1472 add_setshow_zinteger_cmd.
1473 * jit.c (jit_debug): Add 'unsigned'.
1474 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1475 add_setshow_zinteger_cmd.
1476 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1477 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1478 instead of add_setshow_zinteger_cmd.
1479 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1480 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1481 add_setshow_zinteger_cmd.
1482 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1483 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1484 instead of add_setshow_zinteger_cmd.
1485 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1486 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1487 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1488 intead of add_setshow_zinteger_cmd.
1489 * mips-tdep.c (mips_debug): Add 'unsigned'.
1490 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1491 instead of add_setshow_zinteger_cmd.
1492 * monitor.c (monitor_debug): Add 'unsigned'.
1493 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1494 add_setshow_zinteger_cmd.
1495 * observer.c (observer_debug): Add 'unsigned'.
1496 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1497 add_setshow_zinteger_cmd.
1498 * parse.c (expressiondebug): Add 'unsigned'.
1499 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1500 add_setshow_zinteger_cmd.
1501 * record.c (record_debug): Add 'unsigned'.
1502 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1503 add_setshow_zinteger_cmd.
1504 * record.h: Update the declaration of 'record_debug'.
1505 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1506 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1507 add_setshow_zinteger_cmd.
1508 * serial.c (global_serial_debug_p): Add 'unsigned'.
1509 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1510 add_setshow_zinteger_cmd.
1511 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1512 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1513 add_setshow_zinteger_cmd.
1514 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1515 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1516 add_setshow_zinteger_cmd.
1517 * target.c (targetdebug): Add 'unsigned'.
1518 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1519 add_setshow_zinteger_cmd.
1520 * valops.c (overload_debug): Add 'unsigned'.
1521 * varobj.c (varobjdebug): Add 'unsigned'.
1522 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1523 add_setshow_zinteger_cmd.
1524 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1525 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1526 instead of add_setshow_zinteger_cmd.
1527
1528 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1529 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1530 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1531 instead of add_setshow_zinteger_cmd.
1532 * gdbarch.c, gdbarch.h: Re-generated.
1533
95b07c96
YQ
15342012-08-02 Yao Qi <yao@codesourcery.com>
1535
1536 * nto-tdep.c: Don't include cli/cli-decode.h and
1537 cli/cli-cmds.h.
1538 (_initialize_nto_tdep): Remove.
1539 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1540 Remove field.
1541 Remove macro nto_internal_debugging.
1542
57295b0b
RH
15432012-08-01 Richard Henderson <rth@redhat.com>
1544
1545 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1546 (mep-*-*) [gdb_target_obs]: Likewise.
1547
f782ad9b
AS
15482012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1549
1550 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1551 linux_get_siginfo_type.
1552
a14dd77e
JK
15532012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1554
1555 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1556 AT_ENTRY_POINT.
1557 (call_function_by_hand) <ON_STACK>: Call write_memory with
1558 gdbarch_breakpoint_from_pc, if possible.
1559 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1560 here.
1561
1467929f
YQ
15622012-07-31 Yao Qi <yao@codesourcery.com>
1563
1564 * tracepoint.c: Add 'static' for some variables.
1565
70976b65
YQ
15662012-07-31 Yao Qi <yao@codesourcery.com>
1567
1568 * go32-nat.c: Declare _initialize_go32_nat.
1569 * ser-go32.c: Declare _initialize_ser_dos.
1570 * top.c (do_chdir_cleanup): Add 'static'.
1571
eff9c3e6
KS
15722012-07-30 Keith Seitz <keiths@redhat.com>
1573
1574 * linespec.c (linespec_lex_number): A number followed
1575 by quotes is a valid number, too.
1576
728400d7
TT
15772012-07-30 Tom Tromey <tromey@redhat.com>
1578
1579 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1580
fcf303ab
UW
15812012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1582
1583 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1584 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1585
4e969b4f
AB
15862012-07-30 Andrew Burgess <aburgess@broadcom.com>
1587
1588 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1589 invalid or reevaluated to prevent prevent references to possibly
1590 delete'd type objects being left in the varobj.
1591
c4bfde41
JK
15922012-07-27 Tom Tromey <tromey@redhat.com>
1593 Jan Kratochvil <jan.kratochvil@redhat.com>
1594
1595 * copying.awk: Print buffer-read-only and vi ro markers.
1596 * copying.c: Rebuild.
1597 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1598 * gdbarch.c, gdbarch.h: Rebuild.
1599 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1600 buffer-read-only and vi ro markers.
1601 * features/arm-with-iwmmxt.c: Rebuild.
1602 * features/arm-with-m-fpa-layout.c: Rebuild.
1603 * features/arm-with-m-vfp-d16.c: Rebuild.
1604 * features/arm-with-m.c: Rebuild.
1605 * features/arm-with-neon.c: Rebuild.
1606 * features/arm-with-vfpv2.c: Rebuild.
1607 * features/arm-with-vfpv3.c: Rebuild.
1608 * features/i386/amd64-avx-linux.c: Rebuild.
1609 * features/i386/amd64-avx.c: Rebuild.
1610 * features/i386/amd64-linux.c: Rebuild.
1611 * features/i386/amd64.c: Rebuild.
1612 * features/i386/i386-avx-linux.c: Rebuild.
1613 * features/i386/i386-avx.c: Rebuild.
1614 * features/i386/i386-linux.c: Rebuild.
1615 * features/i386/i386-mmx-linux.c: Rebuild.
1616 * features/i386/i386-mmx.c: Rebuild.
1617 * features/i386/i386.c: Rebuild.
1618 * features/i386/x32-avx-linux.c: Rebuild.
1619 * features/i386/x32-avx.c: Rebuild.
1620 * features/i386/x32-linux.c: Rebuild.
1621 * features/i386/x32.c: Rebuild.
1622 * features/mips-dsp-linux.c: Rebuild.
1623 * features/mips-linux.c: Rebuild.
1624 * features/mips64-dsp-linux.c: Rebuild.
1625 * features/mips64-linux.c: Rebuild.
1626 * features/rs6000/powerpc-32.c: Rebuild.
1627 * features/rs6000/powerpc-32l.c: Rebuild.
1628 * features/rs6000/powerpc-403.c: Rebuild.
1629 * features/rs6000/powerpc-403gc.c: Rebuild.
1630 * features/rs6000/powerpc-405.c: Rebuild.
1631 * features/rs6000/powerpc-505.c: Rebuild.
1632 * features/rs6000/powerpc-601.c: Rebuild.
1633 * features/rs6000/powerpc-602.c: Rebuild.
1634 * features/rs6000/powerpc-603.c: Rebuild.
1635 * features/rs6000/powerpc-604.c: Rebuild.
1636 * features/rs6000/powerpc-64.c: Rebuild.
1637 * features/rs6000/powerpc-64l.c: Rebuild.
1638 * features/rs6000/powerpc-7400.c: Rebuild.
1639 * features/rs6000/powerpc-750.c: Rebuild.
1640 * features/rs6000/powerpc-860.c: Rebuild.
1641 * features/rs6000/powerpc-altivec32.c: Rebuild.
1642 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1643 * features/rs6000/powerpc-altivec64.c: Rebuild.
1644 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1645 * features/rs6000/powerpc-cell32l.c: Rebuild.
1646 * features/rs6000/powerpc-cell64l.c: Rebuild.
1647 * features/rs6000/powerpc-e500.c: Rebuild.
1648 * features/rs6000/powerpc-e500l.c: Rebuild.
1649 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1650 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1651 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1652 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1653 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1654 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1655 * features/rs6000/powerpc-vsx32.c: Rebuild.
1656 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1657 * features/rs6000/powerpc-vsx64.c: Rebuild.
1658 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1659 * features/rs6000/rs6000.c: Rebuild.
1660 * features/s390-linux32.c: Rebuild.
1661 * features/s390-linux32v1.c: Rebuild.
1662 * features/s390-linux32v2.c: Rebuild.
1663 * features/s390-linux64.c: Rebuild.
1664 * features/s390-linux64v1.c: Rebuild.
1665 * features/s390-linux64v2.c: Rebuild.
1666 * features/s390x-linux64.c: Rebuild.
1667 * features/s390x-linux64v1.c: Rebuild.
1668 * features/s390x-linux64v2.c: Rebuild.
1669 * features/tic6x-c62x-linux.c: Rebuild.
1670 * features/tic6x-c62x.c: Rebuild.
1671 * features/tic6x-c64x-linux.c: Rebuild.
1672 * features/tic6x-c64x.c: Rebuild.
1673 * features/tic6x-c64xp-linux.c: Rebuild.
1674 * features/tic6x-c64xp.c: Rebuild.
1675
826f0041
TT
16762012-07-27 Tom Tromey <tromey@redhat.com>
1677
1678 * c-exp.y (classify_name): Avoid assignment in condition.
1679
84552b16
PA
16802012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1681
1682 * amd64-windows-tdep.c: Include "frame.h".
1683 (amd64_windows_skip_trampoline_code): New function.
1684 (amd64_windows_init_abi): Add trampoline registration.
1685
a8a64aa8
YQ
16862012-07-27 Yao Qi <yao@codesourcery.com>
1687
1688 * tracepoint.c (cur_traceframe_number): Remove.
1689 (set_tfile_traceframe): Remove.
1690 (tfile_trace_find, tfile_fetch_registers): Update callers.
1691 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1692 (tfile_open, tfile_trace_find): Likewise.
1693
d99067cb
YQ
16942012-07-27 Yao Qi <yao@codesourcery.com>
1695
1696 * thread.c (switch_to_thread): Don't call registers_changed.
1697
f2e8016f
TT
16982012-07-26 Tom Tromey <tromey@redhat.com>
1699
f782ad9b
AS
1700 * Makefile.in (SFILES): Remove objc-exp.y.
1701 (YYFILES): Remove objc-exp.c.
1702 (YYOBJ): Remove objc-exp.o.
1703 (local-maintainer-clean): Don't mention objc-exp.c.
1704 * c-exp.y: Include objc-lang.h.
1705 (%union) <class>: New field.
1706 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1707 (exp): Clone subscript production for OBJC_LBRAC. Add various
1708 Objective C productions.
1709 (msglist, msgarglist, msgarg): New productions.
1710 (array_mod, func_mod, operator): Clone productions for
1711 OBJC_LBRAC.
1712 (parse_string_or_char): Handle '@' strings.
1713 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1714 (classify_name): Check la_name_of_this. Recognize ObjC class
1715 names.
1716 * objc-exp.y: Remove.
1717 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1718 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1719
f66713d2
JK
17202012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1721
1722 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1723
7cfe01b4
JK
17242012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1725
1726 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1727 and decrement.
1728
5ba19b4c
TT
17292012-07-26 Tom Tromey <tromey@redhat.com>
1730
1731 * copying.c: Rebuild.
1732 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1733 'no_class'.
1734
27618ce4
TT
17352012-07-26 Tom Tromey <tromey@redhat.com>
1736
1737 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1738 immediate_quit.
1739 (print_objfile_statistics): Likewise.
1740 (maintenance_print_symbols): Likewise.
1741 (maintenance_print_msymbols): Likewise.
1742 (maintenance_print_objfiles): Likewise.
1743 * psymtab.c (print_partial_symbols): Call QUIT.
1744 (maintenance_print_psymbols): Likewise. Don't modify
1745 immediate_quit.
1746 * copying.c (show_copying_command): Don't modify immediate_quit.
1747 (show_warranty_command): Likewise.
1748 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1749
dd3818c8
KS
17502012-07-26 Keith Seitz <keiths@redhat.com>
1751
1752 * linespec.c (linespec_lexer_lex_number): The input
1753 is also a valid number if the next character is a comma
1754 or colon.
1755
23a80689
JB
17562012-07-26 Joel Brobecker <brobecker@adacore.com>
1757
1758 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1759 configure options.
1760
29f77997
TG
17612012-07-26 Tristan Gingold <gingold@adacore.com>
1762
1763 * machoread.c: Include gdb_bfd.h.
1764
a55c1f32
TG
17652012-07-26 Tristan Gingold <gingold@adacore.com>
1766
1767 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1768 offset.
1769
56eb65bd
SP
17702012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1771
1772 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1773 SIZE to size_t.
1774 (dwarf2_evaluate_loc_desc): Likewise.
1775 (dwarf2_loc_desc_needs_frame): Likewise.
1776 (locexpr_describe_location_1): Likewise.
1777 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1778 size_t.
1779 (struct dwarf2_loclist_baton): Likewise.
1780 * dwarf2read.c (struct dwarf_block): Likewise.
1781 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1782 (decode_locdesc): Expand SIZE and I to size_t.
1783
aec8845c
JK
17842012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1785
1786 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1787
33d7655b
JB
17882012-07-25 Joel Brobecker <brobecker@adacore.com>
1789
1790 * doublest.c (convert_doublest_to_floatformat): If the exponent
1791 is too small, treat the value as zero. If the exponent is too
1792 large, treat the value as infinity.
1793
a22d44ff
JB
17942012-07-25 Joel Brobecker <brobecker@adacore.com>
1795
1796 * configure.ac: Add --enable-lmcheck configure option.
1797 * configure: Regenerate.
1798
d6b28940
TT
17992012-07-25 Tom Tromey <tromey@redhat.com>
1800
f782ad9b
AS
1801 * NEWS: Mention maint info bfds.
1802 * gdb_bfd.c (all_bfds): New global.
1803 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1804 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1805 New functions.
d6b28940 1806
6e73ba20
RC
18072012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1808
1809 * configure.tgt: Add v850*-*-rtems*.
1810
d560eebd
TT
18112012-07-25 Tom Tromey <tromey@redhat.com>
1812
1813 * macrotab.c (macro_bcache_str): Remove cast.
1814
d7cbec71
HZ
18152012-07-25 Hui Zhu <hui_zhu@mentor.com>
1816
1817 * linespec.c (linespec_lexer_lex_number): Update comments,
1818 change the return and add check to make sure the input is
1819 the decimal numbers.
1820 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1821 false, call linespec_lexer_lex_string.
1822
882f447f
TT
18232012-07-24 Tom Tromey <tromey@redhat.com>
1824
1825 * symfile.c (symbol_file_add): Don't open BFD twice.
1826
53ab4066 18272012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1828
1829 * breakpoint.c (create_breakpoint): Store condition for pending
1830 breakpoints.
1831
108fb0f7
AS
18322012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1833
1834 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1835 (m68k_return_value): Handle complex types like structures.
1836 (m68k_svr4_return_value): Likewise.
1837
1634dcbe
JK
18382012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1839
1840 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1841 parameters to bfd_get_section_name.
1842
e2d12c21
YQ
18432012-07-24 Yao Qi <yao@codesourcery.com>
1844
1845 * cli/cli-setshow.c: Handle case 'var_uinteger'
1846 and 'var_zuninteger' together. Handle case 'var_integer' and
1847 'var_zinteger' together.
1848
64b92e45
KS
18492012-07-23 Keith Seitz <keiths@redhat.com>
1850
1851 * linespec.c (convert_linespec_to_sal): Don't add
1852 any symbols to the result vector if symbol_to_sal
1853 returns zero.
1854
0f5f4ffe
KS
18552012-07-23 Keith Seitz <keiths@redhat.com>
1856
1857 * linespec.c (decode_objc): Record the function name
1858 in the linespec.
1859
da1cc82f
TT
18602012-07-23 Tom Tromey <tromey@redhat.com>
1861
1862 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1863 counting.
1864 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1865 (map_vmap): Acquire a reference to the BFD.
1866
6c18f3e0
SP
18672012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1868
1869 * p-valprint.c (pascal_object_print_value): Replace potentially
1870 unsafe alloca with xmalloc/xfree.
1871 * valops.c (search_struct_method): Likewise.
1872
695c3173
TT
18732012-07-23 Tom Tromey <tromey@redhat.com>
1874
1875 * solib-svr4.c (enable_break): Update.
1876 * bfd-target.h (target_bfd_reopen): Update documentation.
1877
08d2cd74
TT
18782012-07-23 Tom Tromey <tromey@redhat.com>
1879
1880 * symfile.c (separate_debug_file_exists): Update.
1881 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1882 (reread_symbols): Update.
1883 * elfread.c (build_id_verify): Update.
1884 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1885 bfd_open_maybe_remote.
1886
596f7d67
TT
18872012-07-23 Tom Tromey <tromey@redhat.com>
1888
1889 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1890
8ac244b4
TT
18912012-07-23 Tom Tromey <tromey@redhat.com>
1892
1893 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1894 and 'abfd'.
1895 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1896 and 'abfd'.
1897 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1898 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1899 'abfd'.
1900 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1901 * objfiles.c (allocate_objfile): Acquire a new reference.
1902 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1903 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1904 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1905 a cleanup for 'nbfd'.
1906 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1907 for 'nbfd'.
1908 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1909 make a cleanup for 'abfd'.
1910 (symbol_file_add): Make a BFD cleanup.
1911
64c31149
TT
19122012-07-23 Tom Tromey <tromey@redhat.com>
1913
1914 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1915 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1916 * corelow.c (core_open): Use gdb_bfd_fopen.
1917 * dsrec.c (load_srec): Use gdb_bfd_openr.
1918 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1919 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1920 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1921 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1922 (gdb_bfd_fdopenr): New functions.
1923 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1924 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1925 (gdb_bfd_fdopenr): Declare.
1926 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1927 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1928 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1929 gdb_bfd_openr_next_archived_file.
1930 (macho_check_dsym): Use gdb_bfd_openr.
1931 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1932 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1933 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1934 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1935 gdb_bfd_openr.
1936 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1937 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1938 gdb_bfd_openr_next_archived_file.
1939 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1940 Use gdb_bfd_openr.
1941 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1942 gdb_bfd_openr.
1943 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1944 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1945 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1946 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1947 (symfile_bfd_open): Use gdb_bfd_fopen.
1948 (generic_load): Use gdb_bfd_openr.
1949 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1950
520b0001
TT
19512012-07-23 Tom Tromey <tromey@redhat.com>
1952
1953 * bfd-target.c (target_bfd_reopen): Update.
1954 * cli/cli-dump.c (bfd_openr_with_cleanup)
1955 (bfd_openw_with_cleanup): Update.
1956 * corelow.c (core_open): Update.
1957 * dsrec.c (load_srec): Update.
1958 * exec.c (exec_file_attach): Update.
1959 * gcore.c (create_gcore_bfd): Update.
1960 * gdb_bfd.c (gdb_bfd_ref): Return void.
1961 (gdb_bfd_open): Update.
1962 * gdb_bfd.h (gdb_bfd_ref): Return void.
1963 Update comments.
1964 * jit.c (jit_bfd_try_read_symtab): Update.
1965 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1966 * machoread.c (macho_symfile_read_all_oso): Update.
1967 (macho_check_dsym): Update.
1968 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1969 * remote-m32r-sdi.c (m32r_load): Update.
1970 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1971 * rs6000-nat.c (add_vmap): Update.
1972 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1973 Update.
1974 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1975 * solib-spu.c (spu_bfd_open): Update.
1976 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1977 * spu-linux-nat.c (spu_bfd_open): Update.
1978 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1979 (generic_load): Update.
1980 * windows-nat.c (windows_make_so): Update.
1981
2322ff16
SP
19822012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1983
1984 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1985
3def0b36
PA
19862012-07-20 Jeff Kenton <jkenton@tilera.com>
1987
1988 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1989 SIGTRAMP_FRAME unwinding.
1990
e615022a
DE
19912012-07-20 Doug Evans <dje@google.com>
1992
1993 * NEWS: Document new options "set/show use-deprecated-index-sections",
1994 and delete reference to --use-deprecated-index-sections.
1995 * symfile.h (use_deprecated_index_sections): Delete.
1996 * dwarf2read.c (use_deprecated_index_sections): Make static.
1997 (read_index_from_section): Update wording of how to load
1998 deprecated index sections.
1999 (_initialize_dwarf2_read): New options
2000 "set/show use-deprecated-index-sections".
2001 * main.c (captured_main): Delete --use-deprecated-index-sections.
2002
64776a0b
PA
20032012-07-20 Pedro Alves <palves@redhat.com>
2004
2005 PR threads/11692
2006 PR gdb/12203
2007
2008 * infrun.c (handle_inferior_event) <new thread>: Don't special
2009 case minus_one_ptid.
2010 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2011 * linux-thread-db.c (thread_get_info_callback): Don't return early
2012 if the thread is zombie.
2013 (thread_from_lwp): Change return type to void. Rewrite stale
2014 comment.
2015 (attach_thread): Don't return early if the thread is zombie,
2016 instead set its "dying" flag.
2017 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2018 (find_new_threads_callback): Don't return early if the thread is
2019 zombie.
2020
09826ec5
PA
20212012-07-20 Pedro Alves <palves@redhat.com>
2022
2023 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2024 * target.c (target_wait): Likewise.
2025 (str_comma_list_concat_elem, do_option, target_options_to_string):
2026 New functions.
2027 * target.h (target_options_to_string): Declare.
2028
f7a35f02
TT
20292012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2030 Tom Tromey <tromey@redhat.com>
2031
2032 * dwarf2read.c (dwarf_decode_macros)
2033 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2034 DW_MACRO_GNU_transparent_include_alt>: New cases.
2035 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2036 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2037
b81e1ee0
TT
20382012-07-20 Tom Tromey <tromey@redhat.com>
2039
2040 * dwarf2read.c (try_open_dwo_file): Don't call
2041 gdb_bfd_stash_filename.
2042
99c1624c
PA
20432012-07-20 Pedro Alves <palves@redhat.com>
2044
2045 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2046 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2047 (i386_process_record): Tweak description comments.
2048
4ffa4fc7
PA
20492012-07-20 Pedro Alves <palves@redhat.com>
2050
2051 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2052 (i386_process_record): Use record_read_memory.
2053 * record.c (record_read_memory): New function.
2054 (record_arch_list_add_mem, record_exec_insn): Use
2055 record_read_memory.
2056 * record.h (record_read_memory): Declare.
2057
c24343e2
YQ
20582012-07-20 Yao Qi <yao@codesourcery.com>
2059
2060 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2061 NULL for xfree.
2062
90f47860
PA
20632012-07-19 Pedro Alves <palves@redhat.com>
2064
2065 * record.c (record_resume): Ask the target beneath to report all
2066 signals.
2067
01093045
DE
20682012-07-19 Doug Evans <dje@google.com>
2069
2070 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2071 there's no section at address zero.
2072 (dwarf2_record_block_ranges): Ditto.
2073
a7c3d162
YQ
20742012-07-19 Yao Qi <yao@codesourcery.com>
2075
2076 * command.h, remote.c: Fix a typo in comment.
2077
608b4967
TT
20782012-07-19 Tom Tromey <tromey@redhat.com>
2079
2080 PR exp/13206:
2081 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2082 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2083 OP_DECLTYPE>: New cases.
2084 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2085 (type_exp): Add new productions.
2086 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2087 and decltype.
2088 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2089 New case.
2090 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2091 OP_DECLTYPE>: New case.
2092 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2093 New case.
2094 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2095 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2096
274b54d7
TT
20972012-07-19 Tom Tromey <tromey@redhat.com>
2098
2099 * c-exp.y (enum token_flags): New.
2100 (struct token) <cxx_only>: Remove.
2101 <flags>: New field.
2102 (tokentab3, tokentab2, ident_tokens): Update.
2103 (lex_one_token): Update. Handle FLAG_SHADOW.
2104
9eaf6705
TT
21052012-07-19 Tom Tromey <tromey@redhat.com>
2106
2107 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2108 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2109 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2110 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2111 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2112 type_exp production where appropriate.
2113 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2114 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2115 <UNOP_MEMVAL_TYPE>: New case.
2116 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2117 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2118 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2119 <UNOP_MEMVAL_TYPE>: New case.
2120 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2121 UNOP_REINTERPRET_CAST>: Update.
2122 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2123 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2124 UNOP_REINTERPRET_CAST>: Update.
2125 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2126 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2127 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2128 constants.
2129
6ace3df1
YQ
21302012-07-19 Yao Qi <yao@codesourcery.com>
2131 Jan Kratochvil <jan.kratochvil@redhat.com>
2132
2133 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2134 and case 'var_optional_filename' together.
2135 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2136 instead of add_setshow_optional_filename_cmd for setshow command
2137 'args'. Set completer for 'set args'.
2138
48faced0
DE
21392012-07-18 Doug Evans <dje@google.com>
2140
2141 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2142 * common/gdb_vecs.c: New file, contents from utils.c.
2143 * common/host-defs.h: New file, contents from defs.h.
2144 * utils.h: New file, contents from defs.h.
2145 * defs.h: Move all declarations of objects defined in utils.c
2146 to utils.h (except QUIT() and related).
2147 #include "utils.h", "host-defs.h".
2148 * probe.h (probe_p): Move here from gdb_vecs.h.
2149 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2150 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2151 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2152 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2153 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2154 (COMMON_OBS): Add gdb_vecs.o.
2155 (gdb_vecs.o): New rule.
2156
66f1999b
KS
21572012-07-18 Keith Seitz <keiths@redhat.com>
2158
2159 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2160 parameter. If non-zero, use SYMNAME as the canonical name
2161 for the SaL.
2162 Update all callers.
2163 (convert_linespec_to_sals): Use add_sal_to_sals for
2164 expressions, too.
2165 (decode_line_full): No need to "fill in missing canonical names"
2166 anymore. Simply make cleanups for the allocated names.
2167
5d94e27b
KS
21682012-07-18 Keith Seitz <keiths@redhat.com>
2169
2170 * linespec.c (struct linespec): Constify expression,
2171 source_filename, function_name, and label_name.
2172 (symbol_not_found_error): Make all parameters const.
2173 (linespec_parser_delete): No need to check for NULL
2174 when using xfree. Cast const char * to char * for xfree.
2175
af4908ba
KS
21762012-07-18 Keith Seitz <keiths@redhat.com>
2177
2178 * breakpoint.c (invalid_thread_id_error): New function.
2179 (find_condition_and_thread): Use invalid_thread_id_error.
2180 (watch_command_1): Likewise.
2181
853254db
TT
21822012-07-18 Tom Tromey <tromey@redhat.com>
2183
2184 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2185 * contrib/cc-with-tweaks.sh: New file.
2186
2ec9a5e0
TT
21872012-07-18 Tom Tromey <tromey@redhat.com>
2188
2189 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2190 (locate_dwz_sections): Recognize .gdb_index.
2191 (create_cus_from_index_list): New function.
2192 (create_cus_from_index): Use it. Handle .dwz data.
2193 (read_index_from_section): New function, extracted from
2194 dwarf2_read_index.
2195 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2196 if needed.
2197
36586728
TT
21982012-07-18 Tom Tromey <tromey@redhat.com>
2199
2200 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2201 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2202 <is_dwz>: New field.
2203 (struct dwz_file): New.
2204 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2205 (locate_dwz_sections, dwarf2_get_dwz_file)
2206 (get_abbrev_section_for_cu): New functions.
2207 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2208 (read_and_check_type_unit_head): Add abbrev_section argument.
2209 (create_debug_types_hash_table): Update.
2210 (init_cutu_and_read_dies): Use proper abbrev section.
2211 (init_cutu_and_read_dies_no_follow): Likewise.
2212 (set_partial_user): Do nothing if PST==NULL.
2213 (read_comp_units_from_section): New function.
2214 (create_all_comp_units): Use it.
2215 (scan_partial_symbols, partial_die_parent_scope): Update.
2216 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2217 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2218 (find_partial_die): Add offset_in_dwz argument. Update.
2219 (guess_partial_die_structure_name, fixup_partial_die): Update.
2220 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2221 DW_FORM_GNU_strp_alt.
2222 (read_indirect_string_from_dwz): New function.
2223 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2224 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2225 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2226 (follow_die_offset): Add offset_in_dwz argument.
2227 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2228 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2229 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2230 Handle new macro forms.
2231 (dwarf_decode_macros): Update.
2232 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2233 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2234 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2235 (create_debug_types_hash_table): Use correct abbrev section.
2236 (get_debug_line_section): New function.
2237 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2238 (process_full_comp_unit): Pass 'required' argument to
2239 end_symtab_get_static_block.
2240 * buildsym.h (end_symtab_get_static_block): Update.
2241 * buildsym.c (end_symtab_get_static_block): Add 'required'
2242 argument.
2243 (end_symtab, end_expandable_symtab): Update.
2244
4bf44c1c
TT
22452012-07-18 Tom Tromey <tromey@redhat.com>
2246
2247 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2248 (pagesize): Remove.
2249 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2250 (zlib_decompress_section): Remove.
2251 (dwarf2_read_section): Use gdb_bfd_map_section.
2252 (munmap_section_buffer): Remove.
2253 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2254 munmap_section_buffer.
2255 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2256 (struct gdb_bfd_section_data): New.
2257 (free_one_bfd_section): New function.
2258 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2259 (get_section_descriptor, zlib_decompress_section)
2260 (gdb_bfd_map_section): New functions.
2261 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2262
bb397797
TT
22632012-07-18 Tom Tromey <tromey@redhat.com>
2264
2265 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2266
6ec53d05
TT
22672012-07-18 Tom Tromey <tromey@redhat.com>
2268
2269 * gdb_bfd.c (struct gdb_bfd_data): New.
2270 (gdb_bfd_cache): New global.
2271 (struct gdb_bfd_cache_search): New.
2272 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2273 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2274 * gdb_bfd.h (gdb_bfd_open): Declare.
2275
f9a062ff
TT
22762012-07-18 Tom Tromey <tromey@redhat.com>
2277
2278 * utils.c (make_cleanup_bfd_unref): Rename from
2279 make_cleanup_bfd_close.
2280 * defs.h (make_cleanup_bfd_unref): Rename from
2281 make_cleanup_bfd_close.
2282 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2283 (bfd_openw_with_cleanup): Update.
2284 * corelow.c (core_open): Update.
2285 * dsrec.c (load_srec): Update.
2286 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2287 * remote-m32r-sdi.c (m32r_load): Update.
2288 * remote-mips.c (mips_load_srec): Update.
2289 (pmon_load_fast): Update.
2290 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2291 Update.
2292 (darwin_bfd_open): Update.
2293 * solib.c (solib_bfd_fopen): Update.
2294 * symfile-mem.c (symbol_file_add_from_memory): Update.
2295 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2296 (symfile_bfd_open): Update.
2297 (generic_load): Update.
2298
d6ad71ba
TT
22992012-07-18 Tom Tromey <tromey@redhat.com>
2300
2301 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2302 (pmon_load_fast): Likewise.
2303 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2304 (m32r_upload_command): Likewise.
2305 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2306 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2307 Use make_cleanup_bfd_close.
2308
a4453b7e
TT
23092012-07-18 Tom Tromey <tromey@redhat.com>
2310
2311 * symfile.c (symfile_bfd_open): Don't copy name. Call
2312 gdb_bfd_stash_filename.
2313 (load_command): Open the new BFD before freeing the old.
2314 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2315 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2316 Call gdb_bfd_stash_filename.
2317 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2318 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2319 gdb_bfd_stash_filename.
2320 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2321 Free found_pathname.
2322 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2323 gdb_bfd_stash_filename.
2324 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2325 * machoread.c (macho_add_oso_symfile): Call
2326 gdb_bfd_stash_filename.
2327 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2328 gdb_bfd_stash_filename.
2329 (macho_check_dsym): Don't copy filename. Call
2330 gdb_bfd_stash_filename.
2331 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2332 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2333 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2334 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2335 * exec.c (exec_close): Don't free the BFD's filename.
2336 (exec_file_attach): Don't copy the filename. Call
2337 gdb_bfd_stash_filename.
2338 * corelow.c (core_close): Don't free the BFD's filename.
2339 (core_open): Call gdb_bfd_stash_filename.
2340 * corefile.c (reopen_exec_file): Remove #if 0 code.
2341 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2342 pathname.
2343 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2344
cbb099e8
TT
23452012-07-18 Tom Tromey <tromey@redhat.com>
2346
2347 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2348 gdb_bfd_unref.
2349 (free_dwo_file): Use gdb_bfd_unref.
2350 * cli/cli-dump.c: Include gdb_bfd.h.
2351 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2352 (bfd_openr_with_cleanup): Likewise.
2353 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2354 gdb_bfd_unref.
2355 * utils.c: Include gdb_bfd.h.
2356 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2357 * symfile.c: Include gdb_bfd.h.
2358 (separate_debug_file_exists): Use gdb_bfd_unref.
2359 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2360 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2361 (generic_load): Use gdb_bfd_ref.
2362 (reread_symbols): Use gdb_bfd_unref.
2363 * symfile-mem.c: Include gdb_bfd.h.
2364 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2365 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2366 * solib.c: Include gdb_bfd.h.
2367 (solib_bfd_fopen): Use gdb_bfd_ref.
2368 (solib_bfd_open): Use gdb_bfd_unref.
2369 (free_so_symbols): Use gdb_bfd_unref.
2370 (reload_shared_libraries_1): Use gdb_bfd_unref.
2371 * solib-spu.c: Include gdb_bfd.h.
2372 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2373 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2374 gdb_bfd_unref.
2375 * solib-frv.c: Include gdb_bfd.h.
2376 (enable_break2): Use gdb_bfd_unref.
2377 * solib-dsbt.c: Include gdb_bfd.h.
2378 (enable_break2): Use gdb_bfd_unref.
2379 * solib-darwin.c: Include gdb_bfd.h.
2380 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2381 gdb_bfd_unref.
2382 (darwin_bfd_open): Use gdb_bfd_unref.
2383 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2384 * remote-mips.c: Include gdb_bfd.h.
2385 (mips_load_srec): Use gdb_bfd_ref.
2386 (pmon_load_fast): Use gdb_bfd_ref.
2387 * remote-m32r-sdi.c: Include gdb_bfd.h.
2388 (m32r_load): Use gdb_bfd_ref.
2389 * record.c: Include gdb_bfd.h.
2390 (record_save_cleanups): Use gdb_bfd_unref.
2391 (cmd_record_save): Use gdb_bfd_unref.
2392 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2393 gdb_bfd_unref.
2394 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2395 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2396 * objfiles.c: Include gdb_bfd.h.
2397 (free_objfile): Use gdb_bfd_unref.
2398 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2399 gdb_bfd.c.
2400 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2401 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2402 (macho_check_dsym): Likewise.
2403 * m32r-rom.c: Include gdb_bfd.h.
2404 (m32r_load): Use gdb_bfd_ref.
2405 (m32r_upload_command): Use gdb_bfd_ref.
2406 * jit.c: Include gdb_bfd.h.
2407 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2408 * gdb_bfd.h: New file.
2409 * gdb_bfd.c: New file.
2410 * gcore.c: Include gdb_bfd.h.
2411 (create_gcore_bfd): Use gdb_bfd_ref.
2412 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2413 (gcore_command): Use gdb_bfd_unref.
2414 * exec.c: Include gdb_bfd.h.
2415 (exec_close): Use gdb_bfd_unref.
2416 (exec_close_1): Use gdb_bfd_unref.
2417 (exec_file_attach): Use gdb_bfd_ref.
2418 * elfread.c: Include gdb_bfd.h.
2419 (build_id_verify): Use gdb_bfd_unref.
2420 * dsrec.c: Include gdb_bfd.h.
2421 (load_srec): Use gdb_bfd_ref.
2422 * corelow.c: Include gdb_bfd.h.
2423 (core_close): Use gdb_bfd_unref.
2424 (core_open): Use gdb_bfd_ref.
2425 * bfd-target.c: Include gdb_bfd.h.
2426 (target_bfd_xclose): Use gdb_bfd_unref.
2427 (target_bfd_reopen): Use gdb_bfd_ref.
2428 * Makefile.in (SFILES): Add gdb_bfd.c.
2429 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2430 (COMMON_OBS): Add gdb_bfd.o.
2431
ed1d1739
KS
24322012-07-18 Keith Seitz <keiths@redhat.com>
2433
2434 * breakpoint.c (find_condition_and_thread): Initialize
2435 TASK and REST.
2436 (create_breakpiont): find_condition_and_thread will now
2437 initialize COND_STRING, THREAD, and REST (and TASK).
2438 (addr_string_to_sals): Likewise.
2439
eab402df
PA
24402012-07-18 Pedro Alves <palves@redhat.com>
2441
2442 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2443 Pull the single step breakpoints out of the target.
2444
2b963b68
SDJ
24452012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2446
2447 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2448 * stap-probe.c (compile_probe_arg): Likewise.
2449
6bac7473
SDJ
24502012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2451
2452 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2453 (elf_compile_to_ax): Likewise.
2454 * infrun.c (insert_exception_resume_from_probe): Likewise.
2455 (check_exception_resume): Remove `objfile' variable.
2456 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2457 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2458 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2459 (compare_entries): Rename to...
2460 (compare_probes): ...this. Adjust function to work with
2461 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2462 respectively.
2463 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2464 `VEC (probe_p) *'.
2465 (print_ui_out_info): Adjust argument to be `struct probe *'.
2466 (info_probes_for_ops): Adjust internal computations to use
2467 `VEC (probe_p) *'.
2468 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2469 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2470 gen_info_probes_table_values>: Remove `objfile' argument.
2471 (struct probe) <objfile>: New field.
2472 (find_probe_by_pc): Remove `objfile' argument.
2473 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2474 (stap_get_probe_argument_count): Likewise.
2475 (stap_get_arg): Likewise.
2476 (stap_evaluate_probe_argument): Likewise.
2477 (stap_compile_to_ax): Likewise.
2478 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2479 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2480 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2481 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2482 sym_compile_to_ax>: Likewise.
2483
3347eb1a 24842012-07-18 Terry Guo <terry.guo@arm.com>
2485
2486 PR 14329
2487 * defs.h (GDB_MI_MSG_WIDTH): New.
2488 * ser_base (ser_base_read_error_fd): New function.
2489 (do_ser_base_readchar): Poll error file descriptor as well as
2490 standard output.
f782ad9b 2491 (generic_readchar): Refactor error handling.
3347eb1a 2492
80c8d323
JB
24932012-07-18 Joel Brobecker <brobecker@adacore.com>
2494
2495 * NEWS: Create a new section for the next release branch.
2496 Rename the section of the current branch, now that it has
2497 been cut.
2498
b45a0664 24992012-07-18 Joel Brobecker <brobecker@adacore.com>
2500
2501 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2502 * version.in: Bump version to 7.5.50.20120718-cvs.
2503
09cf2b22
KS
25042012-07-17 Keith Seitz <keiths@redhat.com>
2505
2506 * linespec.c (linespec_parse_line_offset): Make parameter
2507 const.
2508
8f043999
JK
25092012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2510
2511 PR 11914
2512 * f-valprint.c (info_common_command): New variable frame_id.
2513 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2514 * printcmd.c (print_variable_and_value): Extend function comment.
2515 Add comment for invalidated FRAME.
2516 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2517 FI form FRAME_ID after each print_frame_local_vars.
2518 (struct print_variable_and_value_data): Change frame to frame_id.
2519 (do_print_variable_and_value): New variable frame, initialize it from
2520 p->frame_id. Add comment for invalidated FRAME.
2521 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2522 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2523 for invalidated FRAME.
2524
ae5e0686
MK
25252012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2526 Pedro Alves <palves@redhat.com>
2527
2528 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2529 loop.
2530
5049c5be
TT
25312012-07-16 Tom Tromey <tromey@redhat.com>
2532
2533 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2534
2908cac6
DE
25352012-07-15 Doug Evans <dje@google.com>
2536
094b34ac
DE
2537 * dwarf2read.c (stmt_list_hash): New struct.
2538 (type_unit_group): Embed "per_cu" member, remove pointer.
2539 New union member "t", move member "tus" into it, all uses updated.
2540 New member "hash", replaces member "line_offset, all uses updated.
2541 (quick_file_names): Replace member "offset" with "hash", all uses
2542 updated.
2543 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2544 (hash_file_name_entry, eq_file_name_entry): Call them.
2545 (hash_type_unit_group, eq_type_unit_group): Ditto.
2546 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2547 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2548 (dw2_get_file_names): Update.
2549 (create_type_unit_group): Replace "per_cu" arg with "cu".
2550 All callers updated. Fix "quick" (.gdb_index) handling.
2551 (get_type_unit_group): Replace "per_cu" arg with "cu".
2552 All callers updated.
2553 (build_type_unit_groups): Don't reset tu_stats.
2554
2908cac6
DE
2555 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2556 "tab_cur_size". Change member "tab" to be a htab_t.
2557 (create_filename_seen_cache): Update.
2558 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2559 (filename_seen): Update.
2560
a2b6eff5
DE
25612012-07-13 Doug Evans <dje@google.com>
2562
2563 * symtab.c (filename_seen): Update comment.
2564
4359dff1
JK
25652012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2566 Doug Evans <dje@google.com>
2567
2568 * buildsym.c (end_symtab_1): Split it to ...
2569 (end_symtab_get_static_block): ... this ...
2570 (end_symtab_from_static_block): ... and this function.
2571 (end_symtab, end_expandable_symtab): Call them.
2572 * buildsym.h (end_symtab_get_static_block)
2573 (end_symtab_from_static_block): New declarations.
2574 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2575 Set its valid CU ranges.
2576
a24f71ab
JK
25772012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2578
2579 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2580 DW_OP_GNU_parameter_ref.
2581
d76b7dbc
JK
25822012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2583
2584 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2585 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2586
9fdc877b
DE
25872012-07-13 Doug Evans <dje@google.com>
2588
2589 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2590 (filename_seen_cache): New struct.
2591 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2592 (create_filename_seen_cache): New function.
2593 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2594 (filename_seen): Delete arg "first". New arg "cache". All callers
2595 updated.
2596 (output_source_filename_data): New struct.
2597 (output_source_filename): Delete arg "first". New arg "data".
2598 All callers updated.
2599 (sources_info): Delete local "first". New locals "data", "cleanups".
2600 Rewrite to use filename_seen_cache.
2601 (add_partial_filename_data): Delete member "first". New member
2602 "filename_seen_cache". All uses updated.
2603 (make_source_files_completion_list): Rewrite to use
2604 filename_seen_cache.
2605
f80c6f3f
DE
26062012-07-12 Doug Evans <dje@google.com>
2607
2608 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2609
0bfa869d
DE
26102012-07-10 Doug Evans <dje@google.com>
2611
f4dc4d17
DE
2612 PR gdb/13498
2613 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2614 all_type_unit_groups, type_unit_groups, tu_stats.
2615 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2616 All uses updated. Add type_unit_group to union "s".
2617 (type_unit_group): New struct.
2618 (IS_TYPE_UNIT_GROUP): New macro.
2619 (abbrev_table): Delete unused member "section".
2620 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2621 (dw2_get_cu): Assert not used with type_unit_group.
2622 (dw2_get_primary_cu): New function.
2623 (dw2_build_type_unit_groups_reader): New function.
2624 (dw2_build_type_unit_groups): New function.
2625 (dw2_get_file_names): Assert not called on type units.
2626 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2627 Redo loop to iterate over type unit groups instead of type units.
2628 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2629 (read_abbrev_offset): New function.
2630 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2631 updated.
2632 (create_partial_symtab): New function.
2633 (process_psymtab_comp_unit_reader): Assert not used with type units.
2634 Call create_partial_symtab.
2635 (process_psymtab_type_unit): Delete.
2636 (hash_type_unit_group, eq_type_unit_group): New functions.
2637 (allocate_type_unit_groups_table): New function.
2638 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2639 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2640 (create_type_unit_group, get_type_unit_group): New functions.
2641 (tu_abbrev_offset): New struct.
2642 (sort_tu_by_abbrev_offset): New function.
2643 (add_type_unit_group_to_table): New function.
2644 (build_type_unit_groups): New function.
2645 (build_type_psymtabs_reader): New function.
2646 (build_type_psymtab_dependencies): New function.
2647 (build_type_psymtabs): Rewrite.
2648 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2649 is seen in a type unit.
2650 (process_queue): Move symtab expansion debugging printfs here.
2651 Call process_full_type_unit for type units.
2652 (compute_symtab_includes): Assert not called for type units.
2653 (process_cu_includes): Don't call compute_symtab_includes for
2654 type units.
2655 (process_full_type_unit): New function.
2656 (process_imported_unit_die): Flag an error if called for type units.
2657 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2658 updated. Assert not called for type units.
2659 (read_file_scope): Call dwarf2_start_symtab.
2660 (setup_type_unit_groups): New function.
2661 (read_type_unit_scope): Rewrite.
2662 (abbrev_table_read_table): Initialize abbrev_table->offset.
2663 (abbrev_table_free_cleanup): New function.
2664 (dwarf2_start_symtab): New function.
2665 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2666 * buildsym.c (finish_block_internal): New arg "expandable".
2667 All callers updated.
2668 (start_symtab): Move most contents to ...
2669 (restart_symtab): ... here. New function.
2670 (reset_symtab_globals): New function.
2671 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2672 Call reset_symtab_globals.
2673 (end_symtab, end_expandable_symtab): New functions.
2674 (set_missing_symtab, augment_type_symtab): New functions.
2675 * buildsym.h (end_expandable_symtab): Declare.
2676 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2677 * psympriv.h (struct partial_symtab): New member "anonymous".
2678 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2679 anonymous psymtabs.
2680 (read_psymtabs_with_filename): Ditto.
2681 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2682 (expand_symtabs_matching_via_partial): Ditto.
2683 (dump_psymtab): Update.
0bfa869d
DE
2684 * dictionary.c (dict_add_pending): New function.
2685 * dictionary.h (dict_add_pending): Declare.
2686
45e58e77
DE
26872012-07-09 Doug Evans <dje@google.com>
2688
b74db436
DE
2689 * buildsym.c (start_subfile): Remove unnecessary check for
2690 name == NULL.
2691
fd55216c
DE
2692 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2693
6721b2ec
DE
2694 * dwarf2read.c (load_full_type_unit): Simplify.
2695
b4dd5633
DE
2696 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2697 to struct signatured_type **. All uses updated.
2698
45e58e77
DE
2699 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2700 All callers updated.
2701
e314d629
TT
27022012-07-09 Tom Tromey <tromey@redhat.com>
2703
2704 * c-exp.y (check_parameter_typelist): New function.
2705 (parameter_typelist): Call it.
2706 * eval.c (make_params): Handle '(void)' case.
2707 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2708 '(void)' case.
2709
aa7c7447
JK
27102012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2711
2712 * common/linux-ptrace.c: Include gdb_assert.h.
2713 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2714 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2715 stdint.h.
2716 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2717 functions.
2718 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2719 * linux-nat.c (linux_child_post_attach)
2720 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2721
889003ed
JK
27222012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2723
2724 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2725 nptl <2.7 bug workaround for core files.
2726
da559b09
JK
27272012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2728
2729 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2730 clearing.
2731 (save_siginfo): Remove.
2732 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2733 call.
2734 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2735 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2736 * linux-nat.h (struct lwp_info): Remove field siginfo.
2737
f865ee35
JK
27382012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2739
2740 Code cleanup for the next patch.
2741 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2742 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2743 call for it.
2744 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2745 (ia64_linux_stopped_data_address):
2746 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2747 the return value.
2748 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2749 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2750 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2751 call for it.
2752
76b83c51
JK
27532012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2754
2755 PR 14321
2756 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2757 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2758
a6fb9c08
TT
27592012-07-06 Tom Tromey <tromey@redhat.com>
2760
2761 * c-exp.y (DOTDOTDOT): New token.
2762 (func_mod, exp): Use parameter_typelist.
2763 (parameter_typelist): New production.
2764 (tokentab3): Add "..." token.
2765 * eval.c (make_params): Handle varargs.
2766 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2767 varargs.
2768
71918a86
TT
27692012-07-06 Tom Tromey <tromey@redhat.com>
2770
2771 PR exp/9608:
2772 * c-exp.y (%union) <tvec>: Change type.
2773 (func_mod): Now uses <tvec> type.
2774 (exp): Update for tvec change.
2775 (direct_abs_decl): Push the typelist.
2776 (func_mod): Return a typelist.
2777 (nonempty_typelist): Update for tvec change.
2778 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2779 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2780 * parse.c (pop_type_list): New function.
2781 (push_typelist): New function.
2782 (follow_types): Handle tp_function_with_arguments.
2783 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2784 (enum type_pieces) <tp_function_with_arguments>: New constant.
2785 (union type_stack_elt) <typelist_val>: New field.
2786 (push_typelist): Declare.
2787
fcde5961
TT
27882012-07-06 Tom Tromey <tromey@redhat.com>
2789
2790 * c-exp.y (%union) <type_stack>: New field.
2791 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2792 (ptr_operator_ts): New production.
2793 (ptype): Update.
2794 * parse.c (type_stack_reserve): New function.
2795 (check_type_stack_depth): Use it.
2796 (pop_type_stack, append_type_stack, push_type_stack)
2797 (get_type_stack, type_stack_cleanup): New functions.
2798 (follow_types): Handle tp_type_stack.
2799 (_initialize_parse): Simplify initialization.
2800 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2801 constant.
2802 (union type_stack_elt) <stack_val>: New field.
2803 (get_type_stack, append_type_stack, push_type_stack)
2804 (type_stack_cleanup): Declare.
2805
1a7d0ce4
TT
28062012-07-06 Tom Tromey <tromey@redhat.com>
2807
2808 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2809 Remove.
2810 (struct type_stack): New.
2811 * parse.c (type_stack, type_stack_size, type_stack_depth):
2812 Remove.
2813 (type_stack): New global.
2814 (parse_exp_in_context, check_type_stack_depth)
2815 (insert_into_type_stack, insert_type, push_type, push_type_int)
2816 (insert_type_address_space, pop_type, pop_type_int)
2817 (_initialize_parse): Update.
2818
16d01384
TT
28192012-07-06 Tom Tromey <tromey@redhat.com>
2820
2821 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2822 Remove %type.
2823
9bfc60bf
SP
28242012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2825
2826 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2827
d5161074
SP
28282012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2829 Jan Kratochvil <jan.kratochvil@redhat.com>
2830
2831 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2832 alloca with xmalloc/xfree.
2833
a74bc576
SP
28342012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2835
2836 * MAINTAINERS (Write After Approval): Add myself to the list.
2837
667e0a4b
DE
28382012-07-05 Doug Evans <dje@google.com>
2839
2840 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2841
34b536a8
HZ
28422012-07-05 Hui Zhu <hui_zhu@mentor.com>
2843
2844 * ax-gdb.c (cli/cli-utils.h): New include.
2845 (linespec.h): Ditto.
2846 (agent_eval_command_one): New function.
2847 (agent_command_1): Ditto.
2848 (agent_command): Call function agent_command_1.
2849 (agent_eval_command): Ditto.
2850 (_initialize_ax_gdb): Change help for "maint agent"
2851 and "maint agent-eval".
2852
e6f0bce7
HZ
28532012-07-05 Hui Zhu <hui_zhu@mentor.com>
2854
2855 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2856 * cli/cli-utils.c (check_for_argument): New function.
2857 * cli/cli-utils.h (check_for_argument): Ditto.
2858
1b3371b1
L
28592012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2860
2861 * NEWS: Mention x32 ABI support.
2862
23e2d720
L
28632012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2864
2865 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2866 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2867
2868 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2869 and pc_regnum_from_eax to -1. Update SP regnum from
2870 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2871 needed.
2872
2873 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2874 pc_regnum_from_eax.
2875
836bf454
JK
28762012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2877
2878 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2879 * dwarf2expr.h: Include gdbtypes.h.
2880 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2881 these forward declarations.
2882 (cu_offset, sect_offset): Move these ...
2883 * gdbtypes.h: Remove include dwarf2expr.h.
2884 (cu_offset, sect_offset): ... here.
2885
1e55e04f
L
28862012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2887
2888 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2889 (amd64_linux_sigtramp_code): This.
2890 (amd64_x32_linux_sigtramp_code): New.
2891 (LINUX_SIGTRAMP_LEN): Updated.
2892 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2893
7d0e21ad
JK
28942012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2895
2896 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2897
8775fd2d
JK
28982012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2899
2900 * config.in: Regenerate.
2901 * configure: Regenerate.
2902 * configure.ac: Remove check for gnu/libc-version.h.
2903 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2904 gnu/libc-version.h.
2905 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2906 variables libc_version, libc_major and libc_minor. Replace sscanf by
2907 inferior_has_bug. Extend the comment.
2908
fcb44371
JK
29092012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2910
2911 * linux-thread-db.c (inferior_has_bug): New function.
2912 (thread_db_find_new_threads_silently): Return boolean as checked by
2913 inferior_has_bug, describe it in the comments.
2914 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2915 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2916 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2917 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2918 if UNTIL_NO_NEW,
2919
09406207
DE
29202012-07-02 Doug Evans <dje@google.com>
2921
0907af0c
DE
2922 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2923 related to queue management.
2924
09406207
DE
2925 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2926 instead of "debug dwarf2-die" in debugging printfs.
2927 (create_debug_info_hash_table_reader): Ditto.
2928 (create_debug_info_hash_table): Ditto.
2929 (init_dwo_file): Ditto.
2930 (init_cutu_and_read_dies): Add debugging printf.
2931 (init_cutu_and_read_dies_no_follow): Ditto.
2932 (process_psymtab_comp_unit_reader): Ditto.
2933
d3ce09f5
SS
29342012-07-02 Stan Shebs <stan@codesourcery.com>
2935
2936 Add target-side support for dynamic printf.
2937 * NEWS: Mention the additional style.
2938 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2939 (struct bp_location): New field cmd_bytecode.
2940 * breakpoint.c: Include format.h.
2941 (disconnected_dprintf): New global.
2942 (parse_cmd_to_aexpr): New function.
2943 (build_target_command_list): New function.
2944 (insert_bp_location): Call it.
2945 (remove_breakpoints_pid): Skip dprintf breakpoints.
2946 (print_one_breakpoint_location): Ditto.
2947 (dprintf_style_agent): New global.
2948 (dprintf_style_enums): Add dprintf_style_agent.
2949 (update_dprintf_command_list): Add agent case.
2950 (agent_printf_command): New function.
2951 (_initialize_breakpoint): Add new commands.
2952 * common/ax.def (printf): New bytecode.
2953 * ax.h (ax_string): Declare.
2954 * ax-gdb.h (gen_printf): Declare.
2955 * ax-gdb.c: Include cli-utils.h, format.h.
2956 (gen_printf): New function.
2957 (maint_agent_print_command): New function.
2958 (_initialize_ax_gdb): Add maint agent-printf command.
2959 * ax-general.c (ax_string): New function.
2960 (ax_print): Add printf disassembly.
2961 * Makefile.in (SFILES): Add format.c
2962 (COMMON_OBS): Add format.o.
2963 * common/format.h: New file.
2964 * common/format.c: New file.
2965 * printcmd.c: Include format.h.
2966 (ui_printf): Call parse_format_string.
2967 * remote.c (remote_state): New field breakpoint_commands.
2968 (PACKET_BreakpointCommands): New enum.
2969 (remote_breakpoint_commands_feature): New function.
2970 (remote_protocol_features): Add new BreakpointCommands entry.
2971 (remote_can_run_breakpoint_commands): New function.
2972 (remote_add_target_side_commands): New function.
2973 (remote_insert_breakpoint): Call it.
2974 (remote_insert_hw_breakpoint): Ditto.
2975 (_initialize_remote): Add new packet configuration for
2976 target-side breakpoint commands.
2977 * target.h (struct target_ops): New field
2978 to_can_run_breakpoint_commands.
2979 (target_can_run_breakpoint_commands): New macro.
2980 * target.c (update_current_target): Handle
2981 to_can_run_breakpoint_commands.
2982
2d7b58e8
JK
29832012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2984
2985 Execute -ix and -iex only after system and user gdbinit files.
2986 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2987 processing down after gdbinit files.
2988
8690e634
JK
29892012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2990
2991 Add fnmatch-gnu module.
2992 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2993 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2994 * gnulib/aclocal.m4: Regenerate.
2995 * gnulib/config.in: Regenerate.
2996 * gnulib/configure: Regenerate.
2997 * gnulib/import/dummy.c: Remove.
2998 * gnulib/import/Makefile.am: Regenerate.
2999 * gnulib/import/Makefile.in: Likewise.
3000 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3001 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3002 * gnulib/import/alloca.c: New file.
3003 * gnulib/import/alloca.in.h: Likewise.
3004 * gnulib/import/config.charset: Likewise.
3005 * gnulib/import/fnmatch.c: Likewise.
3006 * gnulib/import/fnmatch.in.h: Likewise.
3007 * gnulib/import/fnmatch_loop.c: Likewise.
3008 * gnulib/import/localcharset.c: Likewise.
3009 * gnulib/import/localcharset.h: Likewise.
3010 * gnulib/import/m4/alloca.m4: Likewise.
3011 * gnulib/import/m4/codeset.m4: Likewise.
3012 * gnulib/import/m4/configmake.m4: Likewise.
3013 * gnulib/import/m4/fcntl-o.m4: Likewise.
3014 * gnulib/import/m4/fnmatch.m4: Likewise.
3015 * gnulib/import/m4/glibc21.m4: Likewise.
3016 * gnulib/import/m4/localcharset.m4: Likewise.
3017 * gnulib/import/m4/locale-fr.m4: Likewise.
3018 * gnulib/import/m4/locale-ja.m4: Likewise.
3019 * gnulib/import/m4/locale-zh.m4: Likewise.
3020 * gnulib/import/m4/mbrtowc.m4: Likewise.
3021 * gnulib/import/m4/mbsinit.m4: Likewise.
3022 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3023 * gnulib/import/m4/mbstate_t.m4: Likewise.
3024 * gnulib/import/m4/stdbool.m4: Likewise.
3025 * gnulib/import/m4/wchar_h.m4: Likewise.
3026 * gnulib/import/m4/wctype_h.m4: Likewise.
3027 * gnulib/import/m4/wint_t.m4: Likewise.
3028 * gnulib/import/mbrtowc.c: Likewise.
3029 * gnulib/import/mbsinit.c: Likewise.
3030 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3031 * gnulib/import/mbsrtowcs-state.c: Likewise.
3032 * gnulib/import/mbsrtowcs.c: Likewise.
3033 * gnulib/import/ref-add.sin: Likewise.
3034 * gnulib/import/ref-del.sin: Likewise.
3035 * gnulib/import/stdbool.in.h: Likewise.
3036 * gnulib/import/streq.h: Likewise.
3037 * gnulib/import/strnlen1.c: Likewise.
3038 * gnulib/import/strnlen1.h: Likewise.
3039 * gnulib/import/verify.h: Likewise.
3040 * gnulib/import/wchar.in.h: Likewise.
3041 * gnulib/import/wctype.in.h: Likewise.
3042
202cbf1c
JK
30432012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3044
3045 Support shell wildcards for 'set auto-load safe-path'.
3046 * auto-load.c: Include fnmatch.h.
3047 (filename_is_in_dir): Rename to ...
3048 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3049 it. Update function comment. Rename dir_len to pattern_len. New
3050 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3051 messages. Use gdb_filename_fnmatch.
3052 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3053 pattern.
3054 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3055 * defs.h (gdb_filename_fnmatch): New declaration.
3056 * utils.c: Include fnmatch.h.
3057 (gdb_filename_fnmatch): New function.
3058
fb7b5af4
SDJ
30592012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3060
3061 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3062 `-probe' and `-probe-stap' options.
3063
72d0e2c5
YQ
30642012-07-01 Yao Qi <yao@codesourcery.com>
3065
3066 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3067 always_inserted_off, and always_inserted_enums.
3068 Change always_inserted_mode's type to 'enum auto_boolean'.
3069 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3070 callers.
3071 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3072 of add_setshow_enum_cmd.
3073 * infrun.c: Remove can_use_displaced_stepping_auto,
3074 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3075 can_use_displaced_stepping_enum.
3076 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3077 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3078 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3079 add_setshow_enum_cmd.
3080
42e7ad6c
DE
30812012-06-30 Doug Evans <dje@google.com>
3082
3083 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3084 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3085 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3086
39cf75f7
DE
30872012-06-29 Doug Evans <dje@google.com>
3088
3089 * linespec.c: #include "stack.h".
3090 (decode_line_with_current_source): Moved here from symtab.c and
3091 renamed from decode_line_spec. All callers updated.
3092 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3093 renamed from decode_line_spec_1. All callers updated.
3094 * linespec.h (decode_line_with_current_source): Move declaration here
3095 from symtab.h and renamed from decode_line_spec.
3096 (decode_line_with_last_displayed): Move declaration here from symtab.h
3097 and renamed from decode_line_spec_1.
3098 * macrocmd.c: #include "linespec.h".
3099 * symtab.c: Remove #include "linespec.h".
3100
433df2d4
DE
31012012-06-28 Doug Evans <dje@google.com>
3102
1ce1cefd
DE
3103 * dwarf2read.c (get_cu_length): New function.
3104 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3105 (create_debug_types_hash_table): Ditto.
3106 (init_cutu_and_read_dies): Ditto.
3107 (init_cutu_and_read_dies_no_follow): Ditto.
3108
3b80fe9b
DE
3109 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3110
433df2d4
DE
3111 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3112 (struct abbrev_table): Define.
3113 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3114 abbrev_table.
3115 (init_cutu_and_read_dies): Update.
3116 (abbrev_table_alloc_abbrev): New function. Replaces
3117 dwarf_alloc_abbrev. All callers updated.
3118 (abbrev_table_add_abbrev): New function.
3119 (abbrev_table_lookup_abbrev): New function. Replaces
3120 dwarf2_lookup_abbrev. All callers updated.
3121 (abbrev_table_read_table): New function. Contents moved here from
3122 dwarf2_read_abbrevs.
3123 (dwarf2_read_abbrevs): Call it.
3124 (abbrev_table_free): New function.
3125 (dwarf2_free_abbrev_table): Call it.
3126
71caed83
SS
31272012-06-28 Stan Shebs <stan@codesourcery.com>
3128
3129 * osdata.c (info_osdata_command): Filter out "Title" columns
3130 from non-MI uses.
3131 * common/linux-osdata.c (struct osdata_type): Add title field.
3132 (osdata_table): Add titles to each entry.
3133 (linux_command_xfer_osdata): Add a column for title data.
3134
37ce89eb
SS
31352012-06-28 Stan Shebs <stan@codesourcery.com>
3136
3137 Make logging work for MI.
3138 * NEWS: Mention it.
3139 * interps.h (interp_set_logging_ftype): New typedef.
3140 (struct interp_procs): New field set_logging_proc.
3141 (current_interp_set_logging): Declare.
3142 * interps.c (current_interp_set_logging): New function.
3143 * cli/cli-logging.c: Include interps.h.
3144 (set_logging_redirect): Call current_interp_set_logging.
3145 (pop_output_files): Ditto.
3146 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3147 * mi/mi-console.h (mi_console_set_raw): Declare.
3148 * mi/mi-console.c (mi_console_set_raw): New function.
3149 * mi/mi-interp.c (saved_raw_stdout): New global.
3150 (mi_set_logging): New function.
3151 (_initialize_mi_interp): Add it to interp procs.
3152
659c9f3a
DE
31532012-06-28 Doug Evans <dje@google.com>
3154
a743abeb
DE
3155 * symtab.c (lookup_symbol_aux_objfile): Use
3156 ALL_OBJFILE_PRIMARY_SYMTABS.
3157
659c9f3a
DE
3158 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3159
da2d6d3d
JK
31602012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3161
3162 * common/buffer.c: Include inttypes.h and stdint.h.
3163 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3164
e5ef252a
PA
31652012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3166 Pedro Alves <palves@redhat.com>
3167
3168 * gdbthread.h (ALL_THREADS): New macro.
3169 (thread_list): Declare.
3170 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3171 going, but instead fall through to the stepping handling.
3172 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3173 the passed in signal. Adjust debug output.
3174 (resume_callback): Rename to ...
3175 (linux_nat_resume_callback): ... this. Pass the thread's last
3176 stop signal, if in "pass" state.
3177 (linux_nat_resume): Adjust to rename.
3178 (stop_wait_callback): New assertion. Don't respawn signals;
3179 instead let the LWP remain with SIGNALLED set.
3180 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3181 * remote.c (append_pending_thread_resumptions): New.
3182 (remote_vcont_resume): Call it.
3183 * target.h (target_resume): Extend comment.
3184
1d7975eb
IS
31852012-06-28 Iain Sandoe <iain@codesourcery.com>
3186
3187 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3188
2e3cf129
DE
31892012-06-27 Doug Evans <dje@google.com>
3190
3191 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3192 Delete have_addr_base, unused. All uses updated.
3193 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3194 (dwarf2_get_pc_bounds): Add ranges_base.
3195 (dwarf2_record_block_ranges): Ditto.
3196
1bb9788d
TT
31972012-06-27 Tom Tromey <tromey@redhat.com>
3198
3199 PR macros/7961:
3200 * varobj.c (varobj_create): Update.
3201 (varobj_set_value): Update.
3202 * tracepoint.c (validate_actionline): Update.
3203 (encode_actions_1): Update.
3204 * parse.c (parse_exp_1): Add 'pc' argument.
3205 (parse_exp_in_context): Add 'pc' argument. Change how
3206 expression_context_pc is set.
3207 (parse_expression): Update.
3208 (parse_field_expression): Update.
3209 * expression.h (parse_exp_1): Update.
3210 * eval.c (parse_to_comma_and_eval): Update.
3211 * breakpoint.c (set_breakpoint_condition): Update.
3212 (update_watchpoint): Update.
3213 (init_breakpoint_sal): Update
3214 (find_condition_and_thread): Update.
3215 (watch_command_1): Update.
3216 (update_breakpoint_locations): Update.
3217 * ada-lang.c (ada_read_renaming_var_value): Update.
3218 (create_excep_cond_exprs): Update.
3219
0bc3a05c
DE
32202012-06-27 Doug Evans <dje@google.com>
3221
3222 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3223 type units.
3224
4bdcc0c1
DE
32252012-06-26 Doug Evans <dje@google.com>
3226
3227 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3228 prototype.
3229 (error_check_comp_unit_head): New arg abbrev_section. All callers
3230 updated.
3231 (read_and_check_comp_unit_head): Ditto.
3232 (read_and_check_type_unit_head): Ditto.
3233
ee0bf529
SCR
32342012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3235
3236 New attribute 'last' for gdb.Symtab_and_line.
3237 * NEWS (Python Scripting): Add entry about the new attribute.
3238 * python/py-symtab.c (salpy_get_last): New function which
3239 implements the get method for the 'last' attribute of
3240 gdb.Symtab_and_line.
3241 (sal_object_getset): Add entry for the 'last' attribute.
3242
1c658ad5
DE
32432012-06-26 Doug Evans <dje@google.com>
3244
09262596
DE
3245 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3246 (dwo_sections): Add macinfo, macro.
3247 (dwarf2_locate_dwo_sections): Watch for macro sections.
3248 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3249 All callers updated. Handle DWO files.
3250
45cfd468
DE
3251 * NEWS: Mention new options "set debug dwarf2-read" and
3252 "set debug symtab-create".
3253 * dwarf2read.c (dwarf2_read_debug): New static global.
3254 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3255 (process_queue): Ditto.
3256 (process_full_comp_unit): Ditto.
3257 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3258 * elfread.c (elf_symfile_read): Add debugging printf.
3259 * minsyms.c (install_minimal_symbols): Ditto.
3260 * psymtab.c (allocate_psymtab): Ditto.
3261 * symfile.c (allocate_symtab): Ditto.
3262 * symtab.c (symtab_create_debug): New global.
3263 (_initialize_symtab): Add new option "set debug symtab-create".
3264 * symtab.h (symtab_create_debug): Declare.
3265
1c658ad5
DE
3266 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3267 (lookup_dwo_type_unit): Ditto.
3268
6fea9e18
L
32692012-06-26 Roland McGrath <roland@hack.frob.com>
3270 H.J. Lu <hongjiu.lu@intel.com>
3271
3272 * amd64-linux-nat.c: Include <sys/user.h>.
3273 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3274 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3275 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3276
3277 * configure.ac: Check if the fs_base and gs_base members of
3278 `struct user_regs_struct' exist.
3279 * config.in: Regenerated.
3280 * configure: Likewise.
3281
adb4fe3b
ME
32822012-06-25 Michael Eager <eager@eagercon.com>
3283
3284 PR python/14291
f782ad9b 3285 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3286
fc51cce1
MGD
32872012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3288
3289 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3290 register as a stack alignment in ARM mode.
3291
40a73391
JK
32922012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3293
3294 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3295 * gnulib/config.in: Regenerate.
3296 * gnulib/configure: Likewise.
3297 * gnulib/import/m4/extensions.m4: Update it.
3298 * gnulib/import/m4/gnulib-common.m4: Likewise.
3299 * gnulib/import/m4/memmem.m4: Likewise.
3300 * gnulib/import/m4/mmap-anon.m4: Likewise.
3301 * gnulib/import/m4/multiarch.m4: Likewise.
3302 * gnulib/import/stdint.in.h: Likewise.
3303
972daa01
YQ
33042012-06-24 Yao Qi <yao@codesourcery.com>
3305
3306 * corefile.c (write_memory_with_notification): New.
3307 * gdbcore.h: Declare write_memory_with_notification.
3308 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3309 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3310 * valops.c (value_assign): Likewise.
3311 * python/py-inferior.c (infpy_write_memory): Call
3312 'write_memory_with_notification'.
3313
8d6e0714
JK
33142012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3315
3316 * cc-with-index.sh: Use also -ex "set auto-load no".
3317
156942c7
DE
33182012-06-23 Doug Evans <dje@google.com>
3319
3320 PR 14125
3321 * NEWS: Document additions to .gdb_index.
3322 * dwarf2read.c: #include "gdb/gdb-index.h".
3323 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3324 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3325 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3326 (dwarf2_read_index): Recognize version 7.
3327 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3328 block_kind, domain): All callers updated.
3329 (dw2_find_symbol_file): Handle new index CU values.
3330 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3331 (add_index_entry): New args is_static, kind. All callers updated.
3332 (offset_type_compare, uniquify_cu_indices): New functions
3333 (symbol_kind): New function.
3334 (write_psymtabs_to_index): Remove duplicate CU values.
3335 (write_psymtabs_to_index): Write .gdb_index version 7.
3336
352b3eda
JB
33372012-06-22 Joel Brobecker <brobecker@adacore.com>
3338
3339 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3340 * configure: Regenerate.
3341
2678e2af
YQ
33422012-06-20 Yao Qi <yao@codesourcery.com>
3343
3344 * python/py-inferior.c: Update comments of infpy_read_memory
3345 and infpy_write_memory.
3346
95c391b6
TT
33472012-06-19 Tom Tromey <tromey@redhat.com>
3348
3349 PR exp/9514:
3350 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3351 (push_type_address_space): Remove.
3352 * parse.c (insert_into_type_stack): New function.
3353 (insert_type): Likewise.
3354 (insert_type_address_space): Rename from push_type_address_space.
3355 Insert tp_space_identifier.
3356 * c-exp.y (ptr_operator): New production.
3357 (abs_decl): Use ptr_operator.
3358 (space_identifier): Call insert_type_address_space.
3359 (ptype): Don't use const_or_volatile_or_space_identifier.
3360 (const_or_volatile_noopt): Call insert_type.
3361 (conversion_type_id, conversion_declarator): New productions.
3362 (operator): Use conversion_type_id.
3363
6ac9ef80
DE
33642012-06-18 Doug Evans <dje@google.com>
3365
422d65e7
DE
3366 * symtab.h (minimal_symbol): New member created_by_gdb.
3367 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3368 created by gdb.
3369 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3370 (search_symbols): Call it instead of lookup_symbol.
3371 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3372
49f6c839
DE
3373 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3374 Adjust address for DW_OP_GNU_addr_index.
3375 * dwarf2expr.h (dwarf_expr_context): Update comment.
3376 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3377 all callers updated. Handle TLS vars described with
3378 DW_OP_GNU_const_index.
3379 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3380 and DW_OP_GNU_const_index.
3381 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3382
6ac9ef80
DE
3383 * block.c (find_block_in_blockvector): Make explicit the fact that we
3384 ignore GLOBAL_BLOCK.
3385
4cd18215
TT
33862012-06-18 Tom Tromey <tromey@redhat.com>
3387
3388 * c-exp.y (operator): Remove trailing space after "delete" and
3389 "delete[]".
3390
a9b8d892
JK
33912012-06-18 Mark Kettenis <kettenis@gnu.org>
3392 Jan Kratochvil <jan.kratochvil@redhat.com>
3393
3394 Switch i386 and derived targets to ON_STACK.
3395 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3396 (amd64_dicos_init_abi): Remove its installment.
3397 * dicos-tdep.c (dicos_init_abi): Remove the
3398 set_gdbarch_call_dummy_location call. Update the comment here.
3399 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3400 (i386_dicos_init_abi): Remove its installment.
3401 * i386-tdep.c (i386_push_dummy_code): New function.
3402 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3403 i386_push_dummy_code.
3404
e2e4d78b
JK
34052012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3406
3407 Remove stale dummy frames.
3408 * breakpoint.c: Include dummy-frame.h.
3409 (longjmp_breakpoint_ops): New variable.
3410 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3411 bp_longjmp_call_dummy.
3412 (bpstat_what, bptype_string, print_one_breakpoint_location)
3413 (init_bp_location): Support bp_longjmp_call_dummy.
3414 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3415 (set_longjmp_breakpoint_for_call_dummy)
3416 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3417 functions.
3418 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3419 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3420 FIXME comment and extend the other comment for bp_call_dummy.
3421 (set_longjmp_breakpoint_for_call_dummy)
3422 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3423 * dummy-frame.c: Include gdbthread.h.
3424 (pop_dummy_frame_bpt): New function.
3425 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3426 (dummy_frame_discard): New function.
3427 (cleanup_dummy_frames): Update the comment about longjmps.
3428 * dummy-frame.h (dummy_frame_discard): New declaration.
3429 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3430 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3431 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3432 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3433 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3434 keep_going if IS_LONGJMP and there is no other reason to stop.
3435
09d5912c
TT
34362012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3437
3438 * remote-sim.c (sim_command_completer): Initialize
3439 variable 'result'.
3440
1788b2d3
JK
34412012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3442
3443 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3444 * dwarf2loc.c (call_site_parameter_matches): Support
3445 CALL_SITE_PARAMETER_PARAM_OFFSET.
3446 (needs_dwarf_reg_entry_value): Push stub value.
3447 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3448 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3449 * gdbtypes.h (enum call_site_parameter_kind): New item
3450 CALL_SITE_PARAMETER_PARAM_OFFSET.
3451 (struct call_site.parameter.u): New field param_offset.
3452
24c5c679
JK
34532012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3454
3455 Code cleanup: Generalize call_site.parameter key.
3456 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3457 variable dwarf_reg. New variable kind_u. Update parameters to
3458 push_dwarf_reg_entry_value.
3459 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3460 * dwarf2expr.h (enum call_site_parameter_kind)
3461 (union call_site_parameter_u): Forward declarations.
3462 (struct dwarf_expr_context_funcs): Update parameters and their
3463 description for push_dwarf_reg_entry_value.
3464 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3465 * dwarf2loc.c (call_site_parameter_matches): New function.
3466 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3467 description. Use call_site_parameter_matches.
3468 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3469 Update parameters and their description.
3470 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3471 New variable kind_u. Adjust the caller for updated parameters.
3472 (needs_dwarf_reg_entry_value): Update parameters.
3473 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3474 instead of attr. Update for the changed fields of struct
3475 call_site_parameter.
3476 * gdbtypes.h: Include dwarf2expr.h.
3477 (enum call_site_parameter_kind): New.
3478 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3479 fb_offset into new union u.
3480
ac142d96
L
34812012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3482
3483 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3484 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3485 for x32.
3486
ba224c70
L
34872012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3488
3489 * amd64-linux-nat.c (compat_x32_clock_t): New.
3490 (compat_x32_siginfo_t): Likewise.
3491 (compat_x32_siginfo_from_siginfo): Likewise.
3492 (siginfo_from_compat_x32_siginfo): Likewise.
3493 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3494 and siginfo_from_compat_x32_siginfo for x32.
3495
7ecbc825
HZ
34962012-06-15 Hui Zhu <hui_zhu@mentor.com>
3497
3498 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3499
233dfcf0
L
35002012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3501
3502 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3503 instead of gdbarch_ptr_bit.
3504 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3505 (amd64_supply_native_gregset): Likewise.
3506 (amd64_collect_native_gregset): Likewise.
3507 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3508 (amd64_supply_xsave): Likewise.
3509 (amd64_collect_fxsave): Likewise.
3510 (amd64_collect_xsave): Likewise.
3511
6da38f42
L
35122012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3513
3514 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3515 (amd64_linux_read_description): Check DS segment register for
3516 x32 process.
3517
663b969e
TT
35182012-06-15 Tom Tromey <tromey@redhat.com>
3519
3520 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3521 init_cutu_and_read_dies.
3522
d6f05027
IS
35232012-06-15 Iain Sandoe <iain@codesourcery.com>
3524
3525 * MAINTAINERS (Write After Approval): Add myself to the list.
3526
6598ed07
TT
35272012-06-15 Tom Tromey <tromey@redhat.com>
3528
3529 * valops.c (value_find_oload_method_list): Now static.
3530 * value.h (value_find_oload_method_list): Don't declare.
3531
2b214ea6
TT
35322012-06-15 Tom Tromey <tromey@redhat.com>
3533
3534 * valops.c (find_overload_match): Use value_ind.
3535
a210c238
MR
35362012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3537
3538 * infrun.c (handle_inferior_event): Correct indentation.
3539
3771a44c
DE
35402012-06-14 Doug Evans <dje@google.com>
3541
3542 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3543 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3544 All uses updated.
3545 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3546 updated. Handle DEBUG_LOC_START_LENGTH.
3547 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3548 (loclist_describe_location): Ditto.
3549
1c5a993e
MR
35502012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3551
3552 PR backtrace/13866
3553 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3554 after hiding inline functions.
3555
0b155465
JB
35562012-06-13 Joel Brobecker <brobecker@adacore.com>
3557
3558 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3559 _initialize_inf_ttrace.
3560
45717bac
JB
35612012-06-13 Joel Brobecker <brobecker@adacore.com>
3562
3563 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3564 _initialize_hppa_hpux_nat.
3565
34370865
JB
35662012-06-13 Joel Brobecker <brobecker@adacore.com>
3567
3568 * remote-sim.c (sim_command_completer): Change type of return
3569 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3570
284c5a60
MK
35712012-06-13 Mark Kettenis <kettenis@gnu.org>
3572 Jan Kratochvil <jan.kratochvil@redhat.com>
3573
3574 PR tdep/14222
3575 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3576 stack on a 16-byte boundary.
3577
2535757a
TT
35782012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3579
3580 * jit.c (finalize_symtab): Set function's return type to 'void' by
3581 default.
3582
fff4548b
MK
35832012-06-13 Mark Kettenis <kettenis@gnu.org>
3584 H.J. Lu <hongjiu.lu@intel.com>
3585
5a83521a
MK
3586 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3587 Move bits common to both the classic LP64 and the new x32 ILP32
3588 ABI here.
3589 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3590 (amd64_x32_linux_init_abi): New function.
3591 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3592 subtype.
3593
fff4548b
MK
3594 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3595 * i386-tdep.c (i386_pseudo_register_name): Make public.
3596 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3597 * amd64-tdep.c (amd64_dword_names): Add "eip".
3598 (amd64_x32_pseudo_register_type): New function
3599 (amd64_x32_init_abi): New function.
3600
dd80ea3c
JK
36012012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3602
3603 PR build/14003
3604 * inferior.h (struct inferior_suspend_state): Comment out.
3605 (struct inferior): Comment out the field suspend.
3606 * infrun.c (struct infcall_suspend_state): Comment out the field
3607 inferior_suspend.
3608 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3609 out its assignment.
3610
50af5481
JK
36112012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3612
3613 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3614 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3615 function comment. Return ERROR for unresolved cases. Implement
3616 returning proper NAME.
3617 (yylex): Accept also NAME from classify_inner_name.
3618 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3619 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3620 LOC_TYPEDEF type.
3621 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3622
d55637df
TT
36232012-06-13 Tom Tromey <tromey@redhat.com>
3624
3625 * breakpoint.c (condition_completer): New function.
3626 (_initialize_breakpoint): Use it.
3627 * value.c (complete_internalvar): New function.
3628 * value.h (complete_internalvar): Declare.
3629
49c4e619
TT
36302012-06-13 Tom Tromey <tromey@redhat.com>
3631
3632 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3633 * breakpoint.c (catch_syscall_completer): Return a VEC.
3634 * cli/cli-cmds.c (complete_command): Update.
3635 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3636 (complete_on_enum): Likewise.
3637 * command.h: Include gdb_vecs.h.
3638 (completer_ftype): Change return type.
3639 (complete_on_cmdlist, complete_on_enum): Likewise.
3640 * completer.c (noop_completer, filename_completer)
3641 (location_completer): Return a VEC.
3642 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3643 to a VEC.
3644 (expression_completer, complete_line_internal, complete_line)
3645 (command_completer): Return a VEC.
3646 (gdb_completion_word_break_characters, line_completion_function):
3647 Update.
3648 * completer.h: Include gdb_vecs.h.
3649 (complete_line, noop_completer, filename_completer)
3650 (expression_completer, location_completer, command_completer):
3651 Update.
3652 * f-lang.c (f_word_break_characters): Return a VEC.
3653 * interps.c (interpreter_completer): Return a VEC.
3654 * language.h (struct language_defn)
3655 <la_make_symbol_completion_list>: Return a VEC.
3656 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3657 * symtab.c (free_completion_list): Take a VEC.
3658 (return_val_size, return_val_index): Remove.
3659 (return_val): Now a VEC.
3660 (completion_list_add_name): Update.
3661 (default_make_symbol_completion_list_break_on)
3662 (default_make_symbol_completion_list, make_symbol_completion_list)
3663 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3664 Return a VEC.
3665 (add_filename_to_list): Update.
3666 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3667 <list>: Now a VEC.
3668 (maybe_add_partial_symtab_filename): Update.
3669 (make_source_files_completion_list): Return a VEC.
3670 * symtab.h (default_make_symbol_completion_list_break_on)
3671 (default_make_symbol_completion_list, make_symbol_completion_list)
3672 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3673 (make_source_files_completion_list): Update.
3674
625e8578
TT
36752012-06-13 Tom Tromey <tromey@redhat.com>
3676
3677 * breakpoint.c (add_catch_command): Use completer_ftype.
3678 * breakpoint.h: Include command.h.
3679 (add_catch_command): Use completer_ftype.
3680 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3681 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3682 Use completer_ftype.
3683 * command.h (completer_ftype): New typedef.
3684 (set_cmd_completer): Use it.
3685 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3686 completer_ftype.
3687
5eb3b062
PA
36882012-06-13 Pedro Alves <palves@redhat.com>
3689
3690 Partial revert of previous change.
3691
3692 * serial.c (scb_base): New global.
3693 (serial_for_fd): New.
3694 (serial_open, serial_fdopen_ops): Link new serial in open serials
3695 chain.
3696 (do_serial_close): Unlink serial from the open serials chain.
3697
8b3ee56d
PA
36982012-06-12 Pedro Alves <palves@redhat.com>
3699
3700 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3701 threads here.
3702 (prepare_for_detach): No longer context switch here in non-stop
3703 mode.
3704 (fetch_inferior_event): Ditto.
3705 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3706 to the event thread before removing breakpoints. Switch to the
3707 event thread before inserting breakpoints and resuming.
3708 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3709 event thread before resuming.
3710 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3711 Switch to the event thread before removing breakpoints.
3712
5d60742e
EZ
37132012-06-12 Eli Zaretskii <eliz@gnu.org>
3714
3715 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3716 special characters correctly for the Windows shells. See
3717 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3718 report.
3719 [!__MINGW32__]: Remove extra double quote character from special
3720 characters.
3721
a6feecf7
SS
37222012-06-11 Stan Shebs <stan@codesourcery.com>
3723
3724 * ui-out.h: Remove #if 0 declarations.
3725 * ui-out.c: Remove #if 0 functions.
3726
ddefb60f
PA
37272012-06-11 Pedro Alves <palves@redhat.com>
3728
3729 * ser-base.c (run_async_handler_and_reschedule): New.
3730 (fd_event, push_event): Use it.
3731 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3732 reference count to 1.
3733 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3734 instead of xfree.
3735 (serial_is_open, serial_ref, serial_unref): New.
3736 * serial.h (serial_open): Adjust comment.
3737 (serial_is_open): Declare.
3738 (serial_close): Adjust comment.
3739 (serial_ref, serial_unref) Declare.
3740 (struct serial): New field 'refcnt'.
3741
d5ad6aa5
PA
37422012-06-11 Pedro Alves <palves@redhat.com>
3743
3744 Remove #if 0'd "connect" command, and unnecessary associated
3745 refcounting and serial reuse bits.
3746
3747 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3748 * serial.c (last_serial_opened): Delete.
3749 (scb_base): Delete.
3750 (serial_open): Adjust.
3751 (serial_for_fd): Delete.
3752 (serial_fdopen_ops, do_serial_close): Adjust.
3753 (serial_fdopen_ops): Adjust.
3754
318aa544
PA
37552012-06-11 Pedro Alves <palves@redhat.com>
3756
3757 * serial.c (do_serial_close): Remove early return when SCB is
3758 null.
3759
07261596
TT
37602012-06-11 Tom Tromey <tromey@redhat.com>
3761
3762 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3763
cc80f267
JK
37642012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3765
3766 Fix regression by the "ambiguous linespec" series.
3767 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3768 get_last_displayed_symtab and get_last_displayed_line and depending
3769 on CURSAL.
3770
356d9f9d
TT
37712012-06-11 Tom Tromey <tromey@redhat.com>
3772
3773 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3774 (dw2_find_symbol_file): Use it.
3775
232b8704
ME
37762012-06-11 Michael Eager <eager@eagercon.com>
3777
3778 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3779 * mips-linux-tdep.h (mips_signals): New
3780
e81a37f7
TT
37812012-06-11 Tom Tromey <tromey@redhat.com>
3782
3783 * infrun.c (handle_inferior_event)
3784 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3785 breakpoint.
3786 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3787 exception logic in all cases. Update comments.
3788 (insert_longjmp_resume_breakpoint): Set the exception resume
3789 breakpoint.
3790
2e81047f
MR
37912012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3792
3793 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3794
4e32eda7
SCR
37952012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3796
3797 * valarith.c (binop_types_user_defined_p): Fix a typo.
3798
18648a37 37992012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3800 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3801
3802 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3803 * arch-utils.h: Declare.
3804 * gdbarch.sh: Add return_in_first_hidden_param_p.
3805 * gdbarch.c, gdbarch.h: Regenerated.
3806 * infcall.c (call_function_by_hand): Call
3807 gdbarch_return_in_first_hidden_param_p instead of
3808 language_pass_by_reference.
3809
3810 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3811 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3812 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3813 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3814 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3815 `cplus_return_struct_by_reference'.
3816 (tic6x_return_value): Handle language cplusplus.
3817 (tic6x_return_in_first_hidden_param_p): New.
3818 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3819
034e5797
DE
38202012-06-07 Doug Evans <dje@google.com>
3821
3822 * dwarf2read.c (dwarf2_cu): Add comment.
3823
6a00aa1e
MR
38242012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3825
3826 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3827 variable.
3828 (mips_eabi_push_dummy_call): Likewise.
3829 (mips_n32n64_push_dummy_call): Likewise.
3830 (mips_o32_push_dummy_call): Likewise.
3831 (mips_o64_push_dummy_call): Likewise.
3832
eaa05d59
MR
38332012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3834
3835 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3836
de13fcf2
MR
38372012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3838
3839 * mips-tdep.c (mips_pseudo_register_type): Use
3840 mips_float_register_p.
3841
c3a01a22
PA
38422012-06-06 Pedro Alves <palves@redhat.com>
3843
3844 * infrun.c (handle_inferior_event): Remove calls to
3845 reinit_frame_cache that follow a context_switch call.
3846
d25f45d9
PA
38472012-06-06 Pedro Alves <palves@redhat.com>
3848
3849 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3850 context_switch and remove stale comment.
3851
359f5fe6
PA
38522012-06-06 Pedro Alves <palves@redhat.com>
3853
3854 * infrun.c (struct execution_control_state): Remove
3855 `new_thread_event' field.
3856 (handle_inferior_event): Simplify new threads handling; don't
3857 resume the inferior if we find a new thread.
3858
2d4c29c5
TS
38592012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3860
3861 * NEWS: Document the deprecation of SH's 'regs' command.
3862 * inferior.h (all_registers_info): Add function declaration.
3863 * sh-tdep.c (sh_show_regs): Remove variable.
3864 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3865 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3866 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3867 (sh_show_regs_command): Remove functions.
3868 (sh_gdbarch_init): Don't set sh_show_regs.
3869 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3870 'info all-registers'.
3871 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3872 (sh64_show_regs): Remove functions.
3873 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3874
f5f1cdb6
JK
38752012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3876
3877 * configure.ac: Move development=true below AC_INIT.
3878 * configure: Regenerate.
3879
bf6309af
SS
38802012-06-05 Stan Shebs <stan@codesourcery.com>
3881
3882 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3883 gdb_stdout.
3884
45aa4659
JK
38852012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3886
3887 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3888 argument as ssize_t.
3889 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3890 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3891 * target.c (target_read_stack, target_write_memory)
3892 (target_write_raw_memory): Likewise.
3893 * target.h (target_read_stack, target_write_memory)
3894 (target_write_raw_memory): Likewise.
3895
1b162304
JK
38962012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3897
3898 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3899 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3900 * target.c (target_read_memory): Change LEN to ssize_t.
3901 * target.h (target_read_memory): Change LEN to ssize_t.
3902
8556afb4
PA
39032012-06-05 Pedro Alves <palves@redhat.com>
3904
3905 PR backtrace/13866
3906
3907 * breakpoint.c (until_break_command): Only fetch the selected
3908 frame after decode_line_1.
3909
fb139f32
PA
39102012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3911
3912 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3913 event breakpoint at _start, __start or main if a program
3914 interpreter is not found.
3915
a8e1bb34
JB
39162012-06-05 Joel Brobecker <brobecker@adacore.com>
3917
3918 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3919 Add declaration.
3920 * windows-tdep.c: #include "objfiles.h".
3921 (windows_iterate_over_objfiles_in_search_order): New function.
3922 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3923 iterate_over_objfiles_in_search_order gdbarch method to
3924 windows_iterate_over_objfiles_in_search_order.
3925 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3926
19630284
JB
39272012-06-05 Joel Brobecker <brobecker@adacore.com>
3928
3929 * gdbarch.sh: Add generation of
3930 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3931 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3932 (iterate_over_objfiles_in_search_order): New gdbarch method.
3933 * gdbarch.h, gdbarch.c: Regenerate.
3934 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3935 Add declaration.
3936 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3937 New function.
3938 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3939 out of lookup_symbol_aux_symtabs.
3940 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3941 call to lookup_symbol_aux_objfile.
3942 (struct global_sym_lookup_data): New type.
3943 (lookup_symbol_global_iterator_cb): New function.
3944 (lookup_symbol_global): Search for symbol using
3945 gdbarch_iterate_over_objfiles_in_search_order and
3946 lookup_symbol_global_iterator_cb.
3947 * findvar.c (struct minsym_lookup_data): New type.
3948 (minsym_lookup_iterator_cb): New function.
3949 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3950 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3951 and minsym_lookup_iterator_cb.
3952
67ff19f7
JB
39532012-06-05 Joel Brobecker <brobecker@adacore.com>
3954
3955 Revert the following patch:
3956 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3957 try locating the symbol in the symbol's own objfile first, before
3958 extending the search to all objfiles.
3959 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3960 out of lookup_symbol_aux_symtabs.
3961 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3962 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3963 Do not search EXCLUDE_OBJFILE.
3964 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3965 (lookup_symbol_global): Search for matches in the block's objfile
3966 first, before searching all other objfiles.
3967
ccab2054
JB
39682012-06-05 Joel Brobecker <brobecker@adacore.com>
3969
3970 * breakpoint.c (find_condition_and_thread): Stop parsing
3971 as soon as the first invalid keyword is found.
3972
e23d4a9c
JB
39732012-06-05 Joel Brobecker <brobecker@adacore.com>
3974
3975 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3976
70160166
JB
39772012-06-05 Joel Brobecker <brobecker@adacore.com>
3978
3979 * config/djgpp/djcheck.sh: Add copyright header.
3980
399501a5
JB
39812012-06-05 Joel Brobecker <brobecker@adacore.com>
3982
3983 * copyright.py (update_files, main): Fix path to update-copyright
3984 script.
3985
3770a159
JB
39862012-06-05 Joel Brobecker <brobecker@adacore.com>
3987
3988 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3989 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3990 for which a reminder to update by hand is printed.
3991
4aad0dfc
DE
39922012-06-04 Doug Evans <dje@google.com>
3993
3994 * buildsym.c (make_blockvector): Add comment.
3995
1f8cf220
PA
39962012-06-04 Pedro Alves <palves@redhat.com>
3997
3998 * arch-utils.c (default_gdb_signal_from_target): Delete.
3999 * arch-utils.h (default_gdb_signal_from_target): Delete.
4000 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4001 gdbarch_gdb_signal_from_target_p.
4002 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4003 predicate).
4004 * gdbarch.h: Regenerate.
4005 * gdbarch.c: Regenerate.
4006
86b49880
PA
40072012-06-04 Pedro Alves <palves@redhat.com>
4008
4009 * gdbarch.sh (gdb_signal_from_target): Mention that the
4010 implementation of the method must be host independent.
4011 * gdbarch.h: Regenerate.
4012
fe78531d
JK
40132012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4014
4015 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4016 parameters.
4017 (target_read_memory_bfd): New function.
4018 (symbol_file_add_from_memory): Use it.
4019
d790cf0a
DE
40202012-06-03 Doug Evans <dje@google.com>
4021
78e5175a
DE
4022 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4023 of primary symtab.
4024 (basic_lookup_transparent_type): Ditto.
4025
d790cf0a
DE
4026 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4027 (ALL_PRIMARY_SYMTABS): Use it.
4028 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4029 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4030 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4031 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4032 (basic_lookup_transparent_type): Ditto.
4033
c6e5ee5e
SDJ
40342012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4035
4036 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4037 it to optimize resolution of demangled name.
4038
a68ffae9
JK
40392012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4040
4041 * configure.ac (development): Define new variable.
4042 Call AC_CHECK_LIB for mcheck if $development.
4043 (ERROR_ON_WARNING): Enable it by default only if $development.
4044 * config.in: Regenerate.
4045 * configure: Regenerate.
4046
5299c1c4
JK
40472012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4048
4049 * target.c (target_read_memory): Make LEN argument as size_t.
4050 * target.h (target_read_memory): Likewise.
4051
40522012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4053
4054 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4055
0c56f59b
EBM
40562012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4057
4058 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4059 BookE interface for PowerPC server processors if not available
4060 in the Linux Kernel.
4061
71bdabee
KS
40622012-05-31 Keith Seitz <keiths@redhat.com>
4063
4064 * linespec.c (decode_objc): Add cleanup to free
4065 INFO.FILE_SYMTABS.
4066 (find_linespec_symbols): Add cleanup to free CLASSES.
4067 * symfile.c (find_separate_debug_file_by_debuglink): Add
4068 cleanup to free DEBUGLINK.
4069 * ui-out.c (clear_header_list): No need to check if
4070 HEADER_NEXT.COLHDR is NULL.
4071 Free HEADER_NEXT.COL_NAME.
4072
acbd605d
MGD
40732012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4074
4075 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4076 warning.
4077
65662cde
PA
40782012-05-30 Jeff Kenton <jkenton@tilera.com>
4079
4080 * configure.host (gdb_host_cpu): Handle tilegx*.
4081 (gdb_host): Handle tilegx-*-linux*.
4082 * tilegx-linux-nat.c: New file.
4083 * config/tilegx/linux.mh: New file.
4084
ade64f0e
PA
40852012-05-30 Jeff Kenton <jkenton@tilera.com>
4086
4087 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4088 tilegx-linux-tdep.o.
4089 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4090 tilegx-linux-tdep.c.
4091 * configure.tgt: Handle tilegx-*-linux*.
4092 * tilegx-tdep.h: New file.
4093 * tilegx-tdep.c: New file.
4094 * tilegx-linux-tdep.c: New file.
4095 * regformats/reg-tilegx.dat: New file.
4096
bb08bdbd
EBM
40972012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4098
4099 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4100 accounting of hw watchpoints on ppc.
4101
ebd86fb5
TJB
41022012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4103
4104 * source.c (openp): Expand tilde in path entries.
4105
0a0edcd5
DE
41062012-05-29 Doug Evans <dje@google.com>
4107
98cc87bd
DE
4108 * buildsym.c (block_compar): Fix comment.
4109 (end_symtab): Fix and clarify some comments.
4110
0a0edcd5
DE
4111 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4112 cleanup_undefined_types.
4113 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4114 All callers updated.
4115
6f0c7050
TT
41162012-05-29 Tom Tromey <tromey@redhat.com>
4117
4118 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4119 fails.
4120 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4121 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4122 fails.
4123 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4124 fails.
4125
ec95993c
TG
41262012-05-29 Tristan Gingold <gingold@adacore.com>
4127
4128 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4129 (struct darwin_info): ... New struct.
4130 (solib_darwin_pspace_data): New variable.
4131 (darwin_pspace_data_cleanup): New function.
4132 (get_darwin_info): Likewise.
4133 (darwin_dyld_version_ok, darwin_load_image_infos)
4134 (darwin_solib_get_all_image_info_addr_at_init)
4135 (darwin_solib_read_all_image_info_addr): Add info argument.
4136 Adjust code.
4137 (darwin_current_sos): Use per pspace structure.
4138 (darwin_solib_create_inferior_hook): Likewise.
4139 (darwin_clear_solib): Likewise.
4140 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4141
ae25568b
PA
41422012-05-28 Pedro Alves <palves@redhat.com>
4143
4144 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4145 block that uses them. Clear ecss before handling each event.
4146
0c5bf5a9
JK
41472012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4148
4149 * solib-svr4.c (svr4_current_sos): New comment on
4150 svr4_current_sos_via_xfer_libraries fall back.
4151
bfb05775
JK
41522012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4155 it as a fallback for TYPE_IS_OPAQUE.
4156 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4157 symbols for lookup_symbol.
4158
685b1105
JK
41592012-05-24 John Steele Scott <toojays@toojays.net>
4160
4161 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4162 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4163 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4164 (check_producer): ... this new function, which also checks for ICC
4165 and caches the result.
4166 (producer_is_icc): New function.
4167 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4168 producer was ICC.
4169
22203bbf
PA
41702012-05-24 Pedro Alves <palves@redhat.com>
4171
4172 PR gdb/7205
4173
4174 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4175 (default_gdb_signal_to_target): ... this. Add comment.
4176 (default_gdb_signal_from_host): Rename to ...
4177 (default_gdb_signal_from_target): ... this. Add comment.
4178 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4179 (default_gdb_signal_to_target): ... this.
4180 (default_gdb_signal_from_host): Rename to ...
4181 (default_gdb_signal_from_target): ... this.
4182 * corelow.c (core_open): Adjust to naming change. Replace comment.
4183 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4184 (gdb_signal_from_target): ... this. Adjust to
4185 default_gdb_signal_from_host naming change. Extend comment.
4186 (gdb_signal_to_host): Rename to ...
4187 (gdb_signal_to_target): ... this. Adjust to
4188 default_gdb_signal_to_host naming change.
4189 * gdbarch.h, gdbarch.c: Renegerate.
4190
a493e3e2
PA
41912012-05-24 Pedro Alves <palves@redhat.com>
4192
4193 PR gdb/7205
4194
f782ad9b 4195 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4196
2ea28649
PA
41972012-05-24 Pedro Alves <palves@redhat.com>
4198
4199 PR gdb/7205
4200
4201 Replace target_signal with gdb_signal throughout.
4202
b09846a9
PA
42032012-05-24 Pedro Alves <palves@redhat.com>
4204
4205 PR tui/14159
4206
4207 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4208 string, instead of reusing the va_list argument.
4209
e77c107e
TT
42102012-05-24 Tom Tromey <tromey@redhat.com>
4211
4212 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4213 Remove.
4214
9fccedf7
DE
42152012-05-23 Doug Evans <dje@google.com>
4216
d50bd42b
DE
4217 * symtab.c (search_symbols): Formatting fixes.
4218 (print_symbol_info): Formatting fixes.
4219
9fccedf7
DE
4220 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4221 int64_t change to leb128 API.
4222 (read_encoded_value, decode_frame_entry_1): Ditto.
4223 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4224 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4225 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4226 (execute_stack_op): Ditto.
4227 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4228 (safe_read_uleb128, safe_read_sleb128): Ditto.
4229 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4230 (dwarf2_compile_expr_to_ax): Ditto.
4231 (locexpr_describe_location_piece): Ditto.
4232 (disassemble_dwarf_expression): Ditto.
4233 (locexpr_describe_location_1): Ditto.
4234
f3e0e960
SS
42352012-05-23 Stan Shebs <stan@codesourcery.com>
4236 Kwok Cheung Yeung <kcy@codesourcery.com>
4237
4238 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4239 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4240 (mi-cmd-info.o): New rule.
4241 * osdata.h (info_osdata_command): New declaration.
4242 * osdata.c (info_osdata_command): Change to non-static.
4243 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4244 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4245 * mi/mi-cmd-info.c: New file.
4246
c51fe631
DE
42472012-05-23 Doug Evans <dje@google.com>
4248
71cddcc1
DE
4249 * symtab.c (search_symbols): Pass NULL for file_matcher to
4250 expand_symtabs_matching if there are no files to match.
4251
c51fe631
DE
4252 * gdbtypes.c (lookup_typename): Simplify.
4253
a79378d4
PA
42542012-05-23 Pedro Alves <palves@redhat.com>
4255
4256 * arch-utils.h (default_target_signal_to_host): Delete.
4257 * arch-utils.c (default_target_signal_to_host): Delete.
4258 * gdbarch.sh (target_signal_to_host): Remove.
4259 * gdbarch.h, gdbarch.c: Regenerate.
4260
f664829e
DE
42612012-05-22 Doug Evans <dje@google.com>
4262
4263 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4264 "const gdb_byte *".
4265 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4266 (execute_cfa_program): Update to match API of leb128 functions.
4267 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4268 "const gdb_byte *".
4269 (read_unsigned_leb128, read_signed_leb128): Delete.
4270 (read_initial_length): Change type of buf argument to
4271 "const gdb_byte *".
4272 (read_encoded_value): Update to match API of leb128 functions.
4273 (decode_frame_entry): Change result to "const gdb_byte *", and
4274 similarly for "start" parameter.
4275 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4276 (dwarf2_build_frame_info): Change local frame_ptr to
4277 "const gdb_byte *".
4278 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4279 read_uleb128, read_sleb128. All callers updated.
4280 (safe_skip_leb128): New function.
4281 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4282 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4283 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4284 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4285 read_uleb128, read_sleb128.
4286 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4287 (execute_stack_op): Update to match API of leb128 functions.
4288 * dwarf2expr.h: #include "leb128.h".
4289 (read_uleb128, read_sleb128): Delete.
4290 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4291 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4292 * dwarf2loc.c (debug_loc_kind): New enum.
4293 (decode_debug_loc_addresses): New function.
4294 (decode_debug_loc_dwo_addresses): New function.
4295 (dwarf2_find_location_expression): Rewrite.
4296 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4297 (locexpr_describe_location_piece): Ditto.
4298 (disassemble_dwarf_expression): Ditto.
4299 (locexpr_describe_location_1): Ditto.
4300 (loclist_describe_location): Rewrite.
4301 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4302 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4303 (dwarf2_section_buffer_overflow_complaint): Renamed from
4304 dwarf2_macros_too_long_complaint. All callers updated.
4305 (skip_leb128): Delete.
4306 (init_cu_die_reader): Initialize reader->buffer_end.
4307 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4308 (skip_form_bytes): New arg buffer_end. All callers updated.
4309 Replace call to skip_leb128 with gdb_skip_leb128.
4310 (skip_unknown_opcode): New arg mac_end. All callers updated.
4311 (fill_in_loclist_baton): Initialize baton->from_dwo.
4312
837a1b32
MR
43132012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4314
4315 * mips-linux-nat.c (mips_linux_read_description): Use a more
4316 verbose error message.
4317
d0e64392
MR
43182012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4319
4320 * NEWS: Add MIPS/Linux DSP support.
4321 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4322 (SIGCONTEXT_DSPCTL): New macro.
4323 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4324 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4325 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4326 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4327 (N64_SIGCONTEXT_HI3): Likewise.
4328 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4329 (N64_SIGCONTEXT_LO3): Likewise.
4330 (N64_SIGCONTEXT_DSPCTL): Likewise.
4331 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4332 (mips_linux_o32_sigframe_init): Handle DSP registers.
4333 (mips_linux_n32n64_sigframe_init): Likewise.
4334
8bea7ed1
PM
43352012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4336
4337 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4338 call to abort.
4339
dab06dbe
PA
43402012-05-22 Pedro Alves <palves@redhat.com>
4341
4342 * target.h (store_waitstatus): Move declaration ...
4343 * inf-child.h (store_waitstatus): ... here.
4344 * target.c: Move inclusion of gdb_wait.h, and ...
4345 (store_waitstatus): ... this ...
4346 * inf-child.c: ... here.
4347 * linux-nat.c: Include inf-child.h.
4348 * rs6000-nat.c: Include inf-child.h.
4349 * spu-linux-nat.c: Include inf-child.h.
4350
43011e52
PM
43512012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4352
4353 * tracepoint.c (start_tracing): Add missing i18n markup.
4354 (stop_tracing, set_trace_user): Ditto.
4355 (set_trace_notes, set_trace_stop_notes): Ditto.
4356
b1af9e97
TT
43572012-05-21 Tom Tromey <tromey@redhat.com>
4358
4359 PR c++/7173:
4360 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4361 types.
4362 * value.h (value_cast_pointers): Update.
4363 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4364 (value_cast): Update.
4365 (update_search_result): New function.
4366 (do_search_struct_field): New, from search_struct_field. Check
4367 for ambiguous results.
4368 (search_struct_field): Rewrite.
4369 * infcall.c (value_arg_coerce): Update.
4370 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4371 value_cast_pointers.
4372 * ada-lang.c (ada_convert_actual): Update.
4373
e9e5e6b3
TT
43742012-05-21 Tom Tromey <tromey@redhat.com>
4375
4376 * macroexp.c (macro_stringify): Terminate the string.
4377
1564a261
JK
43782012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4379
4380 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4381 Describe it.
4382 * auto-load.c (auto_load_expand_dir_vars): New function.
4383 (auto_load_safe_path_vec_update): Use it, remove the
4384 substitute_path_component call thanks to it.
4385 (auto_load_objfile_script): Remove the debug_file_directory processing.
4386 Use auto_load_expand_dir_vars, remove the substitute_path_component
4387 call thanks to it.
4388 * configure: Regenerate.
4389 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4390 path. Escape $ also for $debugdir.
4391 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4392 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4393
a3ec0bb1
DE
43942012-05-20 Doug Evans <dje@google.com>
4395
4396 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4397 before use. Check for symtab->includes == NULL before scanning it.
4398
d467df4e
MR
43992012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4400
4401 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4402
4cc0665f
MR
44032012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4404
4405 * NEWS: Add microMIPS support and "set mips compression",
4406 "show mips compression" commands.
4407 * mips-tdep.h (mips_isa): New enum.
4408 (gdbarch_tdep): Add mips_isa.
4409 (mips_pc_is_mips16): Update prototype.
4410 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4411 * mips-tdep.c (mips_compression_mips16): New variable.
4412 (mips_compression_micromips): Likewise.
4413 (mips_compression_strings): Likewise.
4414 (mips_compression_string): Likewise.
4415 (is_mips16_isa, is_micromips_isa): New functions.
4416 (is_mips16_addr): Rename to...
4417 (is_compact_addr): ... this.
4418 (unmake_mips16_addr): Likewise to...
4419 (unmake_compact_addr): ... this.
4420 (make_mips16_addr): Likewise to...
4421 (make_compact_addr): ... this.
4422 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4423 functions.
4424 (mips_elf_make_msymbol_special): Handle microMIPS code.
4425 (msymbol_is_special): Rename to...
4426 (msymbol_is_mips16): ... this.
4427 (mips_make_symbol_special, mips_pc_is_mips16): Update
4428 accordingly.
4429 (msymbol_is_mips, msymbol_is_micromips): New functions.
4430 (mips16_to_32_reg): Rename to...
4431 (mips_reg3_to_reg): ... this.
4432 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4433 (mips_pc_isa): Likewise.
4434 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4435 code.
4436 (mips_fetch_instruction): Pass return status instead of printing
4437 an error message if requested. Handle microMIPS code. Bail out
4438 on an invalid ISA.
4439 (micromips_op): New macro.
4440 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4441 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4442 (b6s4_op, b7s3_reg): Likewise.
4443 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4444 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4445 (mips_insn_size): New function.
4446 (mips32_next_pc): Update mips_fetch_instruction call.
4447 (micromips_relative_offset7): New function.
4448 (micromips_relative_offset10): Likewise.
4449 (micromips_relative_offset16): Likewise.
4450 (micromips_pc_insn_size): Likewise.
4451 (micromips_bc1_pc): Likewise.
4452 (micromips_next_pc): Likewise.
4453 (unpack_mips16): Update mips_fetch_instruction call.
4454 (extended_mips16_next_pc): Update according to change to
4455 mips16_to_32_reg.
4456 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4457 code.
4458 (mips16_scan_prologue): Update mips_fetch_instruction call.
4459 Update according to change to mips16_to_32_reg.
4460 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4461 (mips_insn16_frame_base_sniffer): Likewise.
4462 (micromips_decode_imm9): New function.
4463 (micromips_scan_prologue): Likewise.
4464 (mips_micro_frame_cache): Likewise.
4465 (mips_micro_frame_this_id): Likewise.
4466 (mips_micro_frame_prev_register): Likewise.
4467 (mips_micro_frame_sniffer): Likewise.
4468 (mips_micro_frame_unwind): New variable.
4469 (mips_micro_frame_base_address): New function.
4470 (mips_micro_frame_base): New variable.
4471 (mips_micro_frame_base_sniffer): New function.
4472 (mips32_scan_prologue): Update mips_fetch_instruction call.
4473 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4474 rather than for MIPS16.
4475 (mips_insn32_frame_base_sniffer): Likewise.
4476 (mips_addr_bits_remove): Handle microMIPS code.
4477 (deal_with_atomic_sequence): Rename to...
4478 (mips_deal_with_atomic_sequence): ... this. Update the type
4479 of the variable used to hold an instruction. Remove the ISA bit
4480 check. Update mips_fetch_instruction call.
4481 (micromips_deal_with_atomic_sequence): New function.
4482 (deal_with_atomic_sequence): Likewise.
4483 (mips_about_to_return): Handle microMIPS code. Update
4484 mips_fetch_instruction call.
4485 (heuristic_proc_start): Check for the standard MIPS ISA rather
4486 than for MIPS16. Update mips_pc_is_mips16 and
4487 mips_fetch_instruction calls. Handle microMIPS code.
4488 (mips_push_dummy_code): Handle microMIPS code.
4489 (mips_eabi_push_dummy_call): Likewise.
4490 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4491 (mips_o64_push_dummy_call): Handle microMIPS code.
4492 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4493 (is_delayed): Remove function.
4494 (mips_single_step_through_delay): Replace the call to is_delayed
4495 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4496 Handle microMIPS code.
4497 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4498 microMIPS code.
4499 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4500 call.
4501 (micromips_in_function_epilogue_p): New function.
4502 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4503 call.
4504 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4505 Handle microMIPS.
4506 (gdb_print_insn_mips): Likewise.
4507 (mips_breakpoint_from_pc): Likewise.
4508 (mips_remote_breakpoint_from_pc): New function.
4509 (mips32_instruction_has_delay_slot): Simplify making use of the
4510 updated mips_fetch_instruction interface.
4511 (micromips_instruction_has_delay_slot): New function.
4512 (mips16_instruction_has_delay_slot): Simplify making use of the
4513 updated mips_fetch_instruction interface.
4514 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4515 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4516 calls. Handle microMIPS code.
4517 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4518 (mips_skip_trampoline_code): Handle microMIPS code.
4519 (global_mips_compression): New function.
4520 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4521 file flags. Register the microMIPS remote breakpoint handler
4522 and heuristic frame unwinder.
4523 (show_mips_compression): New function.
4524 (_initialize_mips_tdep): Add the "set mips compression" and
4525 "show mips compression" commands.
4526
22e048c9
SDJ
45272012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4528
4529 * ada-lang.c:
4530 * ada-tasks.c:
4531 * ada-varobj.c:
4532 * amd64-darwin-tdep.c:
4533 * arm-symbian-tdep.c:
4534 * arm-tdep.c:
4535 * avr-tdep.c:
4536 * ax-gdb.c:
4537 * bfin-linux-tdep.c:
4538 * breakpoint.c:
4539 * c-valprint.c:
4540 * cli/cli-cmds.c:
4541 * coffread.c:
4542 * cp-support.c:
4543 * cris-tdep.c:
4544 * dwarf2-frame-tailcall.c:
4545 * dwarf2-frame.c:
4546 * dwarf2expr.c:
4547 * dwarf2loc.c:
4548 * dwarf2read.c:
4549 * elfread.c:
4550 * eval.c:
4551 * expprint.c:
4552 * f-valprint.c:
4553 * frv-tdep.c:
4554 * h8300-tdep.c:
4555 * hppa-hpux-tdep.c:
4556 * hppa-tdep.c:
4557 * hppanbsd-tdep.c:
4558 * i386-nto-tdep.c:
4559 * i386-tdep.c:
4560 * i387-tdep.c:
4561 * ia64-tdep.c:
4562 * jit.c:
4563 * linespec.c:
4564 * linux-tdep.c:
4565 * lm32-tdep.c:
4566 * m2-valprint.c:
4567 * m32c-tdep.c:
4568 * m32r-rom.c:
4569 * m32r-tdep.c:
4570 * m68k-tdep.c:
4571 * m68klinux-tdep.c:
4572 * mi/mi-main.c:
4573 * microblaze-tdep.c:
4574 * mips-linux-tdep.c:
4575 * mips-tdep.c:
4576 * mn10300-tdep.c:
4577 * p-valprint.c:
4578 * parse.c:
4579 * ppc-linux-tdep.c:
4580 * ppc-sysv-tdep.c:
4581 * printcmd.c:
4582 * python/py-finishbreakpoint.c:
4583 * python/py-inferior.c:
4584 * python/py-infthread.c:
4585 * python/py-type.c:
4586 * python/python.c:
4587 * remote-fileio.c:
4588 * remote-m32r-sdi.c:
4589 * remote-mips.c:
4590 * reverse.c:
4591 * rl78-tdep.c:
4592 * rs6000-aix-tdep.c:
4593 * rs6000-tdep.c:
4594 * s390-tdep.c:
4595 * score-tdep.c:
4596 * sh64-tdep.c:
4597 * skip.c:
4598 * solib-darwin.c:
4599 * solib-dsbt.c:
4600 * solib-frv.c:
4601 * sparc-tdep.c:
4602 * spu-multiarch.c:
4603 * spu-tdep.c:
4604 * stack.c:
4605 * symfile.c:
4606 * symtab.c:
4607 * tic6x-tdep.c:
4608 * tracepoint.c:
4609 * v850-tdep.c:
4610 * valarith.c:
4611 * valprint.c:
4612 * value.c:
4613 * xcoffread.c:
4614 * xtensa-tdep.c:
4615 * ada-lang.c:
4616 * ada-tasks.c:
4617 * ada-varobj.c:
4618 * amd64-darwin-tdep.c:
4619 * arm-symbian-tdep.c:
4620 * arm-tdep.c: Delete unused variables.
4621
aff139ff
JK
46222012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4623
4624 Rename $ddir to $datadir.
4625 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4626 * auto-load.c (auto_load_safe_path_vec_update)
4627 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4628 * configure: Regenerate.
4629 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4630 Likewise. Remove the 'use $ddir' help string.
4631
f7bfa992
JK
46322012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4633
4634 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4635 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4636
9cb709b6
TT
46372012-05-18 Tom Tromey <tromey@redhat.com>
4638
4639 PR exp/13907:
4640 * valprint.h (struct value_print_options) <symbol_print>: New
4641 field.
4642 * valprint.c (user_print_options): Add default for symbol_print.
4643 (show_symbol_print): New function.
4644 (generic_val_print): Respect symbol_print.
4645 (_initialize_valprint): Add "print symbol" setting.
4646 * f-valprint.c (f_val_print): Respect symbol_print.
4647 * c-valprint.c (c_val_print): Respect symbol_print.
4648 * NEWS: Update.
4649 * printcmd.c (print_address_symbolic): Return int. Ignore some
4650 zero-size symbols.
4651 (print_address_demangle): Return int.
4652 * defs.h: (print_address_symbolic): Return int.
4653 * value.h (print_address_demangle): Return int.
4654
b012acdd
TT
46552012-05-18 Tom Tromey <tromey@redhat.com>
4656
4657 * valprint.c (val_print_string): Don't print leading space.
4658 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4659 print space before string or vtbl.
4660 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4661 before string.
4662 * jv-valprint.c (java_value_print): Print space before string.
4663 * go-valprint.c (print_go_string): Print space before string.
4664 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4665 space before string.
4666 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4667 space before string or vtbl.
4668 * auxv.c (fprint_target_auxv): Print space after address.
4669
1d51a733
TT
46702012-05-18 Tom Tromey <tromey@redhat.com>
4671
4672 * printcmd.c (print_address_demangle): Remove special case for 0.
4673
edf0c1b7
TT
46742012-05-18 Tom Tromey <tromey@redhat.com>
4675
4676 * printcmd.c (print_address_demangle): Add 'opts' argument.
4677 * p-valprint.c (pascal_val_print): Update.
4678 * jv-valprint.c (java_val_print): Update.
4679 * value.h: Update.
4680 * valprint.c (generic_val_print): Update.
4681 (print_function_pointer_address): Add 'options' argument. Remove
4682 'addressprint' argument. Update.
4683 * m2-valprint.c (print_unpacked_pointer): Update.
4684 * gnu-v3-abi.c (print_one_vtable): Update.
4685 (gnuv3_print_method_ptr): Update.
4686 * f-valprint.c (f_val_print): Update.
4687 * cp-valprint.c (cp_print_value_fields): Update.
4688 * valprint.h (print_function_pointer_address): Update.
4689 * c-valprint.c (c_val_print): Update.
4690
9703b513
TT
46912012-05-18 Tom Tromey <tromey@redhat.com>
4692
4693 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4694 directly corresponding to the found psymtab.
4695 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4696 (dw2_find_pc_sect_symtab): Use it.
4697 * block.h (blockvector_contains_pc): Declare.
4698 * block.c (find_block_in_blockvector): New function.
4699 (blockvector_for_pc_sect): Use it.
4700 (blockvector_contains_pc): New function.
4701
5a439849
MR
47022012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4703
4704 * mips-tdep.h (mips_write_pc): New prototype.
4705 * mips-tdep.c (mips_write_pc): Make external, add description.
4706 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4707 add description.
4708
8376de04
MR
47092012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4710
4711 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4712 mips_regnum->pc.
4713 (mips_unwind_pc, mips_write_pc): Likewise.
4714 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4715 gdbarch_read_pc.
4716
d3581e61
JB
47172012-05-17 Joel Brobecker <brobecker@adacore.com>
4718
4719 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4720 proc_warn, proc_error, proc_get_status, proc_flags,
4721 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4722 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4723 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4724 proc_stop_process, proc_wait_for_stop, proc_run_process,
4725 proc_set_traced_signals, proc_set_traced_faults,
4726 proc_set_traced_sysentry, proc_set_traced_sysexit,
4727 proc_set_held_signals, proc_get_held_signals,
4728 proc_get_traced_signals, proc_get_traced_faults,
4729 proc_get_traced_sysentry, proc_get_traced_sysexit,
4730 proc_clear_current_fault, proc_set_current_signal,
4731 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4732 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4733 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4734 proc_get_current_thread, proc_get_current_thread,
4735 proc_get_current_thread, proc_update_threads,
4736 proc_update_threads, proc_update_threads, proc_update_threads,
4737 proc_iterate_over_threads, procfs_find_new_threads,
4738 procfs_pid_to_str): Make static. Remove advance declaration.
4739 (proc_cursig): Make static. Conditionalized defintion on
4740 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4741 (proc_syscall, proc_set_kill_on_last_close,
4742 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4743 proc_get_pending_signals, proc_get_signal_actions,
4744 proc_trace_signal, proc_ignore_signal): Delete.
4745
81b9b86e
SDJ
47462012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4747
4748 * coffread.c (cs_section_address): Passing proper argument for
4749 `bfd_get_section_vma'.
4750 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4751 `bfd_get_section_flags'.
4752 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4753 `bfd_get_section_vma'.
4754
abc9d0dc
TT
47552012-05-16 Tom Tromey <tromey@redhat.com>
4756
4757 PR macros/13205:
4758 * macrotab.h: (macro_define_special): Declare.
4759 (enum macro_special_kind): New.
4760 (struct macro_definition) <argc, replacement>: Update comments.
4761 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4762 (macro_define_object_internal): New function.
4763 (macro_define_object): Use it.
4764 (macro_define_special): New function.
4765 (fixup_definition): New function.
4766 (macro_lookup_definition, foreach_macro_in_scope)
4767 (foreach_macro): Use fixup_definition.
4768 * macroexp.h (macro_stringify): Declare.
4769 * macroexp.c (free_buffer_return_text): New function.
4770 (stringify): Constify "arg".
4771 (macro_stringify): New function.
4772 * dwarf2read.c (macro_start_file): Call macro_define_special.
4773
6a3a010b 47742012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4775 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4776
4777 * breakpoint.h (bp_location): Add related_address member.
4778 * inferior.h (get_return_value): Take a pointer to struct value
4779 instead of struct type for the function requested.
4780 * value.h (using_struct_return): Likewise.
4781 * gdbarch.sh (return_value): Take a pointer to struct value
4782 instead of struct type for the function requested.
4783 * breakpoint.c (set_breakpoint_location_function): Initialize
4784 related_address for bp_gnu_ifunc_resolver breakpoints.
4785 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4786 requested function's address to gdbarch_return_value.
4787 * eval.c (evaluate_subexp_standard): Pass the requested
4788 function's address to using_struct_return.
4789 * infcall.c (call_function_by_hand): Pass the requested
4790 function's address to using_struct_return and
4791 gdbarch_return_value.
4792 * infcmd.c (get_return_value): Take a pointer to struct value
4793 instead of struct type for the function requested.
4794 (print_return_value): Update accordingly.
4795 (finish_command_continuation): Likewise.
4796 * stack.c (return_command): Pass the requested function's
4797 address to using_struct_return and gdbarch_return_value.
4798 * value.c (using_struct_return): Take a pointer to struct value
4799 instead of struct type for the function requested. Pass the
4800 requested function's address to gdbarch_return_value.
4801 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4802 New function_value member, replacing function_type.
4803 (bpfinishpy_dealloc): Update accordingly.
4804 (bpfinishpy_pre_stop_hook): Likewise.
4805 (bpfinishpy_init): Likewise. Record the requested function's
4806 address.
4807 * mips-tdep.c (mips_fval_reg): New enum.
4808 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4809 words put in GP registers.
4810 (mips_o64_push_dummy_call): Update a comment.
4811 (mips_o32_return_value): Take a pointer to struct value instead
4812 of struct type for the function requested and use it to check if
4813 using the MIPS16 calling convention. Return the designated
4814 general purpose registers for floating-point values returned in
4815 MIPS16 mode.
4816 (mips_o64_return_value): Likewise.
4817 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4818 (ppc_sysv_abi_broken_return_value): Likewise.
4819 (ppc64_sysv_abi_return_value): Likewise.
4820 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4821 value instead of struct type for the function requested.
4822 * amd64-tdep.c (amd64_return_value): Likewise.
4823 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4824 * arm-tdep.c (arm_return_value): Likewise.
4825 * avr-tdep.c (avr_return_value): Likewise.
4826 * bfin-tdep.c (bfin_return_value): Likewise.
4827 * cris-tdep.c (cris_return_value): Likewise.
4828 * frv-tdep.c (frv_return_value): Likewise.
4829 * h8300-tdep.c (h8300_return_value): Likewise.
4830 (h8300h_return_value): Likewise.
4831 * hppa-tdep.c (hppa32_return_value): Likewise.
4832 (hppa64_return_value): Likewise.
4833 * i386-tdep.c (i386_return_value): Likewise.
4834 * ia64-tdep.c (ia64_return_value): Likewise.
4835 * iq2000-tdep.c (iq2000_return_value): Likewise.
4836 * lm32-tdep.c (lm32_return_value): Likewise.
4837 * m32c-tdep.c (m32c_return_value): Likewise.
4838 * m32r-tdep.c (m32r_return_value): Likewise.
4839 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4840 * m68k-tdep.c (m68k_return_value): Likewise.
4841 (m68k_svr4_return_value): Likewise.
4842 * m88k-tdep.c (m88k_return_value): Likewise.
4843 * mep-tdep.c (mep_return_value): Likewise.
4844 * microblaze-tdep.c (microblaze_return_value): Likewise.
4845 * mn10300-tdep.c (mn10300_return_value): Likewise.
4846 * moxie-tdep.c (moxie_return_value): Likewise.
4847 * mt-tdep.c (mt_return_value): Likewise.
4848 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4849 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4850 (ppc_sysv_abi_broken_return_value): Likewise.
4851 (ppc64_sysv_abi_return_value): Likewise.
4852 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4853 * rl78-tdep.c (rl78_return_value): Likewise.
4854 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4855 * rx-tdep.c (rx_return_value): Likewise.
4856 * s390-tdep.c (s390_return_value): Likewise.
4857 * score-tdep.c (score_return_value): Likewise.
4858 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4859 (sh_return_value_fpu): Likewise.
4860 * sh64-tdep.c (sh64_return_value): Likewise.
4861 * sparc-tdep.c (sparc32_return_value): Likewise.
4862 * sparc64-tdep.c (sparc64_return_value): Likewise.
4863 * spu-tdep.c (spu_return_value): Likewise.
4864 * tic6x-tdep.c (tic6x_return_value): Likewise.
4865 * v850-tdep.c (v850_return_value): Likewise.
4866 * vax-tdep.c (vax_return_value): Likewise.
4867 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4868 * xtensa-tdep.c (xtensa_return_value): Likewise.
4869 * gdbarch.c: Regenerate.
4870 * gdbarch.h: Regenerate.
4871
29ca12b3
TT
48722012-05-15 Tom Tromey <tromey@redhat.com>
4873
4874 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4875
588ae58c
JB
48762012-05-15 Joel Brobecker <brobecker@adacore.com>
4877
4878 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4879 of command in two error message.
4880
855a6e68
JB
48812012-05-15 Joel Brobecker <brobecker@adacore.com>
4882
4883 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4884
d634f2de
JB
48852012-05-15 Joel Brobecker <brobecker@adacore.com>
4886
4887 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4888
9cc815f5
JK
48892012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4890
4891 * NEWS (show auto-load scripts-directory): Add forgotten command.
4892
6a609e58
JK
48932012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4894
4895 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4896 parameters.
4897
ac1438b5
L
48982012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4899
4900 * amd64-tdep.c: Include features/i386/x32.c and
4901 features/i386/x32-avx.c.
4902 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4903 initialize_tdesc_x32_avx.
4904
e7e0cddf
SS
49052012-05-14 Stan Shebs <stan@codesourcery.com>
4906
4907 Add dynamic printf.
4908 * breakpoint.h (enum bptype): New type bp_dprintf.
4909 (struct breakpoint): New field extra_string.
4910 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4911 (create_breakpoint): Add extra_string arg.
4912 * breakpoint.c (dprintf_breakpoint_ops): New.
4913 (is_breakpoint): Add bp_dprintf.
4914 (bpstat_what): Add dprintf case.
4915 (bptype_string): Ditto.
4916 (print_one_breakpoint_location): Ditto.
4917 (init_bp_location): Ditto.
4918 (bkpt_print_mention): Ditto.
4919 (dprintf_style_enums): New array.
4920 (dprintf_style): New global.
4921 (dprintf_function): New global.
4922 (dprintf_channel): New global.
4923 (update_dprintf_command_list): New function.
4924 (update_dprintf_commands): New function.
4925 (init_breakpoint_sal): Add extra_string argument, handle it.
4926 (create_breakpoint_sal): Add extra_string argument.
4927 (create_breakpoints_sal): Add extra_string argument, update callers.
4928 (find_condition_and_thread): Add extra argument.
4929 (create_breakpoint): Add extra_string argument, record it.
4930 (dprintf_command): New function.
4931 (break_command_1): Add arg to create_breakpoint call.
4932 (handle_gnu_v3_exceptions): Ditto.
4933 (trace_command): Ditto.
4934 (ftrace_command): Ditto.
4935 (strace_command): Ditto.
4936 (bkpt_print_mention): Add dprintf case.
4937 (create_breakpoint_sal_default): Add extra_string argument.
4938 (_initialize_breakpoint): Add new commands.
4939 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4940 * python/py-breakpoint.c (bppy_init): Ditto.
4941 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4942
8ae38c14
MR
49432012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4944
4945 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4946
9f676e66
SCR
49472012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4948
4949 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4950 unsigned long long.
4951
7efc75aa
SCR
49522012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4953
4954 Add a new function gdb.find_pc_line to the Python API.
4955 * NEWS (Python Scripting): Add entry about the new function.
4956 * python/python.c (gdbpy_find_pc_line): New function which
4957 implements gdb.find_pc_line.
4958 (GdbMethods): Add entry for the new function.
4959
70af3797
PA
49602012-05-12 Pedro Alves <palves@redhat.com>
4961
4962 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4963 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4964
06da564e
EZ
49652012-05-12 Eli Zaretskii <eliz@gnu.org>
4966
4967 * inferior.c: Include completer.h
4968 (initialize_inferiors): Set completer of add-inferior to
4969 filename_completer.
4970
0288cee2
L
49712012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4972
4973 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4974 gdbarch_ptr_bit for x32 core dump.
4975
f6537a2c
L
49762012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4977
4978 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4979 and features/i386/x32-avx-linux.c.
4980
85d4a676
SS
49812012-05-11 Stan Shebs <stan@codesourcery.com>
4982 Kwok Cheung Yeung <kcy@codesourcery.com>
4983
4984 * NEWS: Describe new info os commands.
4985 * common/linux-osdata.c (PID_T, TIME_T): Define.
4986 (MAX_PID_T_STRLEN): New.
4987 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4988 MAX_PID_T_STRLEN.
4989 (command_from_pid): Add comment. Change to use PID_T.
4990 (commandline_from_pid): Change to use PID_T.
4991 (user_from_pid): Add comment.
4992 (get_process_owner): Add comment. Change to use PID_T and
4993 MAX_PID_T_STRLEN.
4994 (get_number_of_cpu_cores): Add comment.
4995 (get_cores_used_by_process): Add comment. Change to use PID_T and
4996 MAX_PID_T_STRLEN.
4997 (linux_xfer_osdata_processes): Change to use PID_T and
4998 MAX_PID_T_STRLEN.
4999 (compare_processes): New function.
5000 (linux_xfer_osdata_processgroups): New function.
5001 (linux_xfer_osdata_threads): Change to use PID_T.
5002 (linux_xfer_osdata_fds): New function.
5003 (format_socket_state, print_sockets): New functions.
5004 (union socket_addr): New union.
5005 (linux_xfer_osdata_isockets): New function.
5006 (time_from_time_t, group_from_gid): New functions.
5007 (linux_xfer_osdata_shm): New function.
5008 (linux_xfer_osdata_sem): New function.
5009 (linux_xfer_osdata_msg): New function.
5010 (linux_xfer_osdata_modules): New function.
5011 (osdata_table): Add new entries.
5012 * common/buffer.c (buffer_xml_printf): Add support for long and
5013 long long format specifiers.
5014
f24afd6d
L
50152012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5016
5017 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5018 (tdesc_x32_avx_linux): Likewise.
5019
7349ff92
JK
50202012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5021
5022 Implement multi-component --with-auto-load-dir.
5023 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5024 entries.
5025 (--with-auto-load-safe-path): Update the default value description.
5026 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5027 New.
5028 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5029 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5030 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5031 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5032 "set auto-load scripts-directory".
5033 * config.in: Regenerate.
5034 * configure: Regenerate.
5035 * configure.ac (--with-auto-load-dir): New configure option.
5036 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5037
6dea1fbd
JK
50382012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5039
5040 Provide $ddir substitution for --with-auto-load-safe-path.
5041 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5042 entries.
5043 * auto-load.c: Include observer.h.
5044 (auto_load_safe_path_vec_update): Call substitute_path_component for
5045 each component. New variable ddir_subst.
5046 (auto_load_gdb_datadir_changed): New function.
5047 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5048 AUTO_LOAD_SAFE_PATH. New comment.
5049 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5050 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5051 * config.in: Regenerate.
5052 * configure: Regenerate.
5053 * configure.ac (--auto-load-safe-path): Rename
5054 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5055 GDB_DATADIR/auto-load.
5056 * defs.h (substitute_path_component): New declaration.
5057 * top.c: Include observer.h.
5058 (set_gdb_datadir): New function.
5059 (init_main): Install it for "set data-directory".
5060 * utils.c (substitute_path_component): New function.
5061
b09aca3a
JK
50622012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5063
5064 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5065 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5066 DEBUG_FILE_DIRECTORY. Handle multiple components of
5067 DEBUG_FILE_DIRECTORY.
5068
95554aad
TT
50692012-05-10 Tom Tromey <tromey@redhat.com>
5070
5071 * dwarf2read.c (recursively_write_psymbols): New function.
5072 (write_psymtabs_to_index): Use it.
5073
5074 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5075 field.
5076 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5077 (load_partial_comp_unit): Update.
5078 (queue_comp_unit): Add argument 'pretend_language'.
5079 (process_queue): Update.
5080 (psymtab_to_symtab_1): Skip dependencies that have a user.
5081 (load_partial_comp_unit_reader): Give meaning to the 'data'
5082 argument.
5083 (load_full_comp_unit): Add 'pretend_language' argument.
5084 (process_full_comp_unit): Add 'pretend_language' argument. Set
5085 language on CU.
5086 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5087 Update.
5088 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5089 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5090 Update.
5091 (prepare_one_comp_unit): Add 'pretend_language' argument.
5092
5093 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5094 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5095 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5096 (dw2_do_instantiate_symtab): Check whether symtab was read in
5097 before queueing.
5098 (dw2_instantiate_symtab): Add assertion. Call
5099 process_cu_includes.
5100 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5101 (partial_symtab_p): New typedef.
5102 (set_partial_user): New function.
5103 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5104 (scan_partial_symbols): Add imported CU to imported_symtabs.
5105 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5106 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5107 (get_symtab, recursively_compute_inclusions)
5108 (compute_symtab_includes, process_cu_includes)
5109 (process_imported_unit_die): New functions.
5110 (process_die) <DW_TAG_imported_unit>: New case.
5111 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5112
5113 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5114 comment.
5115 (struct partial_die_info) <locdesc>: Remove.
5116 <d>: New field.
5117 (process_psymtab_comp_unit): Add 'read_partial' argument.
5118 Update.
5119 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5120 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5121 (add_partial_symbol): Update.
5122 (process_die): Handle DW_TAG_partial_unit.
5123 (read_file_scope): Update comment.
5124 (load_partial_dies): Handle DW_TAG_imported_unit.
5125 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5126 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5127
e871fbb9
TT
51282012-05-10 Tom Tromey <tromey@redhat.com>
5129
5130 * cc-with-dwz.sh: New file.
5131
b5b04b5b
TT
51322012-05-10 Tom Tromey <tromey@redhat.com>
5133
5134 * symtab.h (struct symtab) <includes, user>: New fields.
5135 * block.h (struct block_iterator) <d, idx, which>: New fields.
5136 * block.c (initialize_block_iterator, find_iterator_symtab)
5137 (block_iterator_step, block_iter_name_step)
5138 (block_iter_match_step): New functions.
5139 (block_iterator_first, block_iterator_next)
5140 (block_iter_name_first, block_iter_name_next)
5141 (block_iter_match_first, block_iter_match_next): Rewrite.
5142 (get_block_symtab): New function.
5143
84a146c9
TT
51442012-05-10 Tom Tromey <tromey@redhat.com>
5145
5146 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5147 set_block_symtab.
5148 * jit.c (finalize_symtab): Use allocate_global_block,
5149 set_block_symtab.
5150 * buildsym.c (finish_block_internal): New function, from old
5151 finish_block.
5152 (finish_block): Rewrite.
5153 (end_symtab): Use finish_block_internal, set_block_symtab.
5154 * block.h (struct global_block): New.
5155 (allocate_global_block, set_block_symtab): Declare.
5156 * block.c (allocate_global_block, set_block_symtab): New
5157 functions.
5158
9439a077
TT
51592012-05-10 Tom Tromey <tromey@redhat.com>
5160
5161 * psymtab.c (partial_map_expand_apply): Add assertion.
5162 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5163 (psymtab_to_symtab): Find unshared psymtab.
5164 (dump_psymtab): Print including psymtabs.
5165 (recursively_search_psymtabs): New function.
5166 (expand_symtabs_matching_via_partial): Use it.
5167 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5168 fields.
5169 (enum psymtab_search_status): New.
5170
8157b174
TT
51712012-05-10 Tom Tromey <tromey@redhat.com>
5172
5173 * tracepoint.c (scope_info): Update.
5174 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5175 (find_pc_sect_symtab, search_symbols)
5176 (default_make_symbol_completion_list_break_on)
5177 (make_file_symbol_completion_list): Update.
5178 * symmisc.c (dump_symtab_1): Update.
5179 * stack.c (print_frame_args, iterate_over_block_locals)
5180 (print_frame_labels, iterate_over_block_arg_vars): Update.
5181 * python/py-block.c (block_object) <dict>: Remove.
5182 <block>: New field.
5183 <iter>: Change type.
5184 (blpy_iter): Update.
5185 (blpy_block_syms_iternext): Update.
5186 * psymtab.c (map_block): Use block iterators.
5187 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5188 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5189 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5190 * infrun.c (check_exception_resume): Update.
5191 * cp-support.c (make_symbol_overload_list_block): Update.
5192 * coffread.c (patch_opaque_types): Update.
5193 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5194 * block.h (struct block_iterator): New.
5195 (block_iterator_first, block_iterator_next, block_iter_name_first)
5196 (block_iter_name_next, block_iter_match_first)
5197 (block_iter_match_next): Declare.
5198 (ALL_BLOCK_SYMBOLS): Redefine.
5199 * block.c (block_iterator_first, block_iterator_next)
5200 (block_iter_name_first, block_iter_name_next)
5201 (block_iter_match_first, block_iter_match_next): New functions.
5202 * ada-lang.c (ada_add_block_symbols)
5203 (ada_make_symbol_completion_list): Use block iterator.
5204
a2ca7a52
TT
52052012-05-10 Tom Tromey <tromey@redhat.com>
5206
5207 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5208 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5209 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5210 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5211 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5212 Update.
5213
64ea88dc
JB
52142012-05-10 Joel Brobecker <brobecker@adacore.com>
5215
5216 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5217 print-file-var-lib2.c, print-file-var-main.c and
5218 print-file-var.exp (located in gdb/testsuite/gdb.base).
5219
99a547d6
JB
52202012-05-10 Joel Brobecker <brobecker@adacore.com>
5221
5222 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5223 try locating the symbol in the symbol's own objfile first, before
5224 extending the search to all objfiles.
5225 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5226 out of lookup_symbol_aux_symtabs.
5227 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5228 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5229 Do not search EXCLUDE_OBJFILE.
5230 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5231 (lookup_symbol_global): Search for matches in the block's objfile
5232 first, before searching all other objfiles.
5233
0ece64fd
TG
52342012-05-10 Tristan Gingold <gingold@adacore.com>
5235
5236 * printcmd.c (set_command): Add pre/post inc/dec.
5237
3d16a105
FCE
52382012-05-09 Frank Ch. Eigler <fche@redhat.com>
5239
5240 * gdb.1: Document -ex option.
5241
2efbc0f7
JB
52422012-05-09 Joel Brobecker <brobecker@adacore.com>
5243
5244 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5245 * inferior.h (AT_SYMBOL): Delete.
5246
2c76a0c7
JB
52472012-05-09 Joel Brobecker <brobecker@adacore.com>
5248
5249 * mips-tdep.c (mips_push_dummy_code): New function.
5250 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5251 ON_STACK and install mips_push_dummy_code as our gdbarch
5252 push_dummy_code routine.
5253
9401a810
PA
52542012-05-09 Pedro Alves <palves@redhat.com>
5255
5256 * target.c (set_maintenance_target_async_permitted): Rename to ...
5257 (set_target_async_command): ... this.
5258 (show_maintenance_target_async_permitted): Rename to ...
5259 (show_target_async_command): ... this.
5260 (initialize_targets): Adjust.
5261
3929b321
DE
52622012-05-08 Doug Evans <dje@google.com>
5263
5264 * go-exp.y (classify_name): Add missing assignment of fields of
5265 yylval.ssym.
5266
c41535fd
EZ
52672012-05-08 Eli Zaretskii <eliz@gnu.org>
5268
5269 Display the ">" prompt in interactive mode while reading canned
5270 commands, even when the current interpreter is MI.
5271
5272 * interps.c (interp_set_temp): New function.
5273
5274 * interps.h (interp_set_temp): Add prototype.
5275
5276 * cli/cli-script.c (restore_interp): New cleanup function.
5277 (read_command_lines): Temporarily override the current interpreter
5278 with CLI and arrange for restoring the original one.
5279
c0749c4d
JS
52802012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5281
5282 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5283
d7333987
SDJ
52842012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5285
5286 * probe.c (parse_probes): Move conditional to check for
5287 debuginfo files from here...
5288 * stap-probe.c (stap_get_probes): ... to here.
5289
649e6d92
MK
52902012-05-07 Mark Kettenis <kettenis@gnu.org>
5291 H.J. Lu <hongjiu.lu@intel.com>
5292
5293 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5294 `movl %esp, %ebp' for the X32 ABI.
5295
f39c6ffd
TT
52962012-05-07 Tom Tromey <tromey@redhat.com>
5297
5298 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5299 get_DW_TAG_name.
5300 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5301 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5302 (dwarf_stack_op_name): Remove.
5303 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5304 (decode_locdesc): Use get_DW_OP_name.
5305 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5306 (dwarf2_compile_expr_to_ax): Likewise.
5307 (disassemble_dwarf_expression): Likewise.
5308 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5309
1e1f6591
CLT
53102012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5311
5312 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5313 (sh_linux_sigtramp_cache): New function.
5314 (sh_linux_sigreturn_init): New function.
5315 (sh_linux_rt_sigreturn_init): New function.
5316 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5317 patterns.
5318 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5319 syscall codes.
5320 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5321 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5322 (sh_linux_init_abi): Add init calls to register new tramp_frame
5323 definitions under 32-bit SH, update comments.
5324
545c08b4
PA
53252012-05-07 Pedro Alves <palves@redhat.com>
5326
daac165e
PA
5327 PR gdb/10952
5328
545c08b4
PA
5329 * amd64-linux-tdep.c: Include glibc-tdep.h.
5330 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5331 gdbarch_skip_solib_resolver callback.
5332
af2c1515
JK
53332012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5334
5335 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5336 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5337 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5338 (add_auto_load_safe_path): Change the error message.
5339 (_initialize_auto_load): Change the "safe-path" help text.
5340 * configure: Regenerate
5341 * configure.ac (--without-auto-load-safe-path): Set
5342 WITH_AUTO_LOAD_SAFE_PATH to /.
5343
1067f998
SDJ
53442012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5345
5346 * stap-probe.h: Do not include unecessary `probe.h'.
5347
45dfa85a
AM
53482012-05-05 Alan Modra <amodra@gmail.com>
5349
5350 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5351 bfd_und_section_ptr.
5352 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5353 and bfd_com_section_ptr.
5354
cf093994
JB
53552012-05-04 Joel Brobecker <brobecker@adacore.com>
5356
762ebb75 5357 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5358
d40dc7a8
JB
53592012-05-04 Joel Brobecker <brobecker@adacore.com>
5360
5361 * windows-nat.h (segment_register_p_ftype): New typedef.
5362 (windows_set_segment_register_p): Add declaration.
5363 * windows-nat.c (segment_register_p): New static global.
5364 (windows_set_segment_register_p): New function.
5365 (do_windows_fetch_inferior_registers): Add special handling
5366 for segment registers.
5367 * amd64-windows-nat.c: #include "amd64-tdep.h".
5368 (amd64_windows_segment_register_p): New function.
5369 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5370 * i386-windows-nat.c: #include "i386-tdep.h".
5371 (i386_windows_segment_register_p): New function.
5372 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5373
52b3699b
TG
53742012-05-04 Tristan Gingold <gingold@adacore.com>
5375
5376 * printcmd.c (set_command): Emit a warning if the expression is not
5377 an assignment.
5378
94c74239
JB
53792012-05-03 Joel Brobecker <brobecker@adacore.com>
5380
5381 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5382 Make static.
5383
fcf57f19
SDJ
53842012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5385
5386 * stap-probe.c (stap_is_operator): Change declaration.
5387 (stap_get_opcode): Change return value.
5388 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5389 `stap_parse_argument_1'.
5390
27d2932e
PA
53912012-05-03 Pedro Alves <pedro@codesourcery.com>
5392
5393 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5394 debug log.
5395
a20ee7a4
SCR
53962012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5397
5398 Add two new methods global_block and static_block to gdb.Symtab
5399 objects.
5400 * NEWS (Python scripting): Add entry about the new methods.
5401 * python/py-symtab.c (stpy_global_block): New function which
5402 implements the gdb.Symtab.global_block() method.
5403 (stpy_static_block): New function which implements the
5404 gdb.Symtab.static_block() method.
5405 (symtab_object_methods): Add entries for the two new methods.
5406
943cb756
DE
54072012-05-03 Doug Evans <dje@google.com>
5408
5409 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5410 files.
5411
f4644a3f
YQ
54122012-05-03 Yao Qi <yao@codesourcery.com>
5413
5414 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5415 space.
5416 (i386_process_record): Ditto.
5417
ef61f180
JB
54182012-05-02 Joel Brobecker <brobecker@adacore.com>
5419
5420 * infcall.c (unwind_on_signal_p): Make static.
5421
02f1df11
JB
54222012-05-02 Joel Brobecker <brobecker@adacore.com>
5423
5424 * sol-thread.c (solaris_pid_to_str): Make static.
5425 (_initialize_sol_thread): Add prototype.
5426
39023530
JB
54272012-05-02 Joel Brobecker <brobecker@adacore.com>
5428
5429 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5430
c6b0c501
CF
54312012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5432
5433 * MAINTAINERS: Remove myself.
5434
1ef71717
JK
54352012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5436
5437 Fix --without-auto-load-safe-path for MS-Windows host platform.
5438 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5439
b31b86a7
EZ
54402012-05-02 Eli Zaretskii <eliz@gnu.org>
5441
5442 * gdb_curses.h: Undefine KEY_EVENT before including curses
5443 headers. Move "#undef MOUSE_MOVED" before any curses header
5444 inclusion.
5445
777532fc
SDJ
54462012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5447
5448 * features/i386/i386-mmx-linux.c: Regenerate.
5449 * features/rs6000/powerpc-32.c: Likewise.
5450 * features/rs6000/powerpc-32l.c: Likewise.
5451 * features/rs6000/powerpc-403.c: Likewise.
5452 * features/rs6000/powerpc-403gc.c: Likewise.
5453 * features/rs6000/powerpc-405.c: Likewise.
5454 * features/rs6000/powerpc-505.c: Likewise.
5455 * features/rs6000/powerpc-601.c: Likewise.
5456 * features/rs6000/powerpc-602.c: Likewise.
5457 * features/rs6000/powerpc-603.c: Likewise.
5458 * features/rs6000/powerpc-604.c: Likewise.
5459 * features/rs6000/powerpc-64.c: Likewise.
5460 * features/rs6000/powerpc-64l.c: Likewise.
5461 * features/rs6000/powerpc-750.c: Likewise.
5462 * features/rs6000/powerpc-860.c: Likewise.
5463 * features/rs6000/powerpc-e500.c: Likewise.
5464 * features/rs6000/powerpc-e500l.c: Likewise.
5465 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5466 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5467 * features/rs6000/rs6000.c: Likewise.
5468
d71871bc
SDJ
54692012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5470
5471 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5472 variable.
5473 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5474 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5475 (stap_parse_argument) <e>: Likewise.
5476 (handle_stap_probe) <byte_order>: Likewise.
5477
fd820528
DE
54782012-04-30 Doug Evans <dje@google.com>
5479
5480 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5481 init_and_read_dies_worker. All callers updated.
5482 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5483 replaced with init_cutu_and_read_dies.
5484 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5485 (find_partial_die): Remove FIXME. Don't free current CU.
5486
ec3f619d 54872012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5488
5489 * contrib: New directory.
5490 * contrib/test_pubnames_and_indexes.py: New file.
5491
fceca515
DE
54922012-04-30 Doug Evans <dje@google.com>
5493
5494 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5495 All callers updated.
5496 (init_cu_die_reader): Verify the section is non-empty.
5497 (dwarf_decode_line_header): Don't dereference section->asection
5498 until we know the section is present.
5499
311fe7e1
SDJ
55002012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5501
5502 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5503 probes.
5504
5977971a
YQ
55052012-04-29 Yao Qi <yao@codesourcery.com>
5506
5507 * gdb-code-style.el: New hook gdb-markup-hook
5508 and gdb-comment-hook.
5509
dee91e82
DE
55102012-04-28 Doug Evans <dje@google.com>
5511
3019eac3
DE
5512 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5513 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5514 objfile->obfd.
5515 * symfile.h (dwarf2_debug_sections): New member addr.
5516 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5517 (ctx_no_get_addr_index): New function.
5518 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5519 (ctx_no_get_addr_index): Declare.
5520 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5521 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5522 (dwarf_expr_ctx_funcs): Update.
5523 (needs_get_addr_index): New function.
5524 (needs_frame_ctx_funcs): Update.
5525 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5526 * dwarf2read.c: #include "gdbcore.h".
5527 (dwarf2_per_objfile): New members addr, dwo_files.
5528 (dwarf2_elf_names): Add entry for addr.
5529 (struct dwo_section_names): New type.
5530 (dwo_section_names): New static global.
5531 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5532 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5533 old debug_types_section member updated to use this.
5534 Rename member debug_types_section to info_or_types_section,
5535 all uses updated.
5536 (signatured_type): Rename member type_offset to type_offset_in_tu,
5537 all uses updated. New member type_offset_in_section.
5538 (struct dwo_sections): New type.
5539 (struct dwo_unit): New type.
5540 (struct dwo_file): New type.
5541 (die_reader_specs): New member dwo_file.
5542 (dwarf2_locate_sections): Watch for .debug_addr.
5543 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5544 (dwarf2_read_section): Get bfd of section from bfd's asection,
5545 instead of objfile.
5546 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5547 (create_signatured_type_table_from_index): Initialize
5548 sig_type->info_or_types_section.
5549 (dw2_get_file_names): Statement lists for type units with DWO files
5550 live in the DWO file.
5551 (create_debug_types_hash_table): New function.
5552 (create_all_type_units): Rewrite.
5553 (init_cu_die_reader): New arg dwo_file, all callers updated.
5554 (init_and_read_dies_worker): Get section from
5555 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5556 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5557 continue reading the CU/TU from there.
5558 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5559 updated. Get section from this_cu->info_or_types_section.
5560 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5561 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5562 DW_FORM_GNU_str_index.
5563 (hash_dwo_file, eq_dwo_file): New functions.
5564 (allocate_dwo_file_hash_table): New function.
5565 (hash_dwo_unit, eq_dwo_unit): New functions.
5566 (allocate_dwo_unit_table): New function.
5567 (dwarf2_locate_dwo_sections): New function.
5568 (struct create_dwo_info_table_data): New type.
5569 (create_debug_info_hash_table_reader): New function.
5570 (create_debug_info_hash_table): New function.
5571 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5572 (lookup_dwo_file): New function.
5573 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5574 (free_dwo_file, free_dwo_file_cleanup): New functions.
5575 (free_dwo_file_from_slot, free_dwo_files): New functions.
5576 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5577 (dwarf2_record_block_ranges): Ditto.
5578 (read_partial_die): Ditto.
5579 (process_enumeration_scope): Update to use type_offset_in_section.
5580 (read_full_die_1): New function.
5581 (read_full_die): Rewrite.
5582 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5583 DW_FORM_GNU_str_index.
5584 (read_addr_index_1, read_addr_index): New functions.
5585 (read_addr_index_from_leb128): New function.
5586 (struct dwarf2_read_addr_index_data): New type.
5587 (dwarf2_read_addr_index_reader): New function.
5588 (dwarf2_read_addr_index): New function.
5589 (read_str_index): New function.
5590 (leb128_size): New function.
5591 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5592 If processing a type unit from a DWO file, get the line section
5593 from the DWO file.
5594 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5595 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5596 DW_FORM_GNU_str_index.
5597 (lookup_die_type): Check whether section offset of type's die is
5598 known before looking it up. Remove assert. Condition can
5599 legimately happen for inter-cu type references.
5600 (dwarf_attr_name): Handle Fission attributes.
5601 (dwarf_form_name): Handle Fission forms.
5602 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5603 DW_FORM_GNU_str_index.
5604 (follow_die_sig): Update to use type_offset_in_section.
5605 (decode_locdesc): New case DW_OP_GNU_addr_index.
5606 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5607 DW_FORM_GNU_str_index.
5608 (cu_debug_loc_section): New function.
5609 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5610 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5611 Free DWO files if present.
5612 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5613
dee91e82
DE
5614 Refactor DIE reading.
5615 * dwarf2read.c (dwarf2_per_objfile): Replace members
5616 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5617 (die_reader_specs): New member "die_section". Temporarily make
5618 member "buffer" non-const, pending constifying all info_ptr uses.
5619 (die_reader_func_ftype): New typedef.
5620 (dw2_get_file_names_reader): New function.
5621 (dw2_get_file_names): Rewrite.
5622 (read_and_check_type_unit_head): Rename arg type_offset to
5623 type_offset_in_tu.
5624 (create_all_type_units): Improve debugging message.
5625 Improve dummy type unit check.
5626 (init_cu_die_reader): New arg "section". All callers updated.
5627 (init_and_read_dies_worker): New function.
5628 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5629 (init_cutu_and_read_dies_no_follow): New function.
5630 (init_cutu_and_read_dies_simple): New function.
5631 (process_psymtab_comp_unit_reader): New function.
5632 (process_psymtab_comp_unit): Delete args section,
5633 is_debug_types_section. Rewrite. All callers updated.
5634 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5635 All callers updated. Rewrite.
5636 (load_partial_comp_unit_reader): New function.
5637 (load_partial_comp_unit): Rewrite.
5638 (skip_children): New arg reader. Delete args buffer, cu.
5639 All callers updated.
5640 (skip_one_die): New arg reader. Delete args buffer, cu.
5641 All callers updated.
5642 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5643 All callers updated.
5644 (load_full_comp_unit_reader): New function.
5645 (load_full_comp_unit): Rewrite.
5646 (read_comp_unit): Delete.
5647 (read_die_and_children_1): Delete, contents moved ...
5648 (read_die_and_children): ... here.
5649 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5650 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5651 All callers updated.
5652 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5653 All callers updated.
5654 (find_partial_die): Rewrite load_all_dies support.
5655 (read_attribute_value): New arg reader. Delete args abfd, cu.
5656 All callers updated.
5657 (read_attribute): New arg reader. Delete args abfd, cu.
5658 All callers updated.
5659 (load_full_type_unit): Add assert.
5660 (read_signatured_type_reader): New function.
5661 (read_signatured_type): Rewrite.
5662 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5663 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5664 All callers updated. Set per_cu->cu = NULL after freeing it.
5665 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5666 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5667 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5668 (set_die_type): Update.
5669 (get_die_type_at_offset): Update.
5670 (read_file_scope): Call prepare_one_comp_unit.
5671 (read_type_unit_scope): Ditto.
5672 (prepare_one_comp_unit): Set producer if present.
5673
72d59e0d
SDJ
56742012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5675
5676 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5677 gettext function on `error'.
5678
0fefef59
DE
56792012-04-27 Doug Evans <dje@google.com>
5680
5681 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5682 is empty.
5683
28106bc2
SDJ
56842012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5685 Tom Tromey <tromey@redhat.com>
5686
5687 * breakpoint.c (struct breakpoint_objfile_data)
5688 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5689 <exception_probes>: New fields.
5690 (free_breakpoint_probes): New function.
5691 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5692 `_Unwind_DebugHook'.
5693 (create_exception_master_breakpoint): Likewise.
5694 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5695 * infrun.c: Including necessary header files for handling SystemTap
5696 probes.
5697 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5698 via SystemTap probes.
5699 (check_exception_resume): Remove `func' argument. Handle exception
5700 unwinding breakpoint set via a SystemTap probe.
5701 (insert_exception_resume_from_probe): New function.
5702
55aa24fb
SDJ
57032012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5704 Tom Tromey <tromey@redhat.com>
5705 Jan Kratochvil <jan.kratochvil@redhat.com>
5706
5707 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5708 (COMMON_OBS): Likewise.
5709 (HFILES_NO_SRCDIR): Add `probe'.
5710 * NEWS: Mention support for static and SystemTap probes.
5711 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5712 SystemTap probes' arguments parser.
5713 * arm-linux-tdep.c: Including headers needed to perform the parsing
5714 of SystemTap probes' arguments.
5715 (arm_stap_is_single_operand): New function.
5716 (arm_stap_parse_special_token): Likewise.
5717 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5718 probes' arguments parser.
5719 * ax-gdb.c (require_rvalue): Removing static declaration.
5720 (gen_expr): Likewise.
5721 * ax-gdb.h (gen_expr): Declaring function.
5722 (require_rvalue): Likewise.
5723 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5724 (bkpt_probe_breakpoint_ops): New variable.
5725 (momentary_breakpoint_from_master): Set the `probe' value.
5726 (add_location_to_breakpoint): Likewise.
5727 (break_command_1): Using proper breakpoint_ops according to the
5728 argument passed by the user in the command line.
5729 (bkpt_probe_insert_location): New function.
5730 (bkpt_probe_remove_location): Likewise.
5731 (bkpt_probe_create_sals_from_address): Likewise.
5732 (bkpt_probe_decode_linespec): Likewise.
5733 (tracepoint_probe_create_sals_from_address): Likewise.
5734 (tracepoint_probe_decode_linespec): Likewise.
5735 (tracepoint_probe_breakpoint_ops): New variable.
5736 (trace_command): Using proper breakpoint_ops according to the
5737 argument passed by the user in the command line.
5738 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5739 static probes on breakpoints and tracepoints.
5740 * breakpoint.h (struct bp_location) <probe>: New field.
5741 * cli-utils.c (skip_spaces_const): New function.
5742 (extract_arg): Likewise.
5743 * cli-utils.h (skip_spaces_const): Likewise.
5744 (extract_arg): Likewise.
5745 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5746 * configure.ac: Append `stap-probe.o' to be generated when ELF
5747 support is present.
5748 * configure: Regenerate.
5749 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5750 * elfread.c: Include `probe.h' and `arch-utils.h'.
5751 (probe_key): New variable.
5752 (elf_get_probes): New function.
5753 (elf_get_probe_argument_count): Likewise.
5754 (elf_evaluate_probe_argument): Likewise.
5755 (elf_compile_to_ax): Likewise.
5756 (elf_symfile_relocate_probe): Likewise.
5757 (stap_probe_key_free): Likewise.
5758 (elf_probe_fns): New variable.
5759 (elf_sym_fns): Add `sym_probe_fns' value.
5760 (elf_sym_fns_lazy_psyms): Likewise.
5761 (elf_sym_fns_gdb_index): Likewise.
5762 (_initialize_elfread): Initialize objfile cache for static
5763 probes.
5764 * gdb_vecs.h (struct probe): New forward declaration.
5765 (probe_p): New VEC declaration.
5766 * gdbarch.c: Regenerate.
5767 * gdbarch.h: Regenerate.
5768 * gdbarch.sh (stap_integer_prefix): New variable.
5769 (stap_integer_suffix): Likewise.
5770 (stap_register_prefix): Likewise.
5771 (stap_register_suffix): Likewise.
5772 (stap_register_indirection_prefix): Likewise.
5773 (stap_register_indirection_suffix): Likewise.
5774 (stap_gdb_register_prefix): Likewise.
5775 (stap_gdb_register_suffix): Likewise.
5776 (stap_is_single_operand): New function.
5777 (stap_parse_special_token): Likewise.
5778 (struct stap_parse_info): Forward declaration.
5779 * i386-tdep.c: Including headers needed to perform the parsing
5780 of SystemTap probes' arguments.
5781 (i386_stap_is_single_operand): New function.
5782 (i386_stap_parse_special_token): Likewise.
5783 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5784 probes' arguments parser.
5785 * i386-tdep.h (i386_stap_is_single_operand): New function.
5786 (i386_stap_parse_special_token): Likewise.
5787 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5788 * mipsread.c (ecoff_sym_fns): Likewise.
5789 * objfiles.c (objfile_relocate1): Support relocation for static
5790 probes.
5791 * parse.c (prefixify_expression): Remove static declaration.
5792 (initialize_expout): Likewise.
5793 (reallocate_expout): Likewise.
5794 * parser-defs.h (initialize_expout): Declare function.
5795 (reallocate_expout): Likewise.
5796 (prefixify_expression): Likewise.
5797 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5798 of SystemTap probes' arguments.
5799 (ppc_stap_is_single_operand): New function.
5800 (ppc_stap_parse_special_token): Likewise.
5801 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5802 probes' arguments parser.
5803 * probe.c: New file, for generic statically defined probe support.
5804 * probe.h: Likewise.
5805 * s390-tdep.c: Including headers needed to perform the parsing of
5806 SystemTap probes' arguments.
5807 (s390_stap_is_single_operand): New function.
5808 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5809 probes' arguments parser.
5810 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5811 * stap-probe.c: New file, for SystemTap probe support.
5812 * stap-probe.h: Likewise.
5813 * symfile.h: Include `gdb_vecs.h'.
5814 (struct sym_probe_fns): New struct.
5815 (struct sym_fns) <sym_probe_fns>: New field.
5816 * symtab.c (init_sal): Initialize `probe' field.
5817 * symtab.h (struct probe): Forward declaration.
5818 (struct symtab_and_line) <probe>: New field.
5819 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5820 locations.
5821 (stop_tracing): Likewise.
5822 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5823
22d2b532
SDJ
58242012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5825 Tom Tromey <tromey@redhat.com>
5826
5827 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5828 and to compile agent expressions.
5829 * infrun.c (siginfo_make_value): New argument `ignore'.
5830 (siginfo_funcs): New struct.
5831 (_initialize_infrun): New argument when calling
5832 `create_internalvar_type_lazy'.
5833 * thread.c (thread_id_make_value): New argument `ignore'.
5834 (thread_funcs): New struct.
5835 (_initialize_thread): New argument when calling
5836 `create_internalvar_type_lazy'.
5837 * tracepoint.c (sdata_make_value): New argument `ignore'.
5838 (sdata_funcs): New struct.
5839 (_initialize_tracepoint): New argument when calling
5840 `create_internalvar_type_lazy'.
5841 * value.c (make_value): New struct.
5842 (create_internalvar_type_lazy): New argument `data'.
5843 (compile_internalvar_to_ax): New function.
5844 (value_of_internalvar): Properly handling `make_value' case.
5845 (clear_internalvar): Likewise.
5846 (show_convenience): Adding `TRY_CATCH' block.
5847 * value.h (internalvar_make_value): Delete, replace by...
5848 (struct internalvar_funcs): ... this.
5849 (create_internalvar_type_lazy) <fun>: Delete argument.
5850 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5851 (compile_internalvar_to_ax): New function.
5852 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5853 (tlb_funcs): New struct.
5854 (_initialize_windows_tdep): New argument when calling
5855 `create_internalvar_type_lazy'.
5856
91da1414
MW
58572012-04-27 Mark Wielaard <mjw@redhat.com>
5858
5859 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5860 see whether it is an address or a constant offset from DW_AT_low_pc.
5861 (dwarf2_record_block_ranges): Likewise.
5862 (read_partial_die): Likewise.
5863
4ab9d8ec
MW
58642012-04-26 Mark Wielaard <mjw@redhat.com>
5865
5866 * MAINTAINERS (Write After Approval): Add myself to the list.
5867
a0911fd0
MR
58682012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5869
5870 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5871 (proc_prettyprint_signal): Likewise.
5872 (proc_prettyprint_faultset): Likewise.
5873 (proc_prettyprint_fault): Likewise.
5874 (proc_prettyprint_actionset): Likewise.
5875 (proc_prettyprint_flags): Move to new proc-flags.c section.
5876 (proc_prettyfprint_flags): New prototype.
5877 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5878 (proc_syscall, proc_cursig): Likewise.
5879 (proc_set_kill_on_last_close): Likewise.
5880 (proc_unset_kill_on_last_close): Likewise.
5881 (proc_set_watchpoint): Make static.
5882 (proc_delete_dead_threads): Likewise.
5883 (procfs_set_watchpoint): Likewise.
5884 (_initialize_procfs): Add prototype.
5885 * proc-events.c: Include proc-utils.h.
5886 (init_syscall_table): Make static.
5887 * proc-api.c (_initialize_proc_api): Add prototype.
5888 * proc-flags.c: Include proc-utils.h.
5889
9009e1ae
MR
58902012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5891
5892 * configure.ac: Add AC_ARG_PROGRAM.
5893 * configure: Regenerate.
5894
4fae6e18
JK
58952012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5896
5897 Fix DW_AT_lower_bound defaults for DWARF-4+.
5898 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5899 high. New variable low_default_is_valid. Implement DWARF-4+
5900 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5901 no default by the DWARF standard.
5902
14132e89 59032012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5904 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5905
5906 * infrun.c (handle_inferior_event): Move the check for return
5907 trampolines ahead of the check for function trampolines.
5908 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5909 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5910 (mips_str_mips16_ret_stub): Likewise.
5911 (mips_str_call_fp_stub): Likewise.
5912 (mips_str_call_stub): Likewise.
5913 (mips_str_fn_stub): Likewise.
5914 (mips_str_pic): Likewise.
5915 (mips_in_frame_stub): New function.
5916 (mips_unwind_pc): Return the return address rather than the PC
5917 if the PC of an intermediate frame is inside a call thunk.
5918 (mips_is_stub_suffix): New function.
5919 (mips_is_stub_mode): Likewise.
5920 (mips_get_mips16_fn_stub_pc): Likewise.
5921 (mips_skip_mips16_trampoline_code): Update to handle all the
5922 currently generated stub types. Don't recurse into __fn_stub
5923 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5924 Use cooked register accesses.
5925 (mips_in_return_stub): Reintroduce function.
5926 (mips_skip_trampoline_code): Traverse trampolines recursively.
5927 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5928
518f0db5 59292012-04-26 Joel Brobecker <brobecker@adacore.com>
5930
5931 GDB 7.4.1 released.
5932
3184d3f9
JL
59332012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5934
5935 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5936 * features/arm-with-m-vfp-d16.xml: New file. Describes
5937 Cortex-M with VFPv4-sp-d16 FPU register layout.
5938 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5939 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5940 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5941 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5942 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5943
b6201d44
DE
59442012-04-25 Doug Evans <dje@google.com>
5945
5946 * cli/cli-decode.c (print_doc_line): Use stream instead of
5947 current_uiout.
5948
4e2f8df6
SDJ
59492012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5950
5951 * features/arm-with-iwmmxt.c: Regenerate.
5952 * features/arm-with-m-fpa-layout.c: Likewise.
5953 * features/arm-with-m.c: Likewise.
5954 * features/arm-with-neon.c: Likewise.
5955 * features/arm-with-vfpv2.c: Likewise.
5956 * features/arm-with-vfpv3.c: Likewise.
5957 * features/mips-dsp-linux.c: Likewise.
5958 * features/mips-linux.c: Likewise.
5959 * features/mips64-dsp-linux.c: Likewise.
5960 * features/mips64-linux.c: Likewise.
5961 * features/s390-linux32.c: Likewise.
5962 * features/s390-linux32v1.c: Likewise.
5963 * features/s390-linux32v2.c: Likewise.
5964 * features/s390-linux64.c: Likewise.
5965 * features/s390-linux64v1.c: Likewise.
5966 * features/s390-linux64v2.c: Likewise.
5967 * features/s390x-linux64.c: Likewise.
5968 * features/s390x-linux64v1.c: Likewise.
5969 * features/s390x-linux64v2.c: Likewise.
5970 * features/tic6x-c62x-linux.c: Likewise.
5971 * features/tic6x-c62x.c: Likewise.
5972 * features/tic6x-c64x-linux.c: Likewise.
5973 * features/tic6x-c64x.c: Likewise.
5974 * features/tic6x-c64xp-linux.c: Likewise.
5975 * features/tic6x-c64xp.c: Likewise.
5976 * target-descriptions.c: Only generate `field_type' and `type'
5977 variables when needed.
5978
2def3e66
JB
59792012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5980
5981 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5982
a766d390
DE
59832012-04-25 Doug Evans <dje@google.com>
5984
5985 Initial pass at Go language support.
5986 * NEWS: Mention Go.
5987 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5988 go-valprint.c.
5989 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5990 (YYFILES): Add go-exp.c.
5991 (YYOBJ): Add go-exp.o.
5992 (local-maintainer-clean): Delete go-exp.c.
5993 * defs.h (enum language): Add language_go.
5994 * dwarf2read.c: #include "go-lang.h".
5995 (fixup_go_packaging): New function.
5996 (process_full_comp_unit): Call it when processing Go CUs.
5997 (dwarf2_physname): Add Go support.
5998 (read_file_scope): Handle missing language spec for GNU Go.
5999 (set_cu_language): Handle DW_LANG_Go.
6000 * go-exp.y: New file.
6001 * go-lang.h: New file.
6002 * go-lang.c: New file.
6003 * go-typeprint.c: New file.
6004 * go-valprint.c: New file.
6005 * symtab.c: #include "go-lang.h".
6006 (symbol_set_language): Handle language_go.
6007 (symbol_find_demangled_name, symbol_set_names): Ditto.
6008 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6009
4e2af517
JM
60102012-04-24 Jim Meyering <meyering@redhat.com>
6011
6012 avoid a few strncpy-induced buffer overruns
6013 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6014 fname and psargs before trying to concatenate.
6015 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6016 "name" before applying strchr.
6017
b77b7f52
SCR
60182012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6019
6020 * CONTRIBUTE: Use unified diff instead of context diff when
6021 generating patches.
6022
6321c22a
MR
60232012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6024
6025 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6026 code. Handle JR.HB correctly.
6027
742c84f6
MR
60282012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6029
6030 * mips-tdep.c
6031 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6032 with the other MIPS16 helpers.
6033
7fc7e0c3
SDJ
60342012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6035
6036 * observer.sh: Conditionally declare `args', thus cleaning up
6037 unused instances of this variable.
6038
20388dd6
YQ
60392012-04-24 Yao Qi <yao@codesourcery.com>
6040
6041 Revert this patch to allow breakpoint always-inserted
6042 in record target.
6043 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6044 * breakpoint.c: Include record.h.
6045 (breakpoints_always_inserted_mode): Return false when the record
6046 target is in use.
20388dd6
YQ
6047
6048 * breakpoint.c (iterate_over_bp_locations): New.
6049 * breakpoint.h: Declare.
6050 New typedef walk_bp_location_callback.
6051 * record.c (record_open): Call record_init_record_breakpoints.
6052 (record_sync_record_breakpoints): New.
6053 (record_init_record_breakpoints): New.
6054 * NEWS: Mention supporting breakpoint always-inserted mode in
6055 record target.
6056
4734f50e
MK
60572012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6058
6059 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6060 any thread.
6061
c326b90e
YQ
60622012-04-24 Yao Qi <yao@codesourcery.com>
6063
6064 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6065 (is_catchpoint): ... it.
6066 (print_one_breakpoint_location): Caller update.
6067 * breakpoint.h: Update declaration.
6068
d8fb5a1e
DM
60692012-04-23 David S. Miller <davem@davemloft.net>
6070
6071 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6072
34431a2a
TT
60732012-04-23 Tom Tromey <tromey@redhat.com>
6074
6075 * buildsym.c (add_free_pendings): Remove.
6076 * buildsym.h (add_free_pendings): Remove.
6077
4568ecf9
DE
60782012-04-23 Doug Evans <dje@google.com>
6079
6080 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6081 attr.u.unsnd instead of attr.u.addr.
6082 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6083 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6084 DW_FORM_ref_udata.
6085 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6086 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6087 DW_FORM_ref_udata.
6088 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6089
dca9aa3a
MR
60902012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6091
6092 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6093 (mips_o32_return_value): Likewise.
6094 (mips_o64_return_value): Likewise.
6095
c8ea1972
PH
60962012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6097
6098 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6099 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6100 their treatment in eval.c.
c8ea1972 6101
8d1b3521
DM
61022012-04-21 David S. Miller <davem@davemloft.net>
6103
6104 * sparc-tdep.c (X_DISP10): Define.
6105 (sparc_analyze_control_transfer): Handle compare-and-branch.
6106
03145bf4
JL
61072012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6108
6109 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6110 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6111
004159a2 61122012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6113 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6114
6115 * mips-tdep.c (mips_float_register_p): New function.
6116 (mips_convert_register_float_case_p): Use mips_float_register_p.
6117 (mips_register_type): Likewise.
6118 (mips_print_register): Likewise.
6119 (print_gp_register_row): Likewise.
6120 (mips_print_registers_info): Likewise.
6121
7f0e6aae
MR
61222012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6123
6124 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6125 of mips16 symbols.
6126
bc17beea
AP
61272012-04-20 Andrew Pinski <apinski@cavium.com>
6128
6129 * MAINTAINERS (Write After Approval): Add myself to the list.
6130
1730a5a5
SDJ
61312012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6132
6133 * MAINTAINERS: Update my e-mail address.
6134
38ea300a
PA
61352012-04-20 Pedro Alves <palves@redhat.com>
6136
6137 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6138 $srcdir.
6139 * configure: Regenerate.
6140
111dfaae
SDJ
61412012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6142
6143 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6144 declaration.
6145 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6146
4fb2c64a
JK
61472012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6148
6149 Fix compilation compatibility with python-2.4
6150 * python/py-type.c (convert_field): Cast ADDRSTRING for
6151 PyObject_SetAttrString as non-const. New comment.
6152
6328eb38
TT
61532012-04-19 Tom Tromey <tromey@redhat.com>
6154
6155 * top.c (quit_target): Use all_cleanups.
6156 * main.c (captured_command_loop): Use all_cleanups.
6157 * exceptions.c (throw_exception): Use all_cleanups.
6158
c971b7fa
PA
61592012-04-19 Pedro Alves <palves@redhat.com>
6160
6161 * Makefile.in (GNULIB_BUILDDIR): New.
6162 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6163 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6164 (CLEANDIRS). Remove gnulib/import.
6165 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6166 (all-lib): Ditto.
6167 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6168 (gnulib/import/Makefile): Replace gnulib/import with
6169 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6170 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6171 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6172 acx_configure_dir.m4.
6173 * acinclude.m4: Include acx_configure_dir.m4.
6174 * acx_configure_dir.m4: New file.
6175 * aclocal.m4: Regenerate.
a09130f9
PA
6176 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6177 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6178 (GNULIB): New variable.
6179 (GNULIB_STDINT_H): Adjust.
6180 (AC_OUTPUT): Don't output gnulib/Makefile.
6181 * gdb/defs.h: Include build-gnulib/config.h.
6182 * aclocal.m4: Regenerate.
6183 * config.in: Regenerate.
6184 * configure: Regenerate.
6185
6186 * gnulib/Makefile.in: New file.
6187 * gnulib/configure.ac: New file.
6188 * gnulib/aclocal.m4: New file.
6189 * gnulib/config.in: New file.
6190 * gnulib/configure: New file.
c971b7fa
PA
6191 * gnulib/: Re-run gnulib-tool to adjust.
6192
b10faa68
DE
61932012-04-19 Doug Evans <dje@google.com>
6194
6195 * cleanups.h (struct cleanup): Move to cleanups.c.
6196 (make_cleanup_dtor_ftype): New typedef.
6197 (make_cleanup_dtor): Use it.
6198 (ALL_CLEANUPS): Replace with ...
6199 (all_cleanups): ... this. Declare. All uses updated.
6200 * cleanups.c: #include "gdb_assert.h".
6201 (sentinel_cleanup): New static global.
6202 (SENTINEL_CLEANUP): Define.
6203 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6204 (make_my_cleanup2): Assert result is non-NULL.
6205 (all_cleanups): New function.
6206 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6207 of NULL.
6208
d8c267cc
PA
62092012-04-19 Pedro Alves <palves@redhat.com>
6210
6211 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6212 Adjust paths to gnulib imported files.
6213
809277f8
PA
62142012-04-19 Pedro Alves <palves@redhat.com>
6215
6216 * gnulib/: Move whole directory ...
6217 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6218 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6219 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6220 (aclocal_m4_deps): Adjust.
6221 * aclocal.m4: Regenerate.
6222 * configure: Regenerate.
6223 * configure.ac: Adjust AC_OUTPUT output.
6224
aad9eab9
YQ
62252012-04-19 Yao Qi <yao@codesourcery.com>
6226
6227 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6228 (vec.o): New rule.
6229 * vec.c: Move it ...
6230 * common/vec.c: ... here.
6231 * vec.h: Move it ...
6232 * common/vec.h: ... here.
6233
48fe4669
YQ
62342012-04-19 Yao Qi <yao@codesourcery.com>
6235
6236 * gdb-code-style.el: New.
6237
770d76d7
PA
62382012-04-18 Pedro Alves <palves@redhat.com>
6239
6240 Update gnulib from latest git.
6241 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6242
6243 * gnulib/Makefile.am: Update.
6244 * gnulib/dummy.c: Update.
6245 * gnulib/extra/arg-nonnull.h: Update.
6246 * gnulib/extra/c++defs.h: Update.
6247 * gnulib/extra/update-copyright: Update.
6248 * gnulib/extra/warn-on-use.h: Update.
6249 * gnulib/inttypes.in.h: Update.
6250 * gnulib/m4/00gnulib.m4: Update.
6251 * gnulib/m4/extensions.m4: Update.
6252 * gnulib/m4/gnulib-cache.m4: Update.
6253 * gnulib/m4/gnulib-common.m4: Update.
6254 * gnulib/m4/gnulib-comp.m4: Update.
6255 * gnulib/m4/gnulib-tool.m4: Update.
6256 * gnulib/m4/include_next.m4: Update.
6257 * gnulib/m4/inttypes-pri.m4: Update.
6258 * gnulib/m4/inttypes.m4: Update.
6259 * gnulib/m4/longlong.m4: Update.
6260 * gnulib/m4/memchr.m4: Update.
6261 * gnulib/m4/memmem.m4: Update.
6262 * gnulib/m4/mmap-anon.m4: Update.
6263 * gnulib/m4/multiarch.m4: Update.
6264 * gnulib/m4/onceonly.m4: Update.
6265 * gnulib/m4/stddef_h.m4: Update.
6266 * gnulib/m4/stdint.m4: Update.
6267 * gnulib/m4/string_h.m4: Update.
6268 * gnulib/m4/warn-on-use.m4: Update.
6269 * gnulib/m4/wchar_h.m4: Update.
6270 * gnulib/m4/wchar_t.m4: Update.
6271 * gnulib/m4/wint_t.m4: Update.
6272 * gnulib/memchr.c: Update.
6273 * gnulib/memmem.c: Update.
6274 * gnulib/stddef.in.h: Update.
6275 * gnulib/stdint.in.h: Update.
6276 * gnulib/str-two-way.h: Update.
6277 * gnulib/string.in.h: Update.
6278 * gnulib/wchar.in.h: Update.
6279
6280 * gnulib/extra/arg-nonnull.h: Delete.
6281 * gnulib/extra/c++defs.h: Delete.
6282 * gnulib/extra/warn-on-use.h: Delete.
6283 * gnulib/m4/wchar_h.m4: Delete.
6284 * gnulib/m4/wint_t.m4: Delete.
6285 * gnulib/wchar.in.h: Delete.
6286
6287 * gnulib/extra/snippets/arg-nonnull.h: New.
6288 * gnulib/extra/snippets/c++defs.h: New.
6289 * gnulib/extra/snippets/warn-on-use.h: New.
6290
6291 * aclocal.m4: Regenerate.
6292 * config.in: Regenerate.
6293 * configure: Regenerate.
6294 * gnulib/Makefile.in: Regenerate.
6295
174e088e
PA
62962012-04-18 Pedro Alves <palves@redhat.com>
6297
6298 Reimport the update-copyright module from gnulib
6299 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6300
6301 * configure: Regenerate.
6302 * gnulib/Makefile.am: Update.
6303 * gnulib/Makefile.in: Regenerate.
6304 * gnulib/extra/update-copyright: Update.
6305 * gnulib/m4/gnulib-cache.m4: Update.
6306 * gnulib/m4/gnulib-comp.m4: Update.
6307
7f533142
JB
63082012-04-18 Tristan Gingold <gingold@adacore.com>
6309
6310 * configure.ac (aix): Put -lpthread into libs.
6311 * configure: Regenerate.
6312
001822aa
TT
63132012-04-18 Tom Tromey <tromey@redhat.com>
6314
6315 * linespec.c (convert_linespec_to_sals): Don't use
6316 SYMBOL_OBJ_SECTION.
6317 (compare_msymbols): Arguments are minsym_and_objfile, not
6318 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6319
db026a31
PA
63202012-04-18 Pedro Alves <palves@redhat.com>
6321
6322 Revert gnulib/ part of:
6323 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6324 Copyright year update in most files (performed by copyright.sh).
6325
12df843f
JK
63262012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6327
6328 Fix 64-bit constants on 32-bit hosts.
6329 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6330 from unsigned long to ULONGEST.
6331 (read_signed_leb128): Change declaration return type from long to
6332 LONGEST.
6333 (dwarf2_const_value_attr): Change declaration parameter value from long
6334 to LONGEST.
6335 (dwarf2_compute_name): Change variable value from long to LONGEST.
6336 (read_unsigned_leb128): Change return type, variable result and some
6337 casts from unsigned long to ULONGEST.
6338 (read_signed_leb128): Change return type, variable result and some
6339 casts from long to LONGEST.
6340 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6341 value from long to LONGEST.
6342 (dwarf2_const_value): Change variable value from long to LONGEST.
6343 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6344 plongest and hex_string.
6345 * symtab.h (struct general_symbol_info): Change ivalue from long to
6346 LONGEST, remove the comment.
6347 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6348 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6349
14e75d8e
JK
63502012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6351
6352 PR symtab/7259:
6353 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6354 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6355 (ada_discrete_type_low_bound): Fix function comment. Use
6356 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6357 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6358 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6359 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6360 Use TYPE_FIELD_ENUMVAL.
6361 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6362 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6363 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6364 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6365 TYPE_CODE_ENUM.
6366 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6367 * dwarf2read.c (process_enumeration_scope): Likewise.
6368 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6369 field.bitpos.
6370 (class StructMainTypePrettyPrinter): Support also
6371 FIELD_LOC_KIND_ENUMVAL.
6372 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6373 TYPE_CODE_ENUM.
6374 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6375 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6376 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6377 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6378 field enumval.
6379 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6380 accommodate enumval.
6381 (struct call_site): Adjust loc_kind to accommodate enumval.
6382 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6383 (TYPE_FIELD_ENUMVAL): New macros.
6384 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6385 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6386 TYPE_CODE_ENUM.
6387 * p-typeprint.c (pascal_type_print_base): Likewise.
6388 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6389 enumval.
6390 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6391 * python/py-type.c (convert_field): New variable addrstring. Use
6392 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6393 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6394 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6395 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6396 TYPE_CODE_ENUM.
6397 * valprint.c (generic_val_print): Likewise.
6398
380bca97
DE
63992012-04-17 Doug Evans <dje@google.com>
6400
dcc07052
DE
6401 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6402
380bca97
DE
6403 * dwarf2read.c: Whitespace fixes.
6404 (lookup_signatured_type): Tweak comment.
6405 (get_die_type_at_offset): Fix comment.
6406
ec92004f
JB
64072012-04-17 Joel Brobecker <brobecker@adacore.com>
6408
6409 * xcoffread.c (xcoff_secnum_to_sections): New function.
6410 (secnum_to_section, secnum_to_bfd_section): Reimplement
6411 using xcoff_secnum_to_sections. Rename "secnum" parameter
6412 into "n_scnum".
6413 (RECORD_MINIMAL_SYMBOL): Delete.
6414 (record_minimal_symbol): New function.
6415 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6416 by call to record_minimal_symbol and set misc_func_recorded
6417 to 1. Set last_csect_sec to the XCOFF section index instead
6418 of GDB's section_offset index. Update calls to
6419 prim_record_minimal_symbol_and_info to pass the BFD section
6420 as well.
6421
40301fb7
JB
64222012-04-17 Joel Brobecker <brobecker@adacore.com>
6423
6424 * xcoffread.c (read_xcoff_symtab): Delete variables
6425 last_csect_val and last_csect_sec and associated code.
6426
e0088cfd
DE
64272012-04-17 Doug Evans <dje@google.com>
6428
58d5e2c3
DE
6429 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6430 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6431 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6432 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6433
c27f5738
DE
6434 * cleanups.h: New file.
6435 * cleanups.c: New file.
6436 * Makefile.in (SFILES): Add cleanups.c.
6437 (HFILES_NO_SRCDIR): Add cleanups.h.
6438 (COMMON_OBS): Add cleanups.o.
6439 * defs.h (struct cleanup): Moved to cleanups.h.
6440 (do_cleanups,do_final_cleanups): Ditto.
6441 (discard_cleanups,discard_final_cleanups): Ditto
6442 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6443 (save_cleanups,save_final_cleanups): Ditto.
6444 (restore_cleanups,restore_final_cleanups): Ditto.
6445 (null_cleanup): Ditto.
6446 (make_my_cleanup,make_my_cleanup2): Ditto.
6447 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6448 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6449 (do_cleanups,do_final_cleanups): Ditto.
6450 (discard_cleanups,discard_final_cleanups): Ditto
6451 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6452 (save_cleanups,save_final_cleanups): Ditto.
6453 (restore_cleanups,restore_final_cleanups): Ditto.
6454 (null_cleanup): Ditto.
6455 (make_my_cleanup,make_my_cleanup2): Ditto.
6456 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6457
e0088cfd
DE
6458 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6459 make_my_cleanup.
6460 (make_cleanup_dyn_string_delete): Ditto.
6461 (make_cleanup_ui_file_delete): Ditto.
6462 (make_cleanup_ui_out_redirect_pop): Ditto.
6463 (make_cleanup_free_section_addr_info): Ditto.
6464 (make_cleanup_restore_integer): Ditto.
6465 (make_cleanup_unpush_target): Ditto.
6466 (make_cleanup_value_free_to_mark): Ditto.
6467 (make_cleanup_value_free): Ditto.
6468 (make_cleanup_free_so): Ditto.
6469
4dc84fd1
JK
64702012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6471
6472 New option "set debug auto-load".
6473 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6474 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6475 (auto_load_safe_path_vec_update)
6476 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6477 if DEBUG_AUTO_LOAD.
6478 (file_is_auto_load_safe): New parameters debug_fmt and ....
6479 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6480 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6481 caller by explanatory string.
6482 (_initialize_auto_load): Register "set debug auto-load".
6483 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6484 and ....
6485 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6486 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6487 by explanatory string.
6488 * main.c (captured_main): Likewise.
6489 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6490 (source_section_scripts): Likewise.
6491
bccbefd2
JK
64922012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6493
6494 New option "set auto-load safe-path".
6495 * NEWS: New commands "set auto-load safe-path"
6496 and "show auto-load safe-path".
6497 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6498 (auto_load_safe_path, auto_load_safe_path_vec)
6499 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6500 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6501 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6502 (source_gdb_script_for_objfile): New variable is_safe. Call
6503 file_is_auto_load_safe. Return if it is not.
6504 (struct loaded_script): New field loaded.
6505 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6506 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6507 output "Missing" to "No".
6508 (_initialize_auto_load): New variable cmd. Initialize
6509 auto_load_safe_path. Register "set auto-load safe-path",
6510 "show auto-load safe-path" and "add-auto-load-safe-path".
6511 * auto-load.h (maybe_add_script): Add parameter loaded.
6512 (file_is_auto_load_safe): New declaration.
6513 * config.in: Regenerate.
6514 * configure: Regenerate.
6515 * configure.ac: New parameters --with-auto-load-safe-path
6516 and --without-auto-load-safe-path.
6517 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6518 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6519 * main.c (captured_main): Check file_is_auto_load_safe for
6520 LOCAL_GDBINIT.
6521 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6522 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6523 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6524 not.
6525
bf88dd68
JK
65262012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6527
6528 auto-load: Implementation.
6529 * NEWS: New descriptions for "info auto-load",
6530 "info auto-load gdb-scripts", "info auto-load python-scripts",
6531 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6532 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6533 and "show auto-load-scripts". New description for "set auto-load",
6534 "show auto-load", "set auto-load gdb-scripts",
6535 "show auto-load gdb-scripts", "set auto-load python-scripts",
6536 "show auto-load python-scripts", "set auto-load local-gdbinit",
6537 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6538 "show auto-load libthread-db".
6539 * auto-load.c: Remove include python/python-internal.h. Add includes
6540 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6541 cli/cli-setshow.h.
6542 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6543 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6544 (gdbpy_global_auto_load): Rename to ...
6545 (global_auto_load): ... here.
6546 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6547 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6548 (script_language_gdb, source_gdb_script_for_objfile): New.
6549 (struct loaded_script): New field language.
6550 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6551 LANGUAGE.
6552 (maybe_add_script): Add parameter language. Drop redundant
6553 entry.full_path initialization. Initialize entry.language and
6554 (*slot)->language.
6555 (auto_load_objfile_script): Change parameter suffix to language.
6556 Remove the call of maybe_add_script.
6557 Call language->source_script_for_objfile.
6558 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6559 New.
6560 (collect_matching_scripts): Adjust it for
6561 struct collect_matching_scripts_data.
6562 (auto_load_info_scripts_pattern_nl): New variable.
6563 (info_auto_load_scripts): Rename to ...
6564 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6565 for struct collect_matching_scripts_data.
6566 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6567 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6568 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6569 (auto_load_info_cmdlist_get): New.
6570 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6571 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6572 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6573 "info auto-load local-gdbinit".
6574 * auto-load.h (struct script_language): New.
6575 (gdbpy_global_auto_load): Rename to ...
6576 (global_auto_load): ... here.
6577 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6578 (auto_load_local_gdbinit_loaded): New declarations.
6579 (maybe_add_script): New parameter language.
6580 (auto_load_objfile_script): Change parameter suffix to language.
6581 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6582 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6583 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6584 declarations.
6585 * linux-thread-db.c: Include auto-load.h and ctype.h.
6586 (auto_load_thread_db, show_auto_load_thread_db): New.
6587 (struct thread_db_info): New field filename.
6588 (delete_thread_db_info): Call xfree for FILENAME.
6589 (try_thread_db_load): Initialize FILENAME.
6590 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6591 if !AUTO_LOAD_THREAD_DB.
6592 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6593 (_initialize_thread_db): Install auto_load_thread_db
6594 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6595 as "info auto-load libthread-db".
6596 * main.c (captured_main): Rename gdbpy_global_auto_load to
6597 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6598 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6599 (print_gdb_help): Extend the help for 'local init file'.
6600 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6601 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6602 (auto_load_scripts): Rename to ...
6603 (auto_load_python_scripts): ... here, update the comment.
6604 (gdbpy_load_auto_script_for_objfile): New declaration.
6605 (show_auto_load_python_scripts, script_language_python)
6606 (gdbpy_load_auto_script_for_objfile): New.
6607 (source_section_scripts): Refactor the code.
6608 (load_auto_scripts_for_objfile): Rename to ...
6609 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6610 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6611 (info_auto_load_python_scripts): New.
6612 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6613 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6614 Register "set auto-load-scripts" as its deprecated alias. Register
6615 "info auto-load python-scripts". Register "info auto-load-scripts" as
6616 its deprecated alias.
6617 (load_auto_scripts_for_objfile): Rename to ...
6618 (gdbpy_load_auto_scripts_for_objfile): ... here.
6619 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6620 (gdbpy_load_auto_scripts_for_objfile): ... here.
6621
e2207b9a
JK
66222012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6623
6624 auto-load: Move files.
6625 * Makefile.in (SFILES): Add auto-load.c.
6626 (HFILES_NO_SRCDIR): Add auto-load.h.
6627 (COMMON_OBS): Add auto-load.o.
6628 (distclean): Change .gdbinit for gdb-gdb.gdb.
6629 * auto-load.c: New file, with parts from python/py-auto-load.c.
6630 * auto-load.h: New file, with parts from python/python.h.
6631 * configure: Regenerate.
6632 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6633 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6634 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6635 * main.c: Include auto-load.h.
6636 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6637 command.h, observer.h and progspace.h to auto-load.c. Add include
6638 auto-load.h.
6639 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6640 (struct loaded_script, auto_load_pspace_data)
6641 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6642 (hash_loaded_script_entry, eq_loaded_script_entry)
6643 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6644 (maybe_add_script): Move to auto-load.c.
6645 (source_section_scripts): Change maybe_add_script parameters passing,
6646 use script_not_found_warning_print.
6647 (clear_section_scripts, auto_load_objfile_script)
6648 (auto_load_new_objfile, loaded_script_ptr)
6649 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6650 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6651 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6652 auto_load_new_objfile and info_auto_load_scripts initizations to
6653 auto-load.c.
6654 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6655
e4ab2fad
JK
66562012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6657
6658 Code cleanup.
6659 * charset.c (find_charset_names): Remove variables ix and elt.
6660 Use free_char_ptr_vec.
6661 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6662 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6663 debugdir_end. New variable debugdir_len.
6664 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6665 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6666 declarations.
6667 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6668 and elt. Use free_char_ptr_vec.
6669 * source.c (add_path): Remove variables argv, arg and argv_index.
6670 New variables dir_vec, back_to, ix and name.
6671 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6672 make_cleanup_freeargv. Remove variable separator. Simplify the code
6673 no longer expecting DIRNAME_SEPARATOR.
6674 (openp): Remove variable p, p1 and len. New variables dir_vec,
6675 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6676 no longer expecting DIRNAME_SEPARATOR.
6677 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6678 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6679 debugdir_end.
6680 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6681 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6682 (dirnames_to_char_ptr_vec): New functions.
6683
5ee4ed9f
JK
66842012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6685
6686 Code cleanup.
6687 * source.c (add_path): Remove always true conditional 'p == 0' and
6688 unindent its code block.
6689
f41f5e61
PA
66902012-04-17 Pedro Alves <palves@redhat.com>
6691
6692 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6693 (FIELD_BITPOS_LVAL): ... this.
6694 (FIELD_BITPOS): New.
6695 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6696 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6697 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6698 SET_FIELD_BITPOS.
6699 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6700 SET_FIELD_BITPOS.
6701 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6702 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6703 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6704 SET_FIELD_BITPOS.
6705
945b3a32
JK
67062012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6707
6708 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6709 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6710 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6711 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6712 * jv-lang.c (java_link_class_type): Likewise, once.
6713 * stabsread.c (read_enum_type): Likewise.
6714
42476b70
YQ
67152012-04-16 Yao Qi <yao@codesourcery.com>
6716
6717 * common/agent.c (agent_run_command): Add one more parameter `len'.
6718 Update callers.
6719 * common/agent.h: Update declaration.
6720 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6721 Update.
6722 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6723
8264ba82
AG
67242012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6725
6726 PR mi/13393
6727 * value.c (value_actual_type): New function.
6728 * value.h (value_actual_type): New declaration.
6729 * varobj.c (update_type_if_necessary): New function.
6730 (varobj_create): Call value_actual_type instead of
6731 value_type.
6732 (install_dynamic_child): distinct changed and type changed MI variable
6733 objects.
6734 (update_dynamic_varobj_children): Updated for install_dynamic_child
6735 change. All callers updated.
a09130f9 6736 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6737 the value changed and RTTI is used to determine the type.
6738 (create_child_with_value): Call value_actual_type instead of
6739 value_type.
a09130f9 6740 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6741 specify whether the given value should be casted to enclosing type.
6742 All callers updated.
6743
55a8c076
YQ
67442012-04-14 Yao Qi <yao@codesourcery.com>
6745
6746 Import gnulib module inttypes from git
6747 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6748 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6749 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6750 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6751 * aclocal.m4, config.in, configure: Regenerated.
6752 * gnulib/Makefile.am: Update.
6753 * gnulib/Makefile.in: Update.
6754 * gnulib/m4/gnulib-cache.m4: Update.
6755 * gnulib/m4/gnulib-comp.m4: Update.
6756 * gnulib/inttypes.in.h: New.
6757 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6758 * gnulib/m4/inttypes.m4: New.
55a8c076 6759
ca7781d2
LM
67602012-04-13 Luis Machado <lgustavo@codesourcery.com>
6761
6762 * infrun.c (resume): Update PC address to the real PC after
6763 preparing to do displaced stepping.
6764
e319fa28
DE
67652012-04-12 Doug Evans <dje@google.com>
6766
6767 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6768 All callers updated.
6769
15add3f5
MK
67702012-04-12 Mark Kettenis <kettenis@gnu.org>
6771
6772 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6773
52dc124a
DE
67742012-04-12 Doug Evans <dje@google.com>
6775
0e50663e
DE
6776 * dwarf2read.c (create_all_type_units): Renamed from
6777 create_debug_types_hash_table. All callers updated.
6778
52dc124a
DE
6779 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6780 local type_sig to sig_type, type_offset to type_offset_in_tu.
6781 (hash_signatured_type): Renamed from hash_type_signature,
6782 all callers updated.
6783 (eq_signatured_type): Renamed from eq_type_signature,
6784 all callers updated.
6785 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6786 (process_enumeration_scope): Ditto.
6787 (lookup_signatured_type_at_offset): Ditto.
6788 (load_full_type_unit, read_signatured_type): Ditto.
6789
248fd3bf
YQ
67902012-04-12 Yao Qi <yao@codesourcery.com>
6791
6792 * remote.c (async_remote_interrupt): Correct function name in
6793 debug message.
6794 (async_remote_interrupt_twice): Ditto.
6795
bc3aa6c3
DE
67962012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6797
6798 * source.c (find_and_open_source): Consistently pass resulting
6799 full path through xfullpath.
6800
9e529e1d
JK
68012012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6802
6803 Provide more specific displaced-stepping memory error message.
6804 * infrun.c (displaced_step_prepare): New variable status. Call
6805 target_read_memory instead of read_memory, provide more specific
6806 error message.
6807
82e0cec1
TG
68082012-04-11 Tristan Gingold <gingold@adacore.com>
6809
6810 PR gdb/13901
6811 * darwin-nat.c (darwin_execvp): Revert previous patch.
6812
d987a266
TG
68132012-04-11 Tristan Gingold <gingold@adacore.com>
6814
6815 PR gdb/13901
6816 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6817 in case of change.
6818
016b7430
TG
68192012-04-11 Tristan Gingold <gingold@adacore.com>
6820
6821 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6822 warning.
6823
06fc020f
SCR
68242012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6825
6826 New command 'explore' which helps explore values and types in
6827 scope.
6828 * NEWS: Add an entry about the new 'explore' command.
6829 * data-directory/Makefile.in: Add gdb/command/explore.py
6830 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6831 command using the GDB Python API.
06fc020f 6832
de0919f8 68332012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6834
6835 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6836 extension in jump target calculation.
6837
de0919f8 68382012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6839
6840 * mips-tdep.c (mips32_next_pc): Handle JALX.
6841
2f26ef89
YQ
68422012-04-10 Yao Qi <yao@codesourcery.com>
6843
6844 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6845
2e505b66
YQ
68462012-04-10 Yao Qi <yao@codesourcery.com>
6847
6848 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6849 and gnulib/m4/gnulib-tool.m4.
6850
0d99eb77
DE
68512012-04-10 Doug Evans <dje@google.com>
6852
6853 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6854 (load_partial_dies): Clarify comment.
6855 (find_partial_die): Support rereading type units.
6856 Clarify CU handling, if we know offset is in CU, don't search for the
6857 containing CU. Add comment regarding memory waste.
6858
9a82b8ff
L
68592012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6860
6861 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6862 i386/x32-avx and i386/x32-avx-linux.
6863 (i386/x32-expedite): New.
6864 (i386/x32-linux-expedite): Likewise.
6865 (i386/x32-avx-expedite): Likewise.
6866 (i386/x32-avx-linux-expedite): Likewise.
6867 ($(outdir)/i386/x32.dat): Likewise.
6868 ($(outdir)/i386/x32-linux.dat): Likewise.
6869 ($(outdir)/i386/x32-avx.dat): Likewise.
6870 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6871
6872 * features/i386/x32-avx-linux.xml: New file.
6873 * features/i386/x32-avx.xml: Likewise.
6874 * features/i386/x32-core.xml: Likewise.
6875 * features/i386/x32-linux.xml: Likewise.
6876 * features/i386/x32.xml: Likewise.
6877
6878 * features/i386/x32-avx-linux.c: New. Generated.
6879 * features/i386/x32-avx.c: Likewise.
6880 * features/i386/x32-linux.c: Likewise.
6881 * features/i386/x32.c: Likewise.
6882 * regformats/i386/x32-avx-linux.dat: Likewise.
6883 * regformats/i386/x32-avx.dat: Likewise.
6884 * regformats/i386/x32-linux.dat: Likewise.
6885 * regformats/i386/x32.dat: Likewise.
6886
ee41036f
TG
68872012-04-10 Tristan Gingold <gingold@adacore.com>
6888
6889 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6890 code to kill the inferior.
6891
a7aa5b8a
MK
68922012-04-09 Mark Kettenis <kettenis@gnu.org>
6893
6894 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6895 defines.
6896 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6897 defines.
a09130f9 6898 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6899 (yyvsp): New defines.
6900 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6901 defines.
6902 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6903 defines.
6904 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6905 defines.
6906 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6907 defines.
6908 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6909 defines.
6910
fb57d452
MK
69112012-04-09 Mark Kettenis <kettenis@gnu.org>
6912
a09130f9 6913 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6914 (sparc64_store_arguments): Fix coding style.
6915
cdc7b32f
MK
69162012-04-07 Mark Kettenis <kettenis@gnu.org>
6917
6918 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6919 complex floats, adjust some related comments and tighten a related
6920 assertion.
6921 (sparc64_extract_return_value): Handle complex floats.
6922
7adf1e79
DE
69232012-04-07 Doug Evans <dje@google.com>
6924
6925 * dwarf2read.c (load_partial_dies): Change condition to assert.
6926
50f1ae7b
DE
69272012-04-06 Doug Evans <dje@google.com>
6928
6929 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6930 "mov %rsp,%rbp".
6931
55fa75c3
KB
69322012-04-05 Kevin Buettner <kevinb@redhat.com>
6933
6934 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6935 fencepost error.
6936 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6937 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6938 architecture.
6939
40e084e1
KS
69402012-04-05 Keith Seitz <keiths@redhat.com>
6941
6942 * linespec.c (decode_compound): Remove.
6943 (enum offset_relative_sign): New enum.
6944 (struct line_offset): New struct.
6945 (struct linespec): New struct.
6946 (struct linespec_state): Move file_symtabs,
6947 user_filename, and user_function into struct linespec.
6948 Make result an anonymous struct holding vectors of
6949 symbolp and minsym_and_objfile_d.
6950 Add language member.
6951 (enum ls_token_type): New enum.
6952 (linespec_keywords): New array.
6953 (struct ls_token): New struct.
6954 (struct ls_parser): New struct.
6955 (linespec_lexer_lex_number): New function.
6956 (linespec_lexer_lex_keyword): New function.
6957 (is_ada_operator): New function.
6958 (skip_quote_char): New function.
6959 (copy_token_string): New function.
6960 (is_closing_quote_enclosed): New function.
6961 (find_parameter_list_end): New function.
6962 (linespec_lexer_lex_string): New function.
6963 (linespec_lexer_lex_one): New function.
6964 (linespec_lexer_consume_token): New function.
6965 (linespec_lexer_peek_token): New function.
6966 (cplusplus_error): Remove unused function.
6967 (find_methods): Update comment.
6968 (find_toplevel_char): Return const.
6969 (is_objc_method_format): Remove unused function.
6970 (find_toplevel_string): New function.
6971 (is_linespec_boundary): Remove.
6972 (symbol_not_found_error): New function.
6973 (find_method_overload_end): Remove function.
6974 (unexpected_linespec_error): New function.
6975 (keep_name_info): Remove.
6976 (linespec_parse_line_offset): New function.
6977 (linespec_parse_basic): New function.
6978 (canonicalize_linespec): New function.
6979 (decode_line_internal): Remove.
6980 (create_sals_line_offset): New function adapted from
6981 decode_all_digits.
6982 (convert_linespec_to_sals): New function.
6983 (parse_linespec): New function.
6984 (linespec_parser_new): New function.
6985 (linespec_state_destructor): Change parameter type to
6986 struct linespec_state *.
6987 Add language parameter.
6988 Remove freeing of moved members.
6989 (linespec_parser_delete): New function.
6990 (decode_line_full): Use parse_linespec and linespec_parser_new.
6991 (decode_line_1): Likewise.
6992 (decode_indirect): Rename to ...
6993 (linespec_expression_to_pc): ... this and rewrite
6994 to simply find CORE_ADDR, storing this result for later
6995 conversion to SALs.
6996 (locate_first_half): Remove.
6997 (deocde_objc): Add parameter LS.
6998 Initialize new struct collect_info members.
6999 Handle minimal symbols, too.
7000 (decode_compound): Delete.
7001 (lookup_prefix_sym): Rewrite.
7002 (compare_msymbols): New function.
7003 (find_method): Rewrite.
7004 Do not call cplusplus_error.
7005 (symtabs_from_filename): Rewrite.
7006 (collect_function_symbols): Delete.
7007 (find_function_symbols): Rewrite without ARGPTR-style
7008 processing.
7009 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7010 (decode_dollar): Adapted and renamed to ...
7011 (linespec_parse_variable): ... this.
7012 (find_linespec_symbols): New function.
7013 (decode_label): Adapted and renamed to ...
7014 (find_label_symbols): ... this.
7015 (decode_digits_list_mode): Add and use LS argument.
7016 (decode_digits_ordinary): Likewise.
7017 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7018 If in list mode, allow any symbol class. Otherwise, only
7019 permit LOC_BLOCK symbols.
7020 (minsym_found): Update comments.
7021 (search_minsyms_for_name): Do not convert the matching symbol
7022 into a SAL. Simply push the symbol and objfile into the
7023 result vector.
7024 (decode_variable): Delete. Contents adapted into
7025 find_linespec_symbols.
7026
7027 * cp-support.c (SKIP_SPACE): Remove.
7028 (operator_tokens): Remove unused global.
7029 (cp_validate_operator): Remove.
7030 * cp-support.h (cp_validate_operator): Remove declaration.
7031
a72c8f6a
JK
70322012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7033
7034 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7035 for TYPE_VPTR_FIELDNO.
7036 * valprint.c (valprint_check_validity): Make it global, move the
7037 function comment ...
7038 * value.h (valprint_check_validity): ... to this new declaration.
7039
cf9bb588
TG
70402012-04-02 Tristan Gingold <gingold@adacore.com>
7041
7042 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7043 the STATE32 api for i386 state.
7044 (i386_darwin_store_inferior_registers): Likewise.
7045
17092398
TG
70462012-04-02 Tristan Gingold <gingold@adacore.com>
7047
7048 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7049 SS offset.
7050 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7051 format_string.
7052
ece0061f
TG
70532012-04-02 Tristan Gingold <gingold@adacore.com>
7054
7055 PR gdb/13901
d987a266 7056 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7057
cf65ecd3
JK
70582012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7059
7060 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7061
9bc3523d
TT
70622012-03-30 Tom Tromey <tromey@redhat.com>
7063
7064 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7065 of TRY_CATCH. Fix error handling.
7066 * python/py-value.c (convert_value_from_python): Move 'old'
7067 declaration to innermost scope.
7068
b1ed564a
JB
70692012-03-29 Joel Brobecker <brobecker@adacore.com>
7070 Andrey Smirnov <andrew.smirnov@gmail.com>
7071
7072 -Wshadow warning fix.
7073 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7074 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7075 Adjust code accordingly.
7076
cb8e9b97
JB
70772012-03-29 Joel Brobecker <brobecker@adacore.com>
7078
7079 * ada-lang.c (symbol_completion_add): Rename parameter
7080 "encoded" into "encoded_p". Ajust code and documentation
7081 accordingly.
7082
c0af1706
JB
70832012-03-29 Joel Brobecker <brobecker@adacore.com>
7084 Andrey Smirnov <andrew.smirnov@gmail.com>
7085
7086 -Wshadow warning fix.
7087 * ada-lang.c (symbol_completion_add): Rename parameter
7088 "wild_match" into wild_match_p. Update code and documentation
7089 accordingly.
7090
6ea35997
JB
70912012-03-29 Joel Brobecker <brobecker@adacore.com>
7092
7093 * ada-lang.c (symbol_completion_match): Rename parameter
7094 "encoded" into "encoded_p". Ajust code and documentation
7095 accordingly.
7096
e701b3c0
JB
70972012-03-29 Joel Brobecker <brobecker@adacore.com>
7098 Andrey Smirnov <andrew.smirnov@gmail.com>
7099
7100 -Wshadow warning fix.
7101 * ada-lang.c (symbol_completion_match): Rename parameter
7102 "wild_match" into "wild_match_p". Adjust code and function
7103 documentation accordingly.
7104
5e2336be
JB
71052012-03-29 Joel Brobecker <brobecker@adacore.com>
7106 Andrey Smirnov <andrew.smirnov@gmail.com>
7107
7108 -Wshadow warning fix.
7109 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7110 "symbol_info" into "info". Adjust code accordingly.
7111 (ada_lookup_symbol): Likewise.
7112
9f88c959
JB
71132012-03-29 Joel Brobecker <brobecker@adacore.com>
7114
7115 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7116 of this function's documentation.
7117
82ccd55e
JB
71182012-03-29 Joel Brobecker <brobecker@adacore.com>
7119 Andrey Smirnov <andrew.smirnov@gmail.com>
7120
7121 -Wshadow warning fix.
7122 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7123 variable into "wild_match_p". Adjust code accordingly.
7124
d0a8ab18
JB
71252012-03-29 Joel Brobecker <brobecker@adacore.com>
7126 Andrey Smirnov <andrew.smirnov@gmail.com>
7127
7128 -Wshadow warning fix.
7129 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7130 parameter into "wild_match_p". Adjust code accordingly.
7131 Document this parameter in the function description.
7132
48b78332
JB
71332012-03-29 Joel Brobecker <brobecker@adacore.com>
7134 Andrey Smirnov <andrew.smirnov@gmail.com>
7135
7136 -Wshadow warning fix.
7137 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7138 "wild_match" parameter to "wild_match_p" (-Wshadow).
7139
2e6e0353
JB
71402012-03-29 Joel Brobecker <brobecker@adacore.com>
7141
7142 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7143 in function documentation.
7144
dc4024cd
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_simple_minsym): Rename wild_match local
7150 variable into wild_match_p. Adjust code accordingly.
7151
6c88661c
JB
71522012-03-29 Joel Brobecker <brobecker@adacore.com>
7153 Andrey Smirnov <andrew.smirnov@gmail.com>
7154
7155 * ada-valprint.c (ada_val_print_1): Move the code handling
7156 TYPE_CODE_ENUM inside its own lexical block. Declare
7157 variables len and val there, instead of in the function's
7158 top level block. Avoid declaring deref_val again in a way
7159 that shadows another variable of the same name declared
7160 in one of the up-level blocks. Just re-use the up-level
7161 variable instead.
7162
4e5c77fe
JB
71632012-03-29 Joel Brobecker <brobecker@adacore.com>
7164
7165 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7166 Replace block_found argument by symbol_info. Adjust
7167 implementation accordingly. Add function documentation.
7168 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7169 Fix documentation.
7170 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7171 * ada-exp.y (write_object_renaming): Adjust to new
7172 ada_lookup_encoded_symbol API.
7173
1c0ac8c7
JB
71742012-03-29 Joel Brobecker <brobecker@adacore.com>
7175
7176 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7177 documentation.
7178
2aaed979
KB
71792012-03-28 Rathish C <rathish.c@kpitcummins.com>
7180
7181 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7182 (v850_register_name): Add the mpu and fpu register names.
7183 (v850e_register_name): Add the mpu and fpu register names.
7184 (v850e2_register_name): New function.
a09130f9 7185 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7186 bfd_mach_v850e2v3.
7187
927fbba6
JB
71882012-03-28 Joel Brobecker <brobecker@adacore.com>
7189
7190 * NEWS: Add entry for Ada varobj support.
7191
d32cafc7
JB
71922012-03-28 Joel Brobecker <brobecker@adacore.com>
7193
7194 * varobj.c (default_value_is_changeable_p): New function,
7195 extracted from varobj_value_is_changeable_p. Add declaration.
7196 (ada_value_is_changeable_p): New function, extracted from
7197 varobj_value_is_changeable_p. Add declaration.
7198 (struct language_specific): New field "value_is_changeable_p".
7199 (languages): Add entries for new field.
7200 (varobj_create): Set language before calling install_new_value.
7201 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7202 "value_is_changeable_p" language callback.
7203
181875a4
JB
72042012-03-28 Joel Brobecker <brobecker@adacore.com>
7205
7206 * ada-varobj.h, ada-varobj.c: New files.
7207 * Makefile.in (SFILES): Add ada-varobj.c.
7208 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7209 (COMMON_OBS): Add ada-varobj.o.
7210
7a290c40
JB
72112012-03-28 Joel Brobecker <brobecker@adacore.com>
7212
7213 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7214 (struct language_specific): New field "value_has_mutated".
7215 (languages): Set field "value_has_mutated" in each entry of array.
7216 (varobj_value_has_mutated): New function.
7217 (varobj_udpdate): Add handling of type mutation.
7218 (value_of_root): Add handling of type mutation.
7219 (ada_value_has_mutated): New function.
7220
ca9b8b9c
PA
72212012-03-28 Pedro Alves <palves@redhat.com>
7222
7223 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7224 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7225
cc0265cd
TT
72262012-03-28 Tom Tromey <tromey@redhat.com>
7227
7228 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7229 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7230 before returning.
7231
3ad2ec6f
TT
72322012-03-28 Tom Tromey <tromey@redhat.com>
7233
7234 * .dir-locals.el: New file.
7235
4a6510ba
PA
72362012-03-28 Pedro Alves <palves@redhat.com>
7237
7238 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7239
5a75128f
JB
72402012-03-28 Joel Brobecker <brobecker@adacore.com>
7241
7242 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7243 handling for r0.
7244
f99d8bf4
PA
72452012-03-27 Pedro Alves <palves@redhat.com>
7246
7247 Eliminate struct ui_stream.
7248
7249 * ui-out.h (struct ui_stream): Delete.
7250 (ui_out_field_stream): Adjust prototype.
7251 (ui_out_stream_new, ui_out_stream_delete)
7252 (make_cleanup_ui_out_stream_delete): Delete declarations.
7253 * ui-out.c (ui_out_field_stream): Change prototype to take a
7254 ui_file instead of a ui_stream. Adjust.
7255 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7256 (make_cleanup_ui_out_stream_delete): Delete.
7257 * breakpoint.c (print_breakpoint_location)
7258 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7259 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7260 * disasm.c (dump_insns): Ditto.
7261 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7262 prototype.
7263 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7264 ui_stream/ui_out_stream_new.
7265 * infcmd.c (print_return_value): Ditto.
7266 * osdata.c (info_osdata_command): Don't allocate a local
7267 ui_stream.
7268 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7269 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7270 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7271 allocate a local ui_stream.
7272 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7273 instead of ui_stream/ui_out_stream_new.
7274 (list_args_or_locals): Don't allocate a local ui_stream.
7275 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7276 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7277 ui_stream/ui_out_stream_new.
7278 * cli/cli-setshow.c (do_setshow_command): Ditto.
7279
6350a066 72802012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7281
6350a066
PA
7282 * arm-linux-tdep.c (arm_linux_init_abi): Call
7283 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7284 * arm-tdep.c (arm_process_record): New function.
7285 (deallocate_reg_mem): New function.
7286 (decode_insn): New function.
7287 (thumb_record_branch): New function.
7288 (thumb_record_ldm_stm_swi(): New function.
7289 (thumb_record_misc): New function.
7290 (thumb_record_ld_st_stack): New function.
7291 (thumb_record_ld_st_imm_offset): New function.
7292 (thumb_record_ld_st_reg_offset(): New function.
7293 (thumb_record_add_sub_cmp_mov): New function.
7294 (thumb_record_shift_add_sub): New function.
7295 (arm_record_coproc_data_proc): New function.
7296 (arm_record_coproc): New function.
7297 (arm_record_b_bl): New function.
7298 (arm_record_ld_st_multiple): New function.
7299 (arm_record_ld_st_reg_offset): New function.
7300 (arm_record_ld_st_imm_offset): New function.
7301 (arm_record_data_proc_imm): New function.
7302 (arm_record_data_proc_misc_ld_str): New function.
7303 (arm_record_extension_space): New function.
7304 (arm_record_strx): New function.
7305 (sbo_sbz): New function.
7306 (struct insn_decode_record): New structure for arm insn record.
7307 (REG_ALLOC): New macro for reg allocations.
7308 (MEM_ALLOC): New macro for memory allocations.
7309 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7310
89e028e2
AS
73112012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7312
7313 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7314 (store_register): Likewise.
7315
6350a066 73162012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7317
6350a066 7318 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7319
5b43fab2
JK
73202012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7321
7322 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7323 Describe also the option "auto".
7324
b5453b95
RH
73252012-03-22 Richard Henderson <rth@redhat.com>
7326
7327 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7328 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7329
227ee7fc
RH
73302012-03-22 Richard Henderson <rth@redhat.com>
7331
7332 * jit.c (jit_read_code_entry): Compute alignment and offset of
7333 int64_t member before computing entry_size.
7334
7b282c5a
SCR
73352012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7336
7337 Python scripting: Add new method Value.referenced_value to
7338 gdb.Value which can dereference pointer as well as reference
7339 values.
7340 * NEWS: Add entry under 'Python scripting' about the new method
7341 Value.referenced_value on gdb.Value objects.
7342 * python/py-value.c (valpy_referenced_value): New function
7343 defining a new method on gdb.Value objects which can dereference
7344 pointer and reference values.
7345
0c83539f
SCR
73462012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7347
7348 * MAINTAINERS (Write After Approval): Add myself to the list.
7349
7ccffd7c
KB
73502012-03-21 Kevin Buettner <kevinb@redhat.com>
7351
7352 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7353 in addition to "main".
7354
bd0b9f9e
JB
73552012-03-21 Joel Brobecker <brobecker@adacore.com>
7356
7357 * expression.h (op_name): Add declaration.
7358 * expprint.c (op_name): Remove declaration. Make non-static.
7359 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7360
a5362b9a
TS
73612012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7362
7363 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7364 of struct siginfo.
7365 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7366 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7367 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7368 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7369 (linux_nat_get_siginfo): Likewise.
7370 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7371 (linux_nat_get_siginfo): Likewise.
7372 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7373 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7374 * procfs.c (gdb_siginfo_t): Likewise.
7375
adcadaab
MF
73762012-03-21 Mike Frysinger <vapier@gentoo.org>
7377
7378 * .gitignore: Ignore more files.
7379
e278ad5b
PA
73802012-03-20 Pedro Alves <palves@redhat.com>
7381
7382 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7383 returns.
7384
741e63d7
YQ
73852012-03-20 Yao Qi <yao@codesourcery.com>
7386
7387 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7388 comment.
7389
b64f50a1
JK
73902012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7391
7392 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7393 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7394 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7395 sect_offset.
7396 * dwarf2expr.h (cu_offset, sect_offset): New types.
7397 (struct dwarf_expr_context_funcs) <dwarf_call>
7398 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7399 sect_offset.
7400 (struct dwarf_expr_context) <len>: Improve the comment.
7401 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7402 cu_offset and sect_offset.
7403 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7404 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7405 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7406 * dwarf2loc.h: Include dwarf2expr.h.
7407 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7408 and sect_offset.
7409 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7410 Improve the comment.
7411 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7412 (struct signatured_type, struct line_header, struct partial_die_info)
7413 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7414 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7415 (get_die_type_at_offset, create_cus_from_index)
7416 (create_signatured_type_table_from_index, dw2_get_file_names)
7417 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7418 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7419 (create_debug_types_hash_table, process_psymtab_comp_unit)
7420 (load_partial_comp_unit, create_all_comp_units)
7421 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7422 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7423 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7424 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7425 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7426 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7427 (find_partial_die, read_attribute_value, lookup_die_type)
7428 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7429 (is_ref_attr): New function comment.
7430 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7431 Use cu_offset and sect_offset.
7432 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7433 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7434 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7435 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7436 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7437 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7438 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7439 sect_offset.
7440
e97a38f7
JK
74412012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7442
7443 Code cleanup.
7444 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7445 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7446 with xfree.
7447 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7448
8320cc4f
JK
74492012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7450
7451 * NEWS: Describe new options --init-command=FILE, -ix and
7452 --init-eval-command=COMMAND, -iex.
7453 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7454 CMDARG_INIT_COMMAND.
7455 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7456 "init-command", "init-eval-command", "ix" and "iex" to the variable
7457 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7458 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7459 (print_gdb_help): Describe --init-command=FILE, -ix and
7460 --init-eval-command=COMMAND, -iex.
7461
26743505
JK
74622012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7463
7464 Code cleanup.
7465 * main.c (struct cmdarg): Move it here from main. Add more comments.
7466 (cmdarg_s, VEC (cmdarg_s)): New.
7467 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7468 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7469 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7470 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7471 of CMDARG.
7472
5ff5c7b4
TT
74732012-03-19 Tom Tromey <tromey@redhat.com>
7474
7475 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7476
ab260dad
JK
74772012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7478
7479 PR symtab/13777
7480 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7481 GCC >=4.5.
7482
c366c1f0
TT
74832012-03-16 Chris January <chris.january@allinea.com>
7484
7485 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7486 of clear.
7487
e16edb45
TT
74882012-03-16 Chris January <chris.january@allinea.com>
7489
7490 * source.c (add_path): Use memmove instead of strcpy because the
7491 strings overlap.
7492
53ba8333
JB
74932012-03-16 Joel Brobecker <brobecker@adacore.com>
7494
7495 * value.h (set_value_parent): Add declaration.
7496 * value.c (set_value_parent): New function.
7497 (value_address): If VALUE->PARENT is not NULL, then use it as
7498 the base address instead of VALUE->LOCATION.address.
7499 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7500 the same as OBJ's address. Adjust V's offset accordingly.
7501 Set V's parent.
7502
481860b3
GB
75032012-03-16 Gary Benson <gbenson@redhat.com>
7504
7505 PR breakpoints/10738
7506 * dwarf2read.c (use_deprecated_index_sections): New global.
7507 (struct partial_die_info): New member may_be_inlined.
7508 (read_partial_die): Set may_be_inlined where appropriate.
7509 (add_partial_subprogram): Add partial symbols for partial
7510 DIEs that may be inlined.
7511 (new_symbol_full): Add inlined subroutines to the current
7512 scope.
7513 (write_psymtabs_to_index): Bump version number.
7514 (dwarf2_read_index): Read only version 6 indices unless
7515 use_deprecated_index_sections is set.
7516 * linespec.c (symbol_and_data_callback): New structure.
7517 (iterate_inline_only): New function.
7518 (iterate_over_all_matching_symtabs): New argument
7519 "include_inline". If nonzero, also call the callback for
7520 symbols representing inlined subroutines.
7521 (lookup_prefix_sym): Pass extra argument to the above.
7522 (find_function_symbols): Likewise.
7523 (add_matching_symbols_to_info): Likewise.
7524 * NEWS: Mention that GDB can now set breakpoints on inlined
7525 functions.
7526
d0e7e15a
PM
75272012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7528
7529 * p-typeprint.c (pascal_type_print_method_args):
7530 Fix display of parameter of methods.
7531
3d354654
PM
75322012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7533
7534 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7535 Add missing prototype.
7536
cafe75b0
JK
75372012-03-16 Yao Qi <yao@codesourcery.com>
7538 Jan Kratochvil <jan.kratochvil@redhat.com>
7539
7540 Fix false compilation warning.
7541 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7542
25f8c692
JL
75432012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7544 Pedro Alves <pedro@codesourcery.com>
7545
7546 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7547 (arm_register_g_packet_guesses): New function.
7548 (arm_gdbarch_init): Don't force a target description with
7549 registers when the executable is detected as M-profile. Instead
7550 set gdbarch->tdep->is_m. Register `g' packet guesses.
7551 (_initialize_arm_tdep): Initialize the new target description.
7552 * features/arm-with-m-fpa-layout.xml: New description.
7553 * features/arm-with-m-fpa-layout.c: New, generated.
7554
35c63cd8
JB
75552012-03-15 Joel Brobecker <brobecker@adacore.com>
7556
7557 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7558 Update function description.
7559 (insert_bp_location): Do not wipe bl->target_info out.
7560 * mem-break.c: #include "gdb_string.h".
7561 (default_memory_insert_breakpoint): Do not call target_read_memory
7562 with a pointer to the breakpoint's shadow_contents buffer. Use
7563 a local buffer instead.
7564 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7565
57651221
TT
75662012-03-15 Tom Tromey <tromey@redhat.com>
7567
7568 * NEWS: Mention "info vtbl", not "info vtable".
7569 * cp-support.c (info_vtbl_command): Fix comment.
7570 (_initialize_cp_support): Fix text.
7571
410528f0
TT
75722012-03-15 Tom Tromey <tromey@redhat.com>
7573
7574 * cp-valprint.c (cp_print_value_fields): Use
7575 print_function_pointer_address for vtable slot.
7576
c4aeac85
TT
75772012-03-15 Tom Tromey <tromey@redhat.com>
7578
7579 * gnu-v3-abi.c (struct value_and_voffset): New.
7580 (hash_value_and_voffset, eq_value_and_voffset)
7581 (compare_value_and_voffset, compute_vtable_size)
7582 (print_one_vtable, gnuv3_print_vtable): New functions.
7583 (init_gnuv3_ops): Initialize 'print_vtable' field.
7584 * cp-support.c (info_vtbl_command): New function.
7585 (_initialize_cp_support): Add "info vtbl".
7586 * cp-abi.h (cplus_print_vtable): Declare.
7587 (struct cp_abi_ops) <print_vtable>: New field.
7588 * cp-abi.c (cplus_print_vtable): New function.
7589 * NEWS: Update.
7590
95cbceff
TT
75912012-03-15 Tom Tromey <tromey@redhat.com>
7592
7593 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7594 iterate_over_symbols.
7595
589b4a32
DE
75962012-03-14 Doug Evans <dje@google.com>
7597
7598 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7599 DW_OP_GNU_parameter_ref.
7600
e837f12a
JK
76012012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7602
7603 Fix double prompt of 'interpreter-exec mi'.
7604 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7605 (mi_interpreter_resume): use it.
7606 (mi_execute_command_input_handler): New function.
7607 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7608 mi_execute_command_input_handler.
7609
ff1e4526 76102012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7611
7612 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7613 prototype.
7614 (darwin_debug_port_info): Make static.
7615 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7616 * machoread.c (_initialize_machoread): Add prototype.
7617 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7618 (i386_darwin_set_control, i386_darwin_get_control)
7619 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7620 i386_darwin_get_status, i386_darwin_get_control):
7621 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7622
d8a5d6ee
JB
76232012-03-13 Joel Brobecker <brobecker@adacore.com>
7624
7625 * ax-gdb.c (gen_usual_unary): Remove special handling of
7626 enum and bool types.
7627
af381b8c
JB
76282012-03-13 Joel Brobecker <brobecker@adacore.com>
7629
7630 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7631
786c562f
JB
76322012-03-13 Joel Brobecker <brobecker@adacore.com>
7633
7634 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7635
e3ebf1bb
JB
76362012-03-13 Chris January <chris.january@allinea.com>
7637
7638 * aix-thread.c (fill_sprs): Store the floating point registers
7639 at the correct offsets into vals.
7640
c5b7e1cb
DE
76412012-03-13 Doug Evans <dje@google.com>
7642
16899756
DE
7643 * NEWS: Mention symbol-reloading has been deleted.
7644 * symfile.c (symbol_reloading): Delete.
7645 (show_symbol_reloading): Delete.
7646 (_initialize_symfile): Delete set/show symbol-reloading.
7647
c5b7e1cb
DE
7648 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7649 read_in_chain until we have successfully read it in.
7650 (load_full_comp_unit): Ditto.
7651 (read_signatured_type): Add comment.
7652
46cb6474
JB
76532012-03-13 Chris January <chris.january@allinea.com>
7654
7655 * stabsread.c (fix_common_block): Change type of valu argument
7656 to CORE_ADDR.
7657
76219d77
JB
76582012-03-13 Chris January <chris.january@allinea.com>
7659
7660 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7661 instruction.
7662
87b0bb13
JK
76632012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7664
7665 * common/linux-procfs.c (linux_proc_get_int): New, from
7666 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7667 field.
7668 (linux_proc_get_tgid): Only call linux_proc_get_int.
7669 (linux_proc_get_tracerpid): New.
7670 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7671 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7672 linux_proc_pid_has_state.
7673 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7674 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7675 (linux_ptrace_attach_warnings): New.
7676 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7677 New declaration.
7678 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7679 (linux_nat_attach): New variables ex, buffer, message and message_s.
7680 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7681
5f572dec
JK
76822012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7683
7684 * Makefile.in (linux-ptrace.o): New.
7685 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7686 from linux-nat.c.
7687 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7688 * common/linux-ptrace.c: New file.
7689 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7690 * config/arm/linux.mh: Likewise.
7691 * config/i386/linux.mh: Likewise.
7692 * config/i386/linux64.mh: Likewise.
7693 * config/ia64/linux.mh: Likewise.
7694 * config/m32r/linux.mh: Likewise.
7695 * config/m68k/linux.mh: Likewise.
7696 * config/mips/linux.mh: Likewise.
7697 * config/pa/linux.mh: Likewise.
7698 * config/powerpc/linux.mh: Likewise.
7699 * config/powerpc/ppc64-linux.mh: Likewise.
7700 * config/powerpc/spu-linux.mh: Likewise.
7701 * config/s390/s390.mh: Likewise.
7702 * config/sparc/linux.mh: Likewise.
7703 * config/sparc/linux64.mh: Likewise.
7704 * config/xtensa/linux.mh: Likewise.
7705 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7706 common/linux-procfs.c.
7707 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7708
44f238bb
PA
77092012-03-13 Hui Zhu <teawater@gmail.com>
7710 Pedro Alves <palves@redhat.com>
7711
7712 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7713 CREATE_BREAKPOINT_FLAGS_INSERTED.
7714 (create_breakpoint_sal, create_breakpoints_sal)
7715 (base_breakpoint_create_breakpoints_sal)
7716 (tracepoint_create_breakpoints_sal)
7717 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7718 down.
7719 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7720 (ftrace_command, strace_command): Adjust.
7721 (create_tracepoint_from_upload): Pass
7722 CREATE_BREAKPOINT_FLAGS_INSERTED.
7723 * breakpoint.h (enum breakpoint_create_flags): New.
7724 (create_breakpoint): New flags parameter.
7725 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7726 * python/py-breakpoint.c (bppy_init): Adjust.
7727 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7728 * spu-tdep.c (spu_catch_start): Adjust.
7729
1e51243a
PA
77302012-03-13 Pedro Alves <palves@redhat.com>
7731 Hui Zhu <teawater@gmail.com>
7732 Yao Qi <yao@codesourcery.com>
7733
7734 * remote.c (struct remote_state): New field `starting_up'.
7735 (remote_start_remote): Set and clear it.
7736 (remote_can_download_tracepoint): If starting up, return false.
7737
fa3064dd
YQ
77382012-03-13 Yao Qi <yao@codesourcery.com>
7739
7740 * inferior.h (struct inferior): Remove fields any_syscall_count,
7741 syscalls_counts and total_syscalls_count. Move them to new
7742 struct catch_syscall_inferior_data in breakpoint.c.
7743 * breakpoint.c: Call DEF_VEC_I(int).
7744 (struct catch_syscall_inferior_data): New.
7745 (get_catch_syscall_inferior_data): New.
7746 (catch_syscall_inferior_data_cleanup): New.
7747 (insert_catch_syscall): Update to access data in
7748 struct catch_syscall_inferior_data.
7749 (insert_catch_syscall): Likewise.
7750 (remove_catch_syscall): Likewise.
7751 (remove_catch_syscall): Likewise.
7752 (is_syscall_catchpoint_enabled): Likewise.
7753 (add_catch_command): Likewise.
7754 (_initialize_breakpoint): Register cleanup.
7755 * breakpoint.h: Removed DEF_VEC_I(int).
7756 * dwarf2loc.c: Call DEF_VEC_I(int).
7757 * mi/mi-main.c: Likewise.
7758
460fac3c
MK
77592012-03-12 Mark Kettenis <kettenis@gnu.org>
7760
7761 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7762
e1aca11e
JB
77632012-03-12 Chris January <chris.january@allinea.com>
7764
7765 * aix-thread.c (_initialize_aix_thread): Add prototype.
7766 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7767 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7768
649c7061
JB
77692012-03-12 Joel Brobecker <brobecker@adacore.com>
7770
7771 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7772 include of "amd64-nat.h".
7773
0b49e518
TT
77742012-03-12 Tom Tromey <tromey@redhat.com>
7775
7776 * buildsym.c (record_pending_block): Now static.
7777 * buildsym.h: (record_pending_block): Remove.
7778
fd24fa94
AT
77792012-03-12 Andreas Tobler <andreast@fgznet.ch>
7780
7781 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7782
ba919b58
TT
77832012-03-09 Tom Tromey <tromey@redhat.com>
7784
7785 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7786 producer_is_gxx_lt_4_6>: New fields.
7787 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7788
a48e046c
TT
77892012-03-09 Tom Tromey <tromey@redhat.com>
7790
7791 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7792
6f5e9362
JB
77932012-03-08 Joel Brobecker <brobecker@adacore.com>
7794
7795 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7796 prototype.
7797
8d037db9
JB
77982012-03-08 Joel Brobecker <brobecker@adacore.com>
7799
7800 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7801
4e841acf
JK
78022012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7803
7804 Fix -Wmissing-prototypes build.
7805 * arm-linux-nat.c (get_thread_id): Make it static.
7806 * xtensa-linux-nat.c (get_thread_id): Likewise.
7807
c6030312
JB
78082012-03-08 Joel Brobecker <brobecker@adacore.com>
7809
7810 * server.c (process_point_options): If a conditional expression
7811 is found, only print a message if remote_debug is nonzero.
7812
52323be9
LM
78132012-03-08 Luis Machado <lgustavo@codesourcery.com>
7814
7815 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7816 of internal error for unknown/unsupported types.
7817
7fe25d9b
JK
78182012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7819
7820 Fix CU relative vs. absolute DIE offsets.
7821 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7822 offset to offset_in_cu.
7823 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7824 TYPE_OFFSET.
7825 (dwarf2_fetch_die_location_block): Rename parameter offset to
7826 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7827
05e7c244
JK
78282012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7829
7830 * libunwind-frame.c: Rename to ...
7831 * ia64-libunwind-tdep.c: ... here.
7832 * libunwind-frame.h: Rename to ...
7833 * ia64-libunwind-tdep.h: ... here.
7834 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7835 ia64-libunwind-tdep.h.
7836 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7837 * README (--with-libunwind): Rename to ...
7838 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7839 * config.in: Regenerate.
7840 * configure: Regenerate.
7841 * configure.ac: New option --with-libunwind-ia64, make the
7842 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7843 Remove AC_DEFINE for HAVE_LIBUNWIND.
7844 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7845 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7846 Rename libunwind-frame in the general comment.
7847 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7848 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7849 Move forward declarations inside #ifndef. Rename libunwind-frame in
7850 the general comment.
7851 * ia64-tdep.c: Rename libunwind-frame.h #include to
7852 ia64-libunwind-tdep.h.
7853 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7854 (ia64_libunwind_descr): Rename libunwind-frame to
7855 ia64-libunwind-tdep in these function comments.
7856 * ia64-tdep.h: Rename libunwind-frame.h #include to
7857 ia64-libunwind-tdep.h.
7858 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7859 ia64-libunwind-tdep in that data comment.
7860
3755cbfd
JK
78612012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7862
7863 * libunwind-frame.h (struct frame_unwind): New declaration.
7864
d1cda5d9
JB
78652012-03-08 Joel Brobecker <brobecker@adacore.com>
7866
7867 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7868 "set breakpoint condition-evaluation" command.
7869
a0ba0aa2
TG
78702012-03-08 Tristan Gingold <gingold@adacore.com>
7871
7872 * sparc-stub.c: Move to stubs/
7873 * sh-stub.c: Likewise.
7874 * m68k-stub.c: Likewise.
7875 * m32r-stub.c: Likewise.
7876 * i386-stub.c: Likewise.
7877
7b8b6d6d
AS
78782012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7879
007cafee
AS
7880 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7881 linux_get_siginfo_type.
7882
7b8b6d6d
AS
7883 * m68klinux-nat.c: Include "gdb_proc_service.h".
7884 (PTRACE_GET_THREAD_AREA): Define.
7885 (ps_get_thread_area): New function.
7886
bba74b36
YQ
78872012-03-08 Yao Qi <yao@codesourcery.com>
7888
7889 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7890 `xsnprintf'.
7891 (remote_query_attached): Likewise.
7892 (remote_static_tracepoint_marker_at): Likewise.
7893 (remote_set_permissions): Likewise.
7894 (remote_detach_1, extended_remote_attach_1): Likewise.
7895 (send_g_packet, remote_vkill): Likewise.
7896 (extended_remote_disable_randomization): Likewise.
7897 (remote_add_target_side_condition): Likewise.
7898 (remote_insert_breakpoint): Likewise.
7899 (remote_remove_breakpoint): Likewise.
7900 (remote_insert_watchpoint): Likewise.
7901 (remote_remove_watchpoint): Likewise.
7902 (remote_insert_hw_breakpoint): Likewise.
7903 (remote_insert_hw_breakpoint): Likewise.
7904 (remote_remove_hw_breakpoint): Likewise.
7905 (remote_download_command_source): Likewise.
7906 (remote_download_tracepoint): Likewise.
7907 (remote_download_trace_state_variable): Likewise.
7908 (remote_disable_tracepoint): Likewise.
7909 (remote_trace_set_readonly_regions): Likewise.
7910 (remote_get_tracepoint_status): Likewise.
7911 (remote_trace_find): Likewise.
7912 (remote_get_trace_state_variable_value): Likewise.
7913 (remote_set_disconnected_tracing): Likewise.
7914 (remote_set_circular_trace_buffer): Likewise.
7915 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7916 (remote_use_agent): Likewise.
7917 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7918 Update callers.
7919
9b224c5e
PA
79202012-03-07 Pedro Alves <palves@redhat.com>
7921
7922 * NEWS: Mention QProgramSignals.
7923 * inferior.h (update_signals_program_target): Declare.
7924 * infrun.c: (update_signals_program_target): New.
7925 (handle_command): Update the target of the new program signals
7926 array changes.
7927 * remote.c (PACKET_QProgramSignals): New enum.
7928 (last_program_signals_packet): New global.
7929 (remote_program_signals): New.
7930 (remote_start_remote): Update the target with the program signals
7931 list.
7932 (remote_protocol_features): Add entry for QPassSignals.
7933 (remote_open_1): Free anc clear last_program_signals_packet.
7934 (init_remote_ops): Install remote_program_signals.
7935 * target.c (update_current_target): Adjust.
7936 (target_program_signals): New.
7937 * target.h (struct target_ops) <to_program_signals>: New field.
7938 (target_program_signals): Declare.
7939
74c48cbb
PA
79402012-03-07 Pedro Alves <palves@redhat.com>
7941
7942 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7943 extensions.
7944
0c13fc49
AS
79452012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7946
7947 * m68klinux-nat.c (getregs_supplies): Make static.
7948 (getfpregs_supplies): Likewise.
7949 (have_ptrace_getregs): Likewise.
7950
1281d2a3
JB
79512012-03-06 Joel Brobecker <brobecker@adacore.com>
7952
7953 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7954 in call to get_die_type_at_offset.
7955
2b03b41d
SS
79562012-03-06 Stan Shebs <stan@codesourcery.com>
7957
7958 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7959 * mi/mi-cmd-disas.c: Ditto.
7960 * mi/mi-cmd-env.c: Ditto.
7961 * mi/mi-cmd-file.c: Ditto.
7962 * mi/mi-cmd-stack.c: Ditto.
7963 * mi/mi-cmd-target.c: Ditto.
7964 * mi/mi-cmd-var.c: Ditto.
7965 * mi/mi-cmds.c: Ditto.
7966 * mi/mi-cmds.h: Ditto.
7967 * mi/mi-console.c: Ditto.
7968 * mi/mi-getopt.c: Ditto.
7969 * mi/mi-getopt.h: Ditto.
7970 * mi/mi-interp.c: Ditto.
7971 * mi/mi-main.c: Ditto.
7972 * mi/mi-out.c: Ditto.
7973 * mi/mi-parse.c: Ditto.
7974 * mi/mi-parse.h: Ditto.
7975 * mi/mi-symbol-cmds.c: Ditto.
7976
7977 * mi/mi-getopt.h: Move mi_opt struct up.
7978 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7979 return.
7980 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7981
c988ad87
TT
79822012-03-06 Tom Tromey <tromey@redhat.com>
7983
7984 * proc-service.c (ps_pglobal_lookup): Set the current program
7985 space.
7986
1b7c1b10
PA
79872012-03-06 Pedro Alves <palves@redhat.com>
7988
7989 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7990
3c182069
JB
79912012-03-05 Joel Brobecker <brobecker@adacore.com>
7992
7993 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7994
2e794194
JK
79952012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7996
7997 Code cleanup.
7998 * common/linux-osdata.c (linux_common_core_of_thread): New function
7999 comment.
8000 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8001 call by linux_common_core_of_thread.
8002 (linux_nat_core_of_thread_1): Remove.
8003 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8004 * linux-thread-db.c: Include linux-osdata.h.
8005 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8006 linux_common_core_of_thread.
8007
9f9f1f31
TT
80082012-03-05 Tom Tromey <tromey@redhat.com>
8009
8010 * value.c (value_primitive_field): Don't fetch contents for
8011 non-virtual bases.
8012
b7b189f3
TT
80132012-03-05 Tom Tromey <tromey@redhat.com>
8014
8015 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8016
05b8a789 80172012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8018
5538f557
JB
8019 * s390-nat.c: Include "gregset.h".
8020
75528772
JK
80212012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8022
8023 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8024 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8025 (libunwind_load): New variable so_error, use it for dlerror. Try to
8026 load also LIBUNWIND_SO_7.
8027
275418ae
PA
80282012-03-05 Pedro Alves <palves@redhat.com>
8029
8030 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8031 is not NULL, and remove resulting dead code.
8032
5cbb9812
TS
80332012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8034
8035 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8036 prologue to sh_analyze_prologue.
8037 (sh_analyze_prologue): Make better use of such an upper limit, and
8038 generally be more cautious about accessing memory.
8039
541515ad
TT
80402012-03-05 Tom Tromey <tromey@redhat.com>
8041
8042 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8043 _initialize_ia64_hpux_tdep.
8044
b4d36fb8
PA
80452012-03-05 Pedro Alves <palves@redhat.com>
8046
24490249
PA
8047 PR gdb/13766
8048
b4d36fb8
PA
8049 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8050 the register state is clear, supply explicit zero, instead of
8051 marking the register unavailable.
8052
60c9a3c0
TG
80532012-03-05 Tristan Gingold <gingold@adacore.com>
8054
8055 * NEWS: Mention OpenVMS ia64 new target.
8056
696759ad
TG
80572012-03-05 Tristan Gingold <gingold@adacore.com>
8058
8059 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8060 (ia64_unw_accessors, ia64_unw_rse_accessors)
8061 (ia64_libunwind_descr): Declare.
8062 * ia64-vms-tdep.c: New file.
8063 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8064 (ia64_libunwind_descr): Make them public.
8065 * configure.tgt: Add ia64-*-*vms*.
8066 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8067 (ALLDEPFILES): Add ia64-vms-tdep.c
8068
34864976
TG
80692012-03-05 Tristan Gingold <gingold@adacore.com>
8070
169081d0
TG
8071 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8072 * remote.c (PACKET_qXfer_uib): New enum value.
8073 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8074 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8075 (_initialize_remote): Call add_packet_config_cmd for
8076 xfer:uib packet.
8077
80782012-03-05 Tristan Gingold <gingold@adacore.com>
8079
8080 * osabi.c (gdb_osabi_names): Add OpenVMS.
8081 (generic_elf_osabi_sniffer): Likewise.
8082 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8083
6597b100
JK
80842012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8085
8086 Removed unused code.
8087 * libunwind-frame.c (libunwind_frame_unwind)
8088 (libunwind_frame_base_address): Remove.
8089 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8090
87399aa1
YQ
80912012-03-04 Yao Qi <yao@codesourcery.com>
8092
8093 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8094 remove trailing new line.
8095 (agent_run_command, agent_run_command): Add _ markup.
8096 (agent_capability_check): Likewise.
8097
abf1152a
JK
80982012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8099
8100 * breakpoint.c (set_condition_evaluation_mode): Set
8101 CONDITION_EVALUATION_MODE unconditionally.
8102
5808517f
YQ
81032012-03-03 Yao Qi <yao@codesourcery.com>
8104
8105 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8106 * common/agent.h: Update declaration.
8107 * inf-child.c (inf_child_use_agent): New.
8108 (inf_child_can_use_agent): New.
8109 (inf_child_target): Initialize fields `to_use_agent'
8110 and `to_can_use_agent'.
8111 * agent.c (agent_new_objfile): New.
89b7509a 8112 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8113 observer.
8114
8115 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8116 New.
89b7509a 8117 (linux_target_install_ops): Initialize field
5808517f
YQ
8118 `to_static_tracepoint_markers_by_strid'.
8119 * remote.c (free_current_marker): Move it to ...
8120 * tracepoint.c (free_current_marker): ... here. New.
8121 (cleanup_target_stop): New.
8122 * tracepoint.h: Declare free_current_marker.
8123 * NEWS: Add one entry about `info static-tracepoint-marker'.
8124
58b4daa5
YQ
81252012-03-03 Yao Qi <yao@codesourcery.com>
8126
8127 * common/agent.c (agent_loaded_p): New.
89b7509a 8128 (agent_look_up_symbols): New global.
58b4daa5
YQ
8129 * common/agent.h: Declare agent_loaded_p.
8130
8ffcbaaf
YQ
81312012-03-03 Yao Qi <yao@codesourcery.com>
8132
8133 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8134 (agent_capability_check, agent_capability_invalidate): New.
8135 (symbol_list): New array element.
8136 * common/agent.h (enum agent_capa): New.
8137 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8138
d1feda86
YQ
81392012-03-03 Yao Qi <yao@codesourcery.com>
8140
8141 * target.h (struct target_ops) <to_use_agent>: New field.
8142 (struct target_ops) <to_can_use_agent>: New field.
8143 (target_use_agent, target_can_use_agent): New macro.
8144 * target.c (update_current_target): Update.
8145 * remote.c: New enum `PACKET_QAgent'.
8146 (remote_protocol_features): Add a new element.
8147 (remote_use_agent, remote_can_use_agent): New.
8148 (init_remote_ops): Initialize field `can_use_agent' with
8149 remote_can_use_agent. Intiailize field `use_agent' with
8150 remote_use_agent.
8151 * common/agent.c (use_agent): New global.
8152 * common/agent.h: Declare it.
8153 * tracepoint.c (info_static_tracepoint_markers_command): Add
8154 comment.
8155 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8156 (COMMON_OBS): Add common/agent.o and agent.o
8157 (common-agent.o): New rule.
8158 * agent.c: New.
8159
2fa291ac
YQ
81602012-03-03 Yao Qi <yao@codesourcery.com>
8161
8162 * common/agent.c: New.
8163 * common/agent.h: New.
8164 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8165 AC_CHECK_HEADERS.
8166 * configure, configh.in: Regenerated.
8167
9fc05685
KB
81682012-03-02 Kevin Buettner <kevinb@redhat.com>
8169
8170 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8171 unless it exists for this architecture.
8172
a5ee536b
JB
81732012-03-02 Joel Brobecker <brobecker@adacore.com>
8174
8175 * language.h (struct language_defn): New "method" la_read_var_value.
8176 * findvar.c: #include "language.h".
8177 (default_read_var_value): Renames read_var_value. Rewrite
8178 function description.
8179 (read_var_value): New function.
8180 * value.h (default_read_var_value): Add prototype.
8181 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8182 New functions.
8183 (ada_language_defn): Add entry for la_read_var_value.
8184 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8185 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8186 language_defn structures to add entry for new la_read_var_value
8187 field.
8188
f59f708a
PA
81892012-03-02 Tom Tromey <tromey@redhat.com>
8190 Pedro Alves <palves@redhat.com>
8191
8192 PR breakpoints/13776:
8193 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8194 breakpoints.
8195 (delete_longjmp_breakpoint_at_next_stop): New.
8196 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8197 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8198 before deleting the inferior. Add comments.
8199 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8200 breakpoints immediately, but only on next stop. Move that code
8201 next to where we mark other breakpoints for deletion.
8202
44099a67
JB
82032012-03-02 Joel Brobecker <brobecker@adacore.com>
8204
8205 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8206 marker.
8207 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8208 violation.
8209
2a2ef594
PA
82102012-03-02 Pedro Alves <palves@redhat.com>
8211
8212 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8213
b261e0c5
UW
82142012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8215
8216 Fix -Wmissing-prototypes build.
8217 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8218 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8219 (gdbsim_has_memory): Likewise.
8220
a95babbf
YQ
82212012-03-02 Yao Qi <yao@codesourcery.com>
8222
8223 Fix -Wmissing-prototypes build.
8224 * charset.c (phony_iconv_open): Make static.
8225 (phony_iconv_close, phony_iconv): Likewise.
8226 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8227 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8228 prototype.
8229 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8230 * ser-mingw.c (create_select_thread): Make static.
8231 * windows-termcap.c (tgetent): New prototype.
8232 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8233
d603d4b3
JK
82342012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8235
8236 Fix -Wmissing-prototypes build.
8237 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8238 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8239 (_initialize_loadable): New prototypes.
8240
7fb3ad1f
DE
82412012-03-02 Doug Evans <dje@google.com>
8242
8243 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8244 abbrev table, read_comp_unit will do it.
8245
693be288
JK
82462012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8247
8248 Fix -Wmissing-prototypes build.
8249 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8250 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8251 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8252 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8253 (_initialize_arm_symbian_tdep): New prototype.
8254 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8255 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8256 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8257 static.
8258 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8259 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8260 prototype.
8261 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8262 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8263 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8264 static.
8265 * moxie-tdep.c (moxie_process_record): Likewise.
8266 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8267 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8268 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8269 (_initialize_rl78_tdep): New prototype.
8270 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8271 (_initialize_rx_tdep): New prototype.
8272 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8273 (_initialize_darwin_solib): New prototype.
8274 * solib-spu.c: Include solib-spu.h.
8275 (_initialize_spu_solib): New prototype.
8276 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8277 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8278 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8279 (tic6x_software_single_step): Make it static.
8280 (_initialize_tic6x_tdep): New prototype.
8281
638234e5
JK
82822012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8283
8284 Fix -Wmissing-prototypes build.
8285 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8286 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8287
f4a6f16d
JK
82882012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8289
8290 Fix -Wmissing-prototypes build.
8291 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8292 (frv_have_stopped_data_address): Remove.
8293
04dcf5fa
JK
82942012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8295
8296 Fix -Wmissing-prototypes build.
8297 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8298 * sh-tdep.c: Include sh64-tdep.h.
8299 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8300 * sh64-tdep.c: Include sh64-tdep.h.
8301 * sh64-tdep.h: New file.
8302
19080931
MR
83032012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8304
8305 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8306
9aac7884
MR
83072012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8308
8309 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8310 sp_regnum once the gdbarch_init_osabi hook has been called.
8311
a385295e
MR
83122012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8313
8314 * mips-tdep.c (mips32_bc1_pc): New function.
8315 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8316 BPOSGE32 and BPOSGE64 instructions.
8317 (deal_with_atomic_sequence): Likewise.
8318 (mips32_instruction_has_delay_slot): Likewise.
8319
1faeff08 83202012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8321 Chris Dearman <chris@mips.com>
8322 Maciej W. Rozycki <macro@codesourcery.com>
8323 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8324
8325 * features/mips-dsp.xml: New file.
8326 * features/mips64-dsp.xml: New file.
8327 * features/mips-dsp-linux.xml: New file.
8328 * features/mips64-dsp-linux.xml: New file.
8329 * features/Makefile (WHICH): Add mips-dsp-linux and
8330 mips64-dsp-linux.
8331 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8332 * features/mips-dsp-linux.c: New file.
8333 * features/mips64-dsp-linux.c: New file.
8334 * regformats/mips-dsp-linux.dat: New file.
8335 * regformats/mips64-dsp-linux.dat: New file.
8336 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8337 registers.
8338 (mips64_linux_register_addr): Likewise.
8339 (mips64_linux_regsets_fetch_registers): Likewise.
8340 (mips64_linux_regsets_store_registers): Likewise.
8341 (mips64_linux_fetch_registers): Update call to
8342 mips64_linux_regsets_fetch_registers.
8343 (mips64_linux_store_registers): Update call to
8344 mips64_linux_regsets_store_registers.
8345 (mips_linux_read_description): Probe for DSP registers.
8346 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8347 and initialize_tdesc_mips64_dsp_linux.
8348 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8349 Remove padding of no longer used embedded register slots.
8350 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8351 (MIPS_RESTART_REGNUM): Redefine enum value.
8352 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8353 strings.
8354 (mips_tx39_reg_names): Likewise.
8355 (mips_linux_reg_names): New array of register names for Linux
8356 targets.
8357 (mips_register_name): Check for a null pointer in
8358 mips_processor_reg_names and return an empty string.
8359 (mips_register_type): Exclude embedded registers for the IRIX
8360 and Linux ABIs.
8361 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8362 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8363 DSP registers.
8364 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8365 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8366 (mips_gdbarch_init): Likewise. Initialize internal register
8367 indices for the Linux ABI. Use dynamic numbers to refer to
8368 registers, as applicable, while parsing the target description.
8369 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8370
263689d8
JB
83712012-03-01 Joel Brobecker <brobecker@adacore.com>
8372
8373 * frame.h (read_frame_register_unsigned): Fix typo in function
8374 description.
8375
f3b4f45c
PA
83762012-03-01 Pedro Alves <palves@redhat.com>
8377
8378 * jit-reader.in [!__cplusplus]
8379 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8380
b03a2011
PA
83812012-03-01 Pedro Alves <palves@redhat.com>
8382
8383 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8384 * configure: Regenerate.
8385
70221824
PA
83862012-03-01 Pedro Alves <palves@redhat.com>
8387
8388 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8389 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8390 (ftrace_command, strace_command): Make static.
8391 * d-lang.c (_initialize_d_language): Declare.
8392 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8393 * dwarf2loc.c (_initialize_dwarf2loc):
8394 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8395 * exec.c (exec_get_section_table): Make static.
8396 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8397 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8398 * inferior.c (remove_inferior_command, add_inferior_command)
8399 (clone_inferior_command): Make static.
8400 * linux-nat.c (linux_nat_thread_address_space)
8401 (linux_nat_core_of_thread): Make static.
8402 * linux-tdep.c (_initialize_linux_tdep): Declare.
8403 * objc-lang.c (_initialize_objc_lang): Declare.
8404 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8405 Make static.
8406 (_initialize_opencl_language): Declare.
8407 * record.c (_initialize_record): Declare.
8408 * remote.c (demand_private_info, remote_get_tib_address)
8409 (remote_supports_cond_tracepoints)
8410 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8411 Make static.
8412 * skip.c (_initialize_step_skip): Declare.
8413 * symtab.c (skip_prologue_using_lineinfo): Make static.
8414 * tracepoint.c (delete_trace_state_variable)
8415 (trace_variable_command, delete_trace_variable_command)
8416 (get_uploaded_tsv, find_matching_tracepoint_location)
8417 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8418 Make static.
8419 * value.c (pack_unsigned_long): Make static.
8420 * varobj.c (varobj_ensure_python_env): Make static.
8421 * windows-tdep.c (_initialize_windows_tdep): Declare.
8422 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8423
33fbcbee
PA
84242012-03-01 Pedro Alves <palves@redhat.com>
8425
8426 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8427 gdbarch parameter.
8428 (linux_init_abi): Install it as has_shared_address_space gdbarch
8429 callback.
8430
44d0cd3b
PA
84312012-03-01 Pedro Alves <palves@redhat.com>
8432
8433 * observer.c (observer_test_first_notification_function)
8434 (observer_test_second_notification_function)
8435 (observer_test_third_notification_function): Add declarations.
8436
ed01b82c
PA
84372012-03-01 Pedro Alves <palves@redhat.com>
8438
8439 * common/signals.c (default_target_signal_to_host)
8440 (default_target_signal_from_host): Move ...
8441 * arch-utils.c: ... here.
8442 * arch-utils.h (default_target_signal_to_host)
8443 (default_target_signal_from_host): Declare.
8444
8445 * common/signals.c (target_signal_from_command): Move ...
8446 * infrun.c: ... here.
8447 * inferior.h (target_signal_from_command): Declare.
8448 * target.h (target_signal_from_command)
8449 (default_target_signal_from_host, default_target_signal_to_host):
8450 Delete declarations.
8451
8452 * common/signals.c (_initialize_signals): Delete.
8453
c9b87335
PA
84542012-03-01 Pedro Alves <palves@redhat.com>
8455
8456 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8457 both __cplusplus and !__cplusplus.
8458
9340a6c0
PA
84592012-03-01 Pedro Alves <palves@redhat.com>
8460
8461 * psymtab.c (find_and_open_source): Delete declaration.
8462 * source.c (find_and_open_source): Move comment ...
8463 * source.h (find_and_open_source): ... to this new declaration.
8464
e451c4a1
PA
84652012-03-01 Pedro Alves <palves@redhat.com>
8466
8467 * inline-frame.c: Include inline-frame.h.
8468
983fb104
PA
84692012-03-01 Pedro Alves <palves@redhat.com>
8470
8471 * tui/tui-data.c (set_gen_win_origin): Delete.
8472 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8473 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8474
5fbce5df
PA
84752012-03-01 Pedro Alves <palves@redhat.com>
8476
8477 * remote.c (encode_actions): Delete declaration.
8478 * tracepoint.c (encode_actions): Make extern.
8479 * tracepoint.h (encode_actions): Declare.
8480
49a8461d
PA
84812012-03-01 Pedro Alves <palves@redhat.com>
8482
8483 * python/py-breakpoint.c: Include python.h.
8484 * python/py-continueevent.c (create_continue_event_object): Make
8485 static.
8486 * python/py-lazy-string.c (stpy_get_type): Make static.
8487 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8488 Make static.
8489 * python/py-utils.c (unicode_to_target_python_string): Make
8490 static.
8491 * python/py-value.c: Include python.h.
8492
9079102f
PA
84932012-03-01 Pedro Alves <palves@redhat.com>
8494
8495 * inferior.c (delete_threads_of_inferior): Delete.
8496
a298c5e8
PA
84972012-03-01 Pedro Alves <palves@redhat.com>
8498
8499 Import fallback definitions from glibc.
8500
8501 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8502 ps_prochandle): Forward declare.
8503 (ps_err_e): Use glibc's comments.
8504 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8505 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8506 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8507 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8508 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8509 (struct ps_prochandle): Adjust comment.
8510
e3084549
PA
85112012-03-01 Pedro Alves <palves@redhat.com>
8512
8513 * ada-lang.c (ada_modulus_from_name): Delete.
8514 * ada-lex.l (lexer_init): Make static.
8515
ad5f7d6e
PA
85162012-03-01 Pedro Alves <palves@redhat.com>
8517
8518 PR gdb/13767
8519
8520 * frame.c (read_frame_register_unsigned): New.
8521 * frame.h (read_frame_register_unsigned): Declare.
8522 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8523 Handle it.
8524 (print_i387_control_word): New parameter `control_p'. Handle it.
8525 (i387_print_float_info): Handle unavailable float registers.
8526
e0a4d108
KS
85272012-03-01 Keith Seitz <keiths@redhat.com>
8528
8529 * linespec.c (decode_line_2): Sort the list of methods
8530 alphabetically before presenting the user with a selection
8531 menu.
8532
122d1940
DE
85332012-03-01 Doug Evans <dje@google.com>
8534
8535 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8536 has_namespace_info.
8537 (dwarf2_read_abbrevs): Remove corresponding initialization.
8538
7d74f244
DE
85392012-03-01 Scott J. Goldman <scottjg@vmware.com>
8540
8541 * NEWS: Mention new python command class gdb.COMMAND_USER.
8542 * cli/cli-cmds.c (show_user): Print error when used on a python
8543 command.
8544 (init_cli_cmds): Update documentation strings for "show user" and
8545 "set/show max-user-call-depth" to clarify that it does not apply to
8546 python commands.
8547 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8548 error check.
8549 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8550 gdb python api.
8551 * top.c (execute_command): Only execute a user-defined command as a
8552 legacy macro if c->user_commands is set.
8553
e88acd96
TT
85542012-03-01 Tom Tromey <tromey@redhat.com>
8555
8556 * valprint.h (struct generic_val_print_decorations): New.
8557 (generic_val_print): Declare.
8558 * valprint.c (generic_val_print): New function.
8559 * p-valprint.c (p_decorations): New global.
8560 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8561 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8562 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8563 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8564 * m2-valprint.c (m2_decorations): New global.
8565 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8566 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8567 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8568 TYPE_CODE_ERROR>: Call generic_val_print.
8569 * f-valprint.c (f_decorations): New global.
8570 (f_val_print): Use print_function_pointer_address.
8571 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8572 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8573 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8574 generic_val_print.
8575 * c-valprint.c (c_decorations): New global.
8576 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8577 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8578 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8579 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8580 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8581 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8582 case.
8583
d3eab38a
TT
85842012-03-01 Tom Tromey <tromey@redhat.com>
8585
8586 * valprint.c (val_print): Update.
8587 * p-valprint (pascal_val_print): Return void.
8588 * p-lang.h (pascal_val_print): Return void.
8589 * m2-valprint.c (m2_val_print): Return void.
8590 * m2-lang.h (m2_val_print): Return void.
8591 * language.h (struct language_defn) <la_val_print>: Return void.
8592 * language.c (unk_lang_val_print): Return void.
8593 * jv-valprint.c (java_val_print): Return void.
8594 * jv-lang.h (java_val_print): Return void.
8595 * f-valprint.c (f_val_print): Return void.
8596 * f-lang.h (f_val_print): Return void.
8597 * d-valprint.c (d_val_print): Return void.
8598 (dynamic_array_type): Update.
8599 * d-lang.h (d_val_print): Return void.
8600 * c-valprint.c (c_val_print): Return void.
8601 * c-lang.h (c_val_print): Return void.
8602 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8603 void.
8604 * ada-lang.h (ada_val_print): Return void.
8605
35c0084b
TT
86062012-03-01 Tom Tromey <tromey@redhat.com>
8607
8608 * value.h (val_print): Return void.
8609 * valprint.c (val_print): Return void.
8610
a1f5dd1b
TT
86112012-03-01 Tom Tromey <tromey@redhat.com>
8612
8613 * value.h (common_val_print): Return void.
8614 * valprint.c (common_val_print): Return void.
8615
8e069a98
TT
86162012-03-01 Tom Tromey <tromey@redhat.com>
8617
8618 * value.h (value_print): Return void.
8619 * valprint.c (value_print): Return void.
8620 * p-valprint.c (pascal_value_print): Return void.
8621 * p-lang.h (pascal_value_print): Return void.
8622 * language.h (struct language_defn) <la_value_print>: Return
8623 void.
8624 * language.c (unk_lang_value_print): Return void.
8625 * jv-valprint.c (java_value_print): Return void.
8626 * jv-lang.h (java_value_print): Return void.
8627 * f-valprint.c (c_value_print): Don't declare.
8628 Include c-lang.h.
8629 * c-valprint.c (c_value_print): Return void.
8630 * c-lang.h (c_value_print): Return void.
8631 * ada-valprint.c (ada_value_print): Return void.
8632 * ada-lang.h (ada_value_print): Return void.
8633
be335936
TT
86342012-03-01 Tom Tromey <tromey@redhat.com>
8635
8636 * value.c (value_primitive_field): Handle virtual base classes.
8637
b0db66a7
TT
86382012-03-01 Tom Tromey <tromey@redhat.com>
8639
8640 * gdbtypes.h (struct vbase): Remove.
8641
132c57b4
TT
86422012-03-01 Tom Tromey <tromey@redhat.com>
8643
8644 * c-valprint.c (print_function_pointer_address): Move...
8645 * valprint.c: ... here. Make non-static.
8646 * m2-valprint.c (print_function_pointer_address): Remove.
8647 * valprint.h (print_function_pointer_address): Declare.
8648
e41eec66
JB
86492012-03-01 Joel Brobecker <brobecker@adacore.com>
8650
8651 * NEWS: Document the fact that one can provide a condition when
8652 creating an Ada exception catchpoint.
8653
19c37f24
TT
86542012-03-01 Tom Tromey <tromey@redhat.com>
8655
8656 * valprint.c (val_print_type_code_flags): Fix placement of
8657 trailing brace.
8658
f0fed3a3
JB
86592012-03-01 Joel Brobecker <brobecker@adacore.com>
8660
8661 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8662 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8663 environment variable before calling update-copyright.
8664
8ba85d85
JB
86652012-03-01 Joel Brobecker <brobecker@adacore.com>
8666
8667 * gnulib/extra/update-copyright: Update to the latest from
8668 gnulib's git repository.
8669 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8670 variable to 2 instead of 1.
8671
8219b1e8
JB
86722012-02-29 Joel Brobecker <brobecker@adacore.com>
8673
8674 * varobj.c (c_value_of_variable): Remove dead code.
8675
718cb7da
JB
86762012-02-29 Joel Brobecker <brobecker@adacore.com>
8677
8678 * ada-lex.p (processId): Do not modify already encoded IDs.
8679 Update function documentation.
8680
739593e0
JB
86812012-02-29 Joel Brobecker <brobecker@adacore.com>
8682
8683 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8684 "name" with "struct symbol *name_sym".
8685 * ada-exp.y (write_var_or_type): Update call to
8686 ada_find_renaming_symbol.
8687 "name" with "struct symbol *name_sym". Adjust Implementation
8688 accordingly. Adjust the function documentation.
8689
852dff6c
JB
86902012-02-29 Joel Brobecker <brobecker@adacore.com>
8691
8692 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8693 * ada-lang.c (ada_find_any_type): Add advance declaration.
8694 Make static. Replace ada_find_any_symbol by
8695 ada_find_any_type_symbol.
8696 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8697 Improve function description. Make static.
8698 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8699 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8700
1b611343
JB
87012012-02-29 Joel Brobecker <brobecker@adacore.com>
8702
8703 * ada-lang.c (struct tag_args): Delete.
8704 (ada_get_tsd_type): Function body moved up in source file.
8705 (ada_tag_name_1, ada_tag_name_2): Delete.
8706 (ada_get_tsd_from_tag): New function.
8707 (ada_tag_name_from_tsd): New function.
8708 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8709 to determine the tag name.
8710
41246937
JB
87112012-02-29 Joel Brobecker <brobecker@adacore.com>
8712
8713 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8714 declaration.
8715 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8716 function.
8717
ffde82bf
JB
87182012-02-29 Joel Brobecker <brobecker@adacore.com>
8719
8720 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8721
2ad01556
JB
87222012-02-29 Joel Brobecker <brobecker@adacore.com>
8723
8724 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8725 full searches.
8726
99b1c762
JB
87272012-02-29 Joel Brobecker <brobecker@adacore.com>
8728
8729 * ada-lang.c (constrained_packed_array_type): If there is a
8730 parallel XA type, use it to determine the array index type.
8731
2d4a02ee
JB
87322012-02-29 Joel Brobecker <brobecker@adacore.com>
8733
8734 * ada-valprint.c (ada_val_print_1): If our value is a reference
8735 to an array descriptor, dereference it before converting it
8736 to a simple array.
8737
c48db5ca
JB
87382012-02-29 Joel Brobecker <brobecker@adacore.com>
8739
8740 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8741 creating fixed value.
8742 (ada_value_ind, ada_coerce_ref, assign_component)
8743 (ada_evaluate_subexp): Remove call to unwrap_value before
8744 call to ada_to_fixed_value.
8745
2e6fda7d
JB
87462012-02-29 Joel Brobecker <brobecker@adacore.com>
8747
8748 * ada-lang.c (to_fixed_array_type): Set result's type name.
8749
5845583d
JB
87502012-02-29 Joel Brobecker <brobecker@adacore.com>
8751
8752 * ada-lang.c (catch_ada_exception_command_split): Add new
8753 argument cond_string. Add support for condition at end of
8754 "catch exception" commands.
8755 (ada_decode_exception_location): Add new argument cond_string.
8756 Update call to catch_ada_exception_command_split.
8757 (create_ada_exception_catchpoint): Add new argument cond_string.
8758 Set the breakpoint condition if needed.
8759 (catch_ada_exception_command): Update call to
8760 ada_decode_exception_location.
8761 (ada_decode_assert_location): Add function documentation.
8762 Add support for condition at end of "catch assert" command.
8763 (catch_assert_command): Update calls to ada_decode_assert_location
8764 and create_ada_exception_catchpoint.
8765
9a7f938f
JK
87662012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8767
8768 Fix disp-step-syscall.exp: fork: single step over fork.
8769 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8770 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8771 comment, change parameters gdbarch and ptid to regcache. Remove
8772 parameter regcache, initialize gdbarch from regcache here.
8773 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8774 New functions.
8775 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8776 instead.
8777 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8778 'syscall'. Make the 'int' check more strict.
8779
ffdf6de5
JK
87802012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8781
8782 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8783 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8784 (i386_linux_intx80_sysenter_syscall_record): ... here.
8785 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8786 Use the renamed function name.
8787
c70a6932
JK
87882012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8789
8790 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8791 * breakpoint.c (until_break_command): Likewise.
8792 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8793 * infcall.c (call_function_by_hand): Likewise.
8794 * infcmd.c (finish_forward): Likewise.
8795 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8796
05b8a789 87972012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8798
d4cd3da9
JB
8799 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8800 avoid variable assignments inside condition.
8801
6425366c
JK
88022012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8803
8804 Fix static analysis issue found by cppcheck.
8805 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8806 uninitialized BUF for size 2.
8807
c8cef75f 88082012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8809 Nathan Froyd <froydnj@codesourcery.com>
8810 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8811
8812 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8813 (mips16_instruction_has_delay_slot): Likewise.
8814 (mips_segment_boundary): Likewise.
8815 (mips_adjust_breakpoint_address): Likewise.
8816 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8817
473347ad 88182012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8819 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8820
8821 * infrun.c (handle_inferior_event): Don't proceed through
8822 shared library trampolines if stepping at the machine
8823 instruction level.
8824
cf233303
MR
88252012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8826
8827 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8828 too.
8829
cb2cf4ce
TS
88302012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8831
8832 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8833 (sh_stub_unwind_sniffer): New functions.
8834 (sh_stub_unwind): New variable.
8835 (sh_gdbarch_init): Wire everything.
8836
644cebc9
PA
88372012-02-27 Pedro Alves <palves@redhat.com>
8838
8839 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8840 (linux_nat_post_attach_wait): Adjust to use
8841 linux_proc_pid_is_stopped.
8842 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8843 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8844 based on pid_is_stopped from both linux-nat.c and
8845 gdbserver/linux-low.c, and renamed.
8846
283002cf
MR
88472012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8848
8849 * remote.c (remote_watchpoint_addr_within_range): New function.
8850 (init_remote_ops): Use it.
8851
9b3e86b1
MR
88522012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8853
8854 * target.h (target_watchpoint_addr_within_range): Document macro.
8855
e36930bb
PA
88562012-02-24 Pedro Alves <palves@redhat.com>
8857
8858 * stack.c (set_last_displayed_sal): Issue internal_error instead
8859 of warning, and issue it after clearing the last displayed sal.
8860
883bc8d1
PA
88612012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8862 Pedro Alves <palves@redhat.com>
8863
8864 * breakpoint.c (until_break_command): Install breakpoints after
8865 all frame manipulations.
8866
b775012e
LM
88672012-02-24 Luis Machado <lgustavo@codesourcery.com>
8868
8869 * remote.c (remote_supports_cond_breakpoints): New forward
8870 declaration.
8871 (remote_add_target_side_condition): New function.
8872 (remote_insert_breakpoint): Add target-side breakpoint
8873 conditional if supported.
8874 (remote_insert_hw_breakpoint): Likewise.
8875 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8876 hook.
8877
8878 * target.c (update_current_target): Inherit
8879 to_supports_evaluation_of_breakpoint_conditions.
8880 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8881
8882 * target.h (struct target_ops)
8883 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8884 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8885
8886 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8887 (condition_evaluation_both, condition_evaluation_auto,
8888 condition_evaluation_host, condition_evaluation_target,
8889 condition_evaluation_enums, condition_evaluation_mode_1,
8890 condition_evaluation_mode): New static globals.
8891 (translate_condition_evaluation_mode): New function.
8892 (breakpoint_condition_evaluation_mode): New function.
8893 (gdb_evaluates_breakpoint_condition_p): New function.
8894 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8895 (mark_breakpoint_modified): New function.
8896 (mark_breakpoint_location_modified): New function.
8897 (set_condition_evaluation_mode): New function.
8898 (show_condition_evaluation_mode): New function.
8899 (bp_location_compare_addrs): New function.
8900 (get_first_location_gte_addr): New helper function.
8901 (set_breakpoint_condition): Free condition bytecode if locations
8902 has become unconditional. Call mark_breakpoint_modified (...).
8903 (condition_command): Call update_global_location_list (1) for
8904 breakpoints.
8905 (breakpoint_xfer_memory): Use is_breakpoint (...).
8906 (is_breakpoint): New function.
8907 (parse_cond_to_aexpr): New function.
8908 (build_target_condition_list): New function.
8909 (insert_bp_location): Handle target-side conditional
8910 breakpoints and call build_target_condition_list (...).
8911 (update_inserted_breakpoint_locations): New function.
8912 (insert_breakpoint_locations): Handle target-side conditional
8913 breakpoints.
8914 (bpstat_check_breakpoint_conditions): Add comment.
8915 (bp_condition_evaluator): New function.
8916 (bp_location_condition_evaluator): New function.
8917 (print_breakpoint_location): Print information on where the condition
8918 will be evaluated.
8919 (print_one_breakpoint_location): Likewise.
8920 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8921 breakpoint location.
8922 (force_breakpoint_reinsertion): New functions.
8923 (update_global_location_list): Handle target-side breakpoint
8924 conditions.
8925 Reinsert locations that are already inserted if conditions have
8926 changed.
8927 (bp_location_dtor): Free agent expression bytecode.
8928 (disable_breakpoint): Call mark_breakpoint_modified (...).
8929 Call update_global_location_list (...) with parameter 1 for breakpoints.
8930 (disable_command): Call mark_breakpoint_location_modified (...).
8931 Call update_global_location_list (...) with parameter 1 for breakpoints.
8932 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8933 (enable_command): mark_breakpoint_location_modified (...).
8934 (_initialize_breakpoint): Update documentation and add
8935 condition-evaluation breakpoint subcommand.
8936
8937 * breakpoint.h: Include ax.h.
8938 (condition_list): New data structure.
8939 (condition_status): New enum.
8940 (bp_target_info) <cond_list>: New field.
8941 (bp_location) <condition_changed, cond_bytecode>: New fields.
8942 (is_breakpoint): New prototype.
8943
3788aec7
LM
89442012-02-24 Luis Machado <lgustavo@codesourcery.com>
8945
8946 * remote.c (remote_state) <cond_breakpoints>: New field.
8947 (PACKET_ConditionalBreakpoints): New enum.
8948 (remote_cond_breakpoint_feature): New function.
8949 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8950 (remote_supports_cond_breakpoints): New function.
8951 (_initialize_remote): Add new packet configuration for
8952 target-side conditional breakpoints.
8953
72895ff6
LM
89542012-02-24 Luis Machado <lgustavo@codesourcery.com>
8955
8956 * NEWS: Mention target-side conditional breakpoint support,
8957 new condition-evaluation breakpoint subcommand and remote
8958 packet extensions.
8959
dea2aa5f
LM
89602012-02-24 Luis Machado <lgustavo@codesourcery.com>
8961
8962 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8963 number.
8964
8a8bc27f
TS
89652012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8966
8967 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8968 (after_prologue): Remove.
8969
6b446fdf
TT
89702012-02-23 Tom Tromey <tromey@redhat.com>
8971
8972 * jv-valprint.c (java_val_print): Remove dead code.
8973
ef59abfb
TG
89742012-02-23 Tristan Gingold <gingold@adacore.com>
8975
a09130f9
PA
8976 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8977 known_tasks_element and known_tasks_length fields.
8978 (read_known_tasks_array): Change argument type. Use pointer type
8979 and number of elements from DATA. Adjust.
8980 (read_known_tasks_list): Likewise.
8981 (get_known_tasks_addr): Remove.
8982 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8983 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8984 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8985
def166f6
JK
89862012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 PR backtrace/13716
8989 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8990 it after set_momentary_breakpoint.
8991
aeaa2474
SA
89922012-02-22 Sterling Augustine <saugustine@google.com>
8993
8994 PR 13689:
8995 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8996
feea76c2
GB
89972012-02-22 Gary Benson <gbenson@redhat.com>
8998
8999 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9000 (find_slot_in_mapped_hash): Likewise.
9001
f06e05e0
JK
90022012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9003
9004 PR build/13638
9005 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9006 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9007 * configure: Regenerate.
9008
b54a8fd7
PA
90092012-02-21 Tristan Gingold <gingold@adacore.com>
9010 Pedro Alves <palves@redhat.com>
9011
9012 * ia64-tdep.c: Do not include libunwind-ia64.h.
9013 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9014 Include libunwind-ia64.h instead of libunwind.h.
9015 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9016 for libunwind.h existence.
9017 * configure, config.in: Regenerate.
9018
dfcee124
AG
90192012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9020
9021 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9022 instead of value_rtti_target_type.
9023 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9024 instead of value_rtti_target_type.
9025 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9026 value_rtti_target_type.
9027 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9028 (value_rtti_target_type): Rename to ...
9029 (value_rtti_indirect_type): ... here and make it indirect. Update
9030 function comment.
9031 * value.c (readjust_indirect_value_type): New function.
9032 (coerce_ref): Support for enclosing type setting for references
9033 with readjust_indirect_value_type.
9034 * value.h (readjust_value_type): New declaration.
9035 (value_rtti_target_type): Rename to ...
9036 (value_rtti_indirect_type): ... here.
9037
02568277
AG
90382012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9039
9040 * MAINTAINERS (Write After Approval): Add myself to the list.
9041
10c07b7e 90422012-02-20 Doug Evans <dje@google.com>
28ee876a 9043
d82ea6a8
DE
9044 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9045 Rename objfile_p_char parameter to objfilep.
9046 (build_objfile_section_table): Result is now void. All callers
9047 updated.
9048 * objfiles.h (struct objfile): Tweak comments, whitespace.
9049 (build_objfile_section_table): Update.
9050
28ee876a
DE
9051 * elfread.c (elf_symfile_segments): Fix warning text.
9052
24c79950
TT
90532012-02-20 Tom Tromey <tromey@redhat.com>
9054
9055 PR gdb/13498:
9056 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9057 particular set of file names once.
9058 (dw2_map_symbol_filenames): Likewise.
9059
3a9b40b6
JK
90602012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9061
9062 Code cleanup.
9063 * main.c (write_files): Remove the declaration.
9064 (external_editor_command): Move the declaration ...
9065 [GDBTK] (external_editor_command): ... here. Fix the comment.
9066
4d0795ca
TT
90672012-02-20 Tom Tromey <tromey@redhat.com>
9068
9069 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9070 extraneous block.
9071
637fd620
TG
90722012-02-20 Tristan Gingold <gingold@adacore.com>
9073
9074 * darwin-nat.h (enum darwin_msg_state): Add comments.
9075
6f124894
TG
90762012-02-20 Tristan Gingold <gingold@adacore.com>
9077
9078 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9079 value.
9080
2e6e3d9c
JB
90812012-20-18 Joel Brobecker <brobecker@adacore.com>
9082
9083 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9084 between function description and implementation.
9085
2e8265fd
TT
90862012-02-17 Tom Tromey <tromey@redhat.com>
9087
9088 PR python/12070:
9089 * python/py-event.c (event_object_getset): New global.
9090 (event_object_type): Reference it.
9091 * python/py-type.c (field_object_getset): New global.
9092 (field_object_type): Reference it.
9093 * python/python-internal.h (gdb_py_generic_dict): Declare.
9094 * python/py-utils.c (gdb_py_generic_dict): New function.
9095
8544a150 90962012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9097
8544a150 9098 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9099
ca193e27
TS
91002012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9101
9102 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9103 TYPE_CALLING_CONVENTION annotation.
9104
e5586183
KB
91052012-02-16 Kevin Buettner <kevinb@redhat.com>
9106
9107 * MAINTAINERS: Add rx to target ISA section.
9108 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9109 (ALLDEPFILES): Add rx-tdep.c.
9110
7dcd53a0
TT
91112012-02-16 Tom Tromey <tromey@redhat.com>
9112
9113 * symfile.c (symbol_file_add_main_1): Use inferior's
9114 symfile_flags.
9115 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9116 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9117 inferior.
9118 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9119 inferior.
9120 (follow_exec): Use inferior's symfile_flags.
9121 * inferior.h (struct inferior) <symfile_flags>: New field.
9122
ddd60447
MF
91232012-02-16 Mike Frysinger <vapier@gentoo.org>
9124
9125 PR gdb/9734:
9126 * remote-sim.c (gdbsim_create_inferior): Call error() when
9127 sim_create_inferior() fails.
9128
b0d32fb6
TG
91292012-02-16 Josh Matthews <josh@joshmatthews.net>
9130
9131 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9132
9addecb9
TT
91332012-02-16 Tom Tromey <tromey@redhat.com>
9134
9135 PR c++/13653:
9136 * thread.c (struct current_thread_cleanup) <was_removable>: New
9137 field.
9138 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9139 (make_cleanup_restore_current_thread): Initialize new field.
9140
a58b110a
KB
91412012-02-15 Kevin Buettner <kevinb@redhat.com>
9142
9143 * MAINTAINERS: Add rl78 to target ISA section.
9144 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9145 (ALLDEPFILES): Add rl78-tdep.c.
9146 * NEWS: Mention rl78 as a new target.
9147
4cb6da1c
AR
91482012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9149
9150 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9151 data.
9152 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9153
3af2590d
TT
91542012-02-15 Tom Tromey <tromey@redhat.com>
9155
9156 PR gdb/12659:
9157 * infcmd.c (registers_info): Print just the current register's
9158 name.
9159
c6910659
TT
91602012-02-15 Tom Tromey <tromey@redhat.com>
9161
9162 * python/py-symbol.c (sympy_value): Use _().
9163
7cee1e54
PA
91642012-02-15 Pedro Alves <palves@redhat.com>
9165
9166 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9167 output to be like native targets'.
9168 (remote_pid_to_str): Special case the null ptid.
9169
816338b5
SS
91702012-02-14 Stan Shebs <stan@codesourcery.com>
9171
9172 * NEWS: Mention enable count command.
9173 * breakpoint.h (struct breakpoint): New field enable_count.
9174 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9175 (enable_breakpoint): Add arg to call.
9176 (struct disp_data): New struct.
9177 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9178 (do_map_enable_once_breakpoint): Create a struct and pass it.
9179 (do_map_enable_delete_breakpoint): Ditto.
9180 (do_map_enable_count_breakpoint): New function.
9181 (enable_count_command): New function.
9182 (bpstat_stop_status): Decrement enable_count.
9183 (print_one_breakpoint_location): Report enable count.
9184 (_initialize_breakpoint): Add enable count command.
9185
c47a44f4
KB
91862012-02-14 Kevin Buettner <kevinb@redhat.com>
9187
9188 * rl78-tdep.c (reggroups.h): Include.
9189 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9190 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9191 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9192 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9193 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9194 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9195 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9196 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9197 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9198 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9199 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9200 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9201 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9202 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9203 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9204 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9205 beginning of register list.
9206 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9207 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9208 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9209 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9210 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9211 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9212 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9213 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9214 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9215 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9216 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9217 the pseudo registers. Rearrange other pseudo registers too so
9218 that the bank registers appear at the end.
9219 (rl78_register_type): Account for the fact that the byte sized
9220 bank registers are now pseudo-registers.
9221 (rl78_register_name): Rearrange the register name array. Make
9222 initial set of raw banked registers inaccessible.
9223 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9224 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9225 case for copying bytes back and forth between raw and pseudo
9226 versions of the banked registers. Update other cases to reflect
9227 the changed names.
9228 (rl78_return_value): Update to account for changed names of
9229 raw registers.
9230 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9231 rl78_register_sim_regno().
9232
e4569f1e
KB
92332012-02-14 Kevin Buettner <kevinb@redhat.com>
9234
9235 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9236 the name parameter being passed to find_pc_partial_function().
9237
7a05aae7
JK
92382012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9239
9240 * MAINTAINERS: Step down from being ia64 target maintainer.
9241
11fde611
JK
92422012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9243
9244 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9245 compilation warning.
9246
57008375
JK
92472012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9248
9249 Fix crash on loaded shlibs without loaded exec_bfd.
9250 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9251 (set_section_command): Replace exec_bfd by p->bfd.
9252
ff3c9849
TT
92532012-02-10 Tom Tromey <tromey@redhat.com>
9254
9255 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9256 when we have a C++ qualified name.
9257
db2b9fdd
PA
92582012-02-10 Pedro Alves <palves@redhat.com>
9259
9260 * inferior.c (inferior_pid_to_str): New.
9261 (print_inferior, inferior_command): Use it.
9262
12cd34f3
PA
92632012-02-10 Pedro Alves <palves@redhat.com>
9264
9265 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9266 the test CFLAGS.
9267 * configure: Regenerate.
9268
e871429d
JK
92692012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9270
9271 * linespec.c (decode_line_internal): Fix comment correctness.
9272
1916efaf
PA
92732012-02-09 Valery Khromov <valery.khromov@gmail.com>
9274
9275 PR gdb/12953
9276 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9277 * amd64bsd-nat.c: Add support for debug registers (adapted from
9278 i386bsd-nat.c).
9279 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9280 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9281 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9282 (amd64bsd_dr_get_control): New functions.
9283 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9284 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9285 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9286 watchpoints initialization.
9287 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9288
f4859d94
JK
92892012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9290
9291 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9292 flds_bnds.fields.
9293 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9294
c56a97f9
JK
92952012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9296
9297 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9298
1a119f36
JB
92992012-02-08 Joel Brobecker <brobecker@adacore.com>
9300
9301 * language.h (symbol_name_cmp_ftype): Renames
9302 symbol_name_match_p_ftype.
9303 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9304 la_get_symbol_name_match_p.
9305 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9306 ada_get_symbol_name_match_p. Update comment.
9307 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9308 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9309 Renames symbol_name_match_p. Update field type.
9310 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9311 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9312 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9313 "la_get_symbol_name_cmp" in comments.
9314 * language.c: Likewise.
9315
c71bb1cf
RO
93162012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9317
9318 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9319 %eflags offset.
9320 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9321 (amd64_sol2_gregset32_reg_offs): Likewise.
9322
4b2d20a5
TG
93232012-02-08 Joel Brobecker <brobecker@adacore.com>
9324
9325 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9326 of the returned BFD is allocated by GDB.
9327
f0823d2c
TT
93282012-02-07 Tom Tromey <tromey@redhat.com>
9329
9330 PR python/12027:
9331 * python/python-internal.h (frame_object_type): Declare.
9332 * python/py-symbol.c (sympy_needs_frame): New function.
9333 (sympy_value): New function.
9334 (symbol_object_getset): Add "needs_frame".
9335 (symbol_object_methods): Add "value".
9336 * python/py-frame.c (frame_object_type): No longer static.
9337
64e7d9dd
TT
93382012-02-07 Tom Tromey <tromey@redhat.com>
9339
9340 PR python/13599:
9341 * python/py-symbol.c (sympy_line): New function.
9342 (symbol_object_getset): Add "line".
9343
1d6b2d2b
TT
93442012-02-07 Tom Tromey <tromey@redhat.com>
9345
9346 * charset.c (find_charset_names): Check 'in' against NULL.
9347
0d5cff50
DE
93482012-02-06 Doug Evans <dje@google.com>
9349
9350 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9351 and fields.name members from char * to const char *. All uses updated.
9352 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9353 from char * to const char *. All uses updated.
9354 (type_name_no_tag): Update.
9355 (lookup_unsigned_typename, lookup_signed_typename): Update.
9356 * gdbtypes.c (type_name_no_tag): Change result type
9357 from char * to const char *. All callers updated.
9358 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9359 name parameter from char * to const char *.
9360 * symtab.h (struct cplus_specific): Change type of demangled_name
9361 member from char * to const char *. All uses updated.
9362 (struct general_symbol_info): Change type of name and
9363 mangled_lang.demangled_name members from char * to const char *.
9364 All uses updated.
9365 (symbol_get_demangled_name, symbol_natural_name): Update.
9366 (symbol_demangled_name, symbol_search_name): Update.
9367 * symtab.c (symbol_get_demangled_name): Change result type
9368 from char * to const char *. All callers updated.
9369 (symbol_natural_name, symbol_demangled_name): Ditto.
9370 (symbol_search_name): Ditto.
9371 (completion_list_add_name): Change type of symname,sym_text,
9372 text,word parameters from char * to const char *.
9373 (completion_list_objc_symbol): Change type of sym_text,
9374 text,word parameters from char * to const char *.
9375 * ada-lang.c (find_struct_field): Change type of name parameter
9376 from char * to const char *.
9377 (encoded_ordered_before): Similarly for N0,N1 parameters.
9378 (old_renaming_is_invisible): Similarly for function_name parameter.
9379 (ada_type_name): Change result type from char * to const char *.
9380 All callers updated.
9381 * ada-lang.h (ada_type_name): Update.
9382 * buildsym.c (hashname): Change type of name parameter
9383 from char * to const char *.
9384 * buildsym.h (hashname): Update.
9385 * dbxread.c (end_psymtab): Change type of include_list parameter
9386 from char ** to const char **.
9387 * dwarf2read.c (determine_prefix): Change result type
9388 from char * to const char *. All callers updated.
9389 * f-lang.c (find_common_for_function): Change type of name, funcname
9390 parameters from char * to const char *.
9391 * f-lang.c (find_common_for_function): Update.
9392 * f-valprint.c (list_all_visible_commons): Change type of funcname
9393 parameters from char * to const char *.
9394 * gdbarch.sh (static_transform_name): Change type of name parameter
9395 and result from char * to const char *.
9396 * gdbarch.c: Regenerate.
9397 * gdbarch.h: Regenerate.
9398 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9399 of name parameter from char * to const char *.
9400 * jv-lang.c (java_primitive_type_from_name): Ditto.
9401 (java_demangled_signature_length): Similarly for signature parameter.
9402 (java_demangled_signature_copy): Ditto.
9403 (java_demangle_type_signature): Ditto.
9404 * jv-lang.h (java_primitive_type_from_name): Update.
9405 (java_demangle_type_signature): Update.
9406 * objc-lang.c (specialcmp): Change type of a,b parameters
9407 from char * to const char *.
9408 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9409 from char * to const char *. All callers updated.
9410 * p-lang.h (is_pascal_string_type): Update.
9411 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9412 of name parameter from char * to const char *.
9413 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9414 * utils.c (fprintf_symbol_filtered): Ditto.
9415 * defs.h (fprintf_symbol_filtered): Update.
9416 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9417 * stabsread.h (end_psymtab): Update.
9418 * stack.c (find_frame_funname): Change type of funname parameter
9419 from char ** to const char **.
9420 * stack.h (find_frame_funname): Update.
9421 * typeprint.c (type_print): Change type of varstring parameter
9422 from char * to const char *.
9423 * value.h (type_print): Update.
9424 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9425 from char * to const char *. All callers updated.
9426 (xcoff_end_psymtab): Change type of include_list parameter
9427 from char ** to const char **. All callers updated.
9428 (swap_sym): Similarly for name parameter. All callers updated.
9429 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9430 Use xstrdup.
9431 (process_coff_symbol): Use xstrdup.
9432 * stabsread.c (stabs_method_name_from_physname): Renamed from
9433 update_method_name_from_physname. Change result type from void
9434 to char *. All callers updated.
9435 (read_member_functions): In has_destructor case, store name in objfile
9436 obstack instead of malloc space. In !has_stub case, fix mem leak.
9437
5579a92e
TT
94382012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9439
9440 * configure: Rebuild.
9441 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9442 LDFLAGS.
9443
9058f767
KB
94442012-02-03 Kevin Buettner <kevinb@redhat.com>
9445
9446 * configure.tgt (rl78-*-elf): New target.
9447 * rl78-tdep.c: New file.
9448
5b37825d
PW
94492012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9450
9451 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9452 and continue the loop. Add QUIT statement.
9453
e009ee71
TT
94542012-02-03 Tom Tromey <tromey@redhat.com>
9455
9456 PR gdb/13596:
9457 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9458 bfd_lookup_symbol_from_symtab.
9459 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9460 gdb_bfd_lookup_symbol_from_symtab.
9461
f7e44f65
JB
94622012-02-03 Joel Brobecker <brobecker@adacore.com>
9463
9464 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9465 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9466 symbol. Add assertion that sym2 is never NULL.
9467
2c02bd72
DE
94682012-02-02 Doug Evans <dje@google.com>
9469
9470 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9471 "name" parameter to const char ** from char **. All callers updated.
9472 (find_pc_partial_function): Ditto.
9473 (cache_pc_function_name): Change type to const char * from char *.
9474 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9475 (find_pc_partial_function): Update.
9476 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9477 type of "name" parameter to const char * from char *.
9478 All uses updated.
9479 * arch-utils.c (generic_in_solib_return_trampoline): Change
9480 type of "name" parameter to const char * from char *.
9481 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9482 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9483 type of "name" parameter to const char * from char *.
9484 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9485 * gdbarch.c: Regenerate.
9486 * gdbarch.h: Regenerate.
9487 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9488 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9489 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9490 type of "name" parameter to const char * from char *.
9491 * skip.c (skip_function_pc): Ditto.
9492 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9493 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9494 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9495 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9496 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9497 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9498 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9499 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9500 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9501
e886a173
PA
95022012-02-02 Pedro Alves <palves@redhat.com>
9503
9504 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9505 the current inferior has no execution. Make sure the current
9506 remote process matches gdb's current inferior.
9507
c709a7c2
TT
95082012-02-02 Tom Tromey <tromey@redhat.com>
9509
9510 PR gdb/13405:
9511 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9512 read-only memory.
9513
f149aabd
TT
95142012-02-02 Tom Tromey <tromey@redhat.com>
9515
9516 PR gdb/9307:
9517 * symtab.c (lookup_language_this): Set block_found.
9518
03bef283
TT
95192012-02-01 Tom Tromey <tromey@redhat.com>
9520
9521 PR gdb/13431:
9522 * jit.c (struct jit_inferior_data): Rewrite.
9523 (struct jit_objfile_data): New.
9524 (get_jit_objfile_data): New function.
9525 (add_objfile_entry): Update.
9526 (jit_read_descriptor): Return int. Replace descriptor_addr
9527 argument with inf_data. Update. Don't call error.
9528 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9529 descriptor here.
9530 (jit_inferior_init): Don't look up descriptor. Don't call error.
9531 (jit_reset_inferior_data_and_breakpoints)
9532 (jit_inferior_created_observer): Remove.
9533 (jit_inferior_exit_hook): Update.
9534 (jit_executable_changed_observer): Remove.
9535 (jit_event_handler): Update.
9536 (free_objfile_data): Reset inferior data if needed.
9537 (_initialize_jit): Update.
9538
f0bbc364
TT
95392012-02-01 Tom Tromey <tromey@redhat.com>
9540
9541 * jit.c (bfd_open_from_target_memory): Move higher in file.
9542
47c1316c
TG
95432012-02-01 Tristan Gingold <gingold@adacore.com>
9544
9545 * libunwind-frame.c (libunwind_load): Display message if dlopen
9546 failed.
9547
8e704927
GB
95482012-02-01 Gary Benson <gbenson@redhat.com>
9549
09c7a31f 9550 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9551 (iterate_over_symbols): Use the above.
9552 * symtab.c (iterate_over_symbols): Likewise.
9553 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9554 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9555 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9556 (iterate_name_matcher): Document return values.
9557 (collect_one_symbol): Likewise.
9558 (collect_function_symbols): Likewise.
9559 (collect_symbols): Likewise.
9560
d9680e73
TT
95612012-02-01 Tom Tromey <tromey@redhat.com>
9562
9563 * ada-lang.c (resolve_subexp): Update.
9564 (ada_lookup_symbol_list): Add 'full_search' argument.
9565 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9566 ada_lookup_symbol_list.
9567 (ada_lookup_encoded_symbol): Update.
9568 (get_var_value): Update.
9569 * ada-exp.y (block_lookup): Update.
9570 (write_var_or_type): Update.
9571 (write_name_assoc): Update.
9572 * ada-lang.h (ada_lookup_symbol_list): Update.
9573
72e1143f
TT
95742012-01-31 Tom Tromey <tromey@redhat.com>
9575
9576 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9577 comment.
9578
ab2d2ad3
DE
95792012-01-31 Doug Evans <dje@google.com>
9580
9581 * symtab.h: Remove outdated comment.
e9111bf7 9582 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9583
bc884eba
JB
95842012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9585
9586 Fix build error in Darwin port.
9587 * i386-darwin-nat.c: Include i386-nat.h.
9588
8fc3fc34
TT
95892012-01-30 Tom Tromey <tromey@redhat.com>
9590
9591 PR breakpoints/13568:
9592 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9593 argument. Check for recursive includes.
9594 (dwarf_decode_macros): Create an include hash.
9595
5d853008
ME
95962012-01-30 Michael Eager <eager@eagercon.com>
9597
9598 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9599 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9600 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9601 (powerpc_linux_in_plt_stub): New function.
9602 (powerpc_linux_in_dynsym_resolve_code): New function.
9603 (ppc_skip_trampoline_code): New function.
9604 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9605 Use glibc_skip_solib_resolver.
9606
40478521
JK
96072012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9608
9609 Code cleanup: Make 1440 bytes of data segment read-only.
9610 * arch-utils.c (endian_enum): Make it const char *const [].
9611 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9612 Likewise.
9613 * breakpoint.c (always_inserted_enums): Likewise.
9614 * cli/cli-cmds.c (script_ext_enums): Likewise.
9615 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9616 enumlist parameter const char *const *.
9617 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9618 const char *const *.
9619 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9620 parameter const char *const *.
9621 * cris-tdep.c (cris_modes): Make it const char *const [].
9622 * filesystem.c (target_file_system_kinds): Likewise.
9623 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9624 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9625 (can_use_displaced_stepping_enum, scheduler_enums)
9626 (exec_direction_names): Likewise.
9627 * language.c (_initialize_language): Make the type_or_range_names and
9628 case_sensitive_names variables const char *const [].
9629 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9630 * python/python.c (python_excp_enums): Likewise.
9631 * remote.c (interrupt_sequence_modes): Likewise.
9632 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9633 * serial.c (logbase_enums): Likewise.
9634 * sh-tdep.c (sh_cc_enum): Likewise.
9635 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9636 Likewise.
9637 * symtab.c (multiple_symbols_modes): Likewise.
9638 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9639 Likewise.
9640 * utils.c (internal_problem_modes): Likewise.
9641
b3b8b934
JK
96422012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9643
9644 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9645 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9646 result.
9647
8c85a4e2
DE
96482012-01-27 Doug Evans <dje@google.com>
9649
9650 * configure.ac (with_python): Fix absolute path handling for win32.
9651 * configure: Regenerate.
9652
78d8b4d7
DE
96532012-01-26 Doug Evans <dje@google.com>
9654
eca864fe
DE
9655 * symtab.c: Whitespace cleanup, no code changes.
9656
7e082072
DE
9657 * symtab.c (lookup_symbol_in_language): Improve comment.
9658 (lookup_symbol_aux): Fix comment.
9659
7dc25483
DE
9660 * psymtab.c (add_psymbol_to_list): Result is now "void".
9661 * psympriv.h (add_psymbol_to_list): Update.
9662
78d8b4d7
DE
9663 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9664
4c63965b
JK
96652012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9666
9667 Do not open script filenames twice.
9668 * cli/cli-cmds.c (source_script_from_stream): Pass to
9669 source_python_script also STREAM.
9670 * python/py-auto-load.c (source_section_scripts): Pass to
9671 source_python_script_for_objfile also STREAM.
9672 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9673 also INPUT.
9674 * python/python-internal.h (source_python_script_for_objfile): New
9675 parameter file, rename parameter file to filename.
9676 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9677 instead if !_WIN32. Update the function comment.
9678 (source_python_script, source_python_script_for_objfile)
9679 (source_python_script): New parameter file, rename parameter file to
9680 filename. Pass FILENAME to python_run_simple_file.
9681 * python/python.h (source_python_script): New parameter file, rename
9682 parameter file to filename.
9683
88f38a04
PA
96842012-01-26 Pedro Alves <palves@redhat.com>
9685
9686 * corelow.c (core_has_fake_pid): Delete.
9687 (core_close): Delete references to `core_has_fake_pid'.
9688 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9689 (core_open): Delete references to `core_has_fake_pid'.
9690 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9691 the removed global.
9692
e078317b
JB
96932012-01-26 Joel Brobecker <brobecker@adacore.com>
9694
9695 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9696 Remove language parameter from name_matcher. Adjust the comment.
9697 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9698 Remove language parameter.
9699 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9700 * linespec.c (iterate_name_matcher): Likewise.
9701 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9702 name_matcher. Adjust call accordingly.
9703 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9704 (maintenance_check_symtabs): Adjust type of parameter "fun".
9705 * psymtab.h (maintenance_check_symtabs): Likewise.
9706
74ccd7f5
JB
97072012-01-26 Joel Brobecker <brobecker@adacore.com>
9708
9709 * language.h (symbol_name_match_p_ftype): New typedef.
9710 (struct language_defn): Replace field la_symbol_name_compare
9711 by la_get_symbol_name_match_p.
9712 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9713 (ada_language_defn): Use it.
9714 * linespec.c (struct symbol_matcher_data): New type.
9715 (iterate_name_matcher): Rewrite.
9716 (iterate_over_all_matching_symtabs): Pass a pointer to
9717 a symbol_matcher_data struct to expand_symtabs_matching
9718 instead of just the lookup name.
9719 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9720 opencl-lang.c, p-lang.c, language.c: Delete field
9721 la_symbol_name_compare, and replace by NULL for new field
9722 la_get_symbol_name_match_p.
9723 * symfile.h (struct quick_symbol_functions): Update comment.
9724
5d268276
TT
97252012-01-25 Tom Tromey <tromey@redhat.com>
9726
9727 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9728 dereferencing.
9729
edcc5120
TT
97302012-01-24 Tom Tromey <tromey@redhat.com>
9731
9732 PR symtab/12406:
9733 * solib.c (update_solib_list): Update the program space's
9734 added_solibs and deleted_solibs fields.
9735 * progspace.h (struct program_space) <added_solibs,
9736 deleted_solibs>: New fields.
9737 (clear_program_space_solib_cache): Declare.
9738 * progspace.c (release_program_space): Call
9739 clear_program_space_solib_cache.
9740 (clear_program_space_solib_cache): New function.
9741 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9742 bpstat_stop_status. Use handle_solib_event.
9743 * breakpoint.c: Include gdb_regex.h.
9744 (print_solib_event): New function.
9745 (bpstat_print): Use print_solib_event.
9746 (bpstat_stop_status): Add special case for bp_shlib_event.
9747 (handle_solib_event): New function.
9748 (bpstat_what): Use handle_solib_event.
9749 (struct solib_catchpoint): New.
9750 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9751 (breakpoint_hit_catch_solib, check_status_catch_solib)
9752 (print_it_catch_solib, print_one_catch_solib)
9753 (print_mention_catch_solib, print_recreate_catch_solib): New
9754 functions.
9755 (catch_solib_breakpoint_ops): New global.
9756 (catch_load_or_unload, catch_load_command_1)
9757 (catch_unload_command_1): New functions.
9758 (internal_bkpt_check_status): Add special case for
9759 bp_shlib_event.
9760 (internal_bkpt_print_it): Use print_solib_event.
9761 (initialize_breakpoint_ops): Initialize
9762 catch_solib_breakpoint_ops.
9763 (_initialize_breakpoint): Register "catch load" and "catch
9764 unload".
9765 * breakpoint.h (handle_solib_event): Declare.
9766 * NEWS: Add entry for "catch load" and "catch unload".
9767
fa864999
TT
97682012-01-24 Tom Tromey <tromey@redhat.com>
9769
9770 * ada-lang.c: Include gdb_vecs.h.
9771 * charset.c: Include gdb_vecs.h.
9772 * tracepoint.h: Include gdb_vecs.h.
9773 * gdb_vecs.h: New file.
9774
f90263c1
TT
97752012-01-24 Pedro Alves <pedro@codesourcery.com>
9776
9777 * breakpoint.c (breakpoint_hit_catch_fork)
9778 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9779 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9780 * infrun.c (inferior_has_forked, inferior_has_vforked)
9781 (inferior_has_execd, inferior_has_called_syscall): Delete.
9782 (handle_syscall_event): Get syscall_number from the execution
9783 control state's wait status.
9784 (wait_for_inferior): Don't clear syscall_number.
9785
09ac7c10
TT
97862012-01-24 Pedro Alves <palves@redhat.com>
9787
9788 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9789 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9790 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9791 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9792 `ws' parameter.
9793 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9794 false for events other than TARGET_SIGNAL_TRAP.
9795 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9796 Add `ws' parameter.
9797 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9798 events other than TARGET_SIGNAL_TRAP.
9799 (tracepoint_breakpoint_hit): Add `ws' parameter.
9800 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9801 parameter.
9802 (bpstat_stop_status): Same.
9803 (pc_at_non_inline_function): Same.
9804 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9805 to pass the current event's waitstatus to bpstat_stop_status
9806 and pc_at_non_inline_function.
9807
86eb7e95
JK
98082012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9809
9810 Code cleanup.
9811 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9812 Update the function comment for it.
9813 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9814 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9815 for STREAM.
9816
a9b3a50f
PA
98172012-01-24 Pedro Alves <palves@redhat.com>
9818
9819 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9820 outside `bs->stop' block.
9821 (bpstat_what): Rework bp_shlib_event handling.
9822 (internal_bkpt_check_status): If the breakpoint is a
9823 bp_shlib_event, then set bs->stop and bs->print if
9824 stop_on_solib_events is set.
9825
53fe1783
GB
98262012-01-24 Gary Benson <gbenson@redhat.com>
9827
9828 Delete #if 0'd out code.
9829 * stack.c (print_frame_label_vars): Remove.
9830 (catch_info): Likewise.
9831 (_initialize_stack): Remove "info catch" command.
9832 * NEWS: Mention the above.
9833
49c62f2e
PA
98342012-01-24 Pedro Alves <palves@redhat.com>
9835
9836 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9837 it.
9838 (remote_notice_new_inferior): If the remote end doesn't support
9839 the multiprocess extensions, then the PID is fake.
9840 (add_current_inferior_and_thread): New.
9841 (remote_start_remote): Use it.
9842 (extended_remote_attach_1): Adjust.
9843 (extended_remote_create_inferior_1): Use
9844 add_current_inferior_and_thread.
9845
d0d8b0c6
JK
98462012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9847
9848 Fix watchpoints to be specific for each inferior.
9849 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9850 current_program_space.
9851 * i386-nat.c (i386_inferior_data_cleanup): New.
9852 (i386_inferior_data_get): Replace variable inf_data_local by an
9853 inferior_data call.
9854 (i386_use_watchpoints): Initialize i386_inferior_data.
9855 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9856 specific iterate_over_lwps.
9857
4403d8e9
JK
98582012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9859
9860 Fix watchpoints across inferior fork.
9861 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9862 comment for linux_nat_iterate_watchpoint_lwps.
9863 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9864 linux_nat_iterate_watchpoint_lwps.
9865 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9866 * i386-linux-nat.c (update_debug_registers_callback): Update the
9867 comment for linux_nat_iterate_watchpoint_lwps.
9868 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9869 linux_nat_iterate_watchpoint_lwps.
9870 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9871 * i386-nat.c: Include inferior.h.
9872 (dr_mirror): Remove.
9873 (i386_inferior_data, struct i386_inferior_data)
9874 (i386_inferior_data_get): New.
9875 (i386_debug_reg_state): Use i386_inferior_data_get.
9876 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9877 (i386_insert_watchpoint, i386_remove_watchpoint)
9878 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9879 (i386_remove_hw_breakpoint): New variable state, use
9880 i386_debug_reg_state instead of DR_MIRROR.
9881 * linux-nat.c (delete_lwp): New declaration.
9882 (num_lwps): Move here from downwards.
9883 (delete_lwp_cleanup): New.
9884 (linux_child_follow_fork): Create new child_lp, call
9885 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9886 PTRACE_DETACH.
9887 (num_lwps): Move upwards.
9888 (linux_nat_iterate_watchpoint_lwps): New.
9889 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9890 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9891
2992c9a7 98922012-01-24 Joel Brobecker <brobecker@adacore.com>
9893
9894 GDB 7.4 released.
9895
e360902b
PA
98962012-01-23 Pedro Alves <palves@redhat.com>
9897
9898 * top.c (caution): Rename to ...
9899 (confirm): ... this.
9900 (show_caution): Rename to ...
9901 (show_confirm): ... this.
9902 (quit_cover): Adjust.
9903 (init_main): Adjust.
9904 * top.h (caution): Rename to ...
9905 (confirm): ... this.
9906 * utils.c (internal_vproblem, defaulted_query): Adjust.
9907
050a2e1d
PA
99082012-01-23 Pedro Alves <palves@redhat.com>
9909
9910 * top.c (caution): Update comment.
9911 (execute_command): Don't consider the current value of `caution'.
9912
77a35dd8
JK
99132012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9914
9915 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9916
a71b5a38
UW
99172012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9918
9919 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9920 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9921 * target.c (target_fileio_pwrite): Remove buffer address from
9922 debug output.
9923 (target_fileio_pread): Likewise.
9924
d99bd577
UW
99252012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9926
9927 * NEWS: Document remote "info proc" and "generate-core-file".
9928
35c2fab7
UW
99292012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9930
9931 * gdbarch.sh (find_memory_regions): New callback.
9932 * gdbarch.c, gdbarch.h: Regenerate.
9933
9934 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9935 callback before falling back to target method.
9936
9937 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9938 (linux_target_install_ops): No longer install it.
9939
9940 * linux-tdep.c (linux_find_memory_regions): New function.
9941 (linux_init_abi): Install it.
9942
6432734d
UW
99432012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9944
9945 * gdbarch.sh (make_corefile_notes): New architecture callback.
9946 * gdbarch.c: Regenerate.
9947 * gdbarch.h: Likewise.
9948
9949 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9950 before target_make_corefile_notes. If NULL is returned, the
9951 target does not support core file generation.
9952
9953 * linux-nat.c: Include "linux-tdep.h".
9954 (find_signalled_thread, find_stop_signal): Remove.
9955 (linux_nat_do_thread_registers): Likewise.
9956 (struct linux_nat_corefile_thread_data): Likewise.
9957 (linux_nat_corefile_thread_callback): Likewise.
9958 (iterate_over_spus): Likewise.
9959 (struct linux_spu_corefile_data): Likewise.
9960 (linux_spu_corefile_callback): Likewise.
9961 (linux_spu_make_corefile_notes): Likewise.
9962 (linux_nat_collect_thread_registers): New function.
9963 (linux_nat_make_corefile_notes): Replace contents by call to
9964 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9965 as native-only callback.
9966
9967 * linux-tdep.h: Include "bfd.h".
9968 (struct regcache): Add forward declaration.
9969 (linux_collect_thread_registers_ftype): New typedef.
9970 (linux_make_corefile_notes): Add prototype.
9971 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9972 "regset.h", and "elf-bfd.h".
9973 (find_signalled_thread, find_stop_signal): New functions.
9974 (linux_spu_make_corefile_notes): Likewise.
9975 (linux_collect_thread_registers): Likewise.
9976 (struct linux_corefile_thread_data): New data structure.
9977 (linux_corefile_thread_callback): New funcion.
9978 (linux_make_corefile_notes): Likewise.
9979 (linux_make_corefile_notes_1): Likewise.
9980 (linux_init_abi): Install it.
9981
3030c96e
UW
99822012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9983
9984 * gdbarch.sh (info_proc): New callback.
9985 * gdbarch.c, gdbarch.h: Regenerate.
9986
9987 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9988 before falling back to the target info_proc callback.
9989
9990 * linux-nat.c: Do not include "cli/cli-utils.h".
9991 (linux_nat_info_proc): Remove.
9992 (linux_target_install_ops): No longer install it.
9993
9994 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9995 (read_mapping): New function.
9996 (linux_info_proc): Likewise.
9997 (linux_init_abi): Install it.
9998
145b16a9
UW
99992012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10000
10001 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10002 * infcmd.c: (info_proc_cmd_1): New function.
10003 (info_proc_cmd): New function, moved here from equivalent routine
10004 orignally in linux-nat.c.
10005 (info_proc_cmd_mappings): Likewise.
10006 (info_proc_cmd_stat): Likewise.
10007 (info_proc_cmd_status): Likewise.
10008 (info_proc_cmd_cwd): Likewise.
10009 (info_proc_cmd_cmdline): Likewise.
10010 (info_proc_cmd_exe): Likewise.
10011 (info_proc_cmd_all): Likewise.
10012 (_initialize_infcmd): Install "info proc" command and subcommands.
10013
10014 * target.h (struct target_ops): Add to_info_proc.
10015 (target_info_proc): Add prototype.
10016 * target.c (target_info_proc): New function.
10017
10018 * procfs.c (procfs_info_proc): Add prototype.
10019 (info_proc_cmd): Rename into ...
10020 (procfs_info_proc): ... this. Update argument types as appropriate
10021 for a to_info_proc implementation. Handle "what" argument.
10022 (procfs_target): Install procfs_info_proc.
10023 (_initialize_procfs): No longer install "info proc" command.
10024
10025 * linux-nat.c: (enum info_proc_what): Remove.
10026 (linux_nat_info_proc_cmd_1): Rename into ...
10027 (linux_nat_info_proc): ... this. Update argument types as appropriate
10028 for a to_info_proc implementation.
10029 (linux_nat_info_proc_cmd): Remove.
10030 (linux_nat_info_proc_cmd_mappings): Likewise.
10031 (linux_nat_info_proc_cmd_stat): Likewise.
10032 (linux_nat_info_proc_cmd_status): Likewise.
10033 (linux_nat_info_proc_cmd_cwd): Likewise.
10034 (linux_nat_info_proc_cmd_cmdline): Likewise.
10035 (linux_nat_info_proc_cmd_exe): Likewise.
10036 (linux_nat_info_proc_cmd_all): Likewise.
10037 (linux_target_install_ops): Install linux_nat_info_proc.
10038 (_initialize_linux_nat): No longer install "info proc" command
10039 and subcommands.
10040
b9e7b9c3
UW
100412012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10042
10043 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10044 * config.in, configure: Regenerate.
10045
10046 * target.h (struct target_ops): Add to_fileio_readlink.
10047 (target_fileio_readlink): Add prototype.
10048 * target.c (target_fileio_readlink): New function.
10049
10050 * inf-child.c: Conditionally include <sys/param.h>.
10051 (inf_child_fileio_readlink): New function.
10052 (inf_child_target): Install it.
10053
10054 * remote.c (PACKET_vFile_readlink): New enum value.
10055 (remote_hostio_readlink): New function.
10056 (init_remote_ops): Install it.
10057 (_initialize_remote): Handle vFile:readlink packet type.
10058
7313baad
UW
100592012-01-20 Pedro Alves <palves@redhat.com>
10060 Ulrich Weigand <ulrich.weigand@linaro.org>
10061
10062 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10063 * config.in, configure: Regenerate.
10064
10065 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10066 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10067 (target_fileio_open): Add prototype.
10068 (target_fileio_pwrite): Likewise.
10069 (target_fileio_pread): Likewise.
10070 (target_fileio_close): Likewise.
10071 (target_fileio_unlink): Likewise.
10072 (target_fileio_read_alloc): Likewise.
10073 (target_fileio_read_stralloc): Likewise.
10074
10075 * target.c: Include "gdb/fileio.h".
10076 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10077 (default_fileio_target): New function.
10078 (target_fileio_open): Likewise.
10079 (target_fileio_pwrite): Likewise.
10080 (target_fileio_pread): Likewise.
10081 (target_fileio_close): Likewise.
10082 (target_fileio_unlink): Likewise.
10083 (target_fileio_close_cleanup): Likewise.
10084 (target_fileio_read_alloc_1): Likewise.
10085 (target_fileio_read_alloc): Likewise.
10086 (target_fileio_read_stralloc): Likewise.
10087
10088 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10089 <fcntl.h>, and <unistd.h>.
10090 (inf_child_fileio_open_flags_to_host): New function.
10091 (inf_child_errno_to_fileio_error): Likewise.
10092 (inf_child_fileio_open): Likewise.
10093 (inf_child_fileio_pwrite): Likewise.
10094 (inf_child_fileio_pread): Likewise.
10095 (inf_child_fileio_close): Likewise.
10096 (inf_child_fileio_unlink): Likewise.
10097 (inf_child_target): Install to_fileio routines.
10098
10099 * remote.c (init_remote_ops): Install to_fileio routines.
10100
901f9912
UW
101012012-01-20 Pedro Alves <palves@redhat.com>
10102 Ulrich Weigand <ulrich.weigand@linaro.org>
10103
10104 * remote.c (remote_multi_process_p): Only check for multi-process
10105 protocol feature, do not check for extended protocol.
10106 (remote_supports_multi_process): Check for extended protocol here.
10107 (set_general_process): Likewise.
10108 (extended_remote_kill): Likewise.
10109 (remote_pid_to_str): Likewise.
10110 (remote_query_supported): Always query multiprocess mode.
10111
e714e1bf
UW
101122012-01-20 Pedro Alves <palves@redhat.com>
10113 Ulrich Weigand <ulrich.weigand@linaro.org>
10114
10115 * inferior.h (struct inferior): Add fake_pid_p.
10116 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10117 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10118 magic_null_ptid since the remote side doesn't provide a real PID.
10119
50897289
TT
101202012-01-19 Tom Tromey <tromey@redhat.com>
10121
10122 * NEWS: Combine the two Python sections.
10123
1afc2033
JK
101242012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10125
10126 * target.h (target_close): Update comment on the target's unpush state.
10127
305436e0
PA
101282012-01-19 Pedro Alves <palves@redhat.com>
10129
10130 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10131 linux_nat_async directly instead of going through the target
10132 vector.
10133 * target.c (unpush_target): Close target after unpushing it, not
10134 before.
10135
49323895
GB
101362012-01-19 Gary Benson <gbenson@redhat.com>
10137
10138 * mdebugread.c (sort_blocks): Replace integer constants with ones
10139 derived from FIRST_LOCAL_BLOCK.
10140
1db33378
PP
101412012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10142 Jan Kratochvil <jan.kratochvil@redhat.com>
10143
10144 PR gdb/9538
10145 * symfile.c (find_separate_debug_file): New function.
10146 (terminate_after_last_dir_separator): Likewise.
10147 (find_separate_debug_file_by_debuglink): Also try realpath.
10148 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10149 * configure: Regenerate.
10150 * config.in: Regenerate.
10151
f83d8a90
DE
101522012-01-18 Doug Evans <dje@google.com>
10153
10154 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10155 (main.o): Remove rule.
10156 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10157 (--with-sysroot): Rewrite.
10158 * configure: Regenerate.
10159 * config.in: Regenerate.
10160
2dbca4d6
SDJ
101612012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10162
10163 * parse.c (initialize_expout): New function.
10164 (reallocate_expout): Likewise.
10165 (parse_exp_in_context): Use `initialize_expout' and
10166 `reallocate_expout' when appropriate.
10167
0695b514
PA
101682012-01-18 Pedro Alves <palves@redhat.com>
10169
10170 * record.c (struct record_breakpoint, record_breakpoint_p)
10171 (record_breakpoints): New.
10172 (record_insert_breakpoint, record_remove_breakpoint): Manage
10173 record breakpoints list. Only remove breakpoints from the
10174 inferior if they had been inserted there in the first place.
10175
136e1c30
DE
101762012-01-17 Doug Evans <dje@google.com>
10177
10178 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10179 if we know we don't have a file name to look for.
10180
c0bf857d
PA
101812012-01-17 Pedro Alves <palves@redhat.com>
10182
10183 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10184 the frame's stop reason is UNWIND_UNAVAILABLE.
10185
b486de60
JK
101862012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10187
10188 Fix compilation error.
10189 * m2-exp.y (yyerror): Use ANSI C prototype.
10190
d04550a6
SDJ
101912012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10192
10193 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10194 (growbuf_by_size): Likewise.
10195 (yyerror): Likewise.
10196 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10197 (modblock): Remove variable (was #if 0'ed).
10198 (parse_number): Convert prototype from K&R to ANSI C.
10199 (yyerror): Likewise.
10200 * objc-exp.y (parse_number): Likewise.
10201 (yyerror): Likewise.
10202 (yylex): Remove #if 0'ed code.
10203 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10204 (yyerror): Likewise.
10205
4aac40c8
TT
102062012-01-16 Tom Tromey <tromey@redhat.com>
10207
10208 * NEWS: Add item.
10209 * symtab.h (compare_filenames_for_search): Declare.
10210 * symtab.c (compare_filenames_for_search): New function.
10211 (iterate_over_some_symtabs): Use it.
10212 * symfile.h (struct quick_symbol_functions)
10213 <map_symtabs_matching_filename>: Change spec.
10214 * psymtab.c (partial_map_symtabs_matching_filename): Use
10215 compare_filenames_for_search. Update for new spec.
10216 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10217 compare_filenames_for_search. Update for new spec.
10218 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10219
cafec441
TT
102202012-01-16 Tom Tromey <tromey@redhat.com>
10221
10222 PR python/13281:
10223 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10224 (struct main_type) <flag_flag_enum>: New field.
10225 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10226 * NEWS: Add entries.
10227 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10228 enums.
10229 * python/lib/gdb/printing.py (_EnumInstance): New class.
10230 (FlagEnumerationPrinter): Likewise.
10231
983af33b
SDJ
102322012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10233
10234 * breakpoint.c (create_sals_from_address_default): New function.
10235 (create_breakpoints_sal_default): Likewise.
10236 (decode_linespec_default): Likewise.
10237 (is_marker_spec): Removed.
10238 (strace_marker_p): New function.
10239 (init_breakpoint_sal): Using `strace_marker_p' instead of
10240 `is_marker_spec'.
10241 (create_breakpoint): Call method `create_sals_from_address' from
10242 breakpoint_ops, replacing code that created SALs conditionally
10243 on the type of the breakpoint. Call method `create_breakpoints_sal',
10244 replacing code that created breakpoints conditionally on the type
10245 wanted.
10246 (base_breakpoint_create_sals_from_address): New function.
10247 (base_breakpoint_create_breakpoints_sal): Likewise.
10248 (base_breakpoint_decode_linespec): Likewise.
10249 (base_breakpoint_ops): Add methods
10250 `base_breakpoint_create_sals_from_address',
10251 `base_breakpoint_create_breakpoints_sal' and
10252 `base_breakpoint_decode_linespec'.
10253 (bkpt_create_sals_from_address): New function.
10254 (bkpt_create_breakpoints_sal): Likewise.
10255 (bkpt_decode_linespec): Likewise.
10256 (tracepoint_create_sals_from_address): Likewise.
10257 (tracepoint_create_breakpoints_sal): Likewise.
10258 (tracepoint_decode_linespec): Likewise.
10259 (strace_marker_create_sals_from_address): Likewise.
10260 (strace_marker_create_breakpoints_sal): Likewise.
10261 (strace_marker_decode_linespec): Likewise.
10262 (strace_marker_breakpoint_ops): New variable.
10263 (addr_string_to_sals): Remove `marker_spec'. Call method
10264 `decode_linespec' from breakpoint_ops, replacing code that decoded
10265 an address string into a SAL. Use `strace_marker_p' instead of
10266 `marker_spec'.
10267 (strace_command): Decide whether we are dealing with a static
10268 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10269 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10270 * breakpoint.h (linespec_result, linespec_sals): New forward
10271 declarations.
10272 (breakpoint_ops) <create_sals_from_address>,
10273 <create_breakpoints_sal>, <decode_linespec>: New methods.
10274
4795f398
DE
102752012-01-14 Doug Evans <dje@google.com>
10276
10277 * NEWS: Update text for "maint set python print-stack".
10278 It is deprecated in gdb 7.4 and deleted in 7.5.
10279
ee5106fe
EZ
102802012-01-13 Eli Zaretskii <eliz@gnu.org>
10281
10282 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10283 including curses.h.
10284
b161e06f
JK
102852012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10286
10287 * configure: Regenerate.
10288 * config.in: Regenerate.
10289
85254831
KS
102902012-01-12 Keith Seitz <keiths@redhat.com>
10291
10292 PR mi/10586
10293 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10294 (ANONYMOUS_UNION_NAME): Define.
10295 (is_path_expr_parent): New function.
10296 (get_path_expr_parent): New function.
10297 (is_anonymous_child): New function.
10298 (create_child_with_value): If the child is anonymous and without
10299 a name, assign an object name to it.
10300 (c_describe_child): Use get_path_expr_parent to determine
10301 the parent expression.
10302 If there field represents an anonymous struct or union and
10303 has no name, set an appropriate display name and expression.
10304 (cplus_describe_child): Likewise.
10305
620fa63a
PA
103062012-01-12 Pedro Alves <palves@redhat.com>
10307
10308 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10309 available when %ebp is found to be zero (outermost).
10310
2efa2c79
AT
103112012-01-11 Andreas Tobler <andreast@fgznet.ch>
10312
10313 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10314 an internal gdb_static_assert.
10315 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10316
88e7d25d
TT
103172012-01-11 Tom Tromey <tromey@redhat.com>
10318
10319 PR gdb/9598:
10320 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10321 catch" and "catch throw".
10322
72384ba3
PH
103232012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10324
10325 * blockframe.c (block_innermost_frame): Start search from selected
10326 frame, if present, or otherwise the current frame.
10327
10328 * c-exp.y (variable): Update innermost_block for
10329 'block COLONCOLON NAME' clause.
10330 * m2-exp.y (variable): Ditto.
10331 * objc-exp.y (variable): Ditto.
10332
065a711f
TT
103332012-01-10 Tom Tromey <tromey@redhat.com>
10334
10335 PR python/13199:
10336 * python/python.c (finish_python_initialization): Set sys.argv.
10337
f3f5162e
DE
103382012-01-10 Doug Evans <dje@google.com>
10339
10340 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10341 "want_line_info". All callers updated.
10342 (dwarf_decode_lines_1): New function.
10343 (handle_DW_AT_stmt_list): Add function comment.
10344 New arg "want_line_info". All callers updated.
10345 (read_file_scope,read_type_unit_scope): Move comment from
10346 handle_DW_AT_stmt_list to here.
10347
9934703b
JK
103482012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10349
10350 Fix regression after libiberty/ update for GCC PR 6057 and others.
10351 * c-exp.y (operator) <OPERATOR DELETE>
10352 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10353 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10354 (make_builtin_type, make_name): New variable i, add gdb_assert.
10355 (operator) <OPERATOR NEW>: Update ARGS to 3.
10356 (operator) <OPERATOR DELETE>: Add trailing space.
10357 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10358 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10359 * cp-support.c (cp_canonicalize_string): Check NULL from
10360 cp_comp_to_string, call warning and return.
10361
06b9f45f
JK
103622012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10363
10364 Fix duplicate .o files after omitting libbfd.a.
10365 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10366 (SFILES): Add corelow.c.
10367 (COMMON_OBS): Add corelow.o.
10368 (ALLDEPFILES): Remove corelow.c.
10369 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10370 * config/alpha/alpha-osf3.mh: Likewise.
10371 * config/alpha/fbsd.mh: Likewise.
10372 * config/arm/nbsdaout.mh: Likewise.
10373 * config/arm/nbsdelf.mh: Likewise.
10374 * config/i386/i386gnu.mh: Likewise.
10375 * config/ia64/hpux.mh: Likewise.
10376 * config/ia64/linux.mh: Likewise.
10377 * config/m32r/linux.mh: Likewise.
10378 * config/m68k/linux.mh: Likewise.
10379 * config/mips/irix5.mh: Likewise.
10380 * config/mips/irix6.mh: Likewise.
10381 * config/pa/hpux.mh: Likewise.
10382 * config/pa/linux.mh: Likewise.
10383 * config/powerpc/aix.mh: Likewise.
10384 * config/sparc/linux.mh: Likewise.
10385 * config/sparc/linux64.mh: Likewise.
10386 * config/sparc/sol2.mh: Likewise.
10387 * config/vax/vax.mh: Likewise.
10388 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10389 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10390 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10391 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10392 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10393 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10394 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10395 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10396 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10397 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10398 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10399 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10400 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10401 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10402 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10403 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10404 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10405 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10406 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10407 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10408 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10409 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10410 corelow.o from gdb_target_obs.
10411 * corefile.c (core_target): Update the comment on NULL value.
10412 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10413 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10414 MATCHES. Drop YUMMY set on NULL.
10415 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10416 reclaim CORE_DATA if it is already NULL.
10417
34365054
DE
104182012-01-09 Doug Evans <dje@google.com>
10419
10420 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10421 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10422
696166a3
KS
104232012-01-09 Keith Seitz <keiths@redhat.com>
10424
10425 * breakpoint.c (wrapper.h): Don't include.
10426
8e7b59a5
KS
104272012-01-09 Keith Seitz <keiths@redhat.com>
10428
10429 * Makefile.in (SFILES): Remove wrapper.c.
10430 (HFILES_NO_SRCDIR): Remove wrapper.h.
10431 (COMMON_OBS): Remove wrapper.o.
10432 * cli/cli-interp.c: Don't inlude wrapper.h.
10433 * corelow.c: Likewise.
10434 (core_open): Replace gdb_target_find_new_threads with
10435 TRY_CATCH around target_find_new_threads.
10436 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10437 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10438 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10439 evaluate_expression.
10440 (varobj_set_value): Likewise for evaluate_expression and
10441 value_assign.
10442 (install_new_variable): Likewise for value_fetch_lazy.
10443 (adjust_value_for_child_access): Likewise for value_ind.
10444 (c_describe_child): Likewise for value_subscript and
10445 value_ind.
10446 (c_value_of_root): Likewise for evaluate_expression.
10447 * wrapper.c: Remove.
10448 * wrapper.h: Remove.
10449
1a4eeb98
DE
104502012-01-09 Doug Evans <dje@google.com>
10451
9ff913ba
DE
10452 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10453 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10454 "abfd" args with "section". All callers updated.
10455 Error checking code moved ...
10456 (error_check_comp_unit_head): ... here. New function.
10457 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10458 Delete arg "abfd". New arg "type_offset". All callers updated.
10459 (create_debug_types_hash_table): Simplify by using
10460 read_and_check_type_unit_head.
10461
1a4eeb98
DE
10462 * parser-defs.h (namecopy): Delete.
10463 * parse.c (namecopy, namecopy_size): Move into copy_name.
10464
2e6af8c0
JK
104652012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10466
10467 Partially fix duplicate .o files after omitting libbfd.a.
10468 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10469 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10470 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10471 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10472 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10473 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10474 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10475
9f2f828a
PA
104762012-01-09 Pedro Alves <palves@redhat.com>
10477
10478 * MAINTAINERS: Update my email address.
10479
4d72c0bc
DE
104802012-01-08 Doug Evans <dje@google.com>
10481
d467dd73
DE
10482 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10483 n_type_units. Rename type_comp_units to all_type_units.
10484 All uses updated.
10485 (add_signatured_type_cu_to_table): Renamed from
10486 add_signatured_type_cu_to_list. All callers updated.
10487
4d72c0bc
DE
10488 * gdbtypes.h (struct cplus_struct_type): Delete member
10489 nfn_fields_total. All uses removed.
10490
21b2bd31
DE
104912012-01-06 Doug Evans <dje@google.com>
10492
10493 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10494 to top of file.
10495 (dwarf2_find_comp_unit): Delete.
10496 (process_psymtab_comp_unit): Make result "void".
10497 Delete args buffer, info_ptr, buffer_size, and replace with
10498 "section". All callers updated.
10499 (dwarf2_build_psymtabs_hard): Simplify.
10500
bfd189b1
SDJ
105012012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10502 Thiago Jung Bauermann <bauerman@br.ibm.com>
10503
10504 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10505 before `struct gdb_exception'.
10506 * breakpoint.c (update_global_location_list_nothrow)
10507 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10508 * cp-abi.c (value_rtti_type): Likewise.
10509 * cp-support.c (cp_validate_operator): Likewise.
10510 * infrun.c (insert_exception_resume_breakpoint)
10511 (check_exception_resume, keep_going): Likewise.
10512 * mi-interp.c (mi_breakpoint_created)
10513 (mi_breakpoint_modified): Likewise.
10514 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10515 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10516 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10517
6b07635f
DE
105182012-01-05 Doug Evans <dje@google.com>
10519
0b30b85c
DE
10520 * dwarf2read.c (statement_prologue): Delete, unused.
10521
98714339
DE
10522 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10523 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10524
6b07635f
DE
10525 * dwarf2read.c (comp_unit_header): Delete, unused.
10526
761f4555
UW
105272012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10528
10529 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10530 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10531
2ca0b532
PA
105322012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10533
10534 * infrun.c (normal_stop): Don't skip calling the normal_stop
10535 observers if the thread was doing a multi-step, but stopped for
10536 some reason other than stepping.
10537
50aeff07
PA
105382012-01-05 Pedro Alves <alves.ped@gmail.com>
10539
10540 * cli/cli-decode.h: Add comments.
10541 (CMD_LIST_AMBIGUOUS): Moved to command.h
10542 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10543 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10544 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10545 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10546 (add_com, add_com_alias, add_info, add_info_alias)
10547 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10548 declarations.
10549 * command.h: Add and adjust comments.
10550 (CMD_LIST_AMBIGUOUS): Moved here.
10551 (help_cmd, help_cmd_list): Delete declarations.
10552
5953832c
DE
105532012-01-04 Doug Evans <dje@google.com>
10554
e5fe5e75
DE
10555 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10556 All callers updated.
10557 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10558 Replace all arguments with "per_cu". All callers updated.
10559
28dee7f5
DE
10560 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10561
23745b47
DE
10562 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10563 New arg "per_cu". All callers updated.
10564
5953832c
DE
10565 Delete #if 0'd out code.
10566 * language.c (binop_result_type): Delete.
10567 (simple_type, ordered_type, same_type, integral_type): Delete.
10568 (numeric_type, character_type, string_type, boolean_type): Delete.
10569 (float_type, structured_type): Delete.
10570 * language.h: Update.
10571
0f5b7562
TT
105722012-01-04 Tom Tromey <tromey@redhat.com>
10573
10574 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10575
78218f56
JB
105762012-01-04 Joel Brobecker <brobecker@adacore.com>
10577
10578 * corefile.c (close_exec_file): Delete.
10579 (reopen_exec_file): Remove commented out code that seems related
10580 to close_exec_file, which is being deleted here.
10581 * inferior.h (close_exec_file): Delete.
10582 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10583
0fcd72ba
JB
105842012-01-04 Joel Brobecker <brobecker@adacore.com>
10585
10586 * ada-lang.c: #include "cli/cli-utils.h".
10587 (get_selections): Use skip_spaces.
10588 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10589 (catch_ada_exception_command_split): Use skip_spaces.
10590 (ada_decode_assert_location): Likewise.
10591
1dabb4c4
JB
105922012-01-04 Joel Brobecker <brobecker@adacore.com>
10593
10594 * linespec.c (decode_line_internal): Check for C++ or Java
10595 compound constructs only if the current language is C, C++
10596 or Java.
10597
5931a2fa
JK
105982012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10599
10600 Revert:
10601 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10602 Joel Brobecker <brobecker@adacore.com>
10603 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10604 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10605 3 times.
10606 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10607 fall through into AT_ENTRY_POINT.
10608 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10609 DUMMY_ADDR with it.
10610 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10611 PPC_INSN_SIZE skip to 3 times.
10612
1a2da5ee
JB
106132012-01-04 Joel Brobecker <brobecker@adacore.com>
10614
10615 * linespec.c (add_minsym): Preserve function descriptors.
10616
8645ff69
UW
106172012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10618
10619 * breakpoint.c (all_locations_are_pending): Consider locations
10620 in program spaces executing during startup pending as well.
10621
0b302171
JB
106222012-01-04 Joel Brobecker <brobecker@adacore.com>
10623
10624 Copyright year update in most files of the GDB Project.
10625
8ba098ad
JB
106262012-01-04 Joel Brobecker <brobecker@adacore.com>
10627
10628 * copyright.sh: Delete.
10629 * copyright.py: Rewrite.
10630
09c01c30
JB
106312012-01-04 Joel Brobecker <brobecker@adacore.com>
10632
10633 * gnulib/extra/update-copyright: New file, imported from gnulib.
10634
3c36c0af
JB
106352012-01-04 Joel Brobecker <brobecker@adacore.com>
10636
10637 * README (Copyright and License Notices): New section.
10638
888fe1e1
TT
106392012-01-03 Tom Tromey <tromey@redhat.com>
10640
10641 PR python/12533:
10642 * python/py-value.c (valpy_dereference, valpy_get_address
10643 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10644 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10645 (valpy_absolute, valpy_richcompare): Free intermediate values.
10646
6e681866
JB
106472011-01-03 Joel Brobecker <brobecker@adacore.com>
10648
10649 * ada-lang.c: Reformat the copyright notice.
10650
0cd09acb
JK
106512012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10652
10653 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10654 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10655 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10656 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10657 Revert this part of:
10658 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10659 Build gdb directly from *.o files not using libgdb.a.
10660 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10661
12c3e59c
JB
106622012-01-02 Joel Brobecker <brobecker@adacore.com>
10663
10664 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10665 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10666 Reformat the copyright header.
10667
11bf1490
JK
106682012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10669
10670 Revert this part of:
10671 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10672 Remove the gdbtui binary.
10673 * gdb.c (main): Remove args.interpreter_p initialization.
10674 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10675 * main.h (struct captured_main_args): Remove interpreter_p.
10676
1fef196f
JB
106772012-01-02 Joel Brobecker <brobecker@adacore.com>
10678
10679 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10680
67827812
JB
106812012-01-02 Joel Brobecker <brobecker@adacore.com>
10682
10683 * top.c (print_gdb_version): Update copyright year.
10684
a4d0b831
YQ
106852012-01-02 Yao Qi <yao@codesourcery.com>
10686
10687 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10688
b5914469
JK
106892012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10690 Joel Brobecker <brobecker@adacore.com>
10691
10692 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10693 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10694 3 times.
10695 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10696 fall through into AT_ENTRY_POINT.
10697 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10698 DUMMY_ADDR with it.
10699 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10700 PPC_INSN_SIZE skip to 3 times.
10701
8da828f7
JK
107022012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10703
10704 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10705 the return value.
10706 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10707
8574e74b
JK
107082012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10709
10710 Build gdb directly from *.o files not using libgdb.a.
10711 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10712 (COMMON_OBS): Remove solib-target.o.
10713 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10714 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10715 (LIBGDB_OBS, libgdb.a): Move it above.
10716 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10717 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10718 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10719 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10720 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10721 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10722 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10723 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10724 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10725 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10726 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10727 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10728 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10729 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10730 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10731 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10732 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10733 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10734 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10735 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10736 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10737 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10738 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10739 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10740 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10741 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10742 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10743
217bff3e
JK
107442012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 Remove the gdbtui binary.
10747 * .gitignore (/gdbtui): Remove.
10748 * Makefile.in (TUI): Remove.
10749 (SUBDIR_TUI_OBS): Remove tui-main.o.
10750 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10751 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10752 (tui-main.o): Remove.
10753 (all_object_files): Remove tui-main.o.
10754 * NEWS: New note for the gdbtui removal.
10755 * configure: Rebuilt.
10756 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10757 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10758 CONFIG_UNINSTALL respectively.
10759 * gdb.c (main): Remove args.interpreter_p initialization.
10760 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10761 * main.h (struct captured_main_args): Remove interpreter_p.
10762 * tui/tui-main.c: Remove.
10763
9cdd5dbd
DE
107642012-01-01 Doug Evans <dje@google.com>
10765
bb5ed363
DE
10766 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10767 (dwarf2_physname, read_import_statement): Ditto.
10768 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10769 (process_structure_scope read_subroutine_type): Ditto.
10770 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10771 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10772 (dwarf2_fetch_die_location_block): Ditto.
10773 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10774
a0f42c21
DE
10775 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10776 All callers updated.
10777 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10778 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10779 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10780
2dc860c0
DE
10781 * dwarf2read.c (load_cu): Move assert to more useful location.
10782
68dc6402
DE
10783 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10784 All callers updated.
10785
9cdd5dbd
DE
10786 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10787 (dwarf2_elf_names): Minor reformat.
10788 (dwarf2_per_cu_data): Tweak comment.
10789 (dwarf2_read_section): Fix comment.
10790 (create_all_comp_units): Fix comment.
10791 (load_full_comp_unit): Fix comment.
10792 (process_full_comp_unit): Fix comment.
10793 (read_signatured_type): Fix comment.
10794
0c10e53e 10795For older changes see ChangeLog-2011.
c906108c
SS
10796\f
10797Local Variables:
10798mode: change-log
10799left-margin: 8
10800fill-column: 74
10801version-control: never
57da7796 10802coding: utf-8
c906108c 10803End:
This page took 1.904348 seconds and 4 git commands to generate.