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