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