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