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