2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
4357ac6c
TT
12012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2 Tom Tromey <tromey@redhat.com>
3
4 * dwarf2read.c (read_common_block): Rewrite.
5 (new_symbol_full): Handle DW_TAG_common_block.
6 * f-lang.c (head_common_list, find_common_for_function):
7 Remove.
8 * f-lang.h (struct common_entry, struct saved_f77_common,
9 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
10 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
11 BLANK_COMMON_NAME_LOCAL): Remove.
12 (struct common_block): New.
13 * f-valprint.c (list_all_visible_commons): Remove.
14 (info_common_command_for_block): New function.
15 (info_common_command): Use it.
16 * stack.c (iterate_over_block_locals): Special case for
17 COMMON_BLOCK_DOMAIN.
18 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
19 constant.
20 (struct general_symbol_info) <value.common_block>: New field.
21 (SYMBOL_VALUE_COMMON_BLOCK): New define.
22
965f07a8
TT
232012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
24 Tom Tromey <tromey@redhat.com>
25
26 * f-lang.c (allocate_saved_bf_node,
27 allocate_saved_function_node, allocate_saved_f77_common_node,
28 allocate_common_entry_node, tail_common_list, current_common,
29 saved_bf_list, saved_bf_list_end, current_head_bf_list,
30 tmp_bf_ptr, add_common_block, add_common_entry,
31 find_first_common_named, patch_common_entries,
32 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
33 global_remote_debug, get_bf_for_fcn, saved_function_list,
34 saved_function_list_end, clear_function_list, struct saved_fcn,
35 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
36 SAVED_BF, SAVED_BF_PTR): Remove.
37 * f-lang.h (tail_common_list, current_common,
38 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
39 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
40 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
41 real_main_c_value): Remove.
42 * f-valprint.c (there_is_a_visible_common_named): Remove.
43
6f380991
AB
442012-09-26 Andrew Burgess <aburgess@broadcom.com>
45
46 * breakpoint.c (update_global_location_list): Ignore previous
47 duplicate status of a breakpoint when starting a new scan for
48 duplicate breakpoints.
49
9ead7ae4 502012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 51 PR breakpoints/14419
2536b51c
YQ
52 * arm-tdep.c (arm_skip_prologue): Extending producer check to
53 support LLVM compiler.
9ead7ae4 54
8f8a23a2
SP
552012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
56
57 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
58 * bfin-tdep.c (bfin_extract_return_value): Likewise.
59 (bfin_store_return_value): Likewise.
60 * cris-tdep.c (cris_store_return_value): Likewise.
61 (cris_extract_return_value): Likewise.
62 * h8300-tdep.c (h8300_extract_return_value): Likewise.
63 * hppa-tdep.c (hppa64_return_value): Likewise.
64 * lm32-tdep.c (lm32_store_return_value): Likewise.
65 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
66 * spu-tdep.c (spu_value_from_register): Likewise.
67 * vax-tdep.c (vax_return_value): Likewise.
68
d7019589
SP
692012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
70
71 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
72 parameter LEN to ssize_t.
73
744a8059
SP
742012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
75
76 * ada-valprint.c (ada_val_print_1): Eliminate single-use
77 variable LEN.
78 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
79 directly.
80 (alpha_store_return_value): Likewise.
81 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
82 (amd64_push_arguments): Likewise.
83 * ax-gdb.c (gen_trace_static_fields): Likewise.
84 (gen_traced_pop): Likewise.
85 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
86 * breakpoint.c (update_watchpoint): Likewise.
87 * findcmd.c (parse_find_args): Use local variable for type
88 instead of length.
89 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
90 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
91 (h8300_store_return_value): Likewise.
92 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
93 Use i386_darwin_arg_type_alignment directly.
94 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
95 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
96 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
97 (m68hc11_extract_return_value): Likewise.
98 * mep-tdep.c (mep_push_dummy_call): Likewise.
99 * printcmd.c (float_type_from_length): Likewise.
100 * s390-tdep.c (s390_value_from_register): Likewise.
101 * stack.c (read_frame_arg): Likewise.
102 * tracepoint.c (encode_actions_1): Likewise.
103 * valops.c (value_fetch_lazy): Use local variable for type
104 instead of length. Use TYPE_LENGTH directly.
105 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
106
a4b411d6
JB
1072012-09-25 Joel Brobecker <brobecker@adacore.com>
108
109 * symtab.c (skip_prologue_sal): Fix typo in comment.
110
11dba07a
JB
1112012-09-25 Joel Brobecker <brobecker@adacore.com>
112
113 * linespec.c (create_sals_line_offset): Fix typo in comment.
114
318102b9
SP
1152012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
116
117 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
118 use plongest to print the array size.
119
b4aa388a
SP
1202012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
121
122 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
123 * p-valprint.c (pascal_type_print_base): Likewise.
124
84cebc4a
YQ
1252012-09-22 Yao Qi <yao@codesourcery.com>
126
127 * remote.c (remote_get_trace_status): Remove setting default
128 values of fields of 'ts'.
129
04e7407c
JK
1302012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
131
132 Fix internal error on canonicalization of clang types.
133 * cp-name-parser.y (operator): New comment at make_operator call for
134 new, delete, new[] and delete[].
135 (exp): Use "sizeof ". Add new comment at make_operator call.
136
9bf4bce9
JK
1372012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
138
139 Fix disassemble without parameters in tailcall frame.
140 * cli/cli-cmds.c (disassemble_current_function): Use
141 get_frame_address_in_block.
142
1c5b7826
TT
1432012-09-21 Tom Tromey <tromey@redhat.com>
144
145 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
146 TYPE_CODE_UNION>: Unify, removing a goto.
147
62a49610
TT
1482012-09-21 Tom Tromey <tromey@redhat.com>
149
150 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
151
2603f7ee
AB
1522012-09-21 Andrew Burgess <aburgess@broadcom.com>
153
154 * findvar.c (read_frame_register_value): Mark the result value as
155 optimized out if any of the input registers have been optimized out.
156
810849a3
AS
1572012-09-21 Andreas Schwab <schwab@linux-m68k.org>
158
159 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
160
0953dec1
SP
1612012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
162
163 * eval.c (evaluate_subexp_standard): Eliminate single-use
164 variable LOWER.
165
82a90ccf
YQ
1662012-09-21 Yao Qi <yao@codesourcery.com>
167
168 * mi/mi-interp.c: Declare mi_record_changed.
169 (mi_interpreter_init): Call observer_attach_record_changed.
170 (mi_record_changed): New.
171 * record.c (record_open): Call observer_notify_record_changed.
172 (cmd_record_stop): Call observer_notify_record_changed.
173 * NEWS: Mention it.
174
d7de8e3c
TT
1752012-09-20 Tom Tromey <tromey@redhat.com>
176
177 * NEWS: Update.
178 * python/python.c (finalize_python): New function.
179 (_initialize_python): Make a final cleanup.
180
43c7c83d
DE
1812012-09-19 Doug Evans <dje@google.com>
182
183 * buildsym.h (param_symbols): Delete, unused.
184 (context_stack): Delete member "params", unused.
185 * buildsym.c (push_context): Update.
186 * dwarf2read.c (read_func_scope): Update.
187
aa9259cc
TS
1882012-09-19 Thomas Schwinge <thomas@codesourcery.com>
189
a6521d9a
TS
190 * sh-tdep.c (sh_register_convert_to_virtual)
191 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
192 all callers. Just do a memcpy if not the little-endian case.
193
f92589cb
TS
194 * h8300-tdep.c (h8300_gdbarch_init): Invoke
195 set_gdbarch_double_format and set_gdbarch_long_double_format.
196 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
197 set_gdbarch_double_format.
198 * sh-tdep.c (sh_gdbarch_init): Likewise.
199
aa9259cc
TS
200 * NEWS: Document the removal of SH's 'regs' command.
201 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
202 command.
203
c1d780c2
SDJ
2042012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
205
206 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
207 `jump'.
208
4ae24af0
JB
2092012-09-18 Joel Brobecker <brobecker@adacore.com>
210
211 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
212 language when iterating over symbols.
213
bb25a15c
YQ
2142012-09-18 Yao Qi <yao@codesourcery.com>
215
216 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
217 (mi_interpreter_init): Call observer_attach_tsv_created and
218 observer_attach_tsv_deleted.
219 (mi_tsv_created, mi_tsv_deleted): New.
220 * tracepoint.c (delete_trace_state_variable): Call
221 observer_notify_tsv_deleted.
222 (trace_variable_command): Call observer_notify_tsv_created.
223 (delete_trace_variable_command): Call
224 observer_notify_tsv_deleted.
225 (create_tsv_from_upload): Call observer_notify_tsv_created.
226 * NEWS: Mention it.
227
201b4506
YQ
2282012-09-18 Yao Qi <yao@codesourcery.com>
229
230 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
231 if traceframe changed.
232 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
233 "trace-find".
234 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
235 (mi_interpreter_init): Hook mi_traceframe_changed to observer
236 'traceframe_changed'.
237 (mi_traceframe_changed): New.
238 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
239 New field.
240 * NEWS: Mention the new MI notification.
241
eaeb12db
MW
2422012-09-17 Mike Wrighton <wrighton@codesourcery.com>
243
244 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
245
6e3c039e
JK
2462012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
247
248 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
249 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
250 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
251 Extend code also for PaX support. Convert all gdb_assert to warning
252 calls.
253
9a950c7c
JK
2542012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
255
256 Implement auto-load user conveniences suggested by Doug Evans.
257 * auto-load.c: Include top.h.
258 (file_is_auto_load_safe): New variable advice_printed. Print advice.
259 (_initialize_auto_load): New variable scripts_directory_help. Mention
260 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
261 scripts-directory. Document in online help one can use also files for
262 set auto-load safe-path.
263 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
264 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
265
deec9a9d
SP
2662012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
267
268 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
269 of LEN.
270
354ecfd5
SP
2712012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
272
273 * m2-valprint.c (m2_print_array_contents): Eliminate variable
274 ELTLEN and use TYPE_LENGTH directly.
275 (m2_val_print): Likewise.
276 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
277 variable LEN and use TYPE_LENGTH directly.
278 (m68k_svr4_store_return_value): Likewise.
279 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
280 ARGLEN and use TYPE_LENGTH directly.
281 (mips_o64_push_dummy_call): Likewise.
282 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
283 variable LENGTH and use TYPE_LENGTH directly.
284 (s390_function_arg_float): Likewise.
285 (s390_function_arg_integer): Likewise.
286 (s390_push_dummy_call): Likewise.
287 (s390_return_value_convention): Likewise.
288 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
289 TYPE_LENGTH directly.
290
6fc1c773
YQ
2912012-09-17 Yao Qi <yao@codesourcery.com>
292
293 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
294 Update comment to add_setshow_integer_cmd.
295 * cli/cli-setshow.c (do_set_command): Handle case
296 'var_zuinteger_unlimited'.
297 (do_show_command): Likewise.
298 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
299 for command 'remotetimeout'.
300 * command.h (enum var_types): New zuinteger_unlimited. Update comment
301 to var_integer.
302 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
303 for command 'set listsize'.
304
6acef6cd
SP
3052012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
306
307 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
308 variable LEN.
309
1ab3b62c
JK
3102012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
311
312 PR 14119
313 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
314 (frame_pop): Drop also TAILCALL_FRAME frames.
315 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
316
acf9414f
JK
3172012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
318 Pedro Alves <palves@redhat.com>
319
320 PR 14548
321 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
322 function start if we are already at function start. Both for
323 reverse-next and for reverse-step into function without line number
324 info.
325
193facb3
JK
3262012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
327
328 Code cleanup - rename 'inline' depth to 'artificial' depth.
329 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
330 frame_id_artificial_p, extend the comment.
331 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
332 * frame.c (fprint_frame_id): Rename at a user, change debug output
333 text to "artificial=".
334 (skip_inlined_frames): Rename to ...
335 (skip_artificial_frames): ... here. Extend the comment.
336 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
337 (frame_id_inlined_p): Rename to ...
338 (frame_id_artificial_p): ... here. Rename at a user.
339 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
340 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
341 at a user.
342 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
343 Extend the comment.
344 (frame_id_inlined_p): Rename to ...
345 (frame_id_artificial_p): ... here.
346 * inline-frame.c (inline_frame_this_id): Rename at a user.
347
42056501
AB
3482012-09-14 Andrew Burgess <aburgess@broadcom.com>
349
350 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
351 vector variables using vector_size syntax rather than array
352 syntax.
353
84c47588
SP
3542012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
355
356 * valarith.c (value_concat): Replace unsafe ALLOCA with
357 XMALLOC/XFREE.
358
f4045bcb
PA
3592012-09-14 Pedro Alves <palves@redhat.com>
360
361 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
362
63b46266
YPK
3632012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
364
365 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
366 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
367 data-directory as appropriate.
368
ddd7a8e7
SP
3692012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
370
371 * printcmd.c (ui_printf): Eliminate single-use variable
372 PARAM_LEN.
373
d649a38e
YQ
3742012-09-14 Yao Qi <yao@codesourcery.com>
375 Pedro Alves <palves@redhat.com>
376
377 * valops.c (value_assign): Move observer_notify_target_changed
378 below to replace reinit_frame_cache.
379
b9516fa1
YPK
3802012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
381
382 Refactor Python "gdb" module into a proper Python package, by
383 introducing a new "_gdb" module for code implemented in C, and
384 using reload/__import__ instead of exec.
385 * python/lib/gdb/__init__.py: Import * from _gdb.
386 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
387 prompt_hook, sys.argv): Moved from finish_python_initialization.
388 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
389 (packages, auto_load_packages): New list and function replacing
390 module_dict and auto-loading code, using __file__ instead of
391 gdb.PYTHONDIR and reload/__import__ instead of exec.
392 (GdbSetPythonDirectory): Replacing function of the same name
393 from finish_python_initialization, using reload/__import__ instead
394 of exec, as well as call auto_load_packages.
395 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
396 gdb_python_module and not gdb_module.
397 * python/python-internal.h (gdb_python_module): Declare.
398 * python/python.c (gdb_python_module): New global.
399 (before_prompt_hook): Check gdb_python_module and not gdb_module.
400 (_initialize_python): Rename gdb module to _gdb.
401 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
402 (finish_python_initialization): Move Python code to
403 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
404 __main__.
405
aa0fbdd8
PA
4062012-09-13 Pedro Alves <palves@redhat.com>
407
408 * Makefile.in (COMMON_OBS): Add registry.o.
409 * registry.c: New file.
410 * registry.h (struct registry_container): Declare.
411 (registry_data_callback): New typedef.
412 (struct registry_data, struct registry_data_registration, struct
413 registry_data_registry): New type.
414 (register_data_with_cleanup, registry_alloc_data)
415 (registry_callback_adaptor, registry_clear_data)
416 (registry_container_free_data, registry_set_data, registry_data):
417 Declare.
418 (DEFINE_REGISTRY): Refactor structures and functions as shims over
419 the new common structures and functions.
420 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
421 callback typedefs.
422
42b5c53d
MW
4232012-09-12 Mike Wrighton <wrighton@codesourcery.com>
424
425 * remote.c (remote_insert_hw_breakpoint): Throw exception if
426 there is an error inserting hardware breakpoints and use the
427 error message from the target.
428
429 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
430 Catch this exception and print the error message contained within. Do not
431 print the default hardware error breakpoint message in this case.
432
a1b64ce1
DE
4332012-09-12 Doug Evans <dje@google.com>
434
435 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
436 cu == NULL.
437
83a788b8
DE
4382012-09-11 Doug Evans <dje@google.com>
439
440 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
441 .gdb_index symbol attributes if there are none.
442
d9eaeb59
JB
4432012-09-11 Joel Brobecker <brobecker@adacore.com>
444
445 * symtab.h (struct minimal_symbol) [has_size]: New field.
446 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
447 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
448 * printcmd.c (build_address_symbolic): Only filter out zero-sized
449 minimal symbols if the symbol's size is actually known.
450 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
451 of msymbol's size field. Add comment.
452 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
453 SET_MSYMBOL_SIZE to set the minimal symbol size.
454
a83e9154
JB
4552012-09-11 Joel Brobecker <brobecker@adacore.com>
456
457 * minsyms.c (install_minimal_symbols): Use memset to fill entire
458 minimal_symbol struct object, rather than setting some of its
459 fields one by one.
460
350b1b26
AB
4612012-09-11 Andrew Burgess <aburgess@broadcom.com>
462
463 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
464 passed_a_ptr flag when displaying typedef types.
465
2fa15f23
JB
4662012-09-10 Joel Brobecker <brobecker@adacore.com>
467
468 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
469 the optimized_out flag is preserved.
470
5152ff90
AG
4712012-09-10 Anthony Green <green@moxielogic.com>
472
473 * moxie-tdep.c (moxie_analyze_prologue): Update for function
474 prologue changes in GCC.
475
5b4f6e25
KS
4762012-09-10 Keith Seitz <keiths@redhat.com>
477
478 PR gdb/13483
479 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
480 (BOOL_CONVERSION_BADNESS): ... this.
481 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
482 (rank_one_type): Allow all boolean conversions
483 permitted by the standard.
484
f1070426
TT
4852012-09-06 Tom Tromey <tromey@redhat.com>
486
487 * python/py-newobjfileevent.c (create_new_objfile_event_object):
488 Don't decref py_objfile.
489
a8db4212
YPK
4902012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
491
492 Do not enable -lmcheck by default when Python is enabled with
493 threading support.
494 * configure.ac: (python_has_threads) New variable, by testing
495 if WITH_THREAD is defined in Python.h.
496 Move --enable-lmcheck after --with-python.
497 Do not enable -lmcheck by default if python_has_threads=yes.
498 Warn if --enable-lmcheck and python_has_threads=yes.
499 * configure: Regenerate.
500
648beb2b
YQ
5012012-08-31 Yao Qi <yao@codesourcery.com>
502
503 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
504 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
505 Update some commands.
506 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
507 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
508 to 1.
509
ef07a9f7
YQ
5102012-08-31 Yao Qi <yao@codesourcery.com>
511
512 * mi/mi-cmds.c (mi_cmds): Add 'static'.
513
fda395cf
YPK
5142012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
515
516 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
517
8efd8e78
DE
5182012-08-29 Doug Evans <dje@google.com>
519
520 * main.c (print_gdb_help): Remove reference to
521 --use-deprecated-index-sections.
522
883b9c6c
YQ
5232012-08-28 Yao Qi <yao@codesourcery.com>
524
525 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
526 (init_cmds): Call add_setshow_uinteger_cmd for command
527 'max-user-call-depth'.
528 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
529 declaration of 'max_user_call_depth'.
530 * frame.c (backtrace_limit): Add 'unsigned'.
531 (_initialize_frame): Call add_setshow_uinteger_cmd for command
532 'limit'.
533 * remote.c (remoteaddresssize): Add 'unsigned'.
534 (remote_address_masked): Change local var 'address_size' to
535 'unsigned'.
536 (_initialize_remote): Call add_setshow_uinteger_cmd for
537 'remoteaddresssize'.
538 * top.c (history_size): Add 'unsigned'.
539 (show_commands): Change local variables to 'unsigned'.
540 (set_history_size_command): Don't check history_size is negative.
541 Adjust the condition to call unstifle_history and set history_size
542 to UNIT_MAX.
543
1292279a
PA
5442012-08-28 Pedro Alves <palves@redhat.com>
545
546 PR gdb/14428
547
548 * infcmd.c (default_print_one_register_info): New, factored out
549 from default_print_registers_info.
550 (default_print_registers_info): Use it. Mark value unavailable if
551 necessary.
552 (registers_info): Print user registers with
553 default_print_one_register_info.
554
f629cd75
L
5552010-08-27 H.J. Lu <hongjiu.lu@intel.com>
556
557 PR tui/14486
558 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
559 is not NULL before referencing it.
560
1c8cdcb1
JK
5612012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
562
563 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
564 variable pc. Call find_pc_line instead of find_pc_overlay, restore
565 original PC for it.
566
e9687799
JK
5672012-08-27 Eli Zaretskii <eliz@gnu.org>
568 Jan Kratochvil <jan.kratochvil@redhat.com>
569
570 * auto-load.c (auto_load_objfile_script): Rename to ...
571 (auto_load_objfile_script_1): ... here, change variable realname to
572 parameter realname, document it, add return value, add variable retval.
573 (auto_load_objfile_script): New function.
574
7afa1642
JK
5752012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
576
577 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
578 followed by a whitespace.
579
dc7650b8
JK
5802012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
581
28e66c70 582 PR gdb/14494.
dc7650b8
JK
583 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
584 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
585 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
586 here.
587
1591a1e8
PA
5882012-08-27 Wei-cheng Wang <cole945@gmail.com>
589
590 * memattr.c (create_mem_region): Fix memory region overlapping
591 checking.
592
ecfb0d68
SP
5932012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
594
595 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
596 with xmalloc/cleanup.
597 * mt-tdep.c (mt_push_dummy_call): Likewise.
598 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
599 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
600
8c56c1b9
YQ
6012012-08-24 Yao Qi <yao@codesourcery.com>
602
603 * jv-exp.y (push_expression_name): Add "." at the end of error
604 message.
605
e3480f4a
YPK
6062012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
607
608 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
609 * python/python.c (_initialize_python): Update documentation.
610
dfbd5e7b
PA
6112012-08-23 Pedro Alves <palves@redhat.com>
612
613 * infrun.c (_initialize_infrun) <handle command help text>:
614 Mention that multiple signals are supported.
615
2edda2ff
PA
6162012-08-23 Pedro Alves <palves@redhat.com>
617
618 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
619 string.
620
8d735b87
YQ
6212012-08-23 Yao Qi <yao@codesourcery.com>
622
623 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
624 (tfind_1): Don't call registers_changed, set_traceframe_num,
625 and clear_traceframe_info.
626 Call set_current_traceframe.
627 (set_current_traceframe): call set_traceframe_num.
628
c5d9b215
SDJ
6292012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
630
631 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
632 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
633
037bbc8e
YPK
6342012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
635
636 Enable readline in Python in a GDB-specific way and block the
637 standard Python readline module to prevent conflicts with GDB.
638 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
639 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
640 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
641 * python/py-gdb-readline.c: New file.
642 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
643 prototype.
644 * python/python.c (_initialize_python): Call
645 gdbpy_initialize_gdb_readline.
646
406b1477
KS
6472012-08-22 Keith Seitz <keiths@redhat.com>
648
649 * defs.h: Include build-gnulib/config.h
650
6ca1b147
JM
6512012-08-22 Joseph Myers <joseph@codesourcery.com>
652
653 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
654 and blx pc.
655
8315665e
YPK
6562012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
657
658 Add a new "python-interactive" command that starts a standard
659 Python interactive prompt with "pi" as alias, and add "py" as
660 an alias to "python".
661 * NEWS: Mention the new commands.
8315665e
YPK
662 * python/python.c (eval_python_command): New function.
663 (python_interactive_command): For "python-interactive" with
664 arguments, call eval_python_command. For "python-interactive"
665 without arguments, call PyRun_InteractiveLoop.
666 (_initialize_python): Add "python-interactive" command with
667 "pi" as alias, and add "py" as an alias to "python".
668
522002f9
TT
6692012-08-22 Tom Tromey <tromey@redhat.com>
670
671 * defs.h (quit_flag): Don't declare.
672 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
673 (QUIT): Use new functions.
674 * event-top.c (command_handler): Use clear_quit_flag.
675 (handle_sigint): Use set_quit_flag.
676 (async_request_quit): Use check_quit_flag. Don't check
677 immediate_quit.
678 * exceptions.c (throw_exception): Use clear_quit_flag.
679 * main.c (captured_main): Use clear_quit_flag.
680 * python/python.c (clear_quit_flag, set_quit_flag)
681 (check_quit_flag): New functions.
682 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
683 clear_quit_flag.
684 * remote.c (remote_wait_as): Use check_quit_flag,
685 clear_quit_flag.
686 (remote_start_remote): Call QUIT.
687 * symfile.c (load_progress): Use check_quit_flag.
688 * top.c (command_loop): Use clear_quit_flag.
689 (command_line_input): Call QUIT.
690 * utils.c (quit_flag): Conditionally define.
691 (clear_quit_flag, check_quit_flag, set_quit_flag): New
692 functions.
693 (prompt_for_continue): Call QUIT. Use quit, not
694 async_request_quit.
695 * remote-mips.c (mips_expect_timeout): Call QUIT.
696 * monitor.c (monitor_expect): Call QUIT.
697
b583003e
TT
6982012-08-22 Tom Tromey <tromey@redhat.com>
699
700 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
701 (async_init_signals): Update.
702 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
703 (SIGWINCH_HANDLER_BODY): Remove.
704
e1507e95
TT
7052012-08-22 Tom Tromey <tromey@redhat.com>
706
707 * jit.c (jit_object_close_impl): Don't malloc the objfile
708 name.
709 * objfiles.c (allocate_objfile): Don't malloc the objfile
710 name.
711 (free_objfile): Don't free the objfile name.
712 * objfiles.h (struct objfile) <name>: Update comment.
713 * symfile.c (reread_symbols): Fix reference counting. Don't
714 malloc objfile name.
715
1c00ec6b
TT
7162012-08-22 Tom Tromey <tromey@redhat.com>
717
718 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
719 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
720 (symfile_bfd_open): Likewise.
721 (generic_load): Likewise.
722 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
723 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
724 gdb_bfd_open.
725 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
726 Use gdb_bfd_open.
727 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
728 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
729 (pmon_load_fast): Likewise.
730 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
731 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
732 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
733 (macho_check_dsym): Likewise.
734 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
735 (m32r_upload_command): Likewise.
736 * gdb_bfd.h (gdb_bfd_cache): Declare.
737 * gdb_bfd.c (struct gdb_bfd_data): New.
738 (gdb_bfd_cache): New global.
739 (struct gdb_bfd_cache_search): New.
740 (hash_bfd): New function.
741 (eq_bfd): Likewise.
742 (gdb_bfd_open): Likewise.
743 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
744 (gdb_bfd_unref): Remove closed BFD from cache. Update for
745 gdb_bfd_data.
746 * exec.c (exec_file_attach): Use gdb_bfd_open.
747 * dsrec.c (load_srec): Use gdb_bfd_open.
748
6532ff36
TT
7492012-08-22 Tom Tromey <tromey@redhat.com>
750
751 * dwarf2read.c (macro_start_file): Update.
752 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
753 (free_objfile_per_bfd_storage): Destroy macro_cache.
754 (allocate_objfile, free_objfile): Update.
755 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
756 New field.
757 (struct objfile) <macro_cache>: Remove.
758 * symfile.c (reread_symbols): Update.
759 * symmisc.c (print_symbol_bcache_statistics): Update.
760 (print_objfile_statistics): Update.
761
706e3705
TT
7622012-08-22 Tom Tromey <tromey@redhat.com>
763
764 * elfread.c (elf_symtab_read): Update.
765 * objfiles.c (objfiles_bfd_data): New global.
766 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
767 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
768 (allocate_objfile, free_objfile): Update.
769 (_initialize_objfiles): Initialize objfiles_bfd_data.
770 * objfiles.h (struct objfile_per_bfd_storage): New.
771 (struct objfile) <per_bfd>: New field.
772 <filename_cache>: Remove.
773 (set_objfile_per_bfd): Declare.
774 * symfile.c (reread_symbols): Update. Call
775 set_objfile_per_bfd.
776 (allocate_symtab): Update.
777 * symmisc.c (print_symbol_bcache_statistics): Update.
778 (print_objfile_statistics): Print the size of the BFD obstack.
779
e992eda4
TT
7802012-08-22 Tom Tromey <tromey@redhat.com>
781
782 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
783 * gdb_bfd.c: Use DEFINE_REGISTRY.
784 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
785 (gdb_bfd_ref): Call bfd_alloc_data.
786 (gdb_bfd_unref): Call bfd_free_data.
787
6b81941e
TT
7882012-08-22 Tom Tromey <tromey@redhat.com>
789
790 * registry.h (struct registry_fields): New.
791 (REGISTRY_FIELDS): Redefine.
792 (REGISTRY_ACCESS_FIELD): New macro.
793 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
794 functions.
795
8e260fc0
TT
7962012-08-22 Tom Tromey <tromey@redhat.com>
797
798 * auto-load.c (_initialize_auto_load): Update.
799 * solib-svr4.c (_initialize_svr4_solib): Update
800 * solib-dsbt.c (_initialize_dsbt_solib): Update.
801 * solib-darwin.c (_initialize_darwin_solib): Update.
802 * registry.h: New file.
803 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
804 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
805 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
806 (register_program_space_data_with_cleanup)
807 (register_program_space_data, program_space_alloc_data)
808 (clear_program_space_data, set_program_space_data)
809 (program_space_data): Don't declare.
810 * progspace.c: Use DEFINE_REGISTRY.
811 (struct program_space_data, struct
812 program_space_data_registration, struct
813 program_space_data_registry, program_space_data_registry)
814 (register_program_space_data_with_cleanup)
815 (register_program_space_data, program_space_alloc_data)
816 (program_space_free_data, clear_program_space_data)
817 (set_program_space_data, program_space_data): Remove.
818 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
819 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
820 (register_objfile_data_with_cleanup, register_objfile_data)
821 (clear_objfile_data, set_objfile_data, objfile_data): Don't
822 declare.
823 * objfiles.c: Use DEFINE_REGISTRY.
824 (struct objfile_data, struct objfile_data_registration, struct
825 objfile_data_registry, objfile_data_registry)
826 (register_objfile_data_with_cleanup, register_objfile_data)
827 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
828 (set_objfile_data, objfile_data): Remove.
829 (_initialize_objfiles): Update.
830 * jit.c (_initialize_jit): Update.
831 * inflow.c (_initialize_inflow): Update.
832 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
833 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
834 (register_inferior_data_with_cleanup, register_inferior_data)
835 (clear_inferior_data, set_inferior_data, inferior_data): Don't
836 declare.
837 * inferior.c: Use DEFINE_REGISTRY.
838 (struct inferior_data, struct inferior_data_registration, struct
839 inferior_data_registry, inferior_data_registry)
840 (register_inferior_data_with_cleanup, register_inferior_data)
841 (inferior_alloc_data, inferior_free_data clear_inferior_data)
842 (set_inferior_data, inferior_data): Remove.
843 * auxv.c (_initialize_auxv): Update.
844 * ada-lang.c (_initialize_ada_language): Update.
845 * breakpoint.c (_initialize_breakpoint): Update.
846 * i386-nat.c (i386_use_watchpoints): Update.
847
ed9eebaf
TT
8482012-08-22 Tom Tromey <tromey@redhat.com>
849
850 * exec.c (exec_close, exec_file_attach): Update.
851 (add_to_section_table): Initialize 'key' field.
852 (add_target_sections, remove_target_sections): Add 'key' argument.
853 * exec.h (add_target_sections, remove_target_sections): Add
854 'key' argument.
855 * solib.c (solib_map_sections, update_solib_list, clear_solib)
856 (reload_shared_libraries_1): Update.
857 * target.h (struct target_section) <key>: New field.
858
2f2e97fa
TT
8592012-08-22 Tom Tromey <tromey@redhat.com>
860
861 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
862
b3dbbd6f
PM
8632012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
864
865 * symfile.c (allocate_symtab): Use host_address_to_string
866 function instead of cast of pointer to long which is not
867 compatible with x86_64-w64-mingw32 build.
868
f94363d7
AP
8692012-08-19 Andrew Pinski <apinski@cavium.com>
870
871 * mips-tdep.c (is_octeon): New function.
872 (is_octeon_bbit_op): New function.
873 (mips32_next_pc): Handle Octeon's bbit instructions.
874 (mips32_instruction_has_delay_slot): Likewise.
875
78a59c2f
AP
8762012-08-19 Andrew Pinski <apinski@cavium.com>
877
878 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
879 before the function.
880
4f5bcb50
AP
8812012-08-19 Andrew Pinski <apinski@cavium.com>
882
883 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
884
e5afdbd7
KS
8852012-08-19 Keith Seitz <keiths@redhat.com>
886
887 PR c++/14365
888 * c-typeprint.c (c_type_print_varspec_prefix): Pass
889 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
890
13c9750e
EZ
8912012-08-18 Eli Zaretskii <eliz@gnu.org>
892
893 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
894 The typo broke "make TAGS".
895
db761810 8962012-08-17 Joel Brobecker <brobecker@adacore.com>
897
898 GDB 7.5 released.
899
a451cb65
KS
9002012-08-17 Keith Seitz <keiths@redhat.com>
901
902 PR c++/13356
903 * gdbtypes.c (strict_type_checking): New variable.
904 (show_strict_type_checking): New function.
905 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
906 if strict type checking is disabled.
907 (_initialize_gdbtypes): Add "check type" subcommand.
908 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
909
9102012-08-17 Keith Seitz <keiths@redhat.com>
911
912 * language.h (type_mode): Remove.
913 (type_check): Remove.
914 (struct language_defn): Remove la_type_check.
915 (STRICT_TYPE): Remove unused macro.
916 (type_error): Remove.
917 * language.c (set_type_range_case): Renamed to ...
918 (set_range_case): ... this. Update all callers.
919 Remove type_mode/type_check.
920 (type_mode): Remove.
921 (type_check): Remove.
922 (show_type_command): Remove.
923 (set_type_command): Remove.
924 (language_info): Remove type checking output.
925 (type_error): Remove unused function.
926 (range_error): Update comment.
927 (unknown_language_defn): Remove la_type_check.
928 (auto_language_defn): Likewise.
929 (local_language_defn): Likewise.
930 (_initialize_language): Remove "check type" subcommand.
931 * ada-lang.c (ada_language_defn): Remove la_type_check.
932 * c-lang.c (c_language_defn): Likewise.
933 (cplus_language_defn): Likewise.
934 (asm_language_defn): Likewise.
935 (minimal_language_defn): Likewise.
936 * d-lang.c (d_language_defn): Likewise.
937 * f-lang.c (f_language_defn): Likewise.
938 * go-lang.c (go_language_defn): Likewise.
939 * jv-lang.c (java_language_defn): Likewise.
940 * m2-lang.c (m2_language_defn): Likewise.
941 * objc-lang.c (objc_language_defn): Likewise.
942 * opencl-lang.c (opencl_language_defn): Likewise.
943 * p-lang.c (pascal_language_defn): Likewise.
944
dbf6a605
MF
9452012-08-16 Mike Frysinger <vapier@gentoo.org>
946
947 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
948
973e3cf7
JB
9492012-08-16 Joel Brobecker <brobecker@adacore.com>
950
951 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
952 New function.
953 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
954 using the regache. Use ia64_hpux_get_register_from_save_state_t
955 to access the bsp and bspstore registers if not.
956
d80ee84f
JB
9572012-08-16 Joel Brobecker <brobecker@adacore.com>
958
959 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
960 * breakpoint.c (detach_breakpoints): Change pid parameter into
961 a ptid. Adjust code accordingly.
962 * infrun.c (handle_inferior_event): Delete variable child_pid.
963 Update call to detach_breakpoints to pass the child ptid for
964 fork events.
965 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
966 assert that inferior_ptid's lwp is zero.
967 (linux_handle_extended_wait): Update call to detach_breakpoints.
968 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
969 detach_breakpoints.
970
2dcc6086
JB
9712012-08-16 Joel Brobecker <brobecker@adacore.com>
972
973 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
974 parent, only call detach_breakpoints if tts.tts_event ==
975 TTEVT_VFORK.
976
0c92d8c1
JB
9772012-08-16 Joel Brobecker <brobecker@adacore.com>
978
979 * dwarf2-frame.c (dwarf2_frame_cache): Use
980 get_frame_address_in_block instead of get_frame_pc as
981 the bound for executing the frame's FDE.
982
6b1755ce
YQ
9832012-08-16 Yao Qi <yao@codesourcery.com>
984
985 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
986 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
987 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
988 (c_type_print_varspec_suffix): Likewise.
989 * eval.c (evaluate_subexp_standard): Likewise.
990 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
991 (f_type_print_varspec_suffix): Likewise.
992 * gdbtypes.c (is_scalar_type): Likewise.
993 (recursive_dump_type): Likewise.
994 * infcall.c (value_arg_coerce): Likewise.
995 * m2-valprint.c (m2_val_print): Likewise.
996 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
997 (pascal_type_print_varspec_suffix): Likewise.
998 (pascal_type_print_base): Likewise.
999 * p-valprint.c (pascal_val_print): Likewise.
1000 (pascal_val_print): Likewise.
1001 * valops.c (value_slice): Likewise.
1002 * valprint.c (scalar_type_p): Likewise.
1003 * valarith.c (value_bitstring_subscript): Remove.
1004 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
1005 Remove comment on TYPE_CODE_BITSTRING.
1006
1007 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
1008 TYPE_CODE_BITSTRING.
1009
1010 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
1011 slot 0.
1012
8acc4065
YQ
10132012-08-16 Yao Qi <yao@codesourcery.com>
1014
1015 * tracepoint.c (trace_find_none_command): Remove.
1016 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
1017
8128fd8e
YQ
10182012-08-16 Yao Qi <yao@codesourcery.com>
1019
1020 * remote.c (handle_notification): Remove parameter 'length'.
1021 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
1022
2873700e
KS
10232012-08-15 Keith Seitz <keiths@redhat.com>
1024
1025 * gdbtypes.c (opaque_type_resolution): Make static.
1026 Add missing comment.
1027 (overload_debug): Add missing comment.
1028 (show_opaque_type_resolution): Likewise.
1029 (show_overload_debug): Likewise.
1030 (print_bit_vector): Remove unnecessary forward declaration.
1031 (print_arg_types): Likewise.
1032 (dump_fn_fieldlists): Likewise.
1033 (print_cplus_stuff): Likewise.
1034
b82d08cd
TT
10352012-08-15 Tom Tromey <tromey@redhat.com>
1036
1037 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
1038 (gdb_bfd_ref): Initialize new field.
1039 (gdb_bfd_unref): Unref the archive BFD.
1040 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
1041 parent archive.
1042
db6573d6
TT
10432012-08-15 Tom Tromey <tromey@redhat.com>
1044
1045 PR python/14387:
1046 * python/py-bpevent.c (create_breakpoint_event_object): Update
1047 comment.
1048 * python/py-event.c (evpy_add_attribute): Update comment.
1049 * python/py-exitedevent.c (create_exited_event_object): Fix
1050 reference counting and error handling.
1051 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1052 Fix reference counting.
1053 * python/py-signalevent.c (create_signal_event_object): Fix
1054 reference counting and error handling.
1055 * python/py-stopevent.c (emit_stop_event): Fix reference
1056 counting.
1057 * python/py-threadevent.c (get_event_thread): Return a
1058 borrowed reference.
1059 * python/py-type.c (convert_field): Fix reference counting.
1060
a036ba48
TT
10612012-08-15 Tom Tromey <tromey@redhat.com>
1062
1063 * dwarf2read.c (dwarf_decode_macro_bytes)
1064 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
1065 as hash key.
1066
486c7739
MF
10672012-08-14 Mike Frysinger <vapier@gentoo.org>
1068
1069 * infcmd.c (_initialize_infcmd): Update help text for the signal,
1070 stepi, nexti, finish, next, step, jump, and continue commands.
1071 * infrun.c (_initialize_infrun): Update help text for the handle
1072 command.
1073
4cf93a03
DE
10742012-08-14 Doug Evans <dje@google.com>
1075
70b099cf
DE
1076 * gdbtypes.c (struct extra): Delete, unused.
1077
5212577a
DE
1078 * gdbtypes.c: Whitespace cleanup.
1079 (address_space_name_to_int): Remove "extern" from definition.
1080 (_initialize_gdbtypes): Declare with initialize_file_ftype.
1081
4cf93a03
DE
1082 * gdbtypes.c (make_pointer_type): Remove redundant setting of
1083 TYPE_POINTER_TYPE (type).
1084
3756ef7e
GB
10852012-08-14 Gary Benson <gbenson@redhat.com>
1086
1087 * solib-svr4.c (svr4_free_library_list): Use free_so.
1088
40d72643
MF
10892012-08-13 Mike Frysinger <vapier@gentoo.org>
1090
1091 * .gitignore: Add go-exp.c.
1092
f47f77df
DE
10932012-08-13 Doug Evans <dje@google.com>
1094
1095 * value.c (show_convenience): Tweak comment.
1096 (_initialize_values): Mention convenience functions in the help text
1097 for "show convenience".
1098
7507c54a
YQ
10992012-08-13 Yao Qi <yao@codesourcery.com>
1100
1101 * std-operator.def: Remove TERNOP_SLICE_COUNT.
1102 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
1103 TERNOP_SLICE_COUNT.
1104 * eval.c (evaluate_subexp_standard): Likewise.
1105 * expprint.c (print_subexp_standard): Likewise.
1106 (dump_subexp_body_standard): Likewise.
1107 * parse.c (operator_length_standard): Likewise.
1108
5cad9736
YQ
11092012-08-13 Yao Qi <yao@codesourcery.com>
1110
1111 * std-operator.def: Remove OP_BITSTRING.
1112 * breakpoint.c (watchpoint_exp_is_const): Update.
1113 * eval.c (evaluate_subexp_standard): Remove handling to
1114 OP_BITSTRING.
1115 * expprint.c (print_subexp_standard): Likewise.
1116 (dump_subexp_body_standard): Likewise.
1117 * parse.c (operator_length_standard): Likewise.
1118 * valops.c (value_bitstring): Remove.
1119 * value.h: Remove the declaration of 'value_bitstring'.
1120
bad7670a
SDJ
11212012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1122
1123 * linespec.c (find_methods): Remove unused variables `i1' and
1124 `name_len'.
1125 (decode_line_full): Likewise for `arg_start'.
1126
d9dce7fa
SDJ
11272012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
1128
1129 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
1130 (zlib_decompress_section): Likewise for `section_data'.
1131 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
1132
a72c3253
DE
11332012-08-10 Doug Evans <dje@google.com>
1134
1135 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
1136 * NEWS: Document them.
1137 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
1138 function/strfns.py.
1139 * python/py-type.c (typy_array_1): New function.
1140 (typy_array): Call it.
1141 (typy_vector): New function.
1142 (type_object_methods): Add "vector".
1143 * python/lib/gdb/function/__init__.py: New file.
1144 * python/lib/gdb/function/strfns.py: New file.
1145
200bc880
SP
11462012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
1147
1148 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
1149 for TYPE_FIELD_BITPOS.
1150 (typy_get_sizeof): Likewise for TYPE_LENGTH.
1151
de0bea00
MF
11522012-08-10 Mike Frysinger <vapier@gentoo.org>
1153
1154 PR cli/10436:
1155 * common/vec.h (VEC_merge): Define.
1156 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
1157 (DEF_VEC_ALLOC_FUNC_P): Likewise.
1158 (DEF_VEC_ALLOC_FUNC_O): Likewise.
1159 * completer.c: Include gdb_signals.h.
1160 (signal_completer): Define.
1161 * completer.h (signal_completer): Add prototype.
1162 * infcmd.c (_initialize_infcmd): Assign the command
1163 completer for "signal" to handle_completer.
1164 * infrun.c: Include completer.h.
1165 (handle_completer): Define.
1166 (_initialize_infrun): Declare a new local variable c. Store the
1167 result of add_com("handle") to it. Assign the command
1168 completer for "handle" to handle_completer.
1169
5b9afe8a
YQ
11702012-08-09 Yao Qi <yao@codesourcery.com>
1171
1172 * cli/cli-decode.c (set_cmd_prefix): New.
1173 (lookup_cmd_for_prefixlist): New.
1174 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
1175 of each cmd_list_element in *prefixlist.
1176 (add_setshow_cmd_full): set_cmd_prefix.
1177 (add_alias_cmd): Likewise.
1178 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
1179 Declare 'auto_boolean_enums'.
1180 * cli/cli-setshow.c: Include "observer.h".
1181 (notify_command_param_changed_p): New.
1182 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
1183 Remove 'static'.
1184 (do_setshow_command): Split it to ...
1185 (do_set_command, do_show_command): ... them. New.
1186 (do_set_command): Call observer_notify_command_param_changed if
1187 notify_command_param_changed_p returns true.
1188 (cmd_show_list): Caller update.
1189 * auto-load.c (set_auto_load_cmd): Likewise.
1190 * remote.c (show_remote_cmd): Likewise.
1191 * cli/cli-setshow.h: Update declarations.
1192 * top.c (execute_command): Call do_set_command and do_show_command.
1193
1194 * NEWS: Mention new MI notification.
1195 * mi/mi-interp.c: Declare mi_command_param_changed.
1196 (mi_interpreter_init): Attach mi_command_param_changed to
1197 observer command_param_changed.
1198 (mi_command_param_changed): New.
1199 Remove mi_suppress_breakpoint_notifications.
1200 Define global variable mi_suppress_notification.
1201 (mi_breakpoint_created): Update.
1202 (mi_breakpoint_deleted): Likewise.
1203 (mi_breakpoint_modified): Likewise.
1204 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
1205 'gdb-set' and set mi_suppress_notification.
1206 * mi/mi-main.h: (mi_suppress_notification): New struct.
1207
1969df89
JK
12082012-08-09 Andreas Tobler <andreast@fgznet.ch>
1209 Jan Kratochvil <jan.kratochvil@redhat.com>
1210
1211 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
1212
8bfd80db
YQ
12132012-08-09 Yao Qi <yao@codesourcery.com>
1214
1215 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
1216 (skiplist): Move it to skip.c.
1217 (init_cmd_lists): Remove code setting enablebreaklist and
1218 skiplist to NULL.
1219 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
1220 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
1221 skiplist.
1222 * gdbcmd.h: Likewise.
1223 * skip.c (_initialize_step_skip): Move 'skiplist' from
1224 cli/cli-cmds.c.
1225
28578e6b
YQ
12262012-08-09 Yao Qi <yao@codesourcery.com>
1227
1228 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
1229 * gnu-nat.c, symfile.c: Likewise.
1230
260c0b2a
DE
12312012-08-08 Aaron Gamble <agamble@google.com>
1232
1233 * utils.c (prompt_for_continue_wait_time): New static global.
1234 (make_command_stats_cleanup): Initialize it.
1235 (report_command_stats): Subtract time waiting for user.
1236 (prompt_for_continue): Track time waiting for user.
1237 (defaulted_query): Track time waiting for user.
1238
4f485ebc
DE
12392012-08-08 Doug Evans <dje@google.com>
1240
1241 * eval.c (evaluate_subexp_standard): Fix thinko in handling
1242 UNOP_MEMVAL_TYPE.
1243 * expprint.c (print_subexp_standard, case OP_TYPE): New.
1244 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
1245 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
1246 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
1247 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
1248 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
1249 elt.
1250 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
1251 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
1252 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
1253 (dump_prefix_expression): Handle OP_TYPE.
1254
2acf2b39
KS
12552012-08-08 Keith Seitz <keiths@redhat.com>
1256
1257 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
1258 addr_start.
1259
e6712ff1
DE
12602012-08-08 Doug Evans <dje@google.com>
1261
1262 * linux-thread-db.c: #include "gdb_vecs.h".
1263 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
1264 updated.
1265 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
1266 (thread_db_load_search): Use a vector to iterate over path elements.
1267 Handle text appearing after "$pdir".
1268
1269 * gdb_string.h: Moved to ...
1270 * common/gdb_string.h: ... here.
1271 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
1272 gdb_string.h and gdb_assert.h.
1273
ab854e54
YQ
12742012-08-08 Yao Qi <yao@codesourcery.com>
1275
1276 * tic6x-tdep.c (tic6x_register_to_value): Remove.
1277 (tic6x_value_to_register): Likewise.
1278 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
1279 and set_gdbarch_value_to_register.
1280
4f69f4c2
JK
12812012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1282 Jean-Marc Saffroy <saffroy@gmail.com>
1283
1284 PR 11804
1285 * defs.h (find_memory_region_ftype): New comment. New arg modified.
1286 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
1287 * gcore.c (gcore_create_callback): New function comment. Add modified
1288 parameter. Only write modified regions. Set SEC_READONLY exactly
1289 according to MODIFIED.
1290 (objfile_find_memory_regions): Ignore separate debug info files. Ass
1291 the passed modified value to FUNC.
1292 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
1293 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
1294 first. New variables modified and has_anonymous. Parse the lines of
1295 smaps file. Add the passed MODIFIED value to FUNC.
1296 * procfs.c (find_memory_regions_callback): Add the passed modified
1297 value.
1298
78ac5f83
TT
12992012-08-06 Tom Tromey <tromey@redhat.com>
1300
1301 * dwarf2-frame.c (clear_pointer_cleanup): New function.
1302 (dwarf2_frame_cache): Use it.
1303 * frame-unwind.h (frame_sniffer_ftype): Document prologue
1304 cache initialization constraint.
1305
2c12abee
TT
13062012-08-06 Tom Tromey <tromey@redhat.com>
1307
1308 PR python/14386:
1309 * varobj.c (update_dynamic_varobj_children): Don't call
1310 PyIter_Check.
1311
4979d7f0
TT
13122012-08-06 Tom Tromey <tromey@redhat.com>
1313
1314 PR cli/14392:
1315 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
1316
f3c8a52a
JK
13172012-08-06 Nathaniel Flath <flat0103@gmail.com>
1318
1319 * NEWS: New entry for 'cd' default parameters.
1320 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
1321
5a1cf4d6
TT
13222012-08-03 Tom Tromey <tromey@redhat.com>
1323
1324 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
1325 return.
1326
7c3270ae
UW
13272012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
1328
1329 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
1330 to attempting lseek/write.
1331 (inf_child_fileio_pread): Likewise for pread.
1332
ccce17b0
YQ
13332012-08-02 Yao Qi <yao@codesourcery.com>
1334
1335 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
1336 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
1337 add_setshow_zinteger_cmd.
1338 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
1339 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
1340 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
1341 instead of add_setshow_zinteger_cmd.
1342 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
1343 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
1344 instead of add_setshow_zinteger_cmd.
1345 * frame.c (frame_debug): Add 'unsigned'.
1346 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
1347 add_setshow_zinteger_cmd.
1348 * frame.h: Update the declaration of 'frame_debug'.
1349 * gdbtypes.c (overload_debug): Add 'unsigned'.
1350 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
1351 add_setshow_zinteger_cmd.
1352 * inferior.h: Update declaration of 'debug_infrun'.
1353 * infrun.c (debug_infrun): Add 'unsigned'.
1354 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
1355 add_setshow_zinteger_cmd.
1356 * jit.c (jit_debug): Add 'unsigned'.
1357 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
1358 add_setshow_zinteger_cmd.
1359 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
1360 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
1361 instead of add_setshow_zinteger_cmd.
1362 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
1363 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
1364 add_setshow_zinteger_cmd.
1365 * machoread.c (mach_o_debug_level): Add 'unsigned'.
1366 (_initialize_machoread): Call add_setshow_zuinteger_cmd
1367 instead of add_setshow_zinteger_cmd.
1368 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
1369 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
1370 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
1371 intead of add_setshow_zinteger_cmd.
1372 * mips-tdep.c (mips_debug): Add 'unsigned'.
1373 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
1374 instead of add_setshow_zinteger_cmd.
1375 * monitor.c (monitor_debug): Add 'unsigned'.
1376 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
1377 add_setshow_zinteger_cmd.
1378 * observer.c (observer_debug): Add 'unsigned'.
1379 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
1380 add_setshow_zinteger_cmd.
1381 * parse.c (expressiondebug): Add 'unsigned'.
1382 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
1383 add_setshow_zinteger_cmd.
1384 * record.c (record_debug): Add 'unsigned'.
1385 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
1386 add_setshow_zinteger_cmd.
1387 * record.h: Update the declaration of 'record_debug'.
1388 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
1389 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
1390 add_setshow_zinteger_cmd.
1391 * serial.c (global_serial_debug_p): Add 'unsigned'.
1392 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
1393 add_setshow_zinteger_cmd.
1394 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
1395 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
1396 add_setshow_zinteger_cmd.
1397 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
1398 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
1399 add_setshow_zinteger_cmd.
1400 * target.c (targetdebug): Add 'unsigned'.
1401 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
1402 add_setshow_zinteger_cmd.
1403 * valops.c (overload_debug): Add 'unsigned'.
1404 * varobj.c (varobjdebug): Add 'unsigned'.
1405 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
1406 add_setshow_zinteger_cmd.
1407 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
1408 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
1409 instead of add_setshow_zinteger_cmd.
1410
1411 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
1412 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
1413 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
1414 instead of add_setshow_zinteger_cmd.
1415 * gdbarch.c, gdbarch.h: Re-generated.
1416
95b07c96
YQ
14172012-08-02 Yao Qi <yao@codesourcery.com>
1418
1419 * nto-tdep.c: Don't include cli/cli-decode.h and
1420 cli/cli-cmds.h.
1421 (_initialize_nto_tdep): Remove.
1422 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
1423 Remove field.
1424 Remove macro nto_internal_debugging.
1425
57295b0b
RH
14262012-08-01 Richard Henderson <rth@redhat.com>
1427
1428 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
1429 (mep-*-*) [gdb_target_obs]: Likewise.
1430
f782ad9b
AS
14312012-07-31 Andreas Schwab <schwab@linux-m68k.org>
1432
1433 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
1434 linux_get_siginfo_type.
1435
a14dd77e
JK
14362012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1437
1438 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
1439 AT_ENTRY_POINT.
1440 (call_function_by_hand) <ON_STACK>: Call write_memory with
1441 gdbarch_breakpoint_from_pc, if possible.
1442 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
1443 here.
1444
1467929f
YQ
14452012-07-31 Yao Qi <yao@codesourcery.com>
1446
1447 * tracepoint.c: Add 'static' for some variables.
1448
70976b65
YQ
14492012-07-31 Yao Qi <yao@codesourcery.com>
1450
1451 * go32-nat.c: Declare _initialize_go32_nat.
1452 * ser-go32.c: Declare _initialize_ser_dos.
1453 * top.c (do_chdir_cleanup): Add 'static'.
1454
eff9c3e6
KS
14552012-07-30 Keith Seitz <keiths@redhat.com>
1456
1457 * linespec.c (linespec_lex_number): A number followed
1458 by quotes is a valid number, too.
1459
728400d7
TT
14602012-07-30 Tom Tromey <tromey@redhat.com>
1461
1462 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
1463
fcf303ab
UW
14642012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
1465
1466 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
1467 attempt to 4-byte-align HW breakpoint addresses for Thumb.
1468
4e969b4f
AB
14692012-07-30 Andrew Burgess <aburgess@broadcom.com>
1470
1471 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
1472 invalid or reevaluated to prevent prevent references to possibly
1473 delete'd type objects being left in the varobj.
1474
c4bfde41
JK
14752012-07-27 Tom Tromey <tromey@redhat.com>
1476 Jan Kratochvil <jan.kratochvil@redhat.com>
1477
1478 * copying.awk: Print buffer-read-only and vi ro markers.
1479 * copying.c: Rebuild.
1480 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
1481 * gdbarch.c, gdbarch.h: Rebuild.
1482 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
1483 buffer-read-only and vi ro markers.
1484 * features/arm-with-iwmmxt.c: Rebuild.
1485 * features/arm-with-m-fpa-layout.c: Rebuild.
1486 * features/arm-with-m-vfp-d16.c: Rebuild.
1487 * features/arm-with-m.c: Rebuild.
1488 * features/arm-with-neon.c: Rebuild.
1489 * features/arm-with-vfpv2.c: Rebuild.
1490 * features/arm-with-vfpv3.c: Rebuild.
1491 * features/i386/amd64-avx-linux.c: Rebuild.
1492 * features/i386/amd64-avx.c: Rebuild.
1493 * features/i386/amd64-linux.c: Rebuild.
1494 * features/i386/amd64.c: Rebuild.
1495 * features/i386/i386-avx-linux.c: Rebuild.
1496 * features/i386/i386-avx.c: Rebuild.
1497 * features/i386/i386-linux.c: Rebuild.
1498 * features/i386/i386-mmx-linux.c: Rebuild.
1499 * features/i386/i386-mmx.c: Rebuild.
1500 * features/i386/i386.c: Rebuild.
1501 * features/i386/x32-avx-linux.c: Rebuild.
1502 * features/i386/x32-avx.c: Rebuild.
1503 * features/i386/x32-linux.c: Rebuild.
1504 * features/i386/x32.c: Rebuild.
1505 * features/mips-dsp-linux.c: Rebuild.
1506 * features/mips-linux.c: Rebuild.
1507 * features/mips64-dsp-linux.c: Rebuild.
1508 * features/mips64-linux.c: Rebuild.
1509 * features/rs6000/powerpc-32.c: Rebuild.
1510 * features/rs6000/powerpc-32l.c: Rebuild.
1511 * features/rs6000/powerpc-403.c: Rebuild.
1512 * features/rs6000/powerpc-403gc.c: Rebuild.
1513 * features/rs6000/powerpc-405.c: Rebuild.
1514 * features/rs6000/powerpc-505.c: Rebuild.
1515 * features/rs6000/powerpc-601.c: Rebuild.
1516 * features/rs6000/powerpc-602.c: Rebuild.
1517 * features/rs6000/powerpc-603.c: Rebuild.
1518 * features/rs6000/powerpc-604.c: Rebuild.
1519 * features/rs6000/powerpc-64.c: Rebuild.
1520 * features/rs6000/powerpc-64l.c: Rebuild.
1521 * features/rs6000/powerpc-7400.c: Rebuild.
1522 * features/rs6000/powerpc-750.c: Rebuild.
1523 * features/rs6000/powerpc-860.c: Rebuild.
1524 * features/rs6000/powerpc-altivec32.c: Rebuild.
1525 * features/rs6000/powerpc-altivec32l.c: Rebuild.
1526 * features/rs6000/powerpc-altivec64.c: Rebuild.
1527 * features/rs6000/powerpc-altivec64l.c: Rebuild.
1528 * features/rs6000/powerpc-cell32l.c: Rebuild.
1529 * features/rs6000/powerpc-cell64l.c: Rebuild.
1530 * features/rs6000/powerpc-e500.c: Rebuild.
1531 * features/rs6000/powerpc-e500l.c: Rebuild.
1532 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
1533 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
1534 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
1535 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
1536 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
1537 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
1538 * features/rs6000/powerpc-vsx32.c: Rebuild.
1539 * features/rs6000/powerpc-vsx32l.c: Rebuild.
1540 * features/rs6000/powerpc-vsx64.c: Rebuild.
1541 * features/rs6000/powerpc-vsx64l.c: Rebuild.
1542 * features/rs6000/rs6000.c: Rebuild.
1543 * features/s390-linux32.c: Rebuild.
1544 * features/s390-linux32v1.c: Rebuild.
1545 * features/s390-linux32v2.c: Rebuild.
1546 * features/s390-linux64.c: Rebuild.
1547 * features/s390-linux64v1.c: Rebuild.
1548 * features/s390-linux64v2.c: Rebuild.
1549 * features/s390x-linux64.c: Rebuild.
1550 * features/s390x-linux64v1.c: Rebuild.
1551 * features/s390x-linux64v2.c: Rebuild.
1552 * features/tic6x-c62x-linux.c: Rebuild.
1553 * features/tic6x-c62x.c: Rebuild.
1554 * features/tic6x-c64x-linux.c: Rebuild.
1555 * features/tic6x-c64x.c: Rebuild.
1556 * features/tic6x-c64xp-linux.c: Rebuild.
1557 * features/tic6x-c64xp.c: Rebuild.
1558
826f0041
TT
15592012-07-27 Tom Tromey <tromey@redhat.com>
1560
1561 * c-exp.y (classify_name): Avoid assignment in condition.
1562
84552b16
PA
15632012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
1564
1565 * amd64-windows-tdep.c: Include "frame.h".
1566 (amd64_windows_skip_trampoline_code): New function.
1567 (amd64_windows_init_abi): Add trampoline registration.
1568
a8a64aa8
YQ
15692012-07-27 Yao Qi <yao@codesourcery.com>
1570
1571 * tracepoint.c (cur_traceframe_number): Remove.
1572 (set_tfile_traceframe): Remove.
1573 (tfile_trace_find, tfile_fetch_registers): Update callers.
1574 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
1575 (tfile_open, tfile_trace_find): Likewise.
1576
d99067cb
YQ
15772012-07-27 Yao Qi <yao@codesourcery.com>
1578
1579 * thread.c (switch_to_thread): Don't call registers_changed.
1580
f2e8016f
TT
15812012-07-26 Tom Tromey <tromey@redhat.com>
1582
f782ad9b
AS
1583 * Makefile.in (SFILES): Remove objc-exp.y.
1584 (YYFILES): Remove objc-exp.c.
1585 (YYOBJ): Remove objc-exp.o.
1586 (local-maintainer-clean): Don't mention objc-exp.c.
1587 * c-exp.y: Include objc-lang.h.
1588 (%union) <class>: New field.
1589 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1590 (exp): Clone subscript production for OBJC_LBRAC. Add various
1591 Objective C productions.
1592 (msglist, msgarglist, msgarg): New productions.
1593 (array_mod, func_mod, operator): Clone productions for
1594 OBJC_LBRAC.
1595 (parse_string_or_char): Handle '@' strings.
1596 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1597 (classify_name): Check la_name_of_this. Recognize ObjC class
1598 names.
1599 * objc-exp.y: Remove.
1600 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1601 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1602
f66713d2
JK
16032012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1604
1605 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1606
7cfe01b4
JK
16072012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1608
1609 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1610 and decrement.
1611
5ba19b4c
TT
16122012-07-26 Tom Tromey <tromey@redhat.com>
1613
1614 * copying.c: Rebuild.
1615 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1616 'no_class'.
1617
27618ce4
TT
16182012-07-26 Tom Tromey <tromey@redhat.com>
1619
1620 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1621 immediate_quit.
1622 (print_objfile_statistics): Likewise.
1623 (maintenance_print_symbols): Likewise.
1624 (maintenance_print_msymbols): Likewise.
1625 (maintenance_print_objfiles): Likewise.
1626 * psymtab.c (print_partial_symbols): Call QUIT.
1627 (maintenance_print_psymbols): Likewise. Don't modify
1628 immediate_quit.
1629 * copying.c (show_copying_command): Don't modify immediate_quit.
1630 (show_warranty_command): Likewise.
1631 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1632
dd3818c8
KS
16332012-07-26 Keith Seitz <keiths@redhat.com>
1634
1635 * linespec.c (linespec_lexer_lex_number): The input
1636 is also a valid number if the next character is a comma
1637 or colon.
1638
23a80689
JB
16392012-07-26 Joel Brobecker <brobecker@adacore.com>
1640
1641 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1642 configure options.
1643
29f77997
TG
16442012-07-26 Tristan Gingold <gingold@adacore.com>
1645
1646 * machoread.c: Include gdb_bfd.h.
1647
a55c1f32
TG
16482012-07-26 Tristan Gingold <gingold@adacore.com>
1649
1650 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1651 offset.
1652
56eb65bd
SP
16532012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1654
1655 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1656 SIZE to size_t.
1657 (dwarf2_evaluate_loc_desc): Likewise.
1658 (dwarf2_loc_desc_needs_frame): Likewise.
1659 (locexpr_describe_location_1): Likewise.
1660 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1661 size_t.
1662 (struct dwarf2_loclist_baton): Likewise.
1663 * dwarf2read.c (struct dwarf_block): Likewise.
1664 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1665 (decode_locdesc): Expand SIZE and I to size_t.
1666
aec8845c
JK
16672012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1668
1669 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1670
33d7655b
JB
16712012-07-25 Joel Brobecker <brobecker@adacore.com>
1672
1673 * doublest.c (convert_doublest_to_floatformat): If the exponent
1674 is too small, treat the value as zero. If the exponent is too
1675 large, treat the value as infinity.
1676
a22d44ff
JB
16772012-07-25 Joel Brobecker <brobecker@adacore.com>
1678
1679 * configure.ac: Add --enable-lmcheck configure option.
1680 * configure: Regenerate.
1681
d6b28940
TT
16822012-07-25 Tom Tromey <tromey@redhat.com>
1683
f782ad9b
AS
1684 * NEWS: Mention maint info bfds.
1685 * gdb_bfd.c (all_bfds): New global.
1686 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1687 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1688 New functions.
d6b28940 1689
6e73ba20
RC
16902012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1691
1692 * configure.tgt: Add v850*-*-rtems*.
1693
d560eebd
TT
16942012-07-25 Tom Tromey <tromey@redhat.com>
1695
1696 * macrotab.c (macro_bcache_str): Remove cast.
1697
d7cbec71
HZ
16982012-07-25 Hui Zhu <hui_zhu@mentor.com>
1699
1700 * linespec.c (linespec_lexer_lex_number): Update comments,
1701 change the return and add check to make sure the input is
1702 the decimal numbers.
1703 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1704 false, call linespec_lexer_lex_string.
1705
882f447f
TT
17062012-07-24 Tom Tromey <tromey@redhat.com>
1707
1708 * symfile.c (symbol_file_add): Don't open BFD twice.
1709
53ab4066 17102012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1711
1712 * breakpoint.c (create_breakpoint): Store condition for pending
1713 breakpoints.
1714
108fb0f7
AS
17152012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1716
1717 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1718 (m68k_return_value): Handle complex types like structures.
1719 (m68k_svr4_return_value): Likewise.
1720
1634dcbe
JK
17212012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1722
1723 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1724 parameters to bfd_get_section_name.
1725
e2d12c21
YQ
17262012-07-24 Yao Qi <yao@codesourcery.com>
1727
1728 * cli/cli-setshow.c: Handle case 'var_uinteger'
1729 and 'var_zuninteger' together. Handle case 'var_integer' and
1730 'var_zinteger' together.
1731
64b92e45
KS
17322012-07-23 Keith Seitz <keiths@redhat.com>
1733
1734 * linespec.c (convert_linespec_to_sal): Don't add
1735 any symbols to the result vector if symbol_to_sal
1736 returns zero.
1737
0f5f4ffe
KS
17382012-07-23 Keith Seitz <keiths@redhat.com>
1739
1740 * linespec.c (decode_objc): Record the function name
1741 in the linespec.
1742
da1cc82f
TT
17432012-07-23 Tom Tromey <tromey@redhat.com>
1744
1745 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1746 counting.
1747 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1748 (map_vmap): Acquire a reference to the BFD.
1749
6c18f3e0
SP
17502012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1751
1752 * p-valprint.c (pascal_object_print_value): Replace potentially
1753 unsafe alloca with xmalloc/xfree.
1754 * valops.c (search_struct_method): Likewise.
1755
695c3173
TT
17562012-07-23 Tom Tromey <tromey@redhat.com>
1757
1758 * solib-svr4.c (enable_break): Update.
1759 * bfd-target.h (target_bfd_reopen): Update documentation.
1760
08d2cd74
TT
17612012-07-23 Tom Tromey <tromey@redhat.com>
1762
1763 * symfile.c (separate_debug_file_exists): Update.
1764 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1765 (reread_symbols): Update.
1766 * elfread.c (build_id_verify): Update.
1767 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1768 bfd_open_maybe_remote.
1769
596f7d67
TT
17702012-07-23 Tom Tromey <tromey@redhat.com>
1771
1772 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1773
8ac244b4
TT
17742012-07-23 Tom Tromey <tromey@redhat.com>
1775
1776 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1777 and 'abfd'.
1778 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1779 and 'abfd'.
1780 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1781 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1782 'abfd'.
1783 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1784 * objfiles.c (allocate_objfile): Acquire a new reference.
1785 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1786 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1787 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1788 a cleanup for 'nbfd'.
1789 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1790 for 'nbfd'.
1791 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1792 make a cleanup for 'abfd'.
1793 (symbol_file_add): Make a BFD cleanup.
1794
64c31149
TT
17952012-07-23 Tom Tromey <tromey@redhat.com>
1796
1797 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1798 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1799 * corelow.c (core_open): Use gdb_bfd_fopen.
1800 * dsrec.c (load_srec): Use gdb_bfd_openr.
1801 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1802 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1803 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1804 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1805 (gdb_bfd_fdopenr): New functions.
1806 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1807 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1808 (gdb_bfd_fdopenr): Declare.
1809 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1810 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1811 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1812 gdb_bfd_openr_next_archived_file.
1813 (macho_check_dsym): Use gdb_bfd_openr.
1814 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1815 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1816 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1817 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1818 gdb_bfd_openr.
1819 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1820 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1821 gdb_bfd_openr_next_archived_file.
1822 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1823 Use gdb_bfd_openr.
1824 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1825 gdb_bfd_openr.
1826 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1827 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1828 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1829 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1830 (symfile_bfd_open): Use gdb_bfd_fopen.
1831 (generic_load): Use gdb_bfd_openr.
1832 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1833
520b0001
TT
18342012-07-23 Tom Tromey <tromey@redhat.com>
1835
1836 * bfd-target.c (target_bfd_reopen): Update.
1837 * cli/cli-dump.c (bfd_openr_with_cleanup)
1838 (bfd_openw_with_cleanup): Update.
1839 * corelow.c (core_open): Update.
1840 * dsrec.c (load_srec): Update.
1841 * exec.c (exec_file_attach): Update.
1842 * gcore.c (create_gcore_bfd): Update.
1843 * gdb_bfd.c (gdb_bfd_ref): Return void.
1844 (gdb_bfd_open): Update.
1845 * gdb_bfd.h (gdb_bfd_ref): Return void.
1846 Update comments.
1847 * jit.c (jit_bfd_try_read_symtab): Update.
1848 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1849 * machoread.c (macho_symfile_read_all_oso): Update.
1850 (macho_check_dsym): Update.
1851 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1852 * remote-m32r-sdi.c (m32r_load): Update.
1853 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1854 * rs6000-nat.c (add_vmap): Update.
1855 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1856 Update.
1857 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1858 * solib-spu.c (spu_bfd_open): Update.
1859 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1860 * spu-linux-nat.c (spu_bfd_open): Update.
1861 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1862 (generic_load): Update.
1863 * windows-nat.c (windows_make_so): Update.
1864
2322ff16
SP
18652012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1866
1867 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1868
3def0b36
PA
18692012-07-20 Jeff Kenton <jkenton@tilera.com>
1870
1871 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1872 SIGTRAMP_FRAME unwinding.
1873
e615022a
DE
18742012-07-20 Doug Evans <dje@google.com>
1875
1876 * NEWS: Document new options "set/show use-deprecated-index-sections",
1877 and delete reference to --use-deprecated-index-sections.
1878 * symfile.h (use_deprecated_index_sections): Delete.
1879 * dwarf2read.c (use_deprecated_index_sections): Make static.
1880 (read_index_from_section): Update wording of how to load
1881 deprecated index sections.
1882 (_initialize_dwarf2_read): New options
1883 "set/show use-deprecated-index-sections".
1884 * main.c (captured_main): Delete --use-deprecated-index-sections.
1885
64776a0b
PA
18862012-07-20 Pedro Alves <palves@redhat.com>
1887
1888 PR threads/11692
1889 PR gdb/12203
1890
1891 * infrun.c (handle_inferior_event) <new thread>: Don't special
1892 case minus_one_ptid.
1893 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1894 * linux-thread-db.c (thread_get_info_callback): Don't return early
1895 if the thread is zombie.
1896 (thread_from_lwp): Change return type to void. Rewrite stale
1897 comment.
1898 (attach_thread): Don't return early if the thread is zombie,
1899 instead set its "dying" flag.
1900 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1901 (find_new_threads_callback): Don't return early if the thread is
1902 zombie.
1903
09826ec5
PA
19042012-07-20 Pedro Alves <palves@redhat.com>
1905
1906 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1907 * target.c (target_wait): Likewise.
1908 (str_comma_list_concat_elem, do_option, target_options_to_string):
1909 New functions.
1910 * target.h (target_options_to_string): Declare.
1911
f7a35f02
TT
19122012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1913 Tom Tromey <tromey@redhat.com>
1914
1915 * dwarf2read.c (dwarf_decode_macros)
1916 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1917 DW_MACRO_GNU_transparent_include_alt>: New cases.
1918 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1919 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1920
b81e1ee0
TT
19212012-07-20 Tom Tromey <tromey@redhat.com>
1922
1923 * dwarf2read.c (try_open_dwo_file): Don't call
1924 gdb_bfd_stash_filename.
1925
99c1624c
PA
19262012-07-20 Pedro Alves <palves@redhat.com>
1927
1928 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1929 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1930 (i386_process_record): Tweak description comments.
1931
4ffa4fc7
PA
19322012-07-20 Pedro Alves <palves@redhat.com>
1933
1934 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1935 (i386_process_record): Use record_read_memory.
1936 * record.c (record_read_memory): New function.
1937 (record_arch_list_add_mem, record_exec_insn): Use
1938 record_read_memory.
1939 * record.h (record_read_memory): Declare.
1940
c24343e2
YQ
19412012-07-20 Yao Qi <yao@codesourcery.com>
1942
1943 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1944 NULL for xfree.
1945
90f47860
PA
19462012-07-19 Pedro Alves <palves@redhat.com>
1947
1948 * record.c (record_resume): Ask the target beneath to report all
1949 signals.
1950
01093045
DE
19512012-07-19 Doug Evans <dje@google.com>
1952
1953 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1954 there's no section at address zero.
1955 (dwarf2_record_block_ranges): Ditto.
1956
a7c3d162
YQ
19572012-07-19 Yao Qi <yao@codesourcery.com>
1958
1959 * command.h, remote.c: Fix a typo in comment.
1960
608b4967
TT
19612012-07-19 Tom Tromey <tromey@redhat.com>
1962
1963 PR exp/13206:
1964 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1965 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1966 OP_DECLTYPE>: New cases.
1967 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1968 (type_exp): Add new productions.
1969 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1970 and decltype.
1971 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1972 New case.
1973 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1974 OP_DECLTYPE>: New case.
1975 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1976 New case.
1977 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1978 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1979
274b54d7
TT
19802012-07-19 Tom Tromey <tromey@redhat.com>
1981
1982 * c-exp.y (enum token_flags): New.
1983 (struct token) <cxx_only>: Remove.
1984 <flags>: New field.
1985 (tokentab3, tokentab2, ident_tokens): Update.
1986 (lex_one_token): Update. Handle FLAG_SHADOW.
1987
9eaf6705
TT
19882012-07-19 Tom Tromey <tromey@redhat.com>
1989
1990 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1991 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1992 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1993 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1994 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1995 type_exp production where appropriate.
1996 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1997 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1998 <UNOP_MEMVAL_TYPE>: New case.
1999 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
2000 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
2001 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
2002 <UNOP_MEMVAL_TYPE>: New case.
2003 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
2004 UNOP_REINTERPRET_CAST>: Update.
2005 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2006 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
2007 UNOP_REINTERPRET_CAST>: Update.
2008 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
2009 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
2010 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
2011 constants.
2012
6ace3df1
YQ
20132012-07-19 Yao Qi <yao@codesourcery.com>
2014 Jan Kratochvil <jan.kratochvil@redhat.com>
2015
2016 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
2017 and case 'var_optional_filename' together.
2018 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
2019 instead of add_setshow_optional_filename_cmd for setshow command
2020 'args'. Set completer for 'set args'.
2021
48faced0
DE
20222012-07-18 Doug Evans <dje@google.com>
2023
2024 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
2025 * common/gdb_vecs.c: New file, contents from utils.c.
2026 * common/host-defs.h: New file, contents from defs.h.
2027 * utils.h: New file, contents from defs.h.
2028 * defs.h: Move all declarations of objects defined in utils.c
2029 to utils.h (except QUIT() and related).
2030 #include "utils.h", "host-defs.h".
2031 * probe.h (probe_p): Move here from gdb_vecs.h.
2032 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
2033 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
2034 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
2035 * Makefile.in (SFILES): Add common/gdb_vecs.c.
2036 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
2037 (COMMON_OBS): Add gdb_vecs.o.
2038 (gdb_vecs.o): New rule.
2039
66f1999b
KS
20402012-07-18 Keith Seitz <keiths@redhat.com>
2041
2042 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
2043 parameter. If non-zero, use SYMNAME as the canonical name
2044 for the SaL.
2045 Update all callers.
2046 (convert_linespec_to_sals): Use add_sal_to_sals for
2047 expressions, too.
2048 (decode_line_full): No need to "fill in missing canonical names"
2049 anymore. Simply make cleanups for the allocated names.
2050
5d94e27b
KS
20512012-07-18 Keith Seitz <keiths@redhat.com>
2052
2053 * linespec.c (struct linespec): Constify expression,
2054 source_filename, function_name, and label_name.
2055 (symbol_not_found_error): Make all parameters const.
2056 (linespec_parser_delete): No need to check for NULL
2057 when using xfree. Cast const char * to char * for xfree.
2058
af4908ba
KS
20592012-07-18 Keith Seitz <keiths@redhat.com>
2060
2061 * breakpoint.c (invalid_thread_id_error): New function.
2062 (find_condition_and_thread): Use invalid_thread_id_error.
2063 (watch_command_1): Likewise.
2064
853254db
TT
20652012-07-18 Tom Tromey <tromey@redhat.com>
2066
2067 * cc-with-index.sh, cc-with-dwz.sh: Remove.
2068 * contrib/cc-with-tweaks.sh: New file.
2069
2ec9a5e0
TT
20702012-07-18 Tom Tromey <tromey@redhat.com>
2071
2072 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
2073 (locate_dwz_sections): Recognize .gdb_index.
2074 (create_cus_from_index_list): New function.
2075 (create_cus_from_index): Use it. Handle .dwz data.
2076 (read_index_from_section): New function, extracted from
2077 dwarf2_read_index.
2078 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
2079 if needed.
2080
36586728
TT
20812012-07-18 Tom Tromey <tromey@redhat.com>
2082
2083 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
2084 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
2085 <is_dwz>: New field.
2086 (struct dwz_file): New.
2087 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
2088 (locate_dwz_sections, dwarf2_get_dwz_file)
2089 (get_abbrev_section_for_cu): New functions.
2090 (error_check_comp_unit_head, read_and_check_comp_unit_head)
2091 (read_and_check_type_unit_head): Add abbrev_section argument.
2092 (create_debug_types_hash_table): Update.
2093 (init_cutu_and_read_dies): Use proper abbrev section.
2094 (init_cutu_and_read_dies_no_follow): Likewise.
2095 (set_partial_user): Do nothing if PST==NULL.
2096 (read_comp_units_from_section): New function.
2097 (create_all_comp_units): Use it.
2098 (scan_partial_symbols, partial_die_parent_scope): Update.
2099 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2100 (process_imported_unit_die, read_partial_die): Handle .dwz files.
2101 (find_partial_die): Add offset_in_dwz argument. Update.
2102 (guess_partial_die_structure_name, fixup_partial_die): Update.
2103 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
2104 DW_FORM_GNU_strp_alt.
2105 (read_indirect_string_from_dwz): New function.
2106 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
2107 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
2108 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
2109 (follow_die_offset): Add offset_in_dwz argument.
2110 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
2111 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
2112 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
2113 Handle new macro forms.
2114 (dwarf_decode_macros): Update.
2115 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
2116 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
2117 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
2118 (create_debug_types_hash_table): Use correct abbrev section.
2119 (get_debug_line_section): New function.
2120 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
2121 (process_full_comp_unit): Pass 'required' argument to
2122 end_symtab_get_static_block.
2123 * buildsym.h (end_symtab_get_static_block): Update.
2124 * buildsym.c (end_symtab_get_static_block): Add 'required'
2125 argument.
2126 (end_symtab, end_expandable_symtab): Update.
2127
4bf44c1c
TT
21282012-07-18 Tom Tromey <tromey@redhat.com>
2129
2130 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
2131 (pagesize): Remove.
2132 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
2133 (zlib_decompress_section): Remove.
2134 (dwarf2_read_section): Use gdb_bfd_map_section.
2135 (munmap_section_buffer): Remove.
2136 (free_dwo_file, dwarf2_per_objfile_free): Don't use
2137 munmap_section_buffer.
2138 * gdb_bfd.c: Include zlib.h, sys/mman.h.
2139 (struct gdb_bfd_section_data): New.
2140 (free_one_bfd_section): New function.
2141 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
2142 (get_section_descriptor, zlib_decompress_section)
2143 (gdb_bfd_map_section): New functions.
2144 * gdb_bfd.h (gdb_bfd_map_section): Declare.
2145
bb397797
TT
21462012-07-18 Tom Tromey <tromey@redhat.com>
2147
2148 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
2149
6ec53d05
TT
21502012-07-18 Tom Tromey <tromey@redhat.com>
2151
2152 * gdb_bfd.c (struct gdb_bfd_data): New.
2153 (gdb_bfd_cache): New global.
2154 (struct gdb_bfd_cache_search): New.
2155 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
2156 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
2157 * gdb_bfd.h (gdb_bfd_open): Declare.
2158
f9a062ff
TT
21592012-07-18 Tom Tromey <tromey@redhat.com>
2160
2161 * utils.c (make_cleanup_bfd_unref): Rename from
2162 make_cleanup_bfd_close.
2163 * defs.h (make_cleanup_bfd_unref): Rename from
2164 make_cleanup_bfd_close.
2165 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
2166 (bfd_openw_with_cleanup): Update.
2167 * corelow.c (core_open): Update.
2168 * dsrec.c (load_srec): Update.
2169 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2170 * remote-m32r-sdi.c (m32r_load): Update.
2171 * remote-mips.c (mips_load_srec): Update.
2172 (pmon_load_fast): Update.
2173 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2174 Update.
2175 (darwin_bfd_open): Update.
2176 * solib.c (solib_bfd_fopen): Update.
2177 * symfile-mem.c (symbol_file_add_from_memory): Update.
2178 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
2179 (symfile_bfd_open): Update.
2180 (generic_load): Update.
2181
d6ad71ba
TT
21822012-07-18 Tom Tromey <tromey@redhat.com>
2183
2184 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
2185 (pmon_load_fast): Likewise.
2186 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
2187 (m32r_upload_command): Likewise.
2188 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
2189 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2190 Use make_cleanup_bfd_close.
2191
a4453b7e
TT
21922012-07-18 Tom Tromey <tromey@redhat.com>
2193
2194 * symfile.c (symfile_bfd_open): Don't copy name. Call
2195 gdb_bfd_stash_filename.
2196 (load_command): Open the new BFD before freeing the old.
2197 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
2198 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
2199 Call gdb_bfd_stash_filename.
2200 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
2201 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
2202 gdb_bfd_stash_filename.
2203 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2204 Free found_pathname.
2205 * rs6000-nat.c (add_vmap): Don't copy filename. Call
2206 gdb_bfd_stash_filename.
2207 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
2208 * machoread.c (macho_add_oso_symfile): Call
2209 gdb_bfd_stash_filename.
2210 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
2211 gdb_bfd_stash_filename.
2212 (macho_check_dsym): Don't copy filename. Call
2213 gdb_bfd_stash_filename.
2214 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
2215 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
2216 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
2217 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
2218 * exec.c (exec_close): Don't free the BFD's filename.
2219 (exec_file_attach): Don't copy the filename. Call
2220 gdb_bfd_stash_filename.
2221 * corelow.c (core_close): Don't free the BFD's filename.
2222 (core_open): Call gdb_bfd_stash_filename.
2223 * corefile.c (reopen_exec_file): Remove #if 0 code.
2224 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
2225 pathname.
2226 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
2227
cbb099e8
TT
22282012-07-18 Tom Tromey <tromey@redhat.com>
2229
2230 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
2231 gdb_bfd_unref.
2232 (free_dwo_file): Use gdb_bfd_unref.
2233 * cli/cli-dump.c: Include gdb_bfd.h.
2234 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
2235 (bfd_openr_with_cleanup): Likewise.
2236 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
2237 gdb_bfd_unref.
2238 * utils.c: Include gdb_bfd.h.
2239 (do_bfd_close_cleanup): Use gdb_bfd_unref.
2240 * symfile.c: Include gdb_bfd.h.
2241 (separate_debug_file_exists): Use gdb_bfd_unref.
2242 (bfd_open_maybe_remote): Use gdb_bfd_ref.
2243 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2244 (generic_load): Use gdb_bfd_ref.
2245 (reread_symbols): Use gdb_bfd_unref.
2246 * symfile-mem.c: Include gdb_bfd.h.
2247 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
2248 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
2249 * solib.c: Include gdb_bfd.h.
2250 (solib_bfd_fopen): Use gdb_bfd_ref.
2251 (solib_bfd_open): Use gdb_bfd_unref.
2252 (free_so_symbols): Use gdb_bfd_unref.
2253 (reload_shared_libraries_1): Use gdb_bfd_unref.
2254 * solib-spu.c: Include gdb_bfd.h.
2255 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
2256 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
2257 gdb_bfd_unref.
2258 * solib-frv.c: Include gdb_bfd.h.
2259 (enable_break2): Use gdb_bfd_unref.
2260 * solib-dsbt.c: Include gdb_bfd.h.
2261 (enable_break2): Use gdb_bfd_unref.
2262 * solib-darwin.c: Include gdb_bfd.h.
2263 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
2264 gdb_bfd_unref.
2265 (darwin_bfd_open): Use gdb_bfd_unref.
2266 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
2267 * remote-mips.c: Include gdb_bfd.h.
2268 (mips_load_srec): Use gdb_bfd_ref.
2269 (pmon_load_fast): Use gdb_bfd_ref.
2270 * remote-m32r-sdi.c: Include gdb_bfd.h.
2271 (m32r_load): Use gdb_bfd_ref.
2272 * record.c: Include gdb_bfd.h.
2273 (record_save_cleanups): Use gdb_bfd_unref.
2274 (cmd_record_save): Use gdb_bfd_unref.
2275 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
2276 gdb_bfd_unref.
2277 * objfiles.h (gdb_bfd_close_or_warn): Remove.
2278 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
2279 * objfiles.c: Include gdb_bfd.h.
2280 (free_objfile): Use gdb_bfd_unref.
2281 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
2282 gdb_bfd.c.
2283 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
2284 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
2285 (macho_check_dsym): Likewise.
2286 * m32r-rom.c: Include gdb_bfd.h.
2287 (m32r_load): Use gdb_bfd_ref.
2288 (m32r_upload_command): Use gdb_bfd_ref.
2289 * jit.c: Include gdb_bfd.h.
2290 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
2291 * gdb_bfd.h: New file.
2292 * gdb_bfd.c: New file.
2293 * gcore.c: Include gdb_bfd.h.
2294 (create_gcore_bfd): Use gdb_bfd_ref.
2295 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
2296 (gcore_command): Use gdb_bfd_unref.
2297 * exec.c: Include gdb_bfd.h.
2298 (exec_close): Use gdb_bfd_unref.
2299 (exec_close_1): Use gdb_bfd_unref.
2300 (exec_file_attach): Use gdb_bfd_ref.
2301 * elfread.c: Include gdb_bfd.h.
2302 (build_id_verify): Use gdb_bfd_unref.
2303 * dsrec.c: Include gdb_bfd.h.
2304 (load_srec): Use gdb_bfd_ref.
2305 * corelow.c: Include gdb_bfd.h.
2306 (core_close): Use gdb_bfd_unref.
2307 (core_open): Use gdb_bfd_ref.
2308 * bfd-target.c: Include gdb_bfd.h.
2309 (target_bfd_xclose): Use gdb_bfd_unref.
2310 (target_bfd_reopen): Use gdb_bfd_ref.
2311 * Makefile.in (SFILES): Add gdb_bfd.c.
2312 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
2313 (COMMON_OBS): Add gdb_bfd.o.
2314
ed1d1739
KS
23152012-07-18 Keith Seitz <keiths@redhat.com>
2316
2317 * breakpoint.c (find_condition_and_thread): Initialize
2318 TASK and REST.
2319 (create_breakpiont): find_condition_and_thread will now
2320 initialize COND_STRING, THREAD, and REST (and TASK).
2321 (addr_string_to_sals): Likewise.
2322
eab402df
PA
23232012-07-18 Pedro Alves <palves@redhat.com>
2324
2325 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
2326 Pull the single step breakpoints out of the target.
2327
2b963b68
SDJ
23282012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2329
2330 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
2331 * stap-probe.c (compile_probe_arg): Likewise.
2332
6bac7473
SDJ
23332012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
2334
2335 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
2336 (elf_compile_to_ax): Likewise.
2337 * infrun.c (insert_exception_resume_from_probe): Likewise.
2338 (check_exception_resume): Remove `objfile' variable.
2339 * probe.c (find_probe_by_pc): Remove `objfile' argument.
2340 (struct probe_and_objfile, probe_and_objfile_s): Delete.
2341 (collect_probes): Adjust return value to `VEC (probe_p) *'.
2342 (compare_entries): Rename to...
2343 (compare_probes): ...this. Adjust function to work with
2344 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
2345 respectively.
2346 (gen_ui_out_table_header_info): Adjust `probes' argument to be
2347 `VEC (probe_p) *'.
2348 (print_ui_out_info): Adjust argument to be `struct probe *'.
2349 (info_probes_for_ops): Adjust internal computations to use
2350 `VEC (probe_p) *'.
2351 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
2352 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
2353 gen_info_probes_table_values>: Remove `objfile' argument.
2354 (struct probe) <objfile>: New field.
2355 (find_probe_by_pc): Remove `objfile' argument.
2356 * stap-probe.c (stap_parse_probe_arguments): Likewise.
2357 (stap_get_probe_argument_count): Likewise.
2358 (stap_get_arg): Likewise.
2359 (stap_evaluate_probe_argument): Likewise.
2360 (stap_compile_to_ax): Likewise.
2361 (compile_probe_arg): Refactor not to pass `objfile' anymore.
2362 (handle_stap_probe): Fill `objfile' field from `struct probe'.
2363 (stap_gen_info_probes_table_header): Remove `objfile' argument.
2364 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
2365 sym_compile_to_ax>: Likewise.
2366
3347eb1a 23672012-07-18 Terry Guo <terry.guo@arm.com>
2368
2369 PR 14329
2370 * defs.h (GDB_MI_MSG_WIDTH): New.
2371 * ser_base (ser_base_read_error_fd): New function.
2372 (do_ser_base_readchar): Poll error file descriptor as well as
2373 standard output.
f782ad9b 2374 (generic_readchar): Refactor error handling.
3347eb1a 2375
80c8d323
JB
23762012-07-18 Joel Brobecker <brobecker@adacore.com>
2377
2378 * NEWS: Create a new section for the next release branch.
2379 Rename the section of the current branch, now that it has
2380 been cut.
2381
b45a0664 23822012-07-18 Joel Brobecker <brobecker@adacore.com>
2383
2384 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
2385 * version.in: Bump version to 7.5.50.20120718-cvs.
2386
09cf2b22
KS
23872012-07-17 Keith Seitz <keiths@redhat.com>
2388
2389 * linespec.c (linespec_parse_line_offset): Make parameter
2390 const.
2391
8f043999
JK
23922012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2393
2394 PR 11914
2395 * f-valprint.c (info_common_command): New variable frame_id.
2396 Reinitialize FI form FRAME_ID after each print_variable_and_value.
2397 * printcmd.c (print_variable_and_value): Extend function comment.
2398 Add comment for invalidated FRAME.
2399 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
2400 FI form FRAME_ID after each print_frame_local_vars.
2401 (struct print_variable_and_value_data): Change frame to frame_id.
2402 (do_print_variable_and_value): New variable frame, initialize it from
2403 p->frame_id. Add comment for invalidated FRAME.
2404 (print_frame_local_vars, print_frame_arg_vars): New function comment.
2405 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
2406 for invalidated FRAME.
2407
ae5e0686
MK
24082012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
2409 Pedro Alves <palves@redhat.com>
2410
2411 * linux-nat.c (linux_nat_detach): Don't unregister from the event
2412 loop.
2413
5049c5be
TT
24142012-07-16 Tom Tromey <tromey@redhat.com>
2415
2416 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
2417
2908cac6
DE
24182012-07-15 Doug Evans <dje@google.com>
2419
094b34ac
DE
2420 * dwarf2read.c (stmt_list_hash): New struct.
2421 (type_unit_group): Embed "per_cu" member, remove pointer.
2422 New union member "t", move member "tus" into it, all uses updated.
2423 New member "hash", replaces member "line_offset, all uses updated.
2424 (quick_file_names): Replace member "offset" with "hash", all uses
2425 updated.
2426 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
2427 (hash_file_name_entry, eq_file_name_entry): Call them.
2428 (hash_type_unit_group, eq_type_unit_group): Ditto.
2429 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
2430 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
2431 (dw2_get_file_names): Update.
2432 (create_type_unit_group): Replace "per_cu" arg with "cu".
2433 All callers updated. Fix "quick" (.gdb_index) handling.
2434 (get_type_unit_group): Replace "per_cu" arg with "cu".
2435 All callers updated.
2436 (build_type_unit_groups): Don't reset tu_stats.
2437
2908cac6
DE
2438 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
2439 "tab_cur_size". Change member "tab" to be a htab_t.
2440 (create_filename_seen_cache): Update.
2441 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
2442 (filename_seen): Update.
2443
a2b6eff5
DE
24442012-07-13 Doug Evans <dje@google.com>
2445
2446 * symtab.c (filename_seen): Update comment.
2447
4359dff1
JK
24482012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2449 Doug Evans <dje@google.com>
2450
2451 * buildsym.c (end_symtab_1): Split it to ...
2452 (end_symtab_get_static_block): ... this ...
2453 (end_symtab_from_static_block): ... and this function.
2454 (end_symtab, end_expandable_symtab): Call them.
2455 * buildsym.h (end_symtab_get_static_block)
2456 (end_symtab_from_static_block): New declarations.
2457 * dwarf2read.c (process_full_comp_unit): New variable static_block.
2458 Set its valid CU ranges.
2459
a24f71ab
JK
24602012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2461
2462 * dwarf2loc.c (disassemble_dwarf_expression): Handle
2463 DW_OP_GNU_parameter_ref.
2464
d76b7dbc
JK
24652012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2466
2467 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
2468 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
2469
9fdc877b
DE
24702012-07-13 Doug Evans <dje@google.com>
2471
2472 * symtab.c (output_source_filename): Delete unnecessary forward decl.
2473 (filename_seen_cache): New struct.
2474 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
2475 (create_filename_seen_cache): New function.
2476 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
2477 (filename_seen): Delete arg "first". New arg "cache". All callers
2478 updated.
2479 (output_source_filename_data): New struct.
2480 (output_source_filename): Delete arg "first". New arg "data".
2481 All callers updated.
2482 (sources_info): Delete local "first". New locals "data", "cleanups".
2483 Rewrite to use filename_seen_cache.
2484 (add_partial_filename_data): Delete member "first". New member
2485 "filename_seen_cache". All uses updated.
2486 (make_source_files_completion_list): Rewrite to use
2487 filename_seen_cache.
2488
f80c6f3f
DE
24892012-07-12 Doug Evans <dje@google.com>
2490
2491 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
2492
0bfa869d
DE
24932012-07-10 Doug Evans <dje@google.com>
2494
f4dc4d17
DE
2495 PR gdb/13498
2496 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
2497 all_type_unit_groups, type_unit_groups, tu_stats.
2498 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
2499 All uses updated. Add type_unit_group to union "s".
2500 (type_unit_group): New struct.
2501 (IS_TYPE_UNIT_GROUP): New macro.
2502 (abbrev_table): Delete unused member "section".
2503 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
2504 (dw2_get_cu): Assert not used with type_unit_group.
2505 (dw2_get_primary_cu): New function.
2506 (dw2_build_type_unit_groups_reader): New function.
2507 (dw2_build_type_unit_groups): New function.
2508 (dw2_get_file_names): Assert not called on type units.
2509 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
2510 Redo loop to iterate over type unit groups instead of type units.
2511 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
2512 (read_abbrev_offset): New function.
2513 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
2514 updated.
2515 (create_partial_symtab): New function.
2516 (process_psymtab_comp_unit_reader): Assert not used with type units.
2517 Call create_partial_symtab.
2518 (process_psymtab_type_unit): Delete.
2519 (hash_type_unit_group, eq_type_unit_group): New functions.
2520 (allocate_type_unit_groups_table): New function.
2521 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
2522 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
2523 (create_type_unit_group, get_type_unit_group): New functions.
2524 (tu_abbrev_offset): New struct.
2525 (sort_tu_by_abbrev_offset): New function.
2526 (add_type_unit_group_to_table): New function.
2527 (build_type_unit_groups): New function.
2528 (build_type_psymtabs_reader): New function.
2529 (build_type_psymtab_dependencies): New function.
2530 (build_type_psymtabs): Rewrite.
2531 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
2532 is seen in a type unit.
2533 (process_queue): Move symtab expansion debugging printfs here.
2534 Call process_full_type_unit for type units.
2535 (compute_symtab_includes): Assert not called for type units.
2536 (process_cu_includes): Don't call compute_symtab_includes for
2537 type units.
2538 (process_full_type_unit): New function.
2539 (process_imported_unit_die): Flag an error if called for type units.
2540 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
2541 updated. Assert not called for type units.
2542 (read_file_scope): Call dwarf2_start_symtab.
2543 (setup_type_unit_groups): New function.
2544 (read_type_unit_scope): Rewrite.
2545 (abbrev_table_read_table): Initialize abbrev_table->offset.
2546 (abbrev_table_free_cleanup): New function.
2547 (dwarf2_start_symtab): New function.
2548 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
2549 * buildsym.c (finish_block_internal): New arg "expandable".
2550 All callers updated.
2551 (start_symtab): Move most contents to ...
2552 (restart_symtab): ... here. New function.
2553 (reset_symtab_globals): New function.
2554 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
2555 Call reset_symtab_globals.
2556 (end_symtab, end_expandable_symtab): New functions.
2557 (set_missing_symtab, augment_type_symtab): New functions.
2558 * buildsym.h (end_expandable_symtab): Declare.
2559 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
2560 * psympriv.h (struct partial_symtab): New member "anonymous".
2561 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
2562 anonymous psymtabs.
2563 (read_psymtabs_with_filename): Ditto.
2564 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
2565 (expand_symtabs_matching_via_partial): Ditto.
2566 (dump_psymtab): Update.
0bfa869d
DE
2567 * dictionary.c (dict_add_pending): New function.
2568 * dictionary.h (dict_add_pending): Declare.
2569
45e58e77
DE
25702012-07-09 Doug Evans <dje@google.com>
2571
b74db436
DE
2572 * buildsym.c (start_subfile): Remove unnecessary check for
2573 name == NULL.
2574
fd55216c
DE
2575 * psymtab.c (allocate_psymtab): Use host_address_to_string.
2576
6721b2ec
DE
2577 * dwarf2read.c (load_full_type_unit): Simplify.
2578
b4dd5633
DE
2579 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
2580 to struct signatured_type **. All uses updated.
2581
45e58e77
DE
2582 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
2583 All callers updated.
2584
e314d629
TT
25852012-07-09 Tom Tromey <tromey@redhat.com>
2586
2587 * c-exp.y (check_parameter_typelist): New function.
2588 (parameter_typelist): Call it.
2589 * eval.c (make_params): Handle '(void)' case.
2590 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2591 '(void)' case.
2592
aa7c7447
JK
25932012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2594
2595 * common/linux-ptrace.c: Include gdb_assert.h.
2596 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2597 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2598 stdint.h.
2599 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2600 functions.
2601 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2602 * linux-nat.c (linux_child_post_attach)
2603 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2604
889003ed
JK
26052012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2606
2607 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2608 nptl <2.7 bug workaround for core files.
2609
da559b09
JK
26102012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2611
2612 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2613 clearing.
2614 (save_siginfo): Remove.
2615 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2616 call.
2617 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2618 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2619 * linux-nat.h (struct lwp_info): Remove field siginfo.
2620
f865ee35
JK
26212012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2622
2623 Code cleanup for the next patch.
2624 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2625 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2626 call for it.
2627 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2628 (ia64_linux_stopped_data_address):
2629 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2630 the return value.
2631 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2632 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2633 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2634 call for it.
2635
76b83c51
JK
26362012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 PR 14321
2639 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2640 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2641
a6fb9c08
TT
26422012-07-06 Tom Tromey <tromey@redhat.com>
2643
2644 * c-exp.y (DOTDOTDOT): New token.
2645 (func_mod, exp): Use parameter_typelist.
2646 (parameter_typelist): New production.
2647 (tokentab3): Add "..." token.
2648 * eval.c (make_params): Handle varargs.
2649 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2650 varargs.
2651
71918a86
TT
26522012-07-06 Tom Tromey <tromey@redhat.com>
2653
2654 PR exp/9608:
2655 * c-exp.y (%union) <tvec>: Change type.
2656 (func_mod): Now uses <tvec> type.
2657 (exp): Update for tvec change.
2658 (direct_abs_decl): Push the typelist.
2659 (func_mod): Return a typelist.
2660 (nonempty_typelist): Update for tvec change.
2661 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2662 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2663 * parse.c (pop_type_list): New function.
2664 (push_typelist): New function.
2665 (follow_types): Handle tp_function_with_arguments.
2666 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2667 (enum type_pieces) <tp_function_with_arguments>: New constant.
2668 (union type_stack_elt) <typelist_val>: New field.
2669 (push_typelist): Declare.
2670
fcde5961
TT
26712012-07-06 Tom Tromey <tromey@redhat.com>
2672
2673 * c-exp.y (%union) <type_stack>: New field.
2674 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2675 (ptr_operator_ts): New production.
2676 (ptype): Update.
2677 * parse.c (type_stack_reserve): New function.
2678 (check_type_stack_depth): Use it.
2679 (pop_type_stack, append_type_stack, push_type_stack)
2680 (get_type_stack, type_stack_cleanup): New functions.
2681 (follow_types): Handle tp_type_stack.
2682 (_initialize_parse): Simplify initialization.
2683 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2684 constant.
2685 (union type_stack_elt) <stack_val>: New field.
2686 (get_type_stack, append_type_stack, push_type_stack)
2687 (type_stack_cleanup): Declare.
2688
1a7d0ce4
TT
26892012-07-06 Tom Tromey <tromey@redhat.com>
2690
2691 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2692 Remove.
2693 (struct type_stack): New.
2694 * parse.c (type_stack, type_stack_size, type_stack_depth):
2695 Remove.
2696 (type_stack): New global.
2697 (parse_exp_in_context, check_type_stack_depth)
2698 (insert_into_type_stack, insert_type, push_type, push_type_int)
2699 (insert_type_address_space, pop_type, pop_type_int)
2700 (_initialize_parse): Update.
2701
16d01384
TT
27022012-07-06 Tom Tromey <tromey@redhat.com>
2703
2704 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2705 Remove %type.
2706
9bfc60bf
SP
27072012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2708
2709 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2710
d5161074
SP
27112012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2712 Jan Kratochvil <jan.kratochvil@redhat.com>
2713
2714 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2715 alloca with xmalloc/xfree.
2716
a74bc576
SP
27172012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2718
2719 * MAINTAINERS (Write After Approval): Add myself to the list.
2720
667e0a4b
DE
27212012-07-05 Doug Evans <dje@google.com>
2722
2723 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2724
34b536a8
HZ
27252012-07-05 Hui Zhu <hui_zhu@mentor.com>
2726
2727 * ax-gdb.c (cli/cli-utils.h): New include.
2728 (linespec.h): Ditto.
2729 (agent_eval_command_one): New function.
2730 (agent_command_1): Ditto.
2731 (agent_command): Call function agent_command_1.
2732 (agent_eval_command): Ditto.
2733 (_initialize_ax_gdb): Change help for "maint agent"
2734 and "maint agent-eval".
2735
e6f0bce7
HZ
27362012-07-05 Hui Zhu <hui_zhu@mentor.com>
2737
2738 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2739 * cli/cli-utils.c (check_for_argument): New function.
2740 * cli/cli-utils.h (check_for_argument): Ditto.
2741
1b3371b1
L
27422012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2743
2744 * NEWS: Mention x32 ABI support.
2745
23e2d720
L
27462012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2747
2748 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2749 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2750
2751 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2752 and pc_regnum_from_eax to -1. Update SP regnum from
2753 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2754 needed.
2755
2756 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2757 pc_regnum_from_eax.
2758
836bf454
JK
27592012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2760
2761 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2762 * dwarf2expr.h: Include gdbtypes.h.
2763 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2764 these forward declarations.
2765 (cu_offset, sect_offset): Move these ...
2766 * gdbtypes.h: Remove include dwarf2expr.h.
2767 (cu_offset, sect_offset): ... here.
2768
1e55e04f
L
27692012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2770
2771 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2772 (amd64_linux_sigtramp_code): This.
2773 (amd64_x32_linux_sigtramp_code): New.
2774 (LINUX_SIGTRAMP_LEN): Updated.
2775 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2776
7d0e21ad
JK
27772012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2778
2779 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2780
8775fd2d
JK
27812012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2782
2783 * config.in: Regenerate.
2784 * configure: Regenerate.
2785 * configure.ac: Remove check for gnu/libc-version.h.
2786 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2787 gnu/libc-version.h.
2788 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2789 variables libc_version, libc_major and libc_minor. Replace sscanf by
2790 inferior_has_bug. Extend the comment.
2791
fcb44371
JK
27922012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2793
2794 * linux-thread-db.c (inferior_has_bug): New function.
2795 (thread_db_find_new_threads_silently): Return boolean as checked by
2796 inferior_has_bug, describe it in the comments.
2797 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2798 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2799 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2800 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2801 if UNTIL_NO_NEW,
2802
09406207
DE
28032012-07-02 Doug Evans <dje@google.com>
2804
0907af0c
DE
2805 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2806 related to queue management.
2807
09406207
DE
2808 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2809 instead of "debug dwarf2-die" in debugging printfs.
2810 (create_debug_info_hash_table_reader): Ditto.
2811 (create_debug_info_hash_table): Ditto.
2812 (init_dwo_file): Ditto.
2813 (init_cutu_and_read_dies): Add debugging printf.
2814 (init_cutu_and_read_dies_no_follow): Ditto.
2815 (process_psymtab_comp_unit_reader): Ditto.
2816
d3ce09f5
SS
28172012-07-02 Stan Shebs <stan@codesourcery.com>
2818
2819 Add target-side support for dynamic printf.
2820 * NEWS: Mention the additional style.
2821 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2822 (struct bp_location): New field cmd_bytecode.
2823 * breakpoint.c: Include format.h.
2824 (disconnected_dprintf): New global.
2825 (parse_cmd_to_aexpr): New function.
2826 (build_target_command_list): New function.
2827 (insert_bp_location): Call it.
2828 (remove_breakpoints_pid): Skip dprintf breakpoints.
2829 (print_one_breakpoint_location): Ditto.
2830 (dprintf_style_agent): New global.
2831 (dprintf_style_enums): Add dprintf_style_agent.
2832 (update_dprintf_command_list): Add agent case.
2833 (agent_printf_command): New function.
2834 (_initialize_breakpoint): Add new commands.
2835 * common/ax.def (printf): New bytecode.
2836 * ax.h (ax_string): Declare.
2837 * ax-gdb.h (gen_printf): Declare.
2838 * ax-gdb.c: Include cli-utils.h, format.h.
2839 (gen_printf): New function.
2840 (maint_agent_print_command): New function.
2841 (_initialize_ax_gdb): Add maint agent-printf command.
2842 * ax-general.c (ax_string): New function.
2843 (ax_print): Add printf disassembly.
2844 * Makefile.in (SFILES): Add format.c
2845 (COMMON_OBS): Add format.o.
2846 * common/format.h: New file.
2847 * common/format.c: New file.
2848 * printcmd.c: Include format.h.
2849 (ui_printf): Call parse_format_string.
2850 * remote.c (remote_state): New field breakpoint_commands.
2851 (PACKET_BreakpointCommands): New enum.
2852 (remote_breakpoint_commands_feature): New function.
2853 (remote_protocol_features): Add new BreakpointCommands entry.
2854 (remote_can_run_breakpoint_commands): New function.
2855 (remote_add_target_side_commands): New function.
2856 (remote_insert_breakpoint): Call it.
2857 (remote_insert_hw_breakpoint): Ditto.
2858 (_initialize_remote): Add new packet configuration for
2859 target-side breakpoint commands.
2860 * target.h (struct target_ops): New field
2861 to_can_run_breakpoint_commands.
2862 (target_can_run_breakpoint_commands): New macro.
2863 * target.c (update_current_target): Handle
2864 to_can_run_breakpoint_commands.
2865
2d7b58e8
JK
28662012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2867
2868 Execute -ix and -iex only after system and user gdbinit files.
2869 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2870 processing down after gdbinit files.
2871
8690e634
JK
28722012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2873
2874 Add fnmatch-gnu module.
2875 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2876 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2877 * gnulib/aclocal.m4: Regenerate.
2878 * gnulib/config.in: Regenerate.
2879 * gnulib/configure: Regenerate.
2880 * gnulib/import/dummy.c: Remove.
2881 * gnulib/import/Makefile.am: Regenerate.
2882 * gnulib/import/Makefile.in: Likewise.
2883 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2884 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2885 * gnulib/import/alloca.c: New file.
2886 * gnulib/import/alloca.in.h: Likewise.
2887 * gnulib/import/config.charset: Likewise.
2888 * gnulib/import/fnmatch.c: Likewise.
2889 * gnulib/import/fnmatch.in.h: Likewise.
2890 * gnulib/import/fnmatch_loop.c: Likewise.
2891 * gnulib/import/localcharset.c: Likewise.
2892 * gnulib/import/localcharset.h: Likewise.
2893 * gnulib/import/m4/alloca.m4: Likewise.
2894 * gnulib/import/m4/codeset.m4: Likewise.
2895 * gnulib/import/m4/configmake.m4: Likewise.
2896 * gnulib/import/m4/fcntl-o.m4: Likewise.
2897 * gnulib/import/m4/fnmatch.m4: Likewise.
2898 * gnulib/import/m4/glibc21.m4: Likewise.
2899 * gnulib/import/m4/localcharset.m4: Likewise.
2900 * gnulib/import/m4/locale-fr.m4: Likewise.
2901 * gnulib/import/m4/locale-ja.m4: Likewise.
2902 * gnulib/import/m4/locale-zh.m4: Likewise.
2903 * gnulib/import/m4/mbrtowc.m4: Likewise.
2904 * gnulib/import/m4/mbsinit.m4: Likewise.
2905 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2906 * gnulib/import/m4/mbstate_t.m4: Likewise.
2907 * gnulib/import/m4/stdbool.m4: Likewise.
2908 * gnulib/import/m4/wchar_h.m4: Likewise.
2909 * gnulib/import/m4/wctype_h.m4: Likewise.
2910 * gnulib/import/m4/wint_t.m4: Likewise.
2911 * gnulib/import/mbrtowc.c: Likewise.
2912 * gnulib/import/mbsinit.c: Likewise.
2913 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2914 * gnulib/import/mbsrtowcs-state.c: Likewise.
2915 * gnulib/import/mbsrtowcs.c: Likewise.
2916 * gnulib/import/ref-add.sin: Likewise.
2917 * gnulib/import/ref-del.sin: Likewise.
2918 * gnulib/import/stdbool.in.h: Likewise.
2919 * gnulib/import/streq.h: Likewise.
2920 * gnulib/import/strnlen1.c: Likewise.
2921 * gnulib/import/strnlen1.h: Likewise.
2922 * gnulib/import/verify.h: Likewise.
2923 * gnulib/import/wchar.in.h: Likewise.
2924 * gnulib/import/wctype.in.h: Likewise.
2925
202cbf1c
JK
29262012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2927
2928 Support shell wildcards for 'set auto-load safe-path'.
2929 * auto-load.c: Include fnmatch.h.
2930 (filename_is_in_dir): Rename to ...
2931 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2932 it. Update function comment. Rename dir_len to pattern_len. New
2933 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2934 messages. Use gdb_filename_fnmatch.
2935 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2936 pattern.
2937 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2938 * defs.h (gdb_filename_fnmatch): New declaration.
2939 * utils.c: Include fnmatch.h.
2940 (gdb_filename_fnmatch): New function.
2941
fb7b5af4
SDJ
29422012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2943
2944 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2945 `-probe' and `-probe-stap' options.
2946
72d0e2c5
YQ
29472012-07-01 Yao Qi <yao@codesourcery.com>
2948
2949 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2950 always_inserted_off, and always_inserted_enums.
2951 Change always_inserted_mode's type to 'enum auto_boolean'.
2952 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2953 callers.
2954 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2955 of add_setshow_enum_cmd.
2956 * infrun.c: Remove can_use_displaced_stepping_auto,
2957 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2958 can_use_displaced_stepping_enum.
2959 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2960 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2961 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2962 add_setshow_enum_cmd.
2963
42e7ad6c
DE
29642012-06-30 Doug Evans <dje@google.com>
2965
2966 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2967 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2968 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2969
39cf75f7
DE
29702012-06-29 Doug Evans <dje@google.com>
2971
2972 * linespec.c: #include "stack.h".
2973 (decode_line_with_current_source): Moved here from symtab.c and
2974 renamed from decode_line_spec. All callers updated.
2975 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2976 renamed from decode_line_spec_1. All callers updated.
2977 * linespec.h (decode_line_with_current_source): Move declaration here
2978 from symtab.h and renamed from decode_line_spec.
2979 (decode_line_with_last_displayed): Move declaration here from symtab.h
2980 and renamed from decode_line_spec_1.
2981 * macrocmd.c: #include "linespec.h".
2982 * symtab.c: Remove #include "linespec.h".
2983
433df2d4
DE
29842012-06-28 Doug Evans <dje@google.com>
2985
1ce1cefd
DE
2986 * dwarf2read.c (get_cu_length): New function.
2987 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2988 (create_debug_types_hash_table): Ditto.
2989 (init_cutu_and_read_dies): Ditto.
2990 (init_cutu_and_read_dies_no_follow): Ditto.
2991
3b80fe9b
DE
2992 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2993
433df2d4
DE
2994 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2995 (struct abbrev_table): Define.
2996 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2997 abbrev_table.
2998 (init_cutu_and_read_dies): Update.
2999 (abbrev_table_alloc_abbrev): New function. Replaces
3000 dwarf_alloc_abbrev. All callers updated.
3001 (abbrev_table_add_abbrev): New function.
3002 (abbrev_table_lookup_abbrev): New function. Replaces
3003 dwarf2_lookup_abbrev. All callers updated.
3004 (abbrev_table_read_table): New function. Contents moved here from
3005 dwarf2_read_abbrevs.
3006 (dwarf2_read_abbrevs): Call it.
3007 (abbrev_table_free): New function.
3008 (dwarf2_free_abbrev_table): Call it.
3009
71caed83
SS
30102012-06-28 Stan Shebs <stan@codesourcery.com>
3011
3012 * osdata.c (info_osdata_command): Filter out "Title" columns
3013 from non-MI uses.
3014 * common/linux-osdata.c (struct osdata_type): Add title field.
3015 (osdata_table): Add titles to each entry.
3016 (linux_command_xfer_osdata): Add a column for title data.
3017
37ce89eb
SS
30182012-06-28 Stan Shebs <stan@codesourcery.com>
3019
3020 Make logging work for MI.
3021 * NEWS: Mention it.
3022 * interps.h (interp_set_logging_ftype): New typedef.
3023 (struct interp_procs): New field set_logging_proc.
3024 (current_interp_set_logging): Declare.
3025 * interps.c (current_interp_set_logging): New function.
3026 * cli/cli-logging.c: Include interps.h.
3027 (set_logging_redirect): Call current_interp_set_logging.
3028 (pop_output_files): Ditto.
3029 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
3030 * mi/mi-console.h (mi_console_set_raw): Declare.
3031 * mi/mi-console.c (mi_console_set_raw): New function.
3032 * mi/mi-interp.c (saved_raw_stdout): New global.
3033 (mi_set_logging): New function.
3034 (_initialize_mi_interp): Add it to interp procs.
3035
659c9f3a
DE
30362012-06-28 Doug Evans <dje@google.com>
3037
a743abeb
DE
3038 * symtab.c (lookup_symbol_aux_objfile): Use
3039 ALL_OBJFILE_PRIMARY_SYMTABS.
3040
659c9f3a
DE
3041 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
3042
da2d6d3d
JK
30432012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3044
3045 * common/buffer.c: Include inttypes.h and stdint.h.
3046 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
3047
e5ef252a
PA
30482012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3049 Pedro Alves <palves@redhat.com>
3050
3051 * gdbthread.h (ALL_THREADS): New macro.
3052 (thread_list): Declare.
3053 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
3054 going, but instead fall through to the stepping handling.
3055 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
3056 the passed in signal. Adjust debug output.
3057 (resume_callback): Rename to ...
3058 (linux_nat_resume_callback): ... this. Pass the thread's last
3059 stop signal, if in "pass" state.
3060 (linux_nat_resume): Adjust to rename.
3061 (stop_wait_callback): New assertion. Don't respawn signals;
3062 instead let the LWP remain with SIGNALLED set.
3063 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
3064 * remote.c (append_pending_thread_resumptions): New.
3065 (remote_vcont_resume): Call it.
3066 * target.h (target_resume): Extend comment.
3067
1d7975eb
IS
30682012-06-28 Iain Sandoe <iain@codesourcery.com>
3069
3070 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
3071
2e3cf129
DE
30722012-06-27 Doug Evans <dje@google.com>
3073
3074 * dwarf2read.c (dwarf2_cu): Add ranges_base.
3075 Delete have_addr_base, unused. All uses updated.
3076 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
3077 (dwarf2_get_pc_bounds): Add ranges_base.
3078 (dwarf2_record_block_ranges): Ditto.
3079
1bb9788d
TT
30802012-06-27 Tom Tromey <tromey@redhat.com>
3081
3082 PR macros/7961:
3083 * varobj.c (varobj_create): Update.
3084 (varobj_set_value): Update.
3085 * tracepoint.c (validate_actionline): Update.
3086 (encode_actions_1): Update.
3087 * parse.c (parse_exp_1): Add 'pc' argument.
3088 (parse_exp_in_context): Add 'pc' argument. Change how
3089 expression_context_pc is set.
3090 (parse_expression): Update.
3091 (parse_field_expression): Update.
3092 * expression.h (parse_exp_1): Update.
3093 * eval.c (parse_to_comma_and_eval): Update.
3094 * breakpoint.c (set_breakpoint_condition): Update.
3095 (update_watchpoint): Update.
3096 (init_breakpoint_sal): Update
3097 (find_condition_and_thread): Update.
3098 (watch_command_1): Update.
3099 (update_breakpoint_locations): Update.
3100 * ada-lang.c (ada_read_renaming_var_value): Update.
3101 (create_excep_cond_exprs): Update.
3102
0bc3a05c
DE
31032012-06-27 Doug Evans <dje@google.com>
3104
3105 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
3106 type units.
3107
4bdcc0c1
DE
31082012-06-26 Doug Evans <dje@google.com>
3109
3110 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
3111 prototype.
3112 (error_check_comp_unit_head): New arg abbrev_section. All callers
3113 updated.
3114 (read_and_check_comp_unit_head): Ditto.
3115 (read_and_check_type_unit_head): Ditto.
3116
ee0bf529
SCR
31172012-06-26 Siva Chandra Reddy <sivachandra@google.com>
3118
3119 New attribute 'last' for gdb.Symtab_and_line.
3120 * NEWS (Python Scripting): Add entry about the new attribute.
3121 * python/py-symtab.c (salpy_get_last): New function which
3122 implements the get method for the 'last' attribute of
3123 gdb.Symtab_and_line.
3124 (sal_object_getset): Add entry for the 'last' attribute.
3125
1c658ad5
DE
31262012-06-26 Doug Evans <dje@google.com>
3127
09262596
DE
3128 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
3129 (dwo_sections): Add macinfo, macro.
3130 (dwarf2_locate_dwo_sections): Watch for macro sections.
3131 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
3132 All callers updated. Handle DWO files.
3133
45cfd468
DE
3134 * NEWS: Mention new options "set debug dwarf2-read" and
3135 "set debug symtab-create".
3136 * dwarf2read.c (dwarf2_read_debug): New static global.
3137 (dwarf2_build_psymtabs_hard): Add debugging printfs.
3138 (process_queue): Ditto.
3139 (process_full_comp_unit): Ditto.
3140 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
3141 * elfread.c (elf_symfile_read): Add debugging printf.
3142 * minsyms.c (install_minimal_symbols): Ditto.
3143 * psymtab.c (allocate_psymtab): Ditto.
3144 * symfile.c (allocate_symtab): Ditto.
3145 * symtab.c (symtab_create_debug): New global.
3146 (_initialize_symtab): Add new option "set debug symtab-create".
3147 * symtab.h (symtab_create_debug): Declare.
3148
1c658ad5
DE
3149 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
3150 (lookup_dwo_type_unit): Ditto.
3151
6fea9e18
L
31522012-06-26 Roland McGrath <roland@hack.frob.com>
3153 H.J. Lu <hongjiu.lu@intel.com>
3154
3155 * amd64-linux-nat.c: Include <sys/user.h>.
3156 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
3157 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
3158 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
3159
3160 * configure.ac: Check if the fs_base and gs_base members of
3161 `struct user_regs_struct' exist.
3162 * config.in: Regenerated.
3163 * configure: Likewise.
3164
adb4fe3b
ME
31652012-06-25 Michael Eager <eager@eagercon.com>
3166
3167 PR python/14291
f782ad9b 3168 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 3169
fc51cce1
MGD
31702012-06-25 Greta Yorsh <greta.yorsh@arm.com>
3171
3172 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
3173 register as a stack alignment in ARM mode.
3174
40a73391
JK
31752012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
3178 * gnulib/config.in: Regenerate.
3179 * gnulib/configure: Likewise.
3180 * gnulib/import/m4/extensions.m4: Update it.
3181 * gnulib/import/m4/gnulib-common.m4: Likewise.
3182 * gnulib/import/m4/memmem.m4: Likewise.
3183 * gnulib/import/m4/mmap-anon.m4: Likewise.
3184 * gnulib/import/m4/multiarch.m4: Likewise.
3185 * gnulib/import/stdint.in.h: Likewise.
3186
972daa01
YQ
31872012-06-24 Yao Qi <yao@codesourcery.com>
3188
3189 * corefile.c (write_memory_with_notification): New.
3190 * gdbcore.h: Declare write_memory_with_notification.
3191 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
3192 'observer_notify_memory_changed' with 'write_memory_with_notification'.
3193 * valops.c (value_assign): Likewise.
3194 * python/py-inferior.c (infpy_write_memory): Call
3195 'write_memory_with_notification'.
3196
8d6e0714
JK
31972012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3198
3199 * cc-with-index.sh: Use also -ex "set auto-load no".
3200
156942c7
DE
32012012-06-23 Doug Evans <dje@google.com>
3202
3203 PR 14125
3204 * NEWS: Document additions to .gdb_index.
3205 * dwarf2read.c: #include "gdb/gdb-index.h".
3206 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
3207 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
3208 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
3209 (dwarf2_read_index): Recognize version 7.
3210 (dw2_do_expand_symtabs_matching): New args want_specific_block,
3211 block_kind, domain): All callers updated.
3212 (dw2_find_symbol_file): Handle new index CU values.
3213 (dw2_expand_symtabs_matching): Match symbol kind if requested.
3214 (add_index_entry): New args is_static, kind. All callers updated.
3215 (offset_type_compare, uniquify_cu_indices): New functions
3216 (symbol_kind): New function.
3217 (write_psymtabs_to_index): Remove duplicate CU values.
3218 (write_psymtabs_to_index): Write .gdb_index version 7.
3219
352b3eda
JB
32202012-06-22 Joel Brobecker <brobecker@adacore.com>
3221
3222 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
3223 * configure: Regenerate.
3224
2678e2af
YQ
32252012-06-20 Yao Qi <yao@codesourcery.com>
3226
3227 * python/py-inferior.c: Update comments of infpy_read_memory
3228 and infpy_write_memory.
3229
95c391b6
TT
32302012-06-19 Tom Tromey <tromey@redhat.com>
3231
3232 PR exp/9514:
3233 * parser-defs.h (insert_type, insert_type_address_space): Declare.
3234 (push_type_address_space): Remove.
3235 * parse.c (insert_into_type_stack): New function.
3236 (insert_type): Likewise.
3237 (insert_type_address_space): Rename from push_type_address_space.
3238 Insert tp_space_identifier.
3239 * c-exp.y (ptr_operator): New production.
3240 (abs_decl): Use ptr_operator.
3241 (space_identifier): Call insert_type_address_space.
3242 (ptype): Don't use const_or_volatile_or_space_identifier.
3243 (const_or_volatile_noopt): Call insert_type.
3244 (conversion_type_id, conversion_declarator): New productions.
3245 (operator): Use conversion_type_id.
3246
6ac9ef80
DE
32472012-06-18 Doug Evans <dje@google.com>
3248
422d65e7
DE
3249 * symtab.h (minimal_symbol): New member created_by_gdb.
3250 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
3251 created by gdb.
3252 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
3253 (search_symbols): Call it instead of lookup_symbol.
3254 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
3255
49f6c839
DE
3256 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
3257 Adjust address for DW_OP_GNU_addr_index.
3258 * dwarf2expr.h (dwarf_expr_context): Update comment.
3259 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
3260 all callers updated. Handle TLS vars described with
3261 DW_OP_GNU_const_index.
3262 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
3263 and DW_OP_GNU_const_index.
3264 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
3265
6ac9ef80
DE
3266 * block.c (find_block_in_blockvector): Make explicit the fact that we
3267 ignore GLOBAL_BLOCK.
3268
4cd18215
TT
32692012-06-18 Tom Tromey <tromey@redhat.com>
3270
3271 * c-exp.y (operator): Remove trailing space after "delete" and
3272 "delete[]".
3273
a9b8d892
JK
32742012-06-18 Mark Kettenis <kettenis@gnu.org>
3275 Jan Kratochvil <jan.kratochvil@redhat.com>
3276
3277 Switch i386 and derived targets to ON_STACK.
3278 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
3279 (amd64_dicos_init_abi): Remove its installment.
3280 * dicos-tdep.c (dicos_init_abi): Remove the
3281 set_gdbarch_call_dummy_location call. Update the comment here.
3282 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
3283 (i386_dicos_init_abi): Remove its installment.
3284 * i386-tdep.c (i386_push_dummy_code): New function.
3285 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
3286 i386_push_dummy_code.
3287
e2e4d78b
JK
32882012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3289
3290 Remove stale dummy frames.
3291 * breakpoint.c: Include dummy-frame.h.
3292 (longjmp_breakpoint_ops): New variable.
3293 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
3294 bp_longjmp_call_dummy.
3295 (bpstat_what, bptype_string, print_one_breakpoint_location)
3296 (init_bp_location): Support bp_longjmp_call_dummy.
3297 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
3298 (set_longjmp_breakpoint_for_call_dummy)
3299 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
3300 functions.
3301 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
3302 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
3303 FIXME comment and extend the other comment for bp_call_dummy.
3304 (set_longjmp_breakpoint_for_call_dummy)
3305 (check_longjmp_breakpoint_for_call_dummy): New declarations.
3306 * dummy-frame.c: Include gdbthread.h.
3307 (pop_dummy_frame_bpt): New function.
3308 (pop_dummy_frame): Call pop_dummy_frame_bpt.
3309 (dummy_frame_discard): New function.
3310 (cleanup_dummy_frames): Update the comment about longjmps.
3311 * dummy-frame.h (dummy_frame_discard): New declaration.
3312 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
3313 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
3314 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
3315 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
3316 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
3317 keep_going if IS_LONGJMP and there is no other reason to stop.
3318
09d5912c
TT
33192012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
3320
3321 * remote-sim.c (sim_command_completer): Initialize
3322 variable 'result'.
3323
1788b2d3
JK
33242012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3325
3326 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
3327 * dwarf2loc.c (call_site_parameter_matches): Support
3328 CALL_SITE_PARAMETER_PARAM_OFFSET.
3329 (needs_dwarf_reg_entry_value): Push stub value.
3330 * dwarf2read.c (read_call_site_scope): New variable origin. Support
3331 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
3332 * gdbtypes.h (enum call_site_parameter_kind): New item
3333 CALL_SITE_PARAMETER_PARAM_OFFSET.
3334 (struct call_site.parameter.u): New field param_offset.
3335
24c5c679
JK
33362012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3337
3338 Code cleanup: Generalize call_site.parameter key.
3339 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
3340 variable dwarf_reg. New variable kind_u. Update parameters to
3341 push_dwarf_reg_entry_value.
3342 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3343 * dwarf2expr.h (enum call_site_parameter_kind)
3344 (union call_site_parameter_u): Forward declarations.
3345 (struct dwarf_expr_context_funcs): Update parameters and their
3346 description for push_dwarf_reg_entry_value.
3347 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
3348 * dwarf2loc.c (call_site_parameter_matches): New function.
3349 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
3350 description. Use call_site_parameter_matches.
3351 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
3352 Update parameters and their description.
3353 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
3354 New variable kind_u. Adjust the caller for updated parameters.
3355 (needs_dwarf_reg_entry_value): Update parameters.
3356 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
3357 instead of attr. Update for the changed fields of struct
3358 call_site_parameter.
3359 * gdbtypes.h: Include dwarf2expr.h.
3360 (enum call_site_parameter_kind): New.
3361 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
3362 fb_offset into new union u.
3363
ac142d96
L
33642012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3365
3366 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
3367 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
3368 for x32.
3369
ba224c70
L
33702012-06-16 H.J. Lu <hongjiu.lu@intel.com>
3371
3372 * amd64-linux-nat.c (compat_x32_clock_t): New.
3373 (compat_x32_siginfo_t): Likewise.
3374 (compat_x32_siginfo_from_siginfo): Likewise.
3375 (siginfo_from_compat_x32_siginfo): Likewise.
3376 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
3377 and siginfo_from_compat_x32_siginfo for x32.
3378
7ecbc825
HZ
33792012-06-15 Hui Zhu <hui_zhu@mentor.com>
3380
3381 * tracepoint.c (tfile_xfer_partial): Add a lseek.
3382
233dfcf0
L
33832012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3384
3385 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
3386 instead of gdbarch_ptr_bit.
3387 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
3388 (amd64_supply_native_gregset): Likewise.
3389 (amd64_collect_native_gregset): Likewise.
3390 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
3391 (amd64_supply_xsave): Likewise.
3392 (amd64_collect_fxsave): Likewise.
3393 (amd64_collect_xsave): Likewise.
3394
6da38f42
L
33952012-06-15 H.J. Lu <hongjiu.lu@intel.com>
3396
3397 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
3398 (amd64_linux_read_description): Check DS segment register for
3399 x32 process.
3400
663b969e
TT
34012012-06-15 Tom Tromey <tromey@redhat.com>
3402
3403 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
3404 init_cutu_and_read_dies.
3405
d6f05027
IS
34062012-06-15 Iain Sandoe <iain@codesourcery.com>
3407
3408 * MAINTAINERS (Write After Approval): Add myself to the list.
3409
6598ed07
TT
34102012-06-15 Tom Tromey <tromey@redhat.com>
3411
3412 * valops.c (value_find_oload_method_list): Now static.
3413 * value.h (value_find_oload_method_list): Don't declare.
3414
2b214ea6
TT
34152012-06-15 Tom Tromey <tromey@redhat.com>
3416
3417 * valops.c (find_overload_match): Use value_ind.
3418
a210c238
MR
34192012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
3420
3421 * infrun.c (handle_inferior_event): Correct indentation.
3422
3771a44c
DE
34232012-06-14 Doug Evans <dje@google.com>
3424
3425 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
3426 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
3427 All uses updated.
3428 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
3429 updated. Handle DEBUG_LOC_START_LENGTH.
3430 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
3431 (loclist_describe_location): Ditto.
3432
1c5a993e
MR
34332012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
3434
3435 PR backtrace/13866
3436 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
3437 after hiding inline functions.
3438
0b155465
JB
34392012-06-13 Joel Brobecker <brobecker@adacore.com>
3440
3441 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
3442 _initialize_inf_ttrace.
3443
45717bac
JB
34442012-06-13 Joel Brobecker <brobecker@adacore.com>
3445
3446 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
3447 _initialize_hppa_hpux_nat.
3448
34370865
JB
34492012-06-13 Joel Brobecker <brobecker@adacore.com>
3450
3451 * remote-sim.c (sim_command_completer): Change type of return
3452 value to "VEC (char_ptr) *". Adjust implementation accordingly.
3453
284c5a60
MK
34542012-06-13 Mark Kettenis <kettenis@gnu.org>
3455 Jan Kratochvil <jan.kratochvil@redhat.com>
3456
3457 PR tdep/14222
3458 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
3459 stack on a 16-byte boundary.
3460
2535757a
TT
34612012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
3462
3463 * jit.c (finalize_symtab): Set function's return type to 'void' by
3464 default.
3465
fff4548b
MK
34662012-06-13 Mark Kettenis <kettenis@gnu.org>
3467 H.J. Lu <hongjiu.lu@intel.com>
3468
5a83521a
MK
3469 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
3470 Move bits common to both the classic LP64 and the new x32 ILP32
3471 ABI here.
3472 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
3473 (amd64_x32_linux_init_abi): New function.
3474 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
3475 subtype.
3476
fff4548b
MK
3477 * i386-tdep.h (i386_pseudo_register_name): New prototype.
3478 * i386-tdep.c (i386_pseudo_register_name): Make public.
3479 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
3480 * amd64-tdep.c (amd64_dword_names): Add "eip".
3481 (amd64_x32_pseudo_register_type): New function
3482 (amd64_x32_init_abi): New function.
3483
dd80ea3c
JK
34842012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3485
3486 PR build/14003
3487 * inferior.h (struct inferior_suspend_state): Comment out.
3488 (struct inferior): Comment out the field suspend.
3489 * infrun.c (struct infcall_suspend_state): Comment out the field
3490 inferior_suspend.
3491 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
3492 out its assignment.
3493
50af5481
JK
34942012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3495
3496 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
3497 * c-exp.y (classify_inner_name): Remove caller assumptions in the
3498 function comment. Return ERROR for unresolved cases. Implement
3499 returning proper NAME.
3500 (yylex): Accept also NAME from classify_inner_name.
3501 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
3502 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
3503 LOC_TYPEDEF type.
3504 * cp-support.h (cp_lookup_nested_type): Update its declaration.
3505
d55637df
TT
35062012-06-13 Tom Tromey <tromey@redhat.com>
3507
3508 * breakpoint.c (condition_completer): New function.
3509 (_initialize_breakpoint): Use it.
3510 * value.c (complete_internalvar): New function.
3511 * value.h (complete_internalvar): Declare.
3512
49c4e619
TT
35132012-06-13 Tom Tromey <tromey@redhat.com>
3514
3515 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
3516 * breakpoint.c (catch_syscall_completer): Return a VEC.
3517 * cli/cli-cmds.c (complete_command): Update.
3518 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
3519 (complete_on_enum): Likewise.
3520 * command.h: Include gdb_vecs.h.
3521 (completer_ftype): Change return type.
3522 (complete_on_cmdlist, complete_on_enum): Likewise.
3523 * completer.c (noop_completer, filename_completer)
3524 (location_completer): Return a VEC.
3525 (add_struct_fields): Remove 'nextp' argument. Change 'output'
3526 to a VEC.
3527 (expression_completer, complete_line_internal, complete_line)
3528 (command_completer): Return a VEC.
3529 (gdb_completion_word_break_characters, line_completion_function):
3530 Update.
3531 * completer.h: Include gdb_vecs.h.
3532 (complete_line, noop_completer, filename_completer)
3533 (expression_completer, location_completer, command_completer):
3534 Update.
3535 * f-lang.c (f_word_break_characters): Return a VEC.
3536 * interps.c (interpreter_completer): Return a VEC.
3537 * language.h (struct language_defn)
3538 <la_make_symbol_completion_list>: Return a VEC.
3539 * python/py-cmd.c (cmdpy_completer): Return a VEC.
3540 * symtab.c (free_completion_list): Take a VEC.
3541 (return_val_size, return_val_index): Remove.
3542 (return_val): Now a VEC.
3543 (completion_list_add_name): Update.
3544 (default_make_symbol_completion_list_break_on)
3545 (default_make_symbol_completion_list, make_symbol_completion_list)
3546 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
3547 Return a VEC.
3548 (add_filename_to_list): Update.
3549 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
3550 <list>: Now a VEC.
3551 (maybe_add_partial_symtab_filename): Update.
3552 (make_source_files_completion_list): Return a VEC.
3553 * symtab.h (default_make_symbol_completion_list_break_on)
3554 (default_make_symbol_completion_list, make_symbol_completion_list)
3555 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
3556 (make_source_files_completion_list): Update.
3557
625e8578
TT
35582012-06-13 Tom Tromey <tromey@redhat.com>
3559
3560 * breakpoint.c (add_catch_command): Use completer_ftype.
3561 * breakpoint.h: Include command.h.
3562 (add_catch_command): Use completer_ftype.
3563 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
3564 * cli/cli-decode.h (struct cmd_list_element) <completer>:
3565 Use completer_ftype.
3566 * command.h (completer_ftype): New typedef.
3567 (set_cmd_completer): Use it.
3568 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
3569 completer_ftype.
3570
5eb3b062
PA
35712012-06-13 Pedro Alves <palves@redhat.com>
3572
3573 Partial revert of previous change.
3574
3575 * serial.c (scb_base): New global.
3576 (serial_for_fd): New.
3577 (serial_open, serial_fdopen_ops): Link new serial in open serials
3578 chain.
3579 (do_serial_close): Unlink serial from the open serials chain.
3580
8b3ee56d
PA
35812012-06-12 Pedro Alves <palves@redhat.com>
3582
3583 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
3584 threads here.
3585 (prepare_for_detach): No longer context switch here in non-stop
3586 mode.
3587 (fetch_inferior_event): Ditto.
3588 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3589 to the event thread before removing breakpoints. Switch to the
3590 event thread before inserting breakpoints and resuming.
3591 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3592 event thread before resuming.
3593 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3594 Switch to the event thread before removing breakpoints.
3595
5d60742e
EZ
35962012-06-12 Eli Zaretskii <eliz@gnu.org>
3597
3598 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3599 special characters correctly for the Windows shells. See
3600 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3601 report.
3602 [!__MINGW32__]: Remove extra double quote character from special
3603 characters.
3604
a6feecf7
SS
36052012-06-11 Stan Shebs <stan@codesourcery.com>
3606
3607 * ui-out.h: Remove #if 0 declarations.
3608 * ui-out.c: Remove #if 0 functions.
3609
ddefb60f
PA
36102012-06-11 Pedro Alves <palves@redhat.com>
3611
3612 * ser-base.c (run_async_handler_and_reschedule): New.
3613 (fd_event, push_event): Use it.
3614 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3615 reference count to 1.
3616 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3617 instead of xfree.
3618 (serial_is_open, serial_ref, serial_unref): New.
3619 * serial.h (serial_open): Adjust comment.
3620 (serial_is_open): Declare.
3621 (serial_close): Adjust comment.
3622 (serial_ref, serial_unref) Declare.
3623 (struct serial): New field 'refcnt'.
3624
d5ad6aa5
PA
36252012-06-11 Pedro Alves <palves@redhat.com>
3626
3627 Remove #if 0'd "connect" command, and unnecessary associated
3628 refcounting and serial reuse bits.
3629
3630 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3631 * serial.c (last_serial_opened): Delete.
3632 (scb_base): Delete.
3633 (serial_open): Adjust.
3634 (serial_for_fd): Delete.
3635 (serial_fdopen_ops, do_serial_close): Adjust.
3636 (serial_fdopen_ops): Adjust.
3637
318aa544
PA
36382012-06-11 Pedro Alves <palves@redhat.com>
3639
3640 * serial.c (do_serial_close): Remove early return when SCB is
3641 null.
3642
07261596
TT
36432012-06-11 Tom Tromey <tromey@redhat.com>
3644
3645 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3646
cc80f267
JK
36472012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 Fix regression by the "ambiguous linespec" series.
3650 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3651 get_last_displayed_symtab and get_last_displayed_line and depending
3652 on CURSAL.
3653
356d9f9d
TT
36542012-06-11 Tom Tromey <tromey@redhat.com>
3655
3656 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3657 (dw2_find_symbol_file): Use it.
3658
232b8704
ME
36592012-06-11 Michael Eager <eager@eagercon.com>
3660
3661 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3662 * mips-linux-tdep.h (mips_signals): New
3663
e81a37f7
TT
36642012-06-11 Tom Tromey <tromey@redhat.com>
3665
3666 * infrun.c (handle_inferior_event)
3667 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3668 breakpoint.
3669 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3670 exception logic in all cases. Update comments.
3671 (insert_longjmp_resume_breakpoint): Set the exception resume
3672 breakpoint.
3673
2e81047f
MR
36742012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3675
3676 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3677
4e32eda7
SCR
36782012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3679
3680 * valarith.c (binop_types_user_defined_p): Fix a typo.
3681
18648a37 36822012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3683 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3684
3685 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3686 * arch-utils.h: Declare.
3687 * gdbarch.sh: Add return_in_first_hidden_param_p.
3688 * gdbarch.c, gdbarch.h: Regenerated.
3689 * infcall.c (call_function_by_hand): Call
3690 gdbarch_return_in_first_hidden_param_p instead of
3691 language_pass_by_reference.
3692
3693 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3694 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3695 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3696 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3697 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3698 `cplus_return_struct_by_reference'.
3699 (tic6x_return_value): Handle language cplusplus.
3700 (tic6x_return_in_first_hidden_param_p): New.
3701 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3702
034e5797
DE
37032012-06-07 Doug Evans <dje@google.com>
3704
3705 * dwarf2read.c (dwarf2_cu): Add comment.
3706
6a00aa1e
MR
37072012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3708
3709 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3710 variable.
3711 (mips_eabi_push_dummy_call): Likewise.
3712 (mips_n32n64_push_dummy_call): Likewise.
3713 (mips_o32_push_dummy_call): Likewise.
3714 (mips_o64_push_dummy_call): Likewise.
3715
eaa05d59
MR
37162012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3717
3718 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3719
de13fcf2
MR
37202012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3721
3722 * mips-tdep.c (mips_pseudo_register_type): Use
3723 mips_float_register_p.
3724
c3a01a22
PA
37252012-06-06 Pedro Alves <palves@redhat.com>
3726
3727 * infrun.c (handle_inferior_event): Remove calls to
3728 reinit_frame_cache that follow a context_switch call.
3729
d25f45d9
PA
37302012-06-06 Pedro Alves <palves@redhat.com>
3731
3732 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3733 context_switch and remove stale comment.
3734
359f5fe6
PA
37352012-06-06 Pedro Alves <palves@redhat.com>
3736
3737 * infrun.c (struct execution_control_state): Remove
3738 `new_thread_event' field.
3739 (handle_inferior_event): Simplify new threads handling; don't
3740 resume the inferior if we find a new thread.
3741
2d4c29c5
TS
37422012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3743
3744 * NEWS: Document the deprecation of SH's 'regs' command.
3745 * inferior.h (all_registers_info): Add function declaration.
3746 * sh-tdep.c (sh_show_regs): Remove variable.
3747 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3748 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3749 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3750 (sh_show_regs_command): Remove functions.
3751 (sh_gdbarch_init): Don't set sh_show_regs.
3752 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3753 'info all-registers'.
3754 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3755 (sh64_show_regs): Remove functions.
3756 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3757
f5f1cdb6
JK
37582012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3759
3760 * configure.ac: Move development=true below AC_INIT.
3761 * configure: Regenerate.
3762
bf6309af
SS
37632012-06-05 Stan Shebs <stan@codesourcery.com>
3764
3765 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3766 gdb_stdout.
3767
45aa4659
JK
37682012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3769
3770 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3771 argument as ssize_t.
3772 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3773 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3774 * target.c (target_read_stack, target_write_memory)
3775 (target_write_raw_memory): Likewise.
3776 * target.h (target_read_stack, target_write_memory)
3777 (target_write_raw_memory): Likewise.
3778
1b162304
JK
37792012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3780
3781 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3782 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3783 * target.c (target_read_memory): Change LEN to ssize_t.
3784 * target.h (target_read_memory): Change LEN to ssize_t.
3785
8556afb4
PA
37862012-06-05 Pedro Alves <palves@redhat.com>
3787
3788 PR backtrace/13866
3789
3790 * breakpoint.c (until_break_command): Only fetch the selected
3791 frame after decode_line_1.
3792
fb139f32
PA
37932012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3794
3795 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3796 event breakpoint at _start, __start or main if a program
3797 interpreter is not found.
3798
a8e1bb34
JB
37992012-06-05 Joel Brobecker <brobecker@adacore.com>
3800
3801 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3802 Add declaration.
3803 * windows-tdep.c: #include "objfiles.h".
3804 (windows_iterate_over_objfiles_in_search_order): New function.
3805 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3806 iterate_over_objfiles_in_search_order gdbarch method to
3807 windows_iterate_over_objfiles_in_search_order.
3808 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3809
19630284
JB
38102012-06-05 Joel Brobecker <brobecker@adacore.com>
3811
3812 * gdbarch.sh: Add generation of
3813 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3814 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3815 (iterate_over_objfiles_in_search_order): New gdbarch method.
3816 * gdbarch.h, gdbarch.c: Regenerate.
3817 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3818 Add declaration.
3819 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3820 New function.
3821 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3822 out of lookup_symbol_aux_symtabs.
3823 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3824 call to lookup_symbol_aux_objfile.
3825 (struct global_sym_lookup_data): New type.
3826 (lookup_symbol_global_iterator_cb): New function.
3827 (lookup_symbol_global): Search for symbol using
3828 gdbarch_iterate_over_objfiles_in_search_order and
3829 lookup_symbol_global_iterator_cb.
3830 * findvar.c (struct minsym_lookup_data): New type.
3831 (minsym_lookup_iterator_cb): New function.
3832 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3833 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3834 and minsym_lookup_iterator_cb.
3835
67ff19f7
JB
38362012-06-05 Joel Brobecker <brobecker@adacore.com>
3837
3838 Revert the following patch:
3839 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3840 try locating the symbol in the symbol's own objfile first, before
3841 extending the search to all objfiles.
3842 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3843 out of lookup_symbol_aux_symtabs.
3844 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3845 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3846 Do not search EXCLUDE_OBJFILE.
3847 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3848 (lookup_symbol_global): Search for matches in the block's objfile
3849 first, before searching all other objfiles.
3850
ccab2054
JB
38512012-06-05 Joel Brobecker <brobecker@adacore.com>
3852
3853 * breakpoint.c (find_condition_and_thread): Stop parsing
3854 as soon as the first invalid keyword is found.
3855
e23d4a9c
JB
38562012-06-05 Joel Brobecker <brobecker@adacore.com>
3857
3858 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3859
70160166
JB
38602012-06-05 Joel Brobecker <brobecker@adacore.com>
3861
3862 * config/djgpp/djcheck.sh: Add copyright header.
3863
399501a5
JB
38642012-06-05 Joel Brobecker <brobecker@adacore.com>
3865
3866 * copyright.py (update_files, main): Fix path to update-copyright
3867 script.
3868
3770a159
JB
38692012-06-05 Joel Brobecker <brobecker@adacore.com>
3870
3871 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3872 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3873 for which a reminder to update by hand is printed.
3874
4aad0dfc
DE
38752012-06-04 Doug Evans <dje@google.com>
3876
3877 * buildsym.c (make_blockvector): Add comment.
3878
1f8cf220
PA
38792012-06-04 Pedro Alves <palves@redhat.com>
3880
3881 * arch-utils.c (default_gdb_signal_from_target): Delete.
3882 * arch-utils.h (default_gdb_signal_from_target): Delete.
3883 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3884 gdbarch_gdb_signal_from_target_p.
3885 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3886 predicate).
3887 * gdbarch.h: Regenerate.
3888 * gdbarch.c: Regenerate.
3889
86b49880
PA
38902012-06-04 Pedro Alves <palves@redhat.com>
3891
3892 * gdbarch.sh (gdb_signal_from_target): Mention that the
3893 implementation of the method must be host independent.
3894 * gdbarch.h: Regenerate.
3895
fe78531d
JK
38962012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3897
3898 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3899 parameters.
3900 (target_read_memory_bfd): New function.
3901 (symbol_file_add_from_memory): Use it.
3902
d790cf0a
DE
39032012-06-03 Doug Evans <dje@google.com>
3904
78e5175a
DE
3905 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3906 of primary symtab.
3907 (basic_lookup_transparent_type): Ditto.
3908
d790cf0a
DE
3909 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3910 (ALL_PRIMARY_SYMTABS): Use it.
3911 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3912 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3913 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3914 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3915 (basic_lookup_transparent_type): Ditto.
3916
c6e5ee5e
SDJ
39172012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3918
3919 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3920 it to optimize resolution of demangled name.
3921
a68ffae9
JK
39222012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3923
3924 * configure.ac (development): Define new variable.
3925 Call AC_CHECK_LIB for mcheck if $development.
3926 (ERROR_ON_WARNING): Enable it by default only if $development.
3927 * config.in: Regenerate.
3928 * configure: Regenerate.
3929
5299c1c4
JK
39302012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3931
3932 * target.c (target_read_memory): Make LEN argument as size_t.
3933 * target.h (target_read_memory): Likewise.
3934
39352012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3936
3937 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3938
0c56f59b
EBM
39392012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3940
3941 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3942 BookE interface for PowerPC server processors if not available
3943 in the Linux Kernel.
3944
71bdabee
KS
39452012-05-31 Keith Seitz <keiths@redhat.com>
3946
3947 * linespec.c (decode_objc): Add cleanup to free
3948 INFO.FILE_SYMTABS.
3949 (find_linespec_symbols): Add cleanup to free CLASSES.
3950 * symfile.c (find_separate_debug_file_by_debuglink): Add
3951 cleanup to free DEBUGLINK.
3952 * ui-out.c (clear_header_list): No need to check if
3953 HEADER_NEXT.COLHDR is NULL.
3954 Free HEADER_NEXT.COL_NAME.
3955
acbd605d
MGD
39562012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3957
3958 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3959 warning.
3960
65662cde
PA
39612012-05-30 Jeff Kenton <jkenton@tilera.com>
3962
3963 * configure.host (gdb_host_cpu): Handle tilegx*.
3964 (gdb_host): Handle tilegx-*-linux*.
3965 * tilegx-linux-nat.c: New file.
3966 * config/tilegx/linux.mh: New file.
3967
ade64f0e
PA
39682012-05-30 Jeff Kenton <jkenton@tilera.com>
3969
3970 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3971 tilegx-linux-tdep.o.
3972 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3973 tilegx-linux-tdep.c.
3974 * configure.tgt: Handle tilegx-*-linux*.
3975 * tilegx-tdep.h: New file.
3976 * tilegx-tdep.c: New file.
3977 * tilegx-linux-tdep.c: New file.
3978 * regformats/reg-tilegx.dat: New file.
3979
bb08bdbd
EBM
39802012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3981
3982 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3983 accounting of hw watchpoints on ppc.
3984
ebd86fb5
TJB
39852012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3986
3987 * source.c (openp): Expand tilde in path entries.
3988
0a0edcd5
DE
39892012-05-29 Doug Evans <dje@google.com>
3990
98cc87bd
DE
3991 * buildsym.c (block_compar): Fix comment.
3992 (end_symtab): Fix and clarify some comments.
3993
0a0edcd5
DE
3994 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3995 cleanup_undefined_types.
3996 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3997 All callers updated.
3998
6f0c7050
TT
39992012-05-29 Tom Tromey <tromey@redhat.com>
4000
4001 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
4002 fails.
4003 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
4004 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
4005 fails.
4006 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
4007 fails.
4008
ec95993c
TG
40092012-05-29 Tristan Gingold <gingold@adacore.com>
4010
4011 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
4012 (struct darwin_info): ... New struct.
4013 (solib_darwin_pspace_data): New variable.
4014 (darwin_pspace_data_cleanup): New function.
4015 (get_darwin_info): Likewise.
4016 (darwin_dyld_version_ok, darwin_load_image_infos)
4017 (darwin_solib_get_all_image_info_addr_at_init)
4018 (darwin_solib_read_all_image_info_addr): Add info argument.
4019 Adjust code.
4020 (darwin_current_sos): Use per pspace structure.
4021 (darwin_solib_create_inferior_hook): Likewise.
4022 (darwin_clear_solib): Likewise.
4023 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
4024
ae25568b
PA
40252012-05-28 Pedro Alves <palves@redhat.com>
4026
4027 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
4028 block that uses them. Clear ecss before handling each event.
4029
0c5bf5a9
JK
40302012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4031
4032 * solib-svr4.c (svr4_current_sos): New comment on
4033 svr4_current_sos_via_xfer_libraries fall back.
4034
bfb05775
JK
40352012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4036
4037 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
4038 it as a fallback for TYPE_IS_OPAQUE.
4039 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
4040 symbols for lookup_symbol.
4041
685b1105
JK
40422012-05-24 John Steele Scott <toojays@toojays.net>
4043
4044 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
4045 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
4046 (producer_is_gxx_lt_4_6): Move the checking and caching to...
4047 (check_producer): ... this new function, which also checks for ICC
4048 and caches the result.
4049 (producer_is_icc): New function.
4050 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
4051 producer was ICC.
4052
22203bbf
PA
40532012-05-24 Pedro Alves <palves@redhat.com>
4054
4055 PR gdb/7205
4056
4057 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
4058 (default_gdb_signal_to_target): ... this. Add comment.
4059 (default_gdb_signal_from_host): Rename to ...
4060 (default_gdb_signal_from_target): ... this. Add comment.
4061 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
4062 (default_gdb_signal_to_target): ... this.
4063 (default_gdb_signal_from_host): Rename to ...
4064 (default_gdb_signal_from_target): ... this.
4065 * corelow.c (core_open): Adjust to naming change. Replace comment.
4066 * gdbarch.sh (gdb_signal_from_host): Rename to ...
4067 (gdb_signal_from_target): ... this. Adjust to
4068 default_gdb_signal_from_host naming change. Extend comment.
4069 (gdb_signal_to_host): Rename to ...
4070 (gdb_signal_to_target): ... this. Adjust to
4071 default_gdb_signal_to_host naming change.
4072 * gdbarch.h, gdbarch.c: Renegerate.
4073
a493e3e2
PA
40742012-05-24 Pedro Alves <palves@redhat.com>
4075
4076 PR gdb/7205
4077
f782ad9b 4078 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 4079
2ea28649
PA
40802012-05-24 Pedro Alves <palves@redhat.com>
4081
4082 PR gdb/7205
4083
4084 Replace target_signal with gdb_signal throughout.
4085
b09846a9
PA
40862012-05-24 Pedro Alves <palves@redhat.com>
4087
4088 PR tui/14159
4089
4090 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
4091 string, instead of reusing the va_list argument.
4092
e77c107e
TT
40932012-05-24 Tom Tromey <tromey@redhat.com>
4094
4095 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
4096 Remove.
4097
9fccedf7
DE
40982012-05-23 Doug Evans <dje@google.com>
4099
d50bd42b
DE
4100 * symtab.c (search_symbols): Formatting fixes.
4101 (print_symbol_info): Formatting fixes.
4102
9fccedf7
DE
4103 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
4104 int64_t change to leb128 API.
4105 (read_encoded_value, decode_frame_entry_1): Ditto.
4106 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
4107 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
4108 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4109 (execute_stack_op): Ditto.
4110 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
4111 (safe_read_uleb128, safe_read_sleb128): Ditto.
4112 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
4113 (dwarf2_compile_expr_to_ax): Ditto.
4114 (locexpr_describe_location_piece): Ditto.
4115 (disassemble_dwarf_expression): Ditto.
4116 (locexpr_describe_location_1): Ditto.
4117
f3e0e960
SS
41182012-05-23 Stan Shebs <stan@codesourcery.com>
4119 Kwok Cheung Yeung <kcy@codesourcery.com>
4120
4121 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
4122 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
4123 (mi-cmd-info.o): New rule.
4124 * osdata.h (info_osdata_command): New declaration.
4125 * osdata.c (info_osdata_command): Change to non-static.
4126 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
4127 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
4128 * mi/mi-cmd-info.c: New file.
4129
c51fe631
DE
41302012-05-23 Doug Evans <dje@google.com>
4131
71cddcc1
DE
4132 * symtab.c (search_symbols): Pass NULL for file_matcher to
4133 expand_symtabs_matching if there are no files to match.
4134
c51fe631
DE
4135 * gdbtypes.c (lookup_typename): Simplify.
4136
a79378d4
PA
41372012-05-23 Pedro Alves <palves@redhat.com>
4138
4139 * arch-utils.h (default_target_signal_to_host): Delete.
4140 * arch-utils.c (default_target_signal_to_host): Delete.
4141 * gdbarch.sh (target_signal_to_host): Remove.
4142 * gdbarch.h, gdbarch.c: Regenerate.
4143
f664829e
DE
41442012-05-22 Doug Evans <dje@google.com>
4145
4146 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
4147 "const gdb_byte *".
4148 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
4149 (execute_cfa_program): Update to match API of leb128 functions.
4150 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
4151 "const gdb_byte *".
4152 (read_unsigned_leb128, read_signed_leb128): Delete.
4153 (read_initial_length): Change type of buf argument to
4154 "const gdb_byte *".
4155 (read_encoded_value): Update to match API of leb128 functions.
4156 (decode_frame_entry): Change result to "const gdb_byte *", and
4157 similarly for "start" parameter.
4158 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
4159 (dwarf2_build_frame_info): Change local frame_ptr to
4160 "const gdb_byte *".
4161 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
4162 read_uleb128, read_sleb128. All callers updated.
4163 (safe_skip_leb128): New function.
4164 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
4165 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
4166 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
4167 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
4168 read_uleb128, read_sleb128.
4169 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
4170 (execute_stack_op): Update to match API of leb128 functions.
4171 * dwarf2expr.h: #include "leb128.h".
4172 (read_uleb128, read_sleb128): Delete.
4173 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
4174 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
4175 * dwarf2loc.c (debug_loc_kind): New enum.
4176 (decode_debug_loc_addresses): New function.
4177 (decode_debug_loc_dwo_addresses): New function.
4178 (dwarf2_find_location_expression): Rewrite.
4179 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
4180 (locexpr_describe_location_piece): Ditto.
4181 (disassemble_dwarf_expression): Ditto.
4182 (locexpr_describe_location_1): Ditto.
4183 (loclist_describe_location): Rewrite.
4184 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
4185 * dwarf2read.c (die_reader_specs): New member "buffer_end".
4186 (dwarf2_section_buffer_overflow_complaint): Renamed from
4187 dwarf2_macros_too_long_complaint. All callers updated.
4188 (skip_leb128): Delete.
4189 (init_cu_die_reader): Initialize reader->buffer_end.
4190 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
4191 (skip_form_bytes): New arg buffer_end. All callers updated.
4192 Replace call to skip_leb128 with gdb_skip_leb128.
4193 (skip_unknown_opcode): New arg mac_end. All callers updated.
4194 (fill_in_loclist_baton): Initialize baton->from_dwo.
4195
837a1b32
MR
41962012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4197
4198 * mips-linux-nat.c (mips_linux_read_description): Use a more
4199 verbose error message.
4200
d0e64392
MR
42012012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
4202
4203 * NEWS: Add MIPS/Linux DSP support.
4204 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
4205 (SIGCONTEXT_DSPCTL): New macro.
4206 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
4207 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
4208 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
4209 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
4210 (N64_SIGCONTEXT_HI3): Likewise.
4211 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
4212 (N64_SIGCONTEXT_LO3): Likewise.
4213 (N64_SIGCONTEXT_DSPCTL): Likewise.
4214 (N64_SIGCONTEXT_FPCSR): Clarify definition.
4215 (mips_linux_o32_sigframe_init): Handle DSP registers.
4216 (mips_linux_n32n64_sigframe_init): Likewise.
4217
8bea7ed1
PM
42182012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4219
4220 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
4221 call to abort.
4222
dab06dbe
PA
42232012-05-22 Pedro Alves <palves@redhat.com>
4224
4225 * target.h (store_waitstatus): Move declaration ...
4226 * inf-child.h (store_waitstatus): ... here.
4227 * target.c: Move inclusion of gdb_wait.h, and ...
4228 (store_waitstatus): ... this ...
4229 * inf-child.c: ... here.
4230 * linux-nat.c: Include inf-child.h.
4231 * rs6000-nat.c: Include inf-child.h.
4232 * spu-linux-nat.c: Include inf-child.h.
4233
43011e52
PM
42342012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
4235
4236 * tracepoint.c (start_tracing): Add missing i18n markup.
4237 (stop_tracing, set_trace_user): Ditto.
4238 (set_trace_notes, set_trace_stop_notes): Ditto.
4239
b1af9e97
TT
42402012-05-21 Tom Tromey <tromey@redhat.com>
4241
4242 PR c++/7173:
4243 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
4244 types.
4245 * value.h (value_cast_pointers): Update.
4246 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
4247 (value_cast): Update.
4248 (update_search_result): New function.
4249 (do_search_struct_field): New, from search_struct_field. Check
4250 for ambiguous results.
4251 (search_struct_field): Rewrite.
4252 * infcall.c (value_arg_coerce): Update.
4253 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
4254 value_cast_pointers.
4255 * ada-lang.c (ada_convert_actual): Update.
4256
e9e5e6b3
TT
42572012-05-21 Tom Tromey <tromey@redhat.com>
4258
4259 * macroexp.c (macro_stringify): Terminate the string.
4260
1564a261
JK
42612012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4262
4263 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
4264 Describe it.
4265 * auto-load.c (auto_load_expand_dir_vars): New function.
4266 (auto_load_safe_path_vec_update): Use it, remove the
4267 substitute_path_component call thanks to it.
4268 (auto_load_objfile_script): Remove the debug_file_directory processing.
4269 Use auto_load_expand_dir_vars, remove the substitute_path_component
4270 call thanks to it.
4271 * configure: Regenerate.
4272 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
4273 path. Escape $ also for $debugdir.
4274 (--with_auto_load_safe_path): Escape $ also for $debugdir.
4275 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
4276
a3ec0bb1
DE
42772012-05-20 Doug Evans <dje@google.com>
4278
4279 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
4280 before use. Check for symtab->includes == NULL before scanning it.
4281
d467df4e
MR
42822012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4283
4284 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
4285
4cc0665f
MR
42862012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4287
4288 * NEWS: Add microMIPS support and "set mips compression",
4289 "show mips compression" commands.
4290 * mips-tdep.h (mips_isa): New enum.
4291 (gdbarch_tdep): Add mips_isa.
4292 (mips_pc_is_mips16): Update prototype.
4293 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
4294 * mips-tdep.c (mips_compression_mips16): New variable.
4295 (mips_compression_micromips): Likewise.
4296 (mips_compression_strings): Likewise.
4297 (mips_compression_string): Likewise.
4298 (is_mips16_isa, is_micromips_isa): New functions.
4299 (is_mips16_addr): Rename to...
4300 (is_compact_addr): ... this.
4301 (unmake_mips16_addr): Likewise to...
4302 (unmake_compact_addr): ... this.
4303 (make_mips16_addr): Likewise to...
4304 (make_compact_addr): ... this.
4305 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
4306 functions.
4307 (mips_elf_make_msymbol_special): Handle microMIPS code.
4308 (msymbol_is_special): Rename to...
4309 (msymbol_is_mips16): ... this.
4310 (mips_make_symbol_special, mips_pc_is_mips16): Update
4311 accordingly.
4312 (msymbol_is_mips, msymbol_is_micromips): New functions.
4313 (mips16_to_32_reg): Rename to...
4314 (mips_reg3_to_reg): ... this.
4315 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
4316 (mips_pc_isa): Likewise.
4317 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
4318 code.
4319 (mips_fetch_instruction): Pass return status instead of printing
4320 an error message if requested. Handle microMIPS code. Bail out
4321 on an invalid ISA.
4322 (micromips_op): New macro.
4323 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
4324 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
4325 (b6s4_op, b7s3_reg): Likewise.
4326 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
4327 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
4328 (mips_insn_size): New function.
4329 (mips32_next_pc): Update mips_fetch_instruction call.
4330 (micromips_relative_offset7): New function.
4331 (micromips_relative_offset10): Likewise.
4332 (micromips_relative_offset16): Likewise.
4333 (micromips_pc_insn_size): Likewise.
4334 (micromips_bc1_pc): Likewise.
4335 (micromips_next_pc): Likewise.
4336 (unpack_mips16): Update mips_fetch_instruction call.
4337 (extended_mips16_next_pc): Update according to change to
4338 mips16_to_32_reg.
4339 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
4340 code.
4341 (mips16_scan_prologue): Update mips_fetch_instruction call.
4342 Update according to change to mips16_to_32_reg.
4343 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
4344 (mips_insn16_frame_base_sniffer): Likewise.
4345 (micromips_decode_imm9): New function.
4346 (micromips_scan_prologue): Likewise.
4347 (mips_micro_frame_cache): Likewise.
4348 (mips_micro_frame_this_id): Likewise.
4349 (mips_micro_frame_prev_register): Likewise.
4350 (mips_micro_frame_sniffer): Likewise.
4351 (mips_micro_frame_unwind): New variable.
4352 (mips_micro_frame_base_address): New function.
4353 (mips_micro_frame_base): New variable.
4354 (mips_micro_frame_base_sniffer): New function.
4355 (mips32_scan_prologue): Update mips_fetch_instruction call.
4356 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
4357 rather than for MIPS16.
4358 (mips_insn32_frame_base_sniffer): Likewise.
4359 (mips_addr_bits_remove): Handle microMIPS code.
4360 (deal_with_atomic_sequence): Rename to...
4361 (mips_deal_with_atomic_sequence): ... this. Update the type
4362 of the variable used to hold an instruction. Remove the ISA bit
4363 check. Update mips_fetch_instruction call.
4364 (micromips_deal_with_atomic_sequence): New function.
4365 (deal_with_atomic_sequence): Likewise.
4366 (mips_about_to_return): Handle microMIPS code. Update
4367 mips_fetch_instruction call.
4368 (heuristic_proc_start): Check for the standard MIPS ISA rather
4369 than for MIPS16. Update mips_pc_is_mips16 and
4370 mips_fetch_instruction calls. Handle microMIPS code.
4371 (mips_push_dummy_code): Handle microMIPS code.
4372 (mips_eabi_push_dummy_call): Likewise.
4373 (mips_o32_return_value): Update mips_pc_is_mips16 call.
4374 (mips_o64_push_dummy_call): Handle microMIPS code.
4375 (mips_o64_return_value): Update mips_pc_is_mips16 call.
4376 (is_delayed): Remove function.
4377 (mips_single_step_through_delay): Replace the call to is_delayed
4378 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
4379 Handle microMIPS code.
4380 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
4381 microMIPS code.
4382 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
4383 call.
4384 (micromips_in_function_epilogue_p): New function.
4385 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
4386 call.
4387 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
4388 Handle microMIPS.
4389 (gdb_print_insn_mips): Likewise.
4390 (mips_breakpoint_from_pc): Likewise.
4391 (mips_remote_breakpoint_from_pc): New function.
4392 (mips32_instruction_has_delay_slot): Simplify making use of the
4393 updated mips_fetch_instruction interface.
4394 (micromips_instruction_has_delay_slot): New function.
4395 (mips16_instruction_has_delay_slot): Simplify making use of the
4396 updated mips_fetch_instruction interface.
4397 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 4398 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
4399 calls. Handle microMIPS code.
4400 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
4401 (mips_skip_trampoline_code): Handle microMIPS code.
4402 (global_mips_compression): New function.
4403 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
4404 file flags. Register the microMIPS remote breakpoint handler
4405 and heuristic frame unwinder.
4406 (show_mips_compression): New function.
4407 (_initialize_mips_tdep): Add the "set mips compression" and
4408 "show mips compression" commands.
4409
22e048c9
SDJ
44102012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
4411
4412 * ada-lang.c:
4413 * ada-tasks.c:
4414 * ada-varobj.c:
4415 * amd64-darwin-tdep.c:
4416 * arm-symbian-tdep.c:
4417 * arm-tdep.c:
4418 * avr-tdep.c:
4419 * ax-gdb.c:
4420 * bfin-linux-tdep.c:
4421 * breakpoint.c:
4422 * c-valprint.c:
4423 * cli/cli-cmds.c:
4424 * coffread.c:
4425 * cp-support.c:
4426 * cris-tdep.c:
4427 * dwarf2-frame-tailcall.c:
4428 * dwarf2-frame.c:
4429 * dwarf2expr.c:
4430 * dwarf2loc.c:
4431 * dwarf2read.c:
4432 * elfread.c:
4433 * eval.c:
4434 * expprint.c:
4435 * f-valprint.c:
4436 * frv-tdep.c:
4437 * h8300-tdep.c:
4438 * hppa-hpux-tdep.c:
4439 * hppa-tdep.c:
4440 * hppanbsd-tdep.c:
4441 * i386-nto-tdep.c:
4442 * i386-tdep.c:
4443 * i387-tdep.c:
4444 * ia64-tdep.c:
4445 * jit.c:
4446 * linespec.c:
4447 * linux-tdep.c:
4448 * lm32-tdep.c:
4449 * m2-valprint.c:
4450 * m32c-tdep.c:
4451 * m32r-rom.c:
4452 * m32r-tdep.c:
4453 * m68k-tdep.c:
4454 * m68klinux-tdep.c:
4455 * mi/mi-main.c:
4456 * microblaze-tdep.c:
4457 * mips-linux-tdep.c:
4458 * mips-tdep.c:
4459 * mn10300-tdep.c:
4460 * p-valprint.c:
4461 * parse.c:
4462 * ppc-linux-tdep.c:
4463 * ppc-sysv-tdep.c:
4464 * printcmd.c:
4465 * python/py-finishbreakpoint.c:
4466 * python/py-inferior.c:
4467 * python/py-infthread.c:
4468 * python/py-type.c:
4469 * python/python.c:
4470 * remote-fileio.c:
4471 * remote-m32r-sdi.c:
4472 * remote-mips.c:
4473 * reverse.c:
4474 * rl78-tdep.c:
4475 * rs6000-aix-tdep.c:
4476 * rs6000-tdep.c:
4477 * s390-tdep.c:
4478 * score-tdep.c:
4479 * sh64-tdep.c:
4480 * skip.c:
4481 * solib-darwin.c:
4482 * solib-dsbt.c:
4483 * solib-frv.c:
4484 * sparc-tdep.c:
4485 * spu-multiarch.c:
4486 * spu-tdep.c:
4487 * stack.c:
4488 * symfile.c:
4489 * symtab.c:
4490 * tic6x-tdep.c:
4491 * tracepoint.c:
4492 * v850-tdep.c:
4493 * valarith.c:
4494 * valprint.c:
4495 * value.c:
4496 * xcoffread.c:
4497 * xtensa-tdep.c:
4498 * ada-lang.c:
4499 * ada-tasks.c:
4500 * ada-varobj.c:
4501 * amd64-darwin-tdep.c:
4502 * arm-symbian-tdep.c:
4503 * arm-tdep.c: Delete unused variables.
4504
aff139ff
JK
45052012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4506
4507 Rename $ddir to $datadir.
4508 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
4509 * auto-load.c (auto_load_safe_path_vec_update)
4510 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
4511 * configure: Regenerate.
4512 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
4513 Likewise. Remove the 'use $ddir' help string.
4514
f7bfa992
JK
45152012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4516
4517 * auto-load.c (show_auto_load_safe_path): Accept any combination of
4518 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
4519
9cb709b6
TT
45202012-05-18 Tom Tromey <tromey@redhat.com>
4521
4522 PR exp/13907:
4523 * valprint.h (struct value_print_options) <symbol_print>: New
4524 field.
4525 * valprint.c (user_print_options): Add default for symbol_print.
4526 (show_symbol_print): New function.
4527 (generic_val_print): Respect symbol_print.
4528 (_initialize_valprint): Add "print symbol" setting.
4529 * f-valprint.c (f_val_print): Respect symbol_print.
4530 * c-valprint.c (c_val_print): Respect symbol_print.
4531 * NEWS: Update.
4532 * printcmd.c (print_address_symbolic): Return int. Ignore some
4533 zero-size symbols.
4534 (print_address_demangle): Return int.
4535 * defs.h: (print_address_symbolic): Return int.
4536 * value.h (print_address_demangle): Return int.
4537
b012acdd
TT
45382012-05-18 Tom Tromey <tromey@redhat.com>
4539
4540 * valprint.c (val_print_string): Don't print leading space.
4541 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
4542 print space before string or vtbl.
4543 * m2-valprint.c (print_unpacked_pointer): Optionally print space
4544 before string.
4545 * jv-valprint.c (java_value_print): Print space before string.
4546 * go-valprint.c (print_go_string): Print space before string.
4547 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
4548 space before string.
4549 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
4550 space before string or vtbl.
4551 * auxv.c (fprint_target_auxv): Print space after address.
4552
1d51a733
TT
45532012-05-18 Tom Tromey <tromey@redhat.com>
4554
4555 * printcmd.c (print_address_demangle): Remove special case for 0.
4556
edf0c1b7
TT
45572012-05-18 Tom Tromey <tromey@redhat.com>
4558
4559 * printcmd.c (print_address_demangle): Add 'opts' argument.
4560 * p-valprint.c (pascal_val_print): Update.
4561 * jv-valprint.c (java_val_print): Update.
4562 * value.h: Update.
4563 * valprint.c (generic_val_print): Update.
4564 (print_function_pointer_address): Add 'options' argument. Remove
4565 'addressprint' argument. Update.
4566 * m2-valprint.c (print_unpacked_pointer): Update.
4567 * gnu-v3-abi.c (print_one_vtable): Update.
4568 (gnuv3_print_method_ptr): Update.
4569 * f-valprint.c (f_val_print): Update.
4570 * cp-valprint.c (cp_print_value_fields): Update.
4571 * valprint.h (print_function_pointer_address): Update.
4572 * c-valprint.c (c_val_print): Update.
4573
9703b513
TT
45742012-05-18 Tom Tromey <tromey@redhat.com>
4575
4576 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
4577 directly corresponding to the found psymtab.
4578 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
4579 (dw2_find_pc_sect_symtab): Use it.
4580 * block.h (blockvector_contains_pc): Declare.
4581 * block.c (find_block_in_blockvector): New function.
4582 (blockvector_for_pc_sect): Use it.
4583 (blockvector_contains_pc): New function.
4584
5a439849
MR
45852012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4586
4587 * mips-tdep.h (mips_write_pc): New prototype.
4588 * mips-tdep.c (mips_write_pc): Make external, add description.
4589 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4590 add description.
4591
8376de04
MR
45922012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4593
4594 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4595 mips_regnum->pc.
4596 (mips_unwind_pc, mips_write_pc): Likewise.
4597 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4598 gdbarch_read_pc.
4599
d3581e61
JB
46002012-05-17 Joel Brobecker <brobecker@adacore.com>
4601
4602 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4603 proc_warn, proc_error, proc_get_status, proc_flags,
4604 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4605 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4606 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4607 proc_stop_process, proc_wait_for_stop, proc_run_process,
4608 proc_set_traced_signals, proc_set_traced_faults,
4609 proc_set_traced_sysentry, proc_set_traced_sysexit,
4610 proc_set_held_signals, proc_get_held_signals,
4611 proc_get_traced_signals, proc_get_traced_faults,
4612 proc_get_traced_sysentry, proc_get_traced_sysexit,
4613 proc_clear_current_fault, proc_set_current_signal,
4614 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4615 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4616 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4617 proc_get_current_thread, proc_get_current_thread,
4618 proc_get_current_thread, proc_update_threads,
4619 proc_update_threads, proc_update_threads, proc_update_threads,
4620 proc_iterate_over_threads, procfs_find_new_threads,
4621 procfs_pid_to_str): Make static. Remove advance declaration.
4622 (proc_cursig): Make static. Conditionalized defintion on
4623 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4624 (proc_syscall, proc_set_kill_on_last_close,
4625 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4626 proc_get_pending_signals, proc_get_signal_actions,
4627 proc_trace_signal, proc_ignore_signal): Delete.
4628
81b9b86e
SDJ
46292012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4630
4631 * coffread.c (cs_section_address): Passing proper argument for
4632 `bfd_get_section_vma'.
4633 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4634 `bfd_get_section_flags'.
4635 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4636 `bfd_get_section_vma'.
4637
abc9d0dc
TT
46382012-05-16 Tom Tromey <tromey@redhat.com>
4639
4640 PR macros/13205:
4641 * macrotab.h: (macro_define_special): Declare.
4642 (enum macro_special_kind): New.
4643 (struct macro_definition) <argc, replacement>: Update comments.
4644 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4645 (macro_define_object_internal): New function.
4646 (macro_define_object): Use it.
4647 (macro_define_special): New function.
4648 (fixup_definition): New function.
4649 (macro_lookup_definition, foreach_macro_in_scope)
4650 (foreach_macro): Use fixup_definition.
4651 * macroexp.h (macro_stringify): Declare.
4652 * macroexp.c (free_buffer_return_text): New function.
4653 (stringify): Constify "arg".
4654 (macro_stringify): New function.
4655 * dwarf2read.c (macro_start_file): Call macro_define_special.
4656
6a3a010b 46572012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4658 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4659
4660 * breakpoint.h (bp_location): Add related_address member.
4661 * inferior.h (get_return_value): Take a pointer to struct value
4662 instead of struct type for the function requested.
4663 * value.h (using_struct_return): Likewise.
4664 * gdbarch.sh (return_value): Take a pointer to struct value
4665 instead of struct type for the function requested.
4666 * breakpoint.c (set_breakpoint_location_function): Initialize
4667 related_address for bp_gnu_ifunc_resolver breakpoints.
4668 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4669 requested function's address to gdbarch_return_value.
4670 * eval.c (evaluate_subexp_standard): Pass the requested
4671 function's address to using_struct_return.
4672 * infcall.c (call_function_by_hand): Pass the requested
4673 function's address to using_struct_return and
4674 gdbarch_return_value.
4675 * infcmd.c (get_return_value): Take a pointer to struct value
4676 instead of struct type for the function requested.
4677 (print_return_value): Update accordingly.
4678 (finish_command_continuation): Likewise.
4679 * stack.c (return_command): Pass the requested function's
4680 address to using_struct_return and gdbarch_return_value.
4681 * value.c (using_struct_return): Take a pointer to struct value
4682 instead of struct type for the function requested. Pass the
4683 requested function's address to gdbarch_return_value.
4684 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4685 New function_value member, replacing function_type.
4686 (bpfinishpy_dealloc): Update accordingly.
4687 (bpfinishpy_pre_stop_hook): Likewise.
4688 (bpfinishpy_init): Likewise. Record the requested function's
4689 address.
4690 * mips-tdep.c (mips_fval_reg): New enum.
4691 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4692 words put in GP registers.
4693 (mips_o64_push_dummy_call): Update a comment.
4694 (mips_o32_return_value): Take a pointer to struct value instead
4695 of struct type for the function requested and use it to check if
4696 using the MIPS16 calling convention. Return the designated
4697 general purpose registers for floating-point values returned in
4698 MIPS16 mode.
4699 (mips_o64_return_value): Likewise.
4700 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4701 (ppc_sysv_abi_broken_return_value): Likewise.
4702 (ppc64_sysv_abi_return_value): Likewise.
4703 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4704 value instead of struct type for the function requested.
4705 * amd64-tdep.c (amd64_return_value): Likewise.
4706 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4707 * arm-tdep.c (arm_return_value): Likewise.
4708 * avr-tdep.c (avr_return_value): Likewise.
4709 * bfin-tdep.c (bfin_return_value): Likewise.
4710 * cris-tdep.c (cris_return_value): Likewise.
4711 * frv-tdep.c (frv_return_value): Likewise.
4712 * h8300-tdep.c (h8300_return_value): Likewise.
4713 (h8300h_return_value): Likewise.
4714 * hppa-tdep.c (hppa32_return_value): Likewise.
4715 (hppa64_return_value): Likewise.
4716 * i386-tdep.c (i386_return_value): Likewise.
4717 * ia64-tdep.c (ia64_return_value): Likewise.
4718 * iq2000-tdep.c (iq2000_return_value): Likewise.
4719 * lm32-tdep.c (lm32_return_value): Likewise.
4720 * m32c-tdep.c (m32c_return_value): Likewise.
4721 * m32r-tdep.c (m32r_return_value): Likewise.
4722 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4723 * m68k-tdep.c (m68k_return_value): Likewise.
4724 (m68k_svr4_return_value): Likewise.
4725 * m88k-tdep.c (m88k_return_value): Likewise.
4726 * mep-tdep.c (mep_return_value): Likewise.
4727 * microblaze-tdep.c (microblaze_return_value): Likewise.
4728 * mn10300-tdep.c (mn10300_return_value): Likewise.
4729 * moxie-tdep.c (moxie_return_value): Likewise.
4730 * mt-tdep.c (mt_return_value): Likewise.
4731 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4732 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4733 (ppc_sysv_abi_broken_return_value): Likewise.
4734 (ppc64_sysv_abi_return_value): Likewise.
4735 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4736 * rl78-tdep.c (rl78_return_value): Likewise.
4737 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4738 * rx-tdep.c (rx_return_value): Likewise.
4739 * s390-tdep.c (s390_return_value): Likewise.
4740 * score-tdep.c (score_return_value): Likewise.
4741 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4742 (sh_return_value_fpu): Likewise.
4743 * sh64-tdep.c (sh64_return_value): Likewise.
4744 * sparc-tdep.c (sparc32_return_value): Likewise.
4745 * sparc64-tdep.c (sparc64_return_value): Likewise.
4746 * spu-tdep.c (spu_return_value): Likewise.
4747 * tic6x-tdep.c (tic6x_return_value): Likewise.
4748 * v850-tdep.c (v850_return_value): Likewise.
4749 * vax-tdep.c (vax_return_value): Likewise.
4750 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4751 * xtensa-tdep.c (xtensa_return_value): Likewise.
4752 * gdbarch.c: Regenerate.
4753 * gdbarch.h: Regenerate.
4754
29ca12b3
TT
47552012-05-15 Tom Tromey <tromey@redhat.com>
4756
4757 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4758
588ae58c
JB
47592012-05-15 Joel Brobecker <brobecker@adacore.com>
4760
4761 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4762 of command in two error message.
4763
855a6e68
JB
47642012-05-15 Joel Brobecker <brobecker@adacore.com>
4765
4766 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4767
d634f2de
JB
47682012-05-15 Joel Brobecker <brobecker@adacore.com>
4769
4770 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4771
9cc815f5
JK
47722012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4773
4774 * NEWS (show auto-load scripts-directory): Add forgotten command.
4775
6a609e58
JK
47762012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4777
4778 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4779 parameters.
4780
ac1438b5
L
47812012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4782
4783 * amd64-tdep.c: Include features/i386/x32.c and
4784 features/i386/x32-avx.c.
4785 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4786 initialize_tdesc_x32_avx.
4787
e7e0cddf
SS
47882012-05-14 Stan Shebs <stan@codesourcery.com>
4789
4790 Add dynamic printf.
4791 * breakpoint.h (enum bptype): New type bp_dprintf.
4792 (struct breakpoint): New field extra_string.
4793 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4794 (create_breakpoint): Add extra_string arg.
4795 * breakpoint.c (dprintf_breakpoint_ops): New.
4796 (is_breakpoint): Add bp_dprintf.
4797 (bpstat_what): Add dprintf case.
4798 (bptype_string): Ditto.
4799 (print_one_breakpoint_location): Ditto.
4800 (init_bp_location): Ditto.
4801 (bkpt_print_mention): Ditto.
4802 (dprintf_style_enums): New array.
4803 (dprintf_style): New global.
4804 (dprintf_function): New global.
4805 (dprintf_channel): New global.
4806 (update_dprintf_command_list): New function.
4807 (update_dprintf_commands): New function.
4808 (init_breakpoint_sal): Add extra_string argument, handle it.
4809 (create_breakpoint_sal): Add extra_string argument.
4810 (create_breakpoints_sal): Add extra_string argument, update callers.
4811 (find_condition_and_thread): Add extra argument.
4812 (create_breakpoint): Add extra_string argument, record it.
4813 (dprintf_command): New function.
4814 (break_command_1): Add arg to create_breakpoint call.
4815 (handle_gnu_v3_exceptions): Ditto.
4816 (trace_command): Ditto.
4817 (ftrace_command): Ditto.
4818 (strace_command): Ditto.
4819 (bkpt_print_mention): Add dprintf case.
4820 (create_breakpoint_sal_default): Add extra_string argument.
4821 (_initialize_breakpoint): Add new commands.
4822 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4823 * python/py-breakpoint.c (bppy_init): Ditto.
4824 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4825
8ae38c14
MR
48262012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4827
4828 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4829
9f676e66
SCR
48302012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4831
4832 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4833 unsigned long long.
4834
7efc75aa
SCR
48352012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4836
4837 Add a new function gdb.find_pc_line to the Python API.
4838 * NEWS (Python Scripting): Add entry about the new function.
4839 * python/python.c (gdbpy_find_pc_line): New function which
4840 implements gdb.find_pc_line.
4841 (GdbMethods): Add entry for the new function.
4842
70af3797
PA
48432012-05-12 Pedro Alves <palves@redhat.com>
4844
4845 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4846 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4847
06da564e
EZ
48482012-05-12 Eli Zaretskii <eliz@gnu.org>
4849
4850 * inferior.c: Include completer.h
4851 (initialize_inferiors): Set completer of add-inferior to
4852 filename_completer.
4853
0288cee2
L
48542012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4855
4856 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4857 gdbarch_ptr_bit for x32 core dump.
4858
f6537a2c
L
48592012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4860
4861 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4862 and features/i386/x32-avx-linux.c.
4863
85d4a676
SS
48642012-05-11 Stan Shebs <stan@codesourcery.com>
4865 Kwok Cheung Yeung <kcy@codesourcery.com>
4866
4867 * NEWS: Describe new info os commands.
4868 * common/linux-osdata.c (PID_T, TIME_T): Define.
4869 (MAX_PID_T_STRLEN): New.
4870 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4871 MAX_PID_T_STRLEN.
4872 (command_from_pid): Add comment. Change to use PID_T.
4873 (commandline_from_pid): Change to use PID_T.
4874 (user_from_pid): Add comment.
4875 (get_process_owner): Add comment. Change to use PID_T and
4876 MAX_PID_T_STRLEN.
4877 (get_number_of_cpu_cores): Add comment.
4878 (get_cores_used_by_process): Add comment. Change to use PID_T and
4879 MAX_PID_T_STRLEN.
4880 (linux_xfer_osdata_processes): Change to use PID_T and
4881 MAX_PID_T_STRLEN.
4882 (compare_processes): New function.
4883 (linux_xfer_osdata_processgroups): New function.
4884 (linux_xfer_osdata_threads): Change to use PID_T.
4885 (linux_xfer_osdata_fds): New function.
4886 (format_socket_state, print_sockets): New functions.
4887 (union socket_addr): New union.
4888 (linux_xfer_osdata_isockets): New function.
4889 (time_from_time_t, group_from_gid): New functions.
4890 (linux_xfer_osdata_shm): New function.
4891 (linux_xfer_osdata_sem): New function.
4892 (linux_xfer_osdata_msg): New function.
4893 (linux_xfer_osdata_modules): New function.
4894 (osdata_table): Add new entries.
4895 * common/buffer.c (buffer_xml_printf): Add support for long and
4896 long long format specifiers.
4897
f24afd6d
L
48982012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4899
4900 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4901 (tdesc_x32_avx_linux): Likewise.
4902
7349ff92
JK
49032012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4904
4905 Implement multi-component --with-auto-load-dir.
4906 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4907 entries.
4908 (--with-auto-load-safe-path): Update the default value description.
4909 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4910 New.
4911 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4912 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4913 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4914 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4915 "set auto-load scripts-directory".
4916 * config.in: Regenerate.
4917 * configure: Regenerate.
4918 * configure.ac (--with-auto-load-dir): New configure option.
4919 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4920
6dea1fbd
JK
49212012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4922
4923 Provide $ddir substitution for --with-auto-load-safe-path.
4924 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4925 entries.
4926 * auto-load.c: Include observer.h.
4927 (auto_load_safe_path_vec_update): Call substitute_path_component for
4928 each component. New variable ddir_subst.
4929 (auto_load_gdb_datadir_changed): New function.
4930 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4931 AUTO_LOAD_SAFE_PATH. New comment.
4932 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4933 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4934 * config.in: Regenerate.
4935 * configure: Regenerate.
4936 * configure.ac (--auto-load-safe-path): Rename
4937 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4938 GDB_DATADIR/auto-load.
4939 * defs.h (substitute_path_component): New declaration.
4940 * top.c: Include observer.h.
4941 (set_gdb_datadir): New function.
4942 (init_main): Install it for "set data-directory".
4943 * utils.c (substitute_path_component): New function.
4944
b09aca3a
JK
49452012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4946
4947 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4948 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4949 DEBUG_FILE_DIRECTORY. Handle multiple components of
4950 DEBUG_FILE_DIRECTORY.
4951
95554aad
TT
49522012-05-10 Tom Tromey <tromey@redhat.com>
4953
4954 * dwarf2read.c (recursively_write_psymbols): New function.
4955 (write_psymtabs_to_index): Use it.
4956
4957 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4958 field.
4959 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4960 (load_partial_comp_unit): Update.
4961 (queue_comp_unit): Add argument 'pretend_language'.
4962 (process_queue): Update.
4963 (psymtab_to_symtab_1): Skip dependencies that have a user.
4964 (load_partial_comp_unit_reader): Give meaning to the 'data'
4965 argument.
4966 (load_full_comp_unit): Add 'pretend_language' argument.
4967 (process_full_comp_unit): Add 'pretend_language' argument. Set
4968 language on CU.
4969 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4970 Update.
4971 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4972 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4973 Update.
4974 (prepare_one_comp_unit): Add 'pretend_language' argument.
4975
4976 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4977 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4978 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4979 (dw2_do_instantiate_symtab): Check whether symtab was read in
4980 before queueing.
4981 (dw2_instantiate_symtab): Add assertion. Call
4982 process_cu_includes.
4983 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4984 (partial_symtab_p): New typedef.
4985 (set_partial_user): New function.
4986 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4987 (scan_partial_symbols): Add imported CU to imported_symtabs.
4988 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4989 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4990 (get_symtab, recursively_compute_inclusions)
4991 (compute_symtab_includes, process_cu_includes)
4992 (process_imported_unit_die): New functions.
4993 (process_die) <DW_TAG_imported_unit>: New case.
4994 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4995
4996 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4997 comment.
4998 (struct partial_die_info) <locdesc>: Remove.
4999 <d>: New field.
5000 (process_psymtab_comp_unit): Add 'read_partial' argument.
5001 Update.
5002 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
5003 (scan_partial_symbols): Handle DW_TAG_imported_unit.
5004 (add_partial_symbol): Update.
5005 (process_die): Handle DW_TAG_partial_unit.
5006 (read_file_scope): Update comment.
5007 (load_partial_dies): Handle DW_TAG_imported_unit.
5008 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
5009 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
5010
e871fbb9
TT
50112012-05-10 Tom Tromey <tromey@redhat.com>
5012
5013 * cc-with-dwz.sh: New file.
5014
b5b04b5b
TT
50152012-05-10 Tom Tromey <tromey@redhat.com>
5016
5017 * symtab.h (struct symtab) <includes, user>: New fields.
5018 * block.h (struct block_iterator) <d, idx, which>: New fields.
5019 * block.c (initialize_block_iterator, find_iterator_symtab)
5020 (block_iterator_step, block_iter_name_step)
5021 (block_iter_match_step): New functions.
5022 (block_iterator_first, block_iterator_next)
5023 (block_iter_name_first, block_iter_name_next)
5024 (block_iter_match_first, block_iter_match_next): Rewrite.
5025 (get_block_symtab): New function.
5026
84a146c9
TT
50272012-05-10 Tom Tromey <tromey@redhat.com>
5028
5029 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
5030 set_block_symtab.
5031 * jit.c (finalize_symtab): Use allocate_global_block,
5032 set_block_symtab.
5033 * buildsym.c (finish_block_internal): New function, from old
5034 finish_block.
5035 (finish_block): Rewrite.
5036 (end_symtab): Use finish_block_internal, set_block_symtab.
5037 * block.h (struct global_block): New.
5038 (allocate_global_block, set_block_symtab): Declare.
5039 * block.c (allocate_global_block, set_block_symtab): New
5040 functions.
5041
9439a077
TT
50422012-05-10 Tom Tromey <tromey@redhat.com>
5043
5044 * psymtab.c (partial_map_expand_apply): Add assertion.
5045 (partial_map_symtabs_matching_filename): Skip included psymtabs.
5046 (psymtab_to_symtab): Find unshared psymtab.
5047 (dump_psymtab): Print including psymtabs.
5048 (recursively_search_psymtabs): New function.
5049 (expand_symtabs_matching_via_partial): Use it.
5050 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
5051 fields.
5052 (enum psymtab_search_status): New.
5053
8157b174
TT
50542012-05-10 Tom Tromey <tromey@redhat.com>
5055
5056 * tracepoint.c (scope_info): Update.
5057 * symtab.c (lookup_block_symbol, iterate_over_symbols)
5058 (find_pc_sect_symtab, search_symbols)
5059 (default_make_symbol_completion_list_break_on)
5060 (make_file_symbol_completion_list): Update.
5061 * symmisc.c (dump_symtab_1): Update.
5062 * stack.c (print_frame_args, iterate_over_block_locals)
5063 (print_frame_labels, iterate_over_block_arg_vars): Update.
5064 * python/py-block.c (block_object) <dict>: Remove.
5065 <block>: New field.
5066 <iter>: Change type.
5067 (blpy_iter): Update.
5068 (blpy_block_syms_iternext): Update.
5069 * psymtab.c (map_block): Use block iterators.
5070 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
5071 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
5072 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
5073 * infrun.c (check_exception_resume): Update.
5074 * cp-support.c (make_symbol_overload_list_block): Update.
5075 * coffread.c (patch_opaque_types): Update.
5076 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
5077 * block.h (struct block_iterator): New.
5078 (block_iterator_first, block_iterator_next, block_iter_name_first)
5079 (block_iter_name_next, block_iter_match_first)
5080 (block_iter_match_next): Declare.
5081 (ALL_BLOCK_SYMBOLS): Redefine.
5082 * block.c (block_iterator_first, block_iterator_next)
5083 (block_iter_name_first, block_iter_name_next)
5084 (block_iter_match_first, block_iter_match_next): New functions.
5085 * ada-lang.c (ada_add_block_symbols)
5086 (ada_make_symbol_completion_list): Use block iterator.
5087
a2ca7a52
TT
50882012-05-10 Tom Tromey <tromey@redhat.com>
5089
5090 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
5091 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
5092 (lookup_partial_symbol, find_last_source_symtab_from_partial)
5093 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
5094 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
5095 Update.
5096
64ea88dc
JB
50972012-05-10 Joel Brobecker <brobecker@adacore.com>
5098
5099 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
5100 print-file-var-lib2.c, print-file-var-main.c and
5101 print-file-var.exp (located in gdb/testsuite/gdb.base).
5102
99a547d6
JB
51032012-05-10 Joel Brobecker <brobecker@adacore.com>
5104
5105 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5106 try locating the symbol in the symbol's own objfile first, before
5107 extending the search to all objfiles.
5108 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5109 out of lookup_symbol_aux_symtabs.
5110 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5111 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5112 Do not search EXCLUDE_OBJFILE.
5113 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5114 (lookup_symbol_global): Search for matches in the block's objfile
5115 first, before searching all other objfiles.
5116
0ece64fd
TG
51172012-05-10 Tristan Gingold <gingold@adacore.com>
5118
5119 * printcmd.c (set_command): Add pre/post inc/dec.
5120
3d16a105
FCE
51212012-05-09 Frank Ch. Eigler <fche@redhat.com>
5122
5123 * gdb.1: Document -ex option.
5124
2efbc0f7
JB
51252012-05-09 Joel Brobecker <brobecker@adacore.com>
5126
5127 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
5128 * inferior.h (AT_SYMBOL): Delete.
5129
2c76a0c7
JB
51302012-05-09 Joel Brobecker <brobecker@adacore.com>
5131
5132 * mips-tdep.c (mips_push_dummy_code): New function.
5133 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
5134 ON_STACK and install mips_push_dummy_code as our gdbarch
5135 push_dummy_code routine.
5136
9401a810
PA
51372012-05-09 Pedro Alves <palves@redhat.com>
5138
5139 * target.c (set_maintenance_target_async_permitted): Rename to ...
5140 (set_target_async_command): ... this.
5141 (show_maintenance_target_async_permitted): Rename to ...
5142 (show_target_async_command): ... this.
5143 (initialize_targets): Adjust.
5144
3929b321
DE
51452012-05-08 Doug Evans <dje@google.com>
5146
5147 * go-exp.y (classify_name): Add missing assignment of fields of
5148 yylval.ssym.
5149
c41535fd
EZ
51502012-05-08 Eli Zaretskii <eliz@gnu.org>
5151
5152 Display the ">" prompt in interactive mode while reading canned
5153 commands, even when the current interpreter is MI.
5154
5155 * interps.c (interp_set_temp): New function.
5156
5157 * interps.h (interp_set_temp): Add prototype.
5158
5159 * cli/cli-script.c (restore_interp): New cleanup function.
5160 (read_command_lines): Temporarily override the current interpreter
5161 with CLI and arrange for restoring the original one.
5162
c0749c4d
JS
51632012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
5164
5165 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
5166
d7333987
SDJ
51672012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
5168
5169 * probe.c (parse_probes): Move conditional to check for
5170 debuginfo files from here...
5171 * stap-probe.c (stap_get_probes): ... to here.
5172
649e6d92
MK
51732012-05-07 Mark Kettenis <kettenis@gnu.org>
5174 H.J. Lu <hongjiu.lu@intel.com>
5175
5176 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
5177 `movl %esp, %ebp' for the X32 ABI.
5178
f39c6ffd
TT
51792012-05-07 Tom Tromey <tromey@redhat.com>
5180
5181 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
5182 get_DW_TAG_name.
5183 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
5184 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
5185 (dwarf_stack_op_name): Remove.
5186 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
5187 (decode_locdesc): Use get_DW_OP_name.
5188 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
5189 (dwarf2_compile_expr_to_ax): Likewise.
5190 (disassemble_dwarf_expression): Likewise.
5191 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
5192
1e1f6591
CLT
51932012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
5194
5195 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
5196 (sh_linux_sigtramp_cache): New function.
5197 (sh_linux_sigreturn_init): New function.
5198 (sh_linux_rt_sigreturn_init): New function.
5199 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
5200 patterns.
5201 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
5202 syscall codes.
5203 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
5204 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
5205 (sh_linux_init_abi): Add init calls to register new tramp_frame
5206 definitions under 32-bit SH, update comments.
5207
545c08b4
PA
52082012-05-07 Pedro Alves <palves@redhat.com>
5209
daac165e
PA
5210 PR gdb/10952
5211
545c08b4
PA
5212 * amd64-linux-tdep.c: Include glibc-tdep.h.
5213 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
5214 gdbarch_skip_solib_resolver callback.
5215
af2c1515
JK
52162012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5217
5218 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
5219 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
5220 (show_auto_load_safe_path): Check any-directory by comparison with "/".
5221 (add_auto_load_safe_path): Change the error message.
5222 (_initialize_auto_load): Change the "safe-path" help text.
5223 * configure: Regenerate
5224 * configure.ac (--without-auto-load-safe-path): Set
5225 WITH_AUTO_LOAD_SAFE_PATH to /.
5226
1067f998
SDJ
52272012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
5228
5229 * stap-probe.h: Do not include unecessary `probe.h'.
5230
45dfa85a
AM
52312012-05-05 Alan Modra <amodra@gmail.com>
5232
5233 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
5234 bfd_und_section_ptr.
5235 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
5236 and bfd_com_section_ptr.
5237
cf093994
JB
52382012-05-04 Joel Brobecker <brobecker@adacore.com>
5239
762ebb75 5240 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 5241
d40dc7a8
JB
52422012-05-04 Joel Brobecker <brobecker@adacore.com>
5243
5244 * windows-nat.h (segment_register_p_ftype): New typedef.
5245 (windows_set_segment_register_p): Add declaration.
5246 * windows-nat.c (segment_register_p): New static global.
5247 (windows_set_segment_register_p): New function.
5248 (do_windows_fetch_inferior_registers): Add special handling
5249 for segment registers.
5250 * amd64-windows-nat.c: #include "amd64-tdep.h".
5251 (amd64_windows_segment_register_p): New function.
5252 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
5253 * i386-windows-nat.c: #include "i386-tdep.h".
5254 (i386_windows_segment_register_p): New function.
5255 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
5256
52b3699b
TG
52572012-05-04 Tristan Gingold <gingold@adacore.com>
5258
5259 * printcmd.c (set_command): Emit a warning if the expression is not
5260 an assignment.
5261
94c74239
JB
52622012-05-03 Joel Brobecker <brobecker@adacore.com>
5263
5264 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
5265 Make static.
5266
fcf57f19
SDJ
52672012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
5268
5269 * stap-probe.c (stap_is_operator): Change declaration.
5270 (stap_get_opcode): Change return value.
5271 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
5272 `stap_parse_argument_1'.
5273
27d2932e
PA
52742012-05-03 Pedro Alves <pedro@codesourcery.com>
5275
5276 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
5277 debug log.
5278
a20ee7a4
SCR
52792012-05-03 Siva Chandra Reddy <sivachandra@google.com>
5280
5281 Add two new methods global_block and static_block to gdb.Symtab
5282 objects.
5283 * NEWS (Python scripting): Add entry about the new methods.
5284 * python/py-symtab.c (stpy_global_block): New function which
5285 implements the gdb.Symtab.global_block() method.
5286 (stpy_static_block): New function which implements the
5287 gdb.Symtab.static_block() method.
5288 (symtab_object_methods): Add entries for the two new methods.
5289
943cb756
DE
52902012-05-03 Doug Evans <dje@google.com>
5291
5292 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
5293 files.
5294
f4644a3f
YQ
52952012-05-03 Yao Qi <yao@codesourcery.com>
5296
5297 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
5298 space.
5299 (i386_process_record): Ditto.
5300
ef61f180
JB
53012012-05-02 Joel Brobecker <brobecker@adacore.com>
5302
5303 * infcall.c (unwind_on_signal_p): Make static.
5304
02f1df11
JB
53052012-05-02 Joel Brobecker <brobecker@adacore.com>
5306
5307 * sol-thread.c (solaris_pid_to_str): Make static.
5308 (_initialize_sol_thread): Add prototype.
5309
39023530
JB
53102012-05-02 Joel Brobecker <brobecker@adacore.com>
5311
5312 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
5313
c6b0c501
CF
53142012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
5315
5316 * MAINTAINERS: Remove myself.
5317
1ef71717
JK
53182012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5319
5320 Fix --without-auto-load-safe-path for MS-Windows host platform.
5321 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
5322
b31b86a7
EZ
53232012-05-02 Eli Zaretskii <eliz@gnu.org>
5324
5325 * gdb_curses.h: Undefine KEY_EVENT before including curses
5326 headers. Move "#undef MOUSE_MOVED" before any curses header
5327 inclusion.
5328
777532fc
SDJ
53292012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5330
5331 * features/i386/i386-mmx-linux.c: Regenerate.
5332 * features/rs6000/powerpc-32.c: Likewise.
5333 * features/rs6000/powerpc-32l.c: Likewise.
5334 * features/rs6000/powerpc-403.c: Likewise.
5335 * features/rs6000/powerpc-403gc.c: Likewise.
5336 * features/rs6000/powerpc-405.c: Likewise.
5337 * features/rs6000/powerpc-505.c: Likewise.
5338 * features/rs6000/powerpc-601.c: Likewise.
5339 * features/rs6000/powerpc-602.c: Likewise.
5340 * features/rs6000/powerpc-603.c: Likewise.
5341 * features/rs6000/powerpc-604.c: Likewise.
5342 * features/rs6000/powerpc-64.c: Likewise.
5343 * features/rs6000/powerpc-64l.c: Likewise.
5344 * features/rs6000/powerpc-750.c: Likewise.
5345 * features/rs6000/powerpc-860.c: Likewise.
5346 * features/rs6000/powerpc-e500.c: Likewise.
5347 * features/rs6000/powerpc-e500l.c: Likewise.
5348 * features/rs6000/powerpc-isa205-32l.c: Likewise.
5349 * features/rs6000/powerpc-isa205-64l.c: Likewise.
5350 * features/rs6000/rs6000.c: Likewise.
5351
d71871bc
SDJ
53522012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
5353
5354 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
5355 variable.
5356 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
5357 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
5358 (stap_parse_argument) <e>: Likewise.
5359 (handle_stap_probe) <byte_order>: Likewise.
5360
fd820528
DE
53612012-04-30 Doug Evans <dje@google.com>
5362
5363 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
5364 init_and_read_dies_worker. All callers updated.
5365 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
5366 replaced with init_cutu_and_read_dies.
5367 (load_partial_comp_unit): Pass 1 for use_existing_cu.
5368 (find_partial_die): Remove FIXME. Don't free current CU.
5369
ec3f619d 53702012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
5371
5372 * contrib: New directory.
5373 * contrib/test_pubnames_and_indexes.py: New file.
5374
fceca515
DE
53752012-04-30 Doug Evans <dje@google.com>
5376
5377 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
5378 All callers updated.
5379 (init_cu_die_reader): Verify the section is non-empty.
5380 (dwarf_decode_line_header): Don't dereference section->asection
5381 until we know the section is present.
5382
311fe7e1
SDJ
53832012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
5384
5385 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
5386 probes.
5387
5977971a
YQ
53882012-04-29 Yao Qi <yao@codesourcery.com>
5389
5390 * gdb-code-style.el: New hook gdb-markup-hook
5391 and gdb-comment-hook.
5392
dee91e82
DE
53932012-04-28 Doug Evans <dje@google.com>
5394
3019eac3
DE
5395 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
5396 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
5397 objfile->obfd.
5398 * symfile.h (dwarf2_debug_sections): New member addr.
5399 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
5400 (ctx_no_get_addr_index): New function.
5401 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
5402 (ctx_no_get_addr_index): Declare.
5403 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
5404 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
5405 (dwarf_expr_ctx_funcs): Update.
5406 (needs_get_addr_index): New function.
5407 (needs_frame_ctx_funcs): Update.
5408 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
5409 * dwarf2read.c: #include "gdbcore.h".
5410 (dwarf2_per_objfile): New members addr, dwo_files.
5411 (dwarf2_elf_names): Add entry for addr.
5412 (struct dwo_section_names): New type.
5413 (dwo_section_names): New static global.
5414 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
5415 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
5416 old debug_types_section member updated to use this.
5417 Rename member debug_types_section to info_or_types_section,
5418 all uses updated.
5419 (signatured_type): Rename member type_offset to type_offset_in_tu,
5420 all uses updated. New member type_offset_in_section.
5421 (struct dwo_sections): New type.
5422 (struct dwo_unit): New type.
5423 (struct dwo_file): New type.
5424 (die_reader_specs): New member dwo_file.
5425 (dwarf2_locate_sections): Watch for .debug_addr.
5426 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
5427 (dwarf2_read_section): Get bfd of section from bfd's asection,
5428 instead of objfile.
5429 (create_cus_from_index): Initialize the_cu->info_or_types_section.
5430 (create_signatured_type_table_from_index): Initialize
5431 sig_type->info_or_types_section.
5432 (dw2_get_file_names): Statement lists for type units with DWO files
5433 live in the DWO file.
5434 (create_debug_types_hash_table): New function.
5435 (create_all_type_units): Rewrite.
5436 (init_cu_die_reader): New arg dwo_file, all callers updated.
5437 (init_and_read_dies_worker): Get section from
5438 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
5439 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
5440 continue reading the CU/TU from there.
5441 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
5442 updated. Get section from this_cu->info_or_types_section.
5443 (create_all_comp_units): Initialize this_cu->info_or_types_section.
5444 (skip_one_die): New cases DW_FORM_GNU_addr_index,
5445 DW_FORM_GNU_str_index.
5446 (hash_dwo_file, eq_dwo_file): New functions.
5447 (allocate_dwo_file_hash_table): New function.
5448 (hash_dwo_unit, eq_dwo_unit): New functions.
5449 (allocate_dwo_unit_table): New function.
5450 (dwarf2_locate_dwo_sections): New function.
5451 (struct create_dwo_info_table_data): New type.
5452 (create_debug_info_hash_table_reader): New function.
5453 (create_debug_info_hash_table): New function.
5454 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
5455 (lookup_dwo_file): New function.
5456 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
5457 (free_dwo_file, free_dwo_file_cleanup): New functions.
5458 (free_dwo_file_from_slot, free_dwo_files): New functions.
5459 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
5460 (dwarf2_record_block_ranges): Ditto.
5461 (read_partial_die): Ditto.
5462 (process_enumeration_scope): Update to use type_offset_in_section.
5463 (read_full_die_1): New function.
5464 (read_full_die): Rewrite.
5465 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
5466 DW_FORM_GNU_str_index.
5467 (read_addr_index_1, read_addr_index): New functions.
5468 (read_addr_index_from_leb128): New function.
5469 (struct dwarf2_read_addr_index_data): New type.
5470 (dwarf2_read_addr_index_reader): New function.
5471 (dwarf2_read_addr_index): New function.
5472 (read_str_index): New function.
5473 (leb128_size): New function.
5474 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
5475 If processing a type unit from a DWO file, get the line section
5476 from the DWO file.
5477 (var_decode_location): Watch for DW_OP_GNU_addr_index.
5478 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
5479 DW_FORM_GNU_str_index.
5480 (lookup_die_type): Check whether section offset of type's die is
5481 known before looking it up. Remove assert. Condition can
5482 legimately happen for inter-cu type references.
5483 (dwarf_attr_name): Handle Fission attributes.
5484 (dwarf_form_name): Handle Fission forms.
5485 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
5486 DW_FORM_GNU_str_index.
5487 (follow_die_sig): Update to use type_offset_in_section.
5488 (decode_locdesc): New case DW_OP_GNU_addr_index.
5489 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
5490 DW_FORM_GNU_str_index.
5491 (cu_debug_loc_section): New function.
5492 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
5493 (dwarf2_per_objfile_free): Unmap .debug_addr section.
5494 Free DWO files if present.
5495 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
5496
dee91e82
DE
5497 Refactor DIE reading.
5498 * dwarf2read.c (dwarf2_per_objfile): Replace members
5499 debug_info_type_hash and debug_types_type_hash with die_type_hash.
5500 (die_reader_specs): New member "die_section". Temporarily make
5501 member "buffer" non-const, pending constifying all info_ptr uses.
5502 (die_reader_func_ftype): New typedef.
5503 (dw2_get_file_names_reader): New function.
5504 (dw2_get_file_names): Rewrite.
5505 (read_and_check_type_unit_head): Rename arg type_offset to
5506 type_offset_in_tu.
5507 (create_all_type_units): Improve debugging message.
5508 Improve dummy type unit check.
5509 (init_cu_die_reader): New arg "section". All callers updated.
5510 (init_and_read_dies_worker): New function.
5511 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
5512 (init_cutu_and_read_dies_no_follow): New function.
5513 (init_cutu_and_read_dies_simple): New function.
5514 (process_psymtab_comp_unit_reader): New function.
5515 (process_psymtab_comp_unit): Delete args section,
5516 is_debug_types_section. Rewrite. All callers updated.
5517 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
5518 All callers updated. Rewrite.
5519 (load_partial_comp_unit_reader): New function.
5520 (load_partial_comp_unit): Rewrite.
5521 (skip_children): New arg reader. Delete args buffer, cu.
5522 All callers updated.
5523 (skip_one_die): New arg reader. Delete args buffer, cu.
5524 All callers updated.
5525 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
5526 All callers updated.
5527 (load_full_comp_unit_reader): New function.
5528 (load_full_comp_unit): Rewrite.
5529 (read_comp_unit): Delete.
5530 (read_die_and_children_1): Delete, contents moved ...
5531 (read_die_and_children): ... here.
5532 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
5533 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
5534 All callers updated.
5535 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
5536 All callers updated.
5537 (find_partial_die): Rewrite load_all_dies support.
5538 (read_attribute_value): New arg reader. Delete args abfd, cu.
5539 All callers updated.
5540 (read_attribute): New arg reader. Delete args abfd, cu.
5541 All callers updated.
5542 (load_full_type_unit): Add assert.
5543 (read_signatured_type_reader): New function.
5544 (read_signatured_type): Rewrite.
5545 (free_stack_comp_unit): Remove call to age_cached_comp_units.
5546 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
5547 All callers updated. Set per_cu->cu = NULL after freeing it.
5548 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
5549 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
5550 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
5551 (set_die_type): Update.
5552 (get_die_type_at_offset): Update.
5553 (read_file_scope): Call prepare_one_comp_unit.
5554 (read_type_unit_scope): Ditto.
5555 (prepare_one_comp_unit): Set producer if present.
5556
72d59e0d
SDJ
55572012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
5558
5559 * probe.c (compile_rx_or_error): Silence ARI warning about missing
5560 gettext function on `error'.
5561
0fefef59
DE
55622012-04-27 Doug Evans <dje@google.com>
5563
5564 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
5565 is empty.
5566
28106bc2
SDJ
55672012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5568 Tom Tromey <tromey@redhat.com>
5569
5570 * breakpoint.c (struct breakpoint_objfile_data)
5571 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
5572 <exception_probes>: New fields.
5573 (free_breakpoint_probes): New function.
5574 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
5575 `_Unwind_DebugHook'.
5576 (create_exception_master_breakpoint): Likewise.
5577 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
5578 * infrun.c: Including necessary header files for handling SystemTap
5579 probes.
5580 (handle_inferior_event): Handling longjmp breakpoint and exceptions
5581 via SystemTap probes.
5582 (check_exception_resume): Remove `func' argument. Handle exception
5583 unwinding breakpoint set via a SystemTap probe.
5584 (insert_exception_resume_from_probe): New function.
5585
55aa24fb
SDJ
55862012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5587 Tom Tromey <tromey@redhat.com>
5588 Jan Kratochvil <jan.kratochvil@redhat.com>
5589
5590 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5591 (COMMON_OBS): Likewise.
5592 (HFILES_NO_SRCDIR): Add `probe'.
5593 * NEWS: Mention support for static and SystemTap probes.
5594 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5595 SystemTap probes' arguments parser.
5596 * arm-linux-tdep.c: Including headers needed to perform the parsing
5597 of SystemTap probes' arguments.
5598 (arm_stap_is_single_operand): New function.
5599 (arm_stap_parse_special_token): Likewise.
5600 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5601 probes' arguments parser.
5602 * ax-gdb.c (require_rvalue): Removing static declaration.
5603 (gen_expr): Likewise.
5604 * ax-gdb.h (gen_expr): Declaring function.
5605 (require_rvalue): Likewise.
5606 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5607 (bkpt_probe_breakpoint_ops): New variable.
5608 (momentary_breakpoint_from_master): Set the `probe' value.
5609 (add_location_to_breakpoint): Likewise.
5610 (break_command_1): Using proper breakpoint_ops according to the
5611 argument passed by the user in the command line.
5612 (bkpt_probe_insert_location): New function.
5613 (bkpt_probe_remove_location): Likewise.
5614 (bkpt_probe_create_sals_from_address): Likewise.
5615 (bkpt_probe_decode_linespec): Likewise.
5616 (tracepoint_probe_create_sals_from_address): Likewise.
5617 (tracepoint_probe_decode_linespec): Likewise.
5618 (tracepoint_probe_breakpoint_ops): New variable.
5619 (trace_command): Using proper breakpoint_ops according to the
5620 argument passed by the user in the command line.
5621 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5622 static probes on breakpoints and tracepoints.
5623 * breakpoint.h (struct bp_location) <probe>: New field.
5624 * cli-utils.c (skip_spaces_const): New function.
5625 (extract_arg): Likewise.
5626 * cli-utils.h (skip_spaces_const): Likewise.
5627 (extract_arg): Likewise.
5628 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5629 * configure.ac: Append `stap-probe.o' to be generated when ELF
5630 support is present.
5631 * configure: Regenerate.
5632 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5633 * elfread.c: Include `probe.h' and `arch-utils.h'.
5634 (probe_key): New variable.
5635 (elf_get_probes): New function.
5636 (elf_get_probe_argument_count): Likewise.
5637 (elf_evaluate_probe_argument): Likewise.
5638 (elf_compile_to_ax): Likewise.
5639 (elf_symfile_relocate_probe): Likewise.
5640 (stap_probe_key_free): Likewise.
5641 (elf_probe_fns): New variable.
5642 (elf_sym_fns): Add `sym_probe_fns' value.
5643 (elf_sym_fns_lazy_psyms): Likewise.
5644 (elf_sym_fns_gdb_index): Likewise.
5645 (_initialize_elfread): Initialize objfile cache for static
5646 probes.
5647 * gdb_vecs.h (struct probe): New forward declaration.
5648 (probe_p): New VEC declaration.
5649 * gdbarch.c: Regenerate.
5650 * gdbarch.h: Regenerate.
5651 * gdbarch.sh (stap_integer_prefix): New variable.
5652 (stap_integer_suffix): Likewise.
5653 (stap_register_prefix): Likewise.
5654 (stap_register_suffix): Likewise.
5655 (stap_register_indirection_prefix): Likewise.
5656 (stap_register_indirection_suffix): Likewise.
5657 (stap_gdb_register_prefix): Likewise.
5658 (stap_gdb_register_suffix): Likewise.
5659 (stap_is_single_operand): New function.
5660 (stap_parse_special_token): Likewise.
5661 (struct stap_parse_info): Forward declaration.
5662 * i386-tdep.c: Including headers needed to perform the parsing
5663 of SystemTap probes' arguments.
5664 (i386_stap_is_single_operand): New function.
5665 (i386_stap_parse_special_token): Likewise.
5666 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5667 probes' arguments parser.
5668 * i386-tdep.h (i386_stap_is_single_operand): New function.
5669 (i386_stap_parse_special_token): Likewise.
5670 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5671 * mipsread.c (ecoff_sym_fns): Likewise.
5672 * objfiles.c (objfile_relocate1): Support relocation for static
5673 probes.
5674 * parse.c (prefixify_expression): Remove static declaration.
5675 (initialize_expout): Likewise.
5676 (reallocate_expout): Likewise.
5677 * parser-defs.h (initialize_expout): Declare function.
5678 (reallocate_expout): Likewise.
5679 (prefixify_expression): Likewise.
5680 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5681 of SystemTap probes' arguments.
5682 (ppc_stap_is_single_operand): New function.
5683 (ppc_stap_parse_special_token): Likewise.
5684 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5685 probes' arguments parser.
5686 * probe.c: New file, for generic statically defined probe support.
5687 * probe.h: Likewise.
5688 * s390-tdep.c: Including headers needed to perform the parsing of
5689 SystemTap probes' arguments.
5690 (s390_stap_is_single_operand): New function.
5691 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5692 probes' arguments parser.
5693 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5694 * stap-probe.c: New file, for SystemTap probe support.
5695 * stap-probe.h: Likewise.
5696 * symfile.h: Include `gdb_vecs.h'.
5697 (struct sym_probe_fns): New struct.
5698 (struct sym_fns) <sym_probe_fns>: New field.
5699 * symtab.c (init_sal): Initialize `probe' field.
5700 * symtab.h (struct probe): Forward declaration.
5701 (struct symtab_and_line) <probe>: New field.
5702 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5703 locations.
5704 (stop_tracing): Likewise.
5705 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5706
22d2b532
SDJ
57072012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5708 Tom Tromey <tromey@redhat.com>
5709
5710 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5711 and to compile agent expressions.
5712 * infrun.c (siginfo_make_value): New argument `ignore'.
5713 (siginfo_funcs): New struct.
5714 (_initialize_infrun): New argument when calling
5715 `create_internalvar_type_lazy'.
5716 * thread.c (thread_id_make_value): New argument `ignore'.
5717 (thread_funcs): New struct.
5718 (_initialize_thread): New argument when calling
5719 `create_internalvar_type_lazy'.
5720 * tracepoint.c (sdata_make_value): New argument `ignore'.
5721 (sdata_funcs): New struct.
5722 (_initialize_tracepoint): New argument when calling
5723 `create_internalvar_type_lazy'.
5724 * value.c (make_value): New struct.
5725 (create_internalvar_type_lazy): New argument `data'.
5726 (compile_internalvar_to_ax): New function.
5727 (value_of_internalvar): Properly handling `make_value' case.
5728 (clear_internalvar): Likewise.
5729 (show_convenience): Adding `TRY_CATCH' block.
5730 * value.h (internalvar_make_value): Delete, replace by...
5731 (struct internalvar_funcs): ... this.
5732 (create_internalvar_type_lazy) <fun>: Delete argument.
5733 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5734 (compile_internalvar_to_ax): New function.
5735 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5736 (tlb_funcs): New struct.
5737 (_initialize_windows_tdep): New argument when calling
5738 `create_internalvar_type_lazy'.
5739
91da1414
MW
57402012-04-27 Mark Wielaard <mjw@redhat.com>
5741
5742 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5743 see whether it is an address or a constant offset from DW_AT_low_pc.
5744 (dwarf2_record_block_ranges): Likewise.
5745 (read_partial_die): Likewise.
5746
4ab9d8ec
MW
57472012-04-26 Mark Wielaard <mjw@redhat.com>
5748
5749 * MAINTAINERS (Write After Approval): Add myself to the list.
5750
a0911fd0
MR
57512012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5752
5753 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5754 (proc_prettyprint_signal): Likewise.
5755 (proc_prettyprint_faultset): Likewise.
5756 (proc_prettyprint_fault): Likewise.
5757 (proc_prettyprint_actionset): Likewise.
5758 (proc_prettyprint_flags): Move to new proc-flags.c section.
5759 (proc_prettyfprint_flags): New prototype.
5760 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5761 (proc_syscall, proc_cursig): Likewise.
5762 (proc_set_kill_on_last_close): Likewise.
5763 (proc_unset_kill_on_last_close): Likewise.
5764 (proc_set_watchpoint): Make static.
5765 (proc_delete_dead_threads): Likewise.
5766 (procfs_set_watchpoint): Likewise.
5767 (_initialize_procfs): Add prototype.
5768 * proc-events.c: Include proc-utils.h.
5769 (init_syscall_table): Make static.
5770 * proc-api.c (_initialize_proc_api): Add prototype.
5771 * proc-flags.c: Include proc-utils.h.
5772
9009e1ae
MR
57732012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5774
5775 * configure.ac: Add AC_ARG_PROGRAM.
5776 * configure: Regenerate.
5777
4fae6e18
JK
57782012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5779
5780 Fix DW_AT_lower_bound defaults for DWARF-4+.
5781 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5782 high. New variable low_default_is_valid. Implement DWARF-4+
5783 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5784 no default by the DWARF standard.
5785
14132e89 57862012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5787 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5788
5789 * infrun.c (handle_inferior_event): Move the check for return
5790 trampolines ahead of the check for function trampolines.
5791 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5792 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5793 (mips_str_mips16_ret_stub): Likewise.
5794 (mips_str_call_fp_stub): Likewise.
5795 (mips_str_call_stub): Likewise.
5796 (mips_str_fn_stub): Likewise.
5797 (mips_str_pic): Likewise.
5798 (mips_in_frame_stub): New function.
5799 (mips_unwind_pc): Return the return address rather than the PC
5800 if the PC of an intermediate frame is inside a call thunk.
5801 (mips_is_stub_suffix): New function.
5802 (mips_is_stub_mode): Likewise.
5803 (mips_get_mips16_fn_stub_pc): Likewise.
5804 (mips_skip_mips16_trampoline_code): Update to handle all the
5805 currently generated stub types. Don't recurse into __fn_stub
5806 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5807 Use cooked register accesses.
5808 (mips_in_return_stub): Reintroduce function.
5809 (mips_skip_trampoline_code): Traverse trampolines recursively.
5810 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5811
518f0db5 58122012-04-26 Joel Brobecker <brobecker@adacore.com>
5813
5814 GDB 7.4.1 released.
5815
3184d3f9
JL
58162012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5817
5818 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5819 * features/arm-with-m-vfp-d16.xml: New file. Describes
5820 Cortex-M with VFPv4-sp-d16 FPU register layout.
5821 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5822 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5823 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5824 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5825 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5826
b6201d44
DE
58272012-04-25 Doug Evans <dje@google.com>
5828
5829 * cli/cli-decode.c (print_doc_line): Use stream instead of
5830 current_uiout.
5831
4e2f8df6
SDJ
58322012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5833
5834 * features/arm-with-iwmmxt.c: Regenerate.
5835 * features/arm-with-m-fpa-layout.c: Likewise.
5836 * features/arm-with-m.c: Likewise.
5837 * features/arm-with-neon.c: Likewise.
5838 * features/arm-with-vfpv2.c: Likewise.
5839 * features/arm-with-vfpv3.c: Likewise.
5840 * features/mips-dsp-linux.c: Likewise.
5841 * features/mips-linux.c: Likewise.
5842 * features/mips64-dsp-linux.c: Likewise.
5843 * features/mips64-linux.c: Likewise.
5844 * features/s390-linux32.c: Likewise.
5845 * features/s390-linux32v1.c: Likewise.
5846 * features/s390-linux32v2.c: Likewise.
5847 * features/s390-linux64.c: Likewise.
5848 * features/s390-linux64v1.c: Likewise.
5849 * features/s390-linux64v2.c: Likewise.
5850 * features/s390x-linux64.c: Likewise.
5851 * features/s390x-linux64v1.c: Likewise.
5852 * features/s390x-linux64v2.c: Likewise.
5853 * features/tic6x-c62x-linux.c: Likewise.
5854 * features/tic6x-c62x.c: Likewise.
5855 * features/tic6x-c64x-linux.c: Likewise.
5856 * features/tic6x-c64x.c: Likewise.
5857 * features/tic6x-c64xp-linux.c: Likewise.
5858 * features/tic6x-c64xp.c: Likewise.
5859 * target-descriptions.c: Only generate `field_type' and `type'
5860 variables when needed.
5861
2def3e66
JB
58622012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5863
5864 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5865
a766d390
DE
58662012-04-25 Doug Evans <dje@google.com>
5867
5868 Initial pass at Go language support.
5869 * NEWS: Mention Go.
5870 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5871 go-valprint.c.
5872 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5873 (YYFILES): Add go-exp.c.
5874 (YYOBJ): Add go-exp.o.
5875 (local-maintainer-clean): Delete go-exp.c.
5876 * defs.h (enum language): Add language_go.
5877 * dwarf2read.c: #include "go-lang.h".
5878 (fixup_go_packaging): New function.
5879 (process_full_comp_unit): Call it when processing Go CUs.
5880 (dwarf2_physname): Add Go support.
5881 (read_file_scope): Handle missing language spec for GNU Go.
5882 (set_cu_language): Handle DW_LANG_Go.
5883 * go-exp.y: New file.
5884 * go-lang.h: New file.
5885 * go-lang.c: New file.
5886 * go-typeprint.c: New file.
5887 * go-valprint.c: New file.
5888 * symtab.c: #include "go-lang.h".
5889 (symbol_set_language): Handle language_go.
5890 (symbol_find_demangled_name, symbol_set_names): Ditto.
5891 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5892
4e2af517
JM
58932012-04-24 Jim Meyering <meyering@redhat.com>
5894
5895 avoid a few strncpy-induced buffer overruns
5896 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5897 fname and psargs before trying to concatenate.
5898 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5899 "name" before applying strchr.
5900
b77b7f52
SCR
59012012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5902
5903 * CONTRIBUTE: Use unified diff instead of context diff when
5904 generating patches.
5905
6321c22a
MR
59062012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5907
5908 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5909 code. Handle JR.HB correctly.
5910
742c84f6
MR
59112012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5912
5913 * mips-tdep.c
5914 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5915 with the other MIPS16 helpers.
5916
7fc7e0c3
SDJ
59172012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5918
5919 * observer.sh: Conditionally declare `args', thus cleaning up
5920 unused instances of this variable.
5921
20388dd6
YQ
59222012-04-24 Yao Qi <yao@codesourcery.com>
5923
5924 Revert this patch to allow breakpoint always-inserted
5925 in record target.
5926 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5927 * breakpoint.c: Include record.h.
5928 (breakpoints_always_inserted_mode): Return false when the record
5929 target is in use.
20388dd6
YQ
5930
5931 * breakpoint.c (iterate_over_bp_locations): New.
5932 * breakpoint.h: Declare.
5933 New typedef walk_bp_location_callback.
5934 * record.c (record_open): Call record_init_record_breakpoints.
5935 (record_sync_record_breakpoints): New.
5936 (record_init_record_breakpoints): New.
5937 * NEWS: Mention supporting breakpoint always-inserted mode in
5938 record target.
5939
4734f50e
MK
59402012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5941
5942 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5943 any thread.
5944
c326b90e
YQ
59452012-04-24 Yao Qi <yao@codesourcery.com>
5946
5947 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5948 (is_catchpoint): ... it.
5949 (print_one_breakpoint_location): Caller update.
5950 * breakpoint.h: Update declaration.
5951
d8fb5a1e
DM
59522012-04-23 David S. Miller <davem@davemloft.net>
5953
5954 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5955
34431a2a
TT
59562012-04-23 Tom Tromey <tromey@redhat.com>
5957
5958 * buildsym.c (add_free_pendings): Remove.
5959 * buildsym.h (add_free_pendings): Remove.
5960
4568ecf9
DE
59612012-04-23 Doug Evans <dje@google.com>
5962
5963 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5964 attr.u.unsnd instead of attr.u.addr.
5965 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5966 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5967 DW_FORM_ref_udata.
5968 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5969 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5970 DW_FORM_ref_udata.
5971 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5972
dca9aa3a
MR
59732012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5974
5975 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5976 (mips_o32_return_value): Likewise.
5977 (mips_o64_return_value): Likewise.
5978
c8ea1972
PH
59792012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5980
5981 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5982 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5983 their treatment in eval.c.
c8ea1972 5984
8d1b3521
DM
59852012-04-21 David S. Miller <davem@davemloft.net>
5986
5987 * sparc-tdep.c (X_DISP10): Define.
5988 (sparc_analyze_control_transfer): Handle compare-and-branch.
5989
03145bf4
JL
59902012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5991
5992 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5993 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5994
004159a2 59952012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5996 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5997
5998 * mips-tdep.c (mips_float_register_p): New function.
5999 (mips_convert_register_float_case_p): Use mips_float_register_p.
6000 (mips_register_type): Likewise.
6001 (mips_print_register): Likewise.
6002 (print_gp_register_row): Likewise.
6003 (mips_print_registers_info): Likewise.
6004
7f0e6aae
MR
60052012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
6006
6007 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
6008 of mips16 symbols.
6009
bc17beea
AP
60102012-04-20 Andrew Pinski <apinski@cavium.com>
6011
6012 * MAINTAINERS (Write After Approval): Add myself to the list.
6013
1730a5a5
SDJ
60142012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6015
6016 * MAINTAINERS: Update my e-mail address.
6017
38ea300a
PA
60182012-04-20 Pedro Alves <palves@redhat.com>
6019
6020 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
6021 $srcdir.
6022 * configure: Regenerate.
6023
111dfaae
SDJ
60242012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
6025
6026 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
6027 declaration.
6028 * gdb_vecs.h: Declare `const_char_ptr' VEC.
6029
4fb2c64a
JK
60302012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6031
6032 Fix compilation compatibility with python-2.4
6033 * python/py-type.c (convert_field): Cast ADDRSTRING for
6034 PyObject_SetAttrString as non-const. New comment.
6035
6328eb38
TT
60362012-04-19 Tom Tromey <tromey@redhat.com>
6037
6038 * top.c (quit_target): Use all_cleanups.
6039 * main.c (captured_command_loop): Use all_cleanups.
6040 * exceptions.c (throw_exception): Use all_cleanups.
6041
c971b7fa
PA
60422012-04-19 Pedro Alves <palves@redhat.com>
6043
6044 * Makefile.in (GNULIB_BUILDDIR): New.
6045 (LIBGNU, INCGNU, GNULIB_H): Adjust.
6046 (SUBDIRS): Add $(GNULIB_BUILDDIR).
6047 (CLEANDIRS). Remove gnulib/import.
6048 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
6049 (all-lib): Ditto.
6050 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
6051 (gnulib/import/Makefile): Replace gnulib/import with
6052 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
6053 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
6054 (aclocal_m4_deps): Remove the gnulib dependencies. Add
6055 acx_configure_dir.m4.
6056 * acinclude.m4: Include acx_configure_dir.m4.
6057 * acx_configure_dir.m4: New file.
6058 * aclocal.m4: Regenerate.
a09130f9
PA
6059 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
6060 calls. Configure gnulib using ACX_CONFIGURE_DIR.
6061 (GNULIB): New variable.
6062 (GNULIB_STDINT_H): Adjust.
6063 (AC_OUTPUT): Don't output gnulib/Makefile.
6064 * gdb/defs.h: Include build-gnulib/config.h.
6065 * aclocal.m4: Regenerate.
6066 * config.in: Regenerate.
6067 * configure: Regenerate.
6068
6069 * gnulib/Makefile.in: New file.
6070 * gnulib/configure.ac: New file.
6071 * gnulib/aclocal.m4: New file.
6072 * gnulib/config.in: New file.
6073 * gnulib/configure: New file.
c971b7fa
PA
6074 * gnulib/: Re-run gnulib-tool to adjust.
6075
b10faa68
DE
60762012-04-19 Doug Evans <dje@google.com>
6077
6078 * cleanups.h (struct cleanup): Move to cleanups.c.
6079 (make_cleanup_dtor_ftype): New typedef.
6080 (make_cleanup_dtor): Use it.
6081 (ALL_CLEANUPS): Replace with ...
6082 (all_cleanups): ... this. Declare. All uses updated.
6083 * cleanups.c: #include "gdb_assert.h".
6084 (sentinel_cleanup): New static global.
6085 (SENTINEL_CLEANUP): Define.
6086 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
6087 (make_my_cleanup2): Assert result is non-NULL.
6088 (all_cleanups): New function.
6089 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
6090 of NULL.
6091
d8c267cc
PA
60922012-04-19 Pedro Alves <palves@redhat.com>
6093
6094 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
6095 Adjust paths to gnulib imported files.
6096
809277f8
PA
60972012-04-19 Pedro Alves <palves@redhat.com>
6098
6099 * gnulib/: Move whole directory ...
6100 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
6101 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
6102 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
6103 (aclocal_m4_deps): Adjust.
6104 * aclocal.m4: Regenerate.
6105 * configure: Regenerate.
6106 * configure.ac: Adjust AC_OUTPUT output.
6107
aad9eab9
YQ
61082012-04-19 Yao Qi <yao@codesourcery.com>
6109
6110 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
6111 (vec.o): New rule.
6112 * vec.c: Move it ...
6113 * common/vec.c: ... here.
6114 * vec.h: Move it ...
6115 * common/vec.h: ... here.
6116
48fe4669
YQ
61172012-04-19 Yao Qi <yao@codesourcery.com>
6118
6119 * gdb-code-style.el: New.
6120
770d76d7
PA
61212012-04-18 Pedro Alves <palves@redhat.com>
6122
6123 Update gnulib from latest git.
6124 (639ea5ae15e39fe48d43e04864b2997301e4b969)
6125
6126 * gnulib/Makefile.am: Update.
6127 * gnulib/dummy.c: Update.
6128 * gnulib/extra/arg-nonnull.h: Update.
6129 * gnulib/extra/c++defs.h: Update.
6130 * gnulib/extra/update-copyright: Update.
6131 * gnulib/extra/warn-on-use.h: Update.
6132 * gnulib/inttypes.in.h: Update.
6133 * gnulib/m4/00gnulib.m4: Update.
6134 * gnulib/m4/extensions.m4: Update.
6135 * gnulib/m4/gnulib-cache.m4: Update.
6136 * gnulib/m4/gnulib-common.m4: Update.
6137 * gnulib/m4/gnulib-comp.m4: Update.
6138 * gnulib/m4/gnulib-tool.m4: Update.
6139 * gnulib/m4/include_next.m4: Update.
6140 * gnulib/m4/inttypes-pri.m4: Update.
6141 * gnulib/m4/inttypes.m4: Update.
6142 * gnulib/m4/longlong.m4: Update.
6143 * gnulib/m4/memchr.m4: Update.
6144 * gnulib/m4/memmem.m4: Update.
6145 * gnulib/m4/mmap-anon.m4: Update.
6146 * gnulib/m4/multiarch.m4: Update.
6147 * gnulib/m4/onceonly.m4: Update.
6148 * gnulib/m4/stddef_h.m4: Update.
6149 * gnulib/m4/stdint.m4: Update.
6150 * gnulib/m4/string_h.m4: Update.
6151 * gnulib/m4/warn-on-use.m4: Update.
6152 * gnulib/m4/wchar_h.m4: Update.
6153 * gnulib/m4/wchar_t.m4: Update.
6154 * gnulib/m4/wint_t.m4: Update.
6155 * gnulib/memchr.c: Update.
6156 * gnulib/memmem.c: Update.
6157 * gnulib/stddef.in.h: Update.
6158 * gnulib/stdint.in.h: Update.
6159 * gnulib/str-two-way.h: Update.
6160 * gnulib/string.in.h: Update.
6161 * gnulib/wchar.in.h: Update.
6162
6163 * gnulib/extra/arg-nonnull.h: Delete.
6164 * gnulib/extra/c++defs.h: Delete.
6165 * gnulib/extra/warn-on-use.h: Delete.
6166 * gnulib/m4/wchar_h.m4: Delete.
6167 * gnulib/m4/wint_t.m4: Delete.
6168 * gnulib/wchar.in.h: Delete.
6169
6170 * gnulib/extra/snippets/arg-nonnull.h: New.
6171 * gnulib/extra/snippets/c++defs.h: New.
6172 * gnulib/extra/snippets/warn-on-use.h: New.
6173
6174 * aclocal.m4: Regenerate.
6175 * config.in: Regenerate.
6176 * configure: Regenerate.
6177 * gnulib/Makefile.in: Regenerate.
6178
174e088e
PA
61792012-04-18 Pedro Alves <palves@redhat.com>
6180
6181 Reimport the update-copyright module from gnulib
6182 (250b80067c1e1d8faa0c42fb572f721975b929c5).
6183
6184 * configure: Regenerate.
6185 * gnulib/Makefile.am: Update.
6186 * gnulib/Makefile.in: Regenerate.
6187 * gnulib/extra/update-copyright: Update.
6188 * gnulib/m4/gnulib-cache.m4: Update.
6189 * gnulib/m4/gnulib-comp.m4: Update.
6190
7f533142
JB
61912012-04-18 Tristan Gingold <gingold@adacore.com>
6192
6193 * configure.ac (aix): Put -lpthread into libs.
6194 * configure: Regenerate.
6195
001822aa
TT
61962012-04-18 Tom Tromey <tromey@redhat.com>
6197
6198 * linespec.c (convert_linespec_to_sals): Don't use
6199 SYMBOL_OBJ_SECTION.
6200 (compare_msymbols): Arguments are minsym_and_objfile, not
6201 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
6202
db026a31
PA
62032012-04-18 Pedro Alves <palves@redhat.com>
6204
6205 Revert gnulib/ part of:
6206 2011-01-01 Joel Brobecker <brobecker@adacore.com>
6207 Copyright year update in most files (performed by copyright.sh).
6208
12df843f
JK
62092012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6210
6211 Fix 64-bit constants on 32-bit hosts.
6212 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
6213 from unsigned long to ULONGEST.
6214 (read_signed_leb128): Change declaration return type from long to
6215 LONGEST.
6216 (dwarf2_const_value_attr): Change declaration parameter value from long
6217 to LONGEST.
6218 (dwarf2_compute_name): Change variable value from long to LONGEST.
6219 (read_unsigned_leb128): Change return type, variable result and some
6220 casts from unsigned long to ULONGEST.
6221 (read_signed_leb128): Change return type, variable result and some
6222 casts from long to LONGEST.
6223 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
6224 value from long to LONGEST.
6225 (dwarf2_const_value): Change variable value from long to LONGEST.
6226 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
6227 plongest and hex_string.
6228 * symtab.h (struct general_symbol_info): Change ivalue from long to
6229 LONGEST, remove the comment.
6230 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
6231 Change SYMBOL_VALUE format strings to use plongest and hex_string.
6232
14e75d8e
JK
62332012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
6234
6235 PR symtab/7259:
6236 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
6237 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
6238 (ada_discrete_type_low_bound): Fix function comment. Use
6239 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
6240 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
6241 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6242 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
6243 Use TYPE_FIELD_ENUMVAL.
6244 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
6245 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6246 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
6247 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
6248 TYPE_CODE_ENUM.
6249 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
6250 * dwarf2read.c (process_enumeration_scope): Likewise.
6251 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
6252 field.bitpos.
6253 (class StructMainTypePrettyPrinter): Support also
6254 FIELD_LOC_KIND_ENUMVAL.
6255 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
6256 TYPE_CODE_ENUM.
6257 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6258 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
6259 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
6260 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
6261 field enumval.
6262 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
6263 accommodate enumval.
6264 (struct call_site): Adjust loc_kind to accommodate enumval.
6265 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
6266 (TYPE_FIELD_ENUMVAL): New macros.
6267 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
6268 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
6269 TYPE_CODE_ENUM.
6270 * p-typeprint.c (pascal_type_print_base): Likewise.
6271 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
6272 enumval.
6273 * python/lib/gdb/types.py (make_enum_dict): Likewise.
6274 * python/py-type.c (convert_field): New variable addrstring. Use
6275 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
6276 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
6277 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
6278 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
6279 TYPE_CODE_ENUM.
6280 * valprint.c (generic_val_print): Likewise.
6281
380bca97
DE
62822012-04-17 Doug Evans <dje@google.com>
6283
dcc07052
DE
6284 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
6285
380bca97
DE
6286 * dwarf2read.c: Whitespace fixes.
6287 (lookup_signatured_type): Tweak comment.
6288 (get_die_type_at_offset): Fix comment.
6289
ec92004f
JB
62902012-04-17 Joel Brobecker <brobecker@adacore.com>
6291
6292 * xcoffread.c (xcoff_secnum_to_sections): New function.
6293 (secnum_to_section, secnum_to_bfd_section): Reimplement
6294 using xcoff_secnum_to_sections. Rename "secnum" parameter
6295 into "n_scnum".
6296 (RECORD_MINIMAL_SYMBOL): Delete.
6297 (record_minimal_symbol): New function.
6298 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
6299 by call to record_minimal_symbol and set misc_func_recorded
6300 to 1. Set last_csect_sec to the XCOFF section index instead
6301 of GDB's section_offset index. Update calls to
6302 prim_record_minimal_symbol_and_info to pass the BFD section
6303 as well.
6304
40301fb7
JB
63052012-04-17 Joel Brobecker <brobecker@adacore.com>
6306
6307 * xcoffread.c (read_xcoff_symtab): Delete variables
6308 last_csect_val and last_csect_sec and associated code.
6309
e0088cfd
DE
63102012-04-17 Doug Evans <dje@google.com>
6311
58d5e2c3
DE
6312 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
6313 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6314 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
6315 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
6316
c27f5738
DE
6317 * cleanups.h: New file.
6318 * cleanups.c: New file.
6319 * Makefile.in (SFILES): Add cleanups.c.
6320 (HFILES_NO_SRCDIR): Add cleanups.h.
6321 (COMMON_OBS): Add cleanups.o.
6322 * defs.h (struct cleanup): Moved to cleanups.h.
6323 (do_cleanups,do_final_cleanups): Ditto.
6324 (discard_cleanups,discard_final_cleanups): Ditto
6325 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6326 (save_cleanups,save_final_cleanups): Ditto.
6327 (restore_cleanups,restore_final_cleanups): Ditto.
6328 (null_cleanup): Ditto.
6329 (make_my_cleanup,make_my_cleanup2): Ditto.
6330 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6331 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
6332 (do_cleanups,do_final_cleanups): Ditto.
6333 (discard_cleanups,discard_final_cleanups): Ditto
6334 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
6335 (save_cleanups,save_final_cleanups): Ditto.
6336 (restore_cleanups,restore_final_cleanups): Ditto.
6337 (null_cleanup): Ditto.
6338 (make_my_cleanup,make_my_cleanup2): Ditto.
6339 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
6340
e0088cfd
DE
6341 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
6342 make_my_cleanup.
6343 (make_cleanup_dyn_string_delete): Ditto.
6344 (make_cleanup_ui_file_delete): Ditto.
6345 (make_cleanup_ui_out_redirect_pop): Ditto.
6346 (make_cleanup_free_section_addr_info): Ditto.
6347 (make_cleanup_restore_integer): Ditto.
6348 (make_cleanup_unpush_target): Ditto.
6349 (make_cleanup_value_free_to_mark): Ditto.
6350 (make_cleanup_value_free): Ditto.
6351 (make_cleanup_free_so): Ditto.
6352
4dc84fd1
JK
63532012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6354
6355 New option "set debug auto-load".
6356 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
6357 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
6358 (auto_load_safe_path_vec_update)
6359 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
6360 if DEBUG_AUTO_LOAD.
6361 (file_is_auto_load_safe): New parameters debug_fmt and ....
6362 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
6363 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
6364 caller by explanatory string.
6365 (_initialize_auto_load): Register "set debug auto-load".
6366 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
6367 and ....
6368 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6369 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
6370 by explanatory string.
6371 * main.c (captured_main): Likewise.
6372 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
6373 (source_section_scripts): Likewise.
6374
bccbefd2
JK
63752012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6376
6377 New option "set auto-load safe-path".
6378 * NEWS: New commands "set auto-load safe-path"
6379 and "show auto-load safe-path".
6380 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
6381 (auto_load_safe_path, auto_load_safe_path_vec)
6382 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
6383 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
6384 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
6385 (source_gdb_script_for_objfile): New variable is_safe. Call
6386 file_is_auto_load_safe. Return if it is not.
6387 (struct loaded_script): New field loaded.
6388 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
6389 (print_script): Use LOADED indicator instead of FULL_PATH. Change
6390 output "Missing" to "No".
6391 (_initialize_auto_load): New variable cmd. Initialize
6392 auto_load_safe_path. Register "set auto-load safe-path",
6393 "show auto-load safe-path" and "add-auto-load-safe-path".
6394 * auto-load.h (maybe_add_script): Add parameter loaded.
6395 (file_is_auto_load_safe): New declaration.
6396 * config.in: Regenerate.
6397 * configure: Regenerate.
6398 * configure.ac: New parameters --with-auto-load-safe-path
6399 and --without-auto-load-safe-path.
6400 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
6401 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
6402 * main.c (captured_main): Check file_is_auto_load_safe for
6403 LOCAL_GDBINIT.
6404 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
6405 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
6406 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
6407 not.
6408
bf88dd68
JK
64092012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6410
6411 auto-load: Implementation.
6412 * NEWS: New descriptions for "info auto-load",
6413 "info auto-load gdb-scripts", "info auto-load python-scripts",
6414 "info auto-load local-gdbinit" and "info auto-load libthread-db".
6415 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
6416 and "show auto-load-scripts". New description for "set auto-load",
6417 "show auto-load", "set auto-load gdb-scripts",
6418 "show auto-load gdb-scripts", "set auto-load python-scripts",
6419 "show auto-load python-scripts", "set auto-load local-gdbinit",
6420 "show auto-load local-gdbinit", "set auto-load libthread-db" and
6421 "show auto-load libthread-db".
6422 * auto-load.c: Remove include python/python-internal.h. Add includes
6423 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
6424 cli/cli-setshow.h.
6425 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
6426 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
6427 (gdbpy_global_auto_load): Rename to ...
6428 (global_auto_load): ... here.
6429 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6430 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
6431 (script_language_gdb, source_gdb_script_for_objfile): New.
6432 (struct loaded_script): New field language.
6433 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
6434 LANGUAGE.
6435 (maybe_add_script): Add parameter language. Drop redundant
6436 entry.full_path initialization. Initialize entry.language and
6437 (*slot)->language.
6438 (auto_load_objfile_script): Change parameter suffix to language.
6439 Remove the call of maybe_add_script.
6440 Call language->source_script_for_objfile.
6441 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
6442 New.
6443 (collect_matching_scripts): Adjust it for
6444 struct collect_matching_scripts_data.
6445 (auto_load_info_scripts_pattern_nl): New variable.
6446 (info_auto_load_scripts): Rename to ...
6447 (auto_load_info_scripts): ... here, add parameter language. Adjust it
6448 for struct collect_matching_scripts_data.
6449 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
6450 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
6451 (auto_load_show_cmdlist_get, info_auto_load_cmd)
6452 (auto_load_info_cmdlist_get): New.
6453 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
6454 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
6455 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
6456 "info auto-load local-gdbinit".
6457 * auto-load.h (struct script_language): New.
6458 (gdbpy_global_auto_load): Rename to ...
6459 (global_auto_load): ... here.
6460 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
6461 (auto_load_local_gdbinit_loaded): New declarations.
6462 (maybe_add_script): New parameter language.
6463 (auto_load_objfile_script): Change parameter suffix to language.
6464 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
6465 (auto_load_info_scripts, auto_load_set_cmdlist_get)
6466 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
6467 declarations.
6468 * linux-thread-db.c: Include auto-load.h and ctype.h.
6469 (auto_load_thread_db, show_auto_load_thread_db): New.
6470 (struct thread_db_info): New field filename.
6471 (delete_thread_db_info): Call xfree for FILENAME.
6472 (try_thread_db_load): Initialize FILENAME.
6473 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
6474 if !AUTO_LOAD_THREAD_DB.
6475 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
6476 (_initialize_thread_db): Install auto_load_thread_db
6477 as "set auto-load libthread-db" and install info_auto_load_libthread_db
6478 as "info auto-load libthread-db".
6479 * main.c (captured_main): Rename gdbpy_global_auto_load to
6480 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
6481 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
6482 (print_gdb_help): Extend the help for 'local init file'.
6483 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
6484 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
6485 (auto_load_scripts): Rename to ...
6486 (auto_load_python_scripts): ... here, update the comment.
6487 (gdbpy_load_auto_script_for_objfile): New declaration.
6488 (show_auto_load_python_scripts, script_language_python)
6489 (gdbpy_load_auto_script_for_objfile): New.
6490 (source_section_scripts): Refactor the code.
6491 (load_auto_scripts_for_objfile): Rename to ...
6492 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
6493 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
6494 (info_auto_load_python_scripts): New.
6495 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
6496 Rename "set auto-load-scripts" to "set auto-load python-scripts".
6497 Register "set auto-load-scripts" as its deprecated alias. Register
6498 "info auto-load python-scripts". Register "info auto-load-scripts" as
6499 its deprecated alias.
6500 (load_auto_scripts_for_objfile): Rename to ...
6501 (gdbpy_load_auto_scripts_for_objfile): ... here.
6502 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
6503 (gdbpy_load_auto_scripts_for_objfile): ... here.
6504
e2207b9a
JK
65052012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6506
6507 auto-load: Move files.
6508 * Makefile.in (SFILES): Add auto-load.c.
6509 (HFILES_NO_SRCDIR): Add auto-load.h.
6510 (COMMON_OBS): Add auto-load.o.
6511 (distclean): Change .gdbinit for gdb-gdb.gdb.
6512 * auto-load.c: New file, with parts from python/py-auto-load.c.
6513 * auto-load.h: New file, with parts from python/python.h.
6514 * configure: Regenerate.
6515 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
6516 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
6517 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
6518 * main.c: Include auto-load.h.
6519 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
6520 command.h, observer.h and progspace.h to auto-load.c. Add include
6521 auto-load.h.
6522 (gdbpy_global_auto_load, struct auto_load_pspace_info)
6523 (struct loaded_script, auto_load_pspace_data)
6524 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
6525 (hash_loaded_script_entry, eq_loaded_script_entry)
6526 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
6527 (maybe_add_script): Move to auto-load.c.
6528 (source_section_scripts): Change maybe_add_script parameters passing,
6529 use script_not_found_warning_print.
6530 (clear_section_scripts, auto_load_objfile_script)
6531 (auto_load_new_objfile, loaded_script_ptr)
6532 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
6533 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
6534 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
6535 auto_load_new_objfile and info_auto_load_scripts initizations to
6536 auto-load.c.
6537 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
6538
e4ab2fad
JK
65392012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 Code cleanup.
6542 * charset.c (find_charset_names): Remove variables ix and elt.
6543 Use free_char_ptr_vec.
6544 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
6545 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6546 debugdir_end. New variable debugdir_len.
6547 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
6548 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
6549 declarations.
6550 * progspace.c (clear_program_space_solib_cache): Remove variables ix
6551 and elt. Use free_char_ptr_vec.
6552 * source.c (add_path): Remove variables argv, arg and argv_index.
6553 New variables dir_vec, back_to, ix and name.
6554 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
6555 make_cleanup_freeargv. Remove variable separator. Simplify the code
6556 no longer expecting DIRNAME_SEPARATOR.
6557 (openp): Remove variable p, p1 and len. New variables dir_vec,
6558 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
6559 no longer expecting DIRNAME_SEPARATOR.
6560 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
6561 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
6562 debugdir_end.
6563 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
6564 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
6565 (dirnames_to_char_ptr_vec): New functions.
6566
5ee4ed9f
JK
65672012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6568
6569 Code cleanup.
6570 * source.c (add_path): Remove always true conditional 'p == 0' and
6571 unindent its code block.
6572
f41f5e61
PA
65732012-04-17 Pedro Alves <palves@redhat.com>
6574
6575 * gdbtypes.h (FIELD_BITPOS): Rename to ...
6576 (FIELD_BITPOS_LVAL): ... this.
6577 (FIELD_BITPOS): New.
6578 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
6579 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
6580 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
6581 SET_FIELD_BITPOS.
6582 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
6583 SET_FIELD_BITPOS.
6584 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
6585 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
6586 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6587 SET_FIELD_BITPOS.
6588
945b3a32
JK
65892012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6590
6591 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6592 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6593 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6594 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6595 * jv-lang.c (java_link_class_type): Likewise, once.
6596 * stabsread.c (read_enum_type): Likewise.
6597
42476b70
YQ
65982012-04-16 Yao Qi <yao@codesourcery.com>
6599
6600 * common/agent.c (agent_run_command): Add one more parameter `len'.
6601 Update callers.
6602 * common/agent.h: Update declaration.
6603 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6604 Update.
6605 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6606
8264ba82
AG
66072012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6608
6609 PR mi/13393
6610 * value.c (value_actual_type): New function.
6611 * value.h (value_actual_type): New declaration.
6612 * varobj.c (update_type_if_necessary): New function.
6613 (varobj_create): Call value_actual_type instead of
6614 value_type.
6615 (install_dynamic_child): distinct changed and type changed MI variable
6616 objects.
6617 (update_dynamic_varobj_children): Updated for install_dynamic_child
6618 change. All callers updated.
a09130f9 6619 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6620 the value changed and RTTI is used to determine the type.
6621 (create_child_with_value): Call value_actual_type instead of
6622 value_type.
a09130f9 6623 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6624 specify whether the given value should be casted to enclosing type.
6625 All callers updated.
6626
55a8c076
YQ
66272012-04-14 Yao Qi <yao@codesourcery.com>
6628
6629 Import gnulib module inttypes from git
6630 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6631 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6632 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6633 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6634 * aclocal.m4, config.in, configure: Regenerated.
6635 * gnulib/Makefile.am: Update.
6636 * gnulib/Makefile.in: Update.
6637 * gnulib/m4/gnulib-cache.m4: Update.
6638 * gnulib/m4/gnulib-comp.m4: Update.
6639 * gnulib/inttypes.in.h: New.
6640 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6641 * gnulib/m4/inttypes.m4: New.
55a8c076 6642
ca7781d2
LM
66432012-04-13 Luis Machado <lgustavo@codesourcery.com>
6644
6645 * infrun.c (resume): Update PC address to the real PC after
6646 preparing to do displaced stepping.
6647
e319fa28
DE
66482012-04-12 Doug Evans <dje@google.com>
6649
6650 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6651 All callers updated.
6652
15add3f5
MK
66532012-04-12 Mark Kettenis <kettenis@gnu.org>
6654
6655 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6656
52dc124a
DE
66572012-04-12 Doug Evans <dje@google.com>
6658
0e50663e
DE
6659 * dwarf2read.c (create_all_type_units): Renamed from
6660 create_debug_types_hash_table. All callers updated.
6661
52dc124a
DE
6662 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6663 local type_sig to sig_type, type_offset to type_offset_in_tu.
6664 (hash_signatured_type): Renamed from hash_type_signature,
6665 all callers updated.
6666 (eq_signatured_type): Renamed from eq_type_signature,
6667 all callers updated.
6668 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6669 (process_enumeration_scope): Ditto.
6670 (lookup_signatured_type_at_offset): Ditto.
6671 (load_full_type_unit, read_signatured_type): Ditto.
6672
248fd3bf
YQ
66732012-04-12 Yao Qi <yao@codesourcery.com>
6674
6675 * remote.c (async_remote_interrupt): Correct function name in
6676 debug message.
6677 (async_remote_interrupt_twice): Ditto.
6678
bc3aa6c3
DE
66792012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6680
6681 * source.c (find_and_open_source): Consistently pass resulting
6682 full path through xfullpath.
6683
9e529e1d
JK
66842012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6685
6686 Provide more specific displaced-stepping memory error message.
6687 * infrun.c (displaced_step_prepare): New variable status. Call
6688 target_read_memory instead of read_memory, provide more specific
6689 error message.
6690
82e0cec1
TG
66912012-04-11 Tristan Gingold <gingold@adacore.com>
6692
6693 PR gdb/13901
6694 * darwin-nat.c (darwin_execvp): Revert previous patch.
6695
d987a266
TG
66962012-04-11 Tristan Gingold <gingold@adacore.com>
6697
6698 PR gdb/13901
6699 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6700 in case of change.
6701
016b7430
TG
67022012-04-11 Tristan Gingold <gingold@adacore.com>
6703
6704 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6705 warning.
6706
06fc020f
SCR
67072012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6708
6709 New command 'explore' which helps explore values and types in
6710 scope.
6711 * NEWS: Add an entry about the new 'explore' command.
6712 * data-directory/Makefile.in: Add gdb/command/explore.py
6713 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6714 command using the GDB Python API.
06fc020f 6715
de0919f8 67162012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6717
6718 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6719 extension in jump target calculation.
6720
de0919f8 67212012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6722
6723 * mips-tdep.c (mips32_next_pc): Handle JALX.
6724
2f26ef89
YQ
67252012-04-10 Yao Qi <yao@codesourcery.com>
6726
6727 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6728
2e505b66
YQ
67292012-04-10 Yao Qi <yao@codesourcery.com>
6730
6731 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6732 and gnulib/m4/gnulib-tool.m4.
6733
0d99eb77
DE
67342012-04-10 Doug Evans <dje@google.com>
6735
6736 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6737 (load_partial_dies): Clarify comment.
6738 (find_partial_die): Support rereading type units.
6739 Clarify CU handling, if we know offset is in CU, don't search for the
6740 containing CU. Add comment regarding memory waste.
6741
9a82b8ff
L
67422012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6743
6744 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6745 i386/x32-avx and i386/x32-avx-linux.
6746 (i386/x32-expedite): New.
6747 (i386/x32-linux-expedite): Likewise.
6748 (i386/x32-avx-expedite): Likewise.
6749 (i386/x32-avx-linux-expedite): Likewise.
6750 ($(outdir)/i386/x32.dat): Likewise.
6751 ($(outdir)/i386/x32-linux.dat): Likewise.
6752 ($(outdir)/i386/x32-avx.dat): Likewise.
6753 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6754
6755 * features/i386/x32-avx-linux.xml: New file.
6756 * features/i386/x32-avx.xml: Likewise.
6757 * features/i386/x32-core.xml: Likewise.
6758 * features/i386/x32-linux.xml: Likewise.
6759 * features/i386/x32.xml: Likewise.
6760
6761 * features/i386/x32-avx-linux.c: New. Generated.
6762 * features/i386/x32-avx.c: Likewise.
6763 * features/i386/x32-linux.c: Likewise.
6764 * features/i386/x32.c: Likewise.
6765 * regformats/i386/x32-avx-linux.dat: Likewise.
6766 * regformats/i386/x32-avx.dat: Likewise.
6767 * regformats/i386/x32-linux.dat: Likewise.
6768 * regformats/i386/x32.dat: Likewise.
6769
ee41036f
TG
67702012-04-10 Tristan Gingold <gingold@adacore.com>
6771
6772 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6773 code to kill the inferior.
6774
a7aa5b8a
MK
67752012-04-09 Mark Kettenis <kettenis@gnu.org>
6776
6777 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6778 defines.
6779 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6780 defines.
a09130f9 6781 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6782 (yyvsp): New defines.
6783 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6784 defines.
6785 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6786 defines.
6787 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6788 defines.
6789 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6790 defines.
6791 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6792 defines.
6793
fb57d452
MK
67942012-04-09 Mark Kettenis <kettenis@gnu.org>
6795
a09130f9 6796 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6797 (sparc64_store_arguments): Fix coding style.
6798
cdc7b32f
MK
67992012-04-07 Mark Kettenis <kettenis@gnu.org>
6800
6801 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6802 complex floats, adjust some related comments and tighten a related
6803 assertion.
6804 (sparc64_extract_return_value): Handle complex floats.
6805
7adf1e79
DE
68062012-04-07 Doug Evans <dje@google.com>
6807
6808 * dwarf2read.c (load_partial_dies): Change condition to assert.
6809
50f1ae7b
DE
68102012-04-06 Doug Evans <dje@google.com>
6811
6812 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6813 "mov %rsp,%rbp".
6814
55fa75c3
KB
68152012-04-05 Kevin Buettner <kevinb@redhat.com>
6816
6817 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6818 fencepost error.
6819 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6820 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6821 architecture.
6822
40e084e1
KS
68232012-04-05 Keith Seitz <keiths@redhat.com>
6824
6825 * linespec.c (decode_compound): Remove.
6826 (enum offset_relative_sign): New enum.
6827 (struct line_offset): New struct.
6828 (struct linespec): New struct.
6829 (struct linespec_state): Move file_symtabs,
6830 user_filename, and user_function into struct linespec.
6831 Make result an anonymous struct holding vectors of
6832 symbolp and minsym_and_objfile_d.
6833 Add language member.
6834 (enum ls_token_type): New enum.
6835 (linespec_keywords): New array.
6836 (struct ls_token): New struct.
6837 (struct ls_parser): New struct.
6838 (linespec_lexer_lex_number): New function.
6839 (linespec_lexer_lex_keyword): New function.
6840 (is_ada_operator): New function.
6841 (skip_quote_char): New function.
6842 (copy_token_string): New function.
6843 (is_closing_quote_enclosed): New function.
6844 (find_parameter_list_end): New function.
6845 (linespec_lexer_lex_string): New function.
6846 (linespec_lexer_lex_one): New function.
6847 (linespec_lexer_consume_token): New function.
6848 (linespec_lexer_peek_token): New function.
6849 (cplusplus_error): Remove unused function.
6850 (find_methods): Update comment.
6851 (find_toplevel_char): Return const.
6852 (is_objc_method_format): Remove unused function.
6853 (find_toplevel_string): New function.
6854 (is_linespec_boundary): Remove.
6855 (symbol_not_found_error): New function.
6856 (find_method_overload_end): Remove function.
6857 (unexpected_linespec_error): New function.
6858 (keep_name_info): Remove.
6859 (linespec_parse_line_offset): New function.
6860 (linespec_parse_basic): New function.
6861 (canonicalize_linespec): New function.
6862 (decode_line_internal): Remove.
6863 (create_sals_line_offset): New function adapted from
6864 decode_all_digits.
6865 (convert_linespec_to_sals): New function.
6866 (parse_linespec): New function.
6867 (linespec_parser_new): New function.
6868 (linespec_state_destructor): Change parameter type to
6869 struct linespec_state *.
6870 Add language parameter.
6871 Remove freeing of moved members.
6872 (linespec_parser_delete): New function.
6873 (decode_line_full): Use parse_linespec and linespec_parser_new.
6874 (decode_line_1): Likewise.
6875 (decode_indirect): Rename to ...
6876 (linespec_expression_to_pc): ... this and rewrite
6877 to simply find CORE_ADDR, storing this result for later
6878 conversion to SALs.
6879 (locate_first_half): Remove.
6880 (deocde_objc): Add parameter LS.
6881 Initialize new struct collect_info members.
6882 Handle minimal symbols, too.
6883 (decode_compound): Delete.
6884 (lookup_prefix_sym): Rewrite.
6885 (compare_msymbols): New function.
6886 (find_method): Rewrite.
6887 Do not call cplusplus_error.
6888 (symtabs_from_filename): Rewrite.
6889 (collect_function_symbols): Delete.
6890 (find_function_symbols): Rewrite without ARGPTR-style
6891 processing.
6892 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6893 (decode_dollar): Adapted and renamed to ...
6894 (linespec_parse_variable): ... this.
6895 (find_linespec_symbols): New function.
6896 (decode_label): Adapted and renamed to ...
6897 (find_label_symbols): ... this.
6898 (decode_digits_list_mode): Add and use LS argument.
6899 (decode_digits_ordinary): Likewise.
6900 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6901 If in list mode, allow any symbol class. Otherwise, only
6902 permit LOC_BLOCK symbols.
6903 (minsym_found): Update comments.
6904 (search_minsyms_for_name): Do not convert the matching symbol
6905 into a SAL. Simply push the symbol and objfile into the
6906 result vector.
6907 (decode_variable): Delete. Contents adapted into
6908 find_linespec_symbols.
6909
6910 * cp-support.c (SKIP_SPACE): Remove.
6911 (operator_tokens): Remove unused global.
6912 (cp_validate_operator): Remove.
6913 * cp-support.h (cp_validate_operator): Remove declaration.
6914
a72c8f6a
JK
69152012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6916
6917 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6918 for TYPE_VPTR_FIELDNO.
6919 * valprint.c (valprint_check_validity): Make it global, move the
6920 function comment ...
6921 * value.h (valprint_check_validity): ... to this new declaration.
6922
cf9bb588
TG
69232012-04-02 Tristan Gingold <gingold@adacore.com>
6924
6925 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6926 the STATE32 api for i386 state.
6927 (i386_darwin_store_inferior_registers): Likewise.
6928
17092398
TG
69292012-04-02 Tristan Gingold <gingold@adacore.com>
6930
6931 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6932 SS offset.
6933 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6934 format_string.
6935
ece0061f
TG
69362012-04-02 Tristan Gingold <gingold@adacore.com>
6937
6938 PR gdb/13901
d987a266 6939 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6940
cf65ecd3
JK
69412012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6942
6943 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6944
9bc3523d
TT
69452012-03-30 Tom Tromey <tromey@redhat.com>
6946
6947 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6948 of TRY_CATCH. Fix error handling.
6949 * python/py-value.c (convert_value_from_python): Move 'old'
6950 declaration to innermost scope.
6951
b1ed564a
JB
69522012-03-29 Joel Brobecker <brobecker@adacore.com>
6953 Andrey Smirnov <andrew.smirnov@gmail.com>
6954
6955 -Wshadow warning fix.
6956 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6957 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6958 Adjust code accordingly.
6959
cb8e9b97
JB
69602012-03-29 Joel Brobecker <brobecker@adacore.com>
6961
6962 * ada-lang.c (symbol_completion_add): Rename parameter
6963 "encoded" into "encoded_p". Ajust code and documentation
6964 accordingly.
6965
c0af1706
JB
69662012-03-29 Joel Brobecker <brobecker@adacore.com>
6967 Andrey Smirnov <andrew.smirnov@gmail.com>
6968
6969 -Wshadow warning fix.
6970 * ada-lang.c (symbol_completion_add): Rename parameter
6971 "wild_match" into wild_match_p. Update code and documentation
6972 accordingly.
6973
6ea35997
JB
69742012-03-29 Joel Brobecker <brobecker@adacore.com>
6975
6976 * ada-lang.c (symbol_completion_match): Rename parameter
6977 "encoded" into "encoded_p". Ajust code and documentation
6978 accordingly.
6979
e701b3c0
JB
69802012-03-29 Joel Brobecker <brobecker@adacore.com>
6981 Andrey Smirnov <andrew.smirnov@gmail.com>
6982
6983 -Wshadow warning fix.
6984 * ada-lang.c (symbol_completion_match): Rename parameter
6985 "wild_match" into "wild_match_p". Adjust code and function
6986 documentation accordingly.
6987
5e2336be
JB
69882012-03-29 Joel Brobecker <brobecker@adacore.com>
6989 Andrey Smirnov <andrew.smirnov@gmail.com>
6990
6991 -Wshadow warning fix.
6992 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6993 "symbol_info" into "info". Adjust code accordingly.
6994 (ada_lookup_symbol): Likewise.
6995
9f88c959
JB
69962012-03-29 Joel Brobecker <brobecker@adacore.com>
6997
6998 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6999 of this function's documentation.
7000
82ccd55e
JB
70012012-03-29 Joel Brobecker <brobecker@adacore.com>
7002 Andrey Smirnov <andrew.smirnov@gmail.com>
7003
7004 -Wshadow warning fix.
7005 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
7006 variable into "wild_match_p". Adjust code accordingly.
7007
d0a8ab18
JB
70082012-03-29 Joel Brobecker <brobecker@adacore.com>
7009 Andrey Smirnov <andrew.smirnov@gmail.com>
7010
7011 -Wshadow warning fix.
7012 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
7013 parameter into "wild_match_p". Adjust code accordingly.
7014 Document this parameter in the function description.
7015
48b78332
JB
70162012-03-29 Joel Brobecker <brobecker@adacore.com>
7017 Andrey Smirnov <andrew.smirnov@gmail.com>
7018
7019 -Wshadow warning fix.
7020 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
7021 "wild_match" parameter to "wild_match_p" (-Wshadow).
7022
2e6e0353
JB
70232012-03-29 Joel Brobecker <brobecker@adacore.com>
7024
7025 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
7026 in function documentation.
7027
dc4024cd
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 (ada_lookup_simple_minsym): Rename wild_match local
7033 variable into wild_match_p. Adjust code accordingly.
7034
6c88661c
JB
70352012-03-29 Joel Brobecker <brobecker@adacore.com>
7036 Andrey Smirnov <andrew.smirnov@gmail.com>
7037
7038 * ada-valprint.c (ada_val_print_1): Move the code handling
7039 TYPE_CODE_ENUM inside its own lexical block. Declare
7040 variables len and val there, instead of in the function's
7041 top level block. Avoid declaring deref_val again in a way
7042 that shadows another variable of the same name declared
7043 in one of the up-level blocks. Just re-use the up-level
7044 variable instead.
7045
4e5c77fe
JB
70462012-03-29 Joel Brobecker <brobecker@adacore.com>
7047
7048 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
7049 Replace block_found argument by symbol_info. Adjust
7050 implementation accordingly. Add function documentation.
7051 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
7052 Fix documentation.
7053 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
7054 * ada-exp.y (write_object_renaming): Adjust to new
7055 ada_lookup_encoded_symbol API.
7056
1c0ac8c7
JB
70572012-03-29 Joel Brobecker <brobecker@adacore.com>
7058
7059 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
7060 documentation.
7061
2aaed979
KB
70622012-03-28 Rathish C <rathish.c@kpitcummins.com>
7063
7064 * v850-tdep.c: Add the enum values for mpu and fpu registers.
7065 (v850_register_name): Add the mpu and fpu register names.
7066 (v850e_register_name): Add the mpu and fpu register names.
7067 (v850e2_register_name): New function.
a09130f9 7068 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
7069 bfd_mach_v850e2v3.
7070
927fbba6
JB
70712012-03-28 Joel Brobecker <brobecker@adacore.com>
7072
7073 * NEWS: Add entry for Ada varobj support.
7074
d32cafc7
JB
70752012-03-28 Joel Brobecker <brobecker@adacore.com>
7076
7077 * varobj.c (default_value_is_changeable_p): New function,
7078 extracted from varobj_value_is_changeable_p. Add declaration.
7079 (ada_value_is_changeable_p): New function, extracted from
7080 varobj_value_is_changeable_p. Add declaration.
7081 (struct language_specific): New field "value_is_changeable_p".
7082 (languages): Add entries for new field.
7083 (varobj_create): Set language before calling install_new_value.
7084 (varobj_value_is_changeable_p): Reimplement to call the varobj's
7085 "value_is_changeable_p" language callback.
7086
181875a4
JB
70872012-03-28 Joel Brobecker <brobecker@adacore.com>
7088
7089 * ada-varobj.h, ada-varobj.c: New files.
7090 * Makefile.in (SFILES): Add ada-varobj.c.
7091 (HFILES_NO_SRCDIR): Add ada-varobj.h.
7092 (COMMON_OBS): Add ada-varobj.o.
7093
7a290c40
JB
70942012-03-28 Joel Brobecker <brobecker@adacore.com>
7095
7096 * varobj.c (ada_value_has_mutated): Add declaration. New function.
7097 (struct language_specific): New field "value_has_mutated".
7098 (languages): Set field "value_has_mutated" in each entry of array.
7099 (varobj_value_has_mutated): New function.
7100 (varobj_udpdate): Add handling of type mutation.
7101 (value_of_root): Add handling of type mutation.
7102 (ada_value_has_mutated): New function.
7103
ca9b8b9c
PA
71042012-03-28 Pedro Alves <palves@redhat.com>
7105
7106 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
7107 Always supply $fr0 as 0.0 and $fr1 as 1.0.
7108
cc0265cd
TT
71092012-03-28 Tom Tromey <tromey@redhat.com>
7110
7111 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
7112 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
7113 before returning.
7114
3ad2ec6f
TT
71152012-03-28 Tom Tromey <tromey@redhat.com>
7116
7117 * .dir-locals.el: New file.
7118
4a6510ba
PA
71192012-03-28 Pedro Alves <palves@redhat.com>
7120
7121 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
7122
5a75128f
JB
71232012-03-28 Joel Brobecker <brobecker@adacore.com>
7124
7125 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
7126 handling for r0.
7127
f99d8bf4
PA
71282012-03-27 Pedro Alves <palves@redhat.com>
7129
7130 Eliminate struct ui_stream.
7131
7132 * ui-out.h (struct ui_stream): Delete.
7133 (ui_out_field_stream): Adjust prototype.
7134 (ui_out_stream_new, ui_out_stream_delete)
7135 (make_cleanup_ui_out_stream_delete): Delete declarations.
7136 * ui-out.c (ui_out_field_stream): Change prototype to take a
7137 ui_file instead of a ui_stream. Adjust.
7138 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
7139 (make_cleanup_ui_out_stream_delete): Delete.
7140 * breakpoint.c (print_breakpoint_location)
7141 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
7142 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7143 * disasm.c (dump_insns): Ditto.
7144 (do_mixed_source_and_assembly, do_assembly_only): Adjust
7145 prototype.
7146 (gdb_disassembly): Use ui_file/mem_fileopen instead of
7147 ui_stream/ui_out_stream_new.
7148 * infcmd.c (print_return_value): Ditto.
7149 * osdata.c (info_osdata_command): Don't allocate a local
7150 ui_stream.
7151 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
7152 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
7153 * tracepoint.c (print_one_static_tracepoint_marker): Don't
7154 allocate a local ui_stream.
7155 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
7156 instead of ui_stream/ui_out_stream_new.
7157 (list_args_or_locals): Don't allocate a local ui_stream.
7158 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
7159 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
7160 ui_stream/ui_out_stream_new.
7161 * cli/cli-setshow.c (do_setshow_command): Ditto.
7162
6350a066 71632012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 7164
6350a066
PA
7165 * arm-linux-tdep.c (arm_linux_init_abi): Call
7166 set_gdbarch_process_record. Initialize `arm_swi_record' field.
7167 * arm-tdep.c (arm_process_record): New function.
7168 (deallocate_reg_mem): New function.
7169 (decode_insn): New function.
7170 (thumb_record_branch): New function.
7171 (thumb_record_ldm_stm_swi(): New function.
7172 (thumb_record_misc): New function.
7173 (thumb_record_ld_st_stack): New function.
7174 (thumb_record_ld_st_imm_offset): New function.
7175 (thumb_record_ld_st_reg_offset(): New function.
7176 (thumb_record_add_sub_cmp_mov): New function.
7177 (thumb_record_shift_add_sub): New function.
7178 (arm_record_coproc_data_proc): New function.
7179 (arm_record_coproc): New function.
7180 (arm_record_b_bl): New function.
7181 (arm_record_ld_st_multiple): New function.
7182 (arm_record_ld_st_reg_offset): New function.
7183 (arm_record_ld_st_imm_offset): New function.
7184 (arm_record_data_proc_imm): New function.
7185 (arm_record_data_proc_misc_ld_str): New function.
7186 (arm_record_extension_space): New function.
7187 (arm_record_strx): New function.
7188 (sbo_sbz): New function.
7189 (struct insn_decode_record): New structure for arm insn record.
7190 (REG_ALLOC): New macro for reg allocations.
7191 (MEM_ALLOC): New macro for memory allocations.
7192 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 7193
89e028e2
AS
71942012-03-27 Andreas Schwab <schwab@linux-m68k.org>
7195
7196 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
7197 (store_register): Likewise.
7198
6350a066 71992012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 7200
6350a066 7201 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 7202
5b43fab2
JK
72032012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
7204
7205 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
7206 Describe also the option "auto".
7207
b5453b95
RH
72082012-03-22 Richard Henderson <rth@redhat.com>
7209
7210 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
7211 * sparc-nat.c (sparc_xfer_wcookie): Make static.
7212
227ee7fc
RH
72132012-03-22 Richard Henderson <rth@redhat.com>
7214
7215 * jit.c (jit_read_code_entry): Compute alignment and offset of
7216 int64_t member before computing entry_size.
7217
7b282c5a
SCR
72182012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7219
7220 Python scripting: Add new method Value.referenced_value to
7221 gdb.Value which can dereference pointer as well as reference
7222 values.
7223 * NEWS: Add entry under 'Python scripting' about the new method
7224 Value.referenced_value on gdb.Value objects.
7225 * python/py-value.c (valpy_referenced_value): New function
7226 defining a new method on gdb.Value objects which can dereference
7227 pointer and reference values.
7228
0c83539f
SCR
72292012-03-22 Siva Chandra Reddy <sivachandra@google.com>
7230
7231 * MAINTAINERS (Write After Approval): Add myself to the list.
7232
7ccffd7c
KB
72332012-03-21 Kevin Buettner <kevinb@redhat.com>
7234
7235 * symtab.c (skip_prologue_sal): Change test to check for "main()"
7236 in addition to "main".
7237
bd0b9f9e
JB
72382012-03-21 Joel Brobecker <brobecker@adacore.com>
7239
7240 * expression.h (op_name): Add declaration.
7241 * expprint.c (op_name): Remove declaration. Make non-static.
7242 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
7243
a5362b9a
TS
72442012-03-21 Thomas Schwinge <thomas@codesourcery.com>
7245
7246 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
7247 of struct siginfo.
7248 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
7249 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
7250 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
7251 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
7252 (linux_nat_get_siginfo): Likewise.
7253 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
7254 (linux_nat_get_siginfo): Likewise.
7255 * linux-tdep.c (linux_get_siginfo_type): Likewise.
7256 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
7257 * procfs.c (gdb_siginfo_t): Likewise.
7258
adcadaab
MF
72592012-03-21 Mike Frysinger <vapier@gentoo.org>
7260
7261 * .gitignore: Ignore more files.
7262
e278ad5b
PA
72632012-03-20 Pedro Alves <palves@redhat.com>
7264
7265 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
7266 returns.
7267
741e63d7
YQ
72682012-03-20 Yao Qi <yao@codesourcery.com>
7269
7270 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
7271 comment.
7272
b64f50a1
JK
72732012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7274
7275 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
7276 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
7277 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
7278 sect_offset.
7279 * dwarf2expr.h (cu_offset, sect_offset): New types.
7280 (struct dwarf_expr_context_funcs) <dwarf_call>
7281 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
7282 sect_offset.
7283 (struct dwarf_expr_context) <len>: Improve the comment.
7284 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
7285 cu_offset and sect_offset.
7286 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
7287 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
7288 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
7289 * dwarf2loc.h: Include dwarf2expr.h.
7290 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
7291 and sect_offset.
7292 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
7293 Improve the comment.
7294 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
7295 (struct signatured_type, struct line_header, struct partial_die_info)
7296 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
7297 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
7298 (get_die_type_at_offset, create_cus_from_index)
7299 (create_signatured_type_table_from_index, dw2_get_file_names)
7300 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
7301 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
7302 (create_debug_types_hash_table, process_psymtab_comp_unit)
7303 (load_partial_comp_unit, create_all_comp_units)
7304 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
7305 (load_full_comp_unit, dwarf2_physname, read_import_statement)
7306 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
7307 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
7308 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
7309 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
7310 (find_partial_die, read_attribute_value, lookup_die_type)
7311 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
7312 (is_ref_attr): New function comment.
7313 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
7314 Use cu_offset and sect_offset.
7315 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
7316 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
7317 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
7318 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
7319 (offset_and_type_hash, offset_and_type_eq, set_die_type)
7320 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
7321 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
7322 sect_offset.
7323
e97a38f7
JK
73242012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7325
7326 Code cleanup.
7327 * python/py-auto-load.c (source_section_scripts): New variable back_to.
7328 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
7329 with xfree.
7330 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
7331
8320cc4f
JK
73322012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7333
7334 * NEWS: Describe new options --init-command=FILE, -ix and
7335 --init-eval-command=COMMAND, -iex.
7336 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
7337 CMDARG_INIT_COMMAND.
7338 (captured_main): New enum items OPT_IX and OPT_IEX. Add
7339 "init-command", "init-eval-command", "ix" and "iex" to the variable
7340 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
7341 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
7342 (print_gdb_help): Describe --init-command=FILE, -ix and
7343 --init-eval-command=COMMAND, -iex.
7344
26743505
JK
73452012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
7346
7347 Code cleanup.
7348 * main.c (struct cmdarg): Move it here from main. Add more comments.
7349 (cmdarg_s, VEC (cmdarg_s)): New.
7350 (main): Move struct cmdarg from here. New variables cmdarg_vec and
7351 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
7352 Install cleanup for cmdarg_vec. Update filling for options 'x' and
7353 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
7354 of CMDARG.
7355
5ff5c7b4
TT
73562012-03-19 Tom Tromey <tromey@redhat.com>
7357
7358 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
7359
ab260dad
JK
73602012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
7361
7362 PR symtab/13777
7363 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
7364 GCC >=4.5.
7365
c366c1f0
TT
73662012-03-16 Chris January <chris.january@allinea.com>
7367
7368 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
7369 of clear.
7370
e16edb45
TT
73712012-03-16 Chris January <chris.january@allinea.com>
7372
7373 * source.c (add_path): Use memmove instead of strcpy because the
7374 strings overlap.
7375
53ba8333
JB
73762012-03-16 Joel Brobecker <brobecker@adacore.com>
7377
7378 * value.h (set_value_parent): Add declaration.
7379 * value.c (set_value_parent): New function.
7380 (value_address): If VALUE->PARENT is not NULL, then use it as
7381 the base address instead of VALUE->LOCATION.address.
7382 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
7383 the same as OBJ's address. Adjust V's offset accordingly.
7384 Set V's parent.
7385
481860b3
GB
73862012-03-16 Gary Benson <gbenson@redhat.com>
7387
7388 PR breakpoints/10738
7389 * dwarf2read.c (use_deprecated_index_sections): New global.
7390 (struct partial_die_info): New member may_be_inlined.
7391 (read_partial_die): Set may_be_inlined where appropriate.
7392 (add_partial_subprogram): Add partial symbols for partial
7393 DIEs that may be inlined.
7394 (new_symbol_full): Add inlined subroutines to the current
7395 scope.
7396 (write_psymtabs_to_index): Bump version number.
7397 (dwarf2_read_index): Read only version 6 indices unless
7398 use_deprecated_index_sections is set.
7399 * linespec.c (symbol_and_data_callback): New structure.
7400 (iterate_inline_only): New function.
7401 (iterate_over_all_matching_symtabs): New argument
7402 "include_inline". If nonzero, also call the callback for
7403 symbols representing inlined subroutines.
7404 (lookup_prefix_sym): Pass extra argument to the above.
7405 (find_function_symbols): Likewise.
7406 (add_matching_symbols_to_info): Likewise.
7407 * NEWS: Mention that GDB can now set breakpoints on inlined
7408 functions.
7409
d0e7e15a
PM
74102012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7411
7412 * p-typeprint.c (pascal_type_print_method_args):
7413 Fix display of parameter of methods.
7414
3d354654
PM
74152012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
7416
7417 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
7418 Add missing prototype.
7419
cafe75b0
JK
74202012-03-16 Yao Qi <yao@codesourcery.com>
7421 Jan Kratochvil <jan.kratochvil@redhat.com>
7422
7423 Fix false compilation warning.
7424 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
7425
25f8c692
JL
74262012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
7427 Pedro Alves <pedro@codesourcery.com>
7428
7429 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
7430 (arm_register_g_packet_guesses): New function.
7431 (arm_gdbarch_init): Don't force a target description with
7432 registers when the executable is detected as M-profile. Instead
7433 set gdbarch->tdep->is_m. Register `g' packet guesses.
7434 (_initialize_arm_tdep): Initialize the new target description.
7435 * features/arm-with-m-fpa-layout.xml: New description.
7436 * features/arm-with-m-fpa-layout.c: New, generated.
7437
35c63cd8
JB
74382012-03-15 Joel Brobecker <brobecker@adacore.com>
7439
7440 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
7441 Update function description.
7442 (insert_bp_location): Do not wipe bl->target_info out.
7443 * mem-break.c: #include "gdb_string.h".
7444 (default_memory_insert_breakpoint): Do not call target_read_memory
7445 with a pointer to the breakpoint's shadow_contents buffer. Use
7446 a local buffer instead.
7447 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
7448
57651221
TT
74492012-03-15 Tom Tromey <tromey@redhat.com>
7450
7451 * NEWS: Mention "info vtbl", not "info vtable".
7452 * cp-support.c (info_vtbl_command): Fix comment.
7453 (_initialize_cp_support): Fix text.
7454
410528f0
TT
74552012-03-15 Tom Tromey <tromey@redhat.com>
7456
7457 * cp-valprint.c (cp_print_value_fields): Use
7458 print_function_pointer_address for vtable slot.
7459
c4aeac85
TT
74602012-03-15 Tom Tromey <tromey@redhat.com>
7461
7462 * gnu-v3-abi.c (struct value_and_voffset): New.
7463 (hash_value_and_voffset, eq_value_and_voffset)
7464 (compare_value_and_voffset, compute_vtable_size)
7465 (print_one_vtable, gnuv3_print_vtable): New functions.
7466 (init_gnuv3_ops): Initialize 'print_vtable' field.
7467 * cp-support.c (info_vtbl_command): New function.
7468 (_initialize_cp_support): Add "info vtbl".
7469 * cp-abi.h (cplus_print_vtable): Declare.
7470 (struct cp_abi_ops) <print_vtable>: New field.
7471 * cp-abi.c (cplus_print_vtable): New function.
7472 * NEWS: Update.
7473
95cbceff
TT
74742012-03-15 Tom Tromey <tromey@redhat.com>
7475
7476 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
7477 iterate_over_symbols.
7478
589b4a32
DE
74792012-03-14 Doug Evans <dje@google.com>
7480
7481 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
7482 DW_OP_GNU_parameter_ref.
7483
e837f12a
JK
74842012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7485
7486 Fix double prompt of 'interpreter-exec mi'.
7487 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
7488 (mi_interpreter_resume): use it.
7489 (mi_execute_command_input_handler): New function.
7490 * mi/mi-main.c (mi_execute_command): Move prompt printing to
7491 mi_execute_command_input_handler.
7492
ff1e4526 74932012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
7494
7495 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
7496 prototype.
7497 (darwin_debug_port_info): Make static.
7498 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
7499 * machoread.c (_initialize_machoread): Add prototype.
7500 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
7501 (i386_darwin_set_control, i386_darwin_get_control)
7502 i386_darwin_dr_set_addr, i386_darwin_get_addr)
7503 i386_darwin_get_status, i386_darwin_get_control):
7504 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
7505
d8a5d6ee
JB
75062012-03-13 Joel Brobecker <brobecker@adacore.com>
7507
7508 * ax-gdb.c (gen_usual_unary): Remove special handling of
7509 enum and bool types.
7510
af381b8c
JB
75112012-03-13 Joel Brobecker <brobecker@adacore.com>
7512
7513 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
7514
786c562f
JB
75152012-03-13 Joel Brobecker <brobecker@adacore.com>
7516
7517 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
7518
e3ebf1bb
JB
75192012-03-13 Chris January <chris.january@allinea.com>
7520
7521 * aix-thread.c (fill_sprs): Store the floating point registers
7522 at the correct offsets into vals.
7523
c5b7e1cb
DE
75242012-03-13 Doug Evans <dje@google.com>
7525
16899756
DE
7526 * NEWS: Mention symbol-reloading has been deleted.
7527 * symfile.c (symbol_reloading): Delete.
7528 (show_symbol_reloading): Delete.
7529 (_initialize_symfile): Delete set/show symbol-reloading.
7530
c5b7e1cb
DE
7531 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
7532 read_in_chain until we have successfully read it in.
7533 (load_full_comp_unit): Ditto.
7534 (read_signatured_type): Add comment.
7535
46cb6474
JB
75362012-03-13 Chris January <chris.january@allinea.com>
7537
7538 * stabsread.c (fix_common_block): Change type of valu argument
7539 to CORE_ADDR.
7540
76219d77
JB
75412012-03-13 Chris January <chris.january@allinea.com>
7542
7543 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
7544 instruction.
7545
87b0bb13
JK
75462012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7547
7548 * common/linux-procfs.c (linux_proc_get_int): New, from
7549 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
7550 field.
7551 (linux_proc_get_tgid): Only call linux_proc_get_int.
7552 (linux_proc_get_tracerpid): New.
7553 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
7554 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
7555 linux_proc_pid_has_state.
7556 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
7557 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
7558 (linux_ptrace_attach_warnings): New.
7559 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
7560 New declaration.
7561 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
7562 (linux_nat_attach): New variables ex, buffer, message and message_s.
7563 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
7564
5f572dec
JK
75652012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7566
7567 * Makefile.in (linux-ptrace.o): New.
7568 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
7569 from linux-nat.c.
7570 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
7571 * common/linux-ptrace.c: New file.
7572 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
7573 * config/arm/linux.mh: Likewise.
7574 * config/i386/linux.mh: Likewise.
7575 * config/i386/linux64.mh: Likewise.
7576 * config/ia64/linux.mh: Likewise.
7577 * config/m32r/linux.mh: Likewise.
7578 * config/m68k/linux.mh: Likewise.
7579 * config/mips/linux.mh: Likewise.
7580 * config/pa/linux.mh: Likewise.
7581 * config/powerpc/linux.mh: Likewise.
7582 * config/powerpc/ppc64-linux.mh: Likewise.
7583 * config/powerpc/spu-linux.mh: Likewise.
7584 * config/s390/s390.mh: Likewise.
7585 * config/sparc/linux.mh: Likewise.
7586 * config/sparc/linux64.mh: Likewise.
7587 * config/xtensa/linux.mh: Likewise.
7588 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7589 common/linux-procfs.c.
7590 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7591
44f238bb
PA
75922012-03-13 Hui Zhu <teawater@gmail.com>
7593 Pedro Alves <palves@redhat.com>
7594
7595 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7596 CREATE_BREAKPOINT_FLAGS_INSERTED.
7597 (create_breakpoint_sal, create_breakpoints_sal)
7598 (base_breakpoint_create_breakpoints_sal)
7599 (tracepoint_create_breakpoints_sal)
7600 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7601 down.
7602 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7603 (ftrace_command, strace_command): Adjust.
7604 (create_tracepoint_from_upload): Pass
7605 CREATE_BREAKPOINT_FLAGS_INSERTED.
7606 * breakpoint.h (enum breakpoint_create_flags): New.
7607 (create_breakpoint): New flags parameter.
7608 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7609 * python/py-breakpoint.c (bppy_init): Adjust.
7610 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7611 * spu-tdep.c (spu_catch_start): Adjust.
7612
1e51243a
PA
76132012-03-13 Pedro Alves <palves@redhat.com>
7614 Hui Zhu <teawater@gmail.com>
7615 Yao Qi <yao@codesourcery.com>
7616
7617 * remote.c (struct remote_state): New field `starting_up'.
7618 (remote_start_remote): Set and clear it.
7619 (remote_can_download_tracepoint): If starting up, return false.
7620
fa3064dd
YQ
76212012-03-13 Yao Qi <yao@codesourcery.com>
7622
7623 * inferior.h (struct inferior): Remove fields any_syscall_count,
7624 syscalls_counts and total_syscalls_count. Move them to new
7625 struct catch_syscall_inferior_data in breakpoint.c.
7626 * breakpoint.c: Call DEF_VEC_I(int).
7627 (struct catch_syscall_inferior_data): New.
7628 (get_catch_syscall_inferior_data): New.
7629 (catch_syscall_inferior_data_cleanup): New.
7630 (insert_catch_syscall): Update to access data in
7631 struct catch_syscall_inferior_data.
7632 (insert_catch_syscall): Likewise.
7633 (remove_catch_syscall): Likewise.
7634 (remove_catch_syscall): Likewise.
7635 (is_syscall_catchpoint_enabled): Likewise.
7636 (add_catch_command): Likewise.
7637 (_initialize_breakpoint): Register cleanup.
7638 * breakpoint.h: Removed DEF_VEC_I(int).
7639 * dwarf2loc.c: Call DEF_VEC_I(int).
7640 * mi/mi-main.c: Likewise.
7641
460fac3c
MK
76422012-03-12 Mark Kettenis <kettenis@gnu.org>
7643
7644 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7645
e1aca11e
JB
76462012-03-12 Chris January <chris.january@allinea.com>
7647
7648 * aix-thread.c (_initialize_aix_thread): Add prototype.
7649 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7650 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7651
649c7061
JB
76522012-03-12 Joel Brobecker <brobecker@adacore.com>
7653
7654 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7655 include of "amd64-nat.h".
7656
0b49e518
TT
76572012-03-12 Tom Tromey <tromey@redhat.com>
7658
7659 * buildsym.c (record_pending_block): Now static.
7660 * buildsym.h: (record_pending_block): Remove.
7661
fd24fa94
AT
76622012-03-12 Andreas Tobler <andreast@fgznet.ch>
7663
7664 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7665
ba919b58
TT
76662012-03-09 Tom Tromey <tromey@redhat.com>
7667
7668 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7669 producer_is_gxx_lt_4_6>: New fields.
7670 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7671
a48e046c
TT
76722012-03-09 Tom Tromey <tromey@redhat.com>
7673
7674 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7675
6f5e9362
JB
76762012-03-08 Joel Brobecker <brobecker@adacore.com>
7677
7678 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7679 prototype.
7680
8d037db9
JB
76812012-03-08 Joel Brobecker <brobecker@adacore.com>
7682
7683 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7684
4e841acf
JK
76852012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7686
7687 Fix -Wmissing-prototypes build.
7688 * arm-linux-nat.c (get_thread_id): Make it static.
7689 * xtensa-linux-nat.c (get_thread_id): Likewise.
7690
c6030312
JB
76912012-03-08 Joel Brobecker <brobecker@adacore.com>
7692
7693 * server.c (process_point_options): If a conditional expression
7694 is found, only print a message if remote_debug is nonzero.
7695
52323be9
LM
76962012-03-08 Luis Machado <lgustavo@codesourcery.com>
7697
7698 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7699 of internal error for unknown/unsupported types.
7700
7fe25d9b
JK
77012012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7702
7703 Fix CU relative vs. absolute DIE offsets.
7704 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7705 offset to offset_in_cu.
7706 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7707 TYPE_OFFSET.
7708 (dwarf2_fetch_die_location_block): Rename parameter offset to
7709 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7710
05e7c244
JK
77112012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7712
7713 * libunwind-frame.c: Rename to ...
7714 * ia64-libunwind-tdep.c: ... here.
7715 * libunwind-frame.h: Rename to ...
7716 * ia64-libunwind-tdep.h: ... here.
7717 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7718 ia64-libunwind-tdep.h.
7719 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7720 * README (--with-libunwind): Rename to ...
7721 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7722 * config.in: Regenerate.
7723 * configure: Regenerate.
7724 * configure.ac: New option --with-libunwind-ia64, make the
7725 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7726 Remove AC_DEFINE for HAVE_LIBUNWIND.
7727 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7728 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7729 Rename libunwind-frame in the general comment.
7730 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7731 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7732 Move forward declarations inside #ifndef. Rename libunwind-frame in
7733 the general comment.
7734 * ia64-tdep.c: Rename libunwind-frame.h #include to
7735 ia64-libunwind-tdep.h.
7736 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7737 (ia64_libunwind_descr): Rename libunwind-frame to
7738 ia64-libunwind-tdep in these function comments.
7739 * ia64-tdep.h: Rename libunwind-frame.h #include to
7740 ia64-libunwind-tdep.h.
7741 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7742 ia64-libunwind-tdep in that data comment.
7743
3755cbfd
JK
77442012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7745
7746 * libunwind-frame.h (struct frame_unwind): New declaration.
7747
d1cda5d9
JB
77482012-03-08 Joel Brobecker <brobecker@adacore.com>
7749
7750 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7751 "set breakpoint condition-evaluation" command.
7752
a0ba0aa2
TG
77532012-03-08 Tristan Gingold <gingold@adacore.com>
7754
7755 * sparc-stub.c: Move to stubs/
7756 * sh-stub.c: Likewise.
7757 * m68k-stub.c: Likewise.
7758 * m32r-stub.c: Likewise.
7759 * i386-stub.c: Likewise.
7760
7b8b6d6d
AS
77612012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7762
007cafee
AS
7763 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7764 linux_get_siginfo_type.
7765
7b8b6d6d
AS
7766 * m68klinux-nat.c: Include "gdb_proc_service.h".
7767 (PTRACE_GET_THREAD_AREA): Define.
7768 (ps_get_thread_area): New function.
7769
bba74b36
YQ
77702012-03-08 Yao Qi <yao@codesourcery.com>
7771
7772 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7773 `xsnprintf'.
7774 (remote_query_attached): Likewise.
7775 (remote_static_tracepoint_marker_at): Likewise.
7776 (remote_set_permissions): Likewise.
7777 (remote_detach_1, extended_remote_attach_1): Likewise.
7778 (send_g_packet, remote_vkill): Likewise.
7779 (extended_remote_disable_randomization): Likewise.
7780 (remote_add_target_side_condition): Likewise.
7781 (remote_insert_breakpoint): Likewise.
7782 (remote_remove_breakpoint): Likewise.
7783 (remote_insert_watchpoint): Likewise.
7784 (remote_remove_watchpoint): Likewise.
7785 (remote_insert_hw_breakpoint): Likewise.
7786 (remote_insert_hw_breakpoint): Likewise.
7787 (remote_remove_hw_breakpoint): Likewise.
7788 (remote_download_command_source): Likewise.
7789 (remote_download_tracepoint): Likewise.
7790 (remote_download_trace_state_variable): Likewise.
7791 (remote_disable_tracepoint): Likewise.
7792 (remote_trace_set_readonly_regions): Likewise.
7793 (remote_get_tracepoint_status): Likewise.
7794 (remote_trace_find): Likewise.
7795 (remote_get_trace_state_variable_value): Likewise.
7796 (remote_set_disconnected_tracing): Likewise.
7797 (remote_set_circular_trace_buffer): Likewise.
7798 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7799 (remote_use_agent): Likewise.
7800 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7801 Update callers.
7802
9b224c5e
PA
78032012-03-07 Pedro Alves <palves@redhat.com>
7804
7805 * NEWS: Mention QProgramSignals.
7806 * inferior.h (update_signals_program_target): Declare.
7807 * infrun.c: (update_signals_program_target): New.
7808 (handle_command): Update the target of the new program signals
7809 array changes.
7810 * remote.c (PACKET_QProgramSignals): New enum.
7811 (last_program_signals_packet): New global.
7812 (remote_program_signals): New.
7813 (remote_start_remote): Update the target with the program signals
7814 list.
7815 (remote_protocol_features): Add entry for QPassSignals.
7816 (remote_open_1): Free anc clear last_program_signals_packet.
7817 (init_remote_ops): Install remote_program_signals.
7818 * target.c (update_current_target): Adjust.
7819 (target_program_signals): New.
7820 * target.h (struct target_ops) <to_program_signals>: New field.
7821 (target_program_signals): Declare.
7822
74c48cbb
PA
78232012-03-07 Pedro Alves <palves@redhat.com>
7824
7825 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7826 extensions.
7827
0c13fc49
AS
78282012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7829
7830 * m68klinux-nat.c (getregs_supplies): Make static.
7831 (getfpregs_supplies): Likewise.
7832 (have_ptrace_getregs): Likewise.
7833
1281d2a3
JB
78342012-03-06 Joel Brobecker <brobecker@adacore.com>
7835
7836 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7837 in call to get_die_type_at_offset.
7838
2b03b41d
SS
78392012-03-06 Stan Shebs <stan@codesourcery.com>
7840
7841 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7842 * mi/mi-cmd-disas.c: Ditto.
7843 * mi/mi-cmd-env.c: Ditto.
7844 * mi/mi-cmd-file.c: Ditto.
7845 * mi/mi-cmd-stack.c: Ditto.
7846 * mi/mi-cmd-target.c: Ditto.
7847 * mi/mi-cmd-var.c: Ditto.
7848 * mi/mi-cmds.c: Ditto.
7849 * mi/mi-cmds.h: Ditto.
7850 * mi/mi-console.c: Ditto.
7851 * mi/mi-getopt.c: Ditto.
7852 * mi/mi-getopt.h: Ditto.
7853 * mi/mi-interp.c: Ditto.
7854 * mi/mi-main.c: Ditto.
7855 * mi/mi-out.c: Ditto.
7856 * mi/mi-parse.c: Ditto.
7857 * mi/mi-parse.h: Ditto.
7858 * mi/mi-symbol-cmds.c: Ditto.
7859
7860 * mi/mi-getopt.h: Move mi_opt struct up.
7861 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7862 return.
7863 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7864
c988ad87
TT
78652012-03-06 Tom Tromey <tromey@redhat.com>
7866
7867 * proc-service.c (ps_pglobal_lookup): Set the current program
7868 space.
7869
1b7c1b10
PA
78702012-03-06 Pedro Alves <palves@redhat.com>
7871
7872 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7873
3c182069
JB
78742012-03-05 Joel Brobecker <brobecker@adacore.com>
7875
7876 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7877
2e794194
JK
78782012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7879
7880 Code cleanup.
7881 * common/linux-osdata.c (linux_common_core_of_thread): New function
7882 comment.
7883 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7884 call by linux_common_core_of_thread.
7885 (linux_nat_core_of_thread_1): Remove.
7886 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7887 * linux-thread-db.c: Include linux-osdata.h.
7888 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7889 linux_common_core_of_thread.
7890
9f9f1f31
TT
78912012-03-05 Tom Tromey <tromey@redhat.com>
7892
7893 * value.c (value_primitive_field): Don't fetch contents for
7894 non-virtual bases.
7895
b7b189f3
TT
78962012-03-05 Tom Tromey <tromey@redhat.com>
7897
7898 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7899
05b8a789 79002012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7901
5538f557
JB
7902 * s390-nat.c: Include "gregset.h".
7903
75528772
JK
79042012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7905
7906 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7907 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7908 (libunwind_load): New variable so_error, use it for dlerror. Try to
7909 load also LIBUNWIND_SO_7.
7910
275418ae
PA
79112012-03-05 Pedro Alves <palves@redhat.com>
7912
7913 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7914 is not NULL, and remove resulting dead code.
7915
5cbb9812
TS
79162012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7917
7918 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7919 prologue to sh_analyze_prologue.
7920 (sh_analyze_prologue): Make better use of such an upper limit, and
7921 generally be more cautious about accessing memory.
7922
541515ad
TT
79232012-03-05 Tom Tromey <tromey@redhat.com>
7924
7925 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7926 _initialize_ia64_hpux_tdep.
7927
b4d36fb8
PA
79282012-03-05 Pedro Alves <palves@redhat.com>
7929
24490249
PA
7930 PR gdb/13766
7931
b4d36fb8
PA
7932 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7933 the register state is clear, supply explicit zero, instead of
7934 marking the register unavailable.
7935
60c9a3c0
TG
79362012-03-05 Tristan Gingold <gingold@adacore.com>
7937
7938 * NEWS: Mention OpenVMS ia64 new target.
7939
696759ad
TG
79402012-03-05 Tristan Gingold <gingold@adacore.com>
7941
7942 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7943 (ia64_unw_accessors, ia64_unw_rse_accessors)
7944 (ia64_libunwind_descr): Declare.
7945 * ia64-vms-tdep.c: New file.
7946 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7947 (ia64_libunwind_descr): Make them public.
7948 * configure.tgt: Add ia64-*-*vms*.
7949 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7950 (ALLDEPFILES): Add ia64-vms-tdep.c
7951
34864976
TG
79522012-03-05 Tristan Gingold <gingold@adacore.com>
7953
169081d0
TG
7954 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7955 * remote.c (PACKET_qXfer_uib): New enum value.
7956 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7957 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7958 (_initialize_remote): Call add_packet_config_cmd for
7959 xfer:uib packet.
7960
79612012-03-05 Tristan Gingold <gingold@adacore.com>
7962
7963 * osabi.c (gdb_osabi_names): Add OpenVMS.
7964 (generic_elf_osabi_sniffer): Likewise.
7965 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7966
6597b100
JK
79672012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7968
7969 Removed unused code.
7970 * libunwind-frame.c (libunwind_frame_unwind)
7971 (libunwind_frame_base_address): Remove.
7972 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7973
87399aa1
YQ
79742012-03-04 Yao Qi <yao@codesourcery.com>
7975
7976 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7977 remove trailing new line.
7978 (agent_run_command, agent_run_command): Add _ markup.
7979 (agent_capability_check): Likewise.
7980
abf1152a
JK
79812012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7982
7983 * breakpoint.c (set_condition_evaluation_mode): Set
7984 CONDITION_EVALUATION_MODE unconditionally.
7985
5808517f
YQ
79862012-03-03 Yao Qi <yao@codesourcery.com>
7987
7988 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7989 * common/agent.h: Update declaration.
7990 * inf-child.c (inf_child_use_agent): New.
7991 (inf_child_can_use_agent): New.
7992 (inf_child_target): Initialize fields `to_use_agent'
7993 and `to_can_use_agent'.
7994 * agent.c (agent_new_objfile): New.
89b7509a 7995 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7996 observer.
7997
7998 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7999 New.
89b7509a 8000 (linux_target_install_ops): Initialize field
5808517f
YQ
8001 `to_static_tracepoint_markers_by_strid'.
8002 * remote.c (free_current_marker): Move it to ...
8003 * tracepoint.c (free_current_marker): ... here. New.
8004 (cleanup_target_stop): New.
8005 * tracepoint.h: Declare free_current_marker.
8006 * NEWS: Add one entry about `info static-tracepoint-marker'.
8007
58b4daa5
YQ
80082012-03-03 Yao Qi <yao@codesourcery.com>
8009
8010 * common/agent.c (agent_loaded_p): New.
89b7509a 8011 (agent_look_up_symbols): New global.
58b4daa5
YQ
8012 * common/agent.h: Declare agent_loaded_p.
8013
8ffcbaaf
YQ
80142012-03-03 Yao Qi <yao@codesourcery.com>
8015
8016 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
8017 (agent_capability_check, agent_capability_invalidate): New.
8018 (symbol_list): New array element.
8019 * common/agent.h (enum agent_capa): New.
8020 * target.c (target_pre_inferior): Call agent_capability_invalidate.
8021
d1feda86
YQ
80222012-03-03 Yao Qi <yao@codesourcery.com>
8023
8024 * target.h (struct target_ops) <to_use_agent>: New field.
8025 (struct target_ops) <to_can_use_agent>: New field.
8026 (target_use_agent, target_can_use_agent): New macro.
8027 * target.c (update_current_target): Update.
8028 * remote.c: New enum `PACKET_QAgent'.
8029 (remote_protocol_features): Add a new element.
8030 (remote_use_agent, remote_can_use_agent): New.
8031 (init_remote_ops): Initialize field `can_use_agent' with
8032 remote_can_use_agent. Intiailize field `use_agent' with
8033 remote_use_agent.
8034 * common/agent.c (use_agent): New global.
8035 * common/agent.h: Declare it.
8036 * tracepoint.c (info_static_tracepoint_markers_command): Add
8037 comment.
8038 * Makefile.in (SFILES): Add common/agent.c and agent.c.
8039 (COMMON_OBS): Add common/agent.o and agent.o
8040 (common-agent.o): New rule.
8041 * agent.c: New.
8042
2fa291ac
YQ
80432012-03-03 Yao Qi <yao@codesourcery.com>
8044
8045 * common/agent.c: New.
8046 * common/agent.h: New.
8047 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
8048 AC_CHECK_HEADERS.
8049 * configure, configh.in: Regenerated.
8050
9fc05685
KB
80512012-03-02 Kevin Buettner <kevinb@redhat.com>
8052
8053 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
8054 unless it exists for this architecture.
8055
a5ee536b
JB
80562012-03-02 Joel Brobecker <brobecker@adacore.com>
8057
8058 * language.h (struct language_defn): New "method" la_read_var_value.
8059 * findvar.c: #include "language.h".
8060 (default_read_var_value): Renames read_var_value. Rewrite
8061 function description.
8062 (read_var_value): New function.
8063 * value.h (default_read_var_value): Add prototype.
8064 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
8065 New functions.
8066 (ada_language_defn): Add entry for la_read_var_value.
8067 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
8068 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
8069 language_defn structures to add entry for new la_read_var_value
8070 field.
8071
f59f708a
PA
80722012-03-02 Tom Tromey <tromey@redhat.com>
8073 Pedro Alves <palves@redhat.com>
8074
8075 PR breakpoints/13776:
8076 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
8077 breakpoints.
8078 (delete_longjmp_breakpoint_at_next_stop): New.
8079 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
8080 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
8081 before deleting the inferior. Add comments.
8082 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
8083 breakpoints immediately, but only on next stop. Move that code
8084 next to where we mark other breakpoints for deletion.
8085
44099a67
JB
80862012-03-02 Joel Brobecker <brobecker@adacore.com>
8087
8088 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
8089 marker.
8090 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
8091 violation.
8092
2a2ef594
PA
80932012-03-02 Pedro Alves <palves@redhat.com>
8094
8095 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
8096
b261e0c5
UW
80972012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
8098
8099 Fix -Wmissing-prototypes build.
8100 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
8101 * remote-sim.c (gdbsim_has_all_memory): Likewise.
8102 (gdbsim_has_memory): Likewise.
8103
a95babbf
YQ
81042012-03-02 Yao Qi <yao@codesourcery.com>
8105
8106 Fix -Wmissing-prototypes build.
8107 * charset.c (phony_iconv_open): Make static.
8108 (phony_iconv_close, phony_iconv): Likewise.
8109 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
8110 * i386-windows-nat.c (_initialize_i386_windows_nat): New
8111 prototype.
8112 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
8113 * ser-mingw.c (create_select_thread): Make static.
8114 * windows-termcap.c (tgetent): New prototype.
8115 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
8116
d603d4b3
JK
81172012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
8118
8119 Fix -Wmissing-prototypes build.
8120 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
8121 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
8122 (_initialize_loadable): New prototypes.
8123
7fb3ad1f
DE
81242012-03-02 Doug Evans <dje@google.com>
8125
8126 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
8127 abbrev table, read_comp_unit will do it.
8128
693be288
JK
81292012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8130
8131 Fix -Wmissing-prototypes build.
8132 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
8133 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
8134 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
8135 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
8136 (_initialize_arm_symbian_tdep): New prototype.
8137 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
8138 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
8139 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
8140 static.
8141 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
8142 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
8143 prototype.
8144 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
8145 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
8146 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
8147 static.
8148 * moxie-tdep.c (moxie_process_record): Likewise.
8149 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
8150 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
8151 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
8152 (_initialize_rl78_tdep): New prototype.
8153 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
8154 (_initialize_rx_tdep): New prototype.
8155 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
8156 (_initialize_darwin_solib): New prototype.
8157 * solib-spu.c: Include solib-spu.h.
8158 (_initialize_spu_solib): New prototype.
8159 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
8160 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
8161 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
8162 (tic6x_software_single_step): Make it static.
8163 (_initialize_tic6x_tdep): New prototype.
8164
638234e5
JK
81652012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8166
8167 Fix -Wmissing-prototypes build.
8168 * cris-tdep.c (cris_can_use_hardware_watchpoint)
8169 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
8170
f4a6f16d
JK
81712012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8172
8173 Fix -Wmissing-prototypes build.
8174 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
8175 (frv_have_stopped_data_address): Remove.
8176
04dcf5fa
JK
81772012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
8178
8179 Fix -Wmissing-prototypes build.
8180 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
8181 * sh-tdep.c: Include sh64-tdep.h.
8182 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
8183 * sh64-tdep.c: Include sh64-tdep.h.
8184 * sh64-tdep.h: New file.
8185
19080931
MR
81862012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8187
8188 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
8189
9aac7884
MR
81902012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8191
8192 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
8193 sp_regnum once the gdbarch_init_osabi hook has been called.
8194
a385295e
MR
81952012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
8196
8197 * mips-tdep.c (mips32_bc1_pc): New function.
8198 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
8199 BPOSGE32 and BPOSGE64 instructions.
8200 (deal_with_atomic_sequence): Likewise.
8201 (mips32_instruction_has_delay_slot): Likewise.
8202
1faeff08 82032012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
8204 Chris Dearman <chris@mips.com>
8205 Maciej W. Rozycki <macro@codesourcery.com>
8206 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
8207
8208 * features/mips-dsp.xml: New file.
8209 * features/mips64-dsp.xml: New file.
8210 * features/mips-dsp-linux.xml: New file.
8211 * features/mips64-dsp-linux.xml: New file.
8212 * features/Makefile (WHICH): Add mips-dsp-linux and
8213 mips64-dsp-linux.
8214 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
8215 * features/mips-dsp-linux.c: New file.
8216 * features/mips64-dsp-linux.c: New file.
8217 * regformats/mips-dsp-linux.dat: New file.
8218 * regformats/mips64-dsp-linux.dat: New file.
8219 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
8220 registers.
8221 (mips64_linux_register_addr): Likewise.
8222 (mips64_linux_regsets_fetch_registers): Likewise.
8223 (mips64_linux_regsets_store_registers): Likewise.
8224 (mips64_linux_fetch_registers): Update call to
8225 mips64_linux_regsets_fetch_registers.
8226 (mips64_linux_store_registers): Update call to
8227 mips64_linux_regsets_store_registers.
8228 (mips_linux_read_description): Probe for DSP registers.
8229 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
8230 and initialize_tdesc_mips64_dsp_linux.
8231 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
8232 Remove padding of no longer used embedded register slots.
8233 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
8234 (MIPS_RESTART_REGNUM): Redefine enum value.
8235 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
8236 strings.
8237 (mips_tx39_reg_names): Likewise.
8238 (mips_linux_reg_names): New array of register names for Linux
8239 targets.
8240 (mips_register_name): Check for a null pointer in
8241 mips_processor_reg_names and return an empty string.
8242 (mips_register_type): Exclude embedded registers for the IRIX
8243 and Linux ABIs.
8244 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
8245 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
8246 DSP registers.
8247 (mips_stab_reg_to_regnum): Handle DSP accumulators.
8248 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
8249 (mips_gdbarch_init): Likewise. Initialize internal register
8250 indices for the Linux ABI. Use dynamic numbers to refer to
8251 registers, as applicable, while parsing the target description.
8252 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
8253
263689d8
JB
82542012-03-01 Joel Brobecker <brobecker@adacore.com>
8255
8256 * frame.h (read_frame_register_unsigned): Fix typo in function
8257 description.
8258
f3b4f45c
PA
82592012-03-01 Pedro Alves <palves@redhat.com>
8260
8261 * jit-reader.in [!__cplusplus]
8262 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
8263
b03a2011
PA
82642012-03-01 Pedro Alves <palves@redhat.com>
8265
8266 * configure.ac (build_warnings): Add -Wmissing-prototypes.
8267 * configure: Regenerate.
8268
70221824
PA
82692012-03-01 Pedro Alves <palves@redhat.com>
8270
8271 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
8272 * breakpoint.c (create_exception_master_breakpoint, trace_command)
8273 (ftrace_command, strace_command): Make static.
8274 * d-lang.c (_initialize_d_language): Declare.
8275 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
8276 * dwarf2loc.c (_initialize_dwarf2loc):
8277 * dwarf2read.c (process_psymtab_comp_unit): Make static.
8278 * exec.c (exec_get_section_table): Make static.
8279 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
8280 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
8281 * inferior.c (remove_inferior_command, add_inferior_command)
8282 (clone_inferior_command): Make static.
8283 * linux-nat.c (linux_nat_thread_address_space)
8284 (linux_nat_core_of_thread): Make static.
8285 * linux-tdep.c (_initialize_linux_tdep): Declare.
8286 * objc-lang.c (_initialize_objc_lang): Declare.
8287 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
8288 Make static.
8289 (_initialize_opencl_language): Declare.
8290 * record.c (_initialize_record): Declare.
8291 * remote.c (demand_private_info, remote_get_tib_address)
8292 (remote_supports_cond_tracepoints)
8293 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
8294 Make static.
8295 * skip.c (_initialize_step_skip): Declare.
8296 * symtab.c (skip_prologue_using_lineinfo): Make static.
8297 * tracepoint.c (delete_trace_state_variable)
8298 (trace_variable_command, delete_trace_variable_command)
8299 (get_uploaded_tsv, find_matching_tracepoint_location)
8300 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
8301 Make static.
8302 * value.c (pack_unsigned_long): Make static.
8303 * varobj.c (varobj_ensure_python_env): Make static.
8304 * windows-tdep.c (_initialize_windows_tdep): Declare.
8305 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
8306
33fbcbee
PA
83072012-03-01 Pedro Alves <palves@redhat.com>
8308
8309 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
8310 gdbarch parameter.
8311 (linux_init_abi): Install it as has_shared_address_space gdbarch
8312 callback.
8313
44d0cd3b
PA
83142012-03-01 Pedro Alves <palves@redhat.com>
8315
8316 * observer.c (observer_test_first_notification_function)
8317 (observer_test_second_notification_function)
8318 (observer_test_third_notification_function): Add declarations.
8319
ed01b82c
PA
83202012-03-01 Pedro Alves <palves@redhat.com>
8321
8322 * common/signals.c (default_target_signal_to_host)
8323 (default_target_signal_from_host): Move ...
8324 * arch-utils.c: ... here.
8325 * arch-utils.h (default_target_signal_to_host)
8326 (default_target_signal_from_host): Declare.
8327
8328 * common/signals.c (target_signal_from_command): Move ...
8329 * infrun.c: ... here.
8330 * inferior.h (target_signal_from_command): Declare.
8331 * target.h (target_signal_from_command)
8332 (default_target_signal_from_host, default_target_signal_to_host):
8333 Delete declarations.
8334
8335 * common/signals.c (_initialize_signals): Delete.
8336
c9b87335
PA
83372012-03-01 Pedro Alves <palves@redhat.com>
8338
8339 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
8340 both __cplusplus and !__cplusplus.
8341
9340a6c0
PA
83422012-03-01 Pedro Alves <palves@redhat.com>
8343
8344 * psymtab.c (find_and_open_source): Delete declaration.
8345 * source.c (find_and_open_source): Move comment ...
8346 * source.h (find_and_open_source): ... to this new declaration.
8347
e451c4a1
PA
83482012-03-01 Pedro Alves <palves@redhat.com>
8349
8350 * inline-frame.c: Include inline-frame.h.
8351
983fb104
PA
83522012-03-01 Pedro Alves <palves@redhat.com>
8353
8354 * tui/tui-data.c (set_gen_win_origin): Delete.
8355 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
8356 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
8357
5fbce5df
PA
83582012-03-01 Pedro Alves <palves@redhat.com>
8359
8360 * remote.c (encode_actions): Delete declaration.
8361 * tracepoint.c (encode_actions): Make extern.
8362 * tracepoint.h (encode_actions): Declare.
8363
49a8461d
PA
83642012-03-01 Pedro Alves <palves@redhat.com>
8365
8366 * python/py-breakpoint.c: Include python.h.
8367 * python/py-continueevent.c (create_continue_event_object): Make
8368 static.
8369 * python/py-lazy-string.c (stpy_get_type): Make static.
8370 * python/py-newobjfileevent.c (create_new_objfile_event_object):
8371 Make static.
8372 * python/py-utils.c (unicode_to_target_python_string): Make
8373 static.
8374 * python/py-value.c: Include python.h.
8375
9079102f
PA
83762012-03-01 Pedro Alves <palves@redhat.com>
8377
8378 * inferior.c (delete_threads_of_inferior): Delete.
8379
a298c5e8
PA
83802012-03-01 Pedro Alves <palves@redhat.com>
8381
8382 Import fallback definitions from glibc.
8383
8384 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
8385 ps_prochandle): Forward declare.
8386 (ps_err_e): Use glibc's comments.
8387 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
8388 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
8389 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
8390 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
8391 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
8392 (struct ps_prochandle): Adjust comment.
8393
e3084549
PA
83942012-03-01 Pedro Alves <palves@redhat.com>
8395
8396 * ada-lang.c (ada_modulus_from_name): Delete.
8397 * ada-lex.l (lexer_init): Make static.
8398
ad5f7d6e
PA
83992012-03-01 Pedro Alves <palves@redhat.com>
8400
8401 PR gdb/13767
8402
8403 * frame.c (read_frame_register_unsigned): New.
8404 * frame.h (read_frame_register_unsigned): Declare.
8405 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
8406 Handle it.
8407 (print_i387_control_word): New parameter `control_p'. Handle it.
8408 (i387_print_float_info): Handle unavailable float registers.
8409
e0a4d108
KS
84102012-03-01 Keith Seitz <keiths@redhat.com>
8411
8412 * linespec.c (decode_line_2): Sort the list of methods
8413 alphabetically before presenting the user with a selection
8414 menu.
8415
122d1940
DE
84162012-03-01 Doug Evans <dje@google.com>
8417
8418 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
8419 has_namespace_info.
8420 (dwarf2_read_abbrevs): Remove corresponding initialization.
8421
7d74f244
DE
84222012-03-01 Scott J. Goldman <scottjg@vmware.com>
8423
8424 * NEWS: Mention new python command class gdb.COMMAND_USER.
8425 * cli/cli-cmds.c (show_user): Print error when used on a python
8426 command.
8427 (init_cli_cmds): Update documentation strings for "show user" and
8428 "set/show max-user-call-depth" to clarify that it does not apply to
8429 python commands.
8430 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
8431 error check.
8432 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
8433 gdb python api.
8434 * top.c (execute_command): Only execute a user-defined command as a
8435 legacy macro if c->user_commands is set.
8436
e88acd96
TT
84372012-03-01 Tom Tromey <tromey@redhat.com>
8438
8439 * valprint.h (struct generic_val_print_decorations): New.
8440 (generic_val_print): Declare.
8441 * valprint.c (generic_val_print): New function.
8442 * p-valprint.c (p_decorations): New global.
8443 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
8444 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
8445 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
8446 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
8447 * m2-valprint.c (m2_decorations): New global.
8448 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
8449 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
8450 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
8451 TYPE_CODE_ERROR>: Call generic_val_print.
8452 * f-valprint.c (f_decorations): New global.
8453 (f_val_print): Use print_function_pointer_address.
8454 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
8455 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
8456 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
8457 generic_val_print.
8458 * c-valprint.c (c_decorations): New global.
8459 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
8460 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
8461 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
8462 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
8463 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
8464 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
8465 case.
8466
d3eab38a
TT
84672012-03-01 Tom Tromey <tromey@redhat.com>
8468
8469 * valprint.c (val_print): Update.
8470 * p-valprint (pascal_val_print): Return void.
8471 * p-lang.h (pascal_val_print): Return void.
8472 * m2-valprint.c (m2_val_print): Return void.
8473 * m2-lang.h (m2_val_print): Return void.
8474 * language.h (struct language_defn) <la_val_print>: Return void.
8475 * language.c (unk_lang_val_print): Return void.
8476 * jv-valprint.c (java_val_print): Return void.
8477 * jv-lang.h (java_val_print): Return void.
8478 * f-valprint.c (f_val_print): Return void.
8479 * f-lang.h (f_val_print): Return void.
8480 * d-valprint.c (d_val_print): Return void.
8481 (dynamic_array_type): Update.
8482 * d-lang.h (d_val_print): Return void.
8483 * c-valprint.c (c_val_print): Return void.
8484 * c-lang.h (c_val_print): Return void.
8485 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
8486 void.
8487 * ada-lang.h (ada_val_print): Return void.
8488
35c0084b
TT
84892012-03-01 Tom Tromey <tromey@redhat.com>
8490
8491 * value.h (val_print): Return void.
8492 * valprint.c (val_print): Return void.
8493
a1f5dd1b
TT
84942012-03-01 Tom Tromey <tromey@redhat.com>
8495
8496 * value.h (common_val_print): Return void.
8497 * valprint.c (common_val_print): Return void.
8498
8e069a98
TT
84992012-03-01 Tom Tromey <tromey@redhat.com>
8500
8501 * value.h (value_print): Return void.
8502 * valprint.c (value_print): Return void.
8503 * p-valprint.c (pascal_value_print): Return void.
8504 * p-lang.h (pascal_value_print): Return void.
8505 * language.h (struct language_defn) <la_value_print>: Return
8506 void.
8507 * language.c (unk_lang_value_print): Return void.
8508 * jv-valprint.c (java_value_print): Return void.
8509 * jv-lang.h (java_value_print): Return void.
8510 * f-valprint.c (c_value_print): Don't declare.
8511 Include c-lang.h.
8512 * c-valprint.c (c_value_print): Return void.
8513 * c-lang.h (c_value_print): Return void.
8514 * ada-valprint.c (ada_value_print): Return void.
8515 * ada-lang.h (ada_value_print): Return void.
8516
be335936
TT
85172012-03-01 Tom Tromey <tromey@redhat.com>
8518
8519 * value.c (value_primitive_field): Handle virtual base classes.
8520
b0db66a7
TT
85212012-03-01 Tom Tromey <tromey@redhat.com>
8522
8523 * gdbtypes.h (struct vbase): Remove.
8524
132c57b4
TT
85252012-03-01 Tom Tromey <tromey@redhat.com>
8526
8527 * c-valprint.c (print_function_pointer_address): Move...
8528 * valprint.c: ... here. Make non-static.
8529 * m2-valprint.c (print_function_pointer_address): Remove.
8530 * valprint.h (print_function_pointer_address): Declare.
8531
e41eec66
JB
85322012-03-01 Joel Brobecker <brobecker@adacore.com>
8533
8534 * NEWS: Document the fact that one can provide a condition when
8535 creating an Ada exception catchpoint.
8536
19c37f24
TT
85372012-03-01 Tom Tromey <tromey@redhat.com>
8538
8539 * valprint.c (val_print_type_code_flags): Fix placement of
8540 trailing brace.
8541
f0fed3a3
JB
85422012-03-01 Joel Brobecker <brobecker@adacore.com>
8543
8544 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
8545 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
8546 environment variable before calling update-copyright.
8547
8ba85d85
JB
85482012-03-01 Joel Brobecker <brobecker@adacore.com>
8549
8550 * gnulib/extra/update-copyright: Update to the latest from
8551 gnulib's git repository.
8552 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
8553 variable to 2 instead of 1.
8554
8219b1e8
JB
85552012-02-29 Joel Brobecker <brobecker@adacore.com>
8556
8557 * varobj.c (c_value_of_variable): Remove dead code.
8558
718cb7da
JB
85592012-02-29 Joel Brobecker <brobecker@adacore.com>
8560
8561 * ada-lex.p (processId): Do not modify already encoded IDs.
8562 Update function documentation.
8563
739593e0
JB
85642012-02-29 Joel Brobecker <brobecker@adacore.com>
8565
8566 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
8567 "name" with "struct symbol *name_sym".
8568 * ada-exp.y (write_var_or_type): Update call to
8569 ada_find_renaming_symbol.
8570 "name" with "struct symbol *name_sym". Adjust Implementation
8571 accordingly. Adjust the function documentation.
8572
852dff6c
JB
85732012-02-29 Joel Brobecker <brobecker@adacore.com>
8574
8575 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
8576 * ada-lang.c (ada_find_any_type): Add advance declaration.
8577 Make static. Replace ada_find_any_symbol by
8578 ada_find_any_type_symbol.
8579 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
8580 Improve function description. Make static.
8581 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
8582 Replace ada_find_any_symbol by ada_find_any_type_symbol.
8583
1b611343
JB
85842012-02-29 Joel Brobecker <brobecker@adacore.com>
8585
8586 * ada-lang.c (struct tag_args): Delete.
8587 (ada_get_tsd_type): Function body moved up in source file.
8588 (ada_tag_name_1, ada_tag_name_2): Delete.
8589 (ada_get_tsd_from_tag): New function.
8590 (ada_tag_name_from_tsd): New function.
8591 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8592 to determine the tag name.
8593
41246937
JB
85942012-02-29 Joel Brobecker <brobecker@adacore.com>
8595
8596 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8597 declaration.
8598 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8599 function.
8600
ffde82bf
JB
86012012-02-29 Joel Brobecker <brobecker@adacore.com>
8602
8603 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8604
2ad01556
JB
86052012-02-29 Joel Brobecker <brobecker@adacore.com>
8606
8607 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8608 full searches.
8609
99b1c762
JB
86102012-02-29 Joel Brobecker <brobecker@adacore.com>
8611
8612 * ada-lang.c (constrained_packed_array_type): If there is a
8613 parallel XA type, use it to determine the array index type.
8614
2d4a02ee
JB
86152012-02-29 Joel Brobecker <brobecker@adacore.com>
8616
8617 * ada-valprint.c (ada_val_print_1): If our value is a reference
8618 to an array descriptor, dereference it before converting it
8619 to a simple array.
8620
c48db5ca
JB
86212012-02-29 Joel Brobecker <brobecker@adacore.com>
8622
8623 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8624 creating fixed value.
8625 (ada_value_ind, ada_coerce_ref, assign_component)
8626 (ada_evaluate_subexp): Remove call to unwrap_value before
8627 call to ada_to_fixed_value.
8628
2e6fda7d
JB
86292012-02-29 Joel Brobecker <brobecker@adacore.com>
8630
8631 * ada-lang.c (to_fixed_array_type): Set result's type name.
8632
5845583d
JB
86332012-02-29 Joel Brobecker <brobecker@adacore.com>
8634
8635 * ada-lang.c (catch_ada_exception_command_split): Add new
8636 argument cond_string. Add support for condition at end of
8637 "catch exception" commands.
8638 (ada_decode_exception_location): Add new argument cond_string.
8639 Update call to catch_ada_exception_command_split.
8640 (create_ada_exception_catchpoint): Add new argument cond_string.
8641 Set the breakpoint condition if needed.
8642 (catch_ada_exception_command): Update call to
8643 ada_decode_exception_location.
8644 (ada_decode_assert_location): Add function documentation.
8645 Add support for condition at end of "catch assert" command.
8646 (catch_assert_command): Update calls to ada_decode_assert_location
8647 and create_ada_exception_catchpoint.
8648
9a7f938f
JK
86492012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8650
8651 Fix disp-step-syscall.exp: fork: single step over fork.
8652 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8653 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8654 comment, change parameters gdbarch and ptid to regcache. Remove
8655 parameter regcache, initialize gdbarch from regcache here.
8656 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8657 New functions.
8658 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8659 instead.
8660 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8661 'syscall'. Make the 'int' check more strict.
8662
ffdf6de5
JK
86632012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8664
8665 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8666 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8667 (i386_linux_intx80_sysenter_syscall_record): ... here.
8668 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8669 Use the renamed function name.
8670
c70a6932
JK
86712012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8672
8673 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8674 * breakpoint.c (until_break_command): Likewise.
8675 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8676 * infcall.c (call_function_by_hand): Likewise.
8677 * infcmd.c (finish_forward): Likewise.
8678 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8679
05b8a789 86802012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8681
d4cd3da9
JB
8682 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8683 avoid variable assignments inside condition.
8684
6425366c
JK
86852012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8686
8687 Fix static analysis issue found by cppcheck.
8688 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8689 uninitialized BUF for size 2.
8690
c8cef75f 86912012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8692 Nathan Froyd <froydnj@codesourcery.com>
8693 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8694
8695 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8696 (mips16_instruction_has_delay_slot): Likewise.
8697 (mips_segment_boundary): Likewise.
8698 (mips_adjust_breakpoint_address): Likewise.
8699 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8700
473347ad 87012012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8702 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8703
8704 * infrun.c (handle_inferior_event): Don't proceed through
8705 shared library trampolines if stepping at the machine
8706 instruction level.
8707
cf233303
MR
87082012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8709
8710 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8711 too.
8712
cb2cf4ce
TS
87132012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8714
8715 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8716 (sh_stub_unwind_sniffer): New functions.
8717 (sh_stub_unwind): New variable.
8718 (sh_gdbarch_init): Wire everything.
8719
644cebc9
PA
87202012-02-27 Pedro Alves <palves@redhat.com>
8721
8722 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8723 (linux_nat_post_attach_wait): Adjust to use
8724 linux_proc_pid_is_stopped.
8725 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8726 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8727 based on pid_is_stopped from both linux-nat.c and
8728 gdbserver/linux-low.c, and renamed.
8729
283002cf
MR
87302012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8731
8732 * remote.c (remote_watchpoint_addr_within_range): New function.
8733 (init_remote_ops): Use it.
8734
9b3e86b1
MR
87352012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8736
8737 * target.h (target_watchpoint_addr_within_range): Document macro.
8738
e36930bb
PA
87392012-02-24 Pedro Alves <palves@redhat.com>
8740
8741 * stack.c (set_last_displayed_sal): Issue internal_error instead
8742 of warning, and issue it after clearing the last displayed sal.
8743
883bc8d1
PA
87442012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8745 Pedro Alves <palves@redhat.com>
8746
8747 * breakpoint.c (until_break_command): Install breakpoints after
8748 all frame manipulations.
8749
b775012e
LM
87502012-02-24 Luis Machado <lgustavo@codesourcery.com>
8751
8752 * remote.c (remote_supports_cond_breakpoints): New forward
8753 declaration.
8754 (remote_add_target_side_condition): New function.
8755 (remote_insert_breakpoint): Add target-side breakpoint
8756 conditional if supported.
8757 (remote_insert_hw_breakpoint): Likewise.
8758 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8759 hook.
8760
8761 * target.c (update_current_target): Inherit
8762 to_supports_evaluation_of_breakpoint_conditions.
8763 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8764
8765 * target.h (struct target_ops)
8766 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8767 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8768
8769 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8770 (condition_evaluation_both, condition_evaluation_auto,
8771 condition_evaluation_host, condition_evaluation_target,
8772 condition_evaluation_enums, condition_evaluation_mode_1,
8773 condition_evaluation_mode): New static globals.
8774 (translate_condition_evaluation_mode): New function.
8775 (breakpoint_condition_evaluation_mode): New function.
8776 (gdb_evaluates_breakpoint_condition_p): New function.
8777 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8778 (mark_breakpoint_modified): New function.
8779 (mark_breakpoint_location_modified): New function.
8780 (set_condition_evaluation_mode): New function.
8781 (show_condition_evaluation_mode): New function.
8782 (bp_location_compare_addrs): New function.
8783 (get_first_location_gte_addr): New helper function.
8784 (set_breakpoint_condition): Free condition bytecode if locations
8785 has become unconditional. Call mark_breakpoint_modified (...).
8786 (condition_command): Call update_global_location_list (1) for
8787 breakpoints.
8788 (breakpoint_xfer_memory): Use is_breakpoint (...).
8789 (is_breakpoint): New function.
8790 (parse_cond_to_aexpr): New function.
8791 (build_target_condition_list): New function.
8792 (insert_bp_location): Handle target-side conditional
8793 breakpoints and call build_target_condition_list (...).
8794 (update_inserted_breakpoint_locations): New function.
8795 (insert_breakpoint_locations): Handle target-side conditional
8796 breakpoints.
8797 (bpstat_check_breakpoint_conditions): Add comment.
8798 (bp_condition_evaluator): New function.
8799 (bp_location_condition_evaluator): New function.
8800 (print_breakpoint_location): Print information on where the condition
8801 will be evaluated.
8802 (print_one_breakpoint_location): Likewise.
8803 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8804 breakpoint location.
8805 (force_breakpoint_reinsertion): New functions.
8806 (update_global_location_list): Handle target-side breakpoint
8807 conditions.
8808 Reinsert locations that are already inserted if conditions have
8809 changed.
8810 (bp_location_dtor): Free agent expression bytecode.
8811 (disable_breakpoint): Call mark_breakpoint_modified (...).
8812 Call update_global_location_list (...) with parameter 1 for breakpoints.
8813 (disable_command): Call mark_breakpoint_location_modified (...).
8814 Call update_global_location_list (...) with parameter 1 for breakpoints.
8815 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8816 (enable_command): mark_breakpoint_location_modified (...).
8817 (_initialize_breakpoint): Update documentation and add
8818 condition-evaluation breakpoint subcommand.
8819
8820 * breakpoint.h: Include ax.h.
8821 (condition_list): New data structure.
8822 (condition_status): New enum.
8823 (bp_target_info) <cond_list>: New field.
8824 (bp_location) <condition_changed, cond_bytecode>: New fields.
8825 (is_breakpoint): New prototype.
8826
3788aec7
LM
88272012-02-24 Luis Machado <lgustavo@codesourcery.com>
8828
8829 * remote.c (remote_state) <cond_breakpoints>: New field.
8830 (PACKET_ConditionalBreakpoints): New enum.
8831 (remote_cond_breakpoint_feature): New function.
8832 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8833 (remote_supports_cond_breakpoints): New function.
8834 (_initialize_remote): Add new packet configuration for
8835 target-side conditional breakpoints.
8836
72895ff6
LM
88372012-02-24 Luis Machado <lgustavo@codesourcery.com>
8838
8839 * NEWS: Mention target-side conditional breakpoint support,
8840 new condition-evaluation breakpoint subcommand and remote
8841 packet extensions.
8842
dea2aa5f
LM
88432012-02-24 Luis Machado <lgustavo@codesourcery.com>
8844
8845 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8846 number.
8847
8a8bc27f
TS
88482012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8849
8850 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8851 (after_prologue): Remove.
8852
6b446fdf
TT
88532012-02-23 Tom Tromey <tromey@redhat.com>
8854
8855 * jv-valprint.c (java_val_print): Remove dead code.
8856
ef59abfb
TG
88572012-02-23 Tristan Gingold <gingold@adacore.com>
8858
a09130f9
PA
8859 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8860 known_tasks_element and known_tasks_length fields.
8861 (read_known_tasks_array): Change argument type. Use pointer type
8862 and number of elements from DATA. Adjust.
8863 (read_known_tasks_list): Likewise.
8864 (get_known_tasks_addr): Remove.
8865 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8866 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8867 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8868
def166f6
JK
88692012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8870
8871 PR backtrace/13716
8872 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8873 it after set_momentary_breakpoint.
8874
aeaa2474
SA
88752012-02-22 Sterling Augustine <saugustine@google.com>
8876
8877 PR 13689:
8878 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8879
feea76c2
GB
88802012-02-22 Gary Benson <gbenson@redhat.com>
8881
8882 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8883 (find_slot_in_mapped_hash): Likewise.
8884
f06e05e0
JK
88852012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8886
8887 PR build/13638
8888 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8889 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8890 * configure: Regenerate.
8891
b54a8fd7
PA
88922012-02-21 Tristan Gingold <gingold@adacore.com>
8893 Pedro Alves <palves@redhat.com>
8894
8895 * ia64-tdep.c: Do not include libunwind-ia64.h.
8896 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8897 Include libunwind-ia64.h instead of libunwind.h.
8898 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8899 for libunwind.h existence.
8900 * configure, config.in: Regenerate.
8901
dfcee124
AG
89022012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8903
8904 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8905 instead of value_rtti_target_type.
8906 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8907 instead of value_rtti_target_type.
8908 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8909 value_rtti_target_type.
8910 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8911 (value_rtti_target_type): Rename to ...
8912 (value_rtti_indirect_type): ... here and make it indirect. Update
8913 function comment.
8914 * value.c (readjust_indirect_value_type): New function.
8915 (coerce_ref): Support for enclosing type setting for references
8916 with readjust_indirect_value_type.
8917 * value.h (readjust_value_type): New declaration.
8918 (value_rtti_target_type): Rename to ...
8919 (value_rtti_indirect_type): ... here.
8920
02568277
AG
89212012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8922
8923 * MAINTAINERS (Write After Approval): Add myself to the list.
8924
10c07b7e 89252012-02-20 Doug Evans <dje@google.com>
28ee876a 8926
d82ea6a8
DE
8927 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8928 Rename objfile_p_char parameter to objfilep.
8929 (build_objfile_section_table): Result is now void. All callers
8930 updated.
8931 * objfiles.h (struct objfile): Tweak comments, whitespace.
8932 (build_objfile_section_table): Update.
8933
28ee876a
DE
8934 * elfread.c (elf_symfile_segments): Fix warning text.
8935
24c79950
TT
89362012-02-20 Tom Tromey <tromey@redhat.com>
8937
8938 PR gdb/13498:
8939 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8940 particular set of file names once.
8941 (dw2_map_symbol_filenames): Likewise.
8942
3a9b40b6
JK
89432012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8944
8945 Code cleanup.
8946 * main.c (write_files): Remove the declaration.
8947 (external_editor_command): Move the declaration ...
8948 [GDBTK] (external_editor_command): ... here. Fix the comment.
8949
4d0795ca
TT
89502012-02-20 Tom Tromey <tromey@redhat.com>
8951
8952 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8953 extraneous block.
8954
637fd620
TG
89552012-02-20 Tristan Gingold <gingold@adacore.com>
8956
8957 * darwin-nat.h (enum darwin_msg_state): Add comments.
8958
6f124894
TG
89592012-02-20 Tristan Gingold <gingold@adacore.com>
8960
8961 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8962 value.
8963
2e6e3d9c
JB
89642012-20-18 Joel Brobecker <brobecker@adacore.com>
8965
8966 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8967 between function description and implementation.
8968
2e8265fd
TT
89692012-02-17 Tom Tromey <tromey@redhat.com>
8970
8971 PR python/12070:
8972 * python/py-event.c (event_object_getset): New global.
8973 (event_object_type): Reference it.
8974 * python/py-type.c (field_object_getset): New global.
8975 (field_object_type): Reference it.
8976 * python/python-internal.h (gdb_py_generic_dict): Declare.
8977 * python/py-utils.c (gdb_py_generic_dict): New function.
8978
8544a150 89792012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8980
8544a150 8981 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8982
ca193e27
TS
89832012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8984
8985 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8986 TYPE_CALLING_CONVENTION annotation.
8987
e5586183
KB
89882012-02-16 Kevin Buettner <kevinb@redhat.com>
8989
8990 * MAINTAINERS: Add rx to target ISA section.
8991 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8992 (ALLDEPFILES): Add rx-tdep.c.
8993
7dcd53a0
TT
89942012-02-16 Tom Tromey <tromey@redhat.com>
8995
8996 * symfile.c (symbol_file_add_main_1): Use inferior's
8997 symfile_flags.
8998 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8999 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
9000 inferior.
9001 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
9002 inferior.
9003 (follow_exec): Use inferior's symfile_flags.
9004 * inferior.h (struct inferior) <symfile_flags>: New field.
9005
ddd60447
MF
90062012-02-16 Mike Frysinger <vapier@gentoo.org>
9007
9008 PR gdb/9734:
9009 * remote-sim.c (gdbsim_create_inferior): Call error() when
9010 sim_create_inferior() fails.
9011
b0d32fb6
TG
90122012-02-16 Josh Matthews <josh@joshmatthews.net>
9013
9014 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
9015
9addecb9
TT
90162012-02-16 Tom Tromey <tromey@redhat.com>
9017
9018 PR c++/13653:
9019 * thread.c (struct current_thread_cleanup) <was_removable>: New
9020 field.
9021 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
9022 (make_cleanup_restore_current_thread): Initialize new field.
9023
a58b110a
KB
90242012-02-15 Kevin Buettner <kevinb@redhat.com>
9025
9026 * MAINTAINERS: Add rl78 to target ISA section.
9027 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
9028 (ALLDEPFILES): Add rl78-tdep.c.
9029 * NEWS: Mention rl78 as a new target.
9030
4cb6da1c
AR
90312012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
9032
9033 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
9034 data.
9035 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
9036
3af2590d
TT
90372012-02-15 Tom Tromey <tromey@redhat.com>
9038
9039 PR gdb/12659:
9040 * infcmd.c (registers_info): Print just the current register's
9041 name.
9042
c6910659
TT
90432012-02-15 Tom Tromey <tromey@redhat.com>
9044
9045 * python/py-symbol.c (sympy_value): Use _().
9046
7cee1e54
PA
90472012-02-15 Pedro Alves <palves@redhat.com>
9048
9049 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
9050 output to be like native targets'.
9051 (remote_pid_to_str): Special case the null ptid.
9052
816338b5
SS
90532012-02-14 Stan Shebs <stan@codesourcery.com>
9054
9055 * NEWS: Mention enable count command.
9056 * breakpoint.h (struct breakpoint): New field enable_count.
9057 * breakpoint.c (enable_breakpoint_disp): Add count argument.
9058 (enable_breakpoint): Add arg to call.
9059 (struct disp_data): New struct.
9060 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
9061 (do_map_enable_once_breakpoint): Create a struct and pass it.
9062 (do_map_enable_delete_breakpoint): Ditto.
9063 (do_map_enable_count_breakpoint): New function.
9064 (enable_count_command): New function.
9065 (bpstat_stop_status): Decrement enable_count.
9066 (print_one_breakpoint_location): Report enable count.
9067 (_initialize_breakpoint): Add enable count command.
9068
c47a44f4
KB
90692012-02-14 Kevin Buettner <kevinb@redhat.com>
9070
9071 * rl78-tdep.c (reggroups.h): Include.
9072 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
9073 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
9074 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
9075 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
9076 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
9077 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
9078 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
9079 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
9080 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
9081 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
9082 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
9083 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
9084 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
9085 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
9086 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
9087 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
9088 beginning of register list.
9089 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
9090 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
9091 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
9092 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
9093 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
9094 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
9095 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
9096 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
9097 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
9098 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
9099 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
9100 the pseudo registers. Rearrange other pseudo registers too so
9101 that the bank registers appear at the end.
9102 (rl78_register_type): Account for the fact that the byte sized
9103 bank registers are now pseudo-registers.
9104 (rl78_register_name): Rearrange the register name array. Make
9105 initial set of raw banked registers inaccessible.
9106 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
9107 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
9108 case for copying bytes back and forth between raw and pseudo
9109 versions of the banked registers. Update other cases to reflect
9110 the changed names.
9111 (rl78_return_value): Update to account for changed names of
9112 raw registers.
9113 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
9114 rl78_register_sim_regno().
9115
e4569f1e
KB
91162012-02-14 Kevin Buettner <kevinb@redhat.com>
9117
9118 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
9119 the name parameter being passed to find_pc_partial_function().
9120
7a05aae7
JK
91212012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9122
9123 * MAINTAINERS: Step down from being ia64 target maintainer.
9124
11fde611
JK
91252012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9126
9127 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
9128 compilation warning.
9129
57008375
JK
91302012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9131
9132 Fix crash on loaded shlibs without loaded exec_bfd.
9133 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
9134 (set_section_command): Replace exec_bfd by p->bfd.
9135
ff3c9849
TT
91362012-02-10 Tom Tromey <tromey@redhat.com>
9137
9138 * linespec.c (decode_line_internal): Skip symtabs_from_filename
9139 when we have a C++ qualified name.
9140
db2b9fdd
PA
91412012-02-10 Pedro Alves <palves@redhat.com>
9142
9143 * inferior.c (inferior_pid_to_str): New.
9144 (print_inferior, inferior_command): Use it.
9145
12cd34f3
PA
91462012-02-10 Pedro Alves <palves@redhat.com>
9147
9148 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
9149 the test CFLAGS.
9150 * configure: Regenerate.
9151
e871429d
JK
91522012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9153
9154 * linespec.c (decode_line_internal): Fix comment correctness.
9155
1916efaf
PA
91562012-02-09 Valery Khromov <valery.khromov@gmail.com>
9157
9158 PR gdb/12953
9159 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
9160 * amd64bsd-nat.c: Add support for debug registers (adapted from
9161 i386bsd-nat.c).
9162 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
9163 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
9164 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
9165 (amd64bsd_dr_get_control): New functions.
9166 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
9167 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
9168 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
9169 watchpoints initialization.
9170 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
9171
f4859d94
JK
91722012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
9175 flds_bnds.fields.
9176 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
9177
c56a97f9
JK
91782012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9179
9180 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
9181
1a119f36
JB
91822012-02-08 Joel Brobecker <brobecker@adacore.com>
9183
9184 * language.h (symbol_name_cmp_ftype): Renames
9185 symbol_name_match_p_ftype.
9186 (struct language_defn)[la_get_symbol_name_cmp]: Renames
9187 la_get_symbol_name_match_p.
9188 * ada-lang.c (ada_get_symbol_name_cmp): Renames
9189 ada_get_symbol_name_match_p. Update comment.
9190 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
9191 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
9192 Renames symbol_name_match_p. Update field type.
9193 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
9194 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9195 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
9196 "la_get_symbol_name_cmp" in comments.
9197 * language.c: Likewise.
9198
c71bb1cf
RO
91992012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9200
9201 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
9202 %eflags offset.
9203 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
9204 (amd64_sol2_gregset32_reg_offs): Likewise.
9205
4b2d20a5
TG
92062012-02-08 Joel Brobecker <brobecker@adacore.com>
9207
9208 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
9209 of the returned BFD is allocated by GDB.
9210
f0823d2c
TT
92112012-02-07 Tom Tromey <tromey@redhat.com>
9212
9213 PR python/12027:
9214 * python/python-internal.h (frame_object_type): Declare.
9215 * python/py-symbol.c (sympy_needs_frame): New function.
9216 (sympy_value): New function.
9217 (symbol_object_getset): Add "needs_frame".
9218 (symbol_object_methods): Add "value".
9219 * python/py-frame.c (frame_object_type): No longer static.
9220
64e7d9dd
TT
92212012-02-07 Tom Tromey <tromey@redhat.com>
9222
9223 PR python/13599:
9224 * python/py-symbol.c (sympy_line): New function.
9225 (symbol_object_getset): Add "line".
9226
1d6b2d2b
TT
92272012-02-07 Tom Tromey <tromey@redhat.com>
9228
9229 * charset.c (find_charset_names): Check 'in' against NULL.
9230
0d5cff50
DE
92312012-02-06 Doug Evans <dje@google.com>
9232
9233 * gdbtypes.h (struct main_type): Change type of name,tag_name,
9234 and fields.name members from char * to const char *. All uses updated.
9235 (struct cplus_struct_type): Change type of fn_fieldlists.name member
9236 from char * to const char *. All uses updated.
9237 (type_name_no_tag): Update.
9238 (lookup_unsigned_typename, lookup_signed_typename): Update.
9239 * gdbtypes.c (type_name_no_tag): Change result type
9240 from char * to const char *. All callers updated.
9241 (lookup_unsigned_typename, lookup_signed_typename): Change type of
9242 name parameter from char * to const char *.
9243 * symtab.h (struct cplus_specific): Change type of demangled_name
9244 member from char * to const char *. All uses updated.
9245 (struct general_symbol_info): Change type of name and
9246 mangled_lang.demangled_name members from char * to const char *.
9247 All uses updated.
9248 (symbol_get_demangled_name, symbol_natural_name): Update.
9249 (symbol_demangled_name, symbol_search_name): Update.
9250 * symtab.c (symbol_get_demangled_name): Change result type
9251 from char * to const char *. All callers updated.
9252 (symbol_natural_name, symbol_demangled_name): Ditto.
9253 (symbol_search_name): Ditto.
9254 (completion_list_add_name): Change type of symname,sym_text,
9255 text,word parameters from char * to const char *.
9256 (completion_list_objc_symbol): Change type of sym_text,
9257 text,word parameters from char * to const char *.
9258 * ada-lang.c (find_struct_field): Change type of name parameter
9259 from char * to const char *.
9260 (encoded_ordered_before): Similarly for N0,N1 parameters.
9261 (old_renaming_is_invisible): Similarly for function_name parameter.
9262 (ada_type_name): Change result type from char * to const char *.
9263 All callers updated.
9264 * ada-lang.h (ada_type_name): Update.
9265 * buildsym.c (hashname): Change type of name parameter
9266 from char * to const char *.
9267 * buildsym.h (hashname): Update.
9268 * dbxread.c (end_psymtab): Change type of include_list parameter
9269 from char ** to const char **.
9270 * dwarf2read.c (determine_prefix): Change result type
9271 from char * to const char *. All callers updated.
9272 * f-lang.c (find_common_for_function): Change type of name, funcname
9273 parameters from char * to const char *.
9274 * f-lang.c (find_common_for_function): Update.
9275 * f-valprint.c (list_all_visible_commons): Change type of funcname
9276 parameters from char * to const char *.
9277 * gdbarch.sh (static_transform_name): Change type of name parameter
9278 and result from char * to const char *.
9279 * gdbarch.c: Regenerate.
9280 * gdbarch.h: Regenerate.
9281 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
9282 of name parameter from char * to const char *.
9283 * jv-lang.c (java_primitive_type_from_name): Ditto.
9284 (java_demangled_signature_length): Similarly for signature parameter.
9285 (java_demangled_signature_copy): Ditto.
9286 (java_demangle_type_signature): Ditto.
9287 * jv-lang.h (java_primitive_type_from_name): Update.
9288 (java_demangle_type_signature): Update.
9289 * objc-lang.c (specialcmp): Change type of a,b parameters
9290 from char * to const char *.
9291 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
9292 from char * to const char *. All callers updated.
9293 * p-lang.h (is_pascal_string_type): Update.
9294 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
9295 of name parameter from char * to const char *.
9296 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
9297 * utils.c (fprintf_symbol_filtered): Ditto.
9298 * defs.h (fprintf_symbol_filtered): Update.
9299 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
9300 * stabsread.h (end_psymtab): Update.
9301 * stack.c (find_frame_funname): Change type of funname parameter
9302 from char ** to const char **.
9303 * stack.h (find_frame_funname): Update.
9304 * typeprint.c (type_print): Change type of varstring parameter
9305 from char * to const char *.
9306 * value.h (type_print): Update.
9307 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
9308 from char * to const char *. All callers updated.
9309 (xcoff_end_psymtab): Change type of include_list parameter
9310 from char ** to const char **. All callers updated.
9311 (swap_sym): Similarly for name parameter. All callers updated.
9312 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
9313 Use xstrdup.
9314 (process_coff_symbol): Use xstrdup.
9315 * stabsread.c (stabs_method_name_from_physname): Renamed from
9316 update_method_name_from_physname. Change result type from void
9317 to char *. All callers updated.
9318 (read_member_functions): In has_destructor case, store name in objfile
9319 obstack instead of malloc space. In !has_stub case, fix mem leak.
9320
5579a92e
TT
93212012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
9322
9323 * configure: Rebuild.
9324 * configure.ac: Put -L../bfd and -L../libiberty at the front of
9325 LDFLAGS.
9326
9058f767
KB
93272012-02-03 Kevin Buettner <kevinb@redhat.com>
9328
9329 * configure.tgt (rl78-*-elf): New target.
9330 * rl78-tdep.c: New file.
9331
5b37825d
PW
93322012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
9333
9334 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
9335 and continue the loop. Add QUIT statement.
9336
e009ee71
TT
93372012-02-03 Tom Tromey <tromey@redhat.com>
9338
9339 PR gdb/13596:
9340 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
9341 bfd_lookup_symbol_from_symtab.
9342 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
9343 gdb_bfd_lookup_symbol_from_symtab.
9344
f7e44f65
JB
93452012-02-03 Joel Brobecker <brobecker@adacore.com>
9346
9347 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
9348 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
9349 symbol. Add assertion that sym2 is never NULL.
9350
2c02bd72
DE
93512012-02-02 Doug Evans <dje@google.com>
9352
9353 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
9354 "name" parameter to const char ** from char **. All callers updated.
9355 (find_pc_partial_function): Ditto.
9356 (cache_pc_function_name): Change type to const char * from char *.
9357 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
9358 (find_pc_partial_function): Update.
9359 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
9360 type of "name" parameter to const char * from char *.
9361 All uses updated.
9362 * arch-utils.c (generic_in_solib_return_trampoline): Change
9363 type of "name" parameter to const char * from char *.
9364 * arch-utils.h (generic_in_solib_return_trampoline): Update.
9365 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
9366 type of "name" parameter to const char * from char *.
9367 * gdbarch.sh (in_solib_return_trampoline): Ditto.
9368 * gdbarch.c: Regenerate.
9369 * gdbarch.h: Regenerate.
9370 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
9371 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
9372 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
9373 type of "name" parameter to const char * from char *.
9374 * skip.c (skip_function_pc): Ditto.
9375 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
9376 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
9377 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
9378 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
9379 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
9380 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
9381 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
9382 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
9383 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
9384
e886a173
PA
93852012-02-02 Pedro Alves <palves@redhat.com>
9386
9387 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
9388 the current inferior has no execution. Make sure the current
9389 remote process matches gdb's current inferior.
9390
c709a7c2
TT
93912012-02-02 Tom Tromey <tromey@redhat.com>
9392
9393 PR gdb/13405:
9394 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
9395 read-only memory.
9396
f149aabd
TT
93972012-02-02 Tom Tromey <tromey@redhat.com>
9398
9399 PR gdb/9307:
9400 * symtab.c (lookup_language_this): Set block_found.
9401
03bef283
TT
94022012-02-01 Tom Tromey <tromey@redhat.com>
9403
9404 PR gdb/13431:
9405 * jit.c (struct jit_inferior_data): Rewrite.
9406 (struct jit_objfile_data): New.
9407 (get_jit_objfile_data): New function.
9408 (add_objfile_entry): Update.
9409 (jit_read_descriptor): Return int. Replace descriptor_addr
9410 argument with inf_data. Update. Don't call error.
9411 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
9412 descriptor here.
9413 (jit_inferior_init): Don't look up descriptor. Don't call error.
9414 (jit_reset_inferior_data_and_breakpoints)
9415 (jit_inferior_created_observer): Remove.
9416 (jit_inferior_exit_hook): Update.
9417 (jit_executable_changed_observer): Remove.
9418 (jit_event_handler): Update.
9419 (free_objfile_data): Reset inferior data if needed.
9420 (_initialize_jit): Update.
9421
f0bbc364
TT
94222012-02-01 Tom Tromey <tromey@redhat.com>
9423
9424 * jit.c (bfd_open_from_target_memory): Move higher in file.
9425
47c1316c
TG
94262012-02-01 Tristan Gingold <gingold@adacore.com>
9427
9428 * libunwind-frame.c (libunwind_load): Display message if dlopen
9429 failed.
9430
8e704927
GB
94312012-02-01 Gary Benson <gbenson@redhat.com>
9432
09c7a31f 9433 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
9434 (iterate_over_symbols): Use the above.
9435 * symtab.c (iterate_over_symbols): Likewise.
9436 * language.h (language_defn->la_iterate_over_symbols): Likewise.
9437 * ada-lang.c (ada_iterate_over_symbols): Likewise.
9438 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
9439 (iterate_name_matcher): Document return values.
9440 (collect_one_symbol): Likewise.
9441 (collect_function_symbols): Likewise.
9442 (collect_symbols): Likewise.
9443
d9680e73
TT
94442012-02-01 Tom Tromey <tromey@redhat.com>
9445
9446 * ada-lang.c (resolve_subexp): Update.
9447 (ada_lookup_symbol_list): Add 'full_search' argument.
9448 (ada_iterate_over_symbols): Pass 0 as full_search argument to
9449 ada_lookup_symbol_list.
9450 (ada_lookup_encoded_symbol): Update.
9451 (get_var_value): Update.
9452 * ada-exp.y (block_lookup): Update.
9453 (write_var_or_type): Update.
9454 (write_name_assoc): Update.
9455 * ada-lang.h (ada_lookup_symbol_list): Update.
9456
72e1143f
TT
94572012-01-31 Tom Tromey <tromey@redhat.com>
9458
9459 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
9460 comment.
9461
ab2d2ad3
DE
94622012-01-31 Doug Evans <dje@google.com>
9463
9464 * symtab.h: Remove outdated comment.
e9111bf7 9465 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 9466
bc884eba
JB
94672012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
9468
9469 Fix build error in Darwin port.
9470 * i386-darwin-nat.c: Include i386-nat.h.
9471
8fc3fc34
TT
94722012-01-30 Tom Tromey <tromey@redhat.com>
9473
9474 PR breakpoints/13568:
9475 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
9476 argument. Check for recursive includes.
9477 (dwarf_decode_macros): Create an include hash.
9478
5d853008
ME
94792012-01-30 Michael Eager <eager@eagercon.com>
9480
9481 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
9482 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 9483 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
9484 (powerpc_linux_in_plt_stub): New function.
9485 (powerpc_linux_in_dynsym_resolve_code): New function.
9486 (ppc_skip_trampoline_code): New function.
9487 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
9488 Use glibc_skip_solib_resolver.
9489
40478521
JK
94902012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9491
9492 Code cleanup: Make 1440 bytes of data segment read-only.
9493 * arch-utils.c (endian_enum): Make it const char *const [].
9494 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
9495 Likewise.
9496 * breakpoint.c (always_inserted_enums): Likewise.
9497 * cli/cli-cmds.c (script_ext_enums): Likewise.
9498 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
9499 enumlist parameter const char *const *.
9500 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
9501 const char *const *.
9502 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
9503 parameter const char *const *.
9504 * cris-tdep.c (cris_modes): Make it const char *const [].
9505 * filesystem.c (target_file_system_kinds): Likewise.
9506 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
9507 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
9508 (can_use_displaced_stepping_enum, scheduler_enums)
9509 (exec_direction_names): Likewise.
9510 * language.c (_initialize_language): Make the type_or_range_names and
9511 case_sensitive_names variables const char *const [].
9512 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
9513 * python/python.c (python_excp_enums): Likewise.
9514 * remote.c (interrupt_sequence_modes): Likewise.
9515 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
9516 * serial.c (logbase_enums): Likewise.
9517 * sh-tdep.c (sh_cc_enum): Likewise.
9518 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
9519 Likewise.
9520 * symtab.c (multiple_symbols_modes): Likewise.
9521 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
9522 Likewise.
9523 * utils.c (internal_problem_modes): Likewise.
9524
b3b8b934
JK
95252012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
9526
9527 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
9528 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
9529 result.
9530
8c85a4e2
DE
95312012-01-27 Doug Evans <dje@google.com>
9532
9533 * configure.ac (with_python): Fix absolute path handling for win32.
9534 * configure: Regenerate.
9535
78d8b4d7
DE
95362012-01-26 Doug Evans <dje@google.com>
9537
eca864fe
DE
9538 * symtab.c: Whitespace cleanup, no code changes.
9539
7e082072
DE
9540 * symtab.c (lookup_symbol_in_language): Improve comment.
9541 (lookup_symbol_aux): Fix comment.
9542
7dc25483
DE
9543 * psymtab.c (add_psymbol_to_list): Result is now "void".
9544 * psympriv.h (add_psymbol_to_list): Update.
9545
78d8b4d7
DE
9546 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
9547
4c63965b
JK
95482012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
9549
9550 Do not open script filenames twice.
9551 * cli/cli-cmds.c (source_script_from_stream): Pass to
9552 source_python_script also STREAM.
9553 * python/py-auto-load.c (source_section_scripts): Pass to
9554 source_python_script_for_objfile also STREAM.
9555 (auto_load_objfile_script): Pass to source_python_script_for_objfile
9556 also INPUT.
9557 * python/python-internal.h (source_python_script_for_objfile): New
9558 parameter file, rename parameter file to filename.
9559 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
9560 instead if !_WIN32. Update the function comment.
9561 (source_python_script, source_python_script_for_objfile)
9562 (source_python_script): New parameter file, rename parameter file to
9563 filename. Pass FILENAME to python_run_simple_file.
9564 * python/python.h (source_python_script): New parameter file, rename
9565 parameter file to filename.
9566
88f38a04
PA
95672012-01-26 Pedro Alves <palves@redhat.com>
9568
9569 * corelow.c (core_has_fake_pid): Delete.
9570 (core_close): Delete references to `core_has_fake_pid'.
9571 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
9572 (core_open): Delete references to `core_has_fake_pid'.
9573 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
9574 the removed global.
9575
e078317b
JB
95762012-01-26 Joel Brobecker <brobecker@adacore.com>
9577
9578 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
9579 Remove language parameter from name_matcher. Adjust the comment.
9580 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
9581 Remove language parameter.
9582 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
9583 * linespec.c (iterate_name_matcher): Likewise.
9584 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
9585 name_matcher. Adjust call accordingly.
9586 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9587 (maintenance_check_symtabs): Adjust type of parameter "fun".
9588 * psymtab.h (maintenance_check_symtabs): Likewise.
9589
74ccd7f5
JB
95902012-01-26 Joel Brobecker <brobecker@adacore.com>
9591
9592 * language.h (symbol_name_match_p_ftype): New typedef.
9593 (struct language_defn): Replace field la_symbol_name_compare
9594 by la_get_symbol_name_match_p.
9595 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9596 (ada_language_defn): Use it.
9597 * linespec.c (struct symbol_matcher_data): New type.
9598 (iterate_name_matcher): Rewrite.
9599 (iterate_over_all_matching_symtabs): Pass a pointer to
9600 a symbol_matcher_data struct to expand_symtabs_matching
9601 instead of just the lookup name.
9602 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9603 opencl-lang.c, p-lang.c, language.c: Delete field
9604 la_symbol_name_compare, and replace by NULL for new field
9605 la_get_symbol_name_match_p.
9606 * symfile.h (struct quick_symbol_functions): Update comment.
9607
5d268276
TT
96082012-01-25 Tom Tromey <tromey@redhat.com>
9609
9610 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9611 dereferencing.
9612
edcc5120
TT
96132012-01-24 Tom Tromey <tromey@redhat.com>
9614
9615 PR symtab/12406:
9616 * solib.c (update_solib_list): Update the program space's
9617 added_solibs and deleted_solibs fields.
9618 * progspace.h (struct program_space) <added_solibs,
9619 deleted_solibs>: New fields.
9620 (clear_program_space_solib_cache): Declare.
9621 * progspace.c (release_program_space): Call
9622 clear_program_space_solib_cache.
9623 (clear_program_space_solib_cache): New function.
9624 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9625 bpstat_stop_status. Use handle_solib_event.
9626 * breakpoint.c: Include gdb_regex.h.
9627 (print_solib_event): New function.
9628 (bpstat_print): Use print_solib_event.
9629 (bpstat_stop_status): Add special case for bp_shlib_event.
9630 (handle_solib_event): New function.
9631 (bpstat_what): Use handle_solib_event.
9632 (struct solib_catchpoint): New.
9633 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9634 (breakpoint_hit_catch_solib, check_status_catch_solib)
9635 (print_it_catch_solib, print_one_catch_solib)
9636 (print_mention_catch_solib, print_recreate_catch_solib): New
9637 functions.
9638 (catch_solib_breakpoint_ops): New global.
9639 (catch_load_or_unload, catch_load_command_1)
9640 (catch_unload_command_1): New functions.
9641 (internal_bkpt_check_status): Add special case for
9642 bp_shlib_event.
9643 (internal_bkpt_print_it): Use print_solib_event.
9644 (initialize_breakpoint_ops): Initialize
9645 catch_solib_breakpoint_ops.
9646 (_initialize_breakpoint): Register "catch load" and "catch
9647 unload".
9648 * breakpoint.h (handle_solib_event): Declare.
9649 * NEWS: Add entry for "catch load" and "catch unload".
9650
fa864999
TT
96512012-01-24 Tom Tromey <tromey@redhat.com>
9652
9653 * ada-lang.c: Include gdb_vecs.h.
9654 * charset.c: Include gdb_vecs.h.
9655 * tracepoint.h: Include gdb_vecs.h.
9656 * gdb_vecs.h: New file.
9657
f90263c1
TT
96582012-01-24 Pedro Alves <pedro@codesourcery.com>
9659
9660 * breakpoint.c (breakpoint_hit_catch_fork)
9661 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9662 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9663 * infrun.c (inferior_has_forked, inferior_has_vforked)
9664 (inferior_has_execd, inferior_has_called_syscall): Delete.
9665 (handle_syscall_event): Get syscall_number from the execution
9666 control state's wait status.
9667 (wait_for_inferior): Don't clear syscall_number.
9668
09ac7c10
TT
96692012-01-24 Pedro Alves <palves@redhat.com>
9670
9671 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9672 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9673 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9674 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9675 `ws' parameter.
9676 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9677 false for events other than TARGET_SIGNAL_TRAP.
9678 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9679 Add `ws' parameter.
9680 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9681 events other than TARGET_SIGNAL_TRAP.
9682 (tracepoint_breakpoint_hit): Add `ws' parameter.
9683 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9684 parameter.
9685 (bpstat_stop_status): Same.
9686 (pc_at_non_inline_function): Same.
9687 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9688 to pass the current event's waitstatus to bpstat_stop_status
9689 and pc_at_non_inline_function.
9690
86eb7e95
JK
96912012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9692
9693 Code cleanup.
9694 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9695 Update the function comment for it.
9696 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9697 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9698 for STREAM.
9699
a9b3a50f
PA
97002012-01-24 Pedro Alves <palves@redhat.com>
9701
9702 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9703 outside `bs->stop' block.
9704 (bpstat_what): Rework bp_shlib_event handling.
9705 (internal_bkpt_check_status): If the breakpoint is a
9706 bp_shlib_event, then set bs->stop and bs->print if
9707 stop_on_solib_events is set.
9708
53fe1783
GB
97092012-01-24 Gary Benson <gbenson@redhat.com>
9710
9711 Delete #if 0'd out code.
9712 * stack.c (print_frame_label_vars): Remove.
9713 (catch_info): Likewise.
9714 (_initialize_stack): Remove "info catch" command.
9715 * NEWS: Mention the above.
9716
49c62f2e
PA
97172012-01-24 Pedro Alves <palves@redhat.com>
9718
9719 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9720 it.
9721 (remote_notice_new_inferior): If the remote end doesn't support
9722 the multiprocess extensions, then the PID is fake.
9723 (add_current_inferior_and_thread): New.
9724 (remote_start_remote): Use it.
9725 (extended_remote_attach_1): Adjust.
9726 (extended_remote_create_inferior_1): Use
9727 add_current_inferior_and_thread.
9728
d0d8b0c6
JK
97292012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9730
9731 Fix watchpoints to be specific for each inferior.
9732 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9733 current_program_space.
9734 * i386-nat.c (i386_inferior_data_cleanup): New.
9735 (i386_inferior_data_get): Replace variable inf_data_local by an
9736 inferior_data call.
9737 (i386_use_watchpoints): Initialize i386_inferior_data.
9738 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9739 specific iterate_over_lwps.
9740
4403d8e9
JK
97412012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9742
9743 Fix watchpoints across inferior fork.
9744 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9745 comment for linux_nat_iterate_watchpoint_lwps.
9746 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9747 linux_nat_iterate_watchpoint_lwps.
9748 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9749 * i386-linux-nat.c (update_debug_registers_callback): Update the
9750 comment for linux_nat_iterate_watchpoint_lwps.
9751 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9752 linux_nat_iterate_watchpoint_lwps.
9753 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9754 * i386-nat.c: Include inferior.h.
9755 (dr_mirror): Remove.
9756 (i386_inferior_data, struct i386_inferior_data)
9757 (i386_inferior_data_get): New.
9758 (i386_debug_reg_state): Use i386_inferior_data_get.
9759 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9760 (i386_insert_watchpoint, i386_remove_watchpoint)
9761 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9762 (i386_remove_hw_breakpoint): New variable state, use
9763 i386_debug_reg_state instead of DR_MIRROR.
9764 * linux-nat.c (delete_lwp): New declaration.
9765 (num_lwps): Move here from downwards.
9766 (delete_lwp_cleanup): New.
9767 (linux_child_follow_fork): Create new child_lp, call
9768 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9769 PTRACE_DETACH.
9770 (num_lwps): Move upwards.
9771 (linux_nat_iterate_watchpoint_lwps): New.
9772 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9773 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9774
2992c9a7 97752012-01-24 Joel Brobecker <brobecker@adacore.com>
9776
9777 GDB 7.4 released.
9778
e360902b
PA
97792012-01-23 Pedro Alves <palves@redhat.com>
9780
9781 * top.c (caution): Rename to ...
9782 (confirm): ... this.
9783 (show_caution): Rename to ...
9784 (show_confirm): ... this.
9785 (quit_cover): Adjust.
9786 (init_main): Adjust.
9787 * top.h (caution): Rename to ...
9788 (confirm): ... this.
9789 * utils.c (internal_vproblem, defaulted_query): Adjust.
9790
050a2e1d
PA
97912012-01-23 Pedro Alves <palves@redhat.com>
9792
9793 * top.c (caution): Update comment.
9794 (execute_command): Don't consider the current value of `caution'.
9795
77a35dd8
JK
97962012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9797
9798 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9799
a71b5a38
UW
98002012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9801
9802 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9803 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9804 * target.c (target_fileio_pwrite): Remove buffer address from
9805 debug output.
9806 (target_fileio_pread): Likewise.
9807
d99bd577
UW
98082012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9809
9810 * NEWS: Document remote "info proc" and "generate-core-file".
9811
35c2fab7
UW
98122012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9813
9814 * gdbarch.sh (find_memory_regions): New callback.
9815 * gdbarch.c, gdbarch.h: Regenerate.
9816
9817 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9818 callback before falling back to target method.
9819
9820 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9821 (linux_target_install_ops): No longer install it.
9822
9823 * linux-tdep.c (linux_find_memory_regions): New function.
9824 (linux_init_abi): Install it.
9825
6432734d
UW
98262012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9827
9828 * gdbarch.sh (make_corefile_notes): New architecture callback.
9829 * gdbarch.c: Regenerate.
9830 * gdbarch.h: Likewise.
9831
9832 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9833 before target_make_corefile_notes. If NULL is returned, the
9834 target does not support core file generation.
9835
9836 * linux-nat.c: Include "linux-tdep.h".
9837 (find_signalled_thread, find_stop_signal): Remove.
9838 (linux_nat_do_thread_registers): Likewise.
9839 (struct linux_nat_corefile_thread_data): Likewise.
9840 (linux_nat_corefile_thread_callback): Likewise.
9841 (iterate_over_spus): Likewise.
9842 (struct linux_spu_corefile_data): Likewise.
9843 (linux_spu_corefile_callback): Likewise.
9844 (linux_spu_make_corefile_notes): Likewise.
9845 (linux_nat_collect_thread_registers): New function.
9846 (linux_nat_make_corefile_notes): Replace contents by call to
9847 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9848 as native-only callback.
9849
9850 * linux-tdep.h: Include "bfd.h".
9851 (struct regcache): Add forward declaration.
9852 (linux_collect_thread_registers_ftype): New typedef.
9853 (linux_make_corefile_notes): Add prototype.
9854 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9855 "regset.h", and "elf-bfd.h".
9856 (find_signalled_thread, find_stop_signal): New functions.
9857 (linux_spu_make_corefile_notes): Likewise.
9858 (linux_collect_thread_registers): Likewise.
9859 (struct linux_corefile_thread_data): New data structure.
9860 (linux_corefile_thread_callback): New funcion.
9861 (linux_make_corefile_notes): Likewise.
9862 (linux_make_corefile_notes_1): Likewise.
9863 (linux_init_abi): Install it.
9864
3030c96e
UW
98652012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9866
9867 * gdbarch.sh (info_proc): New callback.
9868 * gdbarch.c, gdbarch.h: Regenerate.
9869
9870 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9871 before falling back to the target info_proc callback.
9872
9873 * linux-nat.c: Do not include "cli/cli-utils.h".
9874 (linux_nat_info_proc): Remove.
9875 (linux_target_install_ops): No longer install it.
9876
9877 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9878 (read_mapping): New function.
9879 (linux_info_proc): Likewise.
9880 (linux_init_abi): Install it.
9881
145b16a9
UW
98822012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9883
9884 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9885 * infcmd.c: (info_proc_cmd_1): New function.
9886 (info_proc_cmd): New function, moved here from equivalent routine
9887 orignally in linux-nat.c.
9888 (info_proc_cmd_mappings): Likewise.
9889 (info_proc_cmd_stat): Likewise.
9890 (info_proc_cmd_status): Likewise.
9891 (info_proc_cmd_cwd): Likewise.
9892 (info_proc_cmd_cmdline): Likewise.
9893 (info_proc_cmd_exe): Likewise.
9894 (info_proc_cmd_all): Likewise.
9895 (_initialize_infcmd): Install "info proc" command and subcommands.
9896
9897 * target.h (struct target_ops): Add to_info_proc.
9898 (target_info_proc): Add prototype.
9899 * target.c (target_info_proc): New function.
9900
9901 * procfs.c (procfs_info_proc): Add prototype.
9902 (info_proc_cmd): Rename into ...
9903 (procfs_info_proc): ... this. Update argument types as appropriate
9904 for a to_info_proc implementation. Handle "what" argument.
9905 (procfs_target): Install procfs_info_proc.
9906 (_initialize_procfs): No longer install "info proc" command.
9907
9908 * linux-nat.c: (enum info_proc_what): Remove.
9909 (linux_nat_info_proc_cmd_1): Rename into ...
9910 (linux_nat_info_proc): ... this. Update argument types as appropriate
9911 for a to_info_proc implementation.
9912 (linux_nat_info_proc_cmd): Remove.
9913 (linux_nat_info_proc_cmd_mappings): Likewise.
9914 (linux_nat_info_proc_cmd_stat): Likewise.
9915 (linux_nat_info_proc_cmd_status): Likewise.
9916 (linux_nat_info_proc_cmd_cwd): Likewise.
9917 (linux_nat_info_proc_cmd_cmdline): Likewise.
9918 (linux_nat_info_proc_cmd_exe): Likewise.
9919 (linux_nat_info_proc_cmd_all): Likewise.
9920 (linux_target_install_ops): Install linux_nat_info_proc.
9921 (_initialize_linux_nat): No longer install "info proc" command
9922 and subcommands.
9923
b9e7b9c3
UW
99242012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9925
9926 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9927 * config.in, configure: Regenerate.
9928
9929 * target.h (struct target_ops): Add to_fileio_readlink.
9930 (target_fileio_readlink): Add prototype.
9931 * target.c (target_fileio_readlink): New function.
9932
9933 * inf-child.c: Conditionally include <sys/param.h>.
9934 (inf_child_fileio_readlink): New function.
9935 (inf_child_target): Install it.
9936
9937 * remote.c (PACKET_vFile_readlink): New enum value.
9938 (remote_hostio_readlink): New function.
9939 (init_remote_ops): Install it.
9940 (_initialize_remote): Handle vFile:readlink packet type.
9941
7313baad
UW
99422012-01-20 Pedro Alves <palves@redhat.com>
9943 Ulrich Weigand <ulrich.weigand@linaro.org>
9944
9945 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9946 * config.in, configure: Regenerate.
9947
9948 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9949 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9950 (target_fileio_open): Add prototype.
9951 (target_fileio_pwrite): Likewise.
9952 (target_fileio_pread): Likewise.
9953 (target_fileio_close): Likewise.
9954 (target_fileio_unlink): Likewise.
9955 (target_fileio_read_alloc): Likewise.
9956 (target_fileio_read_stralloc): Likewise.
9957
9958 * target.c: Include "gdb/fileio.h".
9959 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9960 (default_fileio_target): New function.
9961 (target_fileio_open): Likewise.
9962 (target_fileio_pwrite): Likewise.
9963 (target_fileio_pread): Likewise.
9964 (target_fileio_close): Likewise.
9965 (target_fileio_unlink): Likewise.
9966 (target_fileio_close_cleanup): Likewise.
9967 (target_fileio_read_alloc_1): Likewise.
9968 (target_fileio_read_alloc): Likewise.
9969 (target_fileio_read_stralloc): Likewise.
9970
9971 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9972 <fcntl.h>, and <unistd.h>.
9973 (inf_child_fileio_open_flags_to_host): New function.
9974 (inf_child_errno_to_fileio_error): Likewise.
9975 (inf_child_fileio_open): Likewise.
9976 (inf_child_fileio_pwrite): Likewise.
9977 (inf_child_fileio_pread): Likewise.
9978 (inf_child_fileio_close): Likewise.
9979 (inf_child_fileio_unlink): Likewise.
9980 (inf_child_target): Install to_fileio routines.
9981
9982 * remote.c (init_remote_ops): Install to_fileio routines.
9983
901f9912
UW
99842012-01-20 Pedro Alves <palves@redhat.com>
9985 Ulrich Weigand <ulrich.weigand@linaro.org>
9986
9987 * remote.c (remote_multi_process_p): Only check for multi-process
9988 protocol feature, do not check for extended protocol.
9989 (remote_supports_multi_process): Check for extended protocol here.
9990 (set_general_process): Likewise.
9991 (extended_remote_kill): Likewise.
9992 (remote_pid_to_str): Likewise.
9993 (remote_query_supported): Always query multiprocess mode.
9994
e714e1bf
UW
99952012-01-20 Pedro Alves <palves@redhat.com>
9996 Ulrich Weigand <ulrich.weigand@linaro.org>
9997
9998 * inferior.h (struct inferior): Add fake_pid_p.
9999 * inferior.c (exit_inferior_1): Clear fake_pid_p.
10000 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
10001 magic_null_ptid since the remote side doesn't provide a real PID.
10002
50897289
TT
100032012-01-19 Tom Tromey <tromey@redhat.com>
10004
10005 * NEWS: Combine the two Python sections.
10006
1afc2033
JK
100072012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
10008
10009 * target.h (target_close): Update comment on the target's unpush state.
10010
305436e0
PA
100112012-01-19 Pedro Alves <palves@redhat.com>
10012
10013 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
10014 linux_nat_async directly instead of going through the target
10015 vector.
10016 * target.c (unpush_target): Close target after unpushing it, not
10017 before.
10018
49323895
GB
100192012-01-19 Gary Benson <gbenson@redhat.com>
10020
10021 * mdebugread.c (sort_blocks): Replace integer constants with ones
10022 derived from FIRST_LOCAL_BLOCK.
10023
1db33378
PP
100242012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
10025 Jan Kratochvil <jan.kratochvil@redhat.com>
10026
10027 PR gdb/9538
10028 * symfile.c (find_separate_debug_file): New function.
10029 (terminate_after_last_dir_separator): Likewise.
10030 (find_separate_debug_file_by_debuglink): Also try realpath.
10031 * configure.ac (AC_CHECK_FUNCS): Add lstat.
10032 * configure: Regenerate.
10033 * config.in: Regenerate.
10034
f83d8a90
DE
100352012-01-18 Doug Evans <dje@google.com>
10036
10037 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
10038 (main.o): Remove rule.
10039 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
10040 (--with-sysroot): Rewrite.
10041 * configure: Regenerate.
10042 * config.in: Regenerate.
10043
2dbca4d6
SDJ
100442012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
10045
10046 * parse.c (initialize_expout): New function.
10047 (reallocate_expout): Likewise.
10048 (parse_exp_in_context): Use `initialize_expout' and
10049 `reallocate_expout' when appropriate.
10050
0695b514
PA
100512012-01-18 Pedro Alves <palves@redhat.com>
10052
10053 * record.c (struct record_breakpoint, record_breakpoint_p)
10054 (record_breakpoints): New.
10055 (record_insert_breakpoint, record_remove_breakpoint): Manage
10056 record breakpoints list. Only remove breakpoints from the
10057 inferior if they had been inserted there in the first place.
10058
136e1c30
DE
100592012-01-17 Doug Evans <dje@google.com>
10060
10061 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
10062 if we know we don't have a file name to look for.
10063
c0bf857d
PA
100642012-01-17 Pedro Alves <palves@redhat.com>
10065
10066 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
10067 the frame's stop reason is UNWIND_UNAVAILABLE.
10068
b486de60
JK
100692012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
10070
10071 Fix compilation error.
10072 * m2-exp.y (yyerror): Use ANSI C prototype.
10073
d04550a6
SDJ
100742012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10075
10076 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
10077 (growbuf_by_size): Likewise.
10078 (yyerror): Likewise.
10079 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
10080 (modblock): Remove variable (was #if 0'ed).
10081 (parse_number): Convert prototype from K&R to ANSI C.
10082 (yyerror): Likewise.
10083 * objc-exp.y (parse_number): Likewise.
10084 (yyerror): Likewise.
10085 (yylex): Remove #if 0'ed code.
10086 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
10087 (yyerror): Likewise.
10088
4aac40c8
TT
100892012-01-16 Tom Tromey <tromey@redhat.com>
10090
10091 * NEWS: Add item.
10092 * symtab.h (compare_filenames_for_search): Declare.
10093 * symtab.c (compare_filenames_for_search): New function.
10094 (iterate_over_some_symtabs): Use it.
10095 * symfile.h (struct quick_symbol_functions)
10096 <map_symtabs_matching_filename>: Change spec.
10097 * psymtab.c (partial_map_symtabs_matching_filename): Use
10098 compare_filenames_for_search. Update for new spec.
10099 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
10100 compare_filenames_for_search. Update for new spec.
10101 * breakpoint.c (clear_command): Use compare_filenames_for_search.
10102
cafec441
TT
101032012-01-16 Tom Tromey <tromey@redhat.com>
10104
10105 PR python/13281:
10106 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
10107 (struct main_type) <flag_flag_enum>: New field.
10108 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
10109 * NEWS: Add entries.
10110 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
10111 enums.
10112 * python/lib/gdb/printing.py (_EnumInstance): New class.
10113 (FlagEnumerationPrinter): Likewise.
10114
983af33b
SDJ
101152012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
10116
10117 * breakpoint.c (create_sals_from_address_default): New function.
10118 (create_breakpoints_sal_default): Likewise.
10119 (decode_linespec_default): Likewise.
10120 (is_marker_spec): Removed.
10121 (strace_marker_p): New function.
10122 (init_breakpoint_sal): Using `strace_marker_p' instead of
10123 `is_marker_spec'.
10124 (create_breakpoint): Call method `create_sals_from_address' from
10125 breakpoint_ops, replacing code that created SALs conditionally
10126 on the type of the breakpoint. Call method `create_breakpoints_sal',
10127 replacing code that created breakpoints conditionally on the type
10128 wanted.
10129 (base_breakpoint_create_sals_from_address): New function.
10130 (base_breakpoint_create_breakpoints_sal): Likewise.
10131 (base_breakpoint_decode_linespec): Likewise.
10132 (base_breakpoint_ops): Add methods
10133 `base_breakpoint_create_sals_from_address',
10134 `base_breakpoint_create_breakpoints_sal' and
10135 `base_breakpoint_decode_linespec'.
10136 (bkpt_create_sals_from_address): New function.
10137 (bkpt_create_breakpoints_sal): Likewise.
10138 (bkpt_decode_linespec): Likewise.
10139 (tracepoint_create_sals_from_address): Likewise.
10140 (tracepoint_create_breakpoints_sal): Likewise.
10141 (tracepoint_decode_linespec): Likewise.
10142 (strace_marker_create_sals_from_address): Likewise.
10143 (strace_marker_create_breakpoints_sal): Likewise.
10144 (strace_marker_decode_linespec): Likewise.
10145 (strace_marker_breakpoint_ops): New variable.
10146 (addr_string_to_sals): Remove `marker_spec'. Call method
10147 `decode_linespec' from breakpoint_ops, replacing code that decoded
10148 an address string into a SAL. Use `strace_marker_p' instead of
10149 `marker_spec'.
10150 (strace_command): Decide whether we are dealing with a static
10151 tracepoint with marker or not. Use the appropriate breakpoint_ops.
10152 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
10153 * breakpoint.h (linespec_result, linespec_sals): New forward
10154 declarations.
10155 (breakpoint_ops) <create_sals_from_address>,
10156 <create_breakpoints_sal>, <decode_linespec>: New methods.
10157
4795f398
DE
101582012-01-14 Doug Evans <dje@google.com>
10159
10160 * NEWS: Update text for "maint set python print-stack".
10161 It is deprecated in gdb 7.4 and deleted in 7.5.
10162
ee5106fe
EZ
101632012-01-13 Eli Zaretskii <eliz@gnu.org>
10164
10165 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
10166 including curses.h.
10167
b161e06f
JK
101682012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10169
10170 * configure: Regenerate.
10171 * config.in: Regenerate.
10172
85254831
KS
101732012-01-12 Keith Seitz <keiths@redhat.com>
10174
10175 PR mi/10586
10176 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
10177 (ANONYMOUS_UNION_NAME): Define.
10178 (is_path_expr_parent): New function.
10179 (get_path_expr_parent): New function.
10180 (is_anonymous_child): New function.
10181 (create_child_with_value): If the child is anonymous and without
10182 a name, assign an object name to it.
10183 (c_describe_child): Use get_path_expr_parent to determine
10184 the parent expression.
10185 If there field represents an anonymous struct or union and
10186 has no name, set an appropriate display name and expression.
10187 (cplus_describe_child): Likewise.
10188
620fa63a
PA
101892012-01-12 Pedro Alves <palves@redhat.com>
10190
10191 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
10192 available when %ebp is found to be zero (outermost).
10193
2efa2c79
AT
101942012-01-11 Andreas Tobler <andreast@fgznet.ch>
10195
10196 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
10197 an internal gdb_static_assert.
10198 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
10199
88e7d25d
TT
102002012-01-11 Tom Tromey <tromey@redhat.com>
10201
10202 PR gdb/9598:
10203 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
10204 catch" and "catch throw".
10205
72384ba3
PH
102062012-01-11 Paul Hilfinger <hilfingr@adacore.com>
10207
10208 * blockframe.c (block_innermost_frame): Start search from selected
10209 frame, if present, or otherwise the current frame.
10210
10211 * c-exp.y (variable): Update innermost_block for
10212 'block COLONCOLON NAME' clause.
10213 * m2-exp.y (variable): Ditto.
10214 * objc-exp.y (variable): Ditto.
10215
065a711f
TT
102162012-01-10 Tom Tromey <tromey@redhat.com>
10217
10218 PR python/13199:
10219 * python/python.c (finish_python_initialization): Set sys.argv.
10220
f3f5162e
DE
102212012-01-10 Doug Evans <dje@google.com>
10222
10223 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
10224 "want_line_info". All callers updated.
10225 (dwarf_decode_lines_1): New function.
10226 (handle_DW_AT_stmt_list): Add function comment.
10227 New arg "want_line_info". All callers updated.
10228 (read_file_scope,read_type_unit_scope): Move comment from
10229 handle_DW_AT_stmt_list to here.
10230
9934703b
JK
102312012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10232
10233 Fix regression after libiberty/ update for GCC PR 6057 and others.
10234 * c-exp.y (operator) <OPERATOR DELETE>
10235 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10236 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
10237 (make_builtin_type, make_name): New variable i, add gdb_assert.
10238 (operator) <OPERATOR NEW>: Update ARGS to 3.
10239 (operator) <OPERATOR DELETE>: Add trailing space.
10240 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
10241 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
10242 * cp-support.c (cp_canonicalize_string): Check NULL from
10243 cp_comp_to_string, call warning and return.
10244
06b9f45f
JK
102452012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10246
10247 Fix duplicate .o files after omitting libbfd.a.
10248 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
10249 (SFILES): Add corelow.c.
10250 (COMMON_OBS): Add corelow.o.
10251 (ALLDEPFILES): Remove corelow.c.
10252 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
10253 * config/alpha/alpha-osf3.mh: Likewise.
10254 * config/alpha/fbsd.mh: Likewise.
10255 * config/arm/nbsdaout.mh: Likewise.
10256 * config/arm/nbsdelf.mh: Likewise.
10257 * config/i386/i386gnu.mh: Likewise.
10258 * config/ia64/hpux.mh: Likewise.
10259 * config/ia64/linux.mh: Likewise.
10260 * config/m32r/linux.mh: Likewise.
10261 * config/m68k/linux.mh: Likewise.
10262 * config/mips/irix5.mh: Likewise.
10263 * config/mips/irix6.mh: Likewise.
10264 * config/pa/hpux.mh: Likewise.
10265 * config/pa/linux.mh: Likewise.
10266 * config/powerpc/aix.mh: Likewise.
10267 * config/sparc/linux.mh: Likewise.
10268 * config/sparc/linux64.mh: Likewise.
10269 * config/sparc/sol2.mh: Likewise.
10270 * config/vax/vax.mh: Likewise.
10271 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
10272 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
10273 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
10274 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
10275 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
10276 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
10277 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
10278 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
10279 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
10280 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
10281 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
10282 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
10283 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10284 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
10285 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
10286 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10287 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
10288 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
10289 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
10290 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
10291 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
10292 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
10293 corelow.o from gdb_target_obs.
10294 * corefile.c (core_target): Update the comment on NULL value.
10295 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
10296 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
10297 MATCHES. Drop YUMMY set on NULL.
10298 (core_close): Do not call exit_inferior_silent on zero PID. Do not
10299 reclaim CORE_DATA if it is already NULL.
10300
34365054
DE
103012012-01-09 Doug Evans <dje@google.com>
10302
10303 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
10304 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
10305
696166a3
KS
103062012-01-09 Keith Seitz <keiths@redhat.com>
10307
10308 * breakpoint.c (wrapper.h): Don't include.
10309
8e7b59a5
KS
103102012-01-09 Keith Seitz <keiths@redhat.com>
10311
10312 * Makefile.in (SFILES): Remove wrapper.c.
10313 (HFILES_NO_SRCDIR): Remove wrapper.h.
10314 (COMMON_OBS): Remove wrapper.o.
10315 * cli/cli-interp.c: Don't inlude wrapper.h.
10316 * corelow.c: Likewise.
10317 (core_open): Replace gdb_target_find_new_threads with
10318 TRY_CATCH around target_find_new_threads.
10319 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
10320 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
10321 * varobj.c (varobj_create): Likewise for parse_exp_1 and
10322 evaluate_expression.
10323 (varobj_set_value): Likewise for evaluate_expression and
10324 value_assign.
10325 (install_new_variable): Likewise for value_fetch_lazy.
10326 (adjust_value_for_child_access): Likewise for value_ind.
10327 (c_describe_child): Likewise for value_subscript and
10328 value_ind.
10329 (c_value_of_root): Likewise for evaluate_expression.
10330 * wrapper.c: Remove.
10331 * wrapper.h: Remove.
10332
1a4eeb98
DE
103332012-01-09 Doug Evans <dje@google.com>
10334
9ff913ba
DE
10335 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
10336 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
10337 "abfd" args with "section". All callers updated.
10338 Error checking code moved ...
10339 (error_check_comp_unit_head): ... here. New function.
10340 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
10341 Delete arg "abfd". New arg "type_offset". All callers updated.
10342 (create_debug_types_hash_table): Simplify by using
10343 read_and_check_type_unit_head.
10344
1a4eeb98
DE
10345 * parser-defs.h (namecopy): Delete.
10346 * parse.c (namecopy, namecopy_size): Move into copy_name.
10347
2e6af8c0
JK
103482012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10349
10350 Partially fix duplicate .o files after omitting libbfd.a.
10351 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
10352 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10353 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
10354 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10355 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
10356 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
10357 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
10358
9f2f828a
PA
103592012-01-09 Pedro Alves <palves@redhat.com>
10360
10361 * MAINTAINERS: Update my email address.
10362
4d72c0bc
DE
103632012-01-08 Doug Evans <dje@google.com>
10364
d467dd73
DE
10365 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
10366 n_type_units. Rename type_comp_units to all_type_units.
10367 All uses updated.
10368 (add_signatured_type_cu_to_table): Renamed from
10369 add_signatured_type_cu_to_list. All callers updated.
10370
4d72c0bc
DE
10371 * gdbtypes.h (struct cplus_struct_type): Delete member
10372 nfn_fields_total. All uses removed.
10373
21b2bd31
DE
103742012-01-06 Doug Evans <dje@google.com>
10375
10376 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
10377 to top of file.
10378 (dwarf2_find_comp_unit): Delete.
10379 (process_psymtab_comp_unit): Make result "void".
10380 Delete args buffer, info_ptr, buffer_size, and replace with
10381 "section". All callers updated.
10382 (dwarf2_build_psymtabs_hard): Simplify.
10383
bfd189b1
SDJ
103842012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
10385 Thiago Jung Bauermann <bauerman@br.ibm.com>
10386
10387 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
10388 before `struct gdb_exception'.
10389 * breakpoint.c (update_global_location_list_nothrow)
10390 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
10391 * cp-abi.c (value_rtti_type): Likewise.
10392 * cp-support.c (cp_validate_operator): Likewise.
10393 * infrun.c (insert_exception_resume_breakpoint)
10394 (check_exception_resume, keep_going): Likewise.
10395 * mi-interp.c (mi_breakpoint_created)
10396 (mi_breakpoint_modified): Likewise.
10397 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
10398 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
10399 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
10400
6b07635f
DE
104012012-01-05 Doug Evans <dje@google.com>
10402
0b30b85c
DE
10403 * dwarf2read.c (statement_prologue): Delete, unused.
10404
98714339
DE
10405 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
10406 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
10407
6b07635f
DE
10408 * dwarf2read.c (comp_unit_header): Delete, unused.
10409
761f4555
UW
104102012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
10411
10412 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
10413 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
10414
2ca0b532
PA
104152012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
10416
10417 * infrun.c (normal_stop): Don't skip calling the normal_stop
10418 observers if the thread was doing a multi-step, but stopped for
10419 some reason other than stepping.
10420
50aeff07
PA
104212012-01-05 Pedro Alves <alves.ped@gmail.com>
10422
10423 * cli/cli-decode.h: Add comments.
10424 (CMD_LIST_AMBIGUOUS): Moved to command.h
10425 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
10426 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
10427 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
10428 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
10429 (add_com, add_com_alias, add_info, add_info_alias)
10430 (complete_on_cmdlist, complete_on_enum, help_list): Remove
10431 declarations.
10432 * command.h: Add and adjust comments.
10433 (CMD_LIST_AMBIGUOUS): Moved here.
10434 (help_cmd, help_cmd_list): Delete declarations.
10435
5953832c
DE
104362012-01-04 Doug Evans <dje@google.com>
10437
e5fe5e75
DE
10438 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
10439 All callers updated.
10440 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
10441 Replace all arguments with "per_cu". All callers updated.
10442
28dee7f5
DE
10443 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
10444
23745b47
DE
10445 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
10446 New arg "per_cu". All callers updated.
10447
5953832c
DE
10448 Delete #if 0'd out code.
10449 * language.c (binop_result_type): Delete.
10450 (simple_type, ordered_type, same_type, integral_type): Delete.
10451 (numeric_type, character_type, string_type, boolean_type): Delete.
10452 (float_type, structured_type): Delete.
10453 * language.h: Update.
10454
0f5b7562
TT
104552012-01-04 Tom Tromey <tromey@redhat.com>
10456
10457 * python/py-value.c (valpy_binop): Initialize 'res_val'.
10458
78218f56
JB
104592012-01-04 Joel Brobecker <brobecker@adacore.com>
10460
10461 * corefile.c (close_exec_file): Delete.
10462 (reopen_exec_file): Remove commented out code that seems related
10463 to close_exec_file, which is being deleted here.
10464 * inferior.h (close_exec_file): Delete.
10465 * fork-child.c (fork_inferior): Remove call to fork_inferior.
10466
0fcd72ba
JB
104672012-01-04 Joel Brobecker <brobecker@adacore.com>
10468
10469 * ada-lang.c: #include "cli/cli-utils.h".
10470 (get_selections): Use skip_spaces.
10471 (ada_get_next_arg): Use skip_spaces and skip_to_space.
10472 (catch_ada_exception_command_split): Use skip_spaces.
10473 (ada_decode_assert_location): Likewise.
10474
1dabb4c4
JB
104752012-01-04 Joel Brobecker <brobecker@adacore.com>
10476
10477 * linespec.c (decode_line_internal): Check for C++ or Java
10478 compound constructs only if the current language is C, C++
10479 or Java.
10480
5931a2fa
JK
104812012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10482
10483 Revert:
10484 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10485 Joel Brobecker <brobecker@adacore.com>
10486 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10487 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10488 3 times.
10489 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10490 fall through into AT_ENTRY_POINT.
10491 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10492 DUMMY_ADDR with it.
10493 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10494 PPC_INSN_SIZE skip to 3 times.
10495
1a2da5ee
JB
104962012-01-04 Joel Brobecker <brobecker@adacore.com>
10497
10498 * linespec.c (add_minsym): Preserve function descriptors.
10499
8645ff69
UW
105002012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
10501
10502 * breakpoint.c (all_locations_are_pending): Consider locations
10503 in program spaces executing during startup pending as well.
10504
0b302171
JB
105052012-01-04 Joel Brobecker <brobecker@adacore.com>
10506
10507 Copyright year update in most files of the GDB Project.
10508
8ba098ad
JB
105092012-01-04 Joel Brobecker <brobecker@adacore.com>
10510
10511 * copyright.sh: Delete.
10512 * copyright.py: Rewrite.
10513
09c01c30
JB
105142012-01-04 Joel Brobecker <brobecker@adacore.com>
10515
10516 * gnulib/extra/update-copyright: New file, imported from gnulib.
10517
3c36c0af
JB
105182012-01-04 Joel Brobecker <brobecker@adacore.com>
10519
10520 * README (Copyright and License Notices): New section.
10521
888fe1e1
TT
105222012-01-03 Tom Tromey <tromey@redhat.com>
10523
10524 PR python/12533:
10525 * python/py-value.c (valpy_dereference, valpy_get_address
10526 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
10527 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
10528 (valpy_absolute, valpy_richcompare): Free intermediate values.
10529
6e681866
JB
105302011-01-03 Joel Brobecker <brobecker@adacore.com>
10531
10532 * ada-lang.c: Reformat the copyright notice.
10533
0cd09acb
JK
105342012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10535
10536 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
10537 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
10538 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
10539 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
10540 Revert this part of:
10541 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10542 Build gdb directly from *.o files not using libgdb.a.
10543 * Makefile.in (COMMON_OBS): Remove solib-target.o.
10544
12c3e59c
JB
105452012-01-02 Joel Brobecker <brobecker@adacore.com>
10546
10547 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
10548 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
10549 Reformat the copyright header.
10550
11bf1490
JK
105512012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 Revert this part of:
10554 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10555 Remove the gdbtui binary.
10556 * gdb.c (main): Remove args.interpreter_p initialization.
10557 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10558 * main.h (struct captured_main_args): Remove interpreter_p.
10559
1fef196f
JB
105602012-01-02 Joel Brobecker <brobecker@adacore.com>
10561
10562 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
10563
67827812
JB
105642012-01-02 Joel Brobecker <brobecker@adacore.com>
10565
10566 * top.c (print_gdb_version): Update copyright year.
10567
a4d0b831
YQ
105682012-01-02 Yao Qi <yao@codesourcery.com>
10569
10570 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
10571
b5914469
JK
105722012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10573 Joel Brobecker <brobecker@adacore.com>
10574
10575 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
10576 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
10577 3 times.
10578 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
10579 fall through into AT_ENTRY_POINT.
10580 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
10581 DUMMY_ADDR with it.
10582 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
10583 PPC_INSN_SIZE skip to 3 times.
10584
8da828f7
JK
105852012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10586
10587 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10588 the return value.
10589 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10590
8574e74b
JK
105912012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10592
10593 Build gdb directly from *.o files not using libgdb.a.
10594 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10595 (COMMON_OBS): Remove solib-target.o.
10596 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10597 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10598 (LIBGDB_OBS, libgdb.a): Move it above.
10599 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10600 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10601 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10602 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10603 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10604 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10605 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10606 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10607 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10608 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10609 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10610 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10611 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10612 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10613 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10614 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10615 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10616 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10617 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10618 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10619 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10620 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10621 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10622 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10623 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10624 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10625 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10626
217bff3e
JK
106272012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10628
10629 Remove the gdbtui binary.
10630 * .gitignore (/gdbtui): Remove.
10631 * Makefile.in (TUI): Remove.
10632 (SUBDIR_TUI_OBS): Remove tui-main.o.
10633 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10634 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10635 (tui-main.o): Remove.
10636 (all_object_files): Remove tui-main.o.
10637 * NEWS: New note for the gdbtui removal.
10638 * configure: Rebuilt.
10639 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10640 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10641 CONFIG_UNINSTALL respectively.
10642 * gdb.c (main): Remove args.interpreter_p initialization.
10643 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10644 * main.h (struct captured_main_args): Remove interpreter_p.
10645 * tui/tui-main.c: Remove.
10646
9cdd5dbd
DE
106472012-01-01 Doug Evans <dje@google.com>
10648
bb5ed363
DE
10649 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10650 (dwarf2_physname, read_import_statement): Ditto.
10651 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10652 (process_structure_scope read_subroutine_type): Ditto.
10653 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10654 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10655 (dwarf2_fetch_die_location_block): Ditto.
10656 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10657
a0f42c21
DE
10658 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10659 All callers updated.
10660 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10661 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10662 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10663
2dc860c0
DE
10664 * dwarf2read.c (load_cu): Move assert to more useful location.
10665
68dc6402
DE
10666 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10667 All callers updated.
10668
9cdd5dbd
DE
10669 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10670 (dwarf2_elf_names): Minor reformat.
10671 (dwarf2_per_cu_data): Tweak comment.
10672 (dwarf2_read_section): Fix comment.
10673 (create_all_comp_units): Fix comment.
10674 (load_full_comp_unit): Fix comment.
10675 (process_full_comp_unit): Fix comment.
10676 (read_signatured_type): Fix comment.
10677
0c10e53e 10678For older changes see ChangeLog-2011.
c906108c
SS
10679\f
10680Local Variables:
10681mode: change-log
10682left-margin: 8
10683fill-column: 74
10684version-control: never
57da7796 10685coding: utf-8
c906108c 10686End:
This page took 1.96344 seconds and 4 git commands to generate.