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