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