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