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