Make procfs.c:proc_get_LDT_entry static
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
337c776f
JB
12012-09-27 Joel Brobecker <brobecker@adacore.com>
2
3 * procfs.c (proc_get_LDT_entry): Make static.
4
1a04d88f
JB
52012-09-27 Joel Brobecker <brobecker@adacore.com>
6
7 * procfs.c (proc_find_memory_regions): Fix declaration.
8
bad43aa5
SP
92012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
10
11 * amd64-tdep.c (amd64_return_value): Revert previous change
12 that used TYPE_LENGTH directly.
13 * bfin-tdep.c (bfin_extract_return_value): Likewise.
14 (bfin_store_return_value): Likewise.
15 * cris-tdep.c (cris_store_return_value): Likewise.
16 (cris_extract_return_value): Likewise.
17 * h8300-tdep.c (h8300_extract_return_value): Likewise.
18 * hppa-tdep.c (hppa64_return_value): Likewise.
19 * lm32-tdep.c (lm32_store_return_value): Likewise.
20 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
21 * spu-tdep.c (spu_value_from_register): Likewise.
22 * vax-tdep.c (vax_return_value): Likewise.
23
63375b74
SP
242012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
25
26 * gdbtypes.c (lookup_array_range_type): Expand parameters
27 LOW_BOUND and HIGH_BOUND to LONGEST.
28 (lookup_string_range_type): Likewise.
29 * gdbtypes.h (lookup_array_range_type): Likewise.
30 (lookup_string_range_type): Likewise.
31 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
32 Expand HIGHBOUND to ssize_t.
33 (value_string): Likewise.
34 * value.h (value_cstring): Expand parameter LEN to ssize_t.
35 (value_string): Likewise.
36
19ca11c5
YQ
372012-09-27 Yao Qi <yao@codesourcery.com>
38
39 PR breakpoints/13898
40 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
41 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
42 per breakpoint type.
43
92107356
PM
442012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
45
46 * procfs.c: Add gdb_bfd header.
47 * rs6000-nat.c: Likewise.
48 * solib-pa64.c: Likewise.
49 * spu-linux-nat.c: Likewise.
50 * windows-nat.c: Likewise.
51
9742094a
TT
522012-09-26 Tom Tromey <tromey@redhat.com>
53
54 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
55
0971de02
TT
562012-09-26 Tom Tromey <tromey@redhat.com>
57
58 * dwarf2read.c (mark_common_block_symbol_computed): New function.
59 (read_common_block): Handle child DIEs with
60 DW_AT_data_member_location.
61 (new_symbol_full): Add special case for common blocks.
62
4357ac6c
TT
632012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
64 Tom Tromey <tromey@redhat.com>
65
66 * dwarf2read.c (read_common_block): Rewrite.
67 (new_symbol_full): Handle DW_TAG_common_block.
68 * f-lang.c (head_common_list, find_common_for_function):
69 Remove.
70 * f-lang.h (struct common_entry, struct saved_f77_common,
71 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
72 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
73 BLANK_COMMON_NAME_LOCAL): Remove.
74 (struct common_block): New.
75 * f-valprint.c (list_all_visible_commons): Remove.
76 (info_common_command_for_block): New function.
77 (info_common_command): Use it.
78 * stack.c (iterate_over_block_locals): Special case for
79 COMMON_BLOCK_DOMAIN.
80 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
81 constant.
82 (struct general_symbol_info) <value.common_block>: New field.
83 (SYMBOL_VALUE_COMMON_BLOCK): New define.
84
965f07a8
TT
852012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
86 Tom Tromey <tromey@redhat.com>
87
88 * f-lang.c (allocate_saved_bf_node,
89 allocate_saved_function_node, allocate_saved_f77_common_node,
90 allocate_common_entry_node, tail_common_list, current_common,
91 saved_bf_list, saved_bf_list_end, current_head_bf_list,
92 tmp_bf_ptr, add_common_block, add_common_entry,
93 find_first_common_named, patch_common_entries,
94 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
95 global_remote_debug, get_bf_for_fcn, saved_function_list,
96 saved_function_list_end, clear_function_list, struct saved_fcn,
97 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
98 SAVED_BF, SAVED_BF_PTR): Remove.
99 * f-lang.h (tail_common_list, current_common,
100 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
101 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
102 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
103 real_main_c_value): Remove.
104 * f-valprint.c (there_is_a_visible_common_named): Remove.
105
6f380991
AB
1062012-09-26 Andrew Burgess <aburgess@broadcom.com>
107
108 * breakpoint.c (update_global_location_list): Ignore previous
109 duplicate status of a breakpoint when starting a new scan for
110 duplicate breakpoints.
111
9ead7ae4 1122012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 113 PR breakpoints/14419
2536b51c
YQ
114 * arm-tdep.c (arm_skip_prologue): Extending producer check to
115 support LLVM compiler.
9ead7ae4 116
8f8a23a2
SP
1172012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
118
119 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
120 * bfin-tdep.c (bfin_extract_return_value): Likewise.
121 (bfin_store_return_value): Likewise.
122 * cris-tdep.c (cris_store_return_value): Likewise.
123 (cris_extract_return_value): Likewise.
124 * h8300-tdep.c (h8300_extract_return_value): Likewise.
125 * hppa-tdep.c (hppa64_return_value): Likewise.
126 * lm32-tdep.c (lm32_store_return_value): Likewise.
127 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
128 * spu-tdep.c (spu_value_from_register): Likewise.
129 * vax-tdep.c (vax_return_value): Likewise.
130
d7019589
SP
1312012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
132
133 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
134 parameter LEN to ssize_t.
135
744a8059
SP
1362012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
137
138 * ada-valprint.c (ada_val_print_1): Eliminate single-use
139 variable LEN.
140 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
141 directly.
142 (alpha_store_return_value): Likewise.
143 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
144 (amd64_push_arguments): Likewise.
145 * ax-gdb.c (gen_trace_static_fields): Likewise.
146 (gen_traced_pop): Likewise.
147 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
148 * breakpoint.c (update_watchpoint): Likewise.
149 * findcmd.c (parse_find_args): Use local variable for type
150 instead of length.
151 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
152 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
153 (h8300_store_return_value): Likewise.
154 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
155 Use i386_darwin_arg_type_alignment directly.
156 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
157 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
158 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
159 (m68hc11_extract_return_value): Likewise.
160 * mep-tdep.c (mep_push_dummy_call): Likewise.
161 * printcmd.c (float_type_from_length): Likewise.
162 * s390-tdep.c (s390_value_from_register): Likewise.
163 * stack.c (read_frame_arg): Likewise.
164 * tracepoint.c (encode_actions_1): Likewise.
165 * valops.c (value_fetch_lazy): Use local variable for type
166 instead of length. Use TYPE_LENGTH directly.
167 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
168
a4b411d6
JB
1692012-09-25 Joel Brobecker <brobecker@adacore.com>
170
171 * symtab.c (skip_prologue_sal): Fix typo in comment.
172
11dba07a
JB
1732012-09-25 Joel Brobecker <brobecker@adacore.com>
174
175 * linespec.c (create_sals_line_offset): Fix typo in comment.
176
318102b9
SP
1772012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
178
179 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
180 use plongest to print the array size.
181
b4aa388a
SP
1822012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
183
184 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
185 * p-valprint.c (pascal_type_print_base): Likewise.
186
84cebc4a
YQ
1872012-09-22 Yao Qi <yao@codesourcery.com>
188
189 * remote.c (remote_get_trace_status): Remove setting default
190 values of fields of 'ts'.
191
04e7407c
JK
1922012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
193
194 Fix internal error on canonicalization of clang types.
195 * cp-name-parser.y (operator): New comment at make_operator call for
196 new, delete, new[] and delete[].
197 (exp): Use "sizeof ". Add new comment at make_operator call.
198
9bf4bce9
JK
1992012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
200
201 Fix disassemble without parameters in tailcall frame.
202 * cli/cli-cmds.c (disassemble_current_function): Use
203 get_frame_address_in_block.
204
1c5b7826
TT
2052012-09-21 Tom Tromey <tromey@redhat.com>
206
207 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
208 TYPE_CODE_UNION>: Unify, removing a goto.
209
62a49610
TT
2102012-09-21 Tom Tromey <tromey@redhat.com>
211
212 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
213
2603f7ee
AB
2142012-09-21 Andrew Burgess <aburgess@broadcom.com>
215
216 * findvar.c (read_frame_register_value): Mark the result value as
217 optimized out if any of the input registers have been optimized out.
218
810849a3
AS
2192012-09-21 Andreas Schwab <schwab@linux-m68k.org>
220
221 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
222
0953dec1
SP
2232012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
224
225 * eval.c (evaluate_subexp_standard): Eliminate single-use
226 variable LOWER.
227
82a90ccf
YQ
2282012-09-21 Yao Qi <yao@codesourcery.com>
229
230 * mi/mi-interp.c: Declare mi_record_changed.
231 (mi_interpreter_init): Call observer_attach_record_changed.
232 (mi_record_changed): New.
233 * record.c (record_open): Call observer_notify_record_changed.
234 (cmd_record_stop): Call observer_notify_record_changed.
235 * NEWS: Mention it.
236
d7de8e3c
TT
2372012-09-20 Tom Tromey <tromey@redhat.com>
238
239 * NEWS: Update.
240 * python/python.c (finalize_python): New function.
241 (_initialize_python): Make a final cleanup.
242
43c7c83d
DE
2432012-09-19 Doug Evans <dje@google.com>
244
245 * buildsym.h (param_symbols): Delete, unused.
246 (context_stack): Delete member "params", unused.
247 * buildsym.c (push_context): Update.
248 * dwarf2read.c (read_func_scope): Update.
249
aa9259cc
TS
2502012-09-19 Thomas Schwinge <thomas@codesourcery.com>
251
a6521d9a
TS
252 * sh-tdep.c (sh_register_convert_to_virtual)
253 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
254 all callers. Just do a memcpy if not the little-endian case.
255
f92589cb
TS
256 * h8300-tdep.c (h8300_gdbarch_init): Invoke
257 set_gdbarch_double_format and set_gdbarch_long_double_format.
258 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
259 set_gdbarch_double_format.
260 * sh-tdep.c (sh_gdbarch_init): Likewise.
261
aa9259cc
TS
262 * NEWS: Document the removal of SH's 'regs' command.
263 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
264 command.
265
c1d780c2
SDJ
2662012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
267
268 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
269 `jump'.
270
4ae24af0
JB
2712012-09-18 Joel Brobecker <brobecker@adacore.com>
272
273 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
274 language when iterating over symbols.
275
bb25a15c
YQ
2762012-09-18 Yao Qi <yao@codesourcery.com>
277
278 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
279 (mi_interpreter_init): Call observer_attach_tsv_created and
280 observer_attach_tsv_deleted.
281 (mi_tsv_created, mi_tsv_deleted): New.
282 * tracepoint.c (delete_trace_state_variable): Call
283 observer_notify_tsv_deleted.
284 (trace_variable_command): Call observer_notify_tsv_created.
285 (delete_trace_variable_command): Call
286 observer_notify_tsv_deleted.
287 (create_tsv_from_upload): Call observer_notify_tsv_created.
288 * NEWS: Mention it.
289
201b4506
YQ
2902012-09-18 Yao Qi <yao@codesourcery.com>
291
292 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
293 if traceframe changed.
294 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
295 "trace-find".
296 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
297 (mi_interpreter_init): Hook mi_traceframe_changed to observer
298 'traceframe_changed'.
299 (mi_traceframe_changed): New.
300 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
301 New field.
302 * NEWS: Mention the new MI notification.
303
eaeb12db
MW
3042012-09-17 Mike Wrighton <wrighton@codesourcery.com>
305
306 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
307
6e3c039e
JK
3082012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
309
310 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
311 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
312 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
313 Extend code also for PaX support. Convert all gdb_assert to warning
314 calls.
315
9a950c7c
JK
3162012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
317
318 Implement auto-load user conveniences suggested by Doug Evans.
319 * auto-load.c: Include top.h.
320 (file_is_auto_load_safe): New variable advice_printed. Print advice.
321 (_initialize_auto_load): New variable scripts_directory_help. Mention
322 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
323 scripts-directory. Document in online help one can use also files for
324 set auto-load safe-path.
325 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
326 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
327
deec9a9d
SP
3282012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
329
330 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
331 of LEN.
332
354ecfd5
SP
3332012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
334
335 * m2-valprint.c (m2_print_array_contents): Eliminate variable
336 ELTLEN and use TYPE_LENGTH directly.
337 (m2_val_print): Likewise.
338 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
339 variable LEN and use TYPE_LENGTH directly.
340 (m68k_svr4_store_return_value): Likewise.
341 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
342 ARGLEN and use TYPE_LENGTH directly.
343 (mips_o64_push_dummy_call): Likewise.
344 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
345 variable LENGTH and use TYPE_LENGTH directly.
346 (s390_function_arg_float): Likewise.
347 (s390_function_arg_integer): Likewise.
348 (s390_push_dummy_call): Likewise.
349 (s390_return_value_convention): Likewise.
350 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
351 TYPE_LENGTH directly.
352
6fc1c773
YQ
3532012-09-17 Yao Qi <yao@codesourcery.com>
354
355 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
356 Update comment to add_setshow_integer_cmd.
357 * cli/cli-setshow.c (do_set_command): Handle case
358 'var_zuinteger_unlimited'.
359 (do_show_command): Likewise.
360 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
361 for command 'remotetimeout'.
362 * command.h (enum var_types): New zuinteger_unlimited. Update comment
363 to var_integer.
364 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
365 for command 'set listsize'.
366
6acef6cd
SP
3672012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
368
369 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
370 variable LEN.
371
1ab3b62c
JK
3722012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
373
374 PR 14119
375 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
376 (frame_pop): Drop also TAILCALL_FRAME frames.
377 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
378
acf9414f
JK
3792012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
380 Pedro Alves <palves@redhat.com>
381
382 PR 14548
383 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
384 function start if we are already at function start. Both for
385 reverse-next and for reverse-step into function without line number
386 info.
387
193facb3
JK
3882012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
389
390 Code cleanup - rename 'inline' depth to 'artificial' depth.
391 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
392 frame_id_artificial_p, extend the comment.
393 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
394 * frame.c (fprint_frame_id): Rename at a user, change debug output
395 text to "artificial=".
396 (skip_inlined_frames): Rename to ...
397 (skip_artificial_frames): ... here. Extend the comment.
398 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
399 (frame_id_inlined_p): Rename to ...
400 (frame_id_artificial_p): ... here. Rename at a user.
401 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
402 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
403 at a user.
404 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
405 Extend the comment.
406 (frame_id_inlined_p): Rename to ...
407 (frame_id_artificial_p): ... here.
408 * inline-frame.c (inline_frame_this_id): Rename at a user.
409
42056501
AB
4102012-09-14 Andrew Burgess <aburgess@broadcom.com>
411
412 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
413 vector variables using vector_size syntax rather than array
414 syntax.
415
84c47588
SP
4162012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
417
418 * valarith.c (value_concat): Replace unsafe ALLOCA with
419 XMALLOC/XFREE.
420
f4045bcb
PA
4212012-09-14 Pedro Alves <palves@redhat.com>
422
423 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
424
63b46266
YPK
4252012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
426
427 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
428 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
429 data-directory as appropriate.
430
ddd7a8e7
SP
4312012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
432
433 * printcmd.c (ui_printf): Eliminate single-use variable
434 PARAM_LEN.
435
d649a38e
YQ
4362012-09-14 Yao Qi <yao@codesourcery.com>
437 Pedro Alves <palves@redhat.com>
438
439 * valops.c (value_assign): Move observer_notify_target_changed
440 below to replace reinit_frame_cache.
441
b9516fa1
YPK
4422012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
443
444 Refactor Python "gdb" module into a proper Python package, by
445 introducing a new "_gdb" module for code implemented in C, and
446 using reload/__import__ instead of exec.
447 * python/lib/gdb/__init__.py: Import * from _gdb.
448 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
449 prompt_hook, sys.argv): Moved from finish_python_initialization.
450 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
451 (packages, auto_load_packages): New list and function replacing
452 module_dict and auto-loading code, using __file__ instead of
453 gdb.PYTHONDIR and reload/__import__ instead of exec.
454 (GdbSetPythonDirectory): Replacing function of the same name
455 from finish_python_initialization, using reload/__import__ instead
456 of exec, as well as call auto_load_packages.
457 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
458 gdb_python_module and not gdb_module.
459 * python/python-internal.h (gdb_python_module): Declare.
460 * python/python.c (gdb_python_module): New global.
461 (before_prompt_hook): Check gdb_python_module and not gdb_module.
462 (_initialize_python): Rename gdb module to _gdb.
463 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
464 (finish_python_initialization): Move Python code to
465 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
466 __main__.
467
aa0fbdd8
PA
4682012-09-13 Pedro Alves <palves@redhat.com>
469
470 * Makefile.in (COMMON_OBS): Add registry.o.
471 * registry.c: New file.
472 * registry.h (struct registry_container): Declare.
473 (registry_data_callback): New typedef.
474 (struct registry_data, struct registry_data_registration, struct
475 registry_data_registry): New type.
476 (register_data_with_cleanup, registry_alloc_data)
477 (registry_callback_adaptor, registry_clear_data)
478 (registry_container_free_data, registry_set_data, registry_data):
479 Declare.
480 (DEFINE_REGISTRY): Refactor structures and functions as shims over
481 the new common structures and functions.
482 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
483 callback typedefs.
484
42b5c53d
MW
4852012-09-12 Mike Wrighton <wrighton@codesourcery.com>
486
487 * remote.c (remote_insert_hw_breakpoint): Throw exception if
488 there is an error inserting hardware breakpoints and use the
489 error message from the target.
490
491 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
492 Catch this exception and print the error message contained within. Do not
493 print the default hardware error breakpoint message in this case.
494
a1b64ce1
DE
4952012-09-12 Doug Evans <dje@google.com>
496
497 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
498 cu == NULL.
499
83a788b8
DE
5002012-09-11 Doug Evans <dje@google.com>
501
502 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
503 .gdb_index symbol attributes if there are none.
504
d9eaeb59
JB
5052012-09-11 Joel Brobecker <brobecker@adacore.com>
506
507 * symtab.h (struct minimal_symbol) [has_size]: New field.
508 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
509 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
510 * printcmd.c (build_address_symbolic): Only filter out zero-sized
511 minimal symbols if the symbol's size is actually known.
512 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
513 of msymbol's size field. Add comment.
514 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
515 SET_MSYMBOL_SIZE to set the minimal symbol size.
516
a83e9154
JB
5172012-09-11 Joel Brobecker <brobecker@adacore.com>
518
519 * minsyms.c (install_minimal_symbols): Use memset to fill entire
520 minimal_symbol struct object, rather than setting some of its
521 fields one by one.
522
350b1b26
AB
5232012-09-11 Andrew Burgess <aburgess@broadcom.com>
524
525 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
526 passed_a_ptr flag when displaying typedef types.
527
2fa15f23
JB
5282012-09-10 Joel Brobecker <brobecker@adacore.com>
529
530 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
531 the optimized_out flag is preserved.
532
5152ff90
AG
5332012-09-10 Anthony Green <green@moxielogic.com>
534
535 * moxie-tdep.c (moxie_analyze_prologue): Update for function
536 prologue changes in GCC.
537
5b4f6e25
KS
5382012-09-10 Keith Seitz <keiths@redhat.com>
539
540 PR gdb/13483
541 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
542 (BOOL_CONVERSION_BADNESS): ... this.
543 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
544 (rank_one_type): Allow all boolean conversions
545 permitted by the standard.
546
f1070426
TT
5472012-09-06 Tom Tromey <tromey@redhat.com>
548
549 * python/py-newobjfileevent.c (create_new_objfile_event_object):
550 Don't decref py_objfile.
551
a8db4212
YPK
5522012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
553
554 Do not enable -lmcheck by default when Python is enabled with
555 threading support.
556 * configure.ac: (python_has_threads) New variable, by testing
557 if WITH_THREAD is defined in Python.h.
558 Move --enable-lmcheck after --with-python.
559 Do not enable -lmcheck by default if python_has_threads=yes.
560 Warn if --enable-lmcheck and python_has_threads=yes.
561 * configure: Regenerate.
562
648beb2b
YQ
5632012-08-31 Yao Qi <yao@codesourcery.com>
564
565 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
566 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
567 Update some commands.
568 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
569 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
570 to 1.
571
ef07a9f7
YQ
5722012-08-31 Yao Qi <yao@codesourcery.com>
573
574 * mi/mi-cmds.c (mi_cmds): Add 'static'.
575
fda395cf
YPK
5762012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
577
578 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
579
8efd8e78
DE
5802012-08-29 Doug Evans <dje@google.com>
581
582 * main.c (print_gdb_help): Remove reference to
583 --use-deprecated-index-sections.
584
883b9c6c
YQ
5852012-08-28 Yao Qi <yao@codesourcery.com>
586
587 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
588 (init_cmds): Call add_setshow_uinteger_cmd for command
589 'max-user-call-depth'.
590 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
591 declaration of 'max_user_call_depth'.
592 * frame.c (backtrace_limit): Add 'unsigned'.
593 (_initialize_frame): Call add_setshow_uinteger_cmd for command
594 'limit'.
595 * remote.c (remoteaddresssize): Add 'unsigned'.
596 (remote_address_masked): Change local var 'address_size' to
597 'unsigned'.
598 (_initialize_remote): Call add_setshow_uinteger_cmd for
599 'remoteaddresssize'.
600 * top.c (history_size): Add 'unsigned'.
601 (show_commands): Change local variables to 'unsigned'.
602 (set_history_size_command): Don't check history_size is negative.
603 Adjust the condition to call unstifle_history and set history_size
604 to UNIT_MAX.
605
1292279a
PA
6062012-08-28 Pedro Alves <palves@redhat.com>
607
608 PR gdb/14428
609
610 * infcmd.c (default_print_one_register_info): New, factored out
611 from default_print_registers_info.
612 (default_print_registers_info): Use it. Mark value unavailable if
613 necessary.
614 (registers_info): Print user registers with
615 default_print_one_register_info.
616
f629cd75
L
6172010-08-27 H.J. Lu <hongjiu.lu@intel.com>
618
619 PR tui/14486
620 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
621 is not NULL before referencing it.
622
1c8cdcb1
JK
6232012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
624
625 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
626 variable pc. Call find_pc_line instead of find_pc_overlay, restore
627 original PC for it.
628
e9687799
JK
6292012-08-27 Eli Zaretskii <eliz@gnu.org>
630 Jan Kratochvil <jan.kratochvil@redhat.com>
631
632 * auto-load.c (auto_load_objfile_script): Rename to ...
633 (auto_load_objfile_script_1): ... here, change variable realname to
634 parameter realname, document it, add return value, add variable retval.
635 (auto_load_objfile_script): New function.
636
7afa1642
JK
6372012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
638
639 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
640 followed by a whitespace.
641
dc7650b8
JK
6422012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
643
28e66c70 644 PR gdb/14494.
dc7650b8
JK
645 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
646 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
647 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
648 here.
649
1591a1e8
PA
6502012-08-27 Wei-cheng Wang <cole945@gmail.com>
651
652 * memattr.c (create_mem_region): Fix memory region overlapping
653 checking.
654
ecfb0d68
SP
6552012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
656
657 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
658 with xmalloc/cleanup.
659 * mt-tdep.c (mt_push_dummy_call): Likewise.
660 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
661 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
662
8c56c1b9
YQ
6632012-08-24 Yao Qi <yao@codesourcery.com>
664
665 * jv-exp.y (push_expression_name): Add "." at the end of error
666 message.
667
e3480f4a
YPK
6682012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
669
670 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
671 * python/python.c (_initialize_python): Update documentation.
672
dfbd5e7b
PA
6732012-08-23 Pedro Alves <palves@redhat.com>
674
675 * infrun.c (_initialize_infrun) <handle command help text>:
676 Mention that multiple signals are supported.
677
2edda2ff
PA
6782012-08-23 Pedro Alves <palves@redhat.com>
679
680 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
681 string.
682
8d735b87
YQ
6832012-08-23 Yao Qi <yao@codesourcery.com>
684
685 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
686 (tfind_1): Don't call registers_changed, set_traceframe_num,
687 and clear_traceframe_info.
688 Call set_current_traceframe.
689 (set_current_traceframe): call set_traceframe_num.
690
c5d9b215
SDJ
6912012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
692
693 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
694 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
695
037bbc8e
YPK
6962012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
697
698 Enable readline in Python in a GDB-specific way and block the
699 standard Python readline module to prevent conflicts with GDB.
700 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
701 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
702 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
703 * python/py-gdb-readline.c: New file.
704 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
705 prototype.
706 * python/python.c (_initialize_python): Call
707 gdbpy_initialize_gdb_readline.
708
406b1477
KS
7092012-08-22 Keith Seitz <keiths@redhat.com>
710
711 * defs.h: Include build-gnulib/config.h
712
6ca1b147
JM
7132012-08-22 Joseph Myers <joseph@codesourcery.com>
714
715 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
716 and blx pc.
717
8315665e
YPK
7182012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
719
720 Add a new "python-interactive" command that starts a standard
721 Python interactive prompt with "pi" as alias, and add "py" as
722 an alias to "python".
723 * NEWS: Mention the new commands.
8315665e
YPK
724 * python/python.c (eval_python_command): New function.
725 (python_interactive_command): For "python-interactive" with
726 arguments, call eval_python_command. For "python-interactive"
727 without arguments, call PyRun_InteractiveLoop.
728 (_initialize_python): Add "python-interactive" command with
729 "pi" as alias, and add "py" as an alias to "python".
730
522002f9
TT
7312012-08-22 Tom Tromey <tromey@redhat.com>
732
733 * defs.h (quit_flag): Don't declare.
734 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
735 (QUIT): Use new functions.
736 * event-top.c (command_handler): Use clear_quit_flag.
737 (handle_sigint): Use set_quit_flag.
738 (async_request_quit): Use check_quit_flag. Don't check
739 immediate_quit.
740 * exceptions.c (throw_exception): Use clear_quit_flag.
741 * main.c (captured_main): Use clear_quit_flag.
742 * python/python.c (clear_quit_flag, set_quit_flag)
743 (check_quit_flag): New functions.
744 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
745 clear_quit_flag.
746 * remote.c (remote_wait_as): Use check_quit_flag,
747 clear_quit_flag.
748 (remote_start_remote): Call QUIT.
749 * symfile.c (load_progress): Use check_quit_flag.
750 * top.c (command_loop): Use clear_quit_flag.
751 (command_line_input): Call QUIT.
752 * utils.c (quit_flag): Conditionally define.
753 (clear_quit_flag, check_quit_flag, set_quit_flag): New
754 functions.
755 (prompt_for_continue): Call QUIT. Use quit, not
756 async_request_quit.
757 * remote-mips.c (mips_expect_timeout): Call QUIT.
758 * monitor.c (monitor_expect): Call QUIT.
759
b583003e
TT
7602012-08-22 Tom Tromey <tromey@redhat.com>
761
762 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
763 (async_init_signals): Update.
764 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
765 (SIGWINCH_HANDLER_BODY): Remove.
766
e1507e95
TT
7672012-08-22 Tom Tromey <tromey@redhat.com>
768
769 * jit.c (jit_object_close_impl): Don't malloc the objfile
770 name.
771 * objfiles.c (allocate_objfile): Don't malloc the objfile
772 name.
773 (free_objfile): Don't free the objfile name.
774 * objfiles.h (struct objfile) <name>: Update comment.
775 * symfile.c (reread_symbols): Fix reference counting. Don't
776 malloc objfile name.
777
1c00ec6b
TT
7782012-08-22 Tom Tromey <tromey@redhat.com>
779
780 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
781 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
782 (symfile_bfd_open): Likewise.
783 (generic_load): Likewise.
784 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
785 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
786 gdb_bfd_open.
787 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
788 Use gdb_bfd_open.
789 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
790 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
791 (pmon_load_fast): Likewise.
792 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
793 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
794 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
795 (macho_check_dsym): Likewise.
796 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
797 (m32r_upload_command): Likewise.
798 * gdb_bfd.h (gdb_bfd_cache): Declare.
799 * gdb_bfd.c (struct gdb_bfd_data): New.
800 (gdb_bfd_cache): New global.
801 (struct gdb_bfd_cache_search): New.
802 (hash_bfd): New function.
803 (eq_bfd): Likewise.
804 (gdb_bfd_open): Likewise.
805 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
806 (gdb_bfd_unref): Remove closed BFD from cache. Update for
807 gdb_bfd_data.
808 * exec.c (exec_file_attach): Use gdb_bfd_open.
809 * dsrec.c (load_srec): Use gdb_bfd_open.
810
6532ff36
TT
8112012-08-22 Tom Tromey <tromey@redhat.com>
812
813 * dwarf2read.c (macro_start_file): Update.
814 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
815 (free_objfile_per_bfd_storage): Destroy macro_cache.
816 (allocate_objfile, free_objfile): Update.
817 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
818 New field.
819 (struct objfile) <macro_cache>: Remove.
820 * symfile.c (reread_symbols): Update.
821 * symmisc.c (print_symbol_bcache_statistics): Update.
822 (print_objfile_statistics): Update.
823
706e3705
TT
8242012-08-22 Tom Tromey <tromey@redhat.com>
825
826 * elfread.c (elf_symtab_read): Update.
827 * objfiles.c (objfiles_bfd_data): New global.
828 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
829 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
830 (allocate_objfile, free_objfile): Update.
831 (_initialize_objfiles): Initialize objfiles_bfd_data.
832 * objfiles.h (struct objfile_per_bfd_storage): New.
833 (struct objfile) <per_bfd>: New field.
834 <filename_cache>: Remove.
835 (set_objfile_per_bfd): Declare.
836 * symfile.c (reread_symbols): Update. Call
837 set_objfile_per_bfd.
838 (allocate_symtab): Update.
839 * symmisc.c (print_symbol_bcache_statistics): Update.
840 (print_objfile_statistics): Print the size of the BFD obstack.
841
e992eda4
TT
8422012-08-22 Tom Tromey <tromey@redhat.com>
843
844 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
845 * gdb_bfd.c: Use DEFINE_REGISTRY.
846 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
847 (gdb_bfd_ref): Call bfd_alloc_data.
848 (gdb_bfd_unref): Call bfd_free_data.
849
6b81941e
TT
8502012-08-22 Tom Tromey <tromey@redhat.com>
851
852 * registry.h (struct registry_fields): New.
853 (REGISTRY_FIELDS): Redefine.
854 (REGISTRY_ACCESS_FIELD): New macro.
855 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
856 functions.
857
8e260fc0
TT
8582012-08-22 Tom Tromey <tromey@redhat.com>
859
860 * auto-load.c (_initialize_auto_load): Update.
861 * solib-svr4.c (_initialize_svr4_solib): Update
862 * solib-dsbt.c (_initialize_dsbt_solib): Update.
863 * solib-darwin.c (_initialize_darwin_solib): Update.
864 * registry.h: New file.
865 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
866 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
867 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
868 (register_program_space_data_with_cleanup)
869 (register_program_space_data, program_space_alloc_data)
870 (clear_program_space_data, set_program_space_data)
871 (program_space_data): Don't declare.
872 * progspace.c: Use DEFINE_REGISTRY.
873 (struct program_space_data, struct
874 program_space_data_registration, struct
875 program_space_data_registry, program_space_data_registry)
876 (register_program_space_data_with_cleanup)
877 (register_program_space_data, program_space_alloc_data)
878 (program_space_free_data, clear_program_space_data)
879 (set_program_space_data, program_space_data): Remove.
880 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
881 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
882 (register_objfile_data_with_cleanup, register_objfile_data)
883 (clear_objfile_data, set_objfile_data, objfile_data): Don't
884 declare.
885 * objfiles.c: Use DEFINE_REGISTRY.
886 (struct objfile_data, struct objfile_data_registration, struct
887 objfile_data_registry, objfile_data_registry)
888 (register_objfile_data_with_cleanup, register_objfile_data)
889 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
890 (set_objfile_data, objfile_data): Remove.
891 (_initialize_objfiles): Update.
892 * jit.c (_initialize_jit): Update.
893 * inflow.c (_initialize_inflow): Update.
894 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
895 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
896 (register_inferior_data_with_cleanup, register_inferior_data)
897 (clear_inferior_data, set_inferior_data, inferior_data): Don't
898 declare.
899 * inferior.c: Use DEFINE_REGISTRY.
900 (struct inferior_data, struct inferior_data_registration, struct
901 inferior_data_registry, inferior_data_registry)
902 (register_inferior_data_with_cleanup, register_inferior_data)
903 (inferior_alloc_data, inferior_free_data clear_inferior_data)
904 (set_inferior_data, inferior_data): Remove.
905 * auxv.c (_initialize_auxv): Update.
906 * ada-lang.c (_initialize_ada_language): Update.
907 * breakpoint.c (_initialize_breakpoint): Update.
908 * i386-nat.c (i386_use_watchpoints): Update.
909
ed9eebaf
TT
9102012-08-22 Tom Tromey <tromey@redhat.com>
911
912 * exec.c (exec_close, exec_file_attach): Update.
913 (add_to_section_table): Initialize 'key' field.
914 (add_target_sections, remove_target_sections): Add 'key' argument.
915 * exec.h (add_target_sections, remove_target_sections): Add
916 'key' argument.
917 * solib.c (solib_map_sections, update_solib_list, clear_solib)
918 (reload_shared_libraries_1): Update.
919 * target.h (struct target_section) <key>: New field.
920
2f2e97fa
TT
9212012-08-22 Tom Tromey <tromey@redhat.com>
922
923 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
924
b3dbbd6f
PM
9252012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
926
927 * symfile.c (allocate_symtab): Use host_address_to_string
928 function instead of cast of pointer to long which is not
929 compatible with x86_64-w64-mingw32 build.
930
f94363d7
AP
9312012-08-19 Andrew Pinski <apinski@cavium.com>
932
933 * mips-tdep.c (is_octeon): New function.
934 (is_octeon_bbit_op): New function.
935 (mips32_next_pc): Handle Octeon's bbit instructions.
936 (mips32_instruction_has_delay_slot): Likewise.
937
78a59c2f
AP
9382012-08-19 Andrew Pinski <apinski@cavium.com>
939
940 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
941 before the function.
942
4f5bcb50
AP
9432012-08-19 Andrew Pinski <apinski@cavium.com>
944
945 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
946
e5afdbd7
KS
9472012-08-19 Keith Seitz <keiths@redhat.com>
948
949 PR c++/14365
950 * c-typeprint.c (c_type_print_varspec_prefix): Pass
951 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
952
13c9750e
EZ
9532012-08-18 Eli Zaretskii <eliz@gnu.org>
954
955 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
956 The typo broke "make TAGS".
957
db761810 9582012-08-17 Joel Brobecker <brobecker@adacore.com>
959
960 GDB 7.5 released.
961
a451cb65
KS
9622012-08-17 Keith Seitz <keiths@redhat.com>
963
964 PR c++/13356
965 * gdbtypes.c (strict_type_checking): New variable.
966 (show_strict_type_checking): New function.
967 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
968 if strict type checking is disabled.
969 (_initialize_gdbtypes): Add "check type" subcommand.
970 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
971
9722012-08-17 Keith Seitz <keiths@redhat.com>
973
974 * language.h (type_mode): Remove.
975 (type_check): Remove.
976 (struct language_defn): Remove la_type_check.
977 (STRICT_TYPE): Remove unused macro.
978 (type_error): Remove.
979 * language.c (set_type_range_case): Renamed to ...
980 (set_range_case): ... this. Update all callers.
981 Remove type_mode/type_check.
982 (type_mode): Remove.
983 (type_check): Remove.
984 (show_type_command): Remove.
985 (set_type_command): Remove.
986 (language_info): Remove type checking output.
987 (type_error): Remove unused function.
988 (range_error): Update comment.
989 (unknown_language_defn): Remove la_type_check.
990 (auto_language_defn): Likewise.
991 (local_language_defn): Likewise.
992 (_initialize_language): Remove "check type" subcommand.
993 * ada-lang.c (ada_language_defn): Remove la_type_check.
994 * c-lang.c (c_language_defn): Likewise.
995 (cplus_language_defn): Likewise.
996 (asm_language_defn): Likewise.
997 (minimal_language_defn): Likewise.
998 * d-lang.c (d_language_defn): Likewise.
999 * f-lang.c (f_language_defn): Likewise.
1000 * go-lang.c (go_language_defn): Likewise.
1001 * jv-lang.c (java_language_defn): Likewise.
1002 * m2-lang.c (m2_language_defn): Likewise.
1003 * objc-lang.c (objc_language_defn): Likewise.
1004 * opencl-lang.c (opencl_language_defn): Likewise.
1005 * p-lang.c (pascal_language_defn): Likewise.
1006
dbf6a605
MF
10072012-08-16 Mike Frysinger <vapier@gentoo.org>
1008
1009 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
1010
973e3cf7
JB
10112012-08-16 Joel Brobecker <brobecker@adacore.com>
1012
1013 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
1014 New function.
1015 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
1016 using the regache. Use ia64_hpux_get_register_from_save_state_t
1017 to access the bsp and bspstore registers if not.
1018
d80ee84f
JB
10192012-08-16 Joel Brobecker <brobecker@adacore.com>
1020
1021 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
1022 * breakpoint.c (detach_breakpoints): Change pid parameter into
1023 a ptid. Adjust code accordingly.
1024 * infrun.c (handle_inferior_event): Delete variable child_pid.
1025 Update call to detach_breakpoints to pass the child ptid for
1026 fork events.
1027 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
1028 assert that inferior_ptid's lwp is zero.
1029 (linux_handle_extended_wait): Update call to detach_breakpoints.
1030 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
1031 detach_breakpoints.
1032
2dcc6086
JB
10332012-08-16 Joel Brobecker <brobecker@adacore.com>
1034
1035 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
1036 parent, only call detach_breakpoints if tts.tts_event ==
1037 TTEVT_VFORK.
1038
0c92d8c1
JB
10392012-08-16 Joel Brobecker <brobecker@adacore.com>
1040
1041 * dwarf2-frame.c (dwarf2_frame_cache): Use
1042 get_frame_address_in_block instead of get_frame_pc as
1043 the bound for executing the frame's FDE.
1044
6b1755ce
YQ
10452012-08-16 Yao Qi <yao@codesourcery.com>
1046
1047 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
1048 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
1049 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
1050 (c_type_print_varspec_suffix): Likewise.
1051 * eval.c (evaluate_subexp_standard): Likewise.
1052 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
1053 (f_type_print_varspec_suffix): Likewise.
1054 * gdbtypes.c (is_scalar_type): Likewise.
1055 (recursive_dump_type): Likewise.
1056 * infcall.c (value_arg_coerce): Likewise.
1057 * m2-valprint.c (m2_val_print): Likewise.
1058 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
1059 (pascal_type_print_varspec_suffix): Likewise.
1060 (pascal_type_print_base): Likewise.
1061 * p-valprint.c (pascal_val_print): Likewise.
1062 (pascal_val_print): Likewise.
1063 * valops.c (value_slice): Likewise.
1064 * valprint.c (scalar_type_p): Likewise.
1065 * valarith.c (value_bitstring_subscript): Remove.
1066 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1067 Remove comment on TYPE_CODE_BITSTRING.
1068
1069 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1070 TYPE_CODE_BITSTRING.
1071
1072 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1073 slot 0.
1074
8acc4065
YQ
10752012-08-16 Yao Qi <yao@codesourcery.com>
1076
1077 * tracepoint.c (trace_find_none_command): Remove.
1078 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1079
8128fd8e
YQ
10802012-08-16 Yao Qi <yao@codesourcery.com>
1081
1082 * remote.c (handle_notification): Remove parameter 'length'.
1083 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1084
2873700e
KS
10852012-08-15 Keith Seitz <keiths@redhat.com>
1086
1087 * gdbtypes.c (opaque_type_resolution): Make static.
1088 Add missing comment.
1089 (overload_debug): Add missing comment.
1090 (show_opaque_type_resolution): Likewise.
1091 (show_overload_debug): Likewise.
1092 (print_bit_vector): Remove unnecessary forward declaration.
1093 (print_arg_types): Likewise.
1094 (dump_fn_fieldlists): Likewise.
1095 (print_cplus_stuff): Likewise.
1096
b82d08cd
TT
10972012-08-15 Tom Tromey <tromey@redhat.com>
1098
1099 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1100 (gdb_bfd_ref): Initialize new field.
1101 (gdb_bfd_unref): Unref the archive BFD.
1102 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1103 parent archive.
1104
db6573d6
TT
11052012-08-15 Tom Tromey <tromey@redhat.com>
1106
1107 PR python/14387:
1108 * python/py-bpevent.c (create_breakpoint_event_object): Update
1109 comment.
1110 * python/py-event.c (evpy_add_attribute): Update comment.
1111 * python/py-exitedevent.c (create_exited_event_object): Fix
1112 reference counting and error handling.
1113 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1114 Fix reference counting.
1115 * python/py-signalevent.c (create_signal_event_object): Fix
1116 reference counting and error handling.
1117 * python/py-stopevent.c (emit_stop_event): Fix reference
1118 counting.
1119 * python/py-threadevent.c (get_event_thread): Return a
1120 borrowed reference.
1121 * python/py-type.c (convert_field): Fix reference counting.
1122
a036ba48
TT
11232012-08-15 Tom Tromey <tromey@redhat.com>
1124
1125 * dwarf2read.c (dwarf_decode_macro_bytes)
1126 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1127 as hash key.
1128
486c7739
MF
11292012-08-14 Mike Frysinger <vapier@gentoo.org>
1130
1131 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1132 stepi, nexti, finish, next, step, jump, and continue commands.
1133 * infrun.c (_initialize_infrun): Update help text for the handle
1134 command.
1135
4cf93a03
DE
11362012-08-14 Doug Evans <dje@google.com>
1137
70b099cf
DE
1138 * gdbtypes.c (struct extra): Delete, unused.
1139
5212577a
DE
1140 * gdbtypes.c: Whitespace cleanup.
1141 (address_space_name_to_int): Remove "extern" from definition.
1142 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1143
4cf93a03
DE
1144 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1145 TYPE_POINTER_TYPE (type).
1146
3756ef7e
GB
11472012-08-14 Gary Benson <gbenson@redhat.com>
1148
1149 * solib-svr4.c (svr4_free_library_list): Use free_so.
1150
40d72643
MF
11512012-08-13 Mike Frysinger <vapier@gentoo.org>
1152
1153 * .gitignore: Add go-exp.c.
1154
f47f77df
DE
11552012-08-13 Doug Evans <dje@google.com>
1156
1157 * value.c (show_convenience): Tweak comment.
1158 (_initialize_values): Mention convenience functions in the help text
1159 for "show convenience".
1160
7507c54a
YQ
11612012-08-13 Yao Qi <yao@codesourcery.com>
1162
1163 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1164 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1165 TERNOP_SLICE_COUNT.
1166 * eval.c (evaluate_subexp_standard): Likewise.
1167 * expprint.c (print_subexp_standard): Likewise.
1168 (dump_subexp_body_standard): Likewise.
1169 * parse.c (operator_length_standard): Likewise.
1170
5cad9736
YQ
11712012-08-13 Yao Qi <yao@codesourcery.com>
1172
1173 * std-operator.def: Remove OP_BITSTRING.
1174 * breakpoint.c (watchpoint_exp_is_const): Update.
1175 * eval.c (evaluate_subexp_standard): Remove handling to
1176 OP_BITSTRING.
1177 * expprint.c (print_subexp_standard): Likewise.
1178 (dump_subexp_body_standard): Likewise.
1179 * parse.c (operator_length_standard): Likewise.
1180 * valops.c (value_bitstring): Remove.
1181 * value.h: Remove the declaration of 'value_bitstring'.
1182
bad7670a
SDJ
11832012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1184
1185 * linespec.c (find_methods): Remove unused variables `i1' and
1186 `name_len'.
1187 (decode_line_full): Likewise for `arg_start'.
1188
d9dce7fa
SDJ
11892012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1190
1191 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1192 (zlib_decompress_section): Likewise for `section_data'.
1193 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1194
a72c3253
DE
11952012-08-10 Doug Evans <dje@google.com>
1196
1197 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1198 * NEWS: Document them.
1199 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1200 function/strfns.py.
1201 * python/py-type.c (typy_array_1): New function.
1202 (typy_array): Call it.
1203 (typy_vector): New function.
1204 (type_object_methods): Add "vector".
1205 * python/lib/gdb/function/__init__.py: New file.
1206 * python/lib/gdb/function/strfns.py: New file.
1207
200bc880
SP
12082012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1209
1210 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1211 for TYPE_FIELD_BITPOS.
1212 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1213
de0bea00
MF
12142012-08-10 Mike Frysinger <vapier@gentoo.org>
1215
1216 PR cli/10436:
1217 * common/vec.h (VEC_merge): Define.
1218 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1219 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1220 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1221 * completer.c: Include gdb_signals.h.
1222 (signal_completer): Define.
1223 * completer.h (signal_completer): Add prototype.
1224 * infcmd.c (_initialize_infcmd): Assign the command
1225 completer for "signal" to handle_completer.
1226 * infrun.c: Include completer.h.
1227 (handle_completer): Define.
1228 (_initialize_infrun): Declare a new local variable c. Store the
1229 result of add_com("handle") to it. Assign the command
1230 completer for "handle" to handle_completer.
1231
5b9afe8a
YQ
12322012-08-09 Yao Qi <yao@codesourcery.com>
1233
1234 * cli/cli-decode.c (set_cmd_prefix): New.
1235 (lookup_cmd_for_prefixlist): New.
1236 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1237 of each cmd_list_element in *prefixlist.
1238 (add_setshow_cmd_full): set_cmd_prefix.
1239 (add_alias_cmd): Likewise.
1240 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1241 Declare 'auto_boolean_enums'.
1242 * cli/cli-setshow.c: Include "observer.h".
1243 (notify_command_param_changed_p): New.
1244 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1245 Remove 'static'.
1246 (do_setshow_command): Split it to ...
1247 (do_set_command, do_show_command): ... them. New.
1248 (do_set_command): Call observer_notify_command_param_changed if
1249 notify_command_param_changed_p returns true.
1250 (cmd_show_list): Caller update.
1251 * auto-load.c (set_auto_load_cmd): Likewise.
1252 * remote.c (show_remote_cmd): Likewise.
1253 * cli/cli-setshow.h: Update declarations.
1254 * top.c (execute_command): Call do_set_command and do_show_command.
1255
1256 * NEWS: Mention new MI notification.
1257 * mi/mi-interp.c: Declare mi_command_param_changed.
1258 (mi_interpreter_init): Attach mi_command_param_changed to
1259 observer command_param_changed.
1260 (mi_command_param_changed): New.
1261 Remove mi_suppress_breakpoint_notifications.
1262 Define global variable mi_suppress_notification.
1263 (mi_breakpoint_created): Update.
1264 (mi_breakpoint_deleted): Likewise.
1265 (mi_breakpoint_modified): Likewise.
1266 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1267 'gdb-set' and set mi_suppress_notification.
1268 * mi/mi-main.h: (mi_suppress_notification): New struct.
1269
1969df89
JK
12702012-08-09 Andreas Tobler <andreast@fgznet.ch>
1271 Jan Kratochvil <jan.kratochvil@redhat.com>
1272
1273 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1274
8bfd80db
YQ
12752012-08-09 Yao Qi <yao@codesourcery.com>
1276
1277 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1278 (skiplist): Move it to skip.c.
1279 (init_cmd_lists): Remove code setting enablebreaklist and
1280 skiplist to NULL.
1281 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1282 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1283 skiplist.
1284 * gdbcmd.h: Likewise.
1285 * skip.c (_initialize_step_skip): Move 'skiplist' from
1286 cli/cli-cmds.c.
1287
28578e6b
YQ
12882012-08-09 Yao Qi <yao@codesourcery.com>
1289
1290 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1291 * gnu-nat.c, symfile.c: Likewise.
1292
260c0b2a
DE
12932012-08-08 Aaron Gamble <agamble@google.com>
1294
1295 * utils.c (prompt_for_continue_wait_time): New static global.
1296 (make_command_stats_cleanup): Initialize it.
1297 (report_command_stats): Subtract time waiting for user.
1298 (prompt_for_continue): Track time waiting for user.
1299 (defaulted_query): Track time waiting for user.
1300
4f485ebc
DE
13012012-08-08 Doug Evans <dje@google.com>
1302
1303 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1304 UNOP_MEMVAL_TYPE.
1305 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1306 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1307 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1308 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1309 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1310 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1311 elt.
1312 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1313 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1314 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1315 (dump_prefix_expression): Handle OP_TYPE.
1316
2acf2b39
KS
13172012-08-08 Keith Seitz <keiths@redhat.com>
1318
1319 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1320 addr_start.
1321
e6712ff1
DE
13222012-08-08 Doug Evans <dje@google.com>
1323
1324 * linux-thread-db.c: #include "gdb_vecs.h".
1325 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1326 updated.
1327 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1328 (thread_db_load_search): Use a vector to iterate over path elements.
1329 Handle text appearing after "$pdir".
1330
1331 * gdb_string.h: Moved to ...
1332 * common/gdb_string.h: ... here.
1333 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1334 gdb_string.h and gdb_assert.h.
1335
ab854e54
YQ
13362012-08-08 Yao Qi <yao@codesourcery.com>
1337
1338 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1339 (tic6x_value_to_register): Likewise.
1340 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1341 and set_gdbarch_value_to_register.
1342
4f69f4c2
JK
13432012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1344 Jean-Marc Saffroy <saffroy@gmail.com>
1345
1346 PR 11804
1347 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1348 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1349 * gcore.c (gcore_create_callback): New function comment. Add modified
1350 parameter. Only write modified regions. Set SEC_READONLY exactly
1351 according to MODIFIED.
1352 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1353 the passed modified value to FUNC.
1354 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1355 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1356 first. New variables modified and has_anonymous. Parse the lines of
1357 smaps file. Add the passed MODIFIED value to FUNC.
1358 * procfs.c (find_memory_regions_callback): Add the passed modified
1359 value.
1360
78ac5f83
TT
13612012-08-06 Tom Tromey <tromey@redhat.com>
1362
1363 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1364 (dwarf2_frame_cache): Use it.
1365 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1366 cache initialization constraint.
1367
2c12abee
TT
13682012-08-06 Tom Tromey <tromey@redhat.com>
1369
1370 PR python/14386:
1371 * varobj.c (update_dynamic_varobj_children): Don't call
1372 PyIter_Check.
1373
4979d7f0
TT
13742012-08-06 Tom Tromey <tromey@redhat.com>
1375
1376 PR cli/14392:
1377 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1378
f3c8a52a
JK
13792012-08-06 Nathaniel Flath <flat0103@gmail.com>
1380
1381 * NEWS: New entry for 'cd' default parameters.
1382 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1383
5a1cf4d6
TT
13842012-08-03 Tom Tromey <tromey@redhat.com>
1385
1386 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1387 return.
1388
7c3270ae
UW
13892012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1390
1391 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1392 to attempting lseek/write.
1393 (inf_child_fileio_pread): Likewise for pread.
1394
ccce17b0
YQ
13952012-08-02 Yao Qi <yao@codesourcery.com>
1396
1397 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1398 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1399 add_setshow_zinteger_cmd.
1400 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1401 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1402 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1403 instead of add_setshow_zinteger_cmd.
1404 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1405 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1406 instead of add_setshow_zinteger_cmd.
1407 * frame.c (frame_debug): Add 'unsigned'.
1408 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1409 add_setshow_zinteger_cmd.
1410 * frame.h: Update the declaration of 'frame_debug'.
1411 * gdbtypes.c (overload_debug): Add 'unsigned'.
1412 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1413 add_setshow_zinteger_cmd.
1414 * inferior.h: Update declaration of 'debug_infrun'.
1415 * infrun.c (debug_infrun): Add 'unsigned'.
1416 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1417 add_setshow_zinteger_cmd.
1418 * jit.c (jit_debug): Add 'unsigned'.
1419 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1420 add_setshow_zinteger_cmd.
1421 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1422 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1423 instead of add_setshow_zinteger_cmd.
1424 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1425 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1426 add_setshow_zinteger_cmd.
1427 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1428 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1429 instead of add_setshow_zinteger_cmd.
1430 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1431 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1432 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1433 intead of add_setshow_zinteger_cmd.
1434 * mips-tdep.c (mips_debug): Add 'unsigned'.
1435 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1436 instead of add_setshow_zinteger_cmd.
1437 * monitor.c (monitor_debug): Add 'unsigned'.
1438 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1439 add_setshow_zinteger_cmd.
1440 * observer.c (observer_debug): Add 'unsigned'.
1441 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1442 add_setshow_zinteger_cmd.
1443 * parse.c (expressiondebug): Add 'unsigned'.
1444 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1445 add_setshow_zinteger_cmd.
1446 * record.c (record_debug): Add 'unsigned'.
1447 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1448 add_setshow_zinteger_cmd.
1449 * record.h: Update the declaration of 'record_debug'.
1450 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1451 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1452 add_setshow_zinteger_cmd.
1453 * serial.c (global_serial_debug_p): Add 'unsigned'.
1454 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1455 add_setshow_zinteger_cmd.
1456 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1457 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1458 add_setshow_zinteger_cmd.
1459 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1460 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1461 add_setshow_zinteger_cmd.
1462 * target.c (targetdebug): Add 'unsigned'.
1463 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1464 add_setshow_zinteger_cmd.
1465 * valops.c (overload_debug): Add 'unsigned'.
1466 * varobj.c (varobjdebug): Add 'unsigned'.
1467 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1468 add_setshow_zinteger_cmd.
1469 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1470 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1471 instead of add_setshow_zinteger_cmd.
1472
1473 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1474 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1475 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1476 instead of add_setshow_zinteger_cmd.
1477 * gdbarch.c, gdbarch.h: Re-generated.
1478
95b07c96
YQ
14792012-08-02 Yao Qi <yao@codesourcery.com>
1480
1481 * nto-tdep.c: Don't include cli/cli-decode.h and
1482 cli/cli-cmds.h.
1483 (_initialize_nto_tdep): Remove.
1484 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1485 Remove field.
1486 Remove macro nto_internal_debugging.
1487
57295b0b
RH
14882012-08-01 Richard Henderson <rth@redhat.com>
1489
1490 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1491 (mep-*-*) [gdb_target_obs]: Likewise.
1492
f782ad9b
AS
14932012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1494
1495 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1496 linux_get_siginfo_type.
1497
a14dd77e
JK
14982012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1499
1500 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1501 AT_ENTRY_POINT.
1502 (call_function_by_hand) <ON_STACK>: Call write_memory with
1503 gdbarch_breakpoint_from_pc, if possible.
1504 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1505 here.
1506
1467929f
YQ
15072012-07-31 Yao Qi <yao@codesourcery.com>
1508
1509 * tracepoint.c: Add 'static' for some variables.
1510
70976b65
YQ
15112012-07-31 Yao Qi <yao@codesourcery.com>
1512
1513 * go32-nat.c: Declare _initialize_go32_nat.
1514 * ser-go32.c: Declare _initialize_ser_dos.
1515 * top.c (do_chdir_cleanup): Add 'static'.
1516
eff9c3e6
KS
15172012-07-30 Keith Seitz <keiths@redhat.com>
1518
1519 * linespec.c (linespec_lex_number): A number followed
1520 by quotes is a valid number, too.
1521
728400d7
TT
15222012-07-30 Tom Tromey <tromey@redhat.com>
1523
1524 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1525
fcf303ab
UW
15262012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1527
1528 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1529 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1530
4e969b4f
AB
15312012-07-30 Andrew Burgess <aburgess@broadcom.com>
1532
1533 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1534 invalid or reevaluated to prevent prevent references to possibly
1535 delete'd type objects being left in the varobj.
1536
c4bfde41
JK
15372012-07-27 Tom Tromey <tromey@redhat.com>
1538 Jan Kratochvil <jan.kratochvil@redhat.com>
1539
1540 * copying.awk: Print buffer-read-only and vi ro markers.
1541 * copying.c: Rebuild.
1542 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1543 * gdbarch.c, gdbarch.h: Rebuild.
1544 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1545 buffer-read-only and vi ro markers.
1546 * features/arm-with-iwmmxt.c: Rebuild.
1547 * features/arm-with-m-fpa-layout.c: Rebuild.
1548 * features/arm-with-m-vfp-d16.c: Rebuild.
1549 * features/arm-with-m.c: Rebuild.
1550 * features/arm-with-neon.c: Rebuild.
1551 * features/arm-with-vfpv2.c: Rebuild.
1552 * features/arm-with-vfpv3.c: Rebuild.
1553 * features/i386/amd64-avx-linux.c: Rebuild.
1554 * features/i386/amd64-avx.c: Rebuild.
1555 * features/i386/amd64-linux.c: Rebuild.
1556 * features/i386/amd64.c: Rebuild.
1557 * features/i386/i386-avx-linux.c: Rebuild.
1558 * features/i386/i386-avx.c: Rebuild.
1559 * features/i386/i386-linux.c: Rebuild.
1560 * features/i386/i386-mmx-linux.c: Rebuild.
1561 * features/i386/i386-mmx.c: Rebuild.
1562 * features/i386/i386.c: Rebuild.
1563 * features/i386/x32-avx-linux.c: Rebuild.
1564 * features/i386/x32-avx.c: Rebuild.
1565 * features/i386/x32-linux.c: Rebuild.
1566 * features/i386/x32.c: Rebuild.
1567 * features/mips-dsp-linux.c: Rebuild.
1568 * features/mips-linux.c: Rebuild.
1569 * features/mips64-dsp-linux.c: Rebuild.
1570 * features/mips64-linux.c: Rebuild.
1571 * features/rs6000/powerpc-32.c: Rebuild.
1572 * features/rs6000/powerpc-32l.c: Rebuild.
1573 * features/rs6000/powerpc-403.c: Rebuild.
1574 * features/rs6000/powerpc-403gc.c: Rebuild.
1575 * features/rs6000/powerpc-405.c: Rebuild.
1576 * features/rs6000/powerpc-505.c: Rebuild.
1577 * features/rs6000/powerpc-601.c: Rebuild.
1578 * features/rs6000/powerpc-602.c: Rebuild.
1579 * features/rs6000/powerpc-603.c: Rebuild.
1580 * features/rs6000/powerpc-604.c: Rebuild.
1581 * features/rs6000/powerpc-64.c: Rebuild.
1582 * features/rs6000/powerpc-64l.c: Rebuild.
1583 * features/rs6000/powerpc-7400.c: Rebuild.
1584 * features/rs6000/powerpc-750.c: Rebuild.
1585 * features/rs6000/powerpc-860.c: Rebuild.
1586 * features/rs6000/powerpc-altivec32.c: Rebuild.
1587 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1588 * features/rs6000/powerpc-altivec64.c: Rebuild.
1589 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1590 * features/rs6000/powerpc-cell32l.c: Rebuild.
1591 * features/rs6000/powerpc-cell64l.c: Rebuild.
1592 * features/rs6000/powerpc-e500.c: Rebuild.
1593 * features/rs6000/powerpc-e500l.c: Rebuild.
1594 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1595 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1596 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1597 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1598 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1599 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1600 * features/rs6000/powerpc-vsx32.c: Rebuild.
1601 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1602 * features/rs6000/powerpc-vsx64.c: Rebuild.
1603 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1604 * features/rs6000/rs6000.c: Rebuild.
1605 * features/s390-linux32.c: Rebuild.
1606 * features/s390-linux32v1.c: Rebuild.
1607 * features/s390-linux32v2.c: Rebuild.
1608 * features/s390-linux64.c: Rebuild.
1609 * features/s390-linux64v1.c: Rebuild.
1610 * features/s390-linux64v2.c: Rebuild.
1611 * features/s390x-linux64.c: Rebuild.
1612 * features/s390x-linux64v1.c: Rebuild.
1613 * features/s390x-linux64v2.c: Rebuild.
1614 * features/tic6x-c62x-linux.c: Rebuild.
1615 * features/tic6x-c62x.c: Rebuild.
1616 * features/tic6x-c64x-linux.c: Rebuild.
1617 * features/tic6x-c64x.c: Rebuild.
1618 * features/tic6x-c64xp-linux.c: Rebuild.
1619 * features/tic6x-c64xp.c: Rebuild.
1620
826f0041
TT
16212012-07-27 Tom Tromey <tromey@redhat.com>
1622
1623 * c-exp.y (classify_name): Avoid assignment in condition.
1624
84552b16
PA
16252012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1626
1627 * amd64-windows-tdep.c: Include "frame.h".
1628 (amd64_windows_skip_trampoline_code): New function.
1629 (amd64_windows_init_abi): Add trampoline registration.
1630
a8a64aa8
YQ
16312012-07-27 Yao Qi <yao@codesourcery.com>
1632
1633 * tracepoint.c (cur_traceframe_number): Remove.
1634 (set_tfile_traceframe): Remove.
1635 (tfile_trace_find, tfile_fetch_registers): Update callers.
1636 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1637 (tfile_open, tfile_trace_find): Likewise.
1638
d99067cb
YQ
16392012-07-27 Yao Qi <yao@codesourcery.com>
1640
1641 * thread.c (switch_to_thread): Don't call registers_changed.
1642
f2e8016f
TT
16432012-07-26 Tom Tromey <tromey@redhat.com>
1644
f782ad9b
AS
1645 * Makefile.in (SFILES): Remove objc-exp.y.
1646 (YYFILES): Remove objc-exp.c.
1647 (YYOBJ): Remove objc-exp.o.
1648 (local-maintainer-clean): Don't mention objc-exp.c.
1649 * c-exp.y: Include objc-lang.h.
1650 (%union) <class>: New field.
1651 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1652 (exp): Clone subscript production for OBJC_LBRAC. Add various
1653 Objective C productions.
1654 (msglist, msgarglist, msgarg): New productions.
1655 (array_mod, func_mod, operator): Clone productions for
1656 OBJC_LBRAC.
1657 (parse_string_or_char): Handle '@' strings.
1658 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1659 (classify_name): Check la_name_of_this. Recognize ObjC class
1660 names.
1661 * objc-exp.y: Remove.
1662 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1663 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1664
f66713d2
JK
16652012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1666
1667 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1668
7cfe01b4
JK
16692012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1670
1671 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1672 and decrement.
1673
5ba19b4c
TT
16742012-07-26 Tom Tromey <tromey@redhat.com>
1675
1676 * copying.c: Rebuild.
1677 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1678 'no_class'.
1679
27618ce4
TT
16802012-07-26 Tom Tromey <tromey@redhat.com>
1681
1682 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1683 immediate_quit.
1684 (print_objfile_statistics): Likewise.
1685 (maintenance_print_symbols): Likewise.
1686 (maintenance_print_msymbols): Likewise.
1687 (maintenance_print_objfiles): Likewise.
1688 * psymtab.c (print_partial_symbols): Call QUIT.
1689 (maintenance_print_psymbols): Likewise. Don't modify
1690 immediate_quit.
1691 * copying.c (show_copying_command): Don't modify immediate_quit.
1692 (show_warranty_command): Likewise.
1693 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1694
dd3818c8
KS
16952012-07-26 Keith Seitz <keiths@redhat.com>
1696
1697 * linespec.c (linespec_lexer_lex_number): The input
1698 is also a valid number if the next character is a comma
1699 or colon.
1700
23a80689
JB
17012012-07-26 Joel Brobecker <brobecker@adacore.com>
1702
1703 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1704 configure options.
1705
29f77997
TG
17062012-07-26 Tristan Gingold <gingold@adacore.com>
1707
1708 * machoread.c: Include gdb_bfd.h.
1709
a55c1f32
TG
17102012-07-26 Tristan Gingold <gingold@adacore.com>
1711
1712 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1713 offset.
1714
56eb65bd
SP
17152012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1716
1717 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1718 SIZE to size_t.
1719 (dwarf2_evaluate_loc_desc): Likewise.
1720 (dwarf2_loc_desc_needs_frame): Likewise.
1721 (locexpr_describe_location_1): Likewise.
1722 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1723 size_t.
1724 (struct dwarf2_loclist_baton): Likewise.
1725 * dwarf2read.c (struct dwarf_block): Likewise.
1726 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1727 (decode_locdesc): Expand SIZE and I to size_t.
1728
aec8845c
JK
17292012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1730
1731 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1732
33d7655b
JB
17332012-07-25 Joel Brobecker <brobecker@adacore.com>
1734
1735 * doublest.c (convert_doublest_to_floatformat): If the exponent
1736 is too small, treat the value as zero. If the exponent is too
1737 large, treat the value as infinity.
1738
a22d44ff
JB
17392012-07-25 Joel Brobecker <brobecker@adacore.com>
1740
1741 * configure.ac: Add --enable-lmcheck configure option.
1742 * configure: Regenerate.
1743
d6b28940
TT
17442012-07-25 Tom Tromey <tromey@redhat.com>
1745
f782ad9b
AS
1746 * NEWS: Mention maint info bfds.
1747 * gdb_bfd.c (all_bfds): New global.
1748 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1749 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1750 New functions.
d6b28940 1751
6e73ba20
RC
17522012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1753
1754 * configure.tgt: Add v850*-*-rtems*.
1755
d560eebd
TT
17562012-07-25 Tom Tromey <tromey@redhat.com>
1757
1758 * macrotab.c (macro_bcache_str): Remove cast.
1759
d7cbec71
HZ
17602012-07-25 Hui Zhu <hui_zhu@mentor.com>
1761
1762 * linespec.c (linespec_lexer_lex_number): Update comments,
1763 change the return and add check to make sure the input is
1764 the decimal numbers.
1765 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1766 false, call linespec_lexer_lex_string.
1767
882f447f
TT
17682012-07-24 Tom Tromey <tromey@redhat.com>
1769
1770 * symfile.c (symbol_file_add): Don't open BFD twice.
1771
53ab4066 17722012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1773
1774 * breakpoint.c (create_breakpoint): Store condition for pending
1775 breakpoints.
1776
108fb0f7
AS
17772012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1778
1779 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1780 (m68k_return_value): Handle complex types like structures.
1781 (m68k_svr4_return_value): Likewise.
1782
1634dcbe
JK
17832012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1784
1785 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1786 parameters to bfd_get_section_name.
1787
e2d12c21
YQ
17882012-07-24 Yao Qi <yao@codesourcery.com>
1789
1790 * cli/cli-setshow.c: Handle case 'var_uinteger'
1791 and 'var_zuninteger' together. Handle case 'var_integer' and
1792 'var_zinteger' together.
1793
64b92e45
KS
17942012-07-23 Keith Seitz <keiths@redhat.com>
1795
1796 * linespec.c (convert_linespec_to_sal): Don't add
1797 any symbols to the result vector if symbol_to_sal
1798 returns zero.
1799
0f5f4ffe
KS
18002012-07-23 Keith Seitz <keiths@redhat.com>
1801
1802 * linespec.c (decode_objc): Record the function name
1803 in the linespec.
1804
da1cc82f
TT
18052012-07-23 Tom Tromey <tromey@redhat.com>
1806
1807 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1808 counting.
1809 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1810 (map_vmap): Acquire a reference to the BFD.
1811
6c18f3e0
SP
18122012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1813
1814 * p-valprint.c (pascal_object_print_value): Replace potentially
1815 unsafe alloca with xmalloc/xfree.
1816 * valops.c (search_struct_method): Likewise.
1817
695c3173
TT
18182012-07-23 Tom Tromey <tromey@redhat.com>
1819
1820 * solib-svr4.c (enable_break): Update.
1821 * bfd-target.h (target_bfd_reopen): Update documentation.
1822
08d2cd74
TT
18232012-07-23 Tom Tromey <tromey@redhat.com>
1824
1825 * symfile.c (separate_debug_file_exists): Update.
1826 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1827 (reread_symbols): Update.
1828 * elfread.c (build_id_verify): Update.
1829 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1830 bfd_open_maybe_remote.
1831
596f7d67
TT
18322012-07-23 Tom Tromey <tromey@redhat.com>
1833
1834 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1835
8ac244b4
TT
18362012-07-23 Tom Tromey <tromey@redhat.com>
1837
1838 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1839 and 'abfd'.
1840 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1841 and 'abfd'.
1842 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1843 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1844 'abfd'.
1845 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1846 * objfiles.c (allocate_objfile): Acquire a new reference.
1847 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1848 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1849 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1850 a cleanup for 'nbfd'.
1851 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1852 for 'nbfd'.
1853 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1854 make a cleanup for 'abfd'.
1855 (symbol_file_add): Make a BFD cleanup.
1856
64c31149
TT
18572012-07-23 Tom Tromey <tromey@redhat.com>
1858
1859 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1860 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1861 * corelow.c (core_open): Use gdb_bfd_fopen.
1862 * dsrec.c (load_srec): Use gdb_bfd_openr.
1863 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1864 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1865 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1866 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1867 (gdb_bfd_fdopenr): New functions.
1868 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1869 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1870 (gdb_bfd_fdopenr): Declare.
1871 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1872 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1873 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1874 gdb_bfd_openr_next_archived_file.
1875 (macho_check_dsym): Use gdb_bfd_openr.
1876 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1877 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1878 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1879 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1880 gdb_bfd_openr.
1881 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1882 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1883 gdb_bfd_openr_next_archived_file.
1884 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1885 Use gdb_bfd_openr.
1886 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1887 gdb_bfd_openr.
1888 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1889 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1890 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1891 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1892 (symfile_bfd_open): Use gdb_bfd_fopen.
1893 (generic_load): Use gdb_bfd_openr.
1894 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1895
520b0001
TT
18962012-07-23 Tom Tromey <tromey@redhat.com>
1897
1898 * bfd-target.c (target_bfd_reopen): Update.
1899 * cli/cli-dump.c (bfd_openr_with_cleanup)
1900 (bfd_openw_with_cleanup): Update.
1901 * corelow.c (core_open): Update.
1902 * dsrec.c (load_srec): Update.
1903 * exec.c (exec_file_attach): Update.
1904 * gcore.c (create_gcore_bfd): Update.
1905 * gdb_bfd.c (gdb_bfd_ref): Return void.
1906 (gdb_bfd_open): Update.
1907 * gdb_bfd.h (gdb_bfd_ref): Return void.
1908 Update comments.
1909 * jit.c (jit_bfd_try_read_symtab): Update.
1910 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1911 * machoread.c (macho_symfile_read_all_oso): Update.
1912 (macho_check_dsym): Update.
1913 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1914 * remote-m32r-sdi.c (m32r_load): Update.
1915 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1916 * rs6000-nat.c (add_vmap): Update.
1917 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1918 Update.
1919 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1920 * solib-spu.c (spu_bfd_open): Update.
1921 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1922 * spu-linux-nat.c (spu_bfd_open): Update.
1923 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1924 (generic_load): Update.
1925 * windows-nat.c (windows_make_so): Update.
1926
2322ff16
SP
19272012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1928
1929 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1930
3def0b36
PA
19312012-07-20 Jeff Kenton <jkenton@tilera.com>
1932
1933 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1934 SIGTRAMP_FRAME unwinding.
1935
e615022a
DE
19362012-07-20 Doug Evans <dje@google.com>
1937
1938 * NEWS: Document new options "set/show use-deprecated-index-sections",
1939 and delete reference to --use-deprecated-index-sections.
1940 * symfile.h (use_deprecated_index_sections): Delete.
1941 * dwarf2read.c (use_deprecated_index_sections): Make static.
1942 (read_index_from_section): Update wording of how to load
1943 deprecated index sections.
1944 (_initialize_dwarf2_read): New options
1945 "set/show use-deprecated-index-sections".
1946 * main.c (captured_main): Delete --use-deprecated-index-sections.
1947
64776a0b
PA
19482012-07-20 Pedro Alves <palves@redhat.com>
1949
1950 PR threads/11692
1951 PR gdb/12203
1952
1953 * infrun.c (handle_inferior_event) <new thread>: Don't special
1954 case minus_one_ptid.
1955 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1956 * linux-thread-db.c (thread_get_info_callback): Don't return early
1957 if the thread is zombie.
1958 (thread_from_lwp): Change return type to void. Rewrite stale
1959 comment.
1960 (attach_thread): Don't return early if the thread is zombie,
1961 instead set its "dying" flag.
1962 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1963 (find_new_threads_callback): Don't return early if the thread is
1964 zombie.
1965
09826ec5
PA
19662012-07-20 Pedro Alves <palves@redhat.com>
1967
1968 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1969 * target.c (target_wait): Likewise.
1970 (str_comma_list_concat_elem, do_option, target_options_to_string):
1971 New functions.
1972 * target.h (target_options_to_string): Declare.
1973
f7a35f02
TT
19742012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1975 Tom Tromey <tromey@redhat.com>
1976
1977 * dwarf2read.c (dwarf_decode_macros)
1978 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1979 DW_MACRO_GNU_transparent_include_alt>: New cases.
1980 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1981 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1982
b81e1ee0
TT
19832012-07-20 Tom Tromey <tromey@redhat.com>
1984
1985 * dwarf2read.c (try_open_dwo_file): Don't call
1986 gdb_bfd_stash_filename.
1987
99c1624c
PA
19882012-07-20 Pedro Alves <palves@redhat.com>
1989
1990 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1991 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1992 (i386_process_record): Tweak description comments.
1993
4ffa4fc7
PA
19942012-07-20 Pedro Alves <palves@redhat.com>
1995
1996 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1997 (i386_process_record): Use record_read_memory.
1998 * record.c (record_read_memory): New function.
1999 (record_arch_list_add_mem, record_exec_insn): Use
2000 record_read_memory.
2001 * record.h (record_read_memory): Declare.
2002
c24343e2
YQ
20032012-07-20 Yao Qi <yao@codesourcery.com>
2004
2005 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2006 NULL for xfree.
2007
90f47860
PA
20082012-07-19 Pedro Alves <palves@redhat.com>
2009
2010 * record.c (record_resume): Ask the target beneath to report all
2011 signals.
2012
01093045
DE
20132012-07-19 Doug Evans <dje@google.com>
2014
2015 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
2016 there's no section at address zero.
2017 (dwarf2_record_block_ranges): Ditto.
2018
a7c3d162
YQ
20192012-07-19 Yao Qi <yao@codesourcery.com>
2020
2021 * command.h, remote.c: Fix a typo in comment.
2022
608b4967
TT
20232012-07-19 Tom Tromey <tromey@redhat.com>
2024
2025 PR exp/13206:
2026 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
2027 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
2028 OP_DECLTYPE>: New cases.
2029 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
2030 (type_exp): Add new productions.
2031 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
2032 and decltype.
2033 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
2034 New case.
2035 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
2036 OP_DECLTYPE>: New case.
2037 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
2038 New case.
2039 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
2040 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
2041
274b54d7
TT
20422012-07-19 Tom Tromey <tromey@redhat.com>
2043
2044 * c-exp.y (enum token_flags): New.
2045 (struct token) <cxx_only>: Remove.
2046 <flags>: New field.
2047 (tokentab3, tokentab2, ident_tokens): Update.
2048 (lex_one_token): Update. Handle FLAG_SHADOW.
2049
9eaf6705
TT
20502012-07-19 Tom Tromey <tromey@redhat.com>
2051
2052 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
2053 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
2054 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
2055 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
2056 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
2057 type_exp production where appropriate.
2058 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
2059 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
2060 <UNOP_MEMVAL_TYPE>: New case.
2061 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2062 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2063 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2064 <UNOP_MEMVAL_TYPE>: New case.
2065 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2066 UNOP_REINTERPRET_CAST>: Update.
2067 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2068 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2069 UNOP_REINTERPRET_CAST>: Update.
2070 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2071 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2072 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2073 constants.
2074
6ace3df1
YQ
20752012-07-19 Yao Qi <yao@codesourcery.com>
2076 Jan Kratochvil <jan.kratochvil@redhat.com>
2077
2078 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2079 and case 'var_optional_filename' together.
2080 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2081 instead of add_setshow_optional_filename_cmd for setshow command
2082 'args'. Set completer for 'set args'.
2083
48faced0
DE
20842012-07-18 Doug Evans <dje@google.com>
2085
2086 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2087 * common/gdb_vecs.c: New file, contents from utils.c.
2088 * common/host-defs.h: New file, contents from defs.h.
2089 * utils.h: New file, contents from defs.h.
2090 * defs.h: Move all declarations of objects defined in utils.c
2091 to utils.h (except QUIT() and related).
2092 #include "utils.h", "host-defs.h".
2093 * probe.h (probe_p): Move here from gdb_vecs.h.
2094 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2095 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2096 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2097 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2098 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2099 (COMMON_OBS): Add gdb_vecs.o.
2100 (gdb_vecs.o): New rule.
2101
66f1999b
KS
21022012-07-18 Keith Seitz <keiths@redhat.com>
2103
2104 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2105 parameter. If non-zero, use SYMNAME as the canonical name
2106 for the SaL.
2107 Update all callers.
2108 (convert_linespec_to_sals): Use add_sal_to_sals for
2109 expressions, too.
2110 (decode_line_full): No need to "fill in missing canonical names"
2111 anymore. Simply make cleanups for the allocated names.
2112
5d94e27b
KS
21132012-07-18 Keith Seitz <keiths@redhat.com>
2114
2115 * linespec.c (struct linespec): Constify expression,
2116 source_filename, function_name, and label_name.
2117 (symbol_not_found_error): Make all parameters const.
2118 (linespec_parser_delete): No need to check for NULL
2119 when using xfree. Cast const char * to char * for xfree.
2120
af4908ba
KS
21212012-07-18 Keith Seitz <keiths@redhat.com>
2122
2123 * breakpoint.c (invalid_thread_id_error): New function.
2124 (find_condition_and_thread): Use invalid_thread_id_error.
2125 (watch_command_1): Likewise.
2126
853254db
TT
21272012-07-18 Tom Tromey <tromey@redhat.com>
2128
2129 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2130 * contrib/cc-with-tweaks.sh: New file.
2131
2ec9a5e0
TT
21322012-07-18 Tom Tromey <tromey@redhat.com>
2133
2134 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2135 (locate_dwz_sections): Recognize .gdb_index.
2136 (create_cus_from_index_list): New function.
2137 (create_cus_from_index): Use it. Handle .dwz data.
2138 (read_index_from_section): New function, extracted from
2139 dwarf2_read_index.
2140 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2141 if needed.
2142
36586728
TT
21432012-07-18 Tom Tromey <tromey@redhat.com>
2144
2145 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2146 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2147 <is_dwz>: New field.
2148 (struct dwz_file): New.
2149 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2150 (locate_dwz_sections, dwarf2_get_dwz_file)
2151 (get_abbrev_section_for_cu): New functions.
2152 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2153 (read_and_check_type_unit_head): Add abbrev_section argument.
2154 (create_debug_types_hash_table): Update.
2155 (init_cutu_and_read_dies): Use proper abbrev section.
2156 (init_cutu_and_read_dies_no_follow): Likewise.
2157 (set_partial_user): Do nothing if PST==NULL.
2158 (read_comp_units_from_section): New function.
2159 (create_all_comp_units): Use it.
2160 (scan_partial_symbols, partial_die_parent_scope): Update.
2161 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2162 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2163 (find_partial_die): Add offset_in_dwz argument. Update.
2164 (guess_partial_die_structure_name, fixup_partial_die): Update.
2165 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2166 DW_FORM_GNU_strp_alt.
2167 (read_indirect_string_from_dwz): New function.
2168 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2169 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2170 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2171 (follow_die_offset): Add offset_in_dwz argument.
2172 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2173 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2174 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2175 Handle new macro forms.
2176 (dwarf_decode_macros): Update.
2177 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2178 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2179 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2180 (create_debug_types_hash_table): Use correct abbrev section.
2181 (get_debug_line_section): New function.
2182 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2183 (process_full_comp_unit): Pass 'required' argument to
2184 end_symtab_get_static_block.
2185 * buildsym.h (end_symtab_get_static_block): Update.
2186 * buildsym.c (end_symtab_get_static_block): Add 'required'
2187 argument.
2188 (end_symtab, end_expandable_symtab): Update.
2189
4bf44c1c
TT
21902012-07-18 Tom Tromey <tromey@redhat.com>
2191
2192 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2193 (pagesize): Remove.
2194 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2195 (zlib_decompress_section): Remove.
2196 (dwarf2_read_section): Use gdb_bfd_map_section.
2197 (munmap_section_buffer): Remove.
2198 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2199 munmap_section_buffer.
2200 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2201 (struct gdb_bfd_section_data): New.
2202 (free_one_bfd_section): New function.
2203 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2204 (get_section_descriptor, zlib_decompress_section)
2205 (gdb_bfd_map_section): New functions.
2206 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2207
bb397797
TT
22082012-07-18 Tom Tromey <tromey@redhat.com>
2209
2210 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2211
6ec53d05
TT
22122012-07-18 Tom Tromey <tromey@redhat.com>
2213
2214 * gdb_bfd.c (struct gdb_bfd_data): New.
2215 (gdb_bfd_cache): New global.
2216 (struct gdb_bfd_cache_search): New.
2217 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2218 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2219 * gdb_bfd.h (gdb_bfd_open): Declare.
2220
f9a062ff
TT
22212012-07-18 Tom Tromey <tromey@redhat.com>
2222
2223 * utils.c (make_cleanup_bfd_unref): Rename from
2224 make_cleanup_bfd_close.
2225 * defs.h (make_cleanup_bfd_unref): Rename from
2226 make_cleanup_bfd_close.
2227 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2228 (bfd_openw_with_cleanup): Update.
2229 * corelow.c (core_open): Update.
2230 * dsrec.c (load_srec): Update.
2231 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2232 * remote-m32r-sdi.c (m32r_load): Update.
2233 * remote-mips.c (mips_load_srec): Update.
2234 (pmon_load_fast): Update.
2235 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2236 Update.
2237 (darwin_bfd_open): Update.
2238 * solib.c (solib_bfd_fopen): Update.
2239 * symfile-mem.c (symbol_file_add_from_memory): Update.
2240 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2241 (symfile_bfd_open): Update.
2242 (generic_load): Update.
2243
d6ad71ba
TT
22442012-07-18 Tom Tromey <tromey@redhat.com>
2245
2246 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2247 (pmon_load_fast): Likewise.
2248 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2249 (m32r_upload_command): Likewise.
2250 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2251 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2252 Use make_cleanup_bfd_close.
2253
a4453b7e
TT
22542012-07-18 Tom Tromey <tromey@redhat.com>
2255
2256 * symfile.c (symfile_bfd_open): Don't copy name. Call
2257 gdb_bfd_stash_filename.
2258 (load_command): Open the new BFD before freeing the old.
2259 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2260 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2261 Call gdb_bfd_stash_filename.
2262 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2263 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2264 gdb_bfd_stash_filename.
2265 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2266 Free found_pathname.
2267 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2268 gdb_bfd_stash_filename.
2269 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2270 * machoread.c (macho_add_oso_symfile): Call
2271 gdb_bfd_stash_filename.
2272 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2273 gdb_bfd_stash_filename.
2274 (macho_check_dsym): Don't copy filename. Call
2275 gdb_bfd_stash_filename.
2276 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2277 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2278 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2279 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2280 * exec.c (exec_close): Don't free the BFD's filename.
2281 (exec_file_attach): Don't copy the filename. Call
2282 gdb_bfd_stash_filename.
2283 * corelow.c (core_close): Don't free the BFD's filename.
2284 (core_open): Call gdb_bfd_stash_filename.
2285 * corefile.c (reopen_exec_file): Remove #if 0 code.
2286 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2287 pathname.
2288 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2289
cbb099e8
TT
22902012-07-18 Tom Tromey <tromey@redhat.com>
2291
2292 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2293 gdb_bfd_unref.
2294 (free_dwo_file): Use gdb_bfd_unref.
2295 * cli/cli-dump.c: Include gdb_bfd.h.
2296 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2297 (bfd_openr_with_cleanup): Likewise.
2298 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2299 gdb_bfd_unref.
2300 * utils.c: Include gdb_bfd.h.
2301 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2302 * symfile.c: Include gdb_bfd.h.
2303 (separate_debug_file_exists): Use gdb_bfd_unref.
2304 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2305 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2306 (generic_load): Use gdb_bfd_ref.
2307 (reread_symbols): Use gdb_bfd_unref.
2308 * symfile-mem.c: Include gdb_bfd.h.
2309 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2310 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2311 * solib.c: Include gdb_bfd.h.
2312 (solib_bfd_fopen): Use gdb_bfd_ref.
2313 (solib_bfd_open): Use gdb_bfd_unref.
2314 (free_so_symbols): Use gdb_bfd_unref.
2315 (reload_shared_libraries_1): Use gdb_bfd_unref.
2316 * solib-spu.c: Include gdb_bfd.h.
2317 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2318 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2319 gdb_bfd_unref.
2320 * solib-frv.c: Include gdb_bfd.h.
2321 (enable_break2): Use gdb_bfd_unref.
2322 * solib-dsbt.c: Include gdb_bfd.h.
2323 (enable_break2): Use gdb_bfd_unref.
2324 * solib-darwin.c: Include gdb_bfd.h.
2325 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2326 gdb_bfd_unref.
2327 (darwin_bfd_open): Use gdb_bfd_unref.
2328 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2329 * remote-mips.c: Include gdb_bfd.h.
2330 (mips_load_srec): Use gdb_bfd_ref.
2331 (pmon_load_fast): Use gdb_bfd_ref.
2332 * remote-m32r-sdi.c: Include gdb_bfd.h.
2333 (m32r_load): Use gdb_bfd_ref.
2334 * record.c: Include gdb_bfd.h.
2335 (record_save_cleanups): Use gdb_bfd_unref.
2336 (cmd_record_save): Use gdb_bfd_unref.
2337 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2338 gdb_bfd_unref.
2339 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2340 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2341 * objfiles.c: Include gdb_bfd.h.
2342 (free_objfile): Use gdb_bfd_unref.
2343 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2344 gdb_bfd.c.
2345 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2346 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2347 (macho_check_dsym): Likewise.
2348 * m32r-rom.c: Include gdb_bfd.h.
2349 (m32r_load): Use gdb_bfd_ref.
2350 (m32r_upload_command): Use gdb_bfd_ref.
2351 * jit.c: Include gdb_bfd.h.
2352 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2353 * gdb_bfd.h: New file.
2354 * gdb_bfd.c: New file.
2355 * gcore.c: Include gdb_bfd.h.
2356 (create_gcore_bfd): Use gdb_bfd_ref.
2357 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2358 (gcore_command): Use gdb_bfd_unref.
2359 * exec.c: Include gdb_bfd.h.
2360 (exec_close): Use gdb_bfd_unref.
2361 (exec_close_1): Use gdb_bfd_unref.
2362 (exec_file_attach): Use gdb_bfd_ref.
2363 * elfread.c: Include gdb_bfd.h.
2364 (build_id_verify): Use gdb_bfd_unref.
2365 * dsrec.c: Include gdb_bfd.h.
2366 (load_srec): Use gdb_bfd_ref.
2367 * corelow.c: Include gdb_bfd.h.
2368 (core_close): Use gdb_bfd_unref.
2369 (core_open): Use gdb_bfd_ref.
2370 * bfd-target.c: Include gdb_bfd.h.
2371 (target_bfd_xclose): Use gdb_bfd_unref.
2372 (target_bfd_reopen): Use gdb_bfd_ref.
2373 * Makefile.in (SFILES): Add gdb_bfd.c.
2374 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2375 (COMMON_OBS): Add gdb_bfd.o.
2376
ed1d1739
KS
23772012-07-18 Keith Seitz <keiths@redhat.com>
2378
2379 * breakpoint.c (find_condition_and_thread): Initialize
2380 TASK and REST.
2381 (create_breakpiont): find_condition_and_thread will now
2382 initialize COND_STRING, THREAD, and REST (and TASK).
2383 (addr_string_to_sals): Likewise.
2384
eab402df
PA
23852012-07-18 Pedro Alves <palves@redhat.com>
2386
2387 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2388 Pull the single step breakpoints out of the target.
2389
2b963b68
SDJ
23902012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2391
2392 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2393 * stap-probe.c (compile_probe_arg): Likewise.
2394
6bac7473
SDJ
23952012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2396
2397 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2398 (elf_compile_to_ax): Likewise.
2399 * infrun.c (insert_exception_resume_from_probe): Likewise.
2400 (check_exception_resume): Remove `objfile' variable.
2401 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2402 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2403 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2404 (compare_entries): Rename to...
2405 (compare_probes): ...this. Adjust function to work with
2406 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2407 respectively.
2408 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2409 `VEC (probe_p) *'.
2410 (print_ui_out_info): Adjust argument to be `struct probe *'.
2411 (info_probes_for_ops): Adjust internal computations to use
2412 `VEC (probe_p) *'.
2413 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2414 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2415 gen_info_probes_table_values>: Remove `objfile' argument.
2416 (struct probe) <objfile>: New field.
2417 (find_probe_by_pc): Remove `objfile' argument.
2418 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2419 (stap_get_probe_argument_count): Likewise.
2420 (stap_get_arg): Likewise.
2421 (stap_evaluate_probe_argument): Likewise.
2422 (stap_compile_to_ax): Likewise.
2423 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2424 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2425 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2426 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2427 sym_compile_to_ax>: Likewise.
2428
3347eb1a 24292012-07-18 Terry Guo <terry.guo@arm.com>
2430
2431 PR 14329
2432 * defs.h (GDB_MI_MSG_WIDTH): New.
2433 * ser_base (ser_base_read_error_fd): New function.
2434 (do_ser_base_readchar): Poll error file descriptor as well as
2435 standard output.
f782ad9b 2436 (generic_readchar): Refactor error handling.
3347eb1a 2437
80c8d323
JB
24382012-07-18 Joel Brobecker <brobecker@adacore.com>
2439
2440 * NEWS: Create a new section for the next release branch.
2441 Rename the section of the current branch, now that it has
2442 been cut.
2443
b45a0664 24442012-07-18 Joel Brobecker <brobecker@adacore.com>
2445
2446 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2447 * version.in: Bump version to 7.5.50.20120718-cvs.
2448
09cf2b22
KS
24492012-07-17 Keith Seitz <keiths@redhat.com>
2450
2451 * linespec.c (linespec_parse_line_offset): Make parameter
2452 const.
2453
8f043999
JK
24542012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2455
2456 PR 11914
2457 * f-valprint.c (info_common_command): New variable frame_id.
2458 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2459 * printcmd.c (print_variable_and_value): Extend function comment.
2460 Add comment for invalidated FRAME.
2461 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2462 FI form FRAME_ID after each print_frame_local_vars.
2463 (struct print_variable_and_value_data): Change frame to frame_id.
2464 (do_print_variable_and_value): New variable frame, initialize it from
2465 p->frame_id. Add comment for invalidated FRAME.
2466 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2467 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2468 for invalidated FRAME.
2469
ae5e0686
MK
24702012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2471 Pedro Alves <palves@redhat.com>
2472
2473 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2474 loop.
2475
5049c5be
TT
24762012-07-16 Tom Tromey <tromey@redhat.com>
2477
2478 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2479
2908cac6
DE
24802012-07-15 Doug Evans <dje@google.com>
2481
094b34ac
DE
2482 * dwarf2read.c (stmt_list_hash): New struct.
2483 (type_unit_group): Embed "per_cu" member, remove pointer.
2484 New union member "t", move member "tus" into it, all uses updated.
2485 New member "hash", replaces member "line_offset, all uses updated.
2486 (quick_file_names): Replace member "offset" with "hash", all uses
2487 updated.
2488 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2489 (hash_file_name_entry, eq_file_name_entry): Call them.
2490 (hash_type_unit_group, eq_type_unit_group): Ditto.
2491 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2492 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2493 (dw2_get_file_names): Update.
2494 (create_type_unit_group): Replace "per_cu" arg with "cu".
2495 All callers updated. Fix "quick" (.gdb_index) handling.
2496 (get_type_unit_group): Replace "per_cu" arg with "cu".
2497 All callers updated.
2498 (build_type_unit_groups): Don't reset tu_stats.
2499
2908cac6
DE
2500 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2501 "tab_cur_size". Change member "tab" to be a htab_t.
2502 (create_filename_seen_cache): Update.
2503 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2504 (filename_seen): Update.
2505
a2b6eff5
DE
25062012-07-13 Doug Evans <dje@google.com>
2507
2508 * symtab.c (filename_seen): Update comment.
2509
4359dff1
JK
25102012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2511 Doug Evans <dje@google.com>
2512
2513 * buildsym.c (end_symtab_1): Split it to ...
2514 (end_symtab_get_static_block): ... this ...
2515 (end_symtab_from_static_block): ... and this function.
2516 (end_symtab, end_expandable_symtab): Call them.
2517 * buildsym.h (end_symtab_get_static_block)
2518 (end_symtab_from_static_block): New declarations.
2519 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2520 Set its valid CU ranges.
2521
a24f71ab
JK
25222012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2523
2524 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2525 DW_OP_GNU_parameter_ref.
2526
d76b7dbc
JK
25272012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2530 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2531
9fdc877b
DE
25322012-07-13 Doug Evans <dje@google.com>
2533
2534 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2535 (filename_seen_cache): New struct.
2536 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2537 (create_filename_seen_cache): New function.
2538 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2539 (filename_seen): Delete arg "first". New arg "cache". All callers
2540 updated.
2541 (output_source_filename_data): New struct.
2542 (output_source_filename): Delete arg "first". New arg "data".
2543 All callers updated.
2544 (sources_info): Delete local "first". New locals "data", "cleanups".
2545 Rewrite to use filename_seen_cache.
2546 (add_partial_filename_data): Delete member "first". New member
2547 "filename_seen_cache". All uses updated.
2548 (make_source_files_completion_list): Rewrite to use
2549 filename_seen_cache.
2550
f80c6f3f
DE
25512012-07-12 Doug Evans <dje@google.com>
2552
2553 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2554
0bfa869d
DE
25552012-07-10 Doug Evans <dje@google.com>
2556
f4dc4d17
DE
2557 PR gdb/13498
2558 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2559 all_type_unit_groups, type_unit_groups, tu_stats.
2560 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2561 All uses updated. Add type_unit_group to union "s".
2562 (type_unit_group): New struct.
2563 (IS_TYPE_UNIT_GROUP): New macro.
2564 (abbrev_table): Delete unused member "section".
2565 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2566 (dw2_get_cu): Assert not used with type_unit_group.
2567 (dw2_get_primary_cu): New function.
2568 (dw2_build_type_unit_groups_reader): New function.
2569 (dw2_build_type_unit_groups): New function.
2570 (dw2_get_file_names): Assert not called on type units.
2571 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2572 Redo loop to iterate over type unit groups instead of type units.
2573 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2574 (read_abbrev_offset): New function.
2575 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2576 updated.
2577 (create_partial_symtab): New function.
2578 (process_psymtab_comp_unit_reader): Assert not used with type units.
2579 Call create_partial_symtab.
2580 (process_psymtab_type_unit): Delete.
2581 (hash_type_unit_group, eq_type_unit_group): New functions.
2582 (allocate_type_unit_groups_table): New function.
2583 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2584 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2585 (create_type_unit_group, get_type_unit_group): New functions.
2586 (tu_abbrev_offset): New struct.
2587 (sort_tu_by_abbrev_offset): New function.
2588 (add_type_unit_group_to_table): New function.
2589 (build_type_unit_groups): New function.
2590 (build_type_psymtabs_reader): New function.
2591 (build_type_psymtab_dependencies): New function.
2592 (build_type_psymtabs): Rewrite.
2593 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2594 is seen in a type unit.
2595 (process_queue): Move symtab expansion debugging printfs here.
2596 Call process_full_type_unit for type units.
2597 (compute_symtab_includes): Assert not called for type units.
2598 (process_cu_includes): Don't call compute_symtab_includes for
2599 type units.
2600 (process_full_type_unit): New function.
2601 (process_imported_unit_die): Flag an error if called for type units.
2602 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2603 updated. Assert not called for type units.
2604 (read_file_scope): Call dwarf2_start_symtab.
2605 (setup_type_unit_groups): New function.
2606 (read_type_unit_scope): Rewrite.
2607 (abbrev_table_read_table): Initialize abbrev_table->offset.
2608 (abbrev_table_free_cleanup): New function.
2609 (dwarf2_start_symtab): New function.
2610 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2611 * buildsym.c (finish_block_internal): New arg "expandable".
2612 All callers updated.
2613 (start_symtab): Move most contents to ...
2614 (restart_symtab): ... here. New function.
2615 (reset_symtab_globals): New function.
2616 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2617 Call reset_symtab_globals.
2618 (end_symtab, end_expandable_symtab): New functions.
2619 (set_missing_symtab, augment_type_symtab): New functions.
2620 * buildsym.h (end_expandable_symtab): Declare.
2621 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2622 * psympriv.h (struct partial_symtab): New member "anonymous".
2623 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2624 anonymous psymtabs.
2625 (read_psymtabs_with_filename): Ditto.
2626 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2627 (expand_symtabs_matching_via_partial): Ditto.
2628 (dump_psymtab): Update.
0bfa869d
DE
2629 * dictionary.c (dict_add_pending): New function.
2630 * dictionary.h (dict_add_pending): Declare.
2631
45e58e77
DE
26322012-07-09 Doug Evans <dje@google.com>
2633
b74db436
DE
2634 * buildsym.c (start_subfile): Remove unnecessary check for
2635 name == NULL.
2636
fd55216c
DE
2637 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2638
6721b2ec
DE
2639 * dwarf2read.c (load_full_type_unit): Simplify.
2640
b4dd5633
DE
2641 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2642 to struct signatured_type **. All uses updated.
2643
45e58e77
DE
2644 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2645 All callers updated.
2646
e314d629
TT
26472012-07-09 Tom Tromey <tromey@redhat.com>
2648
2649 * c-exp.y (check_parameter_typelist): New function.
2650 (parameter_typelist): Call it.
2651 * eval.c (make_params): Handle '(void)' case.
2652 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2653 '(void)' case.
2654
aa7c7447
JK
26552012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2656
2657 * common/linux-ptrace.c: Include gdb_assert.h.
2658 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2659 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2660 stdint.h.
2661 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2662 functions.
2663 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2664 * linux-nat.c (linux_child_post_attach)
2665 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2666
889003ed
JK
26672012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2668
2669 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2670 nptl <2.7 bug workaround for core files.
2671
da559b09
JK
26722012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2673
2674 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2675 clearing.
2676 (save_siginfo): Remove.
2677 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2678 call.
2679 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2680 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2681 * linux-nat.h (struct lwp_info): Remove field siginfo.
2682
f865ee35
JK
26832012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2684
2685 Code cleanup for the next patch.
2686 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2687 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2688 call for it.
2689 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2690 (ia64_linux_stopped_data_address):
2691 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2692 the return value.
2693 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2694 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2695 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2696 call for it.
2697
76b83c51
JK
26982012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2699
2700 PR 14321
2701 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2702 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2703
a6fb9c08
TT
27042012-07-06 Tom Tromey <tromey@redhat.com>
2705
2706 * c-exp.y (DOTDOTDOT): New token.
2707 (func_mod, exp): Use parameter_typelist.
2708 (parameter_typelist): New production.
2709 (tokentab3): Add "..." token.
2710 * eval.c (make_params): Handle varargs.
2711 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2712 varargs.
2713
71918a86
TT
27142012-07-06 Tom Tromey <tromey@redhat.com>
2715
2716 PR exp/9608:
2717 * c-exp.y (%union) <tvec>: Change type.
2718 (func_mod): Now uses <tvec> type.
2719 (exp): Update for tvec change.
2720 (direct_abs_decl): Push the typelist.
2721 (func_mod): Return a typelist.
2722 (nonempty_typelist): Update for tvec change.
2723 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2724 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2725 * parse.c (pop_type_list): New function.
2726 (push_typelist): New function.
2727 (follow_types): Handle tp_function_with_arguments.
2728 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2729 (enum type_pieces) <tp_function_with_arguments>: New constant.
2730 (union type_stack_elt) <typelist_val>: New field.
2731 (push_typelist): Declare.
2732
fcde5961
TT
27332012-07-06 Tom Tromey <tromey@redhat.com>
2734
2735 * c-exp.y (%union) <type_stack>: New field.
2736 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2737 (ptr_operator_ts): New production.
2738 (ptype): Update.
2739 * parse.c (type_stack_reserve): New function.
2740 (check_type_stack_depth): Use it.
2741 (pop_type_stack, append_type_stack, push_type_stack)
2742 (get_type_stack, type_stack_cleanup): New functions.
2743 (follow_types): Handle tp_type_stack.
2744 (_initialize_parse): Simplify initialization.
2745 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2746 constant.
2747 (union type_stack_elt) <stack_val>: New field.
2748 (get_type_stack, append_type_stack, push_type_stack)
2749 (type_stack_cleanup): Declare.
2750
1a7d0ce4
TT
27512012-07-06 Tom Tromey <tromey@redhat.com>
2752
2753 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2754 Remove.
2755 (struct type_stack): New.
2756 * parse.c (type_stack, type_stack_size, type_stack_depth):
2757 Remove.
2758 (type_stack): New global.
2759 (parse_exp_in_context, check_type_stack_depth)
2760 (insert_into_type_stack, insert_type, push_type, push_type_int)
2761 (insert_type_address_space, pop_type, pop_type_int)
2762 (_initialize_parse): Update.
2763
16d01384
TT
27642012-07-06 Tom Tromey <tromey@redhat.com>
2765
2766 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2767 Remove %type.
2768
9bfc60bf
SP
27692012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2770
2771 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2772
d5161074
SP
27732012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2774 Jan Kratochvil <jan.kratochvil@redhat.com>
2775
2776 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2777 alloca with xmalloc/xfree.
2778
a74bc576
SP
27792012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2780
2781 * MAINTAINERS (Write After Approval): Add myself to the list.
2782
667e0a4b
DE
27832012-07-05 Doug Evans <dje@google.com>
2784
2785 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2786
34b536a8
HZ
27872012-07-05 Hui Zhu <hui_zhu@mentor.com>
2788
2789 * ax-gdb.c (cli/cli-utils.h): New include.
2790 (linespec.h): Ditto.
2791 (agent_eval_command_one): New function.
2792 (agent_command_1): Ditto.
2793 (agent_command): Call function agent_command_1.
2794 (agent_eval_command): Ditto.
2795 (_initialize_ax_gdb): Change help for "maint agent"
2796 and "maint agent-eval".
2797
e6f0bce7
HZ
27982012-07-05 Hui Zhu <hui_zhu@mentor.com>
2799
2800 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2801 * cli/cli-utils.c (check_for_argument): New function.
2802 * cli/cli-utils.h (check_for_argument): Ditto.
2803
1b3371b1
L
28042012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2805
2806 * NEWS: Mention x32 ABI support.
2807
23e2d720
L
28082012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2809
2810 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2811 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2812
2813 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2814 and pc_regnum_from_eax to -1. Update SP regnum from
2815 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2816 needed.
2817
2818 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2819 pc_regnum_from_eax.
2820
836bf454
JK
28212012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2822
2823 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2824 * dwarf2expr.h: Include gdbtypes.h.
2825 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2826 these forward declarations.
2827 (cu_offset, sect_offset): Move these ...
2828 * gdbtypes.h: Remove include dwarf2expr.h.
2829 (cu_offset, sect_offset): ... here.
2830
1e55e04f
L
28312012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2832
2833 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2834 (amd64_linux_sigtramp_code): This.
2835 (amd64_x32_linux_sigtramp_code): New.
2836 (LINUX_SIGTRAMP_LEN): Updated.
2837 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2838
7d0e21ad
JK
28392012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2840
2841 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2842
8775fd2d
JK
28432012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2844
2845 * config.in: Regenerate.
2846 * configure: Regenerate.
2847 * configure.ac: Remove check for gnu/libc-version.h.
2848 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2849 gnu/libc-version.h.
2850 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2851 variables libc_version, libc_major and libc_minor. Replace sscanf by
2852 inferior_has_bug. Extend the comment.
2853
fcb44371
JK
28542012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 * linux-thread-db.c (inferior_has_bug): New function.
2857 (thread_db_find_new_threads_silently): Return boolean as checked by
2858 inferior_has_bug, describe it in the comments.
2859 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2860 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2861 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2862 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2863 if UNTIL_NO_NEW,
2864
09406207
DE
28652012-07-02 Doug Evans <dje@google.com>
2866
0907af0c
DE
2867 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2868 related to queue management.
2869
09406207
DE
2870 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2871 instead of "debug dwarf2-die" in debugging printfs.
2872 (create_debug_info_hash_table_reader): Ditto.
2873 (create_debug_info_hash_table): Ditto.
2874 (init_dwo_file): Ditto.
2875 (init_cutu_and_read_dies): Add debugging printf.
2876 (init_cutu_and_read_dies_no_follow): Ditto.
2877 (process_psymtab_comp_unit_reader): Ditto.
2878
d3ce09f5
SS
28792012-07-02 Stan Shebs <stan@codesourcery.com>
2880
2881 Add target-side support for dynamic printf.
2882 * NEWS: Mention the additional style.
2883 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2884 (struct bp_location): New field cmd_bytecode.
2885 * breakpoint.c: Include format.h.
2886 (disconnected_dprintf): New global.
2887 (parse_cmd_to_aexpr): New function.
2888 (build_target_command_list): New function.
2889 (insert_bp_location): Call it.
2890 (remove_breakpoints_pid): Skip dprintf breakpoints.
2891 (print_one_breakpoint_location): Ditto.
2892 (dprintf_style_agent): New global.
2893 (dprintf_style_enums): Add dprintf_style_agent.
2894 (update_dprintf_command_list): Add agent case.
2895 (agent_printf_command): New function.
2896 (_initialize_breakpoint): Add new commands.
2897 * common/ax.def (printf): New bytecode.
2898 * ax.h (ax_string): Declare.
2899 * ax-gdb.h (gen_printf): Declare.
2900 * ax-gdb.c: Include cli-utils.h, format.h.
2901 (gen_printf): New function.
2902 (maint_agent_print_command): New function.
2903 (_initialize_ax_gdb): Add maint agent-printf command.
2904 * ax-general.c (ax_string): New function.
2905 (ax_print): Add printf disassembly.
2906 * Makefile.in (SFILES): Add format.c
2907 (COMMON_OBS): Add format.o.
2908 * common/format.h: New file.
2909 * common/format.c: New file.
2910 * printcmd.c: Include format.h.
2911 (ui_printf): Call parse_format_string.
2912 * remote.c (remote_state): New field breakpoint_commands.
2913 (PACKET_BreakpointCommands): New enum.
2914 (remote_breakpoint_commands_feature): New function.
2915 (remote_protocol_features): Add new BreakpointCommands entry.
2916 (remote_can_run_breakpoint_commands): New function.
2917 (remote_add_target_side_commands): New function.
2918 (remote_insert_breakpoint): Call it.
2919 (remote_insert_hw_breakpoint): Ditto.
2920 (_initialize_remote): Add new packet configuration for
2921 target-side breakpoint commands.
2922 * target.h (struct target_ops): New field
2923 to_can_run_breakpoint_commands.
2924 (target_can_run_breakpoint_commands): New macro.
2925 * target.c (update_current_target): Handle
2926 to_can_run_breakpoint_commands.
2927
2d7b58e8
JK
29282012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2929
2930 Execute -ix and -iex only after system and user gdbinit files.
2931 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2932 processing down after gdbinit files.
2933
8690e634
JK
29342012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2935
2936 Add fnmatch-gnu module.
2937 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2938 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2939 * gnulib/aclocal.m4: Regenerate.
2940 * gnulib/config.in: Regenerate.
2941 * gnulib/configure: Regenerate.
2942 * gnulib/import/dummy.c: Remove.
2943 * gnulib/import/Makefile.am: Regenerate.
2944 * gnulib/import/Makefile.in: Likewise.
2945 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2946 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2947 * gnulib/import/alloca.c: New file.
2948 * gnulib/import/alloca.in.h: Likewise.
2949 * gnulib/import/config.charset: Likewise.
2950 * gnulib/import/fnmatch.c: Likewise.
2951 * gnulib/import/fnmatch.in.h: Likewise.
2952 * gnulib/import/fnmatch_loop.c: Likewise.
2953 * gnulib/import/localcharset.c: Likewise.
2954 * gnulib/import/localcharset.h: Likewise.
2955 * gnulib/import/m4/alloca.m4: Likewise.
2956 * gnulib/import/m4/codeset.m4: Likewise.
2957 * gnulib/import/m4/configmake.m4: Likewise.
2958 * gnulib/import/m4/fcntl-o.m4: Likewise.
2959 * gnulib/import/m4/fnmatch.m4: Likewise.
2960 * gnulib/import/m4/glibc21.m4: Likewise.
2961 * gnulib/import/m4/localcharset.m4: Likewise.
2962 * gnulib/import/m4/locale-fr.m4: Likewise.
2963 * gnulib/import/m4/locale-ja.m4: Likewise.
2964 * gnulib/import/m4/locale-zh.m4: Likewise.
2965 * gnulib/import/m4/mbrtowc.m4: Likewise.
2966 * gnulib/import/m4/mbsinit.m4: Likewise.
2967 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2968 * gnulib/import/m4/mbstate_t.m4: Likewise.
2969 * gnulib/import/m4/stdbool.m4: Likewise.
2970 * gnulib/import/m4/wchar_h.m4: Likewise.
2971 * gnulib/import/m4/wctype_h.m4: Likewise.
2972 * gnulib/import/m4/wint_t.m4: Likewise.
2973 * gnulib/import/mbrtowc.c: Likewise.
2974 * gnulib/import/mbsinit.c: Likewise.
2975 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2976 * gnulib/import/mbsrtowcs-state.c: Likewise.
2977 * gnulib/import/mbsrtowcs.c: Likewise.
2978 * gnulib/import/ref-add.sin: Likewise.
2979 * gnulib/import/ref-del.sin: Likewise.
2980 * gnulib/import/stdbool.in.h: Likewise.
2981 * gnulib/import/streq.h: Likewise.
2982 * gnulib/import/strnlen1.c: Likewise.
2983 * gnulib/import/strnlen1.h: Likewise.
2984 * gnulib/import/verify.h: Likewise.
2985 * gnulib/import/wchar.in.h: Likewise.
2986 * gnulib/import/wctype.in.h: Likewise.
2987
202cbf1c
JK
29882012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2989
2990 Support shell wildcards for 'set auto-load safe-path'.
2991 * auto-load.c: Include fnmatch.h.
2992 (filename_is_in_dir): Rename to ...
2993 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2994 it. Update function comment. Rename dir_len to pattern_len. New
2995 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2996 messages. Use gdb_filename_fnmatch.
2997 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2998 pattern.
2999 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3000 * defs.h (gdb_filename_fnmatch): New declaration.
3001 * utils.c: Include fnmatch.h.
3002 (gdb_filename_fnmatch): New function.
3003
fb7b5af4
SDJ
30042012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3005
3006 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3007 `-probe' and `-probe-stap' options.
3008
72d0e2c5
YQ
30092012-07-01 Yao Qi <yao@codesourcery.com>
3010
3011 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
3012 always_inserted_off, and always_inserted_enums.
3013 Change always_inserted_mode's type to 'enum auto_boolean'.
3014 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
3015 callers.
3016 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
3017 of add_setshow_enum_cmd.
3018 * infrun.c: Remove can_use_displaced_stepping_auto,
3019 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
3020 can_use_displaced_stepping_enum.
3021 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
3022 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
3023 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
3024 add_setshow_enum_cmd.
3025
42e7ad6c
DE
30262012-06-30 Doug Evans <dje@google.com>
3027
3028 * dwarf2read.c (signatured_type): Make "per_cu" member first.
3029 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
3030 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
3031
39cf75f7
DE
30322012-06-29 Doug Evans <dje@google.com>
3033
3034 * linespec.c: #include "stack.h".
3035 (decode_line_with_current_source): Moved here from symtab.c and
3036 renamed from decode_line_spec. All callers updated.
3037 (decode_line_with_last_displayed): Moved here from breakpoint.c and
3038 renamed from decode_line_spec_1. All callers updated.
3039 * linespec.h (decode_line_with_current_source): Move declaration here
3040 from symtab.h and renamed from decode_line_spec.
3041 (decode_line_with_last_displayed): Move declaration here from symtab.h
3042 and renamed from decode_line_spec_1.
3043 * macrocmd.c: #include "linespec.h".
3044 * symtab.c: Remove #include "linespec.h".
3045
433df2d4
DE
30462012-06-28 Doug Evans <dje@google.com>
3047
1ce1cefd
DE
3048 * dwarf2read.c (get_cu_length): New function.
3049 (offset_in_cu_p, error_check_comp_unit_head): Call it.
3050 (create_debug_types_hash_table): Ditto.
3051 (init_cutu_and_read_dies): Ditto.
3052 (init_cutu_and_read_dies_no_follow): Ditto.
3053
3b80fe9b
DE
3054 * dwarf2read.c (dwarf2_find_base_address): Move definition.
3055
433df2d4
DE
3056 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
3057 (struct abbrev_table): Define.
3058 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
3059 abbrev_table.
3060 (init_cutu_and_read_dies): Update.
3061 (abbrev_table_alloc_abbrev): New function. Replaces
3062 dwarf_alloc_abbrev. All callers updated.
3063 (abbrev_table_add_abbrev): New function.
3064 (abbrev_table_lookup_abbrev): New function. Replaces
3065 dwarf2_lookup_abbrev. All callers updated.
3066 (abbrev_table_read_table): New function. Contents moved here from
3067 dwarf2_read_abbrevs.
3068 (dwarf2_read_abbrevs): Call it.
3069 (abbrev_table_free): New function.
3070 (dwarf2_free_abbrev_table): Call it.
3071
71caed83
SS
30722012-06-28 Stan Shebs <stan@codesourcery.com>
3073
3074 * osdata.c (info_osdata_command): Filter out "Title" columns
3075 from non-MI uses.
3076 * common/linux-osdata.c (struct osdata_type): Add title field.
3077 (osdata_table): Add titles to each entry.
3078 (linux_command_xfer_osdata): Add a column for title data.
3079
37ce89eb
SS
30802012-06-28 Stan Shebs <stan@codesourcery.com>
3081
3082 Make logging work for MI.
3083 * NEWS: Mention it.
3084 * interps.h (interp_set_logging_ftype): New typedef.
3085 (struct interp_procs): New field set_logging_proc.
3086 (current_interp_set_logging): Declare.
3087 * interps.c (current_interp_set_logging): New function.
3088 * cli/cli-logging.c: Include interps.h.
3089 (set_logging_redirect): Call current_interp_set_logging.
3090 (pop_output_files): Ditto.
3091 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3092 * mi/mi-console.h (mi_console_set_raw): Declare.
3093 * mi/mi-console.c (mi_console_set_raw): New function.
3094 * mi/mi-interp.c (saved_raw_stdout): New global.
3095 (mi_set_logging): New function.
3096 (_initialize_mi_interp): Add it to interp procs.
3097
659c9f3a
DE
30982012-06-28 Doug Evans <dje@google.com>
3099
a743abeb
DE
3100 * symtab.c (lookup_symbol_aux_objfile): Use
3101 ALL_OBJFILE_PRIMARY_SYMTABS.
3102
659c9f3a
DE
3103 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3104
da2d6d3d
JK
31052012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3106
3107 * common/buffer.c: Include inttypes.h and stdint.h.
3108 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3109
e5ef252a
PA
31102012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3111 Pedro Alves <palves@redhat.com>
3112
3113 * gdbthread.h (ALL_THREADS): New macro.
3114 (thread_list): Declare.
3115 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3116 going, but instead fall through to the stepping handling.
3117 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3118 the passed in signal. Adjust debug output.
3119 (resume_callback): Rename to ...
3120 (linux_nat_resume_callback): ... this. Pass the thread's last
3121 stop signal, if in "pass" state.
3122 (linux_nat_resume): Adjust to rename.
3123 (stop_wait_callback): New assertion. Don't respawn signals;
3124 instead let the LWP remain with SIGNALLED set.
3125 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3126 * remote.c (append_pending_thread_resumptions): New.
3127 (remote_vcont_resume): Call it.
3128 * target.h (target_resume): Extend comment.
3129
1d7975eb
IS
31302012-06-28 Iain Sandoe <iain@codesourcery.com>
3131
3132 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3133
2e3cf129
DE
31342012-06-27 Doug Evans <dje@google.com>
3135
3136 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3137 Delete have_addr_base, unused. All uses updated.
3138 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3139 (dwarf2_get_pc_bounds): Add ranges_base.
3140 (dwarf2_record_block_ranges): Ditto.
3141
1bb9788d
TT
31422012-06-27 Tom Tromey <tromey@redhat.com>
3143
3144 PR macros/7961:
3145 * varobj.c (varobj_create): Update.
3146 (varobj_set_value): Update.
3147 * tracepoint.c (validate_actionline): Update.
3148 (encode_actions_1): Update.
3149 * parse.c (parse_exp_1): Add 'pc' argument.
3150 (parse_exp_in_context): Add 'pc' argument. Change how
3151 expression_context_pc is set.
3152 (parse_expression): Update.
3153 (parse_field_expression): Update.
3154 * expression.h (parse_exp_1): Update.
3155 * eval.c (parse_to_comma_and_eval): Update.
3156 * breakpoint.c (set_breakpoint_condition): Update.
3157 (update_watchpoint): Update.
3158 (init_breakpoint_sal): Update
3159 (find_condition_and_thread): Update.
3160 (watch_command_1): Update.
3161 (update_breakpoint_locations): Update.
3162 * ada-lang.c (ada_read_renaming_var_value): Update.
3163 (create_excep_cond_exprs): Update.
3164
0bc3a05c
DE
31652012-06-27 Doug Evans <dje@google.com>
3166
3167 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3168 type units.
3169
4bdcc0c1
DE
31702012-06-26 Doug Evans <dje@google.com>
3171
3172 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3173 prototype.
3174 (error_check_comp_unit_head): New arg abbrev_section. All callers
3175 updated.
3176 (read_and_check_comp_unit_head): Ditto.
3177 (read_and_check_type_unit_head): Ditto.
3178
ee0bf529
SCR
31792012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3180
3181 New attribute 'last' for gdb.Symtab_and_line.
3182 * NEWS (Python Scripting): Add entry about the new attribute.
3183 * python/py-symtab.c (salpy_get_last): New function which
3184 implements the get method for the 'last' attribute of
3185 gdb.Symtab_and_line.
3186 (sal_object_getset): Add entry for the 'last' attribute.
3187
1c658ad5
DE
31882012-06-26 Doug Evans <dje@google.com>
3189
09262596
DE
3190 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3191 (dwo_sections): Add macinfo, macro.
3192 (dwarf2_locate_dwo_sections): Watch for macro sections.
3193 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3194 All callers updated. Handle DWO files.
3195
45cfd468
DE
3196 * NEWS: Mention new options "set debug dwarf2-read" and
3197 "set debug symtab-create".
3198 * dwarf2read.c (dwarf2_read_debug): New static global.
3199 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3200 (process_queue): Ditto.
3201 (process_full_comp_unit): Ditto.
3202 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3203 * elfread.c (elf_symfile_read): Add debugging printf.
3204 * minsyms.c (install_minimal_symbols): Ditto.
3205 * psymtab.c (allocate_psymtab): Ditto.
3206 * symfile.c (allocate_symtab): Ditto.
3207 * symtab.c (symtab_create_debug): New global.
3208 (_initialize_symtab): Add new option "set debug symtab-create".
3209 * symtab.h (symtab_create_debug): Declare.
3210
1c658ad5
DE
3211 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3212 (lookup_dwo_type_unit): Ditto.
3213
6fea9e18
L
32142012-06-26 Roland McGrath <roland@hack.frob.com>
3215 H.J. Lu <hongjiu.lu@intel.com>
3216
3217 * amd64-linux-nat.c: Include <sys/user.h>.
3218 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3219 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3220 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3221
3222 * configure.ac: Check if the fs_base and gs_base members of
3223 `struct user_regs_struct' exist.
3224 * config.in: Regenerated.
3225 * configure: Likewise.
3226
adb4fe3b
ME
32272012-06-25 Michael Eager <eager@eagercon.com>
3228
3229 PR python/14291
f782ad9b 3230 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3231
fc51cce1
MGD
32322012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3233
3234 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3235 register as a stack alignment in ARM mode.
3236
40a73391
JK
32372012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3238
3239 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3240 * gnulib/config.in: Regenerate.
3241 * gnulib/configure: Likewise.
3242 * gnulib/import/m4/extensions.m4: Update it.
3243 * gnulib/import/m4/gnulib-common.m4: Likewise.
3244 * gnulib/import/m4/memmem.m4: Likewise.
3245 * gnulib/import/m4/mmap-anon.m4: Likewise.
3246 * gnulib/import/m4/multiarch.m4: Likewise.
3247 * gnulib/import/stdint.in.h: Likewise.
3248
972daa01
YQ
32492012-06-24 Yao Qi <yao@codesourcery.com>
3250
3251 * corefile.c (write_memory_with_notification): New.
3252 * gdbcore.h: Declare write_memory_with_notification.
3253 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3254 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3255 * valops.c (value_assign): Likewise.
3256 * python/py-inferior.c (infpy_write_memory): Call
3257 'write_memory_with_notification'.
3258
8d6e0714
JK
32592012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3260
3261 * cc-with-index.sh: Use also -ex "set auto-load no".
3262
156942c7
DE
32632012-06-23 Doug Evans <dje@google.com>
3264
3265 PR 14125
3266 * NEWS: Document additions to .gdb_index.
3267 * dwarf2read.c: #include "gdb/gdb-index.h".
3268 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3269 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3270 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3271 (dwarf2_read_index): Recognize version 7.
3272 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3273 block_kind, domain): All callers updated.
3274 (dw2_find_symbol_file): Handle new index CU values.
3275 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3276 (add_index_entry): New args is_static, kind. All callers updated.
3277 (offset_type_compare, uniquify_cu_indices): New functions
3278 (symbol_kind): New function.
3279 (write_psymtabs_to_index): Remove duplicate CU values.
3280 (write_psymtabs_to_index): Write .gdb_index version 7.
3281
352b3eda
JB
32822012-06-22 Joel Brobecker <brobecker@adacore.com>
3283
3284 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3285 * configure: Regenerate.
3286
2678e2af
YQ
32872012-06-20 Yao Qi <yao@codesourcery.com>
3288
3289 * python/py-inferior.c: Update comments of infpy_read_memory
3290 and infpy_write_memory.
3291
95c391b6
TT
32922012-06-19 Tom Tromey <tromey@redhat.com>
3293
3294 PR exp/9514:
3295 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3296 (push_type_address_space): Remove.
3297 * parse.c (insert_into_type_stack): New function.
3298 (insert_type): Likewise.
3299 (insert_type_address_space): Rename from push_type_address_space.
3300 Insert tp_space_identifier.
3301 * c-exp.y (ptr_operator): New production.
3302 (abs_decl): Use ptr_operator.
3303 (space_identifier): Call insert_type_address_space.
3304 (ptype): Don't use const_or_volatile_or_space_identifier.
3305 (const_or_volatile_noopt): Call insert_type.
3306 (conversion_type_id, conversion_declarator): New productions.
3307 (operator): Use conversion_type_id.
3308
6ac9ef80
DE
33092012-06-18 Doug Evans <dje@google.com>
3310
422d65e7
DE
3311 * symtab.h (minimal_symbol): New member created_by_gdb.
3312 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3313 created by gdb.
3314 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3315 (search_symbols): Call it instead of lookup_symbol.
3316 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3317
49f6c839
DE
3318 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3319 Adjust address for DW_OP_GNU_addr_index.
3320 * dwarf2expr.h (dwarf_expr_context): Update comment.
3321 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3322 all callers updated. Handle TLS vars described with
3323 DW_OP_GNU_const_index.
3324 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3325 and DW_OP_GNU_const_index.
3326 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3327
6ac9ef80
DE
3328 * block.c (find_block_in_blockvector): Make explicit the fact that we
3329 ignore GLOBAL_BLOCK.
3330
4cd18215
TT
33312012-06-18 Tom Tromey <tromey@redhat.com>
3332
3333 * c-exp.y (operator): Remove trailing space after "delete" and
3334 "delete[]".
3335
a9b8d892
JK
33362012-06-18 Mark Kettenis <kettenis@gnu.org>
3337 Jan Kratochvil <jan.kratochvil@redhat.com>
3338
3339 Switch i386 and derived targets to ON_STACK.
3340 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3341 (amd64_dicos_init_abi): Remove its installment.
3342 * dicos-tdep.c (dicos_init_abi): Remove the
3343 set_gdbarch_call_dummy_location call. Update the comment here.
3344 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3345 (i386_dicos_init_abi): Remove its installment.
3346 * i386-tdep.c (i386_push_dummy_code): New function.
3347 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3348 i386_push_dummy_code.
3349
e2e4d78b
JK
33502012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 Remove stale dummy frames.
3353 * breakpoint.c: Include dummy-frame.h.
3354 (longjmp_breakpoint_ops): New variable.
3355 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3356 bp_longjmp_call_dummy.
3357 (bpstat_what, bptype_string, print_one_breakpoint_location)
3358 (init_bp_location): Support bp_longjmp_call_dummy.
3359 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3360 (set_longjmp_breakpoint_for_call_dummy)
3361 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3362 functions.
3363 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3364 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3365 FIXME comment and extend the other comment for bp_call_dummy.
3366 (set_longjmp_breakpoint_for_call_dummy)
3367 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3368 * dummy-frame.c: Include gdbthread.h.
3369 (pop_dummy_frame_bpt): New function.
3370 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3371 (dummy_frame_discard): New function.
3372 (cleanup_dummy_frames): Update the comment about longjmps.
3373 * dummy-frame.h (dummy_frame_discard): New declaration.
3374 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3375 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3376 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3377 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3378 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3379 keep_going if IS_LONGJMP and there is no other reason to stop.
3380
09d5912c
TT
33812012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3382
3383 * remote-sim.c (sim_command_completer): Initialize
3384 variable 'result'.
3385
1788b2d3
JK
33862012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3387
3388 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3389 * dwarf2loc.c (call_site_parameter_matches): Support
3390 CALL_SITE_PARAMETER_PARAM_OFFSET.
3391 (needs_dwarf_reg_entry_value): Push stub value.
3392 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3393 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3394 * gdbtypes.h (enum call_site_parameter_kind): New item
3395 CALL_SITE_PARAMETER_PARAM_OFFSET.
3396 (struct call_site.parameter.u): New field param_offset.
3397
24c5c679
JK
33982012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3399
3400 Code cleanup: Generalize call_site.parameter key.
3401 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3402 variable dwarf_reg. New variable kind_u. Update parameters to
3403 push_dwarf_reg_entry_value.
3404 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3405 * dwarf2expr.h (enum call_site_parameter_kind)
3406 (union call_site_parameter_u): Forward declarations.
3407 (struct dwarf_expr_context_funcs): Update parameters and their
3408 description for push_dwarf_reg_entry_value.
3409 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3410 * dwarf2loc.c (call_site_parameter_matches): New function.
3411 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3412 description. Use call_site_parameter_matches.
3413 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3414 Update parameters and their description.
3415 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3416 New variable kind_u. Adjust the caller for updated parameters.
3417 (needs_dwarf_reg_entry_value): Update parameters.
3418 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3419 instead of attr. Update for the changed fields of struct
3420 call_site_parameter.
3421 * gdbtypes.h: Include dwarf2expr.h.
3422 (enum call_site_parameter_kind): New.
3423 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3424 fb_offset into new union u.
3425
ac142d96
L
34262012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3427
3428 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3429 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3430 for x32.
3431
ba224c70
L
34322012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3433
3434 * amd64-linux-nat.c (compat_x32_clock_t): New.
3435 (compat_x32_siginfo_t): Likewise.
3436 (compat_x32_siginfo_from_siginfo): Likewise.
3437 (siginfo_from_compat_x32_siginfo): Likewise.
3438 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3439 and siginfo_from_compat_x32_siginfo for x32.
3440
7ecbc825
HZ
34412012-06-15 Hui Zhu <hui_zhu@mentor.com>
3442
3443 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3444
233dfcf0
L
34452012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3446
3447 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3448 instead of gdbarch_ptr_bit.
3449 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3450 (amd64_supply_native_gregset): Likewise.
3451 (amd64_collect_native_gregset): Likewise.
3452 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3453 (amd64_supply_xsave): Likewise.
3454 (amd64_collect_fxsave): Likewise.
3455 (amd64_collect_xsave): Likewise.
3456
6da38f42
L
34572012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3458
3459 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3460 (amd64_linux_read_description): Check DS segment register for
3461 x32 process.
3462
663b969e
TT
34632012-06-15 Tom Tromey <tromey@redhat.com>
3464
3465 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3466 init_cutu_and_read_dies.
3467
d6f05027
IS
34682012-06-15 Iain Sandoe <iain@codesourcery.com>
3469
3470 * MAINTAINERS (Write After Approval): Add myself to the list.
3471
6598ed07
TT
34722012-06-15 Tom Tromey <tromey@redhat.com>
3473
3474 * valops.c (value_find_oload_method_list): Now static.
3475 * value.h (value_find_oload_method_list): Don't declare.
3476
2b214ea6
TT
34772012-06-15 Tom Tromey <tromey@redhat.com>
3478
3479 * valops.c (find_overload_match): Use value_ind.
3480
a210c238
MR
34812012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3482
3483 * infrun.c (handle_inferior_event): Correct indentation.
3484
3771a44c
DE
34852012-06-14 Doug Evans <dje@google.com>
3486
3487 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3488 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3489 All uses updated.
3490 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3491 updated. Handle DEBUG_LOC_START_LENGTH.
3492 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3493 (loclist_describe_location): Ditto.
3494
1c5a993e
MR
34952012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3496
3497 PR backtrace/13866
3498 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3499 after hiding inline functions.
3500
0b155465
JB
35012012-06-13 Joel Brobecker <brobecker@adacore.com>
3502
3503 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3504 _initialize_inf_ttrace.
3505
45717bac
JB
35062012-06-13 Joel Brobecker <brobecker@adacore.com>
3507
3508 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3509 _initialize_hppa_hpux_nat.
3510
34370865
JB
35112012-06-13 Joel Brobecker <brobecker@adacore.com>
3512
3513 * remote-sim.c (sim_command_completer): Change type of return
3514 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3515
284c5a60
MK
35162012-06-13 Mark Kettenis <kettenis@gnu.org>
3517 Jan Kratochvil <jan.kratochvil@redhat.com>
3518
3519 PR tdep/14222
3520 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3521 stack on a 16-byte boundary.
3522
2535757a
TT
35232012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3524
3525 * jit.c (finalize_symtab): Set function's return type to 'void' by
3526 default.
3527
fff4548b
MK
35282012-06-13 Mark Kettenis <kettenis@gnu.org>
3529 H.J. Lu <hongjiu.lu@intel.com>
3530
5a83521a
MK
3531 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3532 Move bits common to both the classic LP64 and the new x32 ILP32
3533 ABI here.
3534 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3535 (amd64_x32_linux_init_abi): New function.
3536 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3537 subtype.
3538
fff4548b
MK
3539 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3540 * i386-tdep.c (i386_pseudo_register_name): Make public.
3541 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3542 * amd64-tdep.c (amd64_dword_names): Add "eip".
3543 (amd64_x32_pseudo_register_type): New function
3544 (amd64_x32_init_abi): New function.
3545
dd80ea3c
JK
35462012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3547
3548 PR build/14003
3549 * inferior.h (struct inferior_suspend_state): Comment out.
3550 (struct inferior): Comment out the field suspend.
3551 * infrun.c (struct infcall_suspend_state): Comment out the field
3552 inferior_suspend.
3553 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3554 out its assignment.
3555
50af5481
JK
35562012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3557
3558 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3559 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3560 function comment. Return ERROR for unresolved cases. Implement
3561 returning proper NAME.
3562 (yylex): Accept also NAME from classify_inner_name.
3563 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3564 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3565 LOC_TYPEDEF type.
3566 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3567
d55637df
TT
35682012-06-13 Tom Tromey <tromey@redhat.com>
3569
3570 * breakpoint.c (condition_completer): New function.
3571 (_initialize_breakpoint): Use it.
3572 * value.c (complete_internalvar): New function.
3573 * value.h (complete_internalvar): Declare.
3574
49c4e619
TT
35752012-06-13 Tom Tromey <tromey@redhat.com>
3576
3577 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3578 * breakpoint.c (catch_syscall_completer): Return a VEC.
3579 * cli/cli-cmds.c (complete_command): Update.
3580 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3581 (complete_on_enum): Likewise.
3582 * command.h: Include gdb_vecs.h.
3583 (completer_ftype): Change return type.
3584 (complete_on_cmdlist, complete_on_enum): Likewise.
3585 * completer.c (noop_completer, filename_completer)
3586 (location_completer): Return a VEC.
3587 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3588 to a VEC.
3589 (expression_completer, complete_line_internal, complete_line)
3590 (command_completer): Return a VEC.
3591 (gdb_completion_word_break_characters, line_completion_function):
3592 Update.
3593 * completer.h: Include gdb_vecs.h.
3594 (complete_line, noop_completer, filename_completer)
3595 (expression_completer, location_completer, command_completer):
3596 Update.
3597 * f-lang.c (f_word_break_characters): Return a VEC.
3598 * interps.c (interpreter_completer): Return a VEC.
3599 * language.h (struct language_defn)
3600 <la_make_symbol_completion_list>: Return a VEC.
3601 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3602 * symtab.c (free_completion_list): Take a VEC.
3603 (return_val_size, return_val_index): Remove.
3604 (return_val): Now a VEC.
3605 (completion_list_add_name): Update.
3606 (default_make_symbol_completion_list_break_on)
3607 (default_make_symbol_completion_list, make_symbol_completion_list)
3608 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3609 Return a VEC.
3610 (add_filename_to_list): Update.
3611 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3612 <list>: Now a VEC.
3613 (maybe_add_partial_symtab_filename): Update.
3614 (make_source_files_completion_list): Return a VEC.
3615 * symtab.h (default_make_symbol_completion_list_break_on)
3616 (default_make_symbol_completion_list, make_symbol_completion_list)
3617 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3618 (make_source_files_completion_list): Update.
3619
625e8578
TT
36202012-06-13 Tom Tromey <tromey@redhat.com>
3621
3622 * breakpoint.c (add_catch_command): Use completer_ftype.
3623 * breakpoint.h: Include command.h.
3624 (add_catch_command): Use completer_ftype.
3625 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3626 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3627 Use completer_ftype.
3628 * command.h (completer_ftype): New typedef.
3629 (set_cmd_completer): Use it.
3630 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3631 completer_ftype.
3632
5eb3b062
PA
36332012-06-13 Pedro Alves <palves@redhat.com>
3634
3635 Partial revert of previous change.
3636
3637 * serial.c (scb_base): New global.
3638 (serial_for_fd): New.
3639 (serial_open, serial_fdopen_ops): Link new serial in open serials
3640 chain.
3641 (do_serial_close): Unlink serial from the open serials chain.
3642
8b3ee56d
PA
36432012-06-12 Pedro Alves <palves@redhat.com>
3644
3645 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3646 threads here.
3647 (prepare_for_detach): No longer context switch here in non-stop
3648 mode.
3649 (fetch_inferior_event): Ditto.
3650 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3651 to the event thread before removing breakpoints. Switch to the
3652 event thread before inserting breakpoints and resuming.
3653 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3654 event thread before resuming.
3655 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3656 Switch to the event thread before removing breakpoints.
3657
5d60742e
EZ
36582012-06-12 Eli Zaretskii <eliz@gnu.org>
3659
3660 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3661 special characters correctly for the Windows shells. See
3662 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3663 report.
3664 [!__MINGW32__]: Remove extra double quote character from special
3665 characters.
3666
a6feecf7
SS
36672012-06-11 Stan Shebs <stan@codesourcery.com>
3668
3669 * ui-out.h: Remove #if 0 declarations.
3670 * ui-out.c: Remove #if 0 functions.
3671
ddefb60f
PA
36722012-06-11 Pedro Alves <palves@redhat.com>
3673
3674 * ser-base.c (run_async_handler_and_reschedule): New.
3675 (fd_event, push_event): Use it.
3676 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3677 reference count to 1.
3678 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3679 instead of xfree.
3680 (serial_is_open, serial_ref, serial_unref): New.
3681 * serial.h (serial_open): Adjust comment.
3682 (serial_is_open): Declare.
3683 (serial_close): Adjust comment.
3684 (serial_ref, serial_unref) Declare.
3685 (struct serial): New field 'refcnt'.
3686
d5ad6aa5
PA
36872012-06-11 Pedro Alves <palves@redhat.com>
3688
3689 Remove #if 0'd "connect" command, and unnecessary associated
3690 refcounting and serial reuse bits.
3691
3692 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3693 * serial.c (last_serial_opened): Delete.
3694 (scb_base): Delete.
3695 (serial_open): Adjust.
3696 (serial_for_fd): Delete.
3697 (serial_fdopen_ops, do_serial_close): Adjust.
3698 (serial_fdopen_ops): Adjust.
3699
318aa544
PA
37002012-06-11 Pedro Alves <palves@redhat.com>
3701
3702 * serial.c (do_serial_close): Remove early return when SCB is
3703 null.
3704
07261596
TT
37052012-06-11 Tom Tromey <tromey@redhat.com>
3706
3707 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3708
cc80f267
JK
37092012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3710
3711 Fix regression by the "ambiguous linespec" series.
3712 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3713 get_last_displayed_symtab and get_last_displayed_line and depending
3714 on CURSAL.
3715
356d9f9d
TT
37162012-06-11 Tom Tromey <tromey@redhat.com>
3717
3718 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3719 (dw2_find_symbol_file): Use it.
3720
232b8704
ME
37212012-06-11 Michael Eager <eager@eagercon.com>
3722
3723 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3724 * mips-linux-tdep.h (mips_signals): New
3725
e81a37f7
TT
37262012-06-11 Tom Tromey <tromey@redhat.com>
3727
3728 * infrun.c (handle_inferior_event)
3729 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3730 breakpoint.
3731 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3732 exception logic in all cases. Update comments.
3733 (insert_longjmp_resume_breakpoint): Set the exception resume
3734 breakpoint.
3735
2e81047f
MR
37362012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3737
3738 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3739
4e32eda7
SCR
37402012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3741
3742 * valarith.c (binop_types_user_defined_p): Fix a typo.
3743
18648a37 37442012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3745 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3746
3747 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3748 * arch-utils.h: Declare.
3749 * gdbarch.sh: Add return_in_first_hidden_param_p.
3750 * gdbarch.c, gdbarch.h: Regenerated.
3751 * infcall.c (call_function_by_hand): Call
3752 gdbarch_return_in_first_hidden_param_p instead of
3753 language_pass_by_reference.
3754
3755 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3756 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3757 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3758 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3759 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3760 `cplus_return_struct_by_reference'.
3761 (tic6x_return_value): Handle language cplusplus.
3762 (tic6x_return_in_first_hidden_param_p): New.
3763 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3764
034e5797
DE
37652012-06-07 Doug Evans <dje@google.com>
3766
3767 * dwarf2read.c (dwarf2_cu): Add comment.
3768
6a00aa1e
MR
37692012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3770
3771 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3772 variable.
3773 (mips_eabi_push_dummy_call): Likewise.
3774 (mips_n32n64_push_dummy_call): Likewise.
3775 (mips_o32_push_dummy_call): Likewise.
3776 (mips_o64_push_dummy_call): Likewise.
3777
eaa05d59
MR
37782012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3779
3780 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3781
de13fcf2
MR
37822012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3783
3784 * mips-tdep.c (mips_pseudo_register_type): Use
3785 mips_float_register_p.
3786
c3a01a22
PA
37872012-06-06 Pedro Alves <palves@redhat.com>
3788
3789 * infrun.c (handle_inferior_event): Remove calls to
3790 reinit_frame_cache that follow a context_switch call.
3791
d25f45d9
PA
37922012-06-06 Pedro Alves <palves@redhat.com>
3793
3794 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3795 context_switch and remove stale comment.
3796
359f5fe6
PA
37972012-06-06 Pedro Alves <palves@redhat.com>
3798
3799 * infrun.c (struct execution_control_state): Remove
3800 `new_thread_event' field.
3801 (handle_inferior_event): Simplify new threads handling; don't
3802 resume the inferior if we find a new thread.
3803
2d4c29c5
TS
38042012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3805
3806 * NEWS: Document the deprecation of SH's 'regs' command.
3807 * inferior.h (all_registers_info): Add function declaration.
3808 * sh-tdep.c (sh_show_regs): Remove variable.
3809 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3810 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3811 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3812 (sh_show_regs_command): Remove functions.
3813 (sh_gdbarch_init): Don't set sh_show_regs.
3814 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3815 'info all-registers'.
3816 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3817 (sh64_show_regs): Remove functions.
3818 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3819
f5f1cdb6
JK
38202012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 * configure.ac: Move development=true below AC_INIT.
3823 * configure: Regenerate.
3824
bf6309af
SS
38252012-06-05 Stan Shebs <stan@codesourcery.com>
3826
3827 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3828 gdb_stdout.
3829
45aa4659
JK
38302012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3831
3832 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3833 argument as ssize_t.
3834 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3835 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3836 * target.c (target_read_stack, target_write_memory)
3837 (target_write_raw_memory): Likewise.
3838 * target.h (target_read_stack, target_write_memory)
3839 (target_write_raw_memory): Likewise.
3840
1b162304
JK
38412012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3842
3843 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3844 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3845 * target.c (target_read_memory): Change LEN to ssize_t.
3846 * target.h (target_read_memory): Change LEN to ssize_t.
3847
8556afb4
PA
38482012-06-05 Pedro Alves <palves@redhat.com>
3849
3850 PR backtrace/13866
3851
3852 * breakpoint.c (until_break_command): Only fetch the selected
3853 frame after decode_line_1.
3854
fb139f32
PA
38552012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3856
3857 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3858 event breakpoint at _start, __start or main if a program
3859 interpreter is not found.
3860
a8e1bb34
JB
38612012-06-05 Joel Brobecker <brobecker@adacore.com>
3862
3863 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3864 Add declaration.
3865 * windows-tdep.c: #include "objfiles.h".
3866 (windows_iterate_over_objfiles_in_search_order): New function.
3867 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3868 iterate_over_objfiles_in_search_order gdbarch method to
3869 windows_iterate_over_objfiles_in_search_order.
3870 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3871
19630284
JB
38722012-06-05 Joel Brobecker <brobecker@adacore.com>
3873
3874 * gdbarch.sh: Add generation of
3875 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3876 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3877 (iterate_over_objfiles_in_search_order): New gdbarch method.
3878 * gdbarch.h, gdbarch.c: Regenerate.
3879 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3880 Add declaration.
3881 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3882 New function.
3883 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3884 out of lookup_symbol_aux_symtabs.
3885 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3886 call to lookup_symbol_aux_objfile.
3887 (struct global_sym_lookup_data): New type.
3888 (lookup_symbol_global_iterator_cb): New function.
3889 (lookup_symbol_global): Search for symbol using
3890 gdbarch_iterate_over_objfiles_in_search_order and
3891 lookup_symbol_global_iterator_cb.
3892 * findvar.c (struct minsym_lookup_data): New type.
3893 (minsym_lookup_iterator_cb): New function.
3894 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3895 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3896 and minsym_lookup_iterator_cb.
3897
67ff19f7
JB
38982012-06-05 Joel Brobecker <brobecker@adacore.com>
3899
3900 Revert the following patch:
3901 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3902 try locating the symbol in the symbol's own objfile first, before
3903 extending the search to all objfiles.
3904 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3905 out of lookup_symbol_aux_symtabs.
3906 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3907 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3908 Do not search EXCLUDE_OBJFILE.
3909 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3910 (lookup_symbol_global): Search for matches in the block's objfile
3911 first, before searching all other objfiles.
3912
ccab2054
JB
39132012-06-05 Joel Brobecker <brobecker@adacore.com>
3914
3915 * breakpoint.c (find_condition_and_thread): Stop parsing
3916 as soon as the first invalid keyword is found.
3917
e23d4a9c
JB
39182012-06-05 Joel Brobecker <brobecker@adacore.com>
3919
3920 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3921
70160166
JB
39222012-06-05 Joel Brobecker <brobecker@adacore.com>
3923
3924 * config/djgpp/djcheck.sh: Add copyright header.
3925
399501a5
JB
39262012-06-05 Joel Brobecker <brobecker@adacore.com>
3927
3928 * copyright.py (update_files, main): Fix path to update-copyright
3929 script.
3930
3770a159
JB
39312012-06-05 Joel Brobecker <brobecker@adacore.com>
3932
3933 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3934 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3935 for which a reminder to update by hand is printed.
3936
4aad0dfc
DE
39372012-06-04 Doug Evans <dje@google.com>
3938
3939 * buildsym.c (make_blockvector): Add comment.
3940
1f8cf220
PA
39412012-06-04 Pedro Alves <palves@redhat.com>
3942
3943 * arch-utils.c (default_gdb_signal_from_target): Delete.
3944 * arch-utils.h (default_gdb_signal_from_target): Delete.
3945 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3946 gdbarch_gdb_signal_from_target_p.
3947 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3948 predicate).
3949 * gdbarch.h: Regenerate.
3950 * gdbarch.c: Regenerate.
3951
86b49880
PA
39522012-06-04 Pedro Alves <palves@redhat.com>
3953
3954 * gdbarch.sh (gdb_signal_from_target): Mention that the
3955 implementation of the method must be host independent.
3956 * gdbarch.h: Regenerate.
3957
fe78531d
JK
39582012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3959
3960 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3961 parameters.
3962 (target_read_memory_bfd): New function.
3963 (symbol_file_add_from_memory): Use it.
3964
d790cf0a
DE
39652012-06-03 Doug Evans <dje@google.com>
3966
78e5175a
DE
3967 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3968 of primary symtab.
3969 (basic_lookup_transparent_type): Ditto.
3970
d790cf0a
DE
3971 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3972 (ALL_PRIMARY_SYMTABS): Use it.
3973 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3974 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3975 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3976 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3977 (basic_lookup_transparent_type): Ditto.
3978
c6e5ee5e
SDJ
39792012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3980
3981 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3982 it to optimize resolution of demangled name.
3983
a68ffae9
JK
39842012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3985
3986 * configure.ac (development): Define new variable.
3987 Call AC_CHECK_LIB for mcheck if $development.
3988 (ERROR_ON_WARNING): Enable it by default only if $development.
3989 * config.in: Regenerate.
3990 * configure: Regenerate.
3991
5299c1c4
JK
39922012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3993
3994 * target.c (target_read_memory): Make LEN argument as size_t.
3995 * target.h (target_read_memory): Likewise.
3996
39972012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3998
3999 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4000
0c56f59b
EBM
40012012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4002
4003 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4004 BookE interface for PowerPC server processors if not available
4005 in the Linux Kernel.
4006
71bdabee
KS
40072012-05-31 Keith Seitz <keiths@redhat.com>
4008
4009 * linespec.c (decode_objc): Add cleanup to free
4010 INFO.FILE_SYMTABS.
4011 (find_linespec_symbols): Add cleanup to free CLASSES.
4012 * symfile.c (find_separate_debug_file_by_debuglink): Add
4013 cleanup to free DEBUGLINK.
4014 * ui-out.c (clear_header_list): No need to check if
4015 HEADER_NEXT.COLHDR is NULL.
4016 Free HEADER_NEXT.COL_NAME.
4017
acbd605d
MGD
40182012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
4019
4020 * ada-lang.c (standard_lookup): Prevent uninitialized variable
4021 warning.
4022
65662cde
PA
40232012-05-30 Jeff Kenton <jkenton@tilera.com>
4024
4025 * configure.host (gdb_host_cpu): Handle tilegx*.
4026 (gdb_host): Handle tilegx-*-linux*.
4027 * tilegx-linux-nat.c: New file.
4028 * config/tilegx/linux.mh: New file.
4029
ade64f0e
PA
40302012-05-30 Jeff Kenton <jkenton@tilera.com>
4031
4032 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
4033 tilegx-linux-tdep.o.
4034 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
4035 tilegx-linux-tdep.c.
4036 * configure.tgt: Handle tilegx-*-linux*.
4037 * tilegx-tdep.h: New file.
4038 * tilegx-tdep.c: New file.
4039 * tilegx-linux-tdep.c: New file.
4040 * regformats/reg-tilegx.dat: New file.
4041
bb08bdbd
EBM
40422012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
4043
4044 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
4045 accounting of hw watchpoints on ppc.
4046
ebd86fb5
TJB
40472012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
4048
4049 * source.c (openp): Expand tilde in path entries.
4050
0a0edcd5
DE
40512012-05-29 Doug Evans <dje@google.com>
4052
98cc87bd
DE
4053 * buildsym.c (block_compar): Fix comment.
4054 (end_symtab): Fix and clarify some comments.
4055
0a0edcd5
DE
4056 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
4057 cleanup_undefined_types.
4058 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
4059 All callers updated.
4060
6f0c7050
TT
40612012-05-29 Tom Tromey <tromey@redhat.com>
4062
4063 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4064 fails.
4065 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4066 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4067 fails.
4068 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4069 fails.
4070
ec95993c
TG
40712012-05-29 Tristan Gingold <gingold@adacore.com>
4072
4073 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4074 (struct darwin_info): ... New struct.
4075 (solib_darwin_pspace_data): New variable.
4076 (darwin_pspace_data_cleanup): New function.
4077 (get_darwin_info): Likewise.
4078 (darwin_dyld_version_ok, darwin_load_image_infos)
4079 (darwin_solib_get_all_image_info_addr_at_init)
4080 (darwin_solib_read_all_image_info_addr): Add info argument.
4081 Adjust code.
4082 (darwin_current_sos): Use per pspace structure.
4083 (darwin_solib_create_inferior_hook): Likewise.
4084 (darwin_clear_solib): Likewise.
4085 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4086
ae25568b
PA
40872012-05-28 Pedro Alves <palves@redhat.com>
4088
4089 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4090 block that uses them. Clear ecss before handling each event.
4091
0c5bf5a9
JK
40922012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4093
4094 * solib-svr4.c (svr4_current_sos): New comment on
4095 svr4_current_sos_via_xfer_libraries fall back.
4096
bfb05775
JK
40972012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4100 it as a fallback for TYPE_IS_OPAQUE.
4101 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4102 symbols for lookup_symbol.
4103
685b1105
JK
41042012-05-24 John Steele Scott <toojays@toojays.net>
4105
4106 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4107 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4108 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4109 (check_producer): ... this new function, which also checks for ICC
4110 and caches the result.
4111 (producer_is_icc): New function.
4112 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4113 producer was ICC.
4114
22203bbf
PA
41152012-05-24 Pedro Alves <palves@redhat.com>
4116
4117 PR gdb/7205
4118
4119 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4120 (default_gdb_signal_to_target): ... this. Add comment.
4121 (default_gdb_signal_from_host): Rename to ...
4122 (default_gdb_signal_from_target): ... this. Add comment.
4123 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4124 (default_gdb_signal_to_target): ... this.
4125 (default_gdb_signal_from_host): Rename to ...
4126 (default_gdb_signal_from_target): ... this.
4127 * corelow.c (core_open): Adjust to naming change. Replace comment.
4128 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4129 (gdb_signal_from_target): ... this. Adjust to
4130 default_gdb_signal_from_host naming change. Extend comment.
4131 (gdb_signal_to_host): Rename to ...
4132 (gdb_signal_to_target): ... this. Adjust to
4133 default_gdb_signal_to_host naming change.
4134 * gdbarch.h, gdbarch.c: Renegerate.
4135
a493e3e2
PA
41362012-05-24 Pedro Alves <palves@redhat.com>
4137
4138 PR gdb/7205
4139
f782ad9b 4140 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4141
2ea28649
PA
41422012-05-24 Pedro Alves <palves@redhat.com>
4143
4144 PR gdb/7205
4145
4146 Replace target_signal with gdb_signal throughout.
4147
b09846a9
PA
41482012-05-24 Pedro Alves <palves@redhat.com>
4149
4150 PR tui/14159
4151
4152 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4153 string, instead of reusing the va_list argument.
4154
e77c107e
TT
41552012-05-24 Tom Tromey <tromey@redhat.com>
4156
4157 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4158 Remove.
4159
9fccedf7
DE
41602012-05-23 Doug Evans <dje@google.com>
4161
d50bd42b
DE
4162 * symtab.c (search_symbols): Formatting fixes.
4163 (print_symbol_info): Formatting fixes.
4164
9fccedf7
DE
4165 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4166 int64_t change to leb128 API.
4167 (read_encoded_value, decode_frame_entry_1): Ditto.
4168 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4169 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4170 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4171 (execute_stack_op): Ditto.
4172 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4173 (safe_read_uleb128, safe_read_sleb128): Ditto.
4174 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4175 (dwarf2_compile_expr_to_ax): Ditto.
4176 (locexpr_describe_location_piece): Ditto.
4177 (disassemble_dwarf_expression): Ditto.
4178 (locexpr_describe_location_1): Ditto.
4179
f3e0e960
SS
41802012-05-23 Stan Shebs <stan@codesourcery.com>
4181 Kwok Cheung Yeung <kcy@codesourcery.com>
4182
4183 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4184 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4185 (mi-cmd-info.o): New rule.
4186 * osdata.h (info_osdata_command): New declaration.
4187 * osdata.c (info_osdata_command): Change to non-static.
4188 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4189 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4190 * mi/mi-cmd-info.c: New file.
4191
c51fe631
DE
41922012-05-23 Doug Evans <dje@google.com>
4193
71cddcc1
DE
4194 * symtab.c (search_symbols): Pass NULL for file_matcher to
4195 expand_symtabs_matching if there are no files to match.
4196
c51fe631
DE
4197 * gdbtypes.c (lookup_typename): Simplify.
4198
a79378d4
PA
41992012-05-23 Pedro Alves <palves@redhat.com>
4200
4201 * arch-utils.h (default_target_signal_to_host): Delete.
4202 * arch-utils.c (default_target_signal_to_host): Delete.
4203 * gdbarch.sh (target_signal_to_host): Remove.
4204 * gdbarch.h, gdbarch.c: Regenerate.
4205
f664829e
DE
42062012-05-22 Doug Evans <dje@google.com>
4207
4208 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4209 "const gdb_byte *".
4210 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4211 (execute_cfa_program): Update to match API of leb128 functions.
4212 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4213 "const gdb_byte *".
4214 (read_unsigned_leb128, read_signed_leb128): Delete.
4215 (read_initial_length): Change type of buf argument to
4216 "const gdb_byte *".
4217 (read_encoded_value): Update to match API of leb128 functions.
4218 (decode_frame_entry): Change result to "const gdb_byte *", and
4219 similarly for "start" parameter.
4220 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4221 (dwarf2_build_frame_info): Change local frame_ptr to
4222 "const gdb_byte *".
4223 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4224 read_uleb128, read_sleb128. All callers updated.
4225 (safe_skip_leb128): New function.
4226 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4227 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4228 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4229 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4230 read_uleb128, read_sleb128.
4231 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4232 (execute_stack_op): Update to match API of leb128 functions.
4233 * dwarf2expr.h: #include "leb128.h".
4234 (read_uleb128, read_sleb128): Delete.
4235 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4236 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4237 * dwarf2loc.c (debug_loc_kind): New enum.
4238 (decode_debug_loc_addresses): New function.
4239 (decode_debug_loc_dwo_addresses): New function.
4240 (dwarf2_find_location_expression): Rewrite.
4241 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4242 (locexpr_describe_location_piece): Ditto.
4243 (disassemble_dwarf_expression): Ditto.
4244 (locexpr_describe_location_1): Ditto.
4245 (loclist_describe_location): Rewrite.
4246 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4247 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4248 (dwarf2_section_buffer_overflow_complaint): Renamed from
4249 dwarf2_macros_too_long_complaint. All callers updated.
4250 (skip_leb128): Delete.
4251 (init_cu_die_reader): Initialize reader->buffer_end.
4252 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4253 (skip_form_bytes): New arg buffer_end. All callers updated.
4254 Replace call to skip_leb128 with gdb_skip_leb128.
4255 (skip_unknown_opcode): New arg mac_end. All callers updated.
4256 (fill_in_loclist_baton): Initialize baton->from_dwo.
4257
837a1b32
MR
42582012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4259
4260 * mips-linux-nat.c (mips_linux_read_description): Use a more
4261 verbose error message.
4262
d0e64392
MR
42632012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4264
4265 * NEWS: Add MIPS/Linux DSP support.
4266 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4267 (SIGCONTEXT_DSPCTL): New macro.
4268 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4269 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4270 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4271 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4272 (N64_SIGCONTEXT_HI3): Likewise.
4273 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4274 (N64_SIGCONTEXT_LO3): Likewise.
4275 (N64_SIGCONTEXT_DSPCTL): Likewise.
4276 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4277 (mips_linux_o32_sigframe_init): Handle DSP registers.
4278 (mips_linux_n32n64_sigframe_init): Likewise.
4279
8bea7ed1
PM
42802012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4281
4282 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4283 call to abort.
4284
dab06dbe
PA
42852012-05-22 Pedro Alves <palves@redhat.com>
4286
4287 * target.h (store_waitstatus): Move declaration ...
4288 * inf-child.h (store_waitstatus): ... here.
4289 * target.c: Move inclusion of gdb_wait.h, and ...
4290 (store_waitstatus): ... this ...
4291 * inf-child.c: ... here.
4292 * linux-nat.c: Include inf-child.h.
4293 * rs6000-nat.c: Include inf-child.h.
4294 * spu-linux-nat.c: Include inf-child.h.
4295
43011e52
PM
42962012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4297
4298 * tracepoint.c (start_tracing): Add missing i18n markup.
4299 (stop_tracing, set_trace_user): Ditto.
4300 (set_trace_notes, set_trace_stop_notes): Ditto.
4301
b1af9e97
TT
43022012-05-21 Tom Tromey <tromey@redhat.com>
4303
4304 PR c++/7173:
4305 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4306 types.
4307 * value.h (value_cast_pointers): Update.
4308 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4309 (value_cast): Update.
4310 (update_search_result): New function.
4311 (do_search_struct_field): New, from search_struct_field. Check
4312 for ambiguous results.
4313 (search_struct_field): Rewrite.
4314 * infcall.c (value_arg_coerce): Update.
4315 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4316 value_cast_pointers.
4317 * ada-lang.c (ada_convert_actual): Update.
4318
e9e5e6b3
TT
43192012-05-21 Tom Tromey <tromey@redhat.com>
4320
4321 * macroexp.c (macro_stringify): Terminate the string.
4322
1564a261
JK
43232012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4324
4325 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4326 Describe it.
4327 * auto-load.c (auto_load_expand_dir_vars): New function.
4328 (auto_load_safe_path_vec_update): Use it, remove the
4329 substitute_path_component call thanks to it.
4330 (auto_load_objfile_script): Remove the debug_file_directory processing.
4331 Use auto_load_expand_dir_vars, remove the substitute_path_component
4332 call thanks to it.
4333 * configure: Regenerate.
4334 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4335 path. Escape $ also for $debugdir.
4336 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4337 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4338
a3ec0bb1
DE
43392012-05-20 Doug Evans <dje@google.com>
4340
4341 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4342 before use. Check for symtab->includes == NULL before scanning it.
4343
d467df4e
MR
43442012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4345
4346 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4347
4cc0665f
MR
43482012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4349
4350 * NEWS: Add microMIPS support and "set mips compression",
4351 "show mips compression" commands.
4352 * mips-tdep.h (mips_isa): New enum.
4353 (gdbarch_tdep): Add mips_isa.
4354 (mips_pc_is_mips16): Update prototype.
4355 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4356 * mips-tdep.c (mips_compression_mips16): New variable.
4357 (mips_compression_micromips): Likewise.
4358 (mips_compression_strings): Likewise.
4359 (mips_compression_string): Likewise.
4360 (is_mips16_isa, is_micromips_isa): New functions.
4361 (is_mips16_addr): Rename to...
4362 (is_compact_addr): ... this.
4363 (unmake_mips16_addr): Likewise to...
4364 (unmake_compact_addr): ... this.
4365 (make_mips16_addr): Likewise to...
4366 (make_compact_addr): ... this.
4367 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4368 functions.
4369 (mips_elf_make_msymbol_special): Handle microMIPS code.
4370 (msymbol_is_special): Rename to...
4371 (msymbol_is_mips16): ... this.
4372 (mips_make_symbol_special, mips_pc_is_mips16): Update
4373 accordingly.
4374 (msymbol_is_mips, msymbol_is_micromips): New functions.
4375 (mips16_to_32_reg): Rename to...
4376 (mips_reg3_to_reg): ... this.
4377 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4378 (mips_pc_isa): Likewise.
4379 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4380 code.
4381 (mips_fetch_instruction): Pass return status instead of printing
4382 an error message if requested. Handle microMIPS code. Bail out
4383 on an invalid ISA.
4384 (micromips_op): New macro.
4385 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4386 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4387 (b6s4_op, b7s3_reg): Likewise.
4388 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4389 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4390 (mips_insn_size): New function.
4391 (mips32_next_pc): Update mips_fetch_instruction call.
4392 (micromips_relative_offset7): New function.
4393 (micromips_relative_offset10): Likewise.
4394 (micromips_relative_offset16): Likewise.
4395 (micromips_pc_insn_size): Likewise.
4396 (micromips_bc1_pc): Likewise.
4397 (micromips_next_pc): Likewise.
4398 (unpack_mips16): Update mips_fetch_instruction call.
4399 (extended_mips16_next_pc): Update according to change to
4400 mips16_to_32_reg.
4401 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4402 code.
4403 (mips16_scan_prologue): Update mips_fetch_instruction call.
4404 Update according to change to mips16_to_32_reg.
4405 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4406 (mips_insn16_frame_base_sniffer): Likewise.
4407 (micromips_decode_imm9): New function.
4408 (micromips_scan_prologue): Likewise.
4409 (mips_micro_frame_cache): Likewise.
4410 (mips_micro_frame_this_id): Likewise.
4411 (mips_micro_frame_prev_register): Likewise.
4412 (mips_micro_frame_sniffer): Likewise.
4413 (mips_micro_frame_unwind): New variable.
4414 (mips_micro_frame_base_address): New function.
4415 (mips_micro_frame_base): New variable.
4416 (mips_micro_frame_base_sniffer): New function.
4417 (mips32_scan_prologue): Update mips_fetch_instruction call.
4418 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4419 rather than for MIPS16.
4420 (mips_insn32_frame_base_sniffer): Likewise.
4421 (mips_addr_bits_remove): Handle microMIPS code.
4422 (deal_with_atomic_sequence): Rename to...
4423 (mips_deal_with_atomic_sequence): ... this. Update the type
4424 of the variable used to hold an instruction. Remove the ISA bit
4425 check. Update mips_fetch_instruction call.
4426 (micromips_deal_with_atomic_sequence): New function.
4427 (deal_with_atomic_sequence): Likewise.
4428 (mips_about_to_return): Handle microMIPS code. Update
4429 mips_fetch_instruction call.
4430 (heuristic_proc_start): Check for the standard MIPS ISA rather
4431 than for MIPS16. Update mips_pc_is_mips16 and
4432 mips_fetch_instruction calls. Handle microMIPS code.
4433 (mips_push_dummy_code): Handle microMIPS code.
4434 (mips_eabi_push_dummy_call): Likewise.
4435 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4436 (mips_o64_push_dummy_call): Handle microMIPS code.
4437 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4438 (is_delayed): Remove function.
4439 (mips_single_step_through_delay): Replace the call to is_delayed
4440 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4441 Handle microMIPS code.
4442 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4443 microMIPS code.
4444 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4445 call.
4446 (micromips_in_function_epilogue_p): New function.
4447 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4448 call.
4449 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4450 Handle microMIPS.
4451 (gdb_print_insn_mips): Likewise.
4452 (mips_breakpoint_from_pc): Likewise.
4453 (mips_remote_breakpoint_from_pc): New function.
4454 (mips32_instruction_has_delay_slot): Simplify making use of the
4455 updated mips_fetch_instruction interface.
4456 (micromips_instruction_has_delay_slot): New function.
4457 (mips16_instruction_has_delay_slot): Simplify making use of the
4458 updated mips_fetch_instruction interface.
4459 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4460 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4461 calls. Handle microMIPS code.
4462 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4463 (mips_skip_trampoline_code): Handle microMIPS code.
4464 (global_mips_compression): New function.
4465 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4466 file flags. Register the microMIPS remote breakpoint handler
4467 and heuristic frame unwinder.
4468 (show_mips_compression): New function.
4469 (_initialize_mips_tdep): Add the "set mips compression" and
4470 "show mips compression" commands.
4471
22e048c9
SDJ
44722012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4473
4474 * ada-lang.c:
4475 * ada-tasks.c:
4476 * ada-varobj.c:
4477 * amd64-darwin-tdep.c:
4478 * arm-symbian-tdep.c:
4479 * arm-tdep.c:
4480 * avr-tdep.c:
4481 * ax-gdb.c:
4482 * bfin-linux-tdep.c:
4483 * breakpoint.c:
4484 * c-valprint.c:
4485 * cli/cli-cmds.c:
4486 * coffread.c:
4487 * cp-support.c:
4488 * cris-tdep.c:
4489 * dwarf2-frame-tailcall.c:
4490 * dwarf2-frame.c:
4491 * dwarf2expr.c:
4492 * dwarf2loc.c:
4493 * dwarf2read.c:
4494 * elfread.c:
4495 * eval.c:
4496 * expprint.c:
4497 * f-valprint.c:
4498 * frv-tdep.c:
4499 * h8300-tdep.c:
4500 * hppa-hpux-tdep.c:
4501 * hppa-tdep.c:
4502 * hppanbsd-tdep.c:
4503 * i386-nto-tdep.c:
4504 * i386-tdep.c:
4505 * i387-tdep.c:
4506 * ia64-tdep.c:
4507 * jit.c:
4508 * linespec.c:
4509 * linux-tdep.c:
4510 * lm32-tdep.c:
4511 * m2-valprint.c:
4512 * m32c-tdep.c:
4513 * m32r-rom.c:
4514 * m32r-tdep.c:
4515 * m68k-tdep.c:
4516 * m68klinux-tdep.c:
4517 * mi/mi-main.c:
4518 * microblaze-tdep.c:
4519 * mips-linux-tdep.c:
4520 * mips-tdep.c:
4521 * mn10300-tdep.c:
4522 * p-valprint.c:
4523 * parse.c:
4524 * ppc-linux-tdep.c:
4525 * ppc-sysv-tdep.c:
4526 * printcmd.c:
4527 * python/py-finishbreakpoint.c:
4528 * python/py-inferior.c:
4529 * python/py-infthread.c:
4530 * python/py-type.c:
4531 * python/python.c:
4532 * remote-fileio.c:
4533 * remote-m32r-sdi.c:
4534 * remote-mips.c:
4535 * reverse.c:
4536 * rl78-tdep.c:
4537 * rs6000-aix-tdep.c:
4538 * rs6000-tdep.c:
4539 * s390-tdep.c:
4540 * score-tdep.c:
4541 * sh64-tdep.c:
4542 * skip.c:
4543 * solib-darwin.c:
4544 * solib-dsbt.c:
4545 * solib-frv.c:
4546 * sparc-tdep.c:
4547 * spu-multiarch.c:
4548 * spu-tdep.c:
4549 * stack.c:
4550 * symfile.c:
4551 * symtab.c:
4552 * tic6x-tdep.c:
4553 * tracepoint.c:
4554 * v850-tdep.c:
4555 * valarith.c:
4556 * valprint.c:
4557 * value.c:
4558 * xcoffread.c:
4559 * xtensa-tdep.c:
4560 * ada-lang.c:
4561 * ada-tasks.c:
4562 * ada-varobj.c:
4563 * amd64-darwin-tdep.c:
4564 * arm-symbian-tdep.c:
4565 * arm-tdep.c: Delete unused variables.
4566
aff139ff
JK
45672012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4568
4569 Rename $ddir to $datadir.
4570 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4571 * auto-load.c (auto_load_safe_path_vec_update)
4572 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4573 * configure: Regenerate.
4574 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4575 Likewise. Remove the 'use $ddir' help string.
4576
f7bfa992
JK
45772012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4578
4579 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4580 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4581
9cb709b6
TT
45822012-05-18 Tom Tromey <tromey@redhat.com>
4583
4584 PR exp/13907:
4585 * valprint.h (struct value_print_options) <symbol_print>: New
4586 field.
4587 * valprint.c (user_print_options): Add default for symbol_print.
4588 (show_symbol_print): New function.
4589 (generic_val_print): Respect symbol_print.
4590 (_initialize_valprint): Add "print symbol" setting.
4591 * f-valprint.c (f_val_print): Respect symbol_print.
4592 * c-valprint.c (c_val_print): Respect symbol_print.
4593 * NEWS: Update.
4594 * printcmd.c (print_address_symbolic): Return int. Ignore some
4595 zero-size symbols.
4596 (print_address_demangle): Return int.
4597 * defs.h: (print_address_symbolic): Return int.
4598 * value.h (print_address_demangle): Return int.
4599
b012acdd
TT
46002012-05-18 Tom Tromey <tromey@redhat.com>
4601
4602 * valprint.c (val_print_string): Don't print leading space.
4603 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4604 print space before string or vtbl.
4605 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4606 before string.
4607 * jv-valprint.c (java_value_print): Print space before string.
4608 * go-valprint.c (print_go_string): Print space before string.
4609 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4610 space before string.
4611 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4612 space before string or vtbl.
4613 * auxv.c (fprint_target_auxv): Print space after address.
4614
1d51a733
TT
46152012-05-18 Tom Tromey <tromey@redhat.com>
4616
4617 * printcmd.c (print_address_demangle): Remove special case for 0.
4618
edf0c1b7
TT
46192012-05-18 Tom Tromey <tromey@redhat.com>
4620
4621 * printcmd.c (print_address_demangle): Add 'opts' argument.
4622 * p-valprint.c (pascal_val_print): Update.
4623 * jv-valprint.c (java_val_print): Update.
4624 * value.h: Update.
4625 * valprint.c (generic_val_print): Update.
4626 (print_function_pointer_address): Add 'options' argument. Remove
4627 'addressprint' argument. Update.
4628 * m2-valprint.c (print_unpacked_pointer): Update.
4629 * gnu-v3-abi.c (print_one_vtable): Update.
4630 (gnuv3_print_method_ptr): Update.
4631 * f-valprint.c (f_val_print): Update.
4632 * cp-valprint.c (cp_print_value_fields): Update.
4633 * valprint.h (print_function_pointer_address): Update.
4634 * c-valprint.c (c_val_print): Update.
4635
9703b513
TT
46362012-05-18 Tom Tromey <tromey@redhat.com>
4637
4638 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4639 directly corresponding to the found psymtab.
4640 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4641 (dw2_find_pc_sect_symtab): Use it.
4642 * block.h (blockvector_contains_pc): Declare.
4643 * block.c (find_block_in_blockvector): New function.
4644 (blockvector_for_pc_sect): Use it.
4645 (blockvector_contains_pc): New function.
4646
5a439849
MR
46472012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4648
4649 * mips-tdep.h (mips_write_pc): New prototype.
4650 * mips-tdep.c (mips_write_pc): Make external, add description.
4651 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4652 add description.
4653
8376de04
MR
46542012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4655
4656 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4657 mips_regnum->pc.
4658 (mips_unwind_pc, mips_write_pc): Likewise.
4659 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4660 gdbarch_read_pc.
4661
d3581e61
JB
46622012-05-17 Joel Brobecker <brobecker@adacore.com>
4663
4664 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4665 proc_warn, proc_error, proc_get_status, proc_flags,
4666 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4667 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4668 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4669 proc_stop_process, proc_wait_for_stop, proc_run_process,
4670 proc_set_traced_signals, proc_set_traced_faults,
4671 proc_set_traced_sysentry, proc_set_traced_sysexit,
4672 proc_set_held_signals, proc_get_held_signals,
4673 proc_get_traced_signals, proc_get_traced_faults,
4674 proc_get_traced_sysentry, proc_get_traced_sysexit,
4675 proc_clear_current_fault, proc_set_current_signal,
4676 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4677 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4678 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4679 proc_get_current_thread, proc_get_current_thread,
4680 proc_get_current_thread, proc_update_threads,
4681 proc_update_threads, proc_update_threads, proc_update_threads,
4682 proc_iterate_over_threads, procfs_find_new_threads,
4683 procfs_pid_to_str): Make static. Remove advance declaration.
4684 (proc_cursig): Make static. Conditionalized defintion on
4685 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4686 (proc_syscall, proc_set_kill_on_last_close,
4687 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4688 proc_get_pending_signals, proc_get_signal_actions,
4689 proc_trace_signal, proc_ignore_signal): Delete.
4690
81b9b86e
SDJ
46912012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4692
4693 * coffread.c (cs_section_address): Passing proper argument for
4694 `bfd_get_section_vma'.
4695 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4696 `bfd_get_section_flags'.
4697 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4698 `bfd_get_section_vma'.
4699
abc9d0dc
TT
47002012-05-16 Tom Tromey <tromey@redhat.com>
4701
4702 PR macros/13205:
4703 * macrotab.h: (macro_define_special): Declare.
4704 (enum macro_special_kind): New.
4705 (struct macro_definition) <argc, replacement>: Update comments.
4706 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4707 (macro_define_object_internal): New function.
4708 (macro_define_object): Use it.
4709 (macro_define_special): New function.
4710 (fixup_definition): New function.
4711 (macro_lookup_definition, foreach_macro_in_scope)
4712 (foreach_macro): Use fixup_definition.
4713 * macroexp.h (macro_stringify): Declare.
4714 * macroexp.c (free_buffer_return_text): New function.
4715 (stringify): Constify "arg".
4716 (macro_stringify): New function.
4717 * dwarf2read.c (macro_start_file): Call macro_define_special.
4718
6a3a010b 47192012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4720 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4721
4722 * breakpoint.h (bp_location): Add related_address member.
4723 * inferior.h (get_return_value): Take a pointer to struct value
4724 instead of struct type for the function requested.
4725 * value.h (using_struct_return): Likewise.
4726 * gdbarch.sh (return_value): Take a pointer to struct value
4727 instead of struct type for the function requested.
4728 * breakpoint.c (set_breakpoint_location_function): Initialize
4729 related_address for bp_gnu_ifunc_resolver breakpoints.
4730 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4731 requested function's address to gdbarch_return_value.
4732 * eval.c (evaluate_subexp_standard): Pass the requested
4733 function's address to using_struct_return.
4734 * infcall.c (call_function_by_hand): Pass the requested
4735 function's address to using_struct_return and
4736 gdbarch_return_value.
4737 * infcmd.c (get_return_value): Take a pointer to struct value
4738 instead of struct type for the function requested.
4739 (print_return_value): Update accordingly.
4740 (finish_command_continuation): Likewise.
4741 * stack.c (return_command): Pass the requested function's
4742 address to using_struct_return and gdbarch_return_value.
4743 * value.c (using_struct_return): Take a pointer to struct value
4744 instead of struct type for the function requested. Pass the
4745 requested function's address to gdbarch_return_value.
4746 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4747 New function_value member, replacing function_type.
4748 (bpfinishpy_dealloc): Update accordingly.
4749 (bpfinishpy_pre_stop_hook): Likewise.
4750 (bpfinishpy_init): Likewise. Record the requested function's
4751 address.
4752 * mips-tdep.c (mips_fval_reg): New enum.
4753 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4754 words put in GP registers.
4755 (mips_o64_push_dummy_call): Update a comment.
4756 (mips_o32_return_value): Take a pointer to struct value instead
4757 of struct type for the function requested and use it to check if
4758 using the MIPS16 calling convention. Return the designated
4759 general purpose registers for floating-point values returned in
4760 MIPS16 mode.
4761 (mips_o64_return_value): Likewise.
4762 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4763 (ppc_sysv_abi_broken_return_value): Likewise.
4764 (ppc64_sysv_abi_return_value): Likewise.
4765 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4766 value instead of struct type for the function requested.
4767 * amd64-tdep.c (amd64_return_value): Likewise.
4768 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4769 * arm-tdep.c (arm_return_value): Likewise.
4770 * avr-tdep.c (avr_return_value): Likewise.
4771 * bfin-tdep.c (bfin_return_value): Likewise.
4772 * cris-tdep.c (cris_return_value): Likewise.
4773 * frv-tdep.c (frv_return_value): Likewise.
4774 * h8300-tdep.c (h8300_return_value): Likewise.
4775 (h8300h_return_value): Likewise.
4776 * hppa-tdep.c (hppa32_return_value): Likewise.
4777 (hppa64_return_value): Likewise.
4778 * i386-tdep.c (i386_return_value): Likewise.
4779 * ia64-tdep.c (ia64_return_value): Likewise.
4780 * iq2000-tdep.c (iq2000_return_value): Likewise.
4781 * lm32-tdep.c (lm32_return_value): Likewise.
4782 * m32c-tdep.c (m32c_return_value): Likewise.
4783 * m32r-tdep.c (m32r_return_value): Likewise.
4784 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4785 * m68k-tdep.c (m68k_return_value): Likewise.
4786 (m68k_svr4_return_value): Likewise.
4787 * m88k-tdep.c (m88k_return_value): Likewise.
4788 * mep-tdep.c (mep_return_value): Likewise.
4789 * microblaze-tdep.c (microblaze_return_value): Likewise.
4790 * mn10300-tdep.c (mn10300_return_value): Likewise.
4791 * moxie-tdep.c (moxie_return_value): Likewise.
4792 * mt-tdep.c (mt_return_value): Likewise.
4793 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4794 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4795 (ppc_sysv_abi_broken_return_value): Likewise.
4796 (ppc64_sysv_abi_return_value): Likewise.
4797 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4798 * rl78-tdep.c (rl78_return_value): Likewise.
4799 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4800 * rx-tdep.c (rx_return_value): Likewise.
4801 * s390-tdep.c (s390_return_value): Likewise.
4802 * score-tdep.c (score_return_value): Likewise.
4803 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4804 (sh_return_value_fpu): Likewise.
4805 * sh64-tdep.c (sh64_return_value): Likewise.
4806 * sparc-tdep.c (sparc32_return_value): Likewise.
4807 * sparc64-tdep.c (sparc64_return_value): Likewise.
4808 * spu-tdep.c (spu_return_value): Likewise.
4809 * tic6x-tdep.c (tic6x_return_value): Likewise.
4810 * v850-tdep.c (v850_return_value): Likewise.
4811 * vax-tdep.c (vax_return_value): Likewise.
4812 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4813 * xtensa-tdep.c (xtensa_return_value): Likewise.
4814 * gdbarch.c: Regenerate.
4815 * gdbarch.h: Regenerate.
4816
29ca12b3
TT
48172012-05-15 Tom Tromey <tromey@redhat.com>
4818
4819 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4820
588ae58c
JB
48212012-05-15 Joel Brobecker <brobecker@adacore.com>
4822
4823 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4824 of command in two error message.
4825
855a6e68
JB
48262012-05-15 Joel Brobecker <brobecker@adacore.com>
4827
4828 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4829
d634f2de
JB
48302012-05-15 Joel Brobecker <brobecker@adacore.com>
4831
4832 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4833
9cc815f5
JK
48342012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4835
4836 * NEWS (show auto-load scripts-directory): Add forgotten command.
4837
6a609e58
JK
48382012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4839
4840 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4841 parameters.
4842
ac1438b5
L
48432012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4844
4845 * amd64-tdep.c: Include features/i386/x32.c and
4846 features/i386/x32-avx.c.
4847 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4848 initialize_tdesc_x32_avx.
4849
e7e0cddf
SS
48502012-05-14 Stan Shebs <stan@codesourcery.com>
4851
4852 Add dynamic printf.
4853 * breakpoint.h (enum bptype): New type bp_dprintf.
4854 (struct breakpoint): New field extra_string.
4855 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4856 (create_breakpoint): Add extra_string arg.
4857 * breakpoint.c (dprintf_breakpoint_ops): New.
4858 (is_breakpoint): Add bp_dprintf.
4859 (bpstat_what): Add dprintf case.
4860 (bptype_string): Ditto.
4861 (print_one_breakpoint_location): Ditto.
4862 (init_bp_location): Ditto.
4863 (bkpt_print_mention): Ditto.
4864 (dprintf_style_enums): New array.
4865 (dprintf_style): New global.
4866 (dprintf_function): New global.
4867 (dprintf_channel): New global.
4868 (update_dprintf_command_list): New function.
4869 (update_dprintf_commands): New function.
4870 (init_breakpoint_sal): Add extra_string argument, handle it.
4871 (create_breakpoint_sal): Add extra_string argument.
4872 (create_breakpoints_sal): Add extra_string argument, update callers.
4873 (find_condition_and_thread): Add extra argument.
4874 (create_breakpoint): Add extra_string argument, record it.
4875 (dprintf_command): New function.
4876 (break_command_1): Add arg to create_breakpoint call.
4877 (handle_gnu_v3_exceptions): Ditto.
4878 (trace_command): Ditto.
4879 (ftrace_command): Ditto.
4880 (strace_command): Ditto.
4881 (bkpt_print_mention): Add dprintf case.
4882 (create_breakpoint_sal_default): Add extra_string argument.
4883 (_initialize_breakpoint): Add new commands.
4884 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4885 * python/py-breakpoint.c (bppy_init): Ditto.
4886 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4887
8ae38c14
MR
48882012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4889
4890 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4891
9f676e66
SCR
48922012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4893
4894 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4895 unsigned long long.
4896
7efc75aa
SCR
48972012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4898
4899 Add a new function gdb.find_pc_line to the Python API.
4900 * NEWS (Python Scripting): Add entry about the new function.
4901 * python/python.c (gdbpy_find_pc_line): New function which
4902 implements gdb.find_pc_line.
4903 (GdbMethods): Add entry for the new function.
4904
70af3797
PA
49052012-05-12 Pedro Alves <palves@redhat.com>
4906
4907 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4908 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4909
06da564e
EZ
49102012-05-12 Eli Zaretskii <eliz@gnu.org>
4911
4912 * inferior.c: Include completer.h
4913 (initialize_inferiors): Set completer of add-inferior to
4914 filename_completer.
4915
0288cee2
L
49162012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4917
4918 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4919 gdbarch_ptr_bit for x32 core dump.
4920
f6537a2c
L
49212012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4922
4923 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4924 and features/i386/x32-avx-linux.c.
4925
85d4a676
SS
49262012-05-11 Stan Shebs <stan@codesourcery.com>
4927 Kwok Cheung Yeung <kcy@codesourcery.com>
4928
4929 * NEWS: Describe new info os commands.
4930 * common/linux-osdata.c (PID_T, TIME_T): Define.
4931 (MAX_PID_T_STRLEN): New.
4932 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4933 MAX_PID_T_STRLEN.
4934 (command_from_pid): Add comment. Change to use PID_T.
4935 (commandline_from_pid): Change to use PID_T.
4936 (user_from_pid): Add comment.
4937 (get_process_owner): Add comment. Change to use PID_T and
4938 MAX_PID_T_STRLEN.
4939 (get_number_of_cpu_cores): Add comment.
4940 (get_cores_used_by_process): Add comment. Change to use PID_T and
4941 MAX_PID_T_STRLEN.
4942 (linux_xfer_osdata_processes): Change to use PID_T and
4943 MAX_PID_T_STRLEN.
4944 (compare_processes): New function.
4945 (linux_xfer_osdata_processgroups): New function.
4946 (linux_xfer_osdata_threads): Change to use PID_T.
4947 (linux_xfer_osdata_fds): New function.
4948 (format_socket_state, print_sockets): New functions.
4949 (union socket_addr): New union.
4950 (linux_xfer_osdata_isockets): New function.
4951 (time_from_time_t, group_from_gid): New functions.
4952 (linux_xfer_osdata_shm): New function.
4953 (linux_xfer_osdata_sem): New function.
4954 (linux_xfer_osdata_msg): New function.
4955 (linux_xfer_osdata_modules): New function.
4956 (osdata_table): Add new entries.
4957 * common/buffer.c (buffer_xml_printf): Add support for long and
4958 long long format specifiers.
4959
f24afd6d
L
49602012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4961
4962 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4963 (tdesc_x32_avx_linux): Likewise.
4964
7349ff92
JK
49652012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 Implement multi-component --with-auto-load-dir.
4968 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4969 entries.
4970 (--with-auto-load-safe-path): Update the default value description.
4971 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4972 New.
4973 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4974 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4975 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4976 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4977 "set auto-load scripts-directory".
4978 * config.in: Regenerate.
4979 * configure: Regenerate.
4980 * configure.ac (--with-auto-load-dir): New configure option.
4981 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4982
6dea1fbd
JK
49832012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4984
4985 Provide $ddir substitution for --with-auto-load-safe-path.
4986 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4987 entries.
4988 * auto-load.c: Include observer.h.
4989 (auto_load_safe_path_vec_update): Call substitute_path_component for
4990 each component. New variable ddir_subst.
4991 (auto_load_gdb_datadir_changed): New function.
4992 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4993 AUTO_LOAD_SAFE_PATH. New comment.
4994 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4995 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4996 * config.in: Regenerate.
4997 * configure: Regenerate.
4998 * configure.ac (--auto-load-safe-path): Rename
4999 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5000 GDB_DATADIR/auto-load.
5001 * defs.h (substitute_path_component): New declaration.
5002 * top.c: Include observer.h.
5003 (set_gdb_datadir): New function.
5004 (init_main): Install it for "set data-directory".
5005 * utils.c (substitute_path_component): New function.
5006
b09aca3a
JK
50072012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5008
5009 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
5010 * auto-load.c (auto_load_objfile_script): Remove check for NULL
5011 DEBUG_FILE_DIRECTORY. Handle multiple components of
5012 DEBUG_FILE_DIRECTORY.
5013
95554aad
TT
50142012-05-10 Tom Tromey <tromey@redhat.com>
5015
5016 * dwarf2read.c (recursively_write_psymbols): New function.
5017 (write_psymtabs_to_index): Use it.
5018
5019 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
5020 field.
5021 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
5022 (load_partial_comp_unit): Update.
5023 (queue_comp_unit): Add argument 'pretend_language'.
5024 (process_queue): Update.
5025 (psymtab_to_symtab_1): Skip dependencies that have a user.
5026 (load_partial_comp_unit_reader): Give meaning to the 'data'
5027 argument.
5028 (load_full_comp_unit): Add 'pretend_language' argument.
5029 (process_full_comp_unit): Add 'pretend_language' argument. Set
5030 language on CU.
5031 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
5032 Update.
5033 (maybe_queue_comp_unit): Add 'pretend_language' argument.
5034 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
5035 Update.
5036 (prepare_one_comp_unit): Add 'pretend_language' argument.
5037
5038 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
5039 (struct dwarf2_per_objfile) <just_read_cus>: New field.
5040 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
5041 (dw2_do_instantiate_symtab): Check whether symtab was read in
5042 before queueing.
5043 (dw2_instantiate_symtab): Add assertion. Call
5044 process_cu_includes.
5045 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
5046 (partial_symtab_p): New typedef.
5047 (set_partial_user): New function.
5048 (dwarf2_build_psymtabs_hard): Use set_partial_user.
5049 (scan_partial_symbols): Add imported CU to imported_symtabs.
5050 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
5051 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
5052 (get_symtab, recursively_compute_inclusions)
5053 (compute_symtab_includes, process_cu_includes)
5054 (process_imported_unit_die): New functions.
5055 (process_die) <DW_TAG_imported_unit>: New case.
5056 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
5057
5058 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
5059 comment.
5060 (struct partial_die_info) <locdesc>: Remove.
5061 <d>: New field.
5062 (process_psymtab_comp_unit): Add 'read_partial' argument.
5063 Update.
5064 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5065 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5066 (add_partial_symbol): Update.
5067 (process_die): Handle DW_TAG_partial_unit.
5068 (read_file_scope): Update comment.
5069 (load_partial_dies): Handle DW_TAG_imported_unit.
5070 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5071 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5072
e871fbb9
TT
50732012-05-10 Tom Tromey <tromey@redhat.com>
5074
5075 * cc-with-dwz.sh: New file.
5076
b5b04b5b
TT
50772012-05-10 Tom Tromey <tromey@redhat.com>
5078
5079 * symtab.h (struct symtab) <includes, user>: New fields.
5080 * block.h (struct block_iterator) <d, idx, which>: New fields.
5081 * block.c (initialize_block_iterator, find_iterator_symtab)
5082 (block_iterator_step, block_iter_name_step)
5083 (block_iter_match_step): New functions.
5084 (block_iterator_first, block_iterator_next)
5085 (block_iter_name_first, block_iter_name_next)
5086 (block_iter_match_first, block_iter_match_next): Rewrite.
5087 (get_block_symtab): New function.
5088
84a146c9
TT
50892012-05-10 Tom Tromey <tromey@redhat.com>
5090
5091 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5092 set_block_symtab.
5093 * jit.c (finalize_symtab): Use allocate_global_block,
5094 set_block_symtab.
5095 * buildsym.c (finish_block_internal): New function, from old
5096 finish_block.
5097 (finish_block): Rewrite.
5098 (end_symtab): Use finish_block_internal, set_block_symtab.
5099 * block.h (struct global_block): New.
5100 (allocate_global_block, set_block_symtab): Declare.
5101 * block.c (allocate_global_block, set_block_symtab): New
5102 functions.
5103
9439a077
TT
51042012-05-10 Tom Tromey <tromey@redhat.com>
5105
5106 * psymtab.c (partial_map_expand_apply): Add assertion.
5107 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5108 (psymtab_to_symtab): Find unshared psymtab.
5109 (dump_psymtab): Print including psymtabs.
5110 (recursively_search_psymtabs): New function.
5111 (expand_symtabs_matching_via_partial): Use it.
5112 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5113 fields.
5114 (enum psymtab_search_status): New.
5115
8157b174
TT
51162012-05-10 Tom Tromey <tromey@redhat.com>
5117
5118 * tracepoint.c (scope_info): Update.
5119 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5120 (find_pc_sect_symtab, search_symbols)
5121 (default_make_symbol_completion_list_break_on)
5122 (make_file_symbol_completion_list): Update.
5123 * symmisc.c (dump_symtab_1): Update.
5124 * stack.c (print_frame_args, iterate_over_block_locals)
5125 (print_frame_labels, iterate_over_block_arg_vars): Update.
5126 * python/py-block.c (block_object) <dict>: Remove.
5127 <block>: New field.
5128 <iter>: Change type.
5129 (blpy_iter): Update.
5130 (blpy_block_syms_iternext): Update.
5131 * psymtab.c (map_block): Use block iterators.
5132 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5133 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5134 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5135 * infrun.c (check_exception_resume): Update.
5136 * cp-support.c (make_symbol_overload_list_block): Update.
5137 * coffread.c (patch_opaque_types): Update.
5138 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5139 * block.h (struct block_iterator): New.
5140 (block_iterator_first, block_iterator_next, block_iter_name_first)
5141 (block_iter_name_next, block_iter_match_first)
5142 (block_iter_match_next): Declare.
5143 (ALL_BLOCK_SYMBOLS): Redefine.
5144 * block.c (block_iterator_first, block_iterator_next)
5145 (block_iter_name_first, block_iter_name_next)
5146 (block_iter_match_first, block_iter_match_next): New functions.
5147 * ada-lang.c (ada_add_block_symbols)
5148 (ada_make_symbol_completion_list): Use block iterator.
5149
a2ca7a52
TT
51502012-05-10 Tom Tromey <tromey@redhat.com>
5151
5152 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5153 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5154 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5155 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5156 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5157 Update.
5158
64ea88dc
JB
51592012-05-10 Joel Brobecker <brobecker@adacore.com>
5160
5161 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5162 print-file-var-lib2.c, print-file-var-main.c and
5163 print-file-var.exp (located in gdb/testsuite/gdb.base).
5164
99a547d6
JB
51652012-05-10 Joel Brobecker <brobecker@adacore.com>
5166
5167 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5168 try locating the symbol in the symbol's own objfile first, before
5169 extending the search to all objfiles.
5170 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5171 out of lookup_symbol_aux_symtabs.
5172 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5173 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5174 Do not search EXCLUDE_OBJFILE.
5175 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5176 (lookup_symbol_global): Search for matches in the block's objfile
5177 first, before searching all other objfiles.
5178
0ece64fd
TG
51792012-05-10 Tristan Gingold <gingold@adacore.com>
5180
5181 * printcmd.c (set_command): Add pre/post inc/dec.
5182
3d16a105
FCE
51832012-05-09 Frank Ch. Eigler <fche@redhat.com>
5184
5185 * gdb.1: Document -ex option.
5186
2efbc0f7
JB
51872012-05-09 Joel Brobecker <brobecker@adacore.com>
5188
5189 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5190 * inferior.h (AT_SYMBOL): Delete.
5191
2c76a0c7
JB
51922012-05-09 Joel Brobecker <brobecker@adacore.com>
5193
5194 * mips-tdep.c (mips_push_dummy_code): New function.
5195 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5196 ON_STACK and install mips_push_dummy_code as our gdbarch
5197 push_dummy_code routine.
5198
9401a810
PA
51992012-05-09 Pedro Alves <palves@redhat.com>
5200
5201 * target.c (set_maintenance_target_async_permitted): Rename to ...
5202 (set_target_async_command): ... this.
5203 (show_maintenance_target_async_permitted): Rename to ...
5204 (show_target_async_command): ... this.
5205 (initialize_targets): Adjust.
5206
3929b321
DE
52072012-05-08 Doug Evans <dje@google.com>
5208
5209 * go-exp.y (classify_name): Add missing assignment of fields of
5210 yylval.ssym.
5211
c41535fd
EZ
52122012-05-08 Eli Zaretskii <eliz@gnu.org>
5213
5214 Display the ">" prompt in interactive mode while reading canned
5215 commands, even when the current interpreter is MI.
5216
5217 * interps.c (interp_set_temp): New function.
5218
5219 * interps.h (interp_set_temp): Add prototype.
5220
5221 * cli/cli-script.c (restore_interp): New cleanup function.
5222 (read_command_lines): Temporarily override the current interpreter
5223 with CLI and arrange for restoring the original one.
5224
c0749c4d
JS
52252012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5226
5227 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5228
d7333987
SDJ
52292012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5230
5231 * probe.c (parse_probes): Move conditional to check for
5232 debuginfo files from here...
5233 * stap-probe.c (stap_get_probes): ... to here.
5234
649e6d92
MK
52352012-05-07 Mark Kettenis <kettenis@gnu.org>
5236 H.J. Lu <hongjiu.lu@intel.com>
5237
5238 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5239 `movl %esp, %ebp' for the X32 ABI.
5240
f39c6ffd
TT
52412012-05-07 Tom Tromey <tromey@redhat.com>
5242
5243 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5244 get_DW_TAG_name.
5245 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5246 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5247 (dwarf_stack_op_name): Remove.
5248 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5249 (decode_locdesc): Use get_DW_OP_name.
5250 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5251 (dwarf2_compile_expr_to_ax): Likewise.
5252 (disassemble_dwarf_expression): Likewise.
5253 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5254
1e1f6591
CLT
52552012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5256
5257 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5258 (sh_linux_sigtramp_cache): New function.
5259 (sh_linux_sigreturn_init): New function.
5260 (sh_linux_rt_sigreturn_init): New function.
5261 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5262 patterns.
5263 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5264 syscall codes.
5265 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5266 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5267 (sh_linux_init_abi): Add init calls to register new tramp_frame
5268 definitions under 32-bit SH, update comments.
5269
545c08b4
PA
52702012-05-07 Pedro Alves <palves@redhat.com>
5271
daac165e
PA
5272 PR gdb/10952
5273
545c08b4
PA
5274 * amd64-linux-tdep.c: Include glibc-tdep.h.
5275 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5276 gdbarch_skip_solib_resolver callback.
5277
af2c1515
JK
52782012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5279
5280 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5281 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5282 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5283 (add_auto_load_safe_path): Change the error message.
5284 (_initialize_auto_load): Change the "safe-path" help text.
5285 * configure: Regenerate
5286 * configure.ac (--without-auto-load-safe-path): Set
5287 WITH_AUTO_LOAD_SAFE_PATH to /.
5288
1067f998
SDJ
52892012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5290
5291 * stap-probe.h: Do not include unecessary `probe.h'.
5292
45dfa85a
AM
52932012-05-05 Alan Modra <amodra@gmail.com>
5294
5295 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5296 bfd_und_section_ptr.
5297 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5298 and bfd_com_section_ptr.
5299
cf093994
JB
53002012-05-04 Joel Brobecker <brobecker@adacore.com>
5301
762ebb75 5302 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5303
d40dc7a8
JB
53042012-05-04 Joel Brobecker <brobecker@adacore.com>
5305
5306 * windows-nat.h (segment_register_p_ftype): New typedef.
5307 (windows_set_segment_register_p): Add declaration.
5308 * windows-nat.c (segment_register_p): New static global.
5309 (windows_set_segment_register_p): New function.
5310 (do_windows_fetch_inferior_registers): Add special handling
5311 for segment registers.
5312 * amd64-windows-nat.c: #include "amd64-tdep.h".
5313 (amd64_windows_segment_register_p): New function.
5314 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5315 * i386-windows-nat.c: #include "i386-tdep.h".
5316 (i386_windows_segment_register_p): New function.
5317 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5318
52b3699b
TG
53192012-05-04 Tristan Gingold <gingold@adacore.com>
5320
5321 * printcmd.c (set_command): Emit a warning if the expression is not
5322 an assignment.
5323
94c74239
JB
53242012-05-03 Joel Brobecker <brobecker@adacore.com>
5325
5326 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5327 Make static.
5328
fcf57f19
SDJ
53292012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5330
5331 * stap-probe.c (stap_is_operator): Change declaration.
5332 (stap_get_opcode): Change return value.
5333 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5334 `stap_parse_argument_1'.
5335
27d2932e
PA
53362012-05-03 Pedro Alves <pedro@codesourcery.com>
5337
5338 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5339 debug log.
5340
a20ee7a4
SCR
53412012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5342
5343 Add two new methods global_block and static_block to gdb.Symtab
5344 objects.
5345 * NEWS (Python scripting): Add entry about the new methods.
5346 * python/py-symtab.c (stpy_global_block): New function which
5347 implements the gdb.Symtab.global_block() method.
5348 (stpy_static_block): New function which implements the
5349 gdb.Symtab.static_block() method.
5350 (symtab_object_methods): Add entries for the two new methods.
5351
943cb756
DE
53522012-05-03 Doug Evans <dje@google.com>
5353
5354 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5355 files.
5356
f4644a3f
YQ
53572012-05-03 Yao Qi <yao@codesourcery.com>
5358
5359 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5360 space.
5361 (i386_process_record): Ditto.
5362
ef61f180
JB
53632012-05-02 Joel Brobecker <brobecker@adacore.com>
5364
5365 * infcall.c (unwind_on_signal_p): Make static.
5366
02f1df11
JB
53672012-05-02 Joel Brobecker <brobecker@adacore.com>
5368
5369 * sol-thread.c (solaris_pid_to_str): Make static.
5370 (_initialize_sol_thread): Add prototype.
5371
39023530
JB
53722012-05-02 Joel Brobecker <brobecker@adacore.com>
5373
5374 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5375
c6b0c501
CF
53762012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5377
5378 * MAINTAINERS: Remove myself.
5379
1ef71717
JK
53802012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5381
5382 Fix --without-auto-load-safe-path for MS-Windows host platform.
5383 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5384
b31b86a7
EZ
53852012-05-02 Eli Zaretskii <eliz@gnu.org>
5386
5387 * gdb_curses.h: Undefine KEY_EVENT before including curses
5388 headers. Move "#undef MOUSE_MOVED" before any curses header
5389 inclusion.
5390
777532fc
SDJ
53912012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5392
5393 * features/i386/i386-mmx-linux.c: Regenerate.
5394 * features/rs6000/powerpc-32.c: Likewise.
5395 * features/rs6000/powerpc-32l.c: Likewise.
5396 * features/rs6000/powerpc-403.c: Likewise.
5397 * features/rs6000/powerpc-403gc.c: Likewise.
5398 * features/rs6000/powerpc-405.c: Likewise.
5399 * features/rs6000/powerpc-505.c: Likewise.
5400 * features/rs6000/powerpc-601.c: Likewise.
5401 * features/rs6000/powerpc-602.c: Likewise.
5402 * features/rs6000/powerpc-603.c: Likewise.
5403 * features/rs6000/powerpc-604.c: Likewise.
5404 * features/rs6000/powerpc-64.c: Likewise.
5405 * features/rs6000/powerpc-64l.c: Likewise.
5406 * features/rs6000/powerpc-750.c: Likewise.
5407 * features/rs6000/powerpc-860.c: Likewise.
5408 * features/rs6000/powerpc-e500.c: Likewise.
5409 * features/rs6000/powerpc-e500l.c: Likewise.
5410 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5411 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5412 * features/rs6000/rs6000.c: Likewise.
5413
d71871bc
SDJ
54142012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5415
5416 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5417 variable.
5418 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5419 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5420 (stap_parse_argument) <e>: Likewise.
5421 (handle_stap_probe) <byte_order>: Likewise.
5422
fd820528
DE
54232012-04-30 Doug Evans <dje@google.com>
5424
5425 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5426 init_and_read_dies_worker. All callers updated.
5427 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5428 replaced with init_cutu_and_read_dies.
5429 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5430 (find_partial_die): Remove FIXME. Don't free current CU.
5431
ec3f619d 54322012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5433
5434 * contrib: New directory.
5435 * contrib/test_pubnames_and_indexes.py: New file.
5436
fceca515
DE
54372012-04-30 Doug Evans <dje@google.com>
5438
5439 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5440 All callers updated.
5441 (init_cu_die_reader): Verify the section is non-empty.
5442 (dwarf_decode_line_header): Don't dereference section->asection
5443 until we know the section is present.
5444
311fe7e1
SDJ
54452012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5446
5447 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5448 probes.
5449
5977971a
YQ
54502012-04-29 Yao Qi <yao@codesourcery.com>
5451
5452 * gdb-code-style.el: New hook gdb-markup-hook
5453 and gdb-comment-hook.
5454
dee91e82
DE
54552012-04-28 Doug Evans <dje@google.com>
5456
3019eac3
DE
5457 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5458 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5459 objfile->obfd.
5460 * symfile.h (dwarf2_debug_sections): New member addr.
5461 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5462 (ctx_no_get_addr_index): New function.
5463 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5464 (ctx_no_get_addr_index): Declare.
5465 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5466 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5467 (dwarf_expr_ctx_funcs): Update.
5468 (needs_get_addr_index): New function.
5469 (needs_frame_ctx_funcs): Update.
5470 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5471 * dwarf2read.c: #include "gdbcore.h".
5472 (dwarf2_per_objfile): New members addr, dwo_files.
5473 (dwarf2_elf_names): Add entry for addr.
5474 (struct dwo_section_names): New type.
5475 (dwo_section_names): New static global.
5476 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5477 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5478 old debug_types_section member updated to use this.
5479 Rename member debug_types_section to info_or_types_section,
5480 all uses updated.
5481 (signatured_type): Rename member type_offset to type_offset_in_tu,
5482 all uses updated. New member type_offset_in_section.
5483 (struct dwo_sections): New type.
5484 (struct dwo_unit): New type.
5485 (struct dwo_file): New type.
5486 (die_reader_specs): New member dwo_file.
5487 (dwarf2_locate_sections): Watch for .debug_addr.
5488 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5489 (dwarf2_read_section): Get bfd of section from bfd's asection,
5490 instead of objfile.
5491 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5492 (create_signatured_type_table_from_index): Initialize
5493 sig_type->info_or_types_section.
5494 (dw2_get_file_names): Statement lists for type units with DWO files
5495 live in the DWO file.
5496 (create_debug_types_hash_table): New function.
5497 (create_all_type_units): Rewrite.
5498 (init_cu_die_reader): New arg dwo_file, all callers updated.
5499 (init_and_read_dies_worker): Get section from
5500 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5501 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5502 continue reading the CU/TU from there.
5503 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5504 updated. Get section from this_cu->info_or_types_section.
5505 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5506 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5507 DW_FORM_GNU_str_index.
5508 (hash_dwo_file, eq_dwo_file): New functions.
5509 (allocate_dwo_file_hash_table): New function.
5510 (hash_dwo_unit, eq_dwo_unit): New functions.
5511 (allocate_dwo_unit_table): New function.
5512 (dwarf2_locate_dwo_sections): New function.
5513 (struct create_dwo_info_table_data): New type.
5514 (create_debug_info_hash_table_reader): New function.
5515 (create_debug_info_hash_table): New function.
5516 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5517 (lookup_dwo_file): New function.
5518 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5519 (free_dwo_file, free_dwo_file_cleanup): New functions.
5520 (free_dwo_file_from_slot, free_dwo_files): New functions.
5521 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5522 (dwarf2_record_block_ranges): Ditto.
5523 (read_partial_die): Ditto.
5524 (process_enumeration_scope): Update to use type_offset_in_section.
5525 (read_full_die_1): New function.
5526 (read_full_die): Rewrite.
5527 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5528 DW_FORM_GNU_str_index.
5529 (read_addr_index_1, read_addr_index): New functions.
5530 (read_addr_index_from_leb128): New function.
5531 (struct dwarf2_read_addr_index_data): New type.
5532 (dwarf2_read_addr_index_reader): New function.
5533 (dwarf2_read_addr_index): New function.
5534 (read_str_index): New function.
5535 (leb128_size): New function.
5536 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5537 If processing a type unit from a DWO file, get the line section
5538 from the DWO file.
5539 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5540 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5541 DW_FORM_GNU_str_index.
5542 (lookup_die_type): Check whether section offset of type's die is
5543 known before looking it up. Remove assert. Condition can
5544 legimately happen for inter-cu type references.
5545 (dwarf_attr_name): Handle Fission attributes.
5546 (dwarf_form_name): Handle Fission forms.
5547 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5548 DW_FORM_GNU_str_index.
5549 (follow_die_sig): Update to use type_offset_in_section.
5550 (decode_locdesc): New case DW_OP_GNU_addr_index.
5551 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5552 DW_FORM_GNU_str_index.
5553 (cu_debug_loc_section): New function.
5554 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5555 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5556 Free DWO files if present.
5557 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5558
dee91e82
DE
5559 Refactor DIE reading.
5560 * dwarf2read.c (dwarf2_per_objfile): Replace members
5561 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5562 (die_reader_specs): New member "die_section". Temporarily make
5563 member "buffer" non-const, pending constifying all info_ptr uses.
5564 (die_reader_func_ftype): New typedef.
5565 (dw2_get_file_names_reader): New function.
5566 (dw2_get_file_names): Rewrite.
5567 (read_and_check_type_unit_head): Rename arg type_offset to
5568 type_offset_in_tu.
5569 (create_all_type_units): Improve debugging message.
5570 Improve dummy type unit check.
5571 (init_cu_die_reader): New arg "section". All callers updated.
5572 (init_and_read_dies_worker): New function.
5573 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5574 (init_cutu_and_read_dies_no_follow): New function.
5575 (init_cutu_and_read_dies_simple): New function.
5576 (process_psymtab_comp_unit_reader): New function.
5577 (process_psymtab_comp_unit): Delete args section,
5578 is_debug_types_section. Rewrite. All callers updated.
5579 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5580 All callers updated. Rewrite.
5581 (load_partial_comp_unit_reader): New function.
5582 (load_partial_comp_unit): Rewrite.
5583 (skip_children): New arg reader. Delete args buffer, cu.
5584 All callers updated.
5585 (skip_one_die): New arg reader. Delete args buffer, cu.
5586 All callers updated.
5587 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5588 All callers updated.
5589 (load_full_comp_unit_reader): New function.
5590 (load_full_comp_unit): Rewrite.
5591 (read_comp_unit): Delete.
5592 (read_die_and_children_1): Delete, contents moved ...
5593 (read_die_and_children): ... here.
5594 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5595 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5596 All callers updated.
5597 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5598 All callers updated.
5599 (find_partial_die): Rewrite load_all_dies support.
5600 (read_attribute_value): New arg reader. Delete args abfd, cu.
5601 All callers updated.
5602 (read_attribute): New arg reader. Delete args abfd, cu.
5603 All callers updated.
5604 (load_full_type_unit): Add assert.
5605 (read_signatured_type_reader): New function.
5606 (read_signatured_type): Rewrite.
5607 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5608 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5609 All callers updated. Set per_cu->cu = NULL after freeing it.
5610 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5611 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5612 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5613 (set_die_type): Update.
5614 (get_die_type_at_offset): Update.
5615 (read_file_scope): Call prepare_one_comp_unit.
5616 (read_type_unit_scope): Ditto.
5617 (prepare_one_comp_unit): Set producer if present.
5618
72d59e0d
SDJ
56192012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5620
5621 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5622 gettext function on `error'.
5623
0fefef59
DE
56242012-04-27 Doug Evans <dje@google.com>
5625
5626 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5627 is empty.
5628
28106bc2
SDJ
56292012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5630 Tom Tromey <tromey@redhat.com>
5631
5632 * breakpoint.c (struct breakpoint_objfile_data)
5633 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5634 <exception_probes>: New fields.
5635 (free_breakpoint_probes): New function.
5636 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5637 `_Unwind_DebugHook'.
5638 (create_exception_master_breakpoint): Likewise.
5639 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5640 * infrun.c: Including necessary header files for handling SystemTap
5641 probes.
5642 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5643 via SystemTap probes.
5644 (check_exception_resume): Remove `func' argument. Handle exception
5645 unwinding breakpoint set via a SystemTap probe.
5646 (insert_exception_resume_from_probe): New function.
5647
55aa24fb
SDJ
56482012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5649 Tom Tromey <tromey@redhat.com>
5650 Jan Kratochvil <jan.kratochvil@redhat.com>
5651
5652 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5653 (COMMON_OBS): Likewise.
5654 (HFILES_NO_SRCDIR): Add `probe'.
5655 * NEWS: Mention support for static and SystemTap probes.
5656 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5657 SystemTap probes' arguments parser.
5658 * arm-linux-tdep.c: Including headers needed to perform the parsing
5659 of SystemTap probes' arguments.
5660 (arm_stap_is_single_operand): New function.
5661 (arm_stap_parse_special_token): Likewise.
5662 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5663 probes' arguments parser.
5664 * ax-gdb.c (require_rvalue): Removing static declaration.
5665 (gen_expr): Likewise.
5666 * ax-gdb.h (gen_expr): Declaring function.
5667 (require_rvalue): Likewise.
5668 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5669 (bkpt_probe_breakpoint_ops): New variable.
5670 (momentary_breakpoint_from_master): Set the `probe' value.
5671 (add_location_to_breakpoint): Likewise.
5672 (break_command_1): Using proper breakpoint_ops according to the
5673 argument passed by the user in the command line.
5674 (bkpt_probe_insert_location): New function.
5675 (bkpt_probe_remove_location): Likewise.
5676 (bkpt_probe_create_sals_from_address): Likewise.
5677 (bkpt_probe_decode_linespec): Likewise.
5678 (tracepoint_probe_create_sals_from_address): Likewise.
5679 (tracepoint_probe_decode_linespec): Likewise.
5680 (tracepoint_probe_breakpoint_ops): New variable.
5681 (trace_command): Using proper breakpoint_ops according to the
5682 argument passed by the user in the command line.
5683 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5684 static probes on breakpoints and tracepoints.
5685 * breakpoint.h (struct bp_location) <probe>: New field.
5686 * cli-utils.c (skip_spaces_const): New function.
5687 (extract_arg): Likewise.
5688 * cli-utils.h (skip_spaces_const): Likewise.
5689 (extract_arg): Likewise.
5690 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5691 * configure.ac: Append `stap-probe.o' to be generated when ELF
5692 support is present.
5693 * configure: Regenerate.
5694 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5695 * elfread.c: Include `probe.h' and `arch-utils.h'.
5696 (probe_key): New variable.
5697 (elf_get_probes): New function.
5698 (elf_get_probe_argument_count): Likewise.
5699 (elf_evaluate_probe_argument): Likewise.
5700 (elf_compile_to_ax): Likewise.
5701 (elf_symfile_relocate_probe): Likewise.
5702 (stap_probe_key_free): Likewise.
5703 (elf_probe_fns): New variable.
5704 (elf_sym_fns): Add `sym_probe_fns' value.
5705 (elf_sym_fns_lazy_psyms): Likewise.
5706 (elf_sym_fns_gdb_index): Likewise.
5707 (_initialize_elfread): Initialize objfile cache for static
5708 probes.
5709 * gdb_vecs.h (struct probe): New forward declaration.
5710 (probe_p): New VEC declaration.
5711 * gdbarch.c: Regenerate.
5712 * gdbarch.h: Regenerate.
5713 * gdbarch.sh (stap_integer_prefix): New variable.
5714 (stap_integer_suffix): Likewise.
5715 (stap_register_prefix): Likewise.
5716 (stap_register_suffix): Likewise.
5717 (stap_register_indirection_prefix): Likewise.
5718 (stap_register_indirection_suffix): Likewise.
5719 (stap_gdb_register_prefix): Likewise.
5720 (stap_gdb_register_suffix): Likewise.
5721 (stap_is_single_operand): New function.
5722 (stap_parse_special_token): Likewise.
5723 (struct stap_parse_info): Forward declaration.
5724 * i386-tdep.c: Including headers needed to perform the parsing
5725 of SystemTap probes' arguments.
5726 (i386_stap_is_single_operand): New function.
5727 (i386_stap_parse_special_token): Likewise.
5728 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5729 probes' arguments parser.
5730 * i386-tdep.h (i386_stap_is_single_operand): New function.
5731 (i386_stap_parse_special_token): Likewise.
5732 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5733 * mipsread.c (ecoff_sym_fns): Likewise.
5734 * objfiles.c (objfile_relocate1): Support relocation for static
5735 probes.
5736 * parse.c (prefixify_expression): Remove static declaration.
5737 (initialize_expout): Likewise.
5738 (reallocate_expout): Likewise.
5739 * parser-defs.h (initialize_expout): Declare function.
5740 (reallocate_expout): Likewise.
5741 (prefixify_expression): Likewise.
5742 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5743 of SystemTap probes' arguments.
5744 (ppc_stap_is_single_operand): New function.
5745 (ppc_stap_parse_special_token): Likewise.
5746 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5747 probes' arguments parser.
5748 * probe.c: New file, for generic statically defined probe support.
5749 * probe.h: Likewise.
5750 * s390-tdep.c: Including headers needed to perform the parsing of
5751 SystemTap probes' arguments.
5752 (s390_stap_is_single_operand): New function.
5753 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5754 probes' arguments parser.
5755 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5756 * stap-probe.c: New file, for SystemTap probe support.
5757 * stap-probe.h: Likewise.
5758 * symfile.h: Include `gdb_vecs.h'.
5759 (struct sym_probe_fns): New struct.
5760 (struct sym_fns) <sym_probe_fns>: New field.
5761 * symtab.c (init_sal): Initialize `probe' field.
5762 * symtab.h (struct probe): Forward declaration.
5763 (struct symtab_and_line) <probe>: New field.
5764 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5765 locations.
5766 (stop_tracing): Likewise.
5767 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5768
22d2b532
SDJ
57692012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5770 Tom Tromey <tromey@redhat.com>
5771
5772 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5773 and to compile agent expressions.
5774 * infrun.c (siginfo_make_value): New argument `ignore'.
5775 (siginfo_funcs): New struct.
5776 (_initialize_infrun): New argument when calling
5777 `create_internalvar_type_lazy'.
5778 * thread.c (thread_id_make_value): New argument `ignore'.
5779 (thread_funcs): New struct.
5780 (_initialize_thread): New argument when calling
5781 `create_internalvar_type_lazy'.
5782 * tracepoint.c (sdata_make_value): New argument `ignore'.
5783 (sdata_funcs): New struct.
5784 (_initialize_tracepoint): New argument when calling
5785 `create_internalvar_type_lazy'.
5786 * value.c (make_value): New struct.
5787 (create_internalvar_type_lazy): New argument `data'.
5788 (compile_internalvar_to_ax): New function.
5789 (value_of_internalvar): Properly handling `make_value' case.
5790 (clear_internalvar): Likewise.
5791 (show_convenience): Adding `TRY_CATCH' block.
5792 * value.h (internalvar_make_value): Delete, replace by...
5793 (struct internalvar_funcs): ... this.
5794 (create_internalvar_type_lazy) <fun>: Delete argument.
5795 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5796 (compile_internalvar_to_ax): New function.
5797 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5798 (tlb_funcs): New struct.
5799 (_initialize_windows_tdep): New argument when calling
5800 `create_internalvar_type_lazy'.
5801
91da1414
MW
58022012-04-27 Mark Wielaard <mjw@redhat.com>
5803
5804 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5805 see whether it is an address or a constant offset from DW_AT_low_pc.
5806 (dwarf2_record_block_ranges): Likewise.
5807 (read_partial_die): Likewise.
5808
4ab9d8ec
MW
58092012-04-26 Mark Wielaard <mjw@redhat.com>
5810
5811 * MAINTAINERS (Write After Approval): Add myself to the list.
5812
a0911fd0
MR
58132012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5814
5815 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5816 (proc_prettyprint_signal): Likewise.
5817 (proc_prettyprint_faultset): Likewise.
5818 (proc_prettyprint_fault): Likewise.
5819 (proc_prettyprint_actionset): Likewise.
5820 (proc_prettyprint_flags): Move to new proc-flags.c section.
5821 (proc_prettyfprint_flags): New prototype.
5822 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5823 (proc_syscall, proc_cursig): Likewise.
5824 (proc_set_kill_on_last_close): Likewise.
5825 (proc_unset_kill_on_last_close): Likewise.
5826 (proc_set_watchpoint): Make static.
5827 (proc_delete_dead_threads): Likewise.
5828 (procfs_set_watchpoint): Likewise.
5829 (_initialize_procfs): Add prototype.
5830 * proc-events.c: Include proc-utils.h.
5831 (init_syscall_table): Make static.
5832 * proc-api.c (_initialize_proc_api): Add prototype.
5833 * proc-flags.c: Include proc-utils.h.
5834
9009e1ae
MR
58352012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5836
5837 * configure.ac: Add AC_ARG_PROGRAM.
5838 * configure: Regenerate.
5839
4fae6e18
JK
58402012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5841
5842 Fix DW_AT_lower_bound defaults for DWARF-4+.
5843 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5844 high. New variable low_default_is_valid. Implement DWARF-4+
5845 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5846 no default by the DWARF standard.
5847
14132e89 58482012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5849 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5850
5851 * infrun.c (handle_inferior_event): Move the check for return
5852 trampolines ahead of the check for function trampolines.
5853 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5854 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5855 (mips_str_mips16_ret_stub): Likewise.
5856 (mips_str_call_fp_stub): Likewise.
5857 (mips_str_call_stub): Likewise.
5858 (mips_str_fn_stub): Likewise.
5859 (mips_str_pic): Likewise.
5860 (mips_in_frame_stub): New function.
5861 (mips_unwind_pc): Return the return address rather than the PC
5862 if the PC of an intermediate frame is inside a call thunk.
5863 (mips_is_stub_suffix): New function.
5864 (mips_is_stub_mode): Likewise.
5865 (mips_get_mips16_fn_stub_pc): Likewise.
5866 (mips_skip_mips16_trampoline_code): Update to handle all the
5867 currently generated stub types. Don't recurse into __fn_stub
5868 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5869 Use cooked register accesses.
5870 (mips_in_return_stub): Reintroduce function.
5871 (mips_skip_trampoline_code): Traverse trampolines recursively.
5872 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5873
518f0db5 58742012-04-26 Joel Brobecker <brobecker@adacore.com>
5875
5876 GDB 7.4.1 released.
5877
3184d3f9
JL
58782012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5879
5880 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5881 * features/arm-with-m-vfp-d16.xml: New file. Describes
5882 Cortex-M with VFPv4-sp-d16 FPU register layout.
5883 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5884 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5885 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5886 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5887 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5888
b6201d44
DE
58892012-04-25 Doug Evans <dje@google.com>
5890
5891 * cli/cli-decode.c (print_doc_line): Use stream instead of
5892 current_uiout.
5893
4e2f8df6
SDJ
58942012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5895
5896 * features/arm-with-iwmmxt.c: Regenerate.
5897 * features/arm-with-m-fpa-layout.c: Likewise.
5898 * features/arm-with-m.c: Likewise.
5899 * features/arm-with-neon.c: Likewise.
5900 * features/arm-with-vfpv2.c: Likewise.
5901 * features/arm-with-vfpv3.c: Likewise.
5902 * features/mips-dsp-linux.c: Likewise.
5903 * features/mips-linux.c: Likewise.
5904 * features/mips64-dsp-linux.c: Likewise.
5905 * features/mips64-linux.c: Likewise.
5906 * features/s390-linux32.c: Likewise.
5907 * features/s390-linux32v1.c: Likewise.
5908 * features/s390-linux32v2.c: Likewise.
5909 * features/s390-linux64.c: Likewise.
5910 * features/s390-linux64v1.c: Likewise.
5911 * features/s390-linux64v2.c: Likewise.
5912 * features/s390x-linux64.c: Likewise.
5913 * features/s390x-linux64v1.c: Likewise.
5914 * features/s390x-linux64v2.c: Likewise.
5915 * features/tic6x-c62x-linux.c: Likewise.
5916 * features/tic6x-c62x.c: Likewise.
5917 * features/tic6x-c64x-linux.c: Likewise.
5918 * features/tic6x-c64x.c: Likewise.
5919 * features/tic6x-c64xp-linux.c: Likewise.
5920 * features/tic6x-c64xp.c: Likewise.
5921 * target-descriptions.c: Only generate `field_type' and `type'
5922 variables when needed.
5923
2def3e66
JB
59242012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5925
5926 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5927
a766d390
DE
59282012-04-25 Doug Evans <dje@google.com>
5929
5930 Initial pass at Go language support.
5931 * NEWS: Mention Go.
5932 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5933 go-valprint.c.
5934 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5935 (YYFILES): Add go-exp.c.
5936 (YYOBJ): Add go-exp.o.
5937 (local-maintainer-clean): Delete go-exp.c.
5938 * defs.h (enum language): Add language_go.
5939 * dwarf2read.c: #include "go-lang.h".
5940 (fixup_go_packaging): New function.
5941 (process_full_comp_unit): Call it when processing Go CUs.
5942 (dwarf2_physname): Add Go support.
5943 (read_file_scope): Handle missing language spec for GNU Go.
5944 (set_cu_language): Handle DW_LANG_Go.
5945 * go-exp.y: New file.
5946 * go-lang.h: New file.
5947 * go-lang.c: New file.
5948 * go-typeprint.c: New file.
5949 * go-valprint.c: New file.
5950 * symtab.c: #include "go-lang.h".
5951 (symbol_set_language): Handle language_go.
5952 (symbol_find_demangled_name, symbol_set_names): Ditto.
5953 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5954
4e2af517
JM
59552012-04-24 Jim Meyering <meyering@redhat.com>
5956
5957 avoid a few strncpy-induced buffer overruns
5958 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5959 fname and psargs before trying to concatenate.
5960 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5961 "name" before applying strchr.
5962
b77b7f52
SCR
59632012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5964
5965 * CONTRIBUTE: Use unified diff instead of context diff when
5966 generating patches.
5967
6321c22a
MR
59682012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5969
5970 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5971 code. Handle JR.HB correctly.
5972
742c84f6
MR
59732012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5974
5975 * mips-tdep.c
5976 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5977 with the other MIPS16 helpers.
5978
7fc7e0c3
SDJ
59792012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5980
5981 * observer.sh: Conditionally declare `args', thus cleaning up
5982 unused instances of this variable.
5983
20388dd6
YQ
59842012-04-24 Yao Qi <yao@codesourcery.com>
5985
5986 Revert this patch to allow breakpoint always-inserted
5987 in record target.
5988 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5989 * breakpoint.c: Include record.h.
5990 (breakpoints_always_inserted_mode): Return false when the record
5991 target is in use.
20388dd6
YQ
5992
5993 * breakpoint.c (iterate_over_bp_locations): New.
5994 * breakpoint.h: Declare.
5995 New typedef walk_bp_location_callback.
5996 * record.c (record_open): Call record_init_record_breakpoints.
5997 (record_sync_record_breakpoints): New.
5998 (record_init_record_breakpoints): New.
5999 * NEWS: Mention supporting breakpoint always-inserted mode in
6000 record target.
6001
4734f50e
MK
60022012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6003
6004 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6005 any thread.
6006
c326b90e
YQ
60072012-04-24 Yao Qi <yao@codesourcery.com>
6008
6009 * breakpoint.c (ep_is_catchpoint): Renamed to ...
6010 (is_catchpoint): ... it.
6011 (print_one_breakpoint_location): Caller update.
6012 * breakpoint.h: Update declaration.
6013
d8fb5a1e
DM
60142012-04-23 David S. Miller <davem@davemloft.net>
6015
6016 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
6017
34431a2a
TT
60182012-04-23 Tom Tromey <tromey@redhat.com>
6019
6020 * buildsym.c (add_free_pendings): Remove.
6021 * buildsym.h (add_free_pendings): Remove.
6022
4568ecf9
DE
60232012-04-23 Doug Evans <dje@google.com>
6024
6025 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
6026 attr.u.unsnd instead of attr.u.addr.
6027 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
6028 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
6029 DW_FORM_ref_udata.
6030 (dump_die_shallow): Update cases DW_FORM_ref_addr,
6031 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
6032 DW_FORM_ref_udata.
6033 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
6034
dca9aa3a
MR
60352012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
6036
6037 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
6038 (mips_o32_return_value): Likewise.
6039 (mips_o64_return_value): Likewise.
6040
c8ea1972
PH
60412012-04-21 Paul Hilfinger <hilfinger@adacore.com>
6042
6043 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
6044 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
6045 their treatment in eval.c.
c8ea1972 6046
8d1b3521
DM
60472012-04-21 David S. Miller <davem@davemloft.net>
6048
6049 * sparc-tdep.c (X_DISP10): Define.
6050 (sparc_analyze_control_transfer): Handle compare-and-branch.
6051
03145bf4
JL
60522012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
6053
6054 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
6055 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
6056
004159a2 60572012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 6058 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
6059
6060 * mips-tdep.c (mips_float_register_p): New function.
6061 (mips_convert_register_float_case_p): Use mips_float_register_p.
6062 (mips_register_type): Likewise.
6063 (mips_print_register): Likewise.
6064 (print_gp_register_row): Likewise.
6065 (mips_print_registers_info): Likewise.
6066
7f0e6aae
MR
60672012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6068
6069 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6070 of mips16 symbols.
6071
bc17beea
AP
60722012-04-20 Andrew Pinski <apinski@cavium.com>
6073
6074 * MAINTAINERS (Write After Approval): Add myself to the list.
6075
1730a5a5
SDJ
60762012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6077
6078 * MAINTAINERS: Update my e-mail address.
6079
38ea300a
PA
60802012-04-20 Pedro Alves <palves@redhat.com>
6081
6082 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6083 $srcdir.
6084 * configure: Regenerate.
6085
111dfaae
SDJ
60862012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6087
6088 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6089 declaration.
6090 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6091
4fb2c64a
JK
60922012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6093
6094 Fix compilation compatibility with python-2.4
6095 * python/py-type.c (convert_field): Cast ADDRSTRING for
6096 PyObject_SetAttrString as non-const. New comment.
6097
6328eb38
TT
60982012-04-19 Tom Tromey <tromey@redhat.com>
6099
6100 * top.c (quit_target): Use all_cleanups.
6101 * main.c (captured_command_loop): Use all_cleanups.
6102 * exceptions.c (throw_exception): Use all_cleanups.
6103
c971b7fa
PA
61042012-04-19 Pedro Alves <palves@redhat.com>
6105
6106 * Makefile.in (GNULIB_BUILDDIR): New.
6107 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6108 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6109 (CLEANDIRS). Remove gnulib/import.
6110 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6111 (all-lib): Ditto.
6112 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6113 (gnulib/import/Makefile): Replace gnulib/import with
6114 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6115 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6116 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6117 acx_configure_dir.m4.
6118 * acinclude.m4: Include acx_configure_dir.m4.
6119 * acx_configure_dir.m4: New file.
6120 * aclocal.m4: Regenerate.
a09130f9
PA
6121 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6122 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6123 (GNULIB): New variable.
6124 (GNULIB_STDINT_H): Adjust.
6125 (AC_OUTPUT): Don't output gnulib/Makefile.
6126 * gdb/defs.h: Include build-gnulib/config.h.
6127 * aclocal.m4: Regenerate.
6128 * config.in: Regenerate.
6129 * configure: Regenerate.
6130
6131 * gnulib/Makefile.in: New file.
6132 * gnulib/configure.ac: New file.
6133 * gnulib/aclocal.m4: New file.
6134 * gnulib/config.in: New file.
6135 * gnulib/configure: New file.
c971b7fa
PA
6136 * gnulib/: Re-run gnulib-tool to adjust.
6137
b10faa68
DE
61382012-04-19 Doug Evans <dje@google.com>
6139
6140 * cleanups.h (struct cleanup): Move to cleanups.c.
6141 (make_cleanup_dtor_ftype): New typedef.
6142 (make_cleanup_dtor): Use it.
6143 (ALL_CLEANUPS): Replace with ...
6144 (all_cleanups): ... this. Declare. All uses updated.
6145 * cleanups.c: #include "gdb_assert.h".
6146 (sentinel_cleanup): New static global.
6147 (SENTINEL_CLEANUP): Define.
6148 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6149 (make_my_cleanup2): Assert result is non-NULL.
6150 (all_cleanups): New function.
6151 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6152 of NULL.
6153
d8c267cc
PA
61542012-04-19 Pedro Alves <palves@redhat.com>
6155
6156 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6157 Adjust paths to gnulib imported files.
6158
809277f8
PA
61592012-04-19 Pedro Alves <palves@redhat.com>
6160
6161 * gnulib/: Move whole directory ...
6162 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6163 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6164 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6165 (aclocal_m4_deps): Adjust.
6166 * aclocal.m4: Regenerate.
6167 * configure: Regenerate.
6168 * configure.ac: Adjust AC_OUTPUT output.
6169
aad9eab9
YQ
61702012-04-19 Yao Qi <yao@codesourcery.com>
6171
6172 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6173 (vec.o): New rule.
6174 * vec.c: Move it ...
6175 * common/vec.c: ... here.
6176 * vec.h: Move it ...
6177 * common/vec.h: ... here.
6178
48fe4669
YQ
61792012-04-19 Yao Qi <yao@codesourcery.com>
6180
6181 * gdb-code-style.el: New.
6182
770d76d7
PA
61832012-04-18 Pedro Alves <palves@redhat.com>
6184
6185 Update gnulib from latest git.
6186 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6187
6188 * gnulib/Makefile.am: Update.
6189 * gnulib/dummy.c: Update.
6190 * gnulib/extra/arg-nonnull.h: Update.
6191 * gnulib/extra/c++defs.h: Update.
6192 * gnulib/extra/update-copyright: Update.
6193 * gnulib/extra/warn-on-use.h: Update.
6194 * gnulib/inttypes.in.h: Update.
6195 * gnulib/m4/00gnulib.m4: Update.
6196 * gnulib/m4/extensions.m4: Update.
6197 * gnulib/m4/gnulib-cache.m4: Update.
6198 * gnulib/m4/gnulib-common.m4: Update.
6199 * gnulib/m4/gnulib-comp.m4: Update.
6200 * gnulib/m4/gnulib-tool.m4: Update.
6201 * gnulib/m4/include_next.m4: Update.
6202 * gnulib/m4/inttypes-pri.m4: Update.
6203 * gnulib/m4/inttypes.m4: Update.
6204 * gnulib/m4/longlong.m4: Update.
6205 * gnulib/m4/memchr.m4: Update.
6206 * gnulib/m4/memmem.m4: Update.
6207 * gnulib/m4/mmap-anon.m4: Update.
6208 * gnulib/m4/multiarch.m4: Update.
6209 * gnulib/m4/onceonly.m4: Update.
6210 * gnulib/m4/stddef_h.m4: Update.
6211 * gnulib/m4/stdint.m4: Update.
6212 * gnulib/m4/string_h.m4: Update.
6213 * gnulib/m4/warn-on-use.m4: Update.
6214 * gnulib/m4/wchar_h.m4: Update.
6215 * gnulib/m4/wchar_t.m4: Update.
6216 * gnulib/m4/wint_t.m4: Update.
6217 * gnulib/memchr.c: Update.
6218 * gnulib/memmem.c: Update.
6219 * gnulib/stddef.in.h: Update.
6220 * gnulib/stdint.in.h: Update.
6221 * gnulib/str-two-way.h: Update.
6222 * gnulib/string.in.h: Update.
6223 * gnulib/wchar.in.h: Update.
6224
6225 * gnulib/extra/arg-nonnull.h: Delete.
6226 * gnulib/extra/c++defs.h: Delete.
6227 * gnulib/extra/warn-on-use.h: Delete.
6228 * gnulib/m4/wchar_h.m4: Delete.
6229 * gnulib/m4/wint_t.m4: Delete.
6230 * gnulib/wchar.in.h: Delete.
6231
6232 * gnulib/extra/snippets/arg-nonnull.h: New.
6233 * gnulib/extra/snippets/c++defs.h: New.
6234 * gnulib/extra/snippets/warn-on-use.h: New.
6235
6236 * aclocal.m4: Regenerate.
6237 * config.in: Regenerate.
6238 * configure: Regenerate.
6239 * gnulib/Makefile.in: Regenerate.
6240
174e088e
PA
62412012-04-18 Pedro Alves <palves@redhat.com>
6242
6243 Reimport the update-copyright module from gnulib
6244 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6245
6246 * configure: Regenerate.
6247 * gnulib/Makefile.am: Update.
6248 * gnulib/Makefile.in: Regenerate.
6249 * gnulib/extra/update-copyright: Update.
6250 * gnulib/m4/gnulib-cache.m4: Update.
6251 * gnulib/m4/gnulib-comp.m4: Update.
6252
7f533142
JB
62532012-04-18 Tristan Gingold <gingold@adacore.com>
6254
6255 * configure.ac (aix): Put -lpthread into libs.
6256 * configure: Regenerate.
6257
001822aa
TT
62582012-04-18 Tom Tromey <tromey@redhat.com>
6259
6260 * linespec.c (convert_linespec_to_sals): Don't use
6261 SYMBOL_OBJ_SECTION.
6262 (compare_msymbols): Arguments are minsym_and_objfile, not
6263 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6264
db026a31
PA
62652012-04-18 Pedro Alves <palves@redhat.com>
6266
6267 Revert gnulib/ part of:
6268 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6269 Copyright year update in most files (performed by copyright.sh).
6270
12df843f
JK
62712012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6272
6273 Fix 64-bit constants on 32-bit hosts.
6274 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6275 from unsigned long to ULONGEST.
6276 (read_signed_leb128): Change declaration return type from long to
6277 LONGEST.
6278 (dwarf2_const_value_attr): Change declaration parameter value from long
6279 to LONGEST.
6280 (dwarf2_compute_name): Change variable value from long to LONGEST.
6281 (read_unsigned_leb128): Change return type, variable result and some
6282 casts from unsigned long to ULONGEST.
6283 (read_signed_leb128): Change return type, variable result and some
6284 casts from long to LONGEST.
6285 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6286 value from long to LONGEST.
6287 (dwarf2_const_value): Change variable value from long to LONGEST.
6288 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6289 plongest and hex_string.
6290 * symtab.h (struct general_symbol_info): Change ivalue from long to
6291 LONGEST, remove the comment.
6292 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6293 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6294
14e75d8e
JK
62952012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6296
6297 PR symtab/7259:
6298 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6299 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6300 (ada_discrete_type_low_bound): Fix function comment. Use
6301 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6302 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6303 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6304 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6305 Use TYPE_FIELD_ENUMVAL.
6306 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6307 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6308 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6309 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6310 TYPE_CODE_ENUM.
6311 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6312 * dwarf2read.c (process_enumeration_scope): Likewise.
6313 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6314 field.bitpos.
6315 (class StructMainTypePrettyPrinter): Support also
6316 FIELD_LOC_KIND_ENUMVAL.
6317 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6318 TYPE_CODE_ENUM.
6319 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6320 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6321 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6322 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6323 field enumval.
6324 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6325 accommodate enumval.
6326 (struct call_site): Adjust loc_kind to accommodate enumval.
6327 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6328 (TYPE_FIELD_ENUMVAL): New macros.
6329 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6330 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6331 TYPE_CODE_ENUM.
6332 * p-typeprint.c (pascal_type_print_base): Likewise.
6333 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6334 enumval.
6335 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6336 * python/py-type.c (convert_field): New variable addrstring. Use
6337 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6338 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6339 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6340 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6341 TYPE_CODE_ENUM.
6342 * valprint.c (generic_val_print): Likewise.
6343
380bca97
DE
63442012-04-17 Doug Evans <dje@google.com>
6345
dcc07052
DE
6346 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6347
380bca97
DE
6348 * dwarf2read.c: Whitespace fixes.
6349 (lookup_signatured_type): Tweak comment.
6350 (get_die_type_at_offset): Fix comment.
6351
ec92004f
JB
63522012-04-17 Joel Brobecker <brobecker@adacore.com>
6353
6354 * xcoffread.c (xcoff_secnum_to_sections): New function.
6355 (secnum_to_section, secnum_to_bfd_section): Reimplement
6356 using xcoff_secnum_to_sections. Rename "secnum" parameter
6357 into "n_scnum".
6358 (RECORD_MINIMAL_SYMBOL): Delete.
6359 (record_minimal_symbol): New function.
6360 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6361 by call to record_minimal_symbol and set misc_func_recorded
6362 to 1. Set last_csect_sec to the XCOFF section index instead
6363 of GDB's section_offset index. Update calls to
6364 prim_record_minimal_symbol_and_info to pass the BFD section
6365 as well.
6366
40301fb7
JB
63672012-04-17 Joel Brobecker <brobecker@adacore.com>
6368
6369 * xcoffread.c (read_xcoff_symtab): Delete variables
6370 last_csect_val and last_csect_sec and associated code.
6371
e0088cfd
DE
63722012-04-17 Doug Evans <dje@google.com>
6373
58d5e2c3
DE
6374 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6375 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6376 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6377 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6378
c27f5738
DE
6379 * cleanups.h: New file.
6380 * cleanups.c: New file.
6381 * Makefile.in (SFILES): Add cleanups.c.
6382 (HFILES_NO_SRCDIR): Add cleanups.h.
6383 (COMMON_OBS): Add cleanups.o.
6384 * defs.h (struct cleanup): Moved to cleanups.h.
6385 (do_cleanups,do_final_cleanups): Ditto.
6386 (discard_cleanups,discard_final_cleanups): Ditto
6387 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6388 (save_cleanups,save_final_cleanups): Ditto.
6389 (restore_cleanups,restore_final_cleanups): Ditto.
6390 (null_cleanup): Ditto.
6391 (make_my_cleanup,make_my_cleanup2): Ditto.
6392 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6393 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6394 (do_cleanups,do_final_cleanups): Ditto.
6395 (discard_cleanups,discard_final_cleanups): Ditto
6396 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6397 (save_cleanups,save_final_cleanups): Ditto.
6398 (restore_cleanups,restore_final_cleanups): Ditto.
6399 (null_cleanup): Ditto.
6400 (make_my_cleanup,make_my_cleanup2): Ditto.
6401 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6402
e0088cfd
DE
6403 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6404 make_my_cleanup.
6405 (make_cleanup_dyn_string_delete): Ditto.
6406 (make_cleanup_ui_file_delete): Ditto.
6407 (make_cleanup_ui_out_redirect_pop): Ditto.
6408 (make_cleanup_free_section_addr_info): Ditto.
6409 (make_cleanup_restore_integer): Ditto.
6410 (make_cleanup_unpush_target): Ditto.
6411 (make_cleanup_value_free_to_mark): Ditto.
6412 (make_cleanup_value_free): Ditto.
6413 (make_cleanup_free_so): Ditto.
6414
4dc84fd1
JK
64152012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6416
6417 New option "set debug auto-load".
6418 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6419 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6420 (auto_load_safe_path_vec_update)
6421 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6422 if DEBUG_AUTO_LOAD.
6423 (file_is_auto_load_safe): New parameters debug_fmt and ....
6424 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6425 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6426 caller by explanatory string.
6427 (_initialize_auto_load): Register "set debug auto-load".
6428 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6429 and ....
6430 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6431 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6432 by explanatory string.
6433 * main.c (captured_main): Likewise.
6434 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6435 (source_section_scripts): Likewise.
6436
bccbefd2
JK
64372012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6438
6439 New option "set auto-load safe-path".
6440 * NEWS: New commands "set auto-load safe-path"
6441 and "show auto-load safe-path".
6442 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6443 (auto_load_safe_path, auto_load_safe_path_vec)
6444 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6445 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6446 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6447 (source_gdb_script_for_objfile): New variable is_safe. Call
6448 file_is_auto_load_safe. Return if it is not.
6449 (struct loaded_script): New field loaded.
6450 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6451 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6452 output "Missing" to "No".
6453 (_initialize_auto_load): New variable cmd. Initialize
6454 auto_load_safe_path. Register "set auto-load safe-path",
6455 "show auto-load safe-path" and "add-auto-load-safe-path".
6456 * auto-load.h (maybe_add_script): Add parameter loaded.
6457 (file_is_auto_load_safe): New declaration.
6458 * config.in: Regenerate.
6459 * configure: Regenerate.
6460 * configure.ac: New parameters --with-auto-load-safe-path
6461 and --without-auto-load-safe-path.
6462 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6463 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6464 * main.c (captured_main): Check file_is_auto_load_safe for
6465 LOCAL_GDBINIT.
6466 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6467 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6468 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6469 not.
6470
bf88dd68
JK
64712012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6472
6473 auto-load: Implementation.
6474 * NEWS: New descriptions for "info auto-load",
6475 "info auto-load gdb-scripts", "info auto-load python-scripts",
6476 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6477 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6478 and "show auto-load-scripts". New description for "set auto-load",
6479 "show auto-load", "set auto-load gdb-scripts",
6480 "show auto-load gdb-scripts", "set auto-load python-scripts",
6481 "show auto-load python-scripts", "set auto-load local-gdbinit",
6482 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6483 "show auto-load libthread-db".
6484 * auto-load.c: Remove include python/python-internal.h. Add includes
6485 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6486 cli/cli-setshow.h.
6487 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6488 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6489 (gdbpy_global_auto_load): Rename to ...
6490 (global_auto_load): ... here.
6491 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6492 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6493 (script_language_gdb, source_gdb_script_for_objfile): New.
6494 (struct loaded_script): New field language.
6495 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6496 LANGUAGE.
6497 (maybe_add_script): Add parameter language. Drop redundant
6498 entry.full_path initialization. Initialize entry.language and
6499 (*slot)->language.
6500 (auto_load_objfile_script): Change parameter suffix to language.
6501 Remove the call of maybe_add_script.
6502 Call language->source_script_for_objfile.
6503 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6504 New.
6505 (collect_matching_scripts): Adjust it for
6506 struct collect_matching_scripts_data.
6507 (auto_load_info_scripts_pattern_nl): New variable.
6508 (info_auto_load_scripts): Rename to ...
6509 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6510 for struct collect_matching_scripts_data.
6511 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6512 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6513 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6514 (auto_load_info_cmdlist_get): New.
6515 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6516 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6517 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6518 "info auto-load local-gdbinit".
6519 * auto-load.h (struct script_language): New.
6520 (gdbpy_global_auto_load): Rename to ...
6521 (global_auto_load): ... here.
6522 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6523 (auto_load_local_gdbinit_loaded): New declarations.
6524 (maybe_add_script): New parameter language.
6525 (auto_load_objfile_script): Change parameter suffix to language.
6526 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6527 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6528 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6529 declarations.
6530 * linux-thread-db.c: Include auto-load.h and ctype.h.
6531 (auto_load_thread_db, show_auto_load_thread_db): New.
6532 (struct thread_db_info): New field filename.
6533 (delete_thread_db_info): Call xfree for FILENAME.
6534 (try_thread_db_load): Initialize FILENAME.
6535 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6536 if !AUTO_LOAD_THREAD_DB.
6537 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6538 (_initialize_thread_db): Install auto_load_thread_db
6539 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6540 as "info auto-load libthread-db".
6541 * main.c (captured_main): Rename gdbpy_global_auto_load to
6542 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6543 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6544 (print_gdb_help): Extend the help for 'local init file'.
6545 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6546 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6547 (auto_load_scripts): Rename to ...
6548 (auto_load_python_scripts): ... here, update the comment.
6549 (gdbpy_load_auto_script_for_objfile): New declaration.
6550 (show_auto_load_python_scripts, script_language_python)
6551 (gdbpy_load_auto_script_for_objfile): New.
6552 (source_section_scripts): Refactor the code.
6553 (load_auto_scripts_for_objfile): Rename to ...
6554 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6555 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6556 (info_auto_load_python_scripts): New.
6557 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6558 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6559 Register "set auto-load-scripts" as its deprecated alias. Register
6560 "info auto-load python-scripts". Register "info auto-load-scripts" as
6561 its deprecated alias.
6562 (load_auto_scripts_for_objfile): Rename to ...
6563 (gdbpy_load_auto_scripts_for_objfile): ... here.
6564 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6565 (gdbpy_load_auto_scripts_for_objfile): ... here.
6566
e2207b9a
JK
65672012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6568
6569 auto-load: Move files.
6570 * Makefile.in (SFILES): Add auto-load.c.
6571 (HFILES_NO_SRCDIR): Add auto-load.h.
6572 (COMMON_OBS): Add auto-load.o.
6573 (distclean): Change .gdbinit for gdb-gdb.gdb.
6574 * auto-load.c: New file, with parts from python/py-auto-load.c.
6575 * auto-load.h: New file, with parts from python/python.h.
6576 * configure: Regenerate.
6577 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6578 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6579 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6580 * main.c: Include auto-load.h.
6581 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6582 command.h, observer.h and progspace.h to auto-load.c. Add include
6583 auto-load.h.
6584 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6585 (struct loaded_script, auto_load_pspace_data)
6586 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6587 (hash_loaded_script_entry, eq_loaded_script_entry)
6588 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6589 (maybe_add_script): Move to auto-load.c.
6590 (source_section_scripts): Change maybe_add_script parameters passing,
6591 use script_not_found_warning_print.
6592 (clear_section_scripts, auto_load_objfile_script)
6593 (auto_load_new_objfile, loaded_script_ptr)
6594 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6595 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6596 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6597 auto_load_new_objfile and info_auto_load_scripts initizations to
6598 auto-load.c.
6599 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6600
e4ab2fad
JK
66012012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6602
6603 Code cleanup.
6604 * charset.c (find_charset_names): Remove variables ix and elt.
6605 Use free_char_ptr_vec.
6606 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6607 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6608 debugdir_end. New variable debugdir_len.
6609 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6610 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6611 declarations.
6612 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6613 and elt. Use free_char_ptr_vec.
6614 * source.c (add_path): Remove variables argv, arg and argv_index.
6615 New variables dir_vec, back_to, ix and name.
6616 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6617 make_cleanup_freeargv. Remove variable separator. Simplify the code
6618 no longer expecting DIRNAME_SEPARATOR.
6619 (openp): Remove variable p, p1 and len. New variables dir_vec,
6620 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6621 no longer expecting DIRNAME_SEPARATOR.
6622 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6623 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6624 debugdir_end.
6625 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6626 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6627 (dirnames_to_char_ptr_vec): New functions.
6628
5ee4ed9f
JK
66292012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6630
6631 Code cleanup.
6632 * source.c (add_path): Remove always true conditional 'p == 0' and
6633 unindent its code block.
6634
f41f5e61
PA
66352012-04-17 Pedro Alves <palves@redhat.com>
6636
6637 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6638 (FIELD_BITPOS_LVAL): ... this.
6639 (FIELD_BITPOS): New.
6640 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6641 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6642 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6643 SET_FIELD_BITPOS.
6644 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6645 SET_FIELD_BITPOS.
6646 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6647 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6648 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6649 SET_FIELD_BITPOS.
6650
945b3a32
JK
66512012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6652
6653 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6654 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6655 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6656 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6657 * jv-lang.c (java_link_class_type): Likewise, once.
6658 * stabsread.c (read_enum_type): Likewise.
6659
42476b70
YQ
66602012-04-16 Yao Qi <yao@codesourcery.com>
6661
6662 * common/agent.c (agent_run_command): Add one more parameter `len'.
6663 Update callers.
6664 * common/agent.h: Update declaration.
6665 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6666 Update.
6667 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6668
8264ba82
AG
66692012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6670
6671 PR mi/13393
6672 * value.c (value_actual_type): New function.
6673 * value.h (value_actual_type): New declaration.
6674 * varobj.c (update_type_if_necessary): New function.
6675 (varobj_create): Call value_actual_type instead of
6676 value_type.
6677 (install_dynamic_child): distinct changed and type changed MI variable
6678 objects.
6679 (update_dynamic_varobj_children): Updated for install_dynamic_child
6680 change. All callers updated.
a09130f9 6681 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6682 the value changed and RTTI is used to determine the type.
6683 (create_child_with_value): Call value_actual_type instead of
6684 value_type.
a09130f9 6685 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6686 specify whether the given value should be casted to enclosing type.
6687 All callers updated.
6688
55a8c076
YQ
66892012-04-14 Yao Qi <yao@codesourcery.com>
6690
6691 Import gnulib module inttypes from git
6692 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6693 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6694 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6695 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6696 * aclocal.m4, config.in, configure: Regenerated.
6697 * gnulib/Makefile.am: Update.
6698 * gnulib/Makefile.in: Update.
6699 * gnulib/m4/gnulib-cache.m4: Update.
6700 * gnulib/m4/gnulib-comp.m4: Update.
6701 * gnulib/inttypes.in.h: New.
6702 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6703 * gnulib/m4/inttypes.m4: New.
55a8c076 6704
ca7781d2
LM
67052012-04-13 Luis Machado <lgustavo@codesourcery.com>
6706
6707 * infrun.c (resume): Update PC address to the real PC after
6708 preparing to do displaced stepping.
6709
e319fa28
DE
67102012-04-12 Doug Evans <dje@google.com>
6711
6712 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6713 All callers updated.
6714
15add3f5
MK
67152012-04-12 Mark Kettenis <kettenis@gnu.org>
6716
6717 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6718
52dc124a
DE
67192012-04-12 Doug Evans <dje@google.com>
6720
0e50663e
DE
6721 * dwarf2read.c (create_all_type_units): Renamed from
6722 create_debug_types_hash_table. All callers updated.
6723
52dc124a
DE
6724 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6725 local type_sig to sig_type, type_offset to type_offset_in_tu.
6726 (hash_signatured_type): Renamed from hash_type_signature,
6727 all callers updated.
6728 (eq_signatured_type): Renamed from eq_type_signature,
6729 all callers updated.
6730 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6731 (process_enumeration_scope): Ditto.
6732 (lookup_signatured_type_at_offset): Ditto.
6733 (load_full_type_unit, read_signatured_type): Ditto.
6734
248fd3bf
YQ
67352012-04-12 Yao Qi <yao@codesourcery.com>
6736
6737 * remote.c (async_remote_interrupt): Correct function name in
6738 debug message.
6739 (async_remote_interrupt_twice): Ditto.
6740
bc3aa6c3
DE
67412012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6742
6743 * source.c (find_and_open_source): Consistently pass resulting
6744 full path through xfullpath.
6745
9e529e1d
JK
67462012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6747
6748 Provide more specific displaced-stepping memory error message.
6749 * infrun.c (displaced_step_prepare): New variable status. Call
6750 target_read_memory instead of read_memory, provide more specific
6751 error message.
6752
82e0cec1
TG
67532012-04-11 Tristan Gingold <gingold@adacore.com>
6754
6755 PR gdb/13901
6756 * darwin-nat.c (darwin_execvp): Revert previous patch.
6757
d987a266
TG
67582012-04-11 Tristan Gingold <gingold@adacore.com>
6759
6760 PR gdb/13901
6761 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6762 in case of change.
6763
016b7430
TG
67642012-04-11 Tristan Gingold <gingold@adacore.com>
6765
6766 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6767 warning.
6768
06fc020f
SCR
67692012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6770
6771 New command 'explore' which helps explore values and types in
6772 scope.
6773 * NEWS: Add an entry about the new 'explore' command.
6774 * data-directory/Makefile.in: Add gdb/command/explore.py
6775 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6776 command using the GDB Python API.
06fc020f 6777
de0919f8 67782012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6779
6780 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6781 extension in jump target calculation.
6782
de0919f8 67832012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6784
6785 * mips-tdep.c (mips32_next_pc): Handle JALX.
6786
2f26ef89
YQ
67872012-04-10 Yao Qi <yao@codesourcery.com>
6788
6789 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6790
2e505b66
YQ
67912012-04-10 Yao Qi <yao@codesourcery.com>
6792
6793 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6794 and gnulib/m4/gnulib-tool.m4.
6795
0d99eb77
DE
67962012-04-10 Doug Evans <dje@google.com>
6797
6798 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6799 (load_partial_dies): Clarify comment.
6800 (find_partial_die): Support rereading type units.
6801 Clarify CU handling, if we know offset is in CU, don't search for the
6802 containing CU. Add comment regarding memory waste.
6803
9a82b8ff
L
68042012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6805
6806 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6807 i386/x32-avx and i386/x32-avx-linux.
6808 (i386/x32-expedite): New.
6809 (i386/x32-linux-expedite): Likewise.
6810 (i386/x32-avx-expedite): Likewise.
6811 (i386/x32-avx-linux-expedite): Likewise.
6812 ($(outdir)/i386/x32.dat): Likewise.
6813 ($(outdir)/i386/x32-linux.dat): Likewise.
6814 ($(outdir)/i386/x32-avx.dat): Likewise.
6815 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6816
6817 * features/i386/x32-avx-linux.xml: New file.
6818 * features/i386/x32-avx.xml: Likewise.
6819 * features/i386/x32-core.xml: Likewise.
6820 * features/i386/x32-linux.xml: Likewise.
6821 * features/i386/x32.xml: Likewise.
6822
6823 * features/i386/x32-avx-linux.c: New. Generated.
6824 * features/i386/x32-avx.c: Likewise.
6825 * features/i386/x32-linux.c: Likewise.
6826 * features/i386/x32.c: Likewise.
6827 * regformats/i386/x32-avx-linux.dat: Likewise.
6828 * regformats/i386/x32-avx.dat: Likewise.
6829 * regformats/i386/x32-linux.dat: Likewise.
6830 * regformats/i386/x32.dat: Likewise.
6831
ee41036f
TG
68322012-04-10 Tristan Gingold <gingold@adacore.com>
6833
6834 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6835 code to kill the inferior.
6836
a7aa5b8a
MK
68372012-04-09 Mark Kettenis <kettenis@gnu.org>
6838
6839 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6840 defines.
6841 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6842 defines.
a09130f9 6843 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6844 (yyvsp): New defines.
6845 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6846 defines.
6847 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6848 defines.
6849 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6850 defines.
6851 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6852 defines.
6853 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6854 defines.
6855
fb57d452
MK
68562012-04-09 Mark Kettenis <kettenis@gnu.org>
6857
a09130f9 6858 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6859 (sparc64_store_arguments): Fix coding style.
6860
cdc7b32f
MK
68612012-04-07 Mark Kettenis <kettenis@gnu.org>
6862
6863 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6864 complex floats, adjust some related comments and tighten a related
6865 assertion.
6866 (sparc64_extract_return_value): Handle complex floats.
6867
7adf1e79
DE
68682012-04-07 Doug Evans <dje@google.com>
6869
6870 * dwarf2read.c (load_partial_dies): Change condition to assert.
6871
50f1ae7b
DE
68722012-04-06 Doug Evans <dje@google.com>
6873
6874 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6875 "mov %rsp,%rbp".
6876
55fa75c3
KB
68772012-04-05 Kevin Buettner <kevinb@redhat.com>
6878
6879 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6880 fencepost error.
6881 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6882 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6883 architecture.
6884
40e084e1
KS
68852012-04-05 Keith Seitz <keiths@redhat.com>
6886
6887 * linespec.c (decode_compound): Remove.
6888 (enum offset_relative_sign): New enum.
6889 (struct line_offset): New struct.
6890 (struct linespec): New struct.
6891 (struct linespec_state): Move file_symtabs,
6892 user_filename, and user_function into struct linespec.
6893 Make result an anonymous struct holding vectors of
6894 symbolp and minsym_and_objfile_d.
6895 Add language member.
6896 (enum ls_token_type): New enum.
6897 (linespec_keywords): New array.
6898 (struct ls_token): New struct.
6899 (struct ls_parser): New struct.
6900 (linespec_lexer_lex_number): New function.
6901 (linespec_lexer_lex_keyword): New function.
6902 (is_ada_operator): New function.
6903 (skip_quote_char): New function.
6904 (copy_token_string): New function.
6905 (is_closing_quote_enclosed): New function.
6906 (find_parameter_list_end): New function.
6907 (linespec_lexer_lex_string): New function.
6908 (linespec_lexer_lex_one): New function.
6909 (linespec_lexer_consume_token): New function.
6910 (linespec_lexer_peek_token): New function.
6911 (cplusplus_error): Remove unused function.
6912 (find_methods): Update comment.
6913 (find_toplevel_char): Return const.
6914 (is_objc_method_format): Remove unused function.
6915 (find_toplevel_string): New function.
6916 (is_linespec_boundary): Remove.
6917 (symbol_not_found_error): New function.
6918 (find_method_overload_end): Remove function.
6919 (unexpected_linespec_error): New function.
6920 (keep_name_info): Remove.
6921 (linespec_parse_line_offset): New function.
6922 (linespec_parse_basic): New function.
6923 (canonicalize_linespec): New function.
6924 (decode_line_internal): Remove.
6925 (create_sals_line_offset): New function adapted from
6926 decode_all_digits.
6927 (convert_linespec_to_sals): New function.
6928 (parse_linespec): New function.
6929 (linespec_parser_new): New function.
6930 (linespec_state_destructor): Change parameter type to
6931 struct linespec_state *.
6932 Add language parameter.
6933 Remove freeing of moved members.
6934 (linespec_parser_delete): New function.
6935 (decode_line_full): Use parse_linespec and linespec_parser_new.
6936 (decode_line_1): Likewise.
6937 (decode_indirect): Rename to ...
6938 (linespec_expression_to_pc): ... this and rewrite
6939 to simply find CORE_ADDR, storing this result for later
6940 conversion to SALs.
6941 (locate_first_half): Remove.
6942 (deocde_objc): Add parameter LS.
6943 Initialize new struct collect_info members.
6944 Handle minimal symbols, too.
6945 (decode_compound): Delete.
6946 (lookup_prefix_sym): Rewrite.
6947 (compare_msymbols): New function.
6948 (find_method): Rewrite.
6949 Do not call cplusplus_error.
6950 (symtabs_from_filename): Rewrite.
6951 (collect_function_symbols): Delete.
6952 (find_function_symbols): Rewrite without ARGPTR-style
6953 processing.
6954 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6955 (decode_dollar): Adapted and renamed to ...
6956 (linespec_parse_variable): ... this.
6957 (find_linespec_symbols): New function.
6958 (decode_label): Adapted and renamed to ...
6959 (find_label_symbols): ... this.
6960 (decode_digits_list_mode): Add and use LS argument.
6961 (decode_digits_ordinary): Likewise.
6962 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6963 If in list mode, allow any symbol class. Otherwise, only
6964 permit LOC_BLOCK symbols.
6965 (minsym_found): Update comments.
6966 (search_minsyms_for_name): Do not convert the matching symbol
6967 into a SAL. Simply push the symbol and objfile into the
6968 result vector.
6969 (decode_variable): Delete. Contents adapted into
6970 find_linespec_symbols.
6971
6972 * cp-support.c (SKIP_SPACE): Remove.
6973 (operator_tokens): Remove unused global.
6974 (cp_validate_operator): Remove.
6975 * cp-support.h (cp_validate_operator): Remove declaration.
6976
a72c8f6a
JK
69772012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6978
6979 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6980 for TYPE_VPTR_FIELDNO.
6981 * valprint.c (valprint_check_validity): Make it global, move the
6982 function comment ...
6983 * value.h (valprint_check_validity): ... to this new declaration.
6984
cf9bb588
TG
69852012-04-02 Tristan Gingold <gingold@adacore.com>
6986
6987 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6988 the STATE32 api for i386 state.
6989 (i386_darwin_store_inferior_registers): Likewise.
6990
17092398
TG
69912012-04-02 Tristan Gingold <gingold@adacore.com>
6992
6993 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6994 SS offset.
6995 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6996 format_string.
6997
ece0061f
TG
69982012-04-02 Tristan Gingold <gingold@adacore.com>
6999
7000 PR gdb/13901
d987a266 7001 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7002
cf65ecd3
JK
70032012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7004
7005 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7006
9bc3523d
TT
70072012-03-30 Tom Tromey <tromey@redhat.com>
7008
7009 * python/python.c (gdbpy_decode_line): Move cleanup creation out
7010 of TRY_CATCH. Fix error handling.
7011 * python/py-value.c (convert_value_from_python): Move 'old'
7012 declaration to innermost scope.
7013
b1ed564a
JB
70142012-03-29 Joel Brobecker <brobecker@adacore.com>
7015 Andrey Smirnov <andrew.smirnov@gmail.com>
7016
7017 -Wshadow warning fix.
7018 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
7019 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
7020 Adjust code accordingly.
7021
cb8e9b97
JB
70222012-03-29 Joel Brobecker <brobecker@adacore.com>
7023
7024 * ada-lang.c (symbol_completion_add): Rename parameter
7025 "encoded" into "encoded_p". Ajust code and documentation
7026 accordingly.
7027
c0af1706
JB
70282012-03-29 Joel Brobecker <brobecker@adacore.com>
7029 Andrey Smirnov <andrew.smirnov@gmail.com>
7030
7031 -Wshadow warning fix.
7032 * ada-lang.c (symbol_completion_add): Rename parameter
7033 "wild_match" into wild_match_p. Update code and documentation
7034 accordingly.
7035
6ea35997
JB
70362012-03-29 Joel Brobecker <brobecker@adacore.com>
7037
7038 * ada-lang.c (symbol_completion_match): Rename parameter
7039 "encoded" into "encoded_p". Ajust code and documentation
7040 accordingly.
7041
e701b3c0
JB
70422012-03-29 Joel Brobecker <brobecker@adacore.com>
7043 Andrey Smirnov <andrew.smirnov@gmail.com>
7044
7045 -Wshadow warning fix.
7046 * ada-lang.c (symbol_completion_match): Rename parameter
7047 "wild_match" into "wild_match_p". Adjust code and function
7048 documentation accordingly.
7049
5e2336be
JB
70502012-03-29 Joel Brobecker <brobecker@adacore.com>
7051 Andrey Smirnov <andrew.smirnov@gmail.com>
7052
7053 -Wshadow warning fix.
7054 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
7055 "symbol_info" into "info". Adjust code accordingly.
7056 (ada_lookup_symbol): Likewise.
7057
9f88c959
JB
70582012-03-29 Joel Brobecker <brobecker@adacore.com>
7059
7060 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
7061 of this function's documentation.
7062
82ccd55e
JB
70632012-03-29 Joel Brobecker <brobecker@adacore.com>
7064 Andrey Smirnov <andrew.smirnov@gmail.com>
7065
7066 -Wshadow warning fix.
7067 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7068 variable into "wild_match_p". Adjust code accordingly.
7069
d0a8ab18
JB
70702012-03-29 Joel Brobecker <brobecker@adacore.com>
7071 Andrey Smirnov <andrew.smirnov@gmail.com>
7072
7073 -Wshadow warning fix.
7074 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7075 parameter into "wild_match_p". Adjust code accordingly.
7076 Document this parameter in the function description.
7077
48b78332
JB
70782012-03-29 Joel Brobecker <brobecker@adacore.com>
7079 Andrey Smirnov <andrew.smirnov@gmail.com>
7080
7081 -Wshadow warning fix.
7082 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7083 "wild_match" parameter to "wild_match_p" (-Wshadow).
7084
2e6e0353
JB
70852012-03-29 Joel Brobecker <brobecker@adacore.com>
7086
7087 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7088 in function documentation.
7089
dc4024cd
JB
70902012-03-29 Joel Brobecker <brobecker@adacore.com>
7091 Andrey Smirnov <andrew.smirnov@gmail.com>
7092
7093 -Wshadow warning fix.
7094 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
7095 variable into wild_match_p. Adjust code accordingly.
7096
6c88661c
JB
70972012-03-29 Joel Brobecker <brobecker@adacore.com>
7098 Andrey Smirnov <andrew.smirnov@gmail.com>
7099
7100 * ada-valprint.c (ada_val_print_1): Move the code handling
7101 TYPE_CODE_ENUM inside its own lexical block. Declare
7102 variables len and val there, instead of in the function's
7103 top level block. Avoid declaring deref_val again in a way
7104 that shadows another variable of the same name declared
7105 in one of the up-level blocks. Just re-use the up-level
7106 variable instead.
7107
4e5c77fe
JB
71082012-03-29 Joel Brobecker <brobecker@adacore.com>
7109
7110 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7111 Replace block_found argument by symbol_info. Adjust
7112 implementation accordingly. Add function documentation.
7113 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7114 Fix documentation.
7115 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7116 * ada-exp.y (write_object_renaming): Adjust to new
7117 ada_lookup_encoded_symbol API.
7118
1c0ac8c7
JB
71192012-03-29 Joel Brobecker <brobecker@adacore.com>
7120
7121 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7122 documentation.
7123
2aaed979
KB
71242012-03-28 Rathish C <rathish.c@kpitcummins.com>
7125
7126 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7127 (v850_register_name): Add the mpu and fpu register names.
7128 (v850e_register_name): Add the mpu and fpu register names.
7129 (v850e2_register_name): New function.
a09130f9 7130 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7131 bfd_mach_v850e2v3.
7132
927fbba6
JB
71332012-03-28 Joel Brobecker <brobecker@adacore.com>
7134
7135 * NEWS: Add entry for Ada varobj support.
7136
d32cafc7
JB
71372012-03-28 Joel Brobecker <brobecker@adacore.com>
7138
7139 * varobj.c (default_value_is_changeable_p): New function,
7140 extracted from varobj_value_is_changeable_p. Add declaration.
7141 (ada_value_is_changeable_p): New function, extracted from
7142 varobj_value_is_changeable_p. Add declaration.
7143 (struct language_specific): New field "value_is_changeable_p".
7144 (languages): Add entries for new field.
7145 (varobj_create): Set language before calling install_new_value.
7146 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7147 "value_is_changeable_p" language callback.
7148
181875a4
JB
71492012-03-28 Joel Brobecker <brobecker@adacore.com>
7150
7151 * ada-varobj.h, ada-varobj.c: New files.
7152 * Makefile.in (SFILES): Add ada-varobj.c.
7153 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7154 (COMMON_OBS): Add ada-varobj.o.
7155
7a290c40
JB
71562012-03-28 Joel Brobecker <brobecker@adacore.com>
7157
7158 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7159 (struct language_specific): New field "value_has_mutated".
7160 (languages): Set field "value_has_mutated" in each entry of array.
7161 (varobj_value_has_mutated): New function.
7162 (varobj_udpdate): Add handling of type mutation.
7163 (value_of_root): Add handling of type mutation.
7164 (ada_value_has_mutated): New function.
7165
ca9b8b9c
PA
71662012-03-28 Pedro Alves <palves@redhat.com>
7167
7168 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7169 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7170
cc0265cd
TT
71712012-03-28 Tom Tromey <tromey@redhat.com>
7172
7173 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7174 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7175 before returning.
7176
3ad2ec6f
TT
71772012-03-28 Tom Tromey <tromey@redhat.com>
7178
7179 * .dir-locals.el: New file.
7180
4a6510ba
PA
71812012-03-28 Pedro Alves <palves@redhat.com>
7182
7183 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7184
5a75128f
JB
71852012-03-28 Joel Brobecker <brobecker@adacore.com>
7186
7187 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7188 handling for r0.
7189
f99d8bf4
PA
71902012-03-27 Pedro Alves <palves@redhat.com>
7191
7192 Eliminate struct ui_stream.
7193
7194 * ui-out.h (struct ui_stream): Delete.
7195 (ui_out_field_stream): Adjust prototype.
7196 (ui_out_stream_new, ui_out_stream_delete)
7197 (make_cleanup_ui_out_stream_delete): Delete declarations.
7198 * ui-out.c (ui_out_field_stream): Change prototype to take a
7199 ui_file instead of a ui_stream. Adjust.
7200 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7201 (make_cleanup_ui_out_stream_delete): Delete.
7202 * breakpoint.c (print_breakpoint_location)
7203 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7204 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7205 * disasm.c (dump_insns): Ditto.
7206 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7207 prototype.
7208 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7209 ui_stream/ui_out_stream_new.
7210 * infcmd.c (print_return_value): Ditto.
7211 * osdata.c (info_osdata_command): Don't allocate a local
7212 ui_stream.
7213 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7214 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7215 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7216 allocate a local ui_stream.
7217 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7218 instead of ui_stream/ui_out_stream_new.
7219 (list_args_or_locals): Don't allocate a local ui_stream.
7220 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7221 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7222 ui_stream/ui_out_stream_new.
7223 * cli/cli-setshow.c (do_setshow_command): Ditto.
7224
6350a066 72252012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7226
6350a066
PA
7227 * arm-linux-tdep.c (arm_linux_init_abi): Call
7228 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7229 * arm-tdep.c (arm_process_record): New function.
7230 (deallocate_reg_mem): New function.
7231 (decode_insn): New function.
7232 (thumb_record_branch): New function.
7233 (thumb_record_ldm_stm_swi(): New function.
7234 (thumb_record_misc): New function.
7235 (thumb_record_ld_st_stack): New function.
7236 (thumb_record_ld_st_imm_offset): New function.
7237 (thumb_record_ld_st_reg_offset(): New function.
7238 (thumb_record_add_sub_cmp_mov): New function.
7239 (thumb_record_shift_add_sub): New function.
7240 (arm_record_coproc_data_proc): New function.
7241 (arm_record_coproc): New function.
7242 (arm_record_b_bl): New function.
7243 (arm_record_ld_st_multiple): New function.
7244 (arm_record_ld_st_reg_offset): New function.
7245 (arm_record_ld_st_imm_offset): New function.
7246 (arm_record_data_proc_imm): New function.
7247 (arm_record_data_proc_misc_ld_str): New function.
7248 (arm_record_extension_space): New function.
7249 (arm_record_strx): New function.
7250 (sbo_sbz): New function.
7251 (struct insn_decode_record): New structure for arm insn record.
7252 (REG_ALLOC): New macro for reg allocations.
7253 (MEM_ALLOC): New macro for memory allocations.
7254 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7255
89e028e2
AS
72562012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7257
7258 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7259 (store_register): Likewise.
7260
6350a066 72612012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7262
6350a066 7263 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7264
5b43fab2
JK
72652012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7266
7267 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7268 Describe also the option "auto".
7269
b5453b95
RH
72702012-03-22 Richard Henderson <rth@redhat.com>
7271
7272 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7273 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7274
227ee7fc
RH
72752012-03-22 Richard Henderson <rth@redhat.com>
7276
7277 * jit.c (jit_read_code_entry): Compute alignment and offset of
7278 int64_t member before computing entry_size.
7279
7b282c5a
SCR
72802012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7281
7282 Python scripting: Add new method Value.referenced_value to
7283 gdb.Value which can dereference pointer as well as reference
7284 values.
7285 * NEWS: Add entry under 'Python scripting' about the new method
7286 Value.referenced_value on gdb.Value objects.
7287 * python/py-value.c (valpy_referenced_value): New function
7288 defining a new method on gdb.Value objects which can dereference
7289 pointer and reference values.
7290
0c83539f
SCR
72912012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7292
7293 * MAINTAINERS (Write After Approval): Add myself to the list.
7294
7ccffd7c
KB
72952012-03-21 Kevin Buettner <kevinb@redhat.com>
7296
7297 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7298 in addition to "main".
7299
bd0b9f9e
JB
73002012-03-21 Joel Brobecker <brobecker@adacore.com>
7301
7302 * expression.h (op_name): Add declaration.
7303 * expprint.c (op_name): Remove declaration. Make non-static.
7304 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7305
a5362b9a
TS
73062012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7307
7308 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7309 of struct siginfo.
7310 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7311 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7312 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7313 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7314 (linux_nat_get_siginfo): Likewise.
7315 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7316 (linux_nat_get_siginfo): Likewise.
7317 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7318 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7319 * procfs.c (gdb_siginfo_t): Likewise.
7320
adcadaab
MF
73212012-03-21 Mike Frysinger <vapier@gentoo.org>
7322
7323 * .gitignore: Ignore more files.
7324
e278ad5b
PA
73252012-03-20 Pedro Alves <palves@redhat.com>
7326
7327 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7328 returns.
7329
741e63d7
YQ
73302012-03-20 Yao Qi <yao@codesourcery.com>
7331
7332 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7333 comment.
7334
b64f50a1
JK
73352012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7336
7337 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7338 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7339 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7340 sect_offset.
7341 * dwarf2expr.h (cu_offset, sect_offset): New types.
7342 (struct dwarf_expr_context_funcs) <dwarf_call>
7343 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7344 sect_offset.
7345 (struct dwarf_expr_context) <len>: Improve the comment.
7346 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7347 cu_offset and sect_offset.
7348 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7349 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7350 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7351 * dwarf2loc.h: Include dwarf2expr.h.
7352 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7353 and sect_offset.
7354 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7355 Improve the comment.
7356 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7357 (struct signatured_type, struct line_header, struct partial_die_info)
7358 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7359 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7360 (get_die_type_at_offset, create_cus_from_index)
7361 (create_signatured_type_table_from_index, dw2_get_file_names)
7362 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7363 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7364 (create_debug_types_hash_table, process_psymtab_comp_unit)
7365 (load_partial_comp_unit, create_all_comp_units)
7366 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7367 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7368 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7369 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7370 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7371 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7372 (find_partial_die, read_attribute_value, lookup_die_type)
7373 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7374 (is_ref_attr): New function comment.
7375 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7376 Use cu_offset and sect_offset.
7377 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7378 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7379 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7380 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7381 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7382 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7383 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7384 sect_offset.
7385
e97a38f7
JK
73862012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7387
7388 Code cleanup.
7389 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7390 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7391 with xfree.
7392 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7393
8320cc4f
JK
73942012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7395
7396 * NEWS: Describe new options --init-command=FILE, -ix and
7397 --init-eval-command=COMMAND, -iex.
7398 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7399 CMDARG_INIT_COMMAND.
7400 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7401 "init-command", "init-eval-command", "ix" and "iex" to the variable
7402 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7403 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7404 (print_gdb_help): Describe --init-command=FILE, -ix and
7405 --init-eval-command=COMMAND, -iex.
7406
26743505
JK
74072012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7408
7409 Code cleanup.
7410 * main.c (struct cmdarg): Move it here from main. Add more comments.
7411 (cmdarg_s, VEC (cmdarg_s)): New.
7412 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7413 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7414 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7415 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7416 of CMDARG.
7417
5ff5c7b4
TT
74182012-03-19 Tom Tromey <tromey@redhat.com>
7419
7420 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7421
ab260dad
JK
74222012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7423
7424 PR symtab/13777
7425 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7426 GCC >=4.5.
7427
c366c1f0
TT
74282012-03-16 Chris January <chris.january@allinea.com>
7429
7430 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7431 of clear.
7432
e16edb45
TT
74332012-03-16 Chris January <chris.january@allinea.com>
7434
7435 * source.c (add_path): Use memmove instead of strcpy because the
7436 strings overlap.
7437
53ba8333
JB
74382012-03-16 Joel Brobecker <brobecker@adacore.com>
7439
7440 * value.h (set_value_parent): Add declaration.
7441 * value.c (set_value_parent): New function.
7442 (value_address): If VALUE->PARENT is not NULL, then use it as
7443 the base address instead of VALUE->LOCATION.address.
7444 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7445 the same as OBJ's address. Adjust V's offset accordingly.
7446 Set V's parent.
7447
481860b3
GB
74482012-03-16 Gary Benson <gbenson@redhat.com>
7449
7450 PR breakpoints/10738
7451 * dwarf2read.c (use_deprecated_index_sections): New global.
7452 (struct partial_die_info): New member may_be_inlined.
7453 (read_partial_die): Set may_be_inlined where appropriate.
7454 (add_partial_subprogram): Add partial symbols for partial
7455 DIEs that may be inlined.
7456 (new_symbol_full): Add inlined subroutines to the current
7457 scope.
7458 (write_psymtabs_to_index): Bump version number.
7459 (dwarf2_read_index): Read only version 6 indices unless
7460 use_deprecated_index_sections is set.
7461 * linespec.c (symbol_and_data_callback): New structure.
7462 (iterate_inline_only): New function.
7463 (iterate_over_all_matching_symtabs): New argument
7464 "include_inline". If nonzero, also call the callback for
7465 symbols representing inlined subroutines.
7466 (lookup_prefix_sym): Pass extra argument to the above.
7467 (find_function_symbols): Likewise.
7468 (add_matching_symbols_to_info): Likewise.
7469 * NEWS: Mention that GDB can now set breakpoints on inlined
7470 functions.
7471
d0e7e15a
PM
74722012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7473
7474 * p-typeprint.c (pascal_type_print_method_args):
7475 Fix display of parameter of methods.
7476
3d354654
PM
74772012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7478
7479 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7480 Add missing prototype.
7481
cafe75b0
JK
74822012-03-16 Yao Qi <yao@codesourcery.com>
7483 Jan Kratochvil <jan.kratochvil@redhat.com>
7484
7485 Fix false compilation warning.
7486 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7487
25f8c692
JL
74882012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7489 Pedro Alves <pedro@codesourcery.com>
7490
7491 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7492 (arm_register_g_packet_guesses): New function.
7493 (arm_gdbarch_init): Don't force a target description with
7494 registers when the executable is detected as M-profile. Instead
7495 set gdbarch->tdep->is_m. Register `g' packet guesses.
7496 (_initialize_arm_tdep): Initialize the new target description.
7497 * features/arm-with-m-fpa-layout.xml: New description.
7498 * features/arm-with-m-fpa-layout.c: New, generated.
7499
35c63cd8
JB
75002012-03-15 Joel Brobecker <brobecker@adacore.com>
7501
7502 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7503 Update function description.
7504 (insert_bp_location): Do not wipe bl->target_info out.
7505 * mem-break.c: #include "gdb_string.h".
7506 (default_memory_insert_breakpoint): Do not call target_read_memory
7507 with a pointer to the breakpoint's shadow_contents buffer. Use
7508 a local buffer instead.
7509 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7510
57651221
TT
75112012-03-15 Tom Tromey <tromey@redhat.com>
7512
7513 * NEWS: Mention "info vtbl", not "info vtable".
7514 * cp-support.c (info_vtbl_command): Fix comment.
7515 (_initialize_cp_support): Fix text.
7516
410528f0
TT
75172012-03-15 Tom Tromey <tromey@redhat.com>
7518
7519 * cp-valprint.c (cp_print_value_fields): Use
7520 print_function_pointer_address for vtable slot.
7521
c4aeac85
TT
75222012-03-15 Tom Tromey <tromey@redhat.com>
7523
7524 * gnu-v3-abi.c (struct value_and_voffset): New.
7525 (hash_value_and_voffset, eq_value_and_voffset)
7526 (compare_value_and_voffset, compute_vtable_size)
7527 (print_one_vtable, gnuv3_print_vtable): New functions.
7528 (init_gnuv3_ops): Initialize 'print_vtable' field.
7529 * cp-support.c (info_vtbl_command): New function.
7530 (_initialize_cp_support): Add "info vtbl".
7531 * cp-abi.h (cplus_print_vtable): Declare.
7532 (struct cp_abi_ops) <print_vtable>: New field.
7533 * cp-abi.c (cplus_print_vtable): New function.
7534 * NEWS: Update.
7535
95cbceff
TT
75362012-03-15 Tom Tromey <tromey@redhat.com>
7537
7538 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7539 iterate_over_symbols.
7540
589b4a32
DE
75412012-03-14 Doug Evans <dje@google.com>
7542
7543 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7544 DW_OP_GNU_parameter_ref.
7545
e837f12a
JK
75462012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7547
7548 Fix double prompt of 'interpreter-exec mi'.
7549 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7550 (mi_interpreter_resume): use it.
7551 (mi_execute_command_input_handler): New function.
7552 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7553 mi_execute_command_input_handler.
7554
ff1e4526 75552012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7556
7557 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7558 prototype.
7559 (darwin_debug_port_info): Make static.
7560 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7561 * machoread.c (_initialize_machoread): Add prototype.
7562 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7563 (i386_darwin_set_control, i386_darwin_get_control)
7564 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7565 i386_darwin_get_status, i386_darwin_get_control):
7566 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7567
d8a5d6ee
JB
75682012-03-13 Joel Brobecker <brobecker@adacore.com>
7569
7570 * ax-gdb.c (gen_usual_unary): Remove special handling of
7571 enum and bool types.
7572
af381b8c
JB
75732012-03-13 Joel Brobecker <brobecker@adacore.com>
7574
7575 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7576
786c562f
JB
75772012-03-13 Joel Brobecker <brobecker@adacore.com>
7578
7579 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7580
e3ebf1bb
JB
75812012-03-13 Chris January <chris.january@allinea.com>
7582
7583 * aix-thread.c (fill_sprs): Store the floating point registers
7584 at the correct offsets into vals.
7585
c5b7e1cb
DE
75862012-03-13 Doug Evans <dje@google.com>
7587
16899756
DE
7588 * NEWS: Mention symbol-reloading has been deleted.
7589 * symfile.c (symbol_reloading): Delete.
7590 (show_symbol_reloading): Delete.
7591 (_initialize_symfile): Delete set/show symbol-reloading.
7592
c5b7e1cb
DE
7593 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7594 read_in_chain until we have successfully read it in.
7595 (load_full_comp_unit): Ditto.
7596 (read_signatured_type): Add comment.
7597
46cb6474
JB
75982012-03-13 Chris January <chris.january@allinea.com>
7599
7600 * stabsread.c (fix_common_block): Change type of valu argument
7601 to CORE_ADDR.
7602
76219d77
JB
76032012-03-13 Chris January <chris.january@allinea.com>
7604
7605 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7606 instruction.
7607
87b0bb13
JK
76082012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7609
7610 * common/linux-procfs.c (linux_proc_get_int): New, from
7611 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7612 field.
7613 (linux_proc_get_tgid): Only call linux_proc_get_int.
7614 (linux_proc_get_tracerpid): New.
7615 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7616 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7617 linux_proc_pid_has_state.
7618 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7619 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7620 (linux_ptrace_attach_warnings): New.
7621 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7622 New declaration.
7623 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7624 (linux_nat_attach): New variables ex, buffer, message and message_s.
7625 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7626
5f572dec
JK
76272012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7628
7629 * Makefile.in (linux-ptrace.o): New.
7630 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7631 from linux-nat.c.
7632 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7633 * common/linux-ptrace.c: New file.
7634 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7635 * config/arm/linux.mh: Likewise.
7636 * config/i386/linux.mh: Likewise.
7637 * config/i386/linux64.mh: Likewise.
7638 * config/ia64/linux.mh: Likewise.
7639 * config/m32r/linux.mh: Likewise.
7640 * config/m68k/linux.mh: Likewise.
7641 * config/mips/linux.mh: Likewise.
7642 * config/pa/linux.mh: Likewise.
7643 * config/powerpc/linux.mh: Likewise.
7644 * config/powerpc/ppc64-linux.mh: Likewise.
7645 * config/powerpc/spu-linux.mh: Likewise.
7646 * config/s390/s390.mh: Likewise.
7647 * config/sparc/linux.mh: Likewise.
7648 * config/sparc/linux64.mh: Likewise.
7649 * config/xtensa/linux.mh: Likewise.
7650 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7651 common/linux-procfs.c.
7652 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7653
44f238bb
PA
76542012-03-13 Hui Zhu <teawater@gmail.com>
7655 Pedro Alves <palves@redhat.com>
7656
7657 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7658 CREATE_BREAKPOINT_FLAGS_INSERTED.
7659 (create_breakpoint_sal, create_breakpoints_sal)
7660 (base_breakpoint_create_breakpoints_sal)
7661 (tracepoint_create_breakpoints_sal)
7662 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7663 down.
7664 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7665 (ftrace_command, strace_command): Adjust.
7666 (create_tracepoint_from_upload): Pass
7667 CREATE_BREAKPOINT_FLAGS_INSERTED.
7668 * breakpoint.h (enum breakpoint_create_flags): New.
7669 (create_breakpoint): New flags parameter.
7670 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7671 * python/py-breakpoint.c (bppy_init): Adjust.
7672 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7673 * spu-tdep.c (spu_catch_start): Adjust.
7674
1e51243a
PA
76752012-03-13 Pedro Alves <palves@redhat.com>
7676 Hui Zhu <teawater@gmail.com>
7677 Yao Qi <yao@codesourcery.com>
7678
7679 * remote.c (struct remote_state): New field `starting_up'.
7680 (remote_start_remote): Set and clear it.
7681 (remote_can_download_tracepoint): If starting up, return false.
7682
fa3064dd
YQ
76832012-03-13 Yao Qi <yao@codesourcery.com>
7684
7685 * inferior.h (struct inferior): Remove fields any_syscall_count,
7686 syscalls_counts and total_syscalls_count. Move them to new
7687 struct catch_syscall_inferior_data in breakpoint.c.
7688 * breakpoint.c: Call DEF_VEC_I(int).
7689 (struct catch_syscall_inferior_data): New.
7690 (get_catch_syscall_inferior_data): New.
7691 (catch_syscall_inferior_data_cleanup): New.
7692 (insert_catch_syscall): Update to access data in
7693 struct catch_syscall_inferior_data.
7694 (insert_catch_syscall): Likewise.
7695 (remove_catch_syscall): Likewise.
7696 (remove_catch_syscall): Likewise.
7697 (is_syscall_catchpoint_enabled): Likewise.
7698 (add_catch_command): Likewise.
7699 (_initialize_breakpoint): Register cleanup.
7700 * breakpoint.h: Removed DEF_VEC_I(int).
7701 * dwarf2loc.c: Call DEF_VEC_I(int).
7702 * mi/mi-main.c: Likewise.
7703
460fac3c
MK
77042012-03-12 Mark Kettenis <kettenis@gnu.org>
7705
7706 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7707
e1aca11e
JB
77082012-03-12 Chris January <chris.january@allinea.com>
7709
7710 * aix-thread.c (_initialize_aix_thread): Add prototype.
7711 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7712 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7713
649c7061
JB
77142012-03-12 Joel Brobecker <brobecker@adacore.com>
7715
7716 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7717 include of "amd64-nat.h".
7718
0b49e518
TT
77192012-03-12 Tom Tromey <tromey@redhat.com>
7720
7721 * buildsym.c (record_pending_block): Now static.
7722 * buildsym.h: (record_pending_block): Remove.
7723
fd24fa94
AT
77242012-03-12 Andreas Tobler <andreast@fgznet.ch>
7725
7726 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7727
ba919b58
TT
77282012-03-09 Tom Tromey <tromey@redhat.com>
7729
7730 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7731 producer_is_gxx_lt_4_6>: New fields.
7732 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7733
a48e046c
TT
77342012-03-09 Tom Tromey <tromey@redhat.com>
7735
7736 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7737
6f5e9362
JB
77382012-03-08 Joel Brobecker <brobecker@adacore.com>
7739
7740 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7741 prototype.
7742
8d037db9
JB
77432012-03-08 Joel Brobecker <brobecker@adacore.com>
7744
7745 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7746
4e841acf
JK
77472012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7748
7749 Fix -Wmissing-prototypes build.
7750 * arm-linux-nat.c (get_thread_id): Make it static.
7751 * xtensa-linux-nat.c (get_thread_id): Likewise.
7752
c6030312
JB
77532012-03-08 Joel Brobecker <brobecker@adacore.com>
7754
7755 * server.c (process_point_options): If a conditional expression
7756 is found, only print a message if remote_debug is nonzero.
7757
52323be9
LM
77582012-03-08 Luis Machado <lgustavo@codesourcery.com>
7759
7760 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7761 of internal error for unknown/unsupported types.
7762
7fe25d9b
JK
77632012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7764
7765 Fix CU relative vs. absolute DIE offsets.
7766 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7767 offset to offset_in_cu.
7768 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7769 TYPE_OFFSET.
7770 (dwarf2_fetch_die_location_block): Rename parameter offset to
7771 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7772
05e7c244
JK
77732012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7774
7775 * libunwind-frame.c: Rename to ...
7776 * ia64-libunwind-tdep.c: ... here.
7777 * libunwind-frame.h: Rename to ...
7778 * ia64-libunwind-tdep.h: ... here.
7779 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7780 ia64-libunwind-tdep.h.
7781 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7782 * README (--with-libunwind): Rename to ...
7783 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7784 * config.in: Regenerate.
7785 * configure: Regenerate.
7786 * configure.ac: New option --with-libunwind-ia64, make the
7787 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7788 Remove AC_DEFINE for HAVE_LIBUNWIND.
7789 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7790 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7791 Rename libunwind-frame in the general comment.
7792 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7793 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7794 Move forward declarations inside #ifndef. Rename libunwind-frame in
7795 the general comment.
7796 * ia64-tdep.c: Rename libunwind-frame.h #include to
7797 ia64-libunwind-tdep.h.
7798 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7799 (ia64_libunwind_descr): Rename libunwind-frame to
7800 ia64-libunwind-tdep in these function comments.
7801 * ia64-tdep.h: Rename libunwind-frame.h #include to
7802 ia64-libunwind-tdep.h.
7803 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7804 ia64-libunwind-tdep in that data comment.
7805
3755cbfd
JK
78062012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7807
7808 * libunwind-frame.h (struct frame_unwind): New declaration.
7809
d1cda5d9
JB
78102012-03-08 Joel Brobecker <brobecker@adacore.com>
7811
7812 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7813 "set breakpoint condition-evaluation" command.
7814
a0ba0aa2
TG
78152012-03-08 Tristan Gingold <gingold@adacore.com>
7816
7817 * sparc-stub.c: Move to stubs/
7818 * sh-stub.c: Likewise.
7819 * m68k-stub.c: Likewise.
7820 * m32r-stub.c: Likewise.
7821 * i386-stub.c: Likewise.
7822
7b8b6d6d
AS
78232012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7824
007cafee
AS
7825 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7826 linux_get_siginfo_type.
7827
7b8b6d6d
AS
7828 * m68klinux-nat.c: Include "gdb_proc_service.h".
7829 (PTRACE_GET_THREAD_AREA): Define.
7830 (ps_get_thread_area): New function.
7831
bba74b36
YQ
78322012-03-08 Yao Qi <yao@codesourcery.com>
7833
7834 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7835 `xsnprintf'.
7836 (remote_query_attached): Likewise.
7837 (remote_static_tracepoint_marker_at): Likewise.
7838 (remote_set_permissions): Likewise.
7839 (remote_detach_1, extended_remote_attach_1): Likewise.
7840 (send_g_packet, remote_vkill): Likewise.
7841 (extended_remote_disable_randomization): Likewise.
7842 (remote_add_target_side_condition): Likewise.
7843 (remote_insert_breakpoint): Likewise.
7844 (remote_remove_breakpoint): Likewise.
7845 (remote_insert_watchpoint): Likewise.
7846 (remote_remove_watchpoint): Likewise.
7847 (remote_insert_hw_breakpoint): Likewise.
7848 (remote_insert_hw_breakpoint): Likewise.
7849 (remote_remove_hw_breakpoint): Likewise.
7850 (remote_download_command_source): Likewise.
7851 (remote_download_tracepoint): Likewise.
7852 (remote_download_trace_state_variable): Likewise.
7853 (remote_disable_tracepoint): Likewise.
7854 (remote_trace_set_readonly_regions): Likewise.
7855 (remote_get_tracepoint_status): Likewise.
7856 (remote_trace_find): Likewise.
7857 (remote_get_trace_state_variable_value): Likewise.
7858 (remote_set_disconnected_tracing): Likewise.
7859 (remote_set_circular_trace_buffer): Likewise.
7860 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7861 (remote_use_agent): Likewise.
7862 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7863 Update callers.
7864
9b224c5e
PA
78652012-03-07 Pedro Alves <palves@redhat.com>
7866
7867 * NEWS: Mention QProgramSignals.
7868 * inferior.h (update_signals_program_target): Declare.
7869 * infrun.c: (update_signals_program_target): New.
7870 (handle_command): Update the target of the new program signals
7871 array changes.
7872 * remote.c (PACKET_QProgramSignals): New enum.
7873 (last_program_signals_packet): New global.
7874 (remote_program_signals): New.
7875 (remote_start_remote): Update the target with the program signals
7876 list.
7877 (remote_protocol_features): Add entry for QPassSignals.
7878 (remote_open_1): Free anc clear last_program_signals_packet.
7879 (init_remote_ops): Install remote_program_signals.
7880 * target.c (update_current_target): Adjust.
7881 (target_program_signals): New.
7882 * target.h (struct target_ops) <to_program_signals>: New field.
7883 (target_program_signals): Declare.
7884
74c48cbb
PA
78852012-03-07 Pedro Alves <palves@redhat.com>
7886
7887 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7888 extensions.
7889
0c13fc49
AS
78902012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7891
7892 * m68klinux-nat.c (getregs_supplies): Make static.
7893 (getfpregs_supplies): Likewise.
7894 (have_ptrace_getregs): Likewise.
7895
1281d2a3
JB
78962012-03-06 Joel Brobecker <brobecker@adacore.com>
7897
7898 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7899 in call to get_die_type_at_offset.
7900
2b03b41d
SS
79012012-03-06 Stan Shebs <stan@codesourcery.com>
7902
7903 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7904 * mi/mi-cmd-disas.c: Ditto.
7905 * mi/mi-cmd-env.c: Ditto.
7906 * mi/mi-cmd-file.c: Ditto.
7907 * mi/mi-cmd-stack.c: Ditto.
7908 * mi/mi-cmd-target.c: Ditto.
7909 * mi/mi-cmd-var.c: Ditto.
7910 * mi/mi-cmds.c: Ditto.
7911 * mi/mi-cmds.h: Ditto.
7912 * mi/mi-console.c: Ditto.
7913 * mi/mi-getopt.c: Ditto.
7914 * mi/mi-getopt.h: Ditto.
7915 * mi/mi-interp.c: Ditto.
7916 * mi/mi-main.c: Ditto.
7917 * mi/mi-out.c: Ditto.
7918 * mi/mi-parse.c: Ditto.
7919 * mi/mi-parse.h: Ditto.
7920 * mi/mi-symbol-cmds.c: Ditto.
7921
7922 * mi/mi-getopt.h: Move mi_opt struct up.
7923 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7924 return.
7925 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7926
c988ad87
TT
79272012-03-06 Tom Tromey <tromey@redhat.com>
7928
7929 * proc-service.c (ps_pglobal_lookup): Set the current program
7930 space.
7931
1b7c1b10
PA
79322012-03-06 Pedro Alves <palves@redhat.com>
7933
7934 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7935
3c182069
JB
79362012-03-05 Joel Brobecker <brobecker@adacore.com>
7937
7938 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7939
2e794194
JK
79402012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7941
7942 Code cleanup.
7943 * common/linux-osdata.c (linux_common_core_of_thread): New function
7944 comment.
7945 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7946 call by linux_common_core_of_thread.
7947 (linux_nat_core_of_thread_1): Remove.
7948 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7949 * linux-thread-db.c: Include linux-osdata.h.
7950 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7951 linux_common_core_of_thread.
7952
9f9f1f31
TT
79532012-03-05 Tom Tromey <tromey@redhat.com>
7954
7955 * value.c (value_primitive_field): Don't fetch contents for
7956 non-virtual bases.
7957
b7b189f3
TT
79582012-03-05 Tom Tromey <tromey@redhat.com>
7959
7960 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7961
05b8a789 79622012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7963
5538f557
JB
7964 * s390-nat.c: Include "gregset.h".
7965
75528772
JK
79662012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7967
7968 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7969 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7970 (libunwind_load): New variable so_error, use it for dlerror. Try to
7971 load also LIBUNWIND_SO_7.
7972
275418ae
PA
79732012-03-05 Pedro Alves <palves@redhat.com>
7974
7975 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7976 is not NULL, and remove resulting dead code.
7977
5cbb9812
TS
79782012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7979
7980 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7981 prologue to sh_analyze_prologue.
7982 (sh_analyze_prologue): Make better use of such an upper limit, and
7983 generally be more cautious about accessing memory.
7984
541515ad
TT
79852012-03-05 Tom Tromey <tromey@redhat.com>
7986
7987 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7988 _initialize_ia64_hpux_tdep.
7989
b4d36fb8
PA
79902012-03-05 Pedro Alves <palves@redhat.com>
7991
24490249
PA
7992 PR gdb/13766
7993
b4d36fb8
PA
7994 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7995 the register state is clear, supply explicit zero, instead of
7996 marking the register unavailable.
7997
60c9a3c0
TG
79982012-03-05 Tristan Gingold <gingold@adacore.com>
7999
8000 * NEWS: Mention OpenVMS ia64 new target.
8001
696759ad
TG
80022012-03-05 Tristan Gingold <gingold@adacore.com>
8003
8004 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8005 (ia64_unw_accessors, ia64_unw_rse_accessors)
8006 (ia64_libunwind_descr): Declare.
8007 * ia64-vms-tdep.c: New file.
8008 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
8009 (ia64_libunwind_descr): Make them public.
8010 * configure.tgt: Add ia64-*-*vms*.
8011 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
8012 (ALLDEPFILES): Add ia64-vms-tdep.c
8013
34864976
TG
80142012-03-05 Tristan Gingold <gingold@adacore.com>
8015
169081d0
TG
8016 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
8017 * remote.c (PACKET_qXfer_uib): New enum value.
8018 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
8019 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
8020 (_initialize_remote): Call add_packet_config_cmd for
8021 xfer:uib packet.
8022
80232012-03-05 Tristan Gingold <gingold@adacore.com>
8024
8025 * osabi.c (gdb_osabi_names): Add OpenVMS.
8026 (generic_elf_osabi_sniffer): Likewise.
8027 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 8028
6597b100
JK
80292012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8030
8031 Removed unused code.
8032 * libunwind-frame.c (libunwind_frame_unwind)
8033 (libunwind_frame_base_address): Remove.
8034 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
8035
87399aa1
YQ
80362012-03-04 Yao Qi <yao@codesourcery.com>
8037
8038 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
8039 remove trailing new line.
8040 (agent_run_command, agent_run_command): Add _ markup.
8041 (agent_capability_check): Likewise.
8042
abf1152a
JK
80432012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8044
8045 * breakpoint.c (set_condition_evaluation_mode): Set
8046 CONDITION_EVALUATION_MODE unconditionally.
8047
5808517f
YQ
80482012-03-03 Yao Qi <yao@codesourcery.com>
8049
8050 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
8051 * common/agent.h: Update declaration.
8052 * inf-child.c (inf_child_use_agent): New.
8053 (inf_child_can_use_agent): New.
8054 (inf_child_target): Initialize fields `to_use_agent'
8055 and `to_can_use_agent'.
8056 * agent.c (agent_new_objfile): New.
89b7509a 8057 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
8058 observer.
8059
8060 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8061 New.
89b7509a 8062 (linux_target_install_ops): Initialize field
5808517f
YQ
8063 `to_static_tracepoint_markers_by_strid'.
8064 * remote.c (free_current_marker): Move it to ...
8065 * tracepoint.c (free_current_marker): ... here. New.
8066 (cleanup_target_stop): New.
8067 * tracepoint.h: Declare free_current_marker.
8068 * NEWS: Add one entry about `info static-tracepoint-marker'.
8069
58b4daa5
YQ
80702012-03-03 Yao Qi <yao@codesourcery.com>
8071
8072 * common/agent.c (agent_loaded_p): New.
89b7509a 8073 (agent_look_up_symbols): New global.
58b4daa5
YQ
8074 * common/agent.h: Declare agent_loaded_p.
8075
8ffcbaaf
YQ
80762012-03-03 Yao Qi <yao@codesourcery.com>
8077
8078 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8079 (agent_capability_check, agent_capability_invalidate): New.
8080 (symbol_list): New array element.
8081 * common/agent.h (enum agent_capa): New.
8082 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8083
d1feda86
YQ
80842012-03-03 Yao Qi <yao@codesourcery.com>
8085
8086 * target.h (struct target_ops) <to_use_agent>: New field.
8087 (struct target_ops) <to_can_use_agent>: New field.
8088 (target_use_agent, target_can_use_agent): New macro.
8089 * target.c (update_current_target): Update.
8090 * remote.c: New enum `PACKET_QAgent'.
8091 (remote_protocol_features): Add a new element.
8092 (remote_use_agent, remote_can_use_agent): New.
8093 (init_remote_ops): Initialize field `can_use_agent' with
8094 remote_can_use_agent. Intiailize field `use_agent' with
8095 remote_use_agent.
8096 * common/agent.c (use_agent): New global.
8097 * common/agent.h: Declare it.
8098 * tracepoint.c (info_static_tracepoint_markers_command): Add
8099 comment.
8100 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8101 (COMMON_OBS): Add common/agent.o and agent.o
8102 (common-agent.o): New rule.
8103 * agent.c: New.
8104
2fa291ac
YQ
81052012-03-03 Yao Qi <yao@codesourcery.com>
8106
8107 * common/agent.c: New.
8108 * common/agent.h: New.
8109 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8110 AC_CHECK_HEADERS.
8111 * configure, configh.in: Regenerated.
8112
9fc05685
KB
81132012-03-02 Kevin Buettner <kevinb@redhat.com>
8114
8115 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8116 unless it exists for this architecture.
8117
a5ee536b
JB
81182012-03-02 Joel Brobecker <brobecker@adacore.com>
8119
8120 * language.h (struct language_defn): New "method" la_read_var_value.
8121 * findvar.c: #include "language.h".
8122 (default_read_var_value): Renames read_var_value. Rewrite
8123 function description.
8124 (read_var_value): New function.
8125 * value.h (default_read_var_value): Add prototype.
8126 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8127 New functions.
8128 (ada_language_defn): Add entry for la_read_var_value.
8129 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8130 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8131 language_defn structures to add entry for new la_read_var_value
8132 field.
8133
f59f708a
PA
81342012-03-02 Tom Tromey <tromey@redhat.com>
8135 Pedro Alves <palves@redhat.com>
8136
8137 PR breakpoints/13776:
8138 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8139 breakpoints.
8140 (delete_longjmp_breakpoint_at_next_stop): New.
8141 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8142 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8143 before deleting the inferior. Add comments.
8144 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8145 breakpoints immediately, but only on next stop. Move that code
8146 next to where we mark other breakpoints for deletion.
8147
44099a67
JB
81482012-03-02 Joel Brobecker <brobecker@adacore.com>
8149
8150 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8151 marker.
8152 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8153 violation.
8154
2a2ef594
PA
81552012-03-02 Pedro Alves <palves@redhat.com>
8156
8157 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8158
b261e0c5
UW
81592012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8160
8161 Fix -Wmissing-prototypes build.
8162 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8163 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8164 (gdbsim_has_memory): Likewise.
8165
a95babbf
YQ
81662012-03-02 Yao Qi <yao@codesourcery.com>
8167
8168 Fix -Wmissing-prototypes build.
8169 * charset.c (phony_iconv_open): Make static.
8170 (phony_iconv_close, phony_iconv): Likewise.
8171 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8172 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8173 prototype.
8174 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8175 * ser-mingw.c (create_select_thread): Make static.
8176 * windows-termcap.c (tgetent): New prototype.
8177 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8178
d603d4b3
JK
81792012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8180
8181 Fix -Wmissing-prototypes build.
8182 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8183 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8184 (_initialize_loadable): New prototypes.
8185
7fb3ad1f
DE
81862012-03-02 Doug Evans <dje@google.com>
8187
8188 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8189 abbrev table, read_comp_unit will do it.
8190
693be288
JK
81912012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8192
8193 Fix -Wmissing-prototypes build.
8194 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8195 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8196 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8197 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8198 (_initialize_arm_symbian_tdep): New prototype.
8199 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8200 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8201 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8202 static.
8203 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8204 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8205 prototype.
8206 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8207 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8208 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8209 static.
8210 * moxie-tdep.c (moxie_process_record): Likewise.
8211 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8212 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8213 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8214 (_initialize_rl78_tdep): New prototype.
8215 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8216 (_initialize_rx_tdep): New prototype.
8217 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8218 (_initialize_darwin_solib): New prototype.
8219 * solib-spu.c: Include solib-spu.h.
8220 (_initialize_spu_solib): New prototype.
8221 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8222 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8223 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8224 (tic6x_software_single_step): Make it static.
8225 (_initialize_tic6x_tdep): New prototype.
8226
638234e5
JK
82272012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8228
8229 Fix -Wmissing-prototypes build.
8230 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8231 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8232
f4a6f16d
JK
82332012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8234
8235 Fix -Wmissing-prototypes build.
8236 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8237 (frv_have_stopped_data_address): Remove.
8238
04dcf5fa
JK
82392012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8240
8241 Fix -Wmissing-prototypes build.
8242 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8243 * sh-tdep.c: Include sh64-tdep.h.
8244 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8245 * sh64-tdep.c: Include sh64-tdep.h.
8246 * sh64-tdep.h: New file.
8247
19080931
MR
82482012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8249
8250 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8251
9aac7884
MR
82522012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8253
8254 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8255 sp_regnum once the gdbarch_init_osabi hook has been called.
8256
a385295e
MR
82572012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8258
8259 * mips-tdep.c (mips32_bc1_pc): New function.
8260 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8261 BPOSGE32 and BPOSGE64 instructions.
8262 (deal_with_atomic_sequence): Likewise.
8263 (mips32_instruction_has_delay_slot): Likewise.
8264
1faeff08 82652012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8266 Chris Dearman <chris@mips.com>
8267 Maciej W. Rozycki <macro@codesourcery.com>
8268 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8269
8270 * features/mips-dsp.xml: New file.
8271 * features/mips64-dsp.xml: New file.
8272 * features/mips-dsp-linux.xml: New file.
8273 * features/mips64-dsp-linux.xml: New file.
8274 * features/Makefile (WHICH): Add mips-dsp-linux and
8275 mips64-dsp-linux.
8276 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8277 * features/mips-dsp-linux.c: New file.
8278 * features/mips64-dsp-linux.c: New file.
8279 * regformats/mips-dsp-linux.dat: New file.
8280 * regformats/mips64-dsp-linux.dat: New file.
8281 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8282 registers.
8283 (mips64_linux_register_addr): Likewise.
8284 (mips64_linux_regsets_fetch_registers): Likewise.
8285 (mips64_linux_regsets_store_registers): Likewise.
8286 (mips64_linux_fetch_registers): Update call to
8287 mips64_linux_regsets_fetch_registers.
8288 (mips64_linux_store_registers): Update call to
8289 mips64_linux_regsets_store_registers.
8290 (mips_linux_read_description): Probe for DSP registers.
8291 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8292 and initialize_tdesc_mips64_dsp_linux.
8293 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8294 Remove padding of no longer used embedded register slots.
8295 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8296 (MIPS_RESTART_REGNUM): Redefine enum value.
8297 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8298 strings.
8299 (mips_tx39_reg_names): Likewise.
8300 (mips_linux_reg_names): New array of register names for Linux
8301 targets.
8302 (mips_register_name): Check for a null pointer in
8303 mips_processor_reg_names and return an empty string.
8304 (mips_register_type): Exclude embedded registers for the IRIX
8305 and Linux ABIs.
8306 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8307 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8308 DSP registers.
8309 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8310 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8311 (mips_gdbarch_init): Likewise. Initialize internal register
8312 indices for the Linux ABI. Use dynamic numbers to refer to
8313 registers, as applicable, while parsing the target description.
8314 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8315
263689d8
JB
83162012-03-01 Joel Brobecker <brobecker@adacore.com>
8317
8318 * frame.h (read_frame_register_unsigned): Fix typo in function
8319 description.
8320
f3b4f45c
PA
83212012-03-01 Pedro Alves <palves@redhat.com>
8322
8323 * jit-reader.in [!__cplusplus]
8324 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8325
b03a2011
PA
83262012-03-01 Pedro Alves <palves@redhat.com>
8327
8328 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8329 * configure: Regenerate.
8330
70221824
PA
83312012-03-01 Pedro Alves <palves@redhat.com>
8332
8333 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8334 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8335 (ftrace_command, strace_command): Make static.
8336 * d-lang.c (_initialize_d_language): Declare.
8337 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8338 * dwarf2loc.c (_initialize_dwarf2loc):
8339 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8340 * exec.c (exec_get_section_table): Make static.
8341 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8342 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8343 * inferior.c (remove_inferior_command, add_inferior_command)
8344 (clone_inferior_command): Make static.
8345 * linux-nat.c (linux_nat_thread_address_space)
8346 (linux_nat_core_of_thread): Make static.
8347 * linux-tdep.c (_initialize_linux_tdep): Declare.
8348 * objc-lang.c (_initialize_objc_lang): Declare.
8349 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8350 Make static.
8351 (_initialize_opencl_language): Declare.
8352 * record.c (_initialize_record): Declare.
8353 * remote.c (demand_private_info, remote_get_tib_address)
8354 (remote_supports_cond_tracepoints)
8355 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8356 Make static.
8357 * skip.c (_initialize_step_skip): Declare.
8358 * symtab.c (skip_prologue_using_lineinfo): Make static.
8359 * tracepoint.c (delete_trace_state_variable)
8360 (trace_variable_command, delete_trace_variable_command)
8361 (get_uploaded_tsv, find_matching_tracepoint_location)
8362 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8363 Make static.
8364 * value.c (pack_unsigned_long): Make static.
8365 * varobj.c (varobj_ensure_python_env): Make static.
8366 * windows-tdep.c (_initialize_windows_tdep): Declare.
8367 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8368
33fbcbee
PA
83692012-03-01 Pedro Alves <palves@redhat.com>
8370
8371 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8372 gdbarch parameter.
8373 (linux_init_abi): Install it as has_shared_address_space gdbarch
8374 callback.
8375
44d0cd3b
PA
83762012-03-01 Pedro Alves <palves@redhat.com>
8377
8378 * observer.c (observer_test_first_notification_function)
8379 (observer_test_second_notification_function)
8380 (observer_test_third_notification_function): Add declarations.
8381
ed01b82c
PA
83822012-03-01 Pedro Alves <palves@redhat.com>
8383
8384 * common/signals.c (default_target_signal_to_host)
8385 (default_target_signal_from_host): Move ...
8386 * arch-utils.c: ... here.
8387 * arch-utils.h (default_target_signal_to_host)
8388 (default_target_signal_from_host): Declare.
8389
8390 * common/signals.c (target_signal_from_command): Move ...
8391 * infrun.c: ... here.
8392 * inferior.h (target_signal_from_command): Declare.
8393 * target.h (target_signal_from_command)
8394 (default_target_signal_from_host, default_target_signal_to_host):
8395 Delete declarations.
8396
8397 * common/signals.c (_initialize_signals): Delete.
8398
c9b87335
PA
83992012-03-01 Pedro Alves <palves@redhat.com>
8400
8401 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8402 both __cplusplus and !__cplusplus.
8403
9340a6c0
PA
84042012-03-01 Pedro Alves <palves@redhat.com>
8405
8406 * psymtab.c (find_and_open_source): Delete declaration.
8407 * source.c (find_and_open_source): Move comment ...
8408 * source.h (find_and_open_source): ... to this new declaration.
8409
e451c4a1
PA
84102012-03-01 Pedro Alves <palves@redhat.com>
8411
8412 * inline-frame.c: Include inline-frame.h.
8413
983fb104
PA
84142012-03-01 Pedro Alves <palves@redhat.com>
8415
8416 * tui/tui-data.c (set_gen_win_origin): Delete.
8417 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8418 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8419
5fbce5df
PA
84202012-03-01 Pedro Alves <palves@redhat.com>
8421
8422 * remote.c (encode_actions): Delete declaration.
8423 * tracepoint.c (encode_actions): Make extern.
8424 * tracepoint.h (encode_actions): Declare.
8425
49a8461d
PA
84262012-03-01 Pedro Alves <palves@redhat.com>
8427
8428 * python/py-breakpoint.c: Include python.h.
8429 * python/py-continueevent.c (create_continue_event_object): Make
8430 static.
8431 * python/py-lazy-string.c (stpy_get_type): Make static.
8432 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8433 Make static.
8434 * python/py-utils.c (unicode_to_target_python_string): Make
8435 static.
8436 * python/py-value.c: Include python.h.
8437
9079102f
PA
84382012-03-01 Pedro Alves <palves@redhat.com>
8439
8440 * inferior.c (delete_threads_of_inferior): Delete.
8441
a298c5e8
PA
84422012-03-01 Pedro Alves <palves@redhat.com>
8443
8444 Import fallback definitions from glibc.
8445
8446 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8447 ps_prochandle): Forward declare.
8448 (ps_err_e): Use glibc's comments.
8449 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8450 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8451 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8452 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8453 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8454 (struct ps_prochandle): Adjust comment.
8455
e3084549
PA
84562012-03-01 Pedro Alves <palves@redhat.com>
8457
8458 * ada-lang.c (ada_modulus_from_name): Delete.
8459 * ada-lex.l (lexer_init): Make static.
8460
ad5f7d6e
PA
84612012-03-01 Pedro Alves <palves@redhat.com>
8462
8463 PR gdb/13767
8464
8465 * frame.c (read_frame_register_unsigned): New.
8466 * frame.h (read_frame_register_unsigned): Declare.
8467 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8468 Handle it.
8469 (print_i387_control_word): New parameter `control_p'. Handle it.
8470 (i387_print_float_info): Handle unavailable float registers.
8471
e0a4d108
KS
84722012-03-01 Keith Seitz <keiths@redhat.com>
8473
8474 * linespec.c (decode_line_2): Sort the list of methods
8475 alphabetically before presenting the user with a selection
8476 menu.
8477
122d1940
DE
84782012-03-01 Doug Evans <dje@google.com>
8479
8480 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8481 has_namespace_info.
8482 (dwarf2_read_abbrevs): Remove corresponding initialization.
8483
7d74f244
DE
84842012-03-01 Scott J. Goldman <scottjg@vmware.com>
8485
8486 * NEWS: Mention new python command class gdb.COMMAND_USER.
8487 * cli/cli-cmds.c (show_user): Print error when used on a python
8488 command.
8489 (init_cli_cmds): Update documentation strings for "show user" and
8490 "set/show max-user-call-depth" to clarify that it does not apply to
8491 python commands.
8492 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8493 error check.
8494 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8495 gdb python api.
8496 * top.c (execute_command): Only execute a user-defined command as a
8497 legacy macro if c->user_commands is set.
8498
e88acd96
TT
84992012-03-01 Tom Tromey <tromey@redhat.com>
8500
8501 * valprint.h (struct generic_val_print_decorations): New.
8502 (generic_val_print): Declare.
8503 * valprint.c (generic_val_print): New function.
8504 * p-valprint.c (p_decorations): New global.
8505 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8506 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8507 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8508 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8509 * m2-valprint.c (m2_decorations): New global.
8510 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8511 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8512 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8513 TYPE_CODE_ERROR>: Call generic_val_print.
8514 * f-valprint.c (f_decorations): New global.
8515 (f_val_print): Use print_function_pointer_address.
8516 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8517 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8518 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8519 generic_val_print.
8520 * c-valprint.c (c_decorations): New global.
8521 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8522 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8523 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8524 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8525 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8526 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8527 case.
8528
d3eab38a
TT
85292012-03-01 Tom Tromey <tromey@redhat.com>
8530
8531 * valprint.c (val_print): Update.
8532 * p-valprint (pascal_val_print): Return void.
8533 * p-lang.h (pascal_val_print): Return void.
8534 * m2-valprint.c (m2_val_print): Return void.
8535 * m2-lang.h (m2_val_print): Return void.
8536 * language.h (struct language_defn) <la_val_print>: Return void.
8537 * language.c (unk_lang_val_print): Return void.
8538 * jv-valprint.c (java_val_print): Return void.
8539 * jv-lang.h (java_val_print): Return void.
8540 * f-valprint.c (f_val_print): Return void.
8541 * f-lang.h (f_val_print): Return void.
8542 * d-valprint.c (d_val_print): Return void.
8543 (dynamic_array_type): Update.
8544 * d-lang.h (d_val_print): Return void.
8545 * c-valprint.c (c_val_print): Return void.
8546 * c-lang.h (c_val_print): Return void.
8547 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8548 void.
8549 * ada-lang.h (ada_val_print): Return void.
8550
35c0084b
TT
85512012-03-01 Tom Tromey <tromey@redhat.com>
8552
8553 * value.h (val_print): Return void.
8554 * valprint.c (val_print): Return void.
8555
a1f5dd1b
TT
85562012-03-01 Tom Tromey <tromey@redhat.com>
8557
8558 * value.h (common_val_print): Return void.
8559 * valprint.c (common_val_print): Return void.
8560
8e069a98
TT
85612012-03-01 Tom Tromey <tromey@redhat.com>
8562
8563 * value.h (value_print): Return void.
8564 * valprint.c (value_print): Return void.
8565 * p-valprint.c (pascal_value_print): Return void.
8566 * p-lang.h (pascal_value_print): Return void.
8567 * language.h (struct language_defn) <la_value_print>: Return
8568 void.
8569 * language.c (unk_lang_value_print): Return void.
8570 * jv-valprint.c (java_value_print): Return void.
8571 * jv-lang.h (java_value_print): Return void.
8572 * f-valprint.c (c_value_print): Don't declare.
8573 Include c-lang.h.
8574 * c-valprint.c (c_value_print): Return void.
8575 * c-lang.h (c_value_print): Return void.
8576 * ada-valprint.c (ada_value_print): Return void.
8577 * ada-lang.h (ada_value_print): Return void.
8578
be335936
TT
85792012-03-01 Tom Tromey <tromey@redhat.com>
8580
8581 * value.c (value_primitive_field): Handle virtual base classes.
8582
b0db66a7
TT
85832012-03-01 Tom Tromey <tromey@redhat.com>
8584
8585 * gdbtypes.h (struct vbase): Remove.
8586
132c57b4
TT
85872012-03-01 Tom Tromey <tromey@redhat.com>
8588
8589 * c-valprint.c (print_function_pointer_address): Move...
8590 * valprint.c: ... here. Make non-static.
8591 * m2-valprint.c (print_function_pointer_address): Remove.
8592 * valprint.h (print_function_pointer_address): Declare.
8593
e41eec66
JB
85942012-03-01 Joel Brobecker <brobecker@adacore.com>
8595
8596 * NEWS: Document the fact that one can provide a condition when
8597 creating an Ada exception catchpoint.
8598
19c37f24
TT
85992012-03-01 Tom Tromey <tromey@redhat.com>
8600
8601 * valprint.c (val_print_type_code_flags): Fix placement of
8602 trailing brace.
8603
f0fed3a3
JB
86042012-03-01 Joel Brobecker <brobecker@adacore.com>
8605
8606 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8607 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8608 environment variable before calling update-copyright.
8609
8ba85d85
JB
86102012-03-01 Joel Brobecker <brobecker@adacore.com>
8611
8612 * gnulib/extra/update-copyright: Update to the latest from
8613 gnulib's git repository.
8614 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8615 variable to 2 instead of 1.
8616
8219b1e8
JB
86172012-02-29 Joel Brobecker <brobecker@adacore.com>
8618
8619 * varobj.c (c_value_of_variable): Remove dead code.
8620
718cb7da
JB
86212012-02-29 Joel Brobecker <brobecker@adacore.com>
8622
8623 * ada-lex.p (processId): Do not modify already encoded IDs.
8624 Update function documentation.
8625
739593e0
JB
86262012-02-29 Joel Brobecker <brobecker@adacore.com>
8627
8628 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8629 "name" with "struct symbol *name_sym".
8630 * ada-exp.y (write_var_or_type): Update call to
8631 ada_find_renaming_symbol.
8632 "name" with "struct symbol *name_sym". Adjust Implementation
8633 accordingly. Adjust the function documentation.
8634
852dff6c
JB
86352012-02-29 Joel Brobecker <brobecker@adacore.com>
8636
8637 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8638 * ada-lang.c (ada_find_any_type): Add advance declaration.
8639 Make static. Replace ada_find_any_symbol by
8640 ada_find_any_type_symbol.
8641 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8642 Improve function description. Make static.
8643 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8644 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8645
1b611343
JB
86462012-02-29 Joel Brobecker <brobecker@adacore.com>
8647
8648 * ada-lang.c (struct tag_args): Delete.
8649 (ada_get_tsd_type): Function body moved up in source file.
8650 (ada_tag_name_1, ada_tag_name_2): Delete.
8651 (ada_get_tsd_from_tag): New function.
8652 (ada_tag_name_from_tsd): New function.
8653 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8654 to determine the tag name.
8655
41246937
JB
86562012-02-29 Joel Brobecker <brobecker@adacore.com>
8657
8658 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8659 declaration.
8660 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8661 function.
8662
ffde82bf
JB
86632012-02-29 Joel Brobecker <brobecker@adacore.com>
8664
8665 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8666
2ad01556
JB
86672012-02-29 Joel Brobecker <brobecker@adacore.com>
8668
8669 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8670 full searches.
8671
99b1c762
JB
86722012-02-29 Joel Brobecker <brobecker@adacore.com>
8673
8674 * ada-lang.c (constrained_packed_array_type): If there is a
8675 parallel XA type, use it to determine the array index type.
8676
2d4a02ee
JB
86772012-02-29 Joel Brobecker <brobecker@adacore.com>
8678
8679 * ada-valprint.c (ada_val_print_1): If our value is a reference
8680 to an array descriptor, dereference it before converting it
8681 to a simple array.
8682
c48db5ca
JB
86832012-02-29 Joel Brobecker <brobecker@adacore.com>
8684
8685 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8686 creating fixed value.
8687 (ada_value_ind, ada_coerce_ref, assign_component)
8688 (ada_evaluate_subexp): Remove call to unwrap_value before
8689 call to ada_to_fixed_value.
8690
2e6fda7d
JB
86912012-02-29 Joel Brobecker <brobecker@adacore.com>
8692
8693 * ada-lang.c (to_fixed_array_type): Set result's type name.
8694
5845583d
JB
86952012-02-29 Joel Brobecker <brobecker@adacore.com>
8696
8697 * ada-lang.c (catch_ada_exception_command_split): Add new
8698 argument cond_string. Add support for condition at end of
8699 "catch exception" commands.
8700 (ada_decode_exception_location): Add new argument cond_string.
8701 Update call to catch_ada_exception_command_split.
8702 (create_ada_exception_catchpoint): Add new argument cond_string.
8703 Set the breakpoint condition if needed.
8704 (catch_ada_exception_command): Update call to
8705 ada_decode_exception_location.
8706 (ada_decode_assert_location): Add function documentation.
8707 Add support for condition at end of "catch assert" command.
8708 (catch_assert_command): Update calls to ada_decode_assert_location
8709 and create_ada_exception_catchpoint.
8710
9a7f938f
JK
87112012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8712
8713 Fix disp-step-syscall.exp: fork: single step over fork.
8714 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8715 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8716 comment, change parameters gdbarch and ptid to regcache. Remove
8717 parameter regcache, initialize gdbarch from regcache here.
8718 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8719 New functions.
8720 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8721 instead.
8722 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8723 'syscall'. Make the 'int' check more strict.
8724
ffdf6de5
JK
87252012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8726
8727 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8728 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8729 (i386_linux_intx80_sysenter_syscall_record): ... here.
8730 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8731 Use the renamed function name.
8732
c70a6932
JK
87332012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8734
8735 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8736 * breakpoint.c (until_break_command): Likewise.
8737 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8738 * infcall.c (call_function_by_hand): Likewise.
8739 * infcmd.c (finish_forward): Likewise.
8740 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8741
05b8a789 87422012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8743
d4cd3da9
JB
8744 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8745 avoid variable assignments inside condition.
8746
6425366c
JK
87472012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8748
8749 Fix static analysis issue found by cppcheck.
8750 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8751 uninitialized BUF for size 2.
8752
c8cef75f 87532012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8754 Nathan Froyd <froydnj@codesourcery.com>
8755 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8756
8757 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8758 (mips16_instruction_has_delay_slot): Likewise.
8759 (mips_segment_boundary): Likewise.
8760 (mips_adjust_breakpoint_address): Likewise.
8761 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8762
473347ad 87632012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8764 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8765
8766 * infrun.c (handle_inferior_event): Don't proceed through
8767 shared library trampolines if stepping at the machine
8768 instruction level.
8769
cf233303
MR
87702012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8771
8772 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8773 too.
8774
cb2cf4ce
TS
87752012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8776
8777 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8778 (sh_stub_unwind_sniffer): New functions.
8779 (sh_stub_unwind): New variable.
8780 (sh_gdbarch_init): Wire everything.
8781
644cebc9
PA
87822012-02-27 Pedro Alves <palves@redhat.com>
8783
8784 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8785 (linux_nat_post_attach_wait): Adjust to use
8786 linux_proc_pid_is_stopped.
8787 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8788 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8789 based on pid_is_stopped from both linux-nat.c and
8790 gdbserver/linux-low.c, and renamed.
8791
283002cf
MR
87922012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8793
8794 * remote.c (remote_watchpoint_addr_within_range): New function.
8795 (init_remote_ops): Use it.
8796
9b3e86b1
MR
87972012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8798
8799 * target.h (target_watchpoint_addr_within_range): Document macro.
8800
e36930bb
PA
88012012-02-24 Pedro Alves <palves@redhat.com>
8802
8803 * stack.c (set_last_displayed_sal): Issue internal_error instead
8804 of warning, and issue it after clearing the last displayed sal.
8805
883bc8d1
PA
88062012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8807 Pedro Alves <palves@redhat.com>
8808
8809 * breakpoint.c (until_break_command): Install breakpoints after
8810 all frame manipulations.
8811
b775012e
LM
88122012-02-24 Luis Machado <lgustavo@codesourcery.com>
8813
8814 * remote.c (remote_supports_cond_breakpoints): New forward
8815 declaration.
8816 (remote_add_target_side_condition): New function.
8817 (remote_insert_breakpoint): Add target-side breakpoint
8818 conditional if supported.
8819 (remote_insert_hw_breakpoint): Likewise.
8820 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8821 hook.
8822
8823 * target.c (update_current_target): Inherit
8824 to_supports_evaluation_of_breakpoint_conditions.
8825 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8826
8827 * target.h (struct target_ops)
8828 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8829 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8830
8831 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8832 (condition_evaluation_both, condition_evaluation_auto,
8833 condition_evaluation_host, condition_evaluation_target,
8834 condition_evaluation_enums, condition_evaluation_mode_1,
8835 condition_evaluation_mode): New static globals.
8836 (translate_condition_evaluation_mode): New function.
8837 (breakpoint_condition_evaluation_mode): New function.
8838 (gdb_evaluates_breakpoint_condition_p): New function.
8839 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8840 (mark_breakpoint_modified): New function.
8841 (mark_breakpoint_location_modified): New function.
8842 (set_condition_evaluation_mode): New function.
8843 (show_condition_evaluation_mode): New function.
8844 (bp_location_compare_addrs): New function.
8845 (get_first_location_gte_addr): New helper function.
8846 (set_breakpoint_condition): Free condition bytecode if locations
8847 has become unconditional. Call mark_breakpoint_modified (...).
8848 (condition_command): Call update_global_location_list (1) for
8849 breakpoints.
8850 (breakpoint_xfer_memory): Use is_breakpoint (...).
8851 (is_breakpoint): New function.
8852 (parse_cond_to_aexpr): New function.
8853 (build_target_condition_list): New function.
8854 (insert_bp_location): Handle target-side conditional
8855 breakpoints and call build_target_condition_list (...).
8856 (update_inserted_breakpoint_locations): New function.
8857 (insert_breakpoint_locations): Handle target-side conditional
8858 breakpoints.
8859 (bpstat_check_breakpoint_conditions): Add comment.
8860 (bp_condition_evaluator): New function.
8861 (bp_location_condition_evaluator): New function.
8862 (print_breakpoint_location): Print information on where the condition
8863 will be evaluated.
8864 (print_one_breakpoint_location): Likewise.
8865 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8866 breakpoint location.
8867 (force_breakpoint_reinsertion): New functions.
8868 (update_global_location_list): Handle target-side breakpoint
8869 conditions.
8870 Reinsert locations that are already inserted if conditions have
8871 changed.
8872 (bp_location_dtor): Free agent expression bytecode.
8873 (disable_breakpoint): Call mark_breakpoint_modified (...).
8874 Call update_global_location_list (...) with parameter 1 for breakpoints.
8875 (disable_command): Call mark_breakpoint_location_modified (...).
8876 Call update_global_location_list (...) with parameter 1 for breakpoints.
8877 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8878 (enable_command): mark_breakpoint_location_modified (...).
8879 (_initialize_breakpoint): Update documentation and add
8880 condition-evaluation breakpoint subcommand.
8881
8882 * breakpoint.h: Include ax.h.
8883 (condition_list): New data structure.
8884 (condition_status): New enum.
8885 (bp_target_info) <cond_list>: New field.
8886 (bp_location) <condition_changed, cond_bytecode>: New fields.
8887 (is_breakpoint): New prototype.
8888
3788aec7
LM
88892012-02-24 Luis Machado <lgustavo@codesourcery.com>
8890
8891 * remote.c (remote_state) <cond_breakpoints>: New field.
8892 (PACKET_ConditionalBreakpoints): New enum.
8893 (remote_cond_breakpoint_feature): New function.
8894 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8895 (remote_supports_cond_breakpoints): New function.
8896 (_initialize_remote): Add new packet configuration for
8897 target-side conditional breakpoints.
8898
72895ff6
LM
88992012-02-24 Luis Machado <lgustavo@codesourcery.com>
8900
8901 * NEWS: Mention target-side conditional breakpoint support,
8902 new condition-evaluation breakpoint subcommand and remote
8903 packet extensions.
8904
dea2aa5f
LM
89052012-02-24 Luis Machado <lgustavo@codesourcery.com>
8906
8907 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8908 number.
8909
8a8bc27f
TS
89102012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8911
8912 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8913 (after_prologue): Remove.
8914
6b446fdf
TT
89152012-02-23 Tom Tromey <tromey@redhat.com>
8916
8917 * jv-valprint.c (java_val_print): Remove dead code.
8918
ef59abfb
TG
89192012-02-23 Tristan Gingold <gingold@adacore.com>
8920
a09130f9
PA
8921 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8922 known_tasks_element and known_tasks_length fields.
8923 (read_known_tasks_array): Change argument type. Use pointer type
8924 and number of elements from DATA. Adjust.
8925 (read_known_tasks_list): Likewise.
8926 (get_known_tasks_addr): Remove.
8927 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8928 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8929 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8930
def166f6
JK
89312012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 PR backtrace/13716
8934 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8935 it after set_momentary_breakpoint.
8936
aeaa2474
SA
89372012-02-22 Sterling Augustine <saugustine@google.com>
8938
8939 PR 13689:
8940 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8941
feea76c2
GB
89422012-02-22 Gary Benson <gbenson@redhat.com>
8943
8944 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8945 (find_slot_in_mapped_hash): Likewise.
8946
f06e05e0
JK
89472012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8948
8949 PR build/13638
8950 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8951 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8952 * configure: Regenerate.
8953
b54a8fd7
PA
89542012-02-21 Tristan Gingold <gingold@adacore.com>
8955 Pedro Alves <palves@redhat.com>
8956
8957 * ia64-tdep.c: Do not include libunwind-ia64.h.
8958 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8959 Include libunwind-ia64.h instead of libunwind.h.
8960 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8961 for libunwind.h existence.
8962 * configure, config.in: Regenerate.
8963
dfcee124
AG
89642012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8965
8966 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8967 instead of value_rtti_target_type.
8968 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8969 instead of value_rtti_target_type.
8970 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8971 value_rtti_target_type.
8972 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8973 (value_rtti_target_type): Rename to ...
8974 (value_rtti_indirect_type): ... here and make it indirect. Update
8975 function comment.
8976 * value.c (readjust_indirect_value_type): New function.
8977 (coerce_ref): Support for enclosing type setting for references
8978 with readjust_indirect_value_type.
8979 * value.h (readjust_value_type): New declaration.
8980 (value_rtti_target_type): Rename to ...
8981 (value_rtti_indirect_type): ... here.
8982
02568277
AG
89832012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8984
8985 * MAINTAINERS (Write After Approval): Add myself to the list.
8986
10c07b7e 89872012-02-20 Doug Evans <dje@google.com>
28ee876a 8988
d82ea6a8
DE
8989 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8990 Rename objfile_p_char parameter to objfilep.
8991 (build_objfile_section_table): Result is now void. All callers
8992 updated.
8993 * objfiles.h (struct objfile): Tweak comments, whitespace.
8994 (build_objfile_section_table): Update.
8995
28ee876a
DE
8996 * elfread.c (elf_symfile_segments): Fix warning text.
8997
24c79950
TT
89982012-02-20 Tom Tromey <tromey@redhat.com>
8999
9000 PR gdb/13498:
9001 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9002 particular set of file names once.
9003 (dw2_map_symbol_filenames): Likewise.
9004
3a9b40b6
JK
90052012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9006
9007 Code cleanup.
9008 * main.c (write_files): Remove the declaration.
9009 (external_editor_command): Move the declaration ...
9010 [GDBTK] (external_editor_command): ... here. Fix the comment.
9011
4d0795ca
TT
90122012-02-20 Tom Tromey <tromey@redhat.com>
9013
9014 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
9015 extraneous block.
9016
637fd620
TG
90172012-02-20 Tristan Gingold <gingold@adacore.com>
9018
9019 * darwin-nat.h (enum darwin_msg_state): Add comments.
9020
6f124894
TG
90212012-02-20 Tristan Gingold <gingold@adacore.com>
9022
9023 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
9024 value.
9025
2e6e3d9c
JB
90262012-20-18 Joel Brobecker <brobecker@adacore.com>
9027
9028 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
9029 between function description and implementation.
9030
2e8265fd
TT
90312012-02-17 Tom Tromey <tromey@redhat.com>
9032
9033 PR python/12070:
9034 * python/py-event.c (event_object_getset): New global.
9035 (event_object_type): Reference it.
9036 * python/py-type.c (field_object_getset): New global.
9037 (field_object_type): Reference it.
9038 * python/python-internal.h (gdb_py_generic_dict): Declare.
9039 * python/py-utils.c (gdb_py_generic_dict): New function.
9040
8544a150 90412012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 9042
8544a150 9043 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 9044
ca193e27
TS
90452012-02-17 Thomas Schwinge <thomas@codesourcery.com>
9046
9047 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
9048 TYPE_CALLING_CONVENTION annotation.
9049
e5586183
KB
90502012-02-16 Kevin Buettner <kevinb@redhat.com>
9051
9052 * MAINTAINERS: Add rx to target ISA section.
9053 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
9054 (ALLDEPFILES): Add rx-tdep.c.
9055
7dcd53a0
TT
90562012-02-16 Tom Tromey <tromey@redhat.com>
9057
9058 * symfile.c (symbol_file_add_main_1): Use inferior's
9059 symfile_flags.
9060 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
9061 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9062 inferior.
9063 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9064 inferior.
9065 (follow_exec): Use inferior's symfile_flags.
9066 * inferior.h (struct inferior) <symfile_flags>: New field.
9067
ddd60447
MF
90682012-02-16 Mike Frysinger <vapier@gentoo.org>
9069
9070 PR gdb/9734:
9071 * remote-sim.c (gdbsim_create_inferior): Call error() when
9072 sim_create_inferior() fails.
9073
b0d32fb6
TG
90742012-02-16 Josh Matthews <josh@joshmatthews.net>
9075
9076 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9077
9addecb9
TT
90782012-02-16 Tom Tromey <tromey@redhat.com>
9079
9080 PR c++/13653:
9081 * thread.c (struct current_thread_cleanup) <was_removable>: New
9082 field.
9083 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9084 (make_cleanup_restore_current_thread): Initialize new field.
9085
a58b110a
KB
90862012-02-15 Kevin Buettner <kevinb@redhat.com>
9087
9088 * MAINTAINERS: Add rl78 to target ISA section.
9089 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9090 (ALLDEPFILES): Add rl78-tdep.c.
9091 * NEWS: Mention rl78 as a new target.
9092
4cb6da1c
AR
90932012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9094
9095 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9096 data.
9097 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9098
3af2590d
TT
90992012-02-15 Tom Tromey <tromey@redhat.com>
9100
9101 PR gdb/12659:
9102 * infcmd.c (registers_info): Print just the current register's
9103 name.
9104
c6910659
TT
91052012-02-15 Tom Tromey <tromey@redhat.com>
9106
9107 * python/py-symbol.c (sympy_value): Use _().
9108
7cee1e54
PA
91092012-02-15 Pedro Alves <palves@redhat.com>
9110
9111 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9112 output to be like native targets'.
9113 (remote_pid_to_str): Special case the null ptid.
9114
816338b5
SS
91152012-02-14 Stan Shebs <stan@codesourcery.com>
9116
9117 * NEWS: Mention enable count command.
9118 * breakpoint.h (struct breakpoint): New field enable_count.
9119 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9120 (enable_breakpoint): Add arg to call.
9121 (struct disp_data): New struct.
9122 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9123 (do_map_enable_once_breakpoint): Create a struct and pass it.
9124 (do_map_enable_delete_breakpoint): Ditto.
9125 (do_map_enable_count_breakpoint): New function.
9126 (enable_count_command): New function.
9127 (bpstat_stop_status): Decrement enable_count.
9128 (print_one_breakpoint_location): Report enable count.
9129 (_initialize_breakpoint): Add enable count command.
9130
c47a44f4
KB
91312012-02-14 Kevin Buettner <kevinb@redhat.com>
9132
9133 * rl78-tdep.c (reggroups.h): Include.
9134 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9135 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9136 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9137 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9138 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9139 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9140 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9141 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9142 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9143 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9144 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9145 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9146 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9147 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9148 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9149 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9150 beginning of register list.
9151 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9152 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9153 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9154 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9155 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9156 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9157 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9158 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9159 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9160 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9161 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9162 the pseudo registers. Rearrange other pseudo registers too so
9163 that the bank registers appear at the end.
9164 (rl78_register_type): Account for the fact that the byte sized
9165 bank registers are now pseudo-registers.
9166 (rl78_register_name): Rearrange the register name array. Make
9167 initial set of raw banked registers inaccessible.
9168 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9169 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9170 case for copying bytes back and forth between raw and pseudo
9171 versions of the banked registers. Update other cases to reflect
9172 the changed names.
9173 (rl78_return_value): Update to account for changed names of
9174 raw registers.
9175 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9176 rl78_register_sim_regno().
9177
e4569f1e
KB
91782012-02-14 Kevin Buettner <kevinb@redhat.com>
9179
9180 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9181 the name parameter being passed to find_pc_partial_function().
9182
7a05aae7
JK
91832012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9184
9185 * MAINTAINERS: Step down from being ia64 target maintainer.
9186
11fde611
JK
91872012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9188
9189 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9190 compilation warning.
9191
57008375
JK
91922012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9193
9194 Fix crash on loaded shlibs without loaded exec_bfd.
9195 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9196 (set_section_command): Replace exec_bfd by p->bfd.
9197
ff3c9849
TT
91982012-02-10 Tom Tromey <tromey@redhat.com>
9199
9200 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9201 when we have a C++ qualified name.
9202
db2b9fdd
PA
92032012-02-10 Pedro Alves <palves@redhat.com>
9204
9205 * inferior.c (inferior_pid_to_str): New.
9206 (print_inferior, inferior_command): Use it.
9207
12cd34f3
PA
92082012-02-10 Pedro Alves <palves@redhat.com>
9209
9210 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9211 the test CFLAGS.
9212 * configure: Regenerate.
9213
e871429d
JK
92142012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9215
9216 * linespec.c (decode_line_internal): Fix comment correctness.
9217
1916efaf
PA
92182012-02-09 Valery Khromov <valery.khromov@gmail.com>
9219
9220 PR gdb/12953
9221 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9222 * amd64bsd-nat.c: Add support for debug registers (adapted from
9223 i386bsd-nat.c).
9224 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9225 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9226 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9227 (amd64bsd_dr_get_control): New functions.
9228 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9229 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9230 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9231 watchpoints initialization.
9232 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9233
f4859d94
JK
92342012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9235
9236 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9237 flds_bnds.fields.
9238 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9239
c56a97f9
JK
92402012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9241
9242 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9243
1a119f36
JB
92442012-02-08 Joel Brobecker <brobecker@adacore.com>
9245
9246 * language.h (symbol_name_cmp_ftype): Renames
9247 symbol_name_match_p_ftype.
9248 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9249 la_get_symbol_name_match_p.
9250 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9251 ada_get_symbol_name_match_p. Update comment.
9252 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9253 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9254 Renames symbol_name_match_p. Update field type.
9255 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9256 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9257 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9258 "la_get_symbol_name_cmp" in comments.
9259 * language.c: Likewise.
9260
c71bb1cf
RO
92612012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9262
9263 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9264 %eflags offset.
9265 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9266 (amd64_sol2_gregset32_reg_offs): Likewise.
9267
4b2d20a5
TG
92682012-02-08 Joel Brobecker <brobecker@adacore.com>
9269
9270 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9271 of the returned BFD is allocated by GDB.
9272
f0823d2c
TT
92732012-02-07 Tom Tromey <tromey@redhat.com>
9274
9275 PR python/12027:
9276 * python/python-internal.h (frame_object_type): Declare.
9277 * python/py-symbol.c (sympy_needs_frame): New function.
9278 (sympy_value): New function.
9279 (symbol_object_getset): Add "needs_frame".
9280 (symbol_object_methods): Add "value".
9281 * python/py-frame.c (frame_object_type): No longer static.
9282
64e7d9dd
TT
92832012-02-07 Tom Tromey <tromey@redhat.com>
9284
9285 PR python/13599:
9286 * python/py-symbol.c (sympy_line): New function.
9287 (symbol_object_getset): Add "line".
9288
1d6b2d2b
TT
92892012-02-07 Tom Tromey <tromey@redhat.com>
9290
9291 * charset.c (find_charset_names): Check 'in' against NULL.
9292
0d5cff50
DE
92932012-02-06 Doug Evans <dje@google.com>
9294
9295 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9296 and fields.name members from char * to const char *. All uses updated.
9297 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9298 from char * to const char *. All uses updated.
9299 (type_name_no_tag): Update.
9300 (lookup_unsigned_typename, lookup_signed_typename): Update.
9301 * gdbtypes.c (type_name_no_tag): Change result type
9302 from char * to const char *. All callers updated.
9303 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9304 name parameter from char * to const char *.
9305 * symtab.h (struct cplus_specific): Change type of demangled_name
9306 member from char * to const char *. All uses updated.
9307 (struct general_symbol_info): Change type of name and
9308 mangled_lang.demangled_name members from char * to const char *.
9309 All uses updated.
9310 (symbol_get_demangled_name, symbol_natural_name): Update.
9311 (symbol_demangled_name, symbol_search_name): Update.
9312 * symtab.c (symbol_get_demangled_name): Change result type
9313 from char * to const char *. All callers updated.
9314 (symbol_natural_name, symbol_demangled_name): Ditto.
9315 (symbol_search_name): Ditto.
9316 (completion_list_add_name): Change type of symname,sym_text,
9317 text,word parameters from char * to const char *.
9318 (completion_list_objc_symbol): Change type of sym_text,
9319 text,word parameters from char * to const char *.
9320 * ada-lang.c (find_struct_field): Change type of name parameter
9321 from char * to const char *.
9322 (encoded_ordered_before): Similarly for N0,N1 parameters.
9323 (old_renaming_is_invisible): Similarly for function_name parameter.
9324 (ada_type_name): Change result type from char * to const char *.
9325 All callers updated.
9326 * ada-lang.h (ada_type_name): Update.
9327 * buildsym.c (hashname): Change type of name parameter
9328 from char * to const char *.
9329 * buildsym.h (hashname): Update.
9330 * dbxread.c (end_psymtab): Change type of include_list parameter
9331 from char ** to const char **.
9332 * dwarf2read.c (determine_prefix): Change result type
9333 from char * to const char *. All callers updated.
9334 * f-lang.c (find_common_for_function): Change type of name, funcname
9335 parameters from char * to const char *.
9336 * f-lang.c (find_common_for_function): Update.
9337 * f-valprint.c (list_all_visible_commons): Change type of funcname
9338 parameters from char * to const char *.
9339 * gdbarch.sh (static_transform_name): Change type of name parameter
9340 and result from char * to const char *.
9341 * gdbarch.c: Regenerate.
9342 * gdbarch.h: Regenerate.
9343 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9344 of name parameter from char * to const char *.
9345 * jv-lang.c (java_primitive_type_from_name): Ditto.
9346 (java_demangled_signature_length): Similarly for signature parameter.
9347 (java_demangled_signature_copy): Ditto.
9348 (java_demangle_type_signature): Ditto.
9349 * jv-lang.h (java_primitive_type_from_name): Update.
9350 (java_demangle_type_signature): Update.
9351 * objc-lang.c (specialcmp): Change type of a,b parameters
9352 from char * to const char *.
9353 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9354 from char * to const char *. All callers updated.
9355 * p-lang.h (is_pascal_string_type): Update.
9356 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9357 of name parameter from char * to const char *.
9358 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9359 * utils.c (fprintf_symbol_filtered): Ditto.
9360 * defs.h (fprintf_symbol_filtered): Update.
9361 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9362 * stabsread.h (end_psymtab): Update.
9363 * stack.c (find_frame_funname): Change type of funname parameter
9364 from char ** to const char **.
9365 * stack.h (find_frame_funname): Update.
9366 * typeprint.c (type_print): Change type of varstring parameter
9367 from char * to const char *.
9368 * value.h (type_print): Update.
9369 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9370 from char * to const char *. All callers updated.
9371 (xcoff_end_psymtab): Change type of include_list parameter
9372 from char ** to const char **. All callers updated.
9373 (swap_sym): Similarly for name parameter. All callers updated.
9374 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9375 Use xstrdup.
9376 (process_coff_symbol): Use xstrdup.
9377 * stabsread.c (stabs_method_name_from_physname): Renamed from
9378 update_method_name_from_physname. Change result type from void
9379 to char *. All callers updated.
9380 (read_member_functions): In has_destructor case, store name in objfile
9381 obstack instead of malloc space. In !has_stub case, fix mem leak.
9382
5579a92e
TT
93832012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9384
9385 * configure: Rebuild.
9386 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9387 LDFLAGS.
9388
9058f767
KB
93892012-02-03 Kevin Buettner <kevinb@redhat.com>
9390
9391 * configure.tgt (rl78-*-elf): New target.
9392 * rl78-tdep.c: New file.
9393
5b37825d
PW
93942012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9395
9396 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9397 and continue the loop. Add QUIT statement.
9398
e009ee71
TT
93992012-02-03 Tom Tromey <tromey@redhat.com>
9400
9401 PR gdb/13596:
9402 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9403 bfd_lookup_symbol_from_symtab.
9404 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9405 gdb_bfd_lookup_symbol_from_symtab.
9406
f7e44f65
JB
94072012-02-03 Joel Brobecker <brobecker@adacore.com>
9408
9409 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9410 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9411 symbol. Add assertion that sym2 is never NULL.
9412
2c02bd72
DE
94132012-02-02 Doug Evans <dje@google.com>
9414
9415 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9416 "name" parameter to const char ** from char **. All callers updated.
9417 (find_pc_partial_function): Ditto.
9418 (cache_pc_function_name): Change type to const char * from char *.
9419 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9420 (find_pc_partial_function): Update.
9421 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9422 type of "name" parameter to const char * from char *.
9423 All uses updated.
9424 * arch-utils.c (generic_in_solib_return_trampoline): Change
9425 type of "name" parameter to const char * from char *.
9426 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9427 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9428 type of "name" parameter to const char * from char *.
9429 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9430 * gdbarch.c: Regenerate.
9431 * gdbarch.h: Regenerate.
9432 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9433 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9434 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9435 type of "name" parameter to const char * from char *.
9436 * skip.c (skip_function_pc): Ditto.
9437 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9438 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9439 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9440 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9441 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9442 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9443 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9444 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9445 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9446
e886a173
PA
94472012-02-02 Pedro Alves <palves@redhat.com>
9448
9449 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9450 the current inferior has no execution. Make sure the current
9451 remote process matches gdb's current inferior.
9452
c709a7c2
TT
94532012-02-02 Tom Tromey <tromey@redhat.com>
9454
9455 PR gdb/13405:
9456 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9457 read-only memory.
9458
f149aabd
TT
94592012-02-02 Tom Tromey <tromey@redhat.com>
9460
9461 PR gdb/9307:
9462 * symtab.c (lookup_language_this): Set block_found.
9463
03bef283
TT
94642012-02-01 Tom Tromey <tromey@redhat.com>
9465
9466 PR gdb/13431:
9467 * jit.c (struct jit_inferior_data): Rewrite.
9468 (struct jit_objfile_data): New.
9469 (get_jit_objfile_data): New function.
9470 (add_objfile_entry): Update.
9471 (jit_read_descriptor): Return int. Replace descriptor_addr
9472 argument with inf_data. Update. Don't call error.
9473 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9474 descriptor here.
9475 (jit_inferior_init): Don't look up descriptor. Don't call error.
9476 (jit_reset_inferior_data_and_breakpoints)
9477 (jit_inferior_created_observer): Remove.
9478 (jit_inferior_exit_hook): Update.
9479 (jit_executable_changed_observer): Remove.
9480 (jit_event_handler): Update.
9481 (free_objfile_data): Reset inferior data if needed.
9482 (_initialize_jit): Update.
9483
f0bbc364
TT
94842012-02-01 Tom Tromey <tromey@redhat.com>
9485
9486 * jit.c (bfd_open_from_target_memory): Move higher in file.
9487
47c1316c
TG
94882012-02-01 Tristan Gingold <gingold@adacore.com>
9489
9490 * libunwind-frame.c (libunwind_load): Display message if dlopen
9491 failed.
9492
8e704927
GB
94932012-02-01 Gary Benson <gbenson@redhat.com>
9494
09c7a31f 9495 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9496 (iterate_over_symbols): Use the above.
9497 * symtab.c (iterate_over_symbols): Likewise.
9498 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9499 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9500 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9501 (iterate_name_matcher): Document return values.
9502 (collect_one_symbol): Likewise.
9503 (collect_function_symbols): Likewise.
9504 (collect_symbols): Likewise.
9505
d9680e73
TT
95062012-02-01 Tom Tromey <tromey@redhat.com>
9507
9508 * ada-lang.c (resolve_subexp): Update.
9509 (ada_lookup_symbol_list): Add 'full_search' argument.
9510 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9511 ada_lookup_symbol_list.
9512 (ada_lookup_encoded_symbol): Update.
9513 (get_var_value): Update.
9514 * ada-exp.y (block_lookup): Update.
9515 (write_var_or_type): Update.
9516 (write_name_assoc): Update.
9517 * ada-lang.h (ada_lookup_symbol_list): Update.
9518
72e1143f
TT
95192012-01-31 Tom Tromey <tromey@redhat.com>
9520
9521 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9522 comment.
9523
ab2d2ad3
DE
95242012-01-31 Doug Evans <dje@google.com>
9525
9526 * symtab.h: Remove outdated comment.
e9111bf7 9527 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9528
bc884eba
JB
95292012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9530
9531 Fix build error in Darwin port.
9532 * i386-darwin-nat.c: Include i386-nat.h.
9533
8fc3fc34
TT
95342012-01-30 Tom Tromey <tromey@redhat.com>
9535
9536 PR breakpoints/13568:
9537 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9538 argument. Check for recursive includes.
9539 (dwarf_decode_macros): Create an include hash.
9540
5d853008
ME
95412012-01-30 Michael Eager <eager@eagercon.com>
9542
9543 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9544 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9545 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9546 (powerpc_linux_in_plt_stub): New function.
9547 (powerpc_linux_in_dynsym_resolve_code): New function.
9548 (ppc_skip_trampoline_code): New function.
9549 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9550 Use glibc_skip_solib_resolver.
9551
40478521
JK
95522012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9553
9554 Code cleanup: Make 1440 bytes of data segment read-only.
9555 * arch-utils.c (endian_enum): Make it const char *const [].
9556 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9557 Likewise.
9558 * breakpoint.c (always_inserted_enums): Likewise.
9559 * cli/cli-cmds.c (script_ext_enums): Likewise.
9560 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9561 enumlist parameter const char *const *.
9562 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9563 const char *const *.
9564 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9565 parameter const char *const *.
9566 * cris-tdep.c (cris_modes): Make it const char *const [].
9567 * filesystem.c (target_file_system_kinds): Likewise.
9568 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9569 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9570 (can_use_displaced_stepping_enum, scheduler_enums)
9571 (exec_direction_names): Likewise.
9572 * language.c (_initialize_language): Make the type_or_range_names and
9573 case_sensitive_names variables const char *const [].
9574 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9575 * python/python.c (python_excp_enums): Likewise.
9576 * remote.c (interrupt_sequence_modes): Likewise.
9577 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9578 * serial.c (logbase_enums): Likewise.
9579 * sh-tdep.c (sh_cc_enum): Likewise.
9580 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9581 Likewise.
9582 * symtab.c (multiple_symbols_modes): Likewise.
9583 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9584 Likewise.
9585 * utils.c (internal_problem_modes): Likewise.
9586
b3b8b934
JK
95872012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9590 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9591 result.
9592
8c85a4e2
DE
95932012-01-27 Doug Evans <dje@google.com>
9594
9595 * configure.ac (with_python): Fix absolute path handling for win32.
9596 * configure: Regenerate.
9597
78d8b4d7
DE
95982012-01-26 Doug Evans <dje@google.com>
9599
eca864fe
DE
9600 * symtab.c: Whitespace cleanup, no code changes.
9601
7e082072
DE
9602 * symtab.c (lookup_symbol_in_language): Improve comment.
9603 (lookup_symbol_aux): Fix comment.
9604
7dc25483
DE
9605 * psymtab.c (add_psymbol_to_list): Result is now "void".
9606 * psympriv.h (add_psymbol_to_list): Update.
9607
78d8b4d7
DE
9608 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9609
4c63965b
JK
96102012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9611
9612 Do not open script filenames twice.
9613 * cli/cli-cmds.c (source_script_from_stream): Pass to
9614 source_python_script also STREAM.
9615 * python/py-auto-load.c (source_section_scripts): Pass to
9616 source_python_script_for_objfile also STREAM.
9617 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9618 also INPUT.
9619 * python/python-internal.h (source_python_script_for_objfile): New
9620 parameter file, rename parameter file to filename.
9621 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9622 instead if !_WIN32. Update the function comment.
9623 (source_python_script, source_python_script_for_objfile)
9624 (source_python_script): New parameter file, rename parameter file to
9625 filename. Pass FILENAME to python_run_simple_file.
9626 * python/python.h (source_python_script): New parameter file, rename
9627 parameter file to filename.
9628
88f38a04
PA
96292012-01-26 Pedro Alves <palves@redhat.com>
9630
9631 * corelow.c (core_has_fake_pid): Delete.
9632 (core_close): Delete references to `core_has_fake_pid'.
9633 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9634 (core_open): Delete references to `core_has_fake_pid'.
9635 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9636 the removed global.
9637
e078317b
JB
96382012-01-26 Joel Brobecker <brobecker@adacore.com>
9639
9640 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9641 Remove language parameter from name_matcher. Adjust the comment.
9642 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9643 Remove language parameter.
9644 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9645 * linespec.c (iterate_name_matcher): Likewise.
9646 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9647 name_matcher. Adjust call accordingly.
9648 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9649 (maintenance_check_symtabs): Adjust type of parameter "fun".
9650 * psymtab.h (maintenance_check_symtabs): Likewise.
9651
74ccd7f5
JB
96522012-01-26 Joel Brobecker <brobecker@adacore.com>
9653
9654 * language.h (symbol_name_match_p_ftype): New typedef.
9655 (struct language_defn): Replace field la_symbol_name_compare
9656 by la_get_symbol_name_match_p.
9657 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9658 (ada_language_defn): Use it.
9659 * linespec.c (struct symbol_matcher_data): New type.
9660 (iterate_name_matcher): Rewrite.
9661 (iterate_over_all_matching_symtabs): Pass a pointer to
9662 a symbol_matcher_data struct to expand_symtabs_matching
9663 instead of just the lookup name.
9664 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9665 opencl-lang.c, p-lang.c, language.c: Delete field
9666 la_symbol_name_compare, and replace by NULL for new field
9667 la_get_symbol_name_match_p.
9668 * symfile.h (struct quick_symbol_functions): Update comment.
9669
5d268276
TT
96702012-01-25 Tom Tromey <tromey@redhat.com>
9671
9672 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9673 dereferencing.
9674
edcc5120
TT
96752012-01-24 Tom Tromey <tromey@redhat.com>
9676
9677 PR symtab/12406:
9678 * solib.c (update_solib_list): Update the program space's
9679 added_solibs and deleted_solibs fields.
9680 * progspace.h (struct program_space) <added_solibs,
9681 deleted_solibs>: New fields.
9682 (clear_program_space_solib_cache): Declare.
9683 * progspace.c (release_program_space): Call
9684 clear_program_space_solib_cache.
9685 (clear_program_space_solib_cache): New function.
9686 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9687 bpstat_stop_status. Use handle_solib_event.
9688 * breakpoint.c: Include gdb_regex.h.
9689 (print_solib_event): New function.
9690 (bpstat_print): Use print_solib_event.
9691 (bpstat_stop_status): Add special case for bp_shlib_event.
9692 (handle_solib_event): New function.
9693 (bpstat_what): Use handle_solib_event.
9694 (struct solib_catchpoint): New.
9695 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9696 (breakpoint_hit_catch_solib, check_status_catch_solib)
9697 (print_it_catch_solib, print_one_catch_solib)
9698 (print_mention_catch_solib, print_recreate_catch_solib): New
9699 functions.
9700 (catch_solib_breakpoint_ops): New global.
9701 (catch_load_or_unload, catch_load_command_1)
9702 (catch_unload_command_1): New functions.
9703 (internal_bkpt_check_status): Add special case for
9704 bp_shlib_event.
9705 (internal_bkpt_print_it): Use print_solib_event.
9706 (initialize_breakpoint_ops): Initialize
9707 catch_solib_breakpoint_ops.
9708 (_initialize_breakpoint): Register "catch load" and "catch
9709 unload".
9710 * breakpoint.h (handle_solib_event): Declare.
9711 * NEWS: Add entry for "catch load" and "catch unload".
9712
fa864999
TT
97132012-01-24 Tom Tromey <tromey@redhat.com>
9714
9715 * ada-lang.c: Include gdb_vecs.h.
9716 * charset.c: Include gdb_vecs.h.
9717 * tracepoint.h: Include gdb_vecs.h.
9718 * gdb_vecs.h: New file.
9719
f90263c1
TT
97202012-01-24 Pedro Alves <pedro@codesourcery.com>
9721
9722 * breakpoint.c (breakpoint_hit_catch_fork)
9723 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9724 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9725 * infrun.c (inferior_has_forked, inferior_has_vforked)
9726 (inferior_has_execd, inferior_has_called_syscall): Delete.
9727 (handle_syscall_event): Get syscall_number from the execution
9728 control state's wait status.
9729 (wait_for_inferior): Don't clear syscall_number.
9730
09ac7c10
TT
97312012-01-24 Pedro Alves <palves@redhat.com>
9732
9733 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9734 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9735 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9736 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9737 `ws' parameter.
9738 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9739 false for events other than TARGET_SIGNAL_TRAP.
9740 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9741 Add `ws' parameter.
9742 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9743 events other than TARGET_SIGNAL_TRAP.
9744 (tracepoint_breakpoint_hit): Add `ws' parameter.
9745 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9746 parameter.
9747 (bpstat_stop_status): Same.
9748 (pc_at_non_inline_function): Same.
9749 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9750 to pass the current event's waitstatus to bpstat_stop_status
9751 and pc_at_non_inline_function.
9752
86eb7e95
JK
97532012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9754
9755 Code cleanup.
9756 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9757 Update the function comment for it.
9758 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9759 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9760 for STREAM.
9761
a9b3a50f
PA
97622012-01-24 Pedro Alves <palves@redhat.com>
9763
9764 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9765 outside `bs->stop' block.
9766 (bpstat_what): Rework bp_shlib_event handling.
9767 (internal_bkpt_check_status): If the breakpoint is a
9768 bp_shlib_event, then set bs->stop and bs->print if
9769 stop_on_solib_events is set.
9770
53fe1783
GB
97712012-01-24 Gary Benson <gbenson@redhat.com>
9772
9773 Delete #if 0'd out code.
9774 * stack.c (print_frame_label_vars): Remove.
9775 (catch_info): Likewise.
9776 (_initialize_stack): Remove "info catch" command.
9777 * NEWS: Mention the above.
9778
49c62f2e
PA
97792012-01-24 Pedro Alves <palves@redhat.com>
9780
9781 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9782 it.
9783 (remote_notice_new_inferior): If the remote end doesn't support
9784 the multiprocess extensions, then the PID is fake.
9785 (add_current_inferior_and_thread): New.
9786 (remote_start_remote): Use it.
9787 (extended_remote_attach_1): Adjust.
9788 (extended_remote_create_inferior_1): Use
9789 add_current_inferior_and_thread.
9790
d0d8b0c6
JK
97912012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9792
9793 Fix watchpoints to be specific for each inferior.
9794 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9795 current_program_space.
9796 * i386-nat.c (i386_inferior_data_cleanup): New.
9797 (i386_inferior_data_get): Replace variable inf_data_local by an
9798 inferior_data call.
9799 (i386_use_watchpoints): Initialize i386_inferior_data.
9800 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9801 specific iterate_over_lwps.
9802
4403d8e9
JK
98032012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9804
9805 Fix watchpoints across inferior fork.
9806 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9807 comment for linux_nat_iterate_watchpoint_lwps.
9808 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9809 linux_nat_iterate_watchpoint_lwps.
9810 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9811 * i386-linux-nat.c (update_debug_registers_callback): Update the
9812 comment for linux_nat_iterate_watchpoint_lwps.
9813 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9814 linux_nat_iterate_watchpoint_lwps.
9815 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9816 * i386-nat.c: Include inferior.h.
9817 (dr_mirror): Remove.
9818 (i386_inferior_data, struct i386_inferior_data)
9819 (i386_inferior_data_get): New.
9820 (i386_debug_reg_state): Use i386_inferior_data_get.
9821 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9822 (i386_insert_watchpoint, i386_remove_watchpoint)
9823 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9824 (i386_remove_hw_breakpoint): New variable state, use
9825 i386_debug_reg_state instead of DR_MIRROR.
9826 * linux-nat.c (delete_lwp): New declaration.
9827 (num_lwps): Move here from downwards.
9828 (delete_lwp_cleanup): New.
9829 (linux_child_follow_fork): Create new child_lp, call
9830 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9831 PTRACE_DETACH.
9832 (num_lwps): Move upwards.
9833 (linux_nat_iterate_watchpoint_lwps): New.
9834 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9835 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9836
2992c9a7 98372012-01-24 Joel Brobecker <brobecker@adacore.com>
9838
9839 GDB 7.4 released.
9840
e360902b
PA
98412012-01-23 Pedro Alves <palves@redhat.com>
9842
9843 * top.c (caution): Rename to ...
9844 (confirm): ... this.
9845 (show_caution): Rename to ...
9846 (show_confirm): ... this.
9847 (quit_cover): Adjust.
9848 (init_main): Adjust.
9849 * top.h (caution): Rename to ...
9850 (confirm): ... this.
9851 * utils.c (internal_vproblem, defaulted_query): Adjust.
9852
050a2e1d
PA
98532012-01-23 Pedro Alves <palves@redhat.com>
9854
9855 * top.c (caution): Update comment.
9856 (execute_command): Don't consider the current value of `caution'.
9857
77a35dd8
JK
98582012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9859
9860 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9861
a71b5a38
UW
98622012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9863
9864 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9865 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9866 * target.c (target_fileio_pwrite): Remove buffer address from
9867 debug output.
9868 (target_fileio_pread): Likewise.
9869
d99bd577
UW
98702012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9871
9872 * NEWS: Document remote "info proc" and "generate-core-file".
9873
35c2fab7
UW
98742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9875
9876 * gdbarch.sh (find_memory_regions): New callback.
9877 * gdbarch.c, gdbarch.h: Regenerate.
9878
9879 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9880 callback before falling back to target method.
9881
9882 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9883 (linux_target_install_ops): No longer install it.
9884
9885 * linux-tdep.c (linux_find_memory_regions): New function.
9886 (linux_init_abi): Install it.
9887
6432734d
UW
98882012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9889
9890 * gdbarch.sh (make_corefile_notes): New architecture callback.
9891 * gdbarch.c: Regenerate.
9892 * gdbarch.h: Likewise.
9893
9894 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9895 before target_make_corefile_notes. If NULL is returned, the
9896 target does not support core file generation.
9897
9898 * linux-nat.c: Include "linux-tdep.h".
9899 (find_signalled_thread, find_stop_signal): Remove.
9900 (linux_nat_do_thread_registers): Likewise.
9901 (struct linux_nat_corefile_thread_data): Likewise.
9902 (linux_nat_corefile_thread_callback): Likewise.
9903 (iterate_over_spus): Likewise.
9904 (struct linux_spu_corefile_data): Likewise.
9905 (linux_spu_corefile_callback): Likewise.
9906 (linux_spu_make_corefile_notes): Likewise.
9907 (linux_nat_collect_thread_registers): New function.
9908 (linux_nat_make_corefile_notes): Replace contents by call to
9909 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9910 as native-only callback.
9911
9912 * linux-tdep.h: Include "bfd.h".
9913 (struct regcache): Add forward declaration.
9914 (linux_collect_thread_registers_ftype): New typedef.
9915 (linux_make_corefile_notes): Add prototype.
9916 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9917 "regset.h", and "elf-bfd.h".
9918 (find_signalled_thread, find_stop_signal): New functions.
9919 (linux_spu_make_corefile_notes): Likewise.
9920 (linux_collect_thread_registers): Likewise.
9921 (struct linux_corefile_thread_data): New data structure.
9922 (linux_corefile_thread_callback): New funcion.
9923 (linux_make_corefile_notes): Likewise.
9924 (linux_make_corefile_notes_1): Likewise.
9925 (linux_init_abi): Install it.
9926
3030c96e
UW
99272012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9928
9929 * gdbarch.sh (info_proc): New callback.
9930 * gdbarch.c, gdbarch.h: Regenerate.
9931
9932 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9933 before falling back to the target info_proc callback.
9934
9935 * linux-nat.c: Do not include "cli/cli-utils.h".
9936 (linux_nat_info_proc): Remove.
9937 (linux_target_install_ops): No longer install it.
9938
9939 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9940 (read_mapping): New function.
9941 (linux_info_proc): Likewise.
9942 (linux_init_abi): Install it.
9943
145b16a9
UW
99442012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9945
9946 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9947 * infcmd.c: (info_proc_cmd_1): New function.
9948 (info_proc_cmd): New function, moved here from equivalent routine
9949 orignally in linux-nat.c.
9950 (info_proc_cmd_mappings): Likewise.
9951 (info_proc_cmd_stat): Likewise.
9952 (info_proc_cmd_status): Likewise.
9953 (info_proc_cmd_cwd): Likewise.
9954 (info_proc_cmd_cmdline): Likewise.
9955 (info_proc_cmd_exe): Likewise.
9956 (info_proc_cmd_all): Likewise.
9957 (_initialize_infcmd): Install "info proc" command and subcommands.
9958
9959 * target.h (struct target_ops): Add to_info_proc.
9960 (target_info_proc): Add prototype.
9961 * target.c (target_info_proc): New function.
9962
9963 * procfs.c (procfs_info_proc): Add prototype.
9964 (info_proc_cmd): Rename into ...
9965 (procfs_info_proc): ... this. Update argument types as appropriate
9966 for a to_info_proc implementation. Handle "what" argument.
9967 (procfs_target): Install procfs_info_proc.
9968 (_initialize_procfs): No longer install "info proc" command.
9969
9970 * linux-nat.c: (enum info_proc_what): Remove.
9971 (linux_nat_info_proc_cmd_1): Rename into ...
9972 (linux_nat_info_proc): ... this. Update argument types as appropriate
9973 for a to_info_proc implementation.
9974 (linux_nat_info_proc_cmd): Remove.
9975 (linux_nat_info_proc_cmd_mappings): Likewise.
9976 (linux_nat_info_proc_cmd_stat): Likewise.
9977 (linux_nat_info_proc_cmd_status): Likewise.
9978 (linux_nat_info_proc_cmd_cwd): Likewise.
9979 (linux_nat_info_proc_cmd_cmdline): Likewise.
9980 (linux_nat_info_proc_cmd_exe): Likewise.
9981 (linux_nat_info_proc_cmd_all): Likewise.
9982 (linux_target_install_ops): Install linux_nat_info_proc.
9983 (_initialize_linux_nat): No longer install "info proc" command
9984 and subcommands.
9985
b9e7b9c3
UW
99862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9987
9988 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9989 * config.in, configure: Regenerate.
9990
9991 * target.h (struct target_ops): Add to_fileio_readlink.
9992 (target_fileio_readlink): Add prototype.
9993 * target.c (target_fileio_readlink): New function.
9994
9995 * inf-child.c: Conditionally include <sys/param.h>.
9996 (inf_child_fileio_readlink): New function.
9997 (inf_child_target): Install it.
9998
9999 * remote.c (PACKET_vFile_readlink): New enum value.
10000 (remote_hostio_readlink): New function.
10001 (init_remote_ops): Install it.
10002 (_initialize_remote): Handle vFile:readlink packet type.
10003
7313baad
UW
100042012-01-20 Pedro Alves <palves@redhat.com>
10005 Ulrich Weigand <ulrich.weigand@linaro.org>
10006
10007 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10008 * config.in, configure: Regenerate.
10009
10010 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
10011 to_fileio_pread, to_fileio_close, to_fileio_unlink.
10012 (target_fileio_open): Add prototype.
10013 (target_fileio_pwrite): Likewise.
10014 (target_fileio_pread): Likewise.
10015 (target_fileio_close): Likewise.
10016 (target_fileio_unlink): Likewise.
10017 (target_fileio_read_alloc): Likewise.
10018 (target_fileio_read_stralloc): Likewise.
10019
10020 * target.c: Include "gdb/fileio.h".
10021 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
10022 (default_fileio_target): New function.
10023 (target_fileio_open): Likewise.
10024 (target_fileio_pwrite): Likewise.
10025 (target_fileio_pread): Likewise.
10026 (target_fileio_close): Likewise.
10027 (target_fileio_unlink): Likewise.
10028 (target_fileio_close_cleanup): Likewise.
10029 (target_fileio_read_alloc_1): Likewise.
10030 (target_fileio_read_alloc): Likewise.
10031 (target_fileio_read_stralloc): Likewise.
10032
10033 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
10034 <fcntl.h>, and <unistd.h>.
10035 (inf_child_fileio_open_flags_to_host): New function.
10036 (inf_child_errno_to_fileio_error): Likewise.
10037 (inf_child_fileio_open): Likewise.
10038 (inf_child_fileio_pwrite): Likewise.
10039 (inf_child_fileio_pread): Likewise.
10040 (inf_child_fileio_close): Likewise.
10041 (inf_child_fileio_unlink): Likewise.
10042 (inf_child_target): Install to_fileio routines.
10043
10044 * remote.c (init_remote_ops): Install to_fileio routines.
10045
901f9912
UW
100462012-01-20 Pedro Alves <palves@redhat.com>
10047 Ulrich Weigand <ulrich.weigand@linaro.org>
10048
10049 * remote.c (remote_multi_process_p): Only check for multi-process
10050 protocol feature, do not check for extended protocol.
10051 (remote_supports_multi_process): Check for extended protocol here.
10052 (set_general_process): Likewise.
10053 (extended_remote_kill): Likewise.
10054 (remote_pid_to_str): Likewise.
10055 (remote_query_supported): Always query multiprocess mode.
10056
e714e1bf
UW
100572012-01-20 Pedro Alves <palves@redhat.com>
10058 Ulrich Weigand <ulrich.weigand@linaro.org>
10059
10060 * inferior.h (struct inferior): Add fake_pid_p.
10061 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10062 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10063 magic_null_ptid since the remote side doesn't provide a real PID.
10064
50897289
TT
100652012-01-19 Tom Tromey <tromey@redhat.com>
10066
10067 * NEWS: Combine the two Python sections.
10068
1afc2033
JK
100692012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 * target.h (target_close): Update comment on the target's unpush state.
10072
305436e0
PA
100732012-01-19 Pedro Alves <palves@redhat.com>
10074
10075 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10076 linux_nat_async directly instead of going through the target
10077 vector.
10078 * target.c (unpush_target): Close target after unpushing it, not
10079 before.
10080
49323895
GB
100812012-01-19 Gary Benson <gbenson@redhat.com>
10082
10083 * mdebugread.c (sort_blocks): Replace integer constants with ones
10084 derived from FIRST_LOCAL_BLOCK.
10085
1db33378
PP
100862012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10087 Jan Kratochvil <jan.kratochvil@redhat.com>
10088
10089 PR gdb/9538
10090 * symfile.c (find_separate_debug_file): New function.
10091 (terminate_after_last_dir_separator): Likewise.
10092 (find_separate_debug_file_by_debuglink): Also try realpath.
10093 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10094 * configure: Regenerate.
10095 * config.in: Regenerate.
10096
f83d8a90
DE
100972012-01-18 Doug Evans <dje@google.com>
10098
10099 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10100 (main.o): Remove rule.
10101 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10102 (--with-sysroot): Rewrite.
10103 * configure: Regenerate.
10104 * config.in: Regenerate.
10105
2dbca4d6
SDJ
101062012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10107
10108 * parse.c (initialize_expout): New function.
10109 (reallocate_expout): Likewise.
10110 (parse_exp_in_context): Use `initialize_expout' and
10111 `reallocate_expout' when appropriate.
10112
0695b514
PA
101132012-01-18 Pedro Alves <palves@redhat.com>
10114
10115 * record.c (struct record_breakpoint, record_breakpoint_p)
10116 (record_breakpoints): New.
10117 (record_insert_breakpoint, record_remove_breakpoint): Manage
10118 record breakpoints list. Only remove breakpoints from the
10119 inferior if they had been inserted there in the first place.
10120
136e1c30
DE
101212012-01-17 Doug Evans <dje@google.com>
10122
10123 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10124 if we know we don't have a file name to look for.
10125
c0bf857d
PA
101262012-01-17 Pedro Alves <palves@redhat.com>
10127
10128 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10129 the frame's stop reason is UNWIND_UNAVAILABLE.
10130
b486de60
JK
101312012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10132
10133 Fix compilation error.
10134 * m2-exp.y (yyerror): Use ANSI C prototype.
10135
d04550a6
SDJ
101362012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10137
10138 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10139 (growbuf_by_size): Likewise.
10140 (yyerror): Likewise.
10141 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10142 (modblock): Remove variable (was #if 0'ed).
10143 (parse_number): Convert prototype from K&R to ANSI C.
10144 (yyerror): Likewise.
10145 * objc-exp.y (parse_number): Likewise.
10146 (yyerror): Likewise.
10147 (yylex): Remove #if 0'ed code.
10148 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10149 (yyerror): Likewise.
10150
4aac40c8
TT
101512012-01-16 Tom Tromey <tromey@redhat.com>
10152
10153 * NEWS: Add item.
10154 * symtab.h (compare_filenames_for_search): Declare.
10155 * symtab.c (compare_filenames_for_search): New function.
10156 (iterate_over_some_symtabs): Use it.
10157 * symfile.h (struct quick_symbol_functions)
10158 <map_symtabs_matching_filename>: Change spec.
10159 * psymtab.c (partial_map_symtabs_matching_filename): Use
10160 compare_filenames_for_search. Update for new spec.
10161 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10162 compare_filenames_for_search. Update for new spec.
10163 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10164
cafec441
TT
101652012-01-16 Tom Tromey <tromey@redhat.com>
10166
10167 PR python/13281:
10168 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10169 (struct main_type) <flag_flag_enum>: New field.
10170 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10171 * NEWS: Add entries.
10172 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10173 enums.
10174 * python/lib/gdb/printing.py (_EnumInstance): New class.
10175 (FlagEnumerationPrinter): Likewise.
10176
983af33b
SDJ
101772012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10178
10179 * breakpoint.c (create_sals_from_address_default): New function.
10180 (create_breakpoints_sal_default): Likewise.
10181 (decode_linespec_default): Likewise.
10182 (is_marker_spec): Removed.
10183 (strace_marker_p): New function.
10184 (init_breakpoint_sal): Using `strace_marker_p' instead of
10185 `is_marker_spec'.
10186 (create_breakpoint): Call method `create_sals_from_address' from
10187 breakpoint_ops, replacing code that created SALs conditionally
10188 on the type of the breakpoint. Call method `create_breakpoints_sal',
10189 replacing code that created breakpoints conditionally on the type
10190 wanted.
10191 (base_breakpoint_create_sals_from_address): New function.
10192 (base_breakpoint_create_breakpoints_sal): Likewise.
10193 (base_breakpoint_decode_linespec): Likewise.
10194 (base_breakpoint_ops): Add methods
10195 `base_breakpoint_create_sals_from_address',
10196 `base_breakpoint_create_breakpoints_sal' and
10197 `base_breakpoint_decode_linespec'.
10198 (bkpt_create_sals_from_address): New function.
10199 (bkpt_create_breakpoints_sal): Likewise.
10200 (bkpt_decode_linespec): Likewise.
10201 (tracepoint_create_sals_from_address): Likewise.
10202 (tracepoint_create_breakpoints_sal): Likewise.
10203 (tracepoint_decode_linespec): Likewise.
10204 (strace_marker_create_sals_from_address): Likewise.
10205 (strace_marker_create_breakpoints_sal): Likewise.
10206 (strace_marker_decode_linespec): Likewise.
10207 (strace_marker_breakpoint_ops): New variable.
10208 (addr_string_to_sals): Remove `marker_spec'. Call method
10209 `decode_linespec' from breakpoint_ops, replacing code that decoded
10210 an address string into a SAL. Use `strace_marker_p' instead of
10211 `marker_spec'.
10212 (strace_command): Decide whether we are dealing with a static
10213 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10214 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10215 * breakpoint.h (linespec_result, linespec_sals): New forward
10216 declarations.
10217 (breakpoint_ops) <create_sals_from_address>,
10218 <create_breakpoints_sal>, <decode_linespec>: New methods.
10219
4795f398
DE
102202012-01-14 Doug Evans <dje@google.com>
10221
10222 * NEWS: Update text for "maint set python print-stack".
10223 It is deprecated in gdb 7.4 and deleted in 7.5.
10224
ee5106fe
EZ
102252012-01-13 Eli Zaretskii <eliz@gnu.org>
10226
10227 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10228 including curses.h.
10229
b161e06f
JK
102302012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10231
10232 * configure: Regenerate.
10233 * config.in: Regenerate.
10234
85254831
KS
102352012-01-12 Keith Seitz <keiths@redhat.com>
10236
10237 PR mi/10586
10238 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10239 (ANONYMOUS_UNION_NAME): Define.
10240 (is_path_expr_parent): New function.
10241 (get_path_expr_parent): New function.
10242 (is_anonymous_child): New function.
10243 (create_child_with_value): If the child is anonymous and without
10244 a name, assign an object name to it.
10245 (c_describe_child): Use get_path_expr_parent to determine
10246 the parent expression.
10247 If there field represents an anonymous struct or union and
10248 has no name, set an appropriate display name and expression.
10249 (cplus_describe_child): Likewise.
10250
620fa63a
PA
102512012-01-12 Pedro Alves <palves@redhat.com>
10252
10253 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10254 available when %ebp is found to be zero (outermost).
10255
2efa2c79
AT
102562012-01-11 Andreas Tobler <andreast@fgznet.ch>
10257
10258 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10259 an internal gdb_static_assert.
10260 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10261
88e7d25d
TT
102622012-01-11 Tom Tromey <tromey@redhat.com>
10263
10264 PR gdb/9598:
10265 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10266 catch" and "catch throw".
10267
72384ba3
PH
102682012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10269
10270 * blockframe.c (block_innermost_frame): Start search from selected
10271 frame, if present, or otherwise the current frame.
10272
10273 * c-exp.y (variable): Update innermost_block for
10274 'block COLONCOLON NAME' clause.
10275 * m2-exp.y (variable): Ditto.
10276 * objc-exp.y (variable): Ditto.
10277
065a711f
TT
102782012-01-10 Tom Tromey <tromey@redhat.com>
10279
10280 PR python/13199:
10281 * python/python.c (finish_python_initialization): Set sys.argv.
10282
f3f5162e
DE
102832012-01-10 Doug Evans <dje@google.com>
10284
10285 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10286 "want_line_info". All callers updated.
10287 (dwarf_decode_lines_1): New function.
10288 (handle_DW_AT_stmt_list): Add function comment.
10289 New arg "want_line_info". All callers updated.
10290 (read_file_scope,read_type_unit_scope): Move comment from
10291 handle_DW_AT_stmt_list to here.
10292
9934703b
JK
102932012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10294
10295 Fix regression after libiberty/ update for GCC PR 6057 and others.
10296 * c-exp.y (operator) <OPERATOR DELETE>
10297 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10298 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10299 (make_builtin_type, make_name): New variable i, add gdb_assert.
10300 (operator) <OPERATOR NEW>: Update ARGS to 3.
10301 (operator) <OPERATOR DELETE>: Add trailing space.
10302 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10303 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10304 * cp-support.c (cp_canonicalize_string): Check NULL from
10305 cp_comp_to_string, call warning and return.
10306
06b9f45f
JK
103072012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10308
10309 Fix duplicate .o files after omitting libbfd.a.
10310 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10311 (SFILES): Add corelow.c.
10312 (COMMON_OBS): Add corelow.o.
10313 (ALLDEPFILES): Remove corelow.c.
10314 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10315 * config/alpha/alpha-osf3.mh: Likewise.
10316 * config/alpha/fbsd.mh: Likewise.
10317 * config/arm/nbsdaout.mh: Likewise.
10318 * config/arm/nbsdelf.mh: Likewise.
10319 * config/i386/i386gnu.mh: Likewise.
10320 * config/ia64/hpux.mh: Likewise.
10321 * config/ia64/linux.mh: Likewise.
10322 * config/m32r/linux.mh: Likewise.
10323 * config/m68k/linux.mh: Likewise.
10324 * config/mips/irix5.mh: Likewise.
10325 * config/mips/irix6.mh: Likewise.
10326 * config/pa/hpux.mh: Likewise.
10327 * config/pa/linux.mh: Likewise.
10328 * config/powerpc/aix.mh: Likewise.
10329 * config/sparc/linux.mh: Likewise.
10330 * config/sparc/linux64.mh: Likewise.
10331 * config/sparc/sol2.mh: Likewise.
10332 * config/vax/vax.mh: Likewise.
10333 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10334 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10335 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10336 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10337 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10338 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10339 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10340 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10341 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10342 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10343 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10344 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10345 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10346 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10347 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10348 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10349 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10350 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10351 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10352 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10353 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10354 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10355 corelow.o from gdb_target_obs.
10356 * corefile.c (core_target): Update the comment on NULL value.
10357 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10358 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10359 MATCHES. Drop YUMMY set on NULL.
10360 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10361 reclaim CORE_DATA if it is already NULL.
10362
34365054
DE
103632012-01-09 Doug Evans <dje@google.com>
10364
10365 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10366 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10367
696166a3
KS
103682012-01-09 Keith Seitz <keiths@redhat.com>
10369
10370 * breakpoint.c (wrapper.h): Don't include.
10371
8e7b59a5
KS
103722012-01-09 Keith Seitz <keiths@redhat.com>
10373
10374 * Makefile.in (SFILES): Remove wrapper.c.
10375 (HFILES_NO_SRCDIR): Remove wrapper.h.
10376 (COMMON_OBS): Remove wrapper.o.
10377 * cli/cli-interp.c: Don't inlude wrapper.h.
10378 * corelow.c: Likewise.
10379 (core_open): Replace gdb_target_find_new_threads with
10380 TRY_CATCH around target_find_new_threads.
10381 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10382 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10383 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10384 evaluate_expression.
10385 (varobj_set_value): Likewise for evaluate_expression and
10386 value_assign.
10387 (install_new_variable): Likewise for value_fetch_lazy.
10388 (adjust_value_for_child_access): Likewise for value_ind.
10389 (c_describe_child): Likewise for value_subscript and
10390 value_ind.
10391 (c_value_of_root): Likewise for evaluate_expression.
10392 * wrapper.c: Remove.
10393 * wrapper.h: Remove.
10394
1a4eeb98
DE
103952012-01-09 Doug Evans <dje@google.com>
10396
9ff913ba
DE
10397 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10398 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10399 "abfd" args with "section". All callers updated.
10400 Error checking code moved ...
10401 (error_check_comp_unit_head): ... here. New function.
10402 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10403 Delete arg "abfd". New arg "type_offset". All callers updated.
10404 (create_debug_types_hash_table): Simplify by using
10405 read_and_check_type_unit_head.
10406
1a4eeb98
DE
10407 * parser-defs.h (namecopy): Delete.
10408 * parse.c (namecopy, namecopy_size): Move into copy_name.
10409
2e6af8c0
JK
104102012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10411
10412 Partially fix duplicate .o files after omitting libbfd.a.
10413 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10414 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10415 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10416 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10417 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10418 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10419 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10420
9f2f828a
PA
104212012-01-09 Pedro Alves <palves@redhat.com>
10422
10423 * MAINTAINERS: Update my email address.
10424
4d72c0bc
DE
104252012-01-08 Doug Evans <dje@google.com>
10426
d467dd73
DE
10427 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10428 n_type_units. Rename type_comp_units to all_type_units.
10429 All uses updated.
10430 (add_signatured_type_cu_to_table): Renamed from
10431 add_signatured_type_cu_to_list. All callers updated.
10432
4d72c0bc
DE
10433 * gdbtypes.h (struct cplus_struct_type): Delete member
10434 nfn_fields_total. All uses removed.
10435
21b2bd31
DE
104362012-01-06 Doug Evans <dje@google.com>
10437
10438 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10439 to top of file.
10440 (dwarf2_find_comp_unit): Delete.
10441 (process_psymtab_comp_unit): Make result "void".
10442 Delete args buffer, info_ptr, buffer_size, and replace with
10443 "section". All callers updated.
10444 (dwarf2_build_psymtabs_hard): Simplify.
10445
bfd189b1
SDJ
104462012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10447 Thiago Jung Bauermann <bauerman@br.ibm.com>
10448
10449 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10450 before `struct gdb_exception'.
10451 * breakpoint.c (update_global_location_list_nothrow)
10452 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10453 * cp-abi.c (value_rtti_type): Likewise.
10454 * cp-support.c (cp_validate_operator): Likewise.
10455 * infrun.c (insert_exception_resume_breakpoint)
10456 (check_exception_resume, keep_going): Likewise.
10457 * mi-interp.c (mi_breakpoint_created)
10458 (mi_breakpoint_modified): Likewise.
10459 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10460 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10461 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10462
6b07635f
DE
104632012-01-05 Doug Evans <dje@google.com>
10464
0b30b85c
DE
10465 * dwarf2read.c (statement_prologue): Delete, unused.
10466
98714339
DE
10467 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10468 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10469
6b07635f
DE
10470 * dwarf2read.c (comp_unit_header): Delete, unused.
10471
761f4555
UW
104722012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10473
10474 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10475 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10476
2ca0b532
PA
104772012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10478
10479 * infrun.c (normal_stop): Don't skip calling the normal_stop
10480 observers if the thread was doing a multi-step, but stopped for
10481 some reason other than stepping.
10482
50aeff07
PA
104832012-01-05 Pedro Alves <alves.ped@gmail.com>
10484
10485 * cli/cli-decode.h: Add comments.
10486 (CMD_LIST_AMBIGUOUS): Moved to command.h
10487 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10488 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10489 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10490 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10491 (add_com, add_com_alias, add_info, add_info_alias)
10492 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10493 declarations.
10494 * command.h: Add and adjust comments.
10495 (CMD_LIST_AMBIGUOUS): Moved here.
10496 (help_cmd, help_cmd_list): Delete declarations.
10497
5953832c
DE
104982012-01-04 Doug Evans <dje@google.com>
10499
e5fe5e75
DE
10500 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10501 All callers updated.
10502 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10503 Replace all arguments with "per_cu". All callers updated.
10504
28dee7f5
DE
10505 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10506
23745b47
DE
10507 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10508 New arg "per_cu". All callers updated.
10509
5953832c
DE
10510 Delete #if 0'd out code.
10511 * language.c (binop_result_type): Delete.
10512 (simple_type, ordered_type, same_type, integral_type): Delete.
10513 (numeric_type, character_type, string_type, boolean_type): Delete.
10514 (float_type, structured_type): Delete.
10515 * language.h: Update.
10516
0f5b7562
TT
105172012-01-04 Tom Tromey <tromey@redhat.com>
10518
10519 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10520
78218f56
JB
105212012-01-04 Joel Brobecker <brobecker@adacore.com>
10522
10523 * corefile.c (close_exec_file): Delete.
10524 (reopen_exec_file): Remove commented out code that seems related
10525 to close_exec_file, which is being deleted here.
10526 * inferior.h (close_exec_file): Delete.
10527 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10528
0fcd72ba
JB
105292012-01-04 Joel Brobecker <brobecker@adacore.com>
10530
10531 * ada-lang.c: #include "cli/cli-utils.h".
10532 (get_selections): Use skip_spaces.
10533 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10534 (catch_ada_exception_command_split): Use skip_spaces.
10535 (ada_decode_assert_location): Likewise.
10536
1dabb4c4
JB
105372012-01-04 Joel Brobecker <brobecker@adacore.com>
10538
10539 * linespec.c (decode_line_internal): Check for C++ or Java
10540 compound constructs only if the current language is C, C++
10541 or Java.
10542
5931a2fa
JK
105432012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 Revert:
10546 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10547 Joel Brobecker <brobecker@adacore.com>
10548 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10549 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10550 3 times.
10551 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10552 fall through into AT_ENTRY_POINT.
10553 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10554 DUMMY_ADDR with it.
10555 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10556 PPC_INSN_SIZE skip to 3 times.
10557
1a2da5ee
JB
105582012-01-04 Joel Brobecker <brobecker@adacore.com>
10559
10560 * linespec.c (add_minsym): Preserve function descriptors.
10561
8645ff69
UW
105622012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10563
10564 * breakpoint.c (all_locations_are_pending): Consider locations
10565 in program spaces executing during startup pending as well.
10566
0b302171
JB
105672012-01-04 Joel Brobecker <brobecker@adacore.com>
10568
10569 Copyright year update in most files of the GDB Project.
10570
8ba098ad
JB
105712012-01-04 Joel Brobecker <brobecker@adacore.com>
10572
10573 * copyright.sh: Delete.
10574 * copyright.py: Rewrite.
10575
09c01c30
JB
105762012-01-04 Joel Brobecker <brobecker@adacore.com>
10577
10578 * gnulib/extra/update-copyright: New file, imported from gnulib.
10579
3c36c0af
JB
105802012-01-04 Joel Brobecker <brobecker@adacore.com>
10581
10582 * README (Copyright and License Notices): New section.
10583
888fe1e1
TT
105842012-01-03 Tom Tromey <tromey@redhat.com>
10585
10586 PR python/12533:
10587 * python/py-value.c (valpy_dereference, valpy_get_address
10588 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10589 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10590 (valpy_absolute, valpy_richcompare): Free intermediate values.
10591
6e681866
JB
105922011-01-03 Joel Brobecker <brobecker@adacore.com>
10593
10594 * ada-lang.c: Reformat the copyright notice.
10595
0cd09acb
JK
105962012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10597
10598 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10599 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10600 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10601 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10602 Revert this part of:
10603 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10604 Build gdb directly from *.o files not using libgdb.a.
10605 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10606
12c3e59c
JB
106072012-01-02 Joel Brobecker <brobecker@adacore.com>
10608
10609 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10610 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10611 Reformat the copyright header.
10612
11bf1490
JK
106132012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10614
10615 Revert this part of:
10616 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10617 Remove the gdbtui binary.
10618 * gdb.c (main): Remove args.interpreter_p initialization.
10619 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10620 * main.h (struct captured_main_args): Remove interpreter_p.
10621
1fef196f
JB
106222012-01-02 Joel Brobecker <brobecker@adacore.com>
10623
10624 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10625
67827812
JB
106262012-01-02 Joel Brobecker <brobecker@adacore.com>
10627
10628 * top.c (print_gdb_version): Update copyright year.
10629
a4d0b831
YQ
106302012-01-02 Yao Qi <yao@codesourcery.com>
10631
10632 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10633
b5914469
JK
106342012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10635 Joel Brobecker <brobecker@adacore.com>
10636
10637 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10638 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10639 3 times.
10640 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10641 fall through into AT_ENTRY_POINT.
10642 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10643 DUMMY_ADDR with it.
10644 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10645 PPC_INSN_SIZE skip to 3 times.
10646
8da828f7
JK
106472012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10648
10649 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10650 the return value.
10651 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10652
8574e74b
JK
106532012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10654
10655 Build gdb directly from *.o files not using libgdb.a.
10656 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10657 (COMMON_OBS): Remove solib-target.o.
10658 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10659 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10660 (LIBGDB_OBS, libgdb.a): Move it above.
10661 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10662 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10663 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10664 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10665 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10666 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10667 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10668 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10669 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10670 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10671 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10672 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10673 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10674 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10675 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10676 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10677 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10678 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10679 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10680 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10681 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10682 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10683 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10684 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10685 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10686 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10687 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10688
217bff3e
JK
106892012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10690
10691 Remove the gdbtui binary.
10692 * .gitignore (/gdbtui): Remove.
10693 * Makefile.in (TUI): Remove.
10694 (SUBDIR_TUI_OBS): Remove tui-main.o.
10695 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10696 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10697 (tui-main.o): Remove.
10698 (all_object_files): Remove tui-main.o.
10699 * NEWS: New note for the gdbtui removal.
10700 * configure: Rebuilt.
10701 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10702 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10703 CONFIG_UNINSTALL respectively.
10704 * gdb.c (main): Remove args.interpreter_p initialization.
10705 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10706 * main.h (struct captured_main_args): Remove interpreter_p.
10707 * tui/tui-main.c: Remove.
10708
9cdd5dbd
DE
107092012-01-01 Doug Evans <dje@google.com>
10710
bb5ed363
DE
10711 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10712 (dwarf2_physname, read_import_statement): Ditto.
10713 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10714 (process_structure_scope read_subroutine_type): Ditto.
10715 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10716 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10717 (dwarf2_fetch_die_location_block): Ditto.
10718 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10719
a0f42c21
DE
10720 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10721 All callers updated.
10722 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10723 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10724 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10725
2dc860c0
DE
10726 * dwarf2read.c (load_cu): Move assert to more useful location.
10727
68dc6402
DE
10728 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10729 All callers updated.
10730
9cdd5dbd
DE
10731 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10732 (dwarf2_elf_names): Minor reformat.
10733 (dwarf2_per_cu_data): Tweak comment.
10734 (dwarf2_read_section): Fix comment.
10735 (create_all_comp_units): Fix comment.
10736 (load_full_comp_unit): Fix comment.
10737 (process_full_comp_unit): Fix comment.
10738 (read_signatured_type): Fix comment.
10739
0c10e53e 10740For older changes see ChangeLog-2011.
c906108c
SS
10741\f
10742Local Variables:
10743mode: change-log
10744left-margin: 8
10745fill-column: 74
10746version-control: never
57da7796 10747coding: utf-8
c906108c 10748End:
This page took 1.880246 seconds and 4 git commands to generate.