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