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