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