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