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