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