Fix sparc-solaris build failure (sparc-sol2-nat.c)
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-27 Joel Brobecker <brobecker@adacore.com>
2
3 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
4 call to sparc_supply_fpregset.
5 (fill_fpregset): Fix first parameter in call to
6 sparc_collect_fpregset.
7
8 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
9 Kazu Hirata <kazu@codesourcery.com>
10 Yao Qi <yao@codesourcery.com>
11
12 * objfiles.c (init_entry_point_info): Call
13 gdbarch_convert_from_func_ptr_addr and
14 gdbarch_addr_bits_remove here ...
15 (entry_point_address_query): ... instead of here.
16 * solib-svr4.c (exec_entry_point): Call
17 gdbarch_addr_bits_remove.
18 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
19 the entry address.
20
21 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
22 Yao Qi <yao@codesourcery.com>
23
24 * eval.c (evaluate_subexp_standard): Add handling of
25 TYPE_CODE_MEMBERPTR when calling functions. Correct the
26 result of ptype for calling a TYPE_CODE_METHODPTR.
27
28 2012-11-27 Yao Qi <yao@codesourcery.com>
29
30 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
31 warning.
32 Add i18n markup.
33
34 2012-11-26 Alexander Larsson <alexl@redhat.com>
35 Jan Kratochvil <jan.kratochvil@redhat.com>
36 Tom Tromey <tromey@redhat.com>
37
38 * NEWS: Mention mini debuginfo feature.
39 * minidebug.c: New file.
40 * configure.ac: Check for lzma.
41 * configure, config.in: Rebuild.
42 * Makefile.in (LIBLZMA): New variable.
43 (CLIBS): Include LIBLZMA.
44 (SFILES): Mention minidebug.c.
45 (COMMON_OBS): Mention minidebug.o.
46 * symfile.c (read_symbols): New function.
47 (syms_from_objfile, reread_symbols): Call it.
48 * symfile.h (find_separate_debug_file_in_section): Declare.
49
50 2012-11-26 Keith Seitz <keiths@redhat.com>
51
52 * exec.c (exec_file_attach): Move cleanup after verifying that
53 memory has in fact been allocated.
54
55 2012-11-26 Tom Tromey <tromey@redhat.com>
56
57 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
58 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
59 SYMBOL_SYMTAB.
60 * skip.c (skip_info): Use SYMBOL_SYMTAB.
61
62 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
63 Pedro Alves <palves@redhat.com>
64
65 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
66 size parameter passed to readlink by one byte.
67 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
68 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
69 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
70 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
71 size by one byte.
72
73 2012-11-26 Yao Qi <yao@codesourcery.com>
74
75 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
76 extraneous parentheses.
77
78 2012-11-26 Yao Qi <yao@codesourcery.com>
79
80 * remote.c (remote_start_remote): Typo fix.
81
82 2012-11-23 David S. Miller <davem@davemloft.net>
83
84 * sparc-tdep.h (struct sparc_fpregset): New data structure.
85 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
86 sparc32_sol2_fpregset): Declare new globals.
87 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
88 'fpregset' argument.
89 * sparc64-tdep.h (sparc64_supply_fpregset,
90 sparc64_collect_fpregset): Likewise.
91 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
92 globals.
93 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
94 (sparc_fpregset): Declare new global.
95 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
96 'fpregset' argument.
97 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
98 into handler.
99 (fill_fpregset): Likewise.
100 (_initialize_sparc_linux_nat): Set sparc_fpregset to
101 sparc32_bsd_fpregset.
102 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
103 sparc32_bsd_fpregset down into handler.
104 (sparc32_linux_collect_core_fpregset): Likewise.
105 * sparc-nat.c (sparc_fpregset): Define.
106 (sparc_supply_fpregset): Add 'fpregset' argument.
107 (sparc_collect_fpregset): Likewise.
108 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
109 into fpregset handler.
110 (sparc_store_inferior_registers): Likewise.
111 (_initialize_sparc_nat): Set sparc_fpregset to
112 sparc32_sunos4_fpregset if NULL.
113 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
114 down into handler.
115 (fill_fpregset): Likewise.
116 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
117 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
118 use it to compute offsets.
119 (sparc32_collect_fpregset): Likewise.
120 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
121 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
122 down into handler.
123 (fill_fpregset): Likewise.
124 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
125 Likewise.
126 (sparc64_linux_collect_core_fpregset): Likewise.
127 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
128 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
129 use it to compute offsets.
130 (sparc64_collect_fpregset): Likewise.
131 (sparc64_bsd_fpregset): Define.
132 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
133 sparc64_bsd_fpregset down into handler.
134 (sparc64fbsd_collect_fpregset): Likewise.
135 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
136 and pass sparc{32,64}_bsd_fpregset down into handler.
137 (sparc64nbsd_collect_fpregset): Likewise.
138 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
139 sparc64_bsd_fpregset down into handler.
140 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
141 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
142 to sparc32_bsd_fpregset.
143 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
144 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
145 (sparc32nbsd_supply_fpregset): Likewise.
146
147 2012-11-21 Tom Tromey <tromey@redhat.com>
148
149 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
150 field.
151 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
152 Remove.
153 * c-typeprint.c (c_type_print_base): Update.
154
155 2012-11-21 Yao Qi <yao@codesourcery.com>
156
157 PR tdep/7438
158 * gdbarch.sh (smash_text_address): Remove.
159 * gdbarch.c, gdbarch.h: Regenerate.
160 * arm-tdep.c (arm_smash_text_address): Remove.
161 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
162 * hppa-tdep.c (hppa_smash_text_address): Remove.
163 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
164 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
165 Caller update.
166 * coffread.c (coff_symtab_read): Caller update.
167 * dbxread.c (process_one_symbol): Likewise.
168 * elfread.c (record_minimal_symbol): Likewise.
169 * somread.c (som_symtab_read): Likewise.
170
171 2012-11-20 Pierre Muller <muller@sourceware.org>
172
173 ARI fixes: sprintf rule.
174 Replace sprintf function calls for char arrays by
175 calls to xsnprintf calls.
176 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
177 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
178 (arm_neon_quad_read, arm_pseudo_read): Ditto.
179 (arm_neon_quad_write, arm_pseudo_write): Ditto.
180 * breakpoint.c (condition_completer): Ditto.
181 (create_tracepoint_from_upload): Ditto.
182 * dwarf2read.c (file_full_name): Ditto.
183 * gcore.c (gcore_command): Ditto.
184 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
185 * go32-nat.c (go32_sysinfo): Ditto.
186 * interps.c (interp_set): Ditto.
187 * m32c-tdep.c (make_types): Ditto.
188 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
189 * remote-m32r-sdi.c (m32r_open): Ditto.
190 * sol-thread.c (td_err_string): Ditto.
191 (td_state_string, solaris_pid_to_str): Ditto.
192 * symtab.c (gdb_mangle_name): Ditto.
193 * cli/cli-script.c (execute_control_command): Ditto.
194 (define_command, document_command): Ditto.
195 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
196 * tui/tui-stack.c (tui_make_status_line): Ditto.
197 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
198
199 2012-11-20 Mike Frysinger <vapier@gentoo.org>
200
201 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
202 it when looking at ptr->func.
203 * command.h (complete_on_cmdlist): Add a fourth arg.
204 * completer.c (complete_line_internal): Add local ignore_help_classes,
205 and set it to 1 when reason is not handle_help. Pass this down to
206 lookup_cmd_1 and complete_on_cmdlist.
207
208 2012-11-20 Tom Tromey <tromey@redhat.com>
209
210 * completer.c (count_struct_fields): Remove.
211 (expression_completer): Don't call count_struct_fields.
212
213 2012-11-20 Pedro Alves <palves@redhat.com>
214
215 * annotate.c (breakpoints_changed): Rename to ...
216 (annotate_breakpoints_changed): ... this.
217 (annotate_stopped, breakpoint_changed): Adjust caller.
218 * annotate.h (breakpoints_changed): Rename to ...
219 (annotate_breakpoints_changed): ... this.
220 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
221 (do_map_commands_command, init_raw_breakpoint, clear_command)
222 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
223
224 2012-11-20 David S. Miller <davem@davemloft.net>
225
226 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
227 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
228 sysconf.
229 (get_cores_used_by_process): Update comment.
230
231 2012-11-20 Yao Qi <yao@codesourcery.com>
232
233 * objfiles.c (init_entry_point_info): Remove trailing spaces.
234
235 2012-11-20 Yao Qi <yao@codesourcery.com>
236
237 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
238 to deprecated_context_hook.
239
240 2012-11-19 Yao Qi <yao@codesourcery.com>
241
242 * infrun.c (infwait_state): Add static.
243
244 2012-11-16 Keith Seitz <keiths@redhat.com>
245
246 PR c++/13615
247 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
248 parameter and pass it to lookup_symbol_file.
249 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
250 to search base classes.
251 (cp_lookup_symbol_namespace): Likewise.
252 (lookup_namespace_scope): Likewise.
253 (lookup_symbol_file): Add SEARCH parameter.
254 If SEARCH is non-zero and no symbol is found, lookup the class
255 and call cp_lookup_nested_symbol.
256 (find_symbol_in_baseclass): New function.
257 (cp_lookup_nested_symbol): Do not let
258 cp_lookup_symbol_in_namespace search through base classes.
259 Do that later when there is no global symbol match.
260
261 2012-11-16 Doug Evans <dje@google.com>
262
263 * main.c (gdb_datadir_provided): New static global.
264 (get_init_files): If --data-directory is provided,
265 and SYSTEM_GDBINIT lives in data-directory, look for it there.
266 * NEWS: Mention it.
267
268 2012-11-15 Pierre Muller <muller@sourceware.org>
269
270 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
271 * gdb_stat.h: Delete. Moved to common directory.
272 * common/gdb_stat.h: New file.
273 * gdb_wait.h: Delete. Moved to common directory.
274 * common/gdb_wait.h: New file.
275 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
276 location.
277 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
278 location.
279 (stat.h rule): Adapt to new gdb_stat.h location.
280 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
281 <sys/stat.h> header.
282 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
283 <sys/wait.h> header.
284
285 2012-11-15 Pierre Muller <muller@sourceware.org>
286
287 * configure.ac (AC_HEADER_STAT): Remove.
288 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
289 and corresponding code.
290 * configure: Regenerate.
291 * config.in: Regenerate.
292
293 2012-11-15 Pierre Muller <muller@sourceware.org>
294
295 ARI xasprintf rule fixes.
296 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
297 instead of xasprintf.
298 (open_and_init_dwp_file): Ditto.
299
300 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
301
302 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
303 target types.
304
305 2012-11-14 Tom Tromey <tromey@redhat.com>
306
307 * configure, config.in: Rebuild.
308 * configure.ac: Don't check for ctype.h, time.h.
309 * expprint.c: Don't use HAVE_CTYPE_H.
310
311 2012-11-13 Tom Tromey <tromey@redhat.com>
312
313 * gdbarch.h, gdbarch.c: Rebuild.
314 * gdbarch.sh (set_target_gdbarch): Rename from
315 deprecated_target_gdbarch_select_hack.
316 * arch-utils.c (gdbarch_update_p): Update.
317 (set_gdbarch_from_file): Update.
318
319 2012-11-14 Pierre Muller <muller@sourceware.org>
320
321 * MAINTAINERS (Responsible Maintainers/misc): Add myself
322 as responsible of contrib/ari directory.
323
324 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
325 Yao Qi <yao@codesourcery.com>
326
327 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
328 bit of EXC_RETURN.
329 (arm_m_exception_cache, arm_m_exception_this_id)
330 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
331 (arm_m_exception_unwind): New.
332 (arm_gdbarch_init): Register arm_m_exception_unwind.
333
334 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
335
336 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
337 parameter COUNT, for pattern filling of memory regions.
338 * NEWS: Mention it.
339
340 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
341
342 * disasm.h (DISASSEMBLY_FILENAME): New macro.
343 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
344 to print_source_lines ().
345 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
346 flag.
347 * source.c (print_source_lines_base): Prefix source line with
348 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
349
350 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
351
352 * symtab.h (print_source_lines_flags): New enum.
353 * source.c (print_source_lines_base): Change noerror to flags.
354 (print_source_lines): Change noerror to flags.
355
356 2012-11-13 Pierre Muller <muller@sourceware.org>
357
358 ARI fixes: Avoid sprintf function use rule.
359 * charset.c (convert_between_encodings): Use xsnprintf.
360 * cli-out.c (cli_field_int): Likewise.
361 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
362 * expprint.c (op_name_standard): Likewise.
363 * frv-tdep.c (set_variant_num_gprs): Likewise.
364 (set_variant_num_fprs): Likewise.
365 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
366 * nto-tdep.c (nto_find_and_open_solib): Likewise.
367 (nto_init_solib_absolute_prefix): Likewise.
368 * source.c (init_source_path): Likewise.
369 (print_source_lines_base): Likewise.
370 * valprint.c (print_wchar): Likewise.
371 * mi/mi-out.c (mi_field_int): Likewise.
372 windows-nat.c (windows_pid_to_exec_file): Likewise.
373 (windows_create_inferior): Likewise.
374 (_initialize_check_for_gdb_ini): Likewise.
375
376 2012-11-12 Joel Brobecker <brobecker@adacore.com>
377
378 * frame.h (deprecated_frame_register_read): Renames
379 frame_register_read.
380 * frame.c (deprecated_frame_register_read): Renames
381 frame_register_read. Update all callers.
382 * i386-tdep.c: Update all callers of frame_register_read.
383 * infcmd.c: Likewise.
384 * jit.c: Likewise.
385 * mips-tdep.c: Likewise.
386 * mt-tdep.c: Likewise.
387 * sh64-tdep.c: Likewise.
388
389 2012-11-12 Joel Brobecker <brobecker@adacore.com>
390
391 * frame.h (frame_register_read): Remove FIXME comment.
392 * frame.c (frame_register_read): Add suggestion explaining
393 which function to use in place of this one.
394
395 2012-11-12 Tom Tromey <tromey@redhat.com>
396
397 * python/python.c (start_type_printers): Initialize 'result_obj'.
398
399 2012-11-12 Tom Tromey <tromey@redhat.com>
400
401 * NEWS: Update.
402 * data-directory/Makefile.in (PYTHON_FILES): Add
403 type_printers.py.
404 * python/lib/gdb/command/type_printers.py: New file.
405 * python/lib/gdb/command/types.py (TypePrinter): New class.
406 (_get_some_type_recognizers, get_type_recognizers,
407 apply_type_recognizers, register_type_printer): New
408 functions.
409 * python/py-objfile.c (objfile_object) <type_printers>: New
410 field.
411 (objfpy_dealloc): Decref new field.
412 (objfpy_new): Set new field.
413 (objfpy_get_type_printers, objfpy_set_type_printers): New
414 functions.
415 (objfile_to_objfile_object): Set new field.
416 (objfile_getset): Add "type_printers".
417 * python/py-progspace.c (pspace_object) <type_printers>: New
418 field.
419 (pspy_dealloc): Decref new field.
420 (pspy_new): Set new field.
421 (pspy_get_type_printers, pspy_set_type_printers): New functions.
422 (pspace_to_pspace_object): Set new field.
423 (pspace_getset): Add "type_printers".
424 * python/python.c (start_type_printers, apply_type_printers,
425 free_type_printers): New functions.
426 (_initialize_python): Set gdb.type_printers.
427 * python/python.h (start_type_printers, apply_type_printers,
428 free_type_printers): Declare.
429 * typeprint.c (type_print_raw_options, default_ptype_flags):
430 Update for new fields.
431 (do_free_global_table, create_global_typedef_table,
432 find_global_typedef): New functions.
433 (find_typedef_in_hash): Use find_global_typedef.
434 (whatis_exp): Use create_global_typedef_table. Change cleanup
435 handling.
436 * typeprint.h (struct type_print_options) <global_typedefs,
437 global_printers>: New fields.
438
439 2012-11-12 Tom Tromey <tromey@redhat.com>
440
441 * c-typeprint.c (find_typedef_for_canonicalize,
442 print_name_maybe_canonical): New functions.
443 (c_print_type): Look up type name.
444 (cp_type_print_derivation_info): Add flags argument. Use
445 print_name_maybe_canonical.
446 (cp_type_print_method_args): Add wrapping.
447 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
448 (c_type_print_template_args): New function.
449 (c_type_print_base): Change wrapping. Use
450 print_name_maybe_canonical.
451 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
452 type name lookups.
453 * gdbtypes.c (types_equal): No longer static.
454 * gdbtypes.h (types_equal): Declare.
455 * typeprint.c (type_print_raw_options, default_ptype_flags):
456 Update.
457 (struct typedef_hash_table): New.
458 (hash_typedef_field, eq_typedef_field,
459 recursively_update_typedef_hash, add_template_parameters,
460 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
461 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
462 copy_typedef_hash, find_typedef_in_hash): New functions.
463 * typeprint.h (struct type_print_options) <local_typedefs>:
464 New field.
465 (recursively_update_typedef_hash, add_template_parameters,
466 create_typedef_hash, free_typedef_hash,
467 make_cleanup_free_typedef_hash, copy_typedef_hash,
468 find_typedef_in_hash): Declare.
469
470 2012-11-12 Tom Tromey <tromey@redhat.com>
471
472 * cp-support.c (inspect_type,
473 replace_typedefs_qualified_name, replace_typedefs): Add
474 finder, data arguments. Call as needed.
475 (cp_canonicalize_string_full): New function.
476 (cp_canonicalize_string_no_typedefs): Rewrite.
477 * cp-support.h (canonicalization_ftype): New typedef.
478 (cp_canonicalize_string_full): Declare.
479
480 2012-11-12 Tom Tromey <tromey@redhat.com>
481
482 * NEWS: Update.
483 * c-typeprint.c (c_type_print_base): Handle print_method and
484 print_typedefs flags.
485 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
486 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
487 options.
488 * typeprint.c (type_print_raw_options, default_ptype_flags):
489 Update for new field.s
490 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
491 (setprinttypelist, showprinttypelist, print_methods,
492 print_typedefs): New globals.
493 (set_print_type, show_print_type, set_print_type_methods,
494 show_print_type_methods, set_print_type_typedefs,
495 show_print_type_typedefs): New functions.
496 (_initialize_typeprint): Update documentation. Add "print
497 type methods" and "print type typedefs" parameters.
498 * typeprint.h (struct type_print_options) <print_methods,
499 print_typedefs>: New fields.
500
501 2012-11-12 Tom Tromey <tromey@redhat.com>
502
503 * c-typeprint.c (cp_type_print_method_args): Add flags
504 argument. Call c_print_type, not type_print.
505 (c_type_print_base): Call c_print_type, not type_print.
506 Update.
507
508 2012-11-12 Tom Tromey <tromey@redhat.com>
509
510 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
511 to type-printing functions.
512 * ada-lang.h (ada_print_type): Add argument.
513 * ada-typeprint.c (print_array_type, print_variant_clauses,
514 print_variant_part, print_selected_record_field_types,
515 print_record_field_types, print_unchecked_union_type,
516 print_func_type, ada_print_type): Add flags argument.
517 (ada_print_typedef): Update.
518 * c-exp.y (OPERATOR conversion_type_id): Update.
519 * c-lang.h (c_print_type, c_type_print_base): Update.
520 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
521 c_type_print_modifier, c_type_print_args,
522 c_type_print_varspec_suffix, c_type_print_base): Add flags
523 argument.
524 * cp-valprint.c (cp_print_class_member): Update.
525 * dwarf2read.c (dwarf2_compute_name): Update.
526 * f-lang.h (f_print_type): Add argument.
527 * f-typeprint.c (f_print_type): Add flags argument.
528 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
529 * go-lang.h (go_print_type): Add argument.
530 * go-typeprint.c (go_print_type): Add flags argument.
531 * jv-lang.h (java_print_type): Add argument.
532 * jv-typeprint.c (java_type_print_base, java_print_type): Add
533 flags argument.
534 * language.c (unk_lang_print_type): Add flags argument.
535 * language.h (struct language_defn) <la_print_type>: Add flags
536 argument.
537 (LA_PRINT_TYPE): Likewise.
538 * m2-lang.h (m2_print_type): Add argument.
539 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
540 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
541 m2_unbounded_array, m2_record_fields): Add flags argument.
542 * p-lang.h (pascal_print_type, pascal_type_print_base,
543 pascal_type_print_varspec_prefix): Add argument.
544 * p-typeprint.c (pascal_print_type,
545 pascal_type_print_varspec_prefix, pascal_print_func_args,
546 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
547 flags argument.
548 * symmisc.c (print_symbol): Update.
549 * typeprint.c (type_print_raw_options, default_ptype_flags):
550 New globals.
551 (type_print): Update.
552 * typeprint.h (struct type_print_options): New.
553 (type_print_raw_options): Declare.
554 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
555
556 2012-11-10 Keith Seitz <keiths@redhat.com>
557
558 * breakpoint.c (clear_command): Add cleanup for
559 sals.sals if an argument is given.
560
561 * linespec.c (parse_linespec): Do cleanups after
562 parsing a convenience variable.
563
564 2012-11-10 Keith Seitz <keiths@redhat.com>
565
566 PR gdb/14288
567 * c-valprint.c (c_val_print): For character arrays
568 with "print null" option on, print ellipses if
569 the output is truncated and the next character is not \000.
570 * valprint.c (MAX_WCHARS): Define.
571 (WCHAR_BUFLEN): Likewise.
572 (WCHAR_BUFLEN_MAX): Likewise.
573 (struct converted_character): New structure.
574 (count_next_character): New function.
575 (print_converted_chars_to_obstack): New function.
576 (generic_printstr): Rewrite using count_next_character
577 and print_converted_chars_to_obstack.
578
579 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
580
581 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
582 while executing the gdb command.
583 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
584 are called from prompt_for_continue.
585 * tui/tui-io.c (tui_redisplay_readline): Likewise.
586
587 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
588
589 PR tui/9584
590
591 * tui/tui.c (tui_rl_command_key): Do not call execute_command
592 but insert the command to execute in readline's buffer.
593
594 2012-11-09 Tom Tromey <tromey@redhat.com>
595
596 * gdbarch.sh (target_gdbarch): Remove macro.
597 (get_target_gdbarch): Rename to target_gdbarch.
598 * gdbarch.c, gdbarch.h: Rebuild.
599 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
600 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
601 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
602 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
603 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
604 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
605 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
606 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
607 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
608 procfs.c, progspace.c, ravenscar-thread.c, record.c,
609 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
610 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
611 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
612 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
613 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
614 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
615 target-descriptions.c, target.c, target.h, tracepoint.c,
616 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
617 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
618 python/py-inferior.c, python/python.c: Update.
619
620 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
621
622 * source.c (print_source_lines_base): Add fullname field giving
623 full path to file in mi output.
624 * NEWS: Mention the new fullname field.
625
626 2012-11-09 Yao Qi <yao@codesourcery.com>
627
628 * NEWS: Mention the fix to the ambiguity of 'fo' command.
629
630 2012-11-09 Pedro Alves <palves@redhat.com>
631
632 PR gdb/14306
633
634 * infrun.c: Include target-descriptions.h.
635 (follow_exec): Fetch new target description.
636
637 2012-11-09 Yao Qi <yao@codesourcery.com>
638
639 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
640 0x8d (lea).
641
642 2012-11-09 Yao Qi <yao@codesourcery.com>
643
644 * breakpoint.c: Declare set_tracepoint_count.
645 (install_breakpoint): Call set_tracepoint_count if B is a
646 tracepoint.
647 (trace_command): Don't call set_tracepoint_count. Re-indent.
648 (strace_command, ftrace_command):
649 (create_tracepoint_from_upload): Likewise.
650
651 2012-11-09 Pedro Alves <palves@redhat.com>
652
653 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
654 (get_target_gdbarch) <gdbarch.h>: New function.
655 (startup_gdbarch) <gdbarch.h>: Declare.
656 <gdbarch.c> (target_gdbarch): Delete.
657 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
658 current inferior's gdbarch.
659 <gdbarch.c> (get_target_gdbarch): New function.
660 * inferior.c: Include target-descriptions.h.
661 (free_inferior): Free target description info.
662 (add_inferior_with_spaces): Set the inferior's initial
663 architecture.
664 (clone_inferior_command): Copy the original inferior's target
665 description if it was user specified.
666 (initialize_inferiors): Add comment.
667 * inferior.h (struct target_desc_info): Forward declare.
668 (struct inferior) <gdbarch>: New field.
669 * linux-nat.c: Include target-descriptions.h.
670 (linux_child_follow_fork): Copy the parent's architecture and
671 target description to the child.
672 * target-descriptions.c: Include inferior.h.
673 (struct target_desc_info): New structure, holding the equivalents
674 of ...
675 (target_desc_fetched, current_target_desc)
676 (target_description_filename): ... these removed globals.
677 (get_tdesc_info, target_desc_info_from_user_p)
678 (copy_inferior_target_desc_info, target_desc_info_free): New.
679 (target_desc_fetched, current_target_desc)
680 (target_description_filename): Reimplemented as convenience
681 macros.
682 (tdesc_filename_cmd_string): New global.
683 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
684 tdescs filename ..." commands to the per-inferior equivalent.
685 (show_tdesc_filename_cmd): Get the value to show from the
686 per-inferior description filename.
687 (_initilize_target_descriptions): Change the "set/show tdesc
688 filename" commands' variable.
689 * target-descriptions.h (struct target_desc, struct target_desc_info)
690 (struct inferior): Forward declare.
691 (target_find_description, target_clear_description)
692 (target_current_description): Adjust comments.
693 (copy_inferior_target_desc_info, target_desc_info_free)
694 (target_desc_info_from_user_p). Declare.
695
696 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
697
698 * tui/tui-hooks.c (tui_about_to_proceed): New function.
699 (tui_target_wait_hook): Remove.
700 (tui_install_hooks): Install the about_to_proceed observer.
701 (tui_remove_hooks): And remove it here.
702
703 2012-11-08 Tom Tromey <tromey@redhat.com>
704
705 * linux-tdep.c (linux_make_siginfo_note): New function.
706 (linux_make_corefile_notes): Use it.
707 * corelow.c (get_core_siginfo): New function.
708 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
709
710 2012-11-08 Tom Tromey <tromey@redhat.com>
711
712 PR gdb/14704:
713 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
714 (zlib_decompress_section): Remove.
715 (gdb_bfd_map_section): Only check for compressed section
716 in mmap case. Use bfd_get_full_section_contents.
717 * osabi.c (check_note): Add 'sectsize' argument. Read
718 section data.
719 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
720 section data. Update for check_note change.
721 * xcoffread.c (xcoff_initial_scan): Use
722 bfd_get_full_section_contents.
723 * py-auto-load.c (auto_load_section_scripts): Use
724 bfd_get_full_section_contents.
725 * contrib/cc-with-tweaks.sh: Add -Z option.
726
727 2012-11-08 Tom Tromey <tromey@redhat.com>
728
729 * python/py-bpevent.c: Include defs.h.
730 * python/py-continueevent.c: Include defs.h.
731 * python/py-event.c: Include defs.h.
732 * python/py-event.h: Don't include defs.h.
733 * python/py-events.h: Don't include defs.h.
734 * python/py-evts.c: Include defs.h.
735 * python/py-exitedevent.c: Include defs.h.
736 * python/py-newobjfileevent.c: Include defs.h.
737 * python/py-signalevent.c: Include defs.h.
738 * python/py-stopevent.c: Include defs.h.
739 * python/py-threadevent.c: Include defs.h.
740
741 2012-11-08 Pierre Muller <muller@sourceware.org>
742
743 * update-web-ari.sh (print_heading): Add number of files
744 checked.
745 (nb_files): New variable counting the number of sources
746 files found by gdb_find.sh script.
747 (debug_awk): New variable to allow extra debug output.
748 (indexes): Add more information if DEBUG_AWK is set.
749
750 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
751
752 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
753 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
754 following the change in PLT call stubs on linker.
755
756 2012-11-08 Pierre Muller <muller@sourceware.org>
757
758 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
759 as default language.
760 (AWK): Use = instead of == for sh test to avoid warning.
761 (Linux rule): Correct [:digit] into [[:digit:]].
762 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
763 (vasprintf rule): Adapt to common subdirectory moves.
764 (xasprintf rule): Idem.
765 (xvasprintf rule): Idem.
766 (var_boolean rule): Accept occurence in == or != test.
767
768 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
769
770 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
771
772 * tui/tui-hooks.c (tui_inferior_exit): New function.
773 (tui_detach_hook): Remove.
774 (tui_install_hooks): Install the inferior exit observer.
775 (tui_remove_hooks): Remove it.
776
777 2012-11-08 Yao Qi <yao@codesourcery.com>
778
779 PR gdb/14777.
780 * source.c (_initialize_source): Call add_com_alias to abbreviate
781 'forward-search' as 'fo'.
782
783 2012-11-07 Pedro Alves <palves@redhat.com>
784
785 * arm-tdep.c: Make defs.h be the first include.
786 * coff-pe-read.c: Ditto.
787 * gnu-nat.c: Ditto.
788 * go32-nat.c: Ditto.
789 * i386-nat.c: Ditto.
790 * ppcnbsd-nat.c: Ditto.
791 * ada-varobj.h: Don't include defs.h.
792 * i386-darwin-tdep.h: Ditto.
793 * i386-nat.h: Ditto.
794
795 2012-11-07 Pedro Alves <palves@redhat.com>
796
797 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
798 Committee.
799
800 2012-11-07 Pierre Muller <muller@sourceware.org>
801
802 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
803 File already uses "gdb_dirent.h" header.
804
805 2012-11-07 Yao Qi <yao@codesourcery.com>
806
807 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
808 tracepoint_count'.
809
810 2012-11-06 Tom Tromey <tromey@redhat.com>
811
812 * target.h (inferior_has_forked, inferior_has_vforked)
813 (inferior_has_execd, inferior_has_called_syscall): Remove
814 declarations.
815
816 2012-11-06 Pierre Muller <muller@sourceware.org>
817
818 * remote.c (remote_insert_hw_breakpoint): ARI fix,
819 add missing internalization markup.
820
821 2012-11-06 Pedro Alves <palves@redhat.com>
822
823 PR gdb/14810
824
825 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
826
827 2012-11-06 Pierre Muller <muller@sourceware.org>
828
829 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
830 is not executable.
831
832 2012-11-05 Joel Brobecker <brobecker@adacore.com>
833
834 * gnulib/update-gnulib.sh: New script.
835
836 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
837
838 * MAINTAINERS: Update my email address.
839
840 2012-11-05 Tom Tromey <tromey@redhat.com>
841
842 * frame.c (put_frame_register): Don't use temporary buffer.
843
844 2012-11-05 Pedro Alves <palves@redhat.com>
845
846 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
847 child. Clear 'pending_detach'.
848 * infrun.c (handle_vfork_child_exec_or_exit): Clear
849 'pending_detach' in the vfork parent.
850
851 2012-11-05 Doug Evans <dje@google.com>
852
853 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
854 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
855 * dwarf2read.c: #include "elf-bfd.h".
856 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
857 (dwop_section_names): Renamed from dwo_section names. All uses
858 updated. Add entries for .debug_cu_index, .debug_tu_index.
859 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
860 All uses updated.
861 (struct dwp_sections): New type.
862 (struct virtual_dwo_sections): New type.
863 (struct dwp_hash_table): New type.
864 (struct dwp_file): New type.
865 (init_cutu_and_read_dies): Ensure DWO info/types section has been
866 read in. Handle DWOs coming from DWP files.
867 (lookup_dwo_file_slot): New function.
868 (dwarf2_locate_dwo_sections): Move definition closer to use.
869 (create_dwo_debug_info_hash_table_reader): Renamed from
870 create_debug_info_hash_table_reader. All callers updated.
871 (create_dwo_debug_info_hash_table): Renamed from
872 create_debug_info_hash_table. All callers updated.
873 (create_dwp_hash_table): New function.
874 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
875 (lookup_dwo_in_dwp): New function.
876 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
877 is_dwp. All callers updated.
878 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
879 (open_and_init_dwo_file): Renamed from init_dwo_file.
880 All callers updated.
881 (lookup_dwo_file): Delete.
882 (dwarf2_locate_dwp_sections): New function.
883 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
884 (allocate_dwp_loaded_cutus_table): New function.
885 (open_and_init_dwp_file): New function.
886 (lookup_dwo_cutu): New function.
887 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
888
889 2012-11-03 Yao Qi <yao@codesourcery.com>
890
891 Fix PR gdb/14617.
892 * breakpoint.c (trace_pass_set_count): Call
893 observer_notify_breakpoint_modified instead of
894 observer_notify_tracepoint_modified.
895 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
896
897 2012-11-02 Tom Tromey <tromey@redhat.com>
898
899 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
900 argument to complete_on_enum.
901
902 2012-11-02 Tom Tromey <tromey@redhat.com>
903
904 * configure: Rebuild.
905 * configure.ac (build_warnings): Add -Wempty-body.
906 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
907 * remote.c (handle_notification): Use braces for empty 'else' body.
908 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
909 'else' body.
910 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
911 'else' body.
912 * solib-som.c (som_relocate_section_addresses): Use braces
913 for empty 'else' body.
914 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
915 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
916
917 2012-11-02 Pedro Alves <palves@redhat.com>
918
919 PR gdb/14766
920
921 * infrun.c (handle_inferior_event)
922 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
923 null_ptid before handling a vfork child exec or exit. Switch to
924 the event ptid afterwards.
925
926 2012-11-02 Yao Qi <yao@codesourcery.com>
927
928 * std-operator.def: Remove OP_LABELED.
929 * eval.c: Remove the declaration of 'get_label'.
930 (get_label): Remove.
931 (evaluate_struct_tuple): Remove code handling OP_LABELED.
932 Update comment.
933 Remove local variable 'variantno' and related code.
934 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
935 with 'fieldno'.
936 * expprint.c (print_subexp_standard): Likewise.
937 (dump_subexp_body_standard): Likewise.
938 * parse.c (operator_length_standard): Likewise.
939
940 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
941
942 Incorporate ARI web page generator into GDB sources.
943 * contrib/ari/create-web-ari-in-src.sh: New file.
944 * contrib/ari/gdb_ari.sh: New file.
945 * contrib/ari/gdb_find.sh: New file.
946 * contrib/ari/update-web-ari.sh: New file.
947
948 2012-10-31 Tom Tromey <tromey@redhat.com>
949
950 * gdbarch.c: Rebuild.
951 * gdbarch.sh: Remove references to gdbarch_swap.
952 * corelow.c (core_open): Remove obsolete comment.
953
954 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
955
956 PR cli/14772
957 * c-typeprint.c (c_print_type): Don't print a space for vector
958 types, this is handled within the suffix.
959 (c_type_print_varspec_suffix): Add a space to vector suffix.
960
961 2012-10-26 Pedro Alves <palves@redhat.com>
962
963 * amd64-tdep.c (amd64_relocate_instruction): Use
964 store_unsigned_integer instead of memcpy.
965 * i386-tdep.c (i386_relocate_instruction): Ditto.
966
967 2012-10-26 Pedro Alves <palves@redhat.com>
968
969 * infrun.c (handle_inferior_event): Merge handling of
970 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
971 switch case.
972
973 2012-10-26 Pedro Alves <palves@redhat.com>
974
975 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
976 Remove comment.
977
978 2012-10-26 Pedro Alves <palves@redhat.com>
979
980 * target.c (target_waitstatus_to_string): Handle
981 TARGET_WAITKIND_VFORK_DONE.
982
983 2012-10-26 Pedro Alves <palves@redhat.com>
984
985 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
986 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
987
988 2012-10-24 Tristan Gingold <gingold@adacore.com>
989
990 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
991 Add comments.
992
993 2012-10-24 Joel Brobecker <brobecker@adacore.com>
994
995 * ravenscar-thread.c (ravenscar_wait): Only update the list
996 of threads and inferior_ptid if the inferior is still alive.
997
998 2012-10-24 Joel Brobecker <brobecker@adacore.com>
999
1000 * ada-lang.c (is_known_support_routine): Use lbasename when
1001 matching the symtab's filename against
1002 known_runtime_file_name_patterns.
1003
1004 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1005
1006 * ada-lang.c (ada_same_array_size_p): New function.
1007 (ada_promote_array_of_integrals): New function.
1008 (coerce_for_assign): Add handling of arrays where the elements
1009 are integrals of a smaller size than the size of the target
1010 array element type.
1011
1012 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1013
1014 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1015 against maximum exponent value.
1016
1017 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1018
1019 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1020 "unwind-seh.c".
1021
1022 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1023
1024 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1025 strip typedef layer when computing the fixed type's field type,
1026 only when computing its size.
1027
1028 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1029
1030 PR gdb/12783
1031 * i386-tdep.c (i386_return_value): Handle complex double and long
1032 double.
1033
1034 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1035
1036 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1037 New local variable args_len.
1038 Quote the name of the executable when computing the command line.
1039
1040 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1041
1042 PR gdb/12796
1043 PR gdb/12798
1044 PR gdb/12800
1045 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1046 AMD64_FTAG_REGNUM.
1047 * amd64-tdep.c (amd64_classify): Classify complex types.
1048 (amd64_return_value): Handle the COMPLEX_X87 class.
1049
1050 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1051
1052 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1053 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1054
1055 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1056
1057 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1058 function.
1059 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1060 to amd64_windows_auto_wide_charset.
1061
1062 2012-10-23 Yao Qi <yao@codesourcery.com>
1063
1064 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1065 * event-top.h: Remove its declaration.
1066 (async_request_quit): Call mark_async_signal_handler instead of
1067 mark_async_signal_handler_wrapper.
1068 (async_do_nothing, async_disconnect): Likewise.
1069 (async_stop_sig): Likewise.
1070 * remote.c (handle_remote_sigint): Likewise.
1071 (handle_remote_sigint_twice): Likewise.
1072
1073 2012-10-23 Yao Qi <yao@codesourcery.com>
1074
1075 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1076 with 'static struct async_signal_handler *'.
1077 (sighup_token, sigquit_token, sigstp_token): Likewise.
1078
1079 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1080
1081 * gdbarch.sh (function_list): Use 'pstring' when printing
1082 a variable which could return NULL.
1083 * gdbarch.c: Regenerate.
1084
1085 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1086 Tom Tromey <tromey@redhat.com>
1087
1088 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1089 inneffective if condition by gdb assertion. Add function
1090 description comment.
1091
1092 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1093
1094 * parser-defs.h (struct exp_descriptor): Document constraint
1095 on return value for "op_name" callbacks.
1096
1097 2012-10-18 Tom Tromey <tromey@redhat.com>
1098
1099 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1100 * symtab.c (iterate_over_some_symtabs): Constify.
1101 * source.h (symtab_to_fullname): Return 'const char *'.
1102 * source.c (symtab_to_fullname): Return 'const char *'.
1103 * python/py-symtab.c (stpy_fullname): Constify.
1104 * cli/cli-cmds.c (edit_command): Constify.
1105 * breakpoint.c (print_breakpoint_location)
1106 (update_static_tracepoint): Constify.
1107
1108 2012-10-18 Tom Tromey <tromey@redhat.com>
1109
1110 * breakpoint.c (compare_breakpoints): Fix comparison.
1111
1112 2012-10-18 Tom Tromey <tromey@redhat.com>
1113
1114 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1115 gdb_wchar_t to convert_between_encodings.
1116
1117 2012-10-17 Yao Qi <yao@codesourcery.com>
1118
1119 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1120 more parameter 'inferior'.
1121 * corefile.c (write_memory_with_notification): Caller update.
1122
1123 * mi/mi-cmd-var.c: Include "mi-main.h".
1124 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1125 to 1 and restore it later.
1126 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1127 and "data-write-memory-bytes.
1128 * mi/mi-interp.c: Include objfiles.h.
1129 (mi_interpreter_init): Call observer_attach_memory_changed.
1130 (mi_memory_changed): New.
1131 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1132 New field.
1133
1134 * NEWS: Mention new MI notification "memory-changed".
1135
1136 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1137
1138 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1139
1140 2012-10-15 Doug Evans <dje@google.com>
1141
1142 New option -nh: inhibit loading of ~/.gdbinit.
1143 * NEWS: Mention -nh.
1144 * main.c (captured_main): Recognize and process -nh.
1145 (print_gdb_help): Mention -nh.
1146 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1147
1148 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1149
1150 PR backtrace/14646
1151 PR gdb/14647
1152 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1153 pc_regnum_from_eax.
1154 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1155 nor pc_regnum_from_eax.
1156 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1157 nor pc_regnum_from_eax.
1158
1159 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1160
1161 Fix entry values resolving in inlined frames.
1162 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1163 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1164 entries of FRAME.
1165
1166 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1167
1168 * configure.ac: Build with -DMS_WIN64 if building with Python
1169 enabled using GCC on amd64-windows.
1170 * configure: Regenerate.
1171
1172 2012-10-15 Tom Tromey <tromey@redhat.com>
1173
1174 PR python/14635:
1175 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1176 to Py_None.
1177
1178 2012-10-15 Tom Tromey <tromey@redhat.com>
1179
1180 PR python/14634:
1181 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1182
1183 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1184
1185 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1186 reset thread numbering back to 1.
1187
1188 2012-10-11 Doug Evans <dje@google.com>
1189
1190 PR breakpoints/14643.
1191 * linespec.c (struct ls_parser): New member keyword_ok.
1192 (linespec_lexer_lex_string): Add comment.
1193 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1194 for one.
1195 (parse_linespec): Set keyword_ok.
1196
1197 2012-10-10 Doug Evans <dje@google.com>
1198
1199 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1200 "0x" prefix on address in log message.
1201
1202 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1203 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1204 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1205 (lookup_dwo_file): Add const to dwo_name parameter.
1206 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1207
1208 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1209
1210 Fix crash during stepping on ppc32.
1211 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1212 SYM.
1213
1214 2012-10-03 Doug Evans <dje@google.com>
1215
1216 PR symtab/14601
1217 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1218
1219 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1220
1221 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1222 output and use uint32_t not long to ensure 4 byte size.
1223
1224 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1225
1226 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1227 unref'ed it.
1228
1229 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1230
1231 * target.c (simple_search_memory): Include access length in
1232 warning message.
1233
1234 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1235 Edjunior Machado <emachado@linux.vnet.ibm.com>
1236
1237 PR gdb/13989
1238 * solib.c (solib_find): Prevent GDB from loading native libraries when
1239 debugging a cross-target corefile.
1240
1241 2012-09-28 selven <pcthegreat@gmail.com>
1242
1243 Make definition match declaration.
1244
1245 * regcache.c (regcache_register_status): Change return type to
1246 enum register_status.
1247
1248 2012-09-28 Yao Qi <yao@codesourcery.com>
1249
1250 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1251 write_memory_with_notification instead of write_memory.
1252 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1253 instead of target_write_memory.
1254
1255 2012-09-28 Yao Qi <yao@codesourcery.com>
1256
1257 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1258 when the length of content is not an even number.
1259
1260 2012-09-27 Tom Tromey <tromey@redhat.com>
1261
1262 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1263 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1264
1265 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1266
1267 * sol-thread.c (sol_thread_fetch_registers)
1268 (sol_thread_store_registers): Delete commented out code.
1269
1270 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1271
1272 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1273 Move these functions to sparc-sol-thread.c.
1274 * sparc-sol-thread.c: New file.
1275 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1276 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1277 configurations.
1278 * configure: Regenerate.
1279
1280 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1281
1282 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1283 Remove commented-out code.
1284
1285 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1286
1287 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1288 Enable this code for sparc hosts only.
1289
1290 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1291
1292 * procfs.h (procfs_find_LDT_entry): Add declaration.
1293 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1294 function procfs_find_LDT_entry.
1295
1296 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1297
1298 * procfs.c (proc_get_LDT_entry): Make static.
1299
1300 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1301
1302 * procfs.c (proc_find_memory_regions): Fix declaration.
1303
1304 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1305
1306 * amd64-tdep.c (amd64_return_value): Revert previous change
1307 that used TYPE_LENGTH directly.
1308 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1309 (bfin_store_return_value): Likewise.
1310 * cris-tdep.c (cris_store_return_value): Likewise.
1311 (cris_extract_return_value): Likewise.
1312 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1313 * hppa-tdep.c (hppa64_return_value): Likewise.
1314 * lm32-tdep.c (lm32_store_return_value): Likewise.
1315 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1316 * spu-tdep.c (spu_value_from_register): Likewise.
1317 * vax-tdep.c (vax_return_value): Likewise.
1318
1319 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1320
1321 * gdbtypes.c (lookup_array_range_type): Expand parameters
1322 LOW_BOUND and HIGH_BOUND to LONGEST.
1323 (lookup_string_range_type): Likewise.
1324 * gdbtypes.h (lookup_array_range_type): Likewise.
1325 (lookup_string_range_type): Likewise.
1326 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1327 Expand HIGHBOUND to ssize_t.
1328 (value_string): Likewise.
1329 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1330 (value_string): Likewise.
1331
1332 2012-09-27 Yao Qi <yao@codesourcery.com>
1333
1334 PR breakpoints/13898
1335 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1336 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1337 per breakpoint type.
1338
1339 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1340
1341 * procfs.c: Add gdb_bfd header.
1342 * rs6000-nat.c: Likewise.
1343 * solib-pa64.c: Likewise.
1344 * spu-linux-nat.c: Likewise.
1345 * windows-nat.c: Likewise.
1346
1347 2012-09-26 Tom Tromey <tromey@redhat.com>
1348
1349 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1350
1351 2012-09-26 Tom Tromey <tromey@redhat.com>
1352
1353 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1354 (read_common_block): Handle child DIEs with
1355 DW_AT_data_member_location.
1356 (new_symbol_full): Add special case for common blocks.
1357
1358 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1359 Tom Tromey <tromey@redhat.com>
1360
1361 * dwarf2read.c (read_common_block): Rewrite.
1362 (new_symbol_full): Handle DW_TAG_common_block.
1363 * f-lang.c (head_common_list, find_common_for_function):
1364 Remove.
1365 * f-lang.h (struct common_entry, struct saved_f77_common,
1366 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1367 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1368 BLANK_COMMON_NAME_LOCAL): Remove.
1369 (struct common_block): New.
1370 * f-valprint.c (list_all_visible_commons): Remove.
1371 (info_common_command_for_block): New function.
1372 (info_common_command): Use it.
1373 * stack.c (iterate_over_block_locals): Special case for
1374 COMMON_BLOCK_DOMAIN.
1375 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1376 constant.
1377 (struct general_symbol_info) <value.common_block>: New field.
1378 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1379
1380 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1381 Tom Tromey <tromey@redhat.com>
1382
1383 * f-lang.c (allocate_saved_bf_node,
1384 allocate_saved_function_node, allocate_saved_f77_common_node,
1385 allocate_common_entry_node, tail_common_list, current_common,
1386 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1387 tmp_bf_ptr, add_common_block, add_common_entry,
1388 find_first_common_named, patch_common_entries,
1389 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1390 global_remote_debug, get_bf_for_fcn, saved_function_list,
1391 saved_function_list_end, clear_function_list, struct saved_fcn,
1392 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1393 SAVED_BF, SAVED_BF_PTR): Remove.
1394 * f-lang.h (tail_common_list, current_common,
1395 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1396 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1397 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1398 real_main_c_value): Remove.
1399 * f-valprint.c (there_is_a_visible_common_named): Remove.
1400
1401 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1402
1403 * breakpoint.c (update_global_location_list): Ignore previous
1404 duplicate status of a breakpoint when starting a new scan for
1405 duplicate breakpoints.
1406
1407 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1408 PR breakpoints/14419
1409 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1410 support LLVM compiler.
1411
1412 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1413
1414 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1415 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1416 (bfin_store_return_value): Likewise.
1417 * cris-tdep.c (cris_store_return_value): Likewise.
1418 (cris_extract_return_value): Likewise.
1419 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1420 * hppa-tdep.c (hppa64_return_value): Likewise.
1421 * lm32-tdep.c (lm32_store_return_value): Likewise.
1422 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1423 * spu-tdep.c (spu_value_from_register): Likewise.
1424 * vax-tdep.c (vax_return_value): Likewise.
1425
1426 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1427
1428 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1429 parameter LEN to ssize_t.
1430
1431 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1432
1433 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1434 variable LEN.
1435 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1436 directly.
1437 (alpha_store_return_value): Likewise.
1438 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1439 (amd64_push_arguments): Likewise.
1440 * ax-gdb.c (gen_trace_static_fields): Likewise.
1441 (gen_traced_pop): Likewise.
1442 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1443 * breakpoint.c (update_watchpoint): Likewise.
1444 * findcmd.c (parse_find_args): Use local variable for type
1445 instead of length.
1446 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1447 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1448 (h8300_store_return_value): Likewise.
1449 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1450 Use i386_darwin_arg_type_alignment directly.
1451 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1452 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1453 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1454 (m68hc11_extract_return_value): Likewise.
1455 * mep-tdep.c (mep_push_dummy_call): Likewise.
1456 * printcmd.c (float_type_from_length): Likewise.
1457 * s390-tdep.c (s390_value_from_register): Likewise.
1458 * stack.c (read_frame_arg): Likewise.
1459 * tracepoint.c (encode_actions_1): Likewise.
1460 * valops.c (value_fetch_lazy): Use local variable for type
1461 instead of length. Use TYPE_LENGTH directly.
1462 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1463
1464 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1465
1466 * symtab.c (skip_prologue_sal): Fix typo in comment.
1467
1468 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1469
1470 * linespec.c (create_sals_line_offset): Fix typo in comment.
1471
1472 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1473
1474 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1475 use plongest to print the array size.
1476
1477 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1478
1479 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1480 * p-valprint.c (pascal_type_print_base): Likewise.
1481
1482 2012-09-22 Yao Qi <yao@codesourcery.com>
1483
1484 * remote.c (remote_get_trace_status): Remove setting default
1485 values of fields of 'ts'.
1486
1487 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1488
1489 Fix internal error on canonicalization of clang types.
1490 * cp-name-parser.y (operator): New comment at make_operator call for
1491 new, delete, new[] and delete[].
1492 (exp): Use "sizeof ". Add new comment at make_operator call.
1493
1494 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1495
1496 Fix disassemble without parameters in tailcall frame.
1497 * cli/cli-cmds.c (disassemble_current_function): Use
1498 get_frame_address_in_block.
1499
1500 2012-09-21 Tom Tromey <tromey@redhat.com>
1501
1502 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1503 TYPE_CODE_UNION>: Unify, removing a goto.
1504
1505 2012-09-21 Tom Tromey <tromey@redhat.com>
1506
1507 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1508
1509 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1510
1511 * findvar.c (read_frame_register_value): Mark the result value as
1512 optimized out if any of the input registers have been optimized out.
1513
1514 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1515
1516 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1517
1518 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1519
1520 * eval.c (evaluate_subexp_standard): Eliminate single-use
1521 variable LOWER.
1522
1523 2012-09-21 Yao Qi <yao@codesourcery.com>
1524
1525 * mi/mi-interp.c: Declare mi_record_changed.
1526 (mi_interpreter_init): Call observer_attach_record_changed.
1527 (mi_record_changed): New.
1528 * record.c (record_open): Call observer_notify_record_changed.
1529 (cmd_record_stop): Call observer_notify_record_changed.
1530 * NEWS: Mention it.
1531
1532 2012-09-20 Tom Tromey <tromey@redhat.com>
1533
1534 * NEWS: Update.
1535 * python/python.c (finalize_python): New function.
1536 (_initialize_python): Make a final cleanup.
1537
1538 2012-09-19 Doug Evans <dje@google.com>
1539
1540 * buildsym.h (param_symbols): Delete, unused.
1541 (context_stack): Delete member "params", unused.
1542 * buildsym.c (push_context): Update.
1543 * dwarf2read.c (read_func_scope): Update.
1544
1545 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1546
1547 * sh-tdep.c (sh_register_convert_to_virtual)
1548 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1549 all callers. Just do a memcpy if not the little-endian case.
1550
1551 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1552 set_gdbarch_double_format and set_gdbarch_long_double_format.
1553 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1554 set_gdbarch_double_format.
1555 * sh-tdep.c (sh_gdbarch_init): Likewise.
1556
1557 * NEWS: Document the removal of SH's 'regs' command.
1558 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1559 command.
1560
1561 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1562
1563 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1564 `jump'.
1565
1566 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1567
1568 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1569 language when iterating over symbols.
1570
1571 2012-09-18 Yao Qi <yao@codesourcery.com>
1572
1573 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1574 (mi_interpreter_init): Call observer_attach_tsv_created and
1575 observer_attach_tsv_deleted.
1576 (mi_tsv_created, mi_tsv_deleted): New.
1577 * tracepoint.c (delete_trace_state_variable): Call
1578 observer_notify_tsv_deleted.
1579 (trace_variable_command): Call observer_notify_tsv_created.
1580 (delete_trace_variable_command): Call
1581 observer_notify_tsv_deleted.
1582 (create_tsv_from_upload): Call observer_notify_tsv_created.
1583 * NEWS: Mention it.
1584
1585 2012-09-18 Yao Qi <yao@codesourcery.com>
1586
1587 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1588 if traceframe changed.
1589 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1590 "trace-find".
1591 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1592 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1593 'traceframe_changed'.
1594 (mi_traceframe_changed): New.
1595 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1596 New field.
1597 * NEWS: Mention the new MI notification.
1598
1599 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1600
1601 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1602
1603 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1604
1605 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1606 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1607 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1608 Extend code also for PaX support. Convert all gdb_assert to warning
1609 calls.
1610
1611 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1612
1613 Implement auto-load user conveniences suggested by Doug Evans.
1614 * auto-load.c: Include top.h.
1615 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1616 (_initialize_auto_load): New variable scripts_directory_help. Mention
1617 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1618 scripts-directory. Document in online help one can use also files for
1619 set auto-load safe-path.
1620 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1621 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1622
1623 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1624
1625 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1626 of LEN.
1627
1628 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1629
1630 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1631 ELTLEN and use TYPE_LENGTH directly.
1632 (m2_val_print): Likewise.
1633 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1634 variable LEN and use TYPE_LENGTH directly.
1635 (m68k_svr4_store_return_value): Likewise.
1636 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1637 ARGLEN and use TYPE_LENGTH directly.
1638 (mips_o64_push_dummy_call): Likewise.
1639 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1640 variable LENGTH and use TYPE_LENGTH directly.
1641 (s390_function_arg_float): Likewise.
1642 (s390_function_arg_integer): Likewise.
1643 (s390_push_dummy_call): Likewise.
1644 (s390_return_value_convention): Likewise.
1645 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1646 TYPE_LENGTH directly.
1647
1648 2012-09-17 Yao Qi <yao@codesourcery.com>
1649
1650 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1651 Update comment to add_setshow_integer_cmd.
1652 * cli/cli-setshow.c (do_set_command): Handle case
1653 'var_zuinteger_unlimited'.
1654 (do_show_command): Likewise.
1655 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1656 for command 'remotetimeout'.
1657 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1658 to var_integer.
1659 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1660 for command 'set listsize'.
1661
1662 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1663
1664 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1665 variable LEN.
1666
1667 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1668
1669 PR 14119
1670 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1671 (frame_pop): Drop also TAILCALL_FRAME frames.
1672 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1673
1674 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1675 Pedro Alves <palves@redhat.com>
1676
1677 PR 14548
1678 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1679 function start if we are already at function start. Both for
1680 reverse-next and for reverse-step into function without line number
1681 info.
1682
1683 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1684
1685 Code cleanup - rename 'inline' depth to 'artificial' depth.
1686 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1687 frame_id_artificial_p, extend the comment.
1688 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1689 * frame.c (fprint_frame_id): Rename at a user, change debug output
1690 text to "artificial=".
1691 (skip_inlined_frames): Rename to ...
1692 (skip_artificial_frames): ... here. Extend the comment.
1693 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1694 (frame_id_inlined_p): Rename to ...
1695 (frame_id_artificial_p): ... here. Rename at a user.
1696 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1697 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1698 at a user.
1699 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1700 Extend the comment.
1701 (frame_id_inlined_p): Rename to ...
1702 (frame_id_artificial_p): ... here.
1703 * inline-frame.c (inline_frame_this_id): Rename at a user.
1704
1705 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1706
1707 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1708 vector variables using vector_size syntax rather than array
1709 syntax.
1710
1711 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1712
1713 * valarith.c (value_concat): Replace unsafe ALLOCA with
1714 XMALLOC/XFREE.
1715
1716 2012-09-14 Pedro Alves <palves@redhat.com>
1717
1718 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1719
1720 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1721
1722 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1723 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1724 data-directory as appropriate.
1725
1726 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1727
1728 * printcmd.c (ui_printf): Eliminate single-use variable
1729 PARAM_LEN.
1730
1731 2012-09-14 Yao Qi <yao@codesourcery.com>
1732 Pedro Alves <palves@redhat.com>
1733
1734 * valops.c (value_assign): Move observer_notify_target_changed
1735 below to replace reinit_frame_cache.
1736
1737 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1738
1739 Refactor Python "gdb" module into a proper Python package, by
1740 introducing a new "_gdb" module for code implemented in C, and
1741 using reload/__import__ instead of exec.
1742 * python/lib/gdb/__init__.py: Import * from _gdb.
1743 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1744 prompt_hook, sys.argv): Moved from finish_python_initialization.
1745 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1746 (packages, auto_load_packages): New list and function replacing
1747 module_dict and auto-loading code, using __file__ instead of
1748 gdb.PYTHONDIR and reload/__import__ instead of exec.
1749 (GdbSetPythonDirectory): Replacing function of the same name
1750 from finish_python_initialization, using reload/__import__ instead
1751 of exec, as well as call auto_load_packages.
1752 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1753 gdb_python_module and not gdb_module.
1754 * python/python-internal.h (gdb_python_module): Declare.
1755 * python/python.c (gdb_python_module): New global.
1756 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1757 (_initialize_python): Rename gdb module to _gdb.
1758 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1759 (finish_python_initialization): Move Python code to
1760 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1761 __main__.
1762
1763 2012-09-13 Pedro Alves <palves@redhat.com>
1764
1765 * Makefile.in (COMMON_OBS): Add registry.o.
1766 * registry.c: New file.
1767 * registry.h (struct registry_container): Declare.
1768 (registry_data_callback): New typedef.
1769 (struct registry_data, struct registry_data_registration, struct
1770 registry_data_registry): New type.
1771 (register_data_with_cleanup, registry_alloc_data)
1772 (registry_callback_adaptor, registry_clear_data)
1773 (registry_container_free_data, registry_set_data, registry_data):
1774 Declare.
1775 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1776 the new common structures and functions.
1777 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1778 callback typedefs.
1779
1780 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1781
1782 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1783 there is an error inserting hardware breakpoints and use the
1784 error message from the target.
1785
1786 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1787 Catch this exception and print the error message contained within. Do not
1788 print the default hardware error breakpoint message in this case.
1789
1790 2012-09-12 Doug Evans <dje@google.com>
1791
1792 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1793 cu == NULL.
1794
1795 2012-09-11 Doug Evans <dje@google.com>
1796
1797 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1798 .gdb_index symbol attributes if there are none.
1799
1800 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1801
1802 * symtab.h (struct minimal_symbol) [has_size]: New field.
1803 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1804 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1805 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1806 minimal symbols if the symbol's size is actually known.
1807 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1808 of msymbol's size field. Add comment.
1809 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1810 SET_MSYMBOL_SIZE to set the minimal symbol size.
1811
1812 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1813
1814 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1815 minimal_symbol struct object, rather than setting some of its
1816 fields one by one.
1817
1818 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1819
1820 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1821 passed_a_ptr flag when displaying typedef types.
1822
1823 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1824
1825 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1826 the optimized_out flag is preserved.
1827
1828 2012-09-10 Anthony Green <green@moxielogic.com>
1829
1830 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1831 prologue changes in GCC.
1832
1833 2012-09-10 Keith Seitz <keiths@redhat.com>
1834
1835 PR gdb/13483
1836 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1837 (BOOL_CONVERSION_BADNESS): ... this.
1838 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1839 (rank_one_type): Allow all boolean conversions
1840 permitted by the standard.
1841
1842 2012-09-06 Tom Tromey <tromey@redhat.com>
1843
1844 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1845 Don't decref py_objfile.
1846
1847 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1848
1849 Do not enable -lmcheck by default when Python is enabled with
1850 threading support.
1851 * configure.ac: (python_has_threads) New variable, by testing
1852 if WITH_THREAD is defined in Python.h.
1853 Move --enable-lmcheck after --with-python.
1854 Do not enable -lmcheck by default if python_has_threads=yes.
1855 Warn if --enable-lmcheck and python_has_threads=yes.
1856 * configure: Regenerate.
1857
1858 2012-08-31 Yao Qi <yao@codesourcery.com>
1859
1860 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1861 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1862 Update some commands.
1863 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1864 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1865 to 1.
1866
1867 2012-08-31 Yao Qi <yao@codesourcery.com>
1868
1869 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1870
1871 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1872
1873 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1874
1875 2012-08-29 Doug Evans <dje@google.com>
1876
1877 * main.c (print_gdb_help): Remove reference to
1878 --use-deprecated-index-sections.
1879
1880 2012-08-28 Yao Qi <yao@codesourcery.com>
1881
1882 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1883 (init_cmds): Call add_setshow_uinteger_cmd for command
1884 'max-user-call-depth'.
1885 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1886 declaration of 'max_user_call_depth'.
1887 * frame.c (backtrace_limit): Add 'unsigned'.
1888 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1889 'limit'.
1890 * remote.c (remoteaddresssize): Add 'unsigned'.
1891 (remote_address_masked): Change local var 'address_size' to
1892 'unsigned'.
1893 (_initialize_remote): Call add_setshow_uinteger_cmd for
1894 'remoteaddresssize'.
1895 * top.c (history_size): Add 'unsigned'.
1896 (show_commands): Change local variables to 'unsigned'.
1897 (set_history_size_command): Don't check history_size is negative.
1898 Adjust the condition to call unstifle_history and set history_size
1899 to UNIT_MAX.
1900
1901 2012-08-28 Pedro Alves <palves@redhat.com>
1902
1903 PR gdb/14428
1904
1905 * infcmd.c (default_print_one_register_info): New, factored out
1906 from default_print_registers_info.
1907 (default_print_registers_info): Use it. Mark value unavailable if
1908 necessary.
1909 (registers_info): Print user registers with
1910 default_print_one_register_info.
1911
1912 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1913
1914 PR tui/14486
1915 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1916 is not NULL before referencing it.
1917
1918 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1919
1920 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1921 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1922 original PC for it.
1923
1924 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1925 Jan Kratochvil <jan.kratochvil@redhat.com>
1926
1927 * auto-load.c (auto_load_objfile_script): Rename to ...
1928 (auto_load_objfile_script_1): ... here, change variable realname to
1929 parameter realname, document it, add return value, add variable retval.
1930 (auto_load_objfile_script): New function.
1931
1932 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1933
1934 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1935 followed by a whitespace.
1936
1937 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1938
1939 PR gdb/14494.
1940 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1941 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1942 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1943 here.
1944
1945 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1946
1947 * memattr.c (create_mem_region): Fix memory region overlapping
1948 checking.
1949
1950 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1951
1952 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1953 with xmalloc/cleanup.
1954 * mt-tdep.c (mt_push_dummy_call): Likewise.
1955 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1956 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1957
1958 2012-08-24 Yao Qi <yao@codesourcery.com>
1959
1960 * jv-exp.y (push_expression_name): Add "." at the end of error
1961 message.
1962
1963 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1964
1965 Document how to return from "python-interactive" to GDB.
1966 * python/python.c (_initialize_python): Update documentation.
1967
1968 2012-08-23 Pedro Alves <palves@redhat.com>
1969
1970 * infrun.c (_initialize_infrun) <handle command help text>:
1971 Mention that multiple signals are supported.
1972
1973 2012-08-23 Pedro Alves <palves@redhat.com>
1974
1975 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1976 string.
1977
1978 2012-08-23 Yao Qi <yao@codesourcery.com>
1979
1980 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1981 (tfind_1): Don't call registers_changed, set_traceframe_num,
1982 and clear_traceframe_info.
1983 Call set_current_traceframe.
1984 (set_current_traceframe): call set_traceframe_num.
1985
1986 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1987
1988 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1989 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1990
1991 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1992
1993 Enable readline in Python in a GDB-specific way and block the
1994 standard Python readline module to prevent conflicts with GDB.
1995 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1996 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1997 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1998 * python/py-gdb-readline.c: New file.
1999 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2000 prototype.
2001 * python/python.c (_initialize_python): Call
2002 gdbpy_initialize_gdb_readline.
2003
2004 2012-08-22 Keith Seitz <keiths@redhat.com>
2005
2006 * defs.h: Include build-gnulib/config.h
2007
2008 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2009
2010 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2011 and blx pc.
2012
2013 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2014
2015 Add a new "python-interactive" command that starts a standard
2016 Python interactive prompt with "pi" as alias, and add "py" as
2017 an alias to "python".
2018 * NEWS: Mention the new commands.
2019 * python/python.c (eval_python_command): New function.
2020 (python_interactive_command): For "python-interactive" with
2021 arguments, call eval_python_command. For "python-interactive"
2022 without arguments, call PyRun_InteractiveLoop.
2023 (_initialize_python): Add "python-interactive" command with
2024 "pi" as alias, and add "py" as an alias to "python".
2025
2026 2012-08-22 Tom Tromey <tromey@redhat.com>
2027
2028 * defs.h (quit_flag): Don't declare.
2029 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2030 (QUIT): Use new functions.
2031 * event-top.c (command_handler): Use clear_quit_flag.
2032 (handle_sigint): Use set_quit_flag.
2033 (async_request_quit): Use check_quit_flag. Don't check
2034 immediate_quit.
2035 * exceptions.c (throw_exception): Use clear_quit_flag.
2036 * main.c (captured_main): Use clear_quit_flag.
2037 * python/python.c (clear_quit_flag, set_quit_flag)
2038 (check_quit_flag): New functions.
2039 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2040 clear_quit_flag.
2041 * remote.c (remote_wait_as): Use check_quit_flag,
2042 clear_quit_flag.
2043 (remote_start_remote): Call QUIT.
2044 * symfile.c (load_progress): Use check_quit_flag.
2045 * top.c (command_loop): Use clear_quit_flag.
2046 (command_line_input): Call QUIT.
2047 * utils.c (quit_flag): Conditionally define.
2048 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2049 functions.
2050 (prompt_for_continue): Call QUIT. Use quit, not
2051 async_request_quit.
2052 * remote-mips.c (mips_expect_timeout): Call QUIT.
2053 * monitor.c (monitor_expect): Call QUIT.
2054
2055 2012-08-22 Tom Tromey <tromey@redhat.com>
2056
2057 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2058 (async_init_signals): Update.
2059 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2060 (SIGWINCH_HANDLER_BODY): Remove.
2061
2062 2012-08-22 Tom Tromey <tromey@redhat.com>
2063
2064 * jit.c (jit_object_close_impl): Don't malloc the objfile
2065 name.
2066 * objfiles.c (allocate_objfile): Don't malloc the objfile
2067 name.
2068 (free_objfile): Don't free the objfile name.
2069 * objfiles.h (struct objfile) <name>: Update comment.
2070 * symfile.c (reread_symbols): Fix reference counting. Don't
2071 malloc objfile name.
2072
2073 2012-08-22 Tom Tromey <tromey@redhat.com>
2074
2075 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2076 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2077 (symfile_bfd_open): Likewise.
2078 (generic_load): Likewise.
2079 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2080 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2081 gdb_bfd_open.
2082 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2083 Use gdb_bfd_open.
2084 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2085 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2086 (pmon_load_fast): Likewise.
2087 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2088 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2089 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2090 (macho_check_dsym): Likewise.
2091 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2092 (m32r_upload_command): Likewise.
2093 * gdb_bfd.h (gdb_bfd_cache): Declare.
2094 * gdb_bfd.c (struct gdb_bfd_data): New.
2095 (gdb_bfd_cache): New global.
2096 (struct gdb_bfd_cache_search): New.
2097 (hash_bfd): New function.
2098 (eq_bfd): Likewise.
2099 (gdb_bfd_open): Likewise.
2100 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2101 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2102 gdb_bfd_data.
2103 * exec.c (exec_file_attach): Use gdb_bfd_open.
2104 * dsrec.c (load_srec): Use gdb_bfd_open.
2105
2106 2012-08-22 Tom Tromey <tromey@redhat.com>
2107
2108 * dwarf2read.c (macro_start_file): Update.
2109 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2110 (free_objfile_per_bfd_storage): Destroy macro_cache.
2111 (allocate_objfile, free_objfile): Update.
2112 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2113 New field.
2114 (struct objfile) <macro_cache>: Remove.
2115 * symfile.c (reread_symbols): Update.
2116 * symmisc.c (print_symbol_bcache_statistics): Update.
2117 (print_objfile_statistics): Update.
2118
2119 2012-08-22 Tom Tromey <tromey@redhat.com>
2120
2121 * elfread.c (elf_symtab_read): Update.
2122 * objfiles.c (objfiles_bfd_data): New global.
2123 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2124 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2125 (allocate_objfile, free_objfile): Update.
2126 (_initialize_objfiles): Initialize objfiles_bfd_data.
2127 * objfiles.h (struct objfile_per_bfd_storage): New.
2128 (struct objfile) <per_bfd>: New field.
2129 <filename_cache>: Remove.
2130 (set_objfile_per_bfd): Declare.
2131 * symfile.c (reread_symbols): Update. Call
2132 set_objfile_per_bfd.
2133 (allocate_symtab): Update.
2134 * symmisc.c (print_symbol_bcache_statistics): Update.
2135 (print_objfile_statistics): Print the size of the BFD obstack.
2136
2137 2012-08-22 Tom Tromey <tromey@redhat.com>
2138
2139 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2140 * gdb_bfd.c: Use DEFINE_REGISTRY.
2141 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2142 (gdb_bfd_ref): Call bfd_alloc_data.
2143 (gdb_bfd_unref): Call bfd_free_data.
2144
2145 2012-08-22 Tom Tromey <tromey@redhat.com>
2146
2147 * registry.h (struct registry_fields): New.
2148 (REGISTRY_FIELDS): Redefine.
2149 (REGISTRY_ACCESS_FIELD): New macro.
2150 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2151 functions.
2152
2153 2012-08-22 Tom Tromey <tromey@redhat.com>
2154
2155 * auto-load.c (_initialize_auto_load): Update.
2156 * solib-svr4.c (_initialize_svr4_solib): Update
2157 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2158 * solib-darwin.c (_initialize_darwin_solib): Update.
2159 * registry.h: New file.
2160 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2161 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2162 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2163 (register_program_space_data_with_cleanup)
2164 (register_program_space_data, program_space_alloc_data)
2165 (clear_program_space_data, set_program_space_data)
2166 (program_space_data): Don't declare.
2167 * progspace.c: Use DEFINE_REGISTRY.
2168 (struct program_space_data, struct
2169 program_space_data_registration, struct
2170 program_space_data_registry, program_space_data_registry)
2171 (register_program_space_data_with_cleanup)
2172 (register_program_space_data, program_space_alloc_data)
2173 (program_space_free_data, clear_program_space_data)
2174 (set_program_space_data, program_space_data): Remove.
2175 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2176 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2177 (register_objfile_data_with_cleanup, register_objfile_data)
2178 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2179 declare.
2180 * objfiles.c: Use DEFINE_REGISTRY.
2181 (struct objfile_data, struct objfile_data_registration, struct
2182 objfile_data_registry, objfile_data_registry)
2183 (register_objfile_data_with_cleanup, register_objfile_data)
2184 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2185 (set_objfile_data, objfile_data): Remove.
2186 (_initialize_objfiles): Update.
2187 * jit.c (_initialize_jit): Update.
2188 * inflow.c (_initialize_inflow): Update.
2189 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2190 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2191 (register_inferior_data_with_cleanup, register_inferior_data)
2192 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2193 declare.
2194 * inferior.c: Use DEFINE_REGISTRY.
2195 (struct inferior_data, struct inferior_data_registration, struct
2196 inferior_data_registry, inferior_data_registry)
2197 (register_inferior_data_with_cleanup, register_inferior_data)
2198 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2199 (set_inferior_data, inferior_data): Remove.
2200 * auxv.c (_initialize_auxv): Update.
2201 * ada-lang.c (_initialize_ada_language): Update.
2202 * breakpoint.c (_initialize_breakpoint): Update.
2203 * i386-nat.c (i386_use_watchpoints): Update.
2204
2205 2012-08-22 Tom Tromey <tromey@redhat.com>
2206
2207 * exec.c (exec_close, exec_file_attach): Update.
2208 (add_to_section_table): Initialize 'key' field.
2209 (add_target_sections, remove_target_sections): Add 'key' argument.
2210 * exec.h (add_target_sections, remove_target_sections): Add
2211 'key' argument.
2212 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2213 (reload_shared_libraries_1): Update.
2214 * target.h (struct target_section) <key>: New field.
2215
2216 2012-08-22 Tom Tromey <tromey@redhat.com>
2217
2218 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2219
2220 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2221
2222 * symfile.c (allocate_symtab): Use host_address_to_string
2223 function instead of cast of pointer to long which is not
2224 compatible with x86_64-w64-mingw32 build.
2225
2226 2012-08-19 Andrew Pinski <apinski@cavium.com>
2227
2228 * mips-tdep.c (is_octeon): New function.
2229 (is_octeon_bbit_op): New function.
2230 (mips32_next_pc): Handle Octeon's bbit instructions.
2231 (mips32_instruction_has_delay_slot): Likewise.
2232
2233 2012-08-19 Andrew Pinski <apinski@cavium.com>
2234
2235 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2236 before the function.
2237
2238 2012-08-19 Andrew Pinski <apinski@cavium.com>
2239
2240 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2241
2242 2012-08-19 Keith Seitz <keiths@redhat.com>
2243
2244 PR c++/14365
2245 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2246 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2247
2248 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2249
2250 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2251 The typo broke "make TAGS".
2252
2253 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2254
2255 GDB 7.5 released.
2256
2257 2012-08-17 Keith Seitz <keiths@redhat.com>
2258
2259 PR c++/13356
2260 * gdbtypes.c (strict_type_checking): New variable.
2261 (show_strict_type_checking): New function.
2262 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2263 if strict type checking is disabled.
2264 (_initialize_gdbtypes): Add "check type" subcommand.
2265 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2266
2267 2012-08-17 Keith Seitz <keiths@redhat.com>
2268
2269 * language.h (type_mode): Remove.
2270 (type_check): Remove.
2271 (struct language_defn): Remove la_type_check.
2272 (STRICT_TYPE): Remove unused macro.
2273 (type_error): Remove.
2274 * language.c (set_type_range_case): Renamed to ...
2275 (set_range_case): ... this. Update all callers.
2276 Remove type_mode/type_check.
2277 (type_mode): Remove.
2278 (type_check): Remove.
2279 (show_type_command): Remove.
2280 (set_type_command): Remove.
2281 (language_info): Remove type checking output.
2282 (type_error): Remove unused function.
2283 (range_error): Update comment.
2284 (unknown_language_defn): Remove la_type_check.
2285 (auto_language_defn): Likewise.
2286 (local_language_defn): Likewise.
2287 (_initialize_language): Remove "check type" subcommand.
2288 * ada-lang.c (ada_language_defn): Remove la_type_check.
2289 * c-lang.c (c_language_defn): Likewise.
2290 (cplus_language_defn): Likewise.
2291 (asm_language_defn): Likewise.
2292 (minimal_language_defn): Likewise.
2293 * d-lang.c (d_language_defn): Likewise.
2294 * f-lang.c (f_language_defn): Likewise.
2295 * go-lang.c (go_language_defn): Likewise.
2296 * jv-lang.c (java_language_defn): Likewise.
2297 * m2-lang.c (m2_language_defn): Likewise.
2298 * objc-lang.c (objc_language_defn): Likewise.
2299 * opencl-lang.c (opencl_language_defn): Likewise.
2300 * p-lang.c (pascal_language_defn): Likewise.
2301
2302 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2303
2304 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2305
2306 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2307
2308 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2309 New function.
2310 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2311 using the regache. Use ia64_hpux_get_register_from_save_state_t
2312 to access the bsp and bspstore registers if not.
2313
2314 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2315
2316 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2317 * breakpoint.c (detach_breakpoints): Change pid parameter into
2318 a ptid. Adjust code accordingly.
2319 * infrun.c (handle_inferior_event): Delete variable child_pid.
2320 Update call to detach_breakpoints to pass the child ptid for
2321 fork events.
2322 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2323 assert that inferior_ptid's lwp is zero.
2324 (linux_handle_extended_wait): Update call to detach_breakpoints.
2325 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2326 detach_breakpoints.
2327
2328 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2329
2330 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2331 parent, only call detach_breakpoints if tts.tts_event ==
2332 TTEVT_VFORK.
2333
2334 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2335
2336 * dwarf2-frame.c (dwarf2_frame_cache): Use
2337 get_frame_address_in_block instead of get_frame_pc as
2338 the bound for executing the frame's FDE.
2339
2340 2012-08-16 Yao Qi <yao@codesourcery.com>
2341
2342 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2343 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2344 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2345 (c_type_print_varspec_suffix): Likewise.
2346 * eval.c (evaluate_subexp_standard): Likewise.
2347 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2348 (f_type_print_varspec_suffix): Likewise.
2349 * gdbtypes.c (is_scalar_type): Likewise.
2350 (recursive_dump_type): Likewise.
2351 * infcall.c (value_arg_coerce): Likewise.
2352 * m2-valprint.c (m2_val_print): Likewise.
2353 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2354 (pascal_type_print_varspec_suffix): Likewise.
2355 (pascal_type_print_base): Likewise.
2356 * p-valprint.c (pascal_val_print): Likewise.
2357 (pascal_val_print): Likewise.
2358 * valops.c (value_slice): Likewise.
2359 * valprint.c (scalar_type_p): Likewise.
2360 * valarith.c (value_bitstring_subscript): Remove.
2361 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2362 Remove comment on TYPE_CODE_BITSTRING.
2363
2364 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2365 TYPE_CODE_BITSTRING.
2366
2367 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2368 slot 0.
2369
2370 2012-08-16 Yao Qi <yao@codesourcery.com>
2371
2372 * tracepoint.c (trace_find_none_command): Remove.
2373 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2374
2375 2012-08-16 Yao Qi <yao@codesourcery.com>
2376
2377 * remote.c (handle_notification): Remove parameter 'length'.
2378 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2379
2380 2012-08-15 Keith Seitz <keiths@redhat.com>
2381
2382 * gdbtypes.c (opaque_type_resolution): Make static.
2383 Add missing comment.
2384 (overload_debug): Add missing comment.
2385 (show_opaque_type_resolution): Likewise.
2386 (show_overload_debug): Likewise.
2387 (print_bit_vector): Remove unnecessary forward declaration.
2388 (print_arg_types): Likewise.
2389 (dump_fn_fieldlists): Likewise.
2390 (print_cplus_stuff): Likewise.
2391
2392 2012-08-15 Tom Tromey <tromey@redhat.com>
2393
2394 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2395 (gdb_bfd_ref): Initialize new field.
2396 (gdb_bfd_unref): Unref the archive BFD.
2397 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2398 parent archive.
2399
2400 2012-08-15 Tom Tromey <tromey@redhat.com>
2401
2402 PR python/14387:
2403 * python/py-bpevent.c (create_breakpoint_event_object): Update
2404 comment.
2405 * python/py-event.c (evpy_add_attribute): Update comment.
2406 * python/py-exitedevent.c (create_exited_event_object): Fix
2407 reference counting and error handling.
2408 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2409 Fix reference counting.
2410 * python/py-signalevent.c (create_signal_event_object): Fix
2411 reference counting and error handling.
2412 * python/py-stopevent.c (emit_stop_event): Fix reference
2413 counting.
2414 * python/py-threadevent.c (get_event_thread): Return a
2415 borrowed reference.
2416 * python/py-type.c (convert_field): Fix reference counting.
2417
2418 2012-08-15 Tom Tromey <tromey@redhat.com>
2419
2420 * dwarf2read.c (dwarf_decode_macro_bytes)
2421 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2422 as hash key.
2423
2424 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2425
2426 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2427 stepi, nexti, finish, next, step, jump, and continue commands.
2428 * infrun.c (_initialize_infrun): Update help text for the handle
2429 command.
2430
2431 2012-08-14 Doug Evans <dje@google.com>
2432
2433 * gdbtypes.c (struct extra): Delete, unused.
2434
2435 * gdbtypes.c: Whitespace cleanup.
2436 (address_space_name_to_int): Remove "extern" from definition.
2437 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2438
2439 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2440 TYPE_POINTER_TYPE (type).
2441
2442 2012-08-14 Gary Benson <gbenson@redhat.com>
2443
2444 * solib-svr4.c (svr4_free_library_list): Use free_so.
2445
2446 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2447
2448 * .gitignore: Add go-exp.c.
2449
2450 2012-08-13 Doug Evans <dje@google.com>
2451
2452 * value.c (show_convenience): Tweak comment.
2453 (_initialize_values): Mention convenience functions in the help text
2454 for "show convenience".
2455
2456 2012-08-13 Yao Qi <yao@codesourcery.com>
2457
2458 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2459 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2460 TERNOP_SLICE_COUNT.
2461 * eval.c (evaluate_subexp_standard): Likewise.
2462 * expprint.c (print_subexp_standard): Likewise.
2463 (dump_subexp_body_standard): Likewise.
2464 * parse.c (operator_length_standard): Likewise.
2465
2466 2012-08-13 Yao Qi <yao@codesourcery.com>
2467
2468 * std-operator.def: Remove OP_BITSTRING.
2469 * breakpoint.c (watchpoint_exp_is_const): Update.
2470 * eval.c (evaluate_subexp_standard): Remove handling to
2471 OP_BITSTRING.
2472 * expprint.c (print_subexp_standard): Likewise.
2473 (dump_subexp_body_standard): Likewise.
2474 * parse.c (operator_length_standard): Likewise.
2475 * valops.c (value_bitstring): Remove.
2476 * value.h: Remove the declaration of 'value_bitstring'.
2477
2478 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2479
2480 * linespec.c (find_methods): Remove unused variables `i1' and
2481 `name_len'.
2482 (decode_line_full): Likewise for `arg_start'.
2483
2484 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2485
2486 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2487 (zlib_decompress_section): Likewise for `section_data'.
2488 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2489
2490 2012-08-10 Doug Evans <dje@google.com>
2491
2492 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2493 * NEWS: Document them.
2494 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2495 function/strfns.py.
2496 * python/py-type.c (typy_array_1): New function.
2497 (typy_array): Call it.
2498 (typy_vector): New function.
2499 (type_object_methods): Add "vector".
2500 * python/lib/gdb/function/__init__.py: New file.
2501 * python/lib/gdb/function/strfns.py: New file.
2502
2503 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2504
2505 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2506 for TYPE_FIELD_BITPOS.
2507 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2508
2509 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2510
2511 PR cli/10436:
2512 * common/vec.h (VEC_merge): Define.
2513 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2514 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2515 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2516 * completer.c: Include gdb_signals.h.
2517 (signal_completer): Define.
2518 * completer.h (signal_completer): Add prototype.
2519 * infcmd.c (_initialize_infcmd): Assign the command
2520 completer for "signal" to handle_completer.
2521 * infrun.c: Include completer.h.
2522 (handle_completer): Define.
2523 (_initialize_infrun): Declare a new local variable c. Store the
2524 result of add_com("handle") to it. Assign the command
2525 completer for "handle" to handle_completer.
2526
2527 2012-08-09 Yao Qi <yao@codesourcery.com>
2528
2529 * cli/cli-decode.c (set_cmd_prefix): New.
2530 (lookup_cmd_for_prefixlist): New.
2531 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2532 of each cmd_list_element in *prefixlist.
2533 (add_setshow_cmd_full): set_cmd_prefix.
2534 (add_alias_cmd): Likewise.
2535 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2536 Declare 'auto_boolean_enums'.
2537 * cli/cli-setshow.c: Include "observer.h".
2538 (notify_command_param_changed_p): New.
2539 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2540 Remove 'static'.
2541 (do_setshow_command): Split it to ...
2542 (do_set_command, do_show_command): ... them. New.
2543 (do_set_command): Call observer_notify_command_param_changed if
2544 notify_command_param_changed_p returns true.
2545 (cmd_show_list): Caller update.
2546 * auto-load.c (set_auto_load_cmd): Likewise.
2547 * remote.c (show_remote_cmd): Likewise.
2548 * cli/cli-setshow.h: Update declarations.
2549 * top.c (execute_command): Call do_set_command and do_show_command.
2550
2551 * NEWS: Mention new MI notification.
2552 * mi/mi-interp.c: Declare mi_command_param_changed.
2553 (mi_interpreter_init): Attach mi_command_param_changed to
2554 observer command_param_changed.
2555 (mi_command_param_changed): New.
2556 Remove mi_suppress_breakpoint_notifications.
2557 Define global variable mi_suppress_notification.
2558 (mi_breakpoint_created): Update.
2559 (mi_breakpoint_deleted): Likewise.
2560 (mi_breakpoint_modified): Likewise.
2561 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2562 'gdb-set' and set mi_suppress_notification.
2563 * mi/mi-main.h: (mi_suppress_notification): New struct.
2564
2565 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2566 Jan Kratochvil <jan.kratochvil@redhat.com>
2567
2568 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2569
2570 2012-08-09 Yao Qi <yao@codesourcery.com>
2571
2572 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2573 (skiplist): Move it to skip.c.
2574 (init_cmd_lists): Remove code setting enablebreaklist and
2575 skiplist to NULL.
2576 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2577 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2578 skiplist.
2579 * gdbcmd.h: Likewise.
2580 * skip.c (_initialize_step_skip): Move 'skiplist' from
2581 cli/cli-cmds.c.
2582
2583 2012-08-09 Yao Qi <yao@codesourcery.com>
2584
2585 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2586 * gnu-nat.c, symfile.c: Likewise.
2587
2588 2012-08-08 Aaron Gamble <agamble@google.com>
2589
2590 * utils.c (prompt_for_continue_wait_time): New static global.
2591 (make_command_stats_cleanup): Initialize it.
2592 (report_command_stats): Subtract time waiting for user.
2593 (prompt_for_continue): Track time waiting for user.
2594 (defaulted_query): Track time waiting for user.
2595
2596 2012-08-08 Doug Evans <dje@google.com>
2597
2598 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2599 UNOP_MEMVAL_TYPE.
2600 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2601 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2602 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2603 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2604 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2605 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2606 elt.
2607 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2608 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2609 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2610 (dump_prefix_expression): Handle OP_TYPE.
2611
2612 2012-08-08 Keith Seitz <keiths@redhat.com>
2613
2614 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2615 addr_start.
2616
2617 2012-08-08 Doug Evans <dje@google.com>
2618
2619 * linux-thread-db.c: #include "gdb_vecs.h".
2620 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2621 updated.
2622 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2623 (thread_db_load_search): Use a vector to iterate over path elements.
2624 Handle text appearing after "$pdir".
2625
2626 * gdb_string.h: Moved to ...
2627 * common/gdb_string.h: ... here.
2628 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2629 gdb_string.h and gdb_assert.h.
2630
2631 2012-08-08 Yao Qi <yao@codesourcery.com>
2632
2633 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2634 (tic6x_value_to_register): Likewise.
2635 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2636 and set_gdbarch_value_to_register.
2637
2638 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2639 Jean-Marc Saffroy <saffroy@gmail.com>
2640
2641 PR 11804
2642 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2643 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2644 * gcore.c (gcore_create_callback): New function comment. Add modified
2645 parameter. Only write modified regions. Set SEC_READONLY exactly
2646 according to MODIFIED.
2647 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2648 the passed modified value to FUNC.
2649 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2650 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2651 first. New variables modified and has_anonymous. Parse the lines of
2652 smaps file. Add the passed MODIFIED value to FUNC.
2653 * procfs.c (find_memory_regions_callback): Add the passed modified
2654 value.
2655
2656 2012-08-06 Tom Tromey <tromey@redhat.com>
2657
2658 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2659 (dwarf2_frame_cache): Use it.
2660 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2661 cache initialization constraint.
2662
2663 2012-08-06 Tom Tromey <tromey@redhat.com>
2664
2665 PR python/14386:
2666 * varobj.c (update_dynamic_varobj_children): Don't call
2667 PyIter_Check.
2668
2669 2012-08-06 Tom Tromey <tromey@redhat.com>
2670
2671 PR cli/14392:
2672 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2673
2674 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2675
2676 * NEWS: New entry for 'cd' default parameters.
2677 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2678
2679 2012-08-03 Tom Tromey <tromey@redhat.com>
2680
2681 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2682 return.
2683
2684 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2685
2686 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2687 to attempting lseek/write.
2688 (inf_child_fileio_pread): Likewise for pread.
2689
2690 2012-08-02 Yao Qi <yao@codesourcery.com>
2691
2692 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2693 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2694 add_setshow_zinteger_cmd.
2695 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2696 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2697 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2698 instead of add_setshow_zinteger_cmd.
2699 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2700 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2701 instead of add_setshow_zinteger_cmd.
2702 * frame.c (frame_debug): Add 'unsigned'.
2703 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2704 add_setshow_zinteger_cmd.
2705 * frame.h: Update the declaration of 'frame_debug'.
2706 * gdbtypes.c (overload_debug): Add 'unsigned'.
2707 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2708 add_setshow_zinteger_cmd.
2709 * inferior.h: Update declaration of 'debug_infrun'.
2710 * infrun.c (debug_infrun): Add 'unsigned'.
2711 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2712 add_setshow_zinteger_cmd.
2713 * jit.c (jit_debug): Add 'unsigned'.
2714 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2715 add_setshow_zinteger_cmd.
2716 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2717 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2718 instead of add_setshow_zinteger_cmd.
2719 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2720 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2721 add_setshow_zinteger_cmd.
2722 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2723 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2724 instead of add_setshow_zinteger_cmd.
2725 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2726 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2727 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2728 intead of add_setshow_zinteger_cmd.
2729 * mips-tdep.c (mips_debug): Add 'unsigned'.
2730 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2731 instead of add_setshow_zinteger_cmd.
2732 * monitor.c (monitor_debug): Add 'unsigned'.
2733 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2734 add_setshow_zinteger_cmd.
2735 * observer.c (observer_debug): Add 'unsigned'.
2736 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2737 add_setshow_zinteger_cmd.
2738 * parse.c (expressiondebug): Add 'unsigned'.
2739 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2740 add_setshow_zinteger_cmd.
2741 * record.c (record_debug): Add 'unsigned'.
2742 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2743 add_setshow_zinteger_cmd.
2744 * record.h: Update the declaration of 'record_debug'.
2745 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2746 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2747 add_setshow_zinteger_cmd.
2748 * serial.c (global_serial_debug_p): Add 'unsigned'.
2749 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2750 add_setshow_zinteger_cmd.
2751 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2752 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2753 add_setshow_zinteger_cmd.
2754 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2755 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2756 add_setshow_zinteger_cmd.
2757 * target.c (targetdebug): Add 'unsigned'.
2758 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2759 add_setshow_zinteger_cmd.
2760 * valops.c (overload_debug): Add 'unsigned'.
2761 * varobj.c (varobjdebug): Add 'unsigned'.
2762 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2763 add_setshow_zinteger_cmd.
2764 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2765 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2766 instead of add_setshow_zinteger_cmd.
2767
2768 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2769 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2770 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2771 instead of add_setshow_zinteger_cmd.
2772 * gdbarch.c, gdbarch.h: Re-generated.
2773
2774 2012-08-02 Yao Qi <yao@codesourcery.com>
2775
2776 * nto-tdep.c: Don't include cli/cli-decode.h and
2777 cli/cli-cmds.h.
2778 (_initialize_nto_tdep): Remove.
2779 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2780 Remove field.
2781 Remove macro nto_internal_debugging.
2782
2783 2012-08-01 Richard Henderson <rth@redhat.com>
2784
2785 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2786 (mep-*-*) [gdb_target_obs]: Likewise.
2787
2788 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2789
2790 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2791 linux_get_siginfo_type.
2792
2793 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2794
2795 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2796 AT_ENTRY_POINT.
2797 (call_function_by_hand) <ON_STACK>: Call write_memory with
2798 gdbarch_breakpoint_from_pc, if possible.
2799 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2800 here.
2801
2802 2012-07-31 Yao Qi <yao@codesourcery.com>
2803
2804 * tracepoint.c: Add 'static' for some variables.
2805
2806 2012-07-31 Yao Qi <yao@codesourcery.com>
2807
2808 * go32-nat.c: Declare _initialize_go32_nat.
2809 * ser-go32.c: Declare _initialize_ser_dos.
2810 * top.c (do_chdir_cleanup): Add 'static'.
2811
2812 2012-07-30 Keith Seitz <keiths@redhat.com>
2813
2814 * linespec.c (linespec_lex_number): A number followed
2815 by quotes is a valid number, too.
2816
2817 2012-07-30 Tom Tromey <tromey@redhat.com>
2818
2819 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2820
2821 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2822
2823 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2824 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2825
2826 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2827
2828 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2829 invalid or reevaluated to prevent prevent references to possibly
2830 delete'd type objects being left in the varobj.
2831
2832 2012-07-27 Tom Tromey <tromey@redhat.com>
2833 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 * copying.awk: Print buffer-read-only and vi ro markers.
2836 * copying.c: Rebuild.
2837 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2838 * gdbarch.c, gdbarch.h: Rebuild.
2839 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2840 buffer-read-only and vi ro markers.
2841 * features/arm-with-iwmmxt.c: Rebuild.
2842 * features/arm-with-m-fpa-layout.c: Rebuild.
2843 * features/arm-with-m-vfp-d16.c: Rebuild.
2844 * features/arm-with-m.c: Rebuild.
2845 * features/arm-with-neon.c: Rebuild.
2846 * features/arm-with-vfpv2.c: Rebuild.
2847 * features/arm-with-vfpv3.c: Rebuild.
2848 * features/i386/amd64-avx-linux.c: Rebuild.
2849 * features/i386/amd64-avx.c: Rebuild.
2850 * features/i386/amd64-linux.c: Rebuild.
2851 * features/i386/amd64.c: Rebuild.
2852 * features/i386/i386-avx-linux.c: Rebuild.
2853 * features/i386/i386-avx.c: Rebuild.
2854 * features/i386/i386-linux.c: Rebuild.
2855 * features/i386/i386-mmx-linux.c: Rebuild.
2856 * features/i386/i386-mmx.c: Rebuild.
2857 * features/i386/i386.c: Rebuild.
2858 * features/i386/x32-avx-linux.c: Rebuild.
2859 * features/i386/x32-avx.c: Rebuild.
2860 * features/i386/x32-linux.c: Rebuild.
2861 * features/i386/x32.c: Rebuild.
2862 * features/mips-dsp-linux.c: Rebuild.
2863 * features/mips-linux.c: Rebuild.
2864 * features/mips64-dsp-linux.c: Rebuild.
2865 * features/mips64-linux.c: Rebuild.
2866 * features/rs6000/powerpc-32.c: Rebuild.
2867 * features/rs6000/powerpc-32l.c: Rebuild.
2868 * features/rs6000/powerpc-403.c: Rebuild.
2869 * features/rs6000/powerpc-403gc.c: Rebuild.
2870 * features/rs6000/powerpc-405.c: Rebuild.
2871 * features/rs6000/powerpc-505.c: Rebuild.
2872 * features/rs6000/powerpc-601.c: Rebuild.
2873 * features/rs6000/powerpc-602.c: Rebuild.
2874 * features/rs6000/powerpc-603.c: Rebuild.
2875 * features/rs6000/powerpc-604.c: Rebuild.
2876 * features/rs6000/powerpc-64.c: Rebuild.
2877 * features/rs6000/powerpc-64l.c: Rebuild.
2878 * features/rs6000/powerpc-7400.c: Rebuild.
2879 * features/rs6000/powerpc-750.c: Rebuild.
2880 * features/rs6000/powerpc-860.c: Rebuild.
2881 * features/rs6000/powerpc-altivec32.c: Rebuild.
2882 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2883 * features/rs6000/powerpc-altivec64.c: Rebuild.
2884 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2885 * features/rs6000/powerpc-cell32l.c: Rebuild.
2886 * features/rs6000/powerpc-cell64l.c: Rebuild.
2887 * features/rs6000/powerpc-e500.c: Rebuild.
2888 * features/rs6000/powerpc-e500l.c: Rebuild.
2889 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2890 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2891 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2892 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2893 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2894 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2895 * features/rs6000/powerpc-vsx32.c: Rebuild.
2896 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2897 * features/rs6000/powerpc-vsx64.c: Rebuild.
2898 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2899 * features/rs6000/rs6000.c: Rebuild.
2900 * features/s390-linux32.c: Rebuild.
2901 * features/s390-linux32v1.c: Rebuild.
2902 * features/s390-linux32v2.c: Rebuild.
2903 * features/s390-linux64.c: Rebuild.
2904 * features/s390-linux64v1.c: Rebuild.
2905 * features/s390-linux64v2.c: Rebuild.
2906 * features/s390x-linux64.c: Rebuild.
2907 * features/s390x-linux64v1.c: Rebuild.
2908 * features/s390x-linux64v2.c: Rebuild.
2909 * features/tic6x-c62x-linux.c: Rebuild.
2910 * features/tic6x-c62x.c: Rebuild.
2911 * features/tic6x-c64x-linux.c: Rebuild.
2912 * features/tic6x-c64x.c: Rebuild.
2913 * features/tic6x-c64xp-linux.c: Rebuild.
2914 * features/tic6x-c64xp.c: Rebuild.
2915
2916 2012-07-27 Tom Tromey <tromey@redhat.com>
2917
2918 * c-exp.y (classify_name): Avoid assignment in condition.
2919
2920 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2921
2922 * amd64-windows-tdep.c: Include "frame.h".
2923 (amd64_windows_skip_trampoline_code): New function.
2924 (amd64_windows_init_abi): Add trampoline registration.
2925
2926 2012-07-27 Yao Qi <yao@codesourcery.com>
2927
2928 * tracepoint.c (cur_traceframe_number): Remove.
2929 (set_tfile_traceframe): Remove.
2930 (tfile_trace_find, tfile_fetch_registers): Update callers.
2931 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2932 (tfile_open, tfile_trace_find): Likewise.
2933
2934 2012-07-27 Yao Qi <yao@codesourcery.com>
2935
2936 * thread.c (switch_to_thread): Don't call registers_changed.
2937
2938 2012-07-26 Tom Tromey <tromey@redhat.com>
2939
2940 * Makefile.in (SFILES): Remove objc-exp.y.
2941 (YYFILES): Remove objc-exp.c.
2942 (YYOBJ): Remove objc-exp.o.
2943 (local-maintainer-clean): Don't mention objc-exp.c.
2944 * c-exp.y: Include objc-lang.h.
2945 (%union) <class>: New field.
2946 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2947 (exp): Clone subscript production for OBJC_LBRAC. Add various
2948 Objective C productions.
2949 (msglist, msgarglist, msgarg): New productions.
2950 (array_mod, func_mod, operator): Clone productions for
2951 OBJC_LBRAC.
2952 (parse_string_or_char): Handle '@' strings.
2953 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2954 (classify_name): Check la_name_of_this. Recognize ObjC class
2955 names.
2956 * objc-exp.y: Remove.
2957 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2958 * objc-lang.h (objc_parse, objc_error): Don't declare.
2959
2960 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2961
2962 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2963
2964 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2965
2966 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2967 and decrement.
2968
2969 2012-07-26 Tom Tromey <tromey@redhat.com>
2970
2971 * copying.c: Rebuild.
2972 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2973 'no_class'.
2974
2975 2012-07-26 Tom Tromey <tromey@redhat.com>
2976
2977 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2978 immediate_quit.
2979 (print_objfile_statistics): Likewise.
2980 (maintenance_print_symbols): Likewise.
2981 (maintenance_print_msymbols): Likewise.
2982 (maintenance_print_objfiles): Likewise.
2983 * psymtab.c (print_partial_symbols): Call QUIT.
2984 (maintenance_print_psymbols): Likewise. Don't modify
2985 immediate_quit.
2986 * copying.c (show_copying_command): Don't modify immediate_quit.
2987 (show_warranty_command): Likewise.
2988 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2989
2990 2012-07-26 Keith Seitz <keiths@redhat.com>
2991
2992 * linespec.c (linespec_lexer_lex_number): The input
2993 is also a valid number if the next character is a comma
2994 or colon.
2995
2996 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2997
2998 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2999 configure options.
3000
3001 2012-07-26 Tristan Gingold <gingold@adacore.com>
3002
3003 * machoread.c: Include gdb_bfd.h.
3004
3005 2012-07-26 Tristan Gingold <gingold@adacore.com>
3006
3007 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3008 offset.
3009
3010 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3011
3012 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3013 SIZE to size_t.
3014 (dwarf2_evaluate_loc_desc): Likewise.
3015 (dwarf2_loc_desc_needs_frame): Likewise.
3016 (locexpr_describe_location_1): Likewise.
3017 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3018 size_t.
3019 (struct dwarf2_loclist_baton): Likewise.
3020 * dwarf2read.c (struct dwarf_block): Likewise.
3021 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3022 (decode_locdesc): Expand SIZE and I to size_t.
3023
3024 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3025
3026 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3027
3028 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3029
3030 * doublest.c (convert_doublest_to_floatformat): If the exponent
3031 is too small, treat the value as zero. If the exponent is too
3032 large, treat the value as infinity.
3033
3034 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3035
3036 * configure.ac: Add --enable-lmcheck configure option.
3037 * configure: Regenerate.
3038
3039 2012-07-25 Tom Tromey <tromey@redhat.com>
3040
3041 * NEWS: Mention maint info bfds.
3042 * gdb_bfd.c (all_bfds): New global.
3043 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3044 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3045 New functions.
3046
3047 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3048
3049 * configure.tgt: Add v850*-*-rtems*.
3050
3051 2012-07-25 Tom Tromey <tromey@redhat.com>
3052
3053 * macrotab.c (macro_bcache_str): Remove cast.
3054
3055 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3056
3057 * linespec.c (linespec_lexer_lex_number): Update comments,
3058 change the return and add check to make sure the input is
3059 the decimal numbers.
3060 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3061 false, call linespec_lexer_lex_string.
3062
3063 2012-07-24 Tom Tromey <tromey@redhat.com>
3064
3065 * symfile.c (symbol_file_add): Don't open BFD twice.
3066
3067 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3068
3069 * breakpoint.c (create_breakpoint): Store condition for pending
3070 breakpoints.
3071
3072 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3073
3074 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3075 (m68k_return_value): Handle complex types like structures.
3076 (m68k_svr4_return_value): Likewise.
3077
3078 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3079
3080 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3081 parameters to bfd_get_section_name.
3082
3083 2012-07-24 Yao Qi <yao@codesourcery.com>
3084
3085 * cli/cli-setshow.c: Handle case 'var_uinteger'
3086 and 'var_zuninteger' together. Handle case 'var_integer' and
3087 'var_zinteger' together.
3088
3089 2012-07-23 Keith Seitz <keiths@redhat.com>
3090
3091 * linespec.c (convert_linespec_to_sal): Don't add
3092 any symbols to the result vector if symbol_to_sal
3093 returns zero.
3094
3095 2012-07-23 Keith Seitz <keiths@redhat.com>
3096
3097 * linespec.c (decode_objc): Record the function name
3098 in the linespec.
3099
3100 2012-07-23 Tom Tromey <tromey@redhat.com>
3101
3102 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3103 counting.
3104 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3105 (map_vmap): Acquire a reference to the BFD.
3106
3107 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3108
3109 * p-valprint.c (pascal_object_print_value): Replace potentially
3110 unsafe alloca with xmalloc/xfree.
3111 * valops.c (search_struct_method): Likewise.
3112
3113 2012-07-23 Tom Tromey <tromey@redhat.com>
3114
3115 * solib-svr4.c (enable_break): Update.
3116 * bfd-target.h (target_bfd_reopen): Update documentation.
3117
3118 2012-07-23 Tom Tromey <tromey@redhat.com>
3119
3120 * symfile.c (separate_debug_file_exists): Update.
3121 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3122 (reread_symbols): Update.
3123 * elfread.c (build_id_verify): Update.
3124 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3125 bfd_open_maybe_remote.
3126
3127 2012-07-23 Tom Tromey <tromey@redhat.com>
3128
3129 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3130
3131 2012-07-23 Tom Tromey <tromey@redhat.com>
3132
3133 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3134 and 'abfd'.
3135 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3136 and 'abfd'.
3137 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3138 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3139 'abfd'.
3140 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3141 * objfiles.c (allocate_objfile): Acquire a new reference.
3142 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3143 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3144 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3145 a cleanup for 'nbfd'.
3146 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3147 for 'nbfd'.
3148 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3149 make a cleanup for 'abfd'.
3150 (symbol_file_add): Make a BFD cleanup.
3151
3152 2012-07-23 Tom Tromey <tromey@redhat.com>
3153
3154 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3155 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3156 * corelow.c (core_open): Use gdb_bfd_fopen.
3157 * dsrec.c (load_srec): Use gdb_bfd_openr.
3158 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3159 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3160 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3161 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3162 (gdb_bfd_fdopenr): New functions.
3163 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3164 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3165 (gdb_bfd_fdopenr): Declare.
3166 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3167 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3168 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3169 gdb_bfd_openr_next_archived_file.
3170 (macho_check_dsym): Use gdb_bfd_openr.
3171 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3172 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3173 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3174 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3175 gdb_bfd_openr.
3176 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3177 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3178 gdb_bfd_openr_next_archived_file.
3179 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3180 Use gdb_bfd_openr.
3181 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3182 gdb_bfd_openr.
3183 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3184 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3185 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3186 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3187 (symfile_bfd_open): Use gdb_bfd_fopen.
3188 (generic_load): Use gdb_bfd_openr.
3189 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3190
3191 2012-07-23 Tom Tromey <tromey@redhat.com>
3192
3193 * bfd-target.c (target_bfd_reopen): Update.
3194 * cli/cli-dump.c (bfd_openr_with_cleanup)
3195 (bfd_openw_with_cleanup): Update.
3196 * corelow.c (core_open): Update.
3197 * dsrec.c (load_srec): Update.
3198 * exec.c (exec_file_attach): Update.
3199 * gcore.c (create_gcore_bfd): Update.
3200 * gdb_bfd.c (gdb_bfd_ref): Return void.
3201 (gdb_bfd_open): Update.
3202 * gdb_bfd.h (gdb_bfd_ref): Return void.
3203 Update comments.
3204 * jit.c (jit_bfd_try_read_symtab): Update.
3205 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3206 * machoread.c (macho_symfile_read_all_oso): Update.
3207 (macho_check_dsym): Update.
3208 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3209 * remote-m32r-sdi.c (m32r_load): Update.
3210 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3211 * rs6000-nat.c (add_vmap): Update.
3212 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3213 Update.
3214 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3215 * solib-spu.c (spu_bfd_open): Update.
3216 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3217 * spu-linux-nat.c (spu_bfd_open): Update.
3218 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3219 (generic_load): Update.
3220 * windows-nat.c (windows_make_so): Update.
3221
3222 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3223
3224 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3225
3226 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3227
3228 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3229 SIGTRAMP_FRAME unwinding.
3230
3231 2012-07-20 Doug Evans <dje@google.com>
3232
3233 * NEWS: Document new options "set/show use-deprecated-index-sections",
3234 and delete reference to --use-deprecated-index-sections.
3235 * symfile.h (use_deprecated_index_sections): Delete.
3236 * dwarf2read.c (use_deprecated_index_sections): Make static.
3237 (read_index_from_section): Update wording of how to load
3238 deprecated index sections.
3239 (_initialize_dwarf2_read): New options
3240 "set/show use-deprecated-index-sections".
3241 * main.c (captured_main): Delete --use-deprecated-index-sections.
3242
3243 2012-07-20 Pedro Alves <palves@redhat.com>
3244
3245 PR threads/11692
3246 PR gdb/12203
3247
3248 * infrun.c (handle_inferior_event) <new thread>: Don't special
3249 case minus_one_ptid.
3250 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3251 * linux-thread-db.c (thread_get_info_callback): Don't return early
3252 if the thread is zombie.
3253 (thread_from_lwp): Change return type to void. Rewrite stale
3254 comment.
3255 (attach_thread): Don't return early if the thread is zombie,
3256 instead set its "dying" flag.
3257 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3258 (find_new_threads_callback): Don't return early if the thread is
3259 zombie.
3260
3261 2012-07-20 Pedro Alves <palves@redhat.com>
3262
3263 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3264 * target.c (target_wait): Likewise.
3265 (str_comma_list_concat_elem, do_option, target_options_to_string):
3266 New functions.
3267 * target.h (target_options_to_string): Declare.
3268
3269 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3270 Tom Tromey <tromey@redhat.com>
3271
3272 * dwarf2read.c (dwarf_decode_macros)
3273 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3274 DW_MACRO_GNU_transparent_include_alt>: New cases.
3275 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3276 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3277
3278 2012-07-20 Tom Tromey <tromey@redhat.com>
3279
3280 * dwarf2read.c (try_open_dwo_file): Don't call
3281 gdb_bfd_stash_filename.
3282
3283 2012-07-20 Pedro Alves <palves@redhat.com>
3284
3285 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3286 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3287 (i386_process_record): Tweak description comments.
3288
3289 2012-07-20 Pedro Alves <palves@redhat.com>
3290
3291 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3292 (i386_process_record): Use record_read_memory.
3293 * record.c (record_read_memory): New function.
3294 (record_arch_list_add_mem, record_exec_insn): Use
3295 record_read_memory.
3296 * record.h (record_read_memory): Declare.
3297
3298 2012-07-20 Yao Qi <yao@codesourcery.com>
3299
3300 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3301 NULL for xfree.
3302
3303 2012-07-19 Pedro Alves <palves@redhat.com>
3304
3305 * record.c (record_resume): Ask the target beneath to report all
3306 signals.
3307
3308 2012-07-19 Doug Evans <dje@google.com>
3309
3310 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3311 there's no section at address zero.
3312 (dwarf2_record_block_ranges): Ditto.
3313
3314 2012-07-19 Yao Qi <yao@codesourcery.com>
3315
3316 * command.h, remote.c: Fix a typo in comment.
3317
3318 2012-07-19 Tom Tromey <tromey@redhat.com>
3319
3320 PR exp/13206:
3321 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3322 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3323 OP_DECLTYPE>: New cases.
3324 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3325 (type_exp): Add new productions.
3326 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3327 and decltype.
3328 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3329 New case.
3330 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3331 OP_DECLTYPE>: New case.
3332 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3333 New case.
3334 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3335 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3336
3337 2012-07-19 Tom Tromey <tromey@redhat.com>
3338
3339 * c-exp.y (enum token_flags): New.
3340 (struct token) <cxx_only>: Remove.
3341 <flags>: New field.
3342 (tokentab3, tokentab2, ident_tokens): Update.
3343 (lex_one_token): Update. Handle FLAG_SHADOW.
3344
3345 2012-07-19 Tom Tromey <tromey@redhat.com>
3346
3347 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3348 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3349 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3350 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3351 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3352 type_exp production where appropriate.
3353 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3354 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3355 <UNOP_MEMVAL_TYPE>: New case.
3356 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3357 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3358 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3359 <UNOP_MEMVAL_TYPE>: New case.
3360 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3361 UNOP_REINTERPRET_CAST>: Update.
3362 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3363 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3364 UNOP_REINTERPRET_CAST>: Update.
3365 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3366 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3367 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3368 constants.
3369
3370 2012-07-19 Yao Qi <yao@codesourcery.com>
3371 Jan Kratochvil <jan.kratochvil@redhat.com>
3372
3373 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3374 and case 'var_optional_filename' together.
3375 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3376 instead of add_setshow_optional_filename_cmd for setshow command
3377 'args'. Set completer for 'set args'.
3378
3379 2012-07-18 Doug Evans <dje@google.com>
3380
3381 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3382 * common/gdb_vecs.c: New file, contents from utils.c.
3383 * common/host-defs.h: New file, contents from defs.h.
3384 * utils.h: New file, contents from defs.h.
3385 * defs.h: Move all declarations of objects defined in utils.c
3386 to utils.h (except QUIT() and related).
3387 #include "utils.h", "host-defs.h".
3388 * probe.h (probe_p): Move here from gdb_vecs.h.
3389 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3390 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3391 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3392 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3393 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3394 (COMMON_OBS): Add gdb_vecs.o.
3395 (gdb_vecs.o): New rule.
3396
3397 2012-07-18 Keith Seitz <keiths@redhat.com>
3398
3399 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3400 parameter. If non-zero, use SYMNAME as the canonical name
3401 for the SaL.
3402 Update all callers.
3403 (convert_linespec_to_sals): Use add_sal_to_sals for
3404 expressions, too.
3405 (decode_line_full): No need to "fill in missing canonical names"
3406 anymore. Simply make cleanups for the allocated names.
3407
3408 2012-07-18 Keith Seitz <keiths@redhat.com>
3409
3410 * linespec.c (struct linespec): Constify expression,
3411 source_filename, function_name, and label_name.
3412 (symbol_not_found_error): Make all parameters const.
3413 (linespec_parser_delete): No need to check for NULL
3414 when using xfree. Cast const char * to char * for xfree.
3415
3416 2012-07-18 Keith Seitz <keiths@redhat.com>
3417
3418 * breakpoint.c (invalid_thread_id_error): New function.
3419 (find_condition_and_thread): Use invalid_thread_id_error.
3420 (watch_command_1): Likewise.
3421
3422 2012-07-18 Tom Tromey <tromey@redhat.com>
3423
3424 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3425 * contrib/cc-with-tweaks.sh: New file.
3426
3427 2012-07-18 Tom Tromey <tromey@redhat.com>
3428
3429 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3430 (locate_dwz_sections): Recognize .gdb_index.
3431 (create_cus_from_index_list): New function.
3432 (create_cus_from_index): Use it. Handle .dwz data.
3433 (read_index_from_section): New function, extracted from
3434 dwarf2_read_index.
3435 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3436 if needed.
3437
3438 2012-07-18 Tom Tromey <tromey@redhat.com>
3439
3440 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3441 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3442 <is_dwz>: New field.
3443 (struct dwz_file): New.
3444 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3445 (locate_dwz_sections, dwarf2_get_dwz_file)
3446 (get_abbrev_section_for_cu): New functions.
3447 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3448 (read_and_check_type_unit_head): Add abbrev_section argument.
3449 (create_debug_types_hash_table): Update.
3450 (init_cutu_and_read_dies): Use proper abbrev section.
3451 (init_cutu_and_read_dies_no_follow): Likewise.
3452 (set_partial_user): Do nothing if PST==NULL.
3453 (read_comp_units_from_section): New function.
3454 (create_all_comp_units): Use it.
3455 (scan_partial_symbols, partial_die_parent_scope): Update.
3456 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3457 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3458 (find_partial_die): Add offset_in_dwz argument. Update.
3459 (guess_partial_die_structure_name, fixup_partial_die): Update.
3460 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3461 DW_FORM_GNU_strp_alt.
3462 (read_indirect_string_from_dwz): New function.
3463 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3464 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3465 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3466 (follow_die_offset): Add offset_in_dwz argument.
3467 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3468 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3469 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3470 Handle new macro forms.
3471 (dwarf_decode_macros): Update.
3472 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3473 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3474 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3475 (create_debug_types_hash_table): Use correct abbrev section.
3476 (get_debug_line_section): New function.
3477 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3478 (process_full_comp_unit): Pass 'required' argument to
3479 end_symtab_get_static_block.
3480 * buildsym.h (end_symtab_get_static_block): Update.
3481 * buildsym.c (end_symtab_get_static_block): Add 'required'
3482 argument.
3483 (end_symtab, end_expandable_symtab): Update.
3484
3485 2012-07-18 Tom Tromey <tromey@redhat.com>
3486
3487 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3488 (pagesize): Remove.
3489 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3490 (zlib_decompress_section): Remove.
3491 (dwarf2_read_section): Use gdb_bfd_map_section.
3492 (munmap_section_buffer): Remove.
3493 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3494 munmap_section_buffer.
3495 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3496 (struct gdb_bfd_section_data): New.
3497 (free_one_bfd_section): New function.
3498 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3499 (get_section_descriptor, zlib_decompress_section)
3500 (gdb_bfd_map_section): New functions.
3501 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3502
3503 2012-07-18 Tom Tromey <tromey@redhat.com>
3504
3505 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3506
3507 2012-07-18 Tom Tromey <tromey@redhat.com>
3508
3509 * gdb_bfd.c (struct gdb_bfd_data): New.
3510 (gdb_bfd_cache): New global.
3511 (struct gdb_bfd_cache_search): New.
3512 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3513 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3514 * gdb_bfd.h (gdb_bfd_open): Declare.
3515
3516 2012-07-18 Tom Tromey <tromey@redhat.com>
3517
3518 * utils.c (make_cleanup_bfd_unref): Rename from
3519 make_cleanup_bfd_close.
3520 * defs.h (make_cleanup_bfd_unref): Rename from
3521 make_cleanup_bfd_close.
3522 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3523 (bfd_openw_with_cleanup): Update.
3524 * corelow.c (core_open): Update.
3525 * dsrec.c (load_srec): Update.
3526 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3527 * remote-m32r-sdi.c (m32r_load): Update.
3528 * remote-mips.c (mips_load_srec): Update.
3529 (pmon_load_fast): Update.
3530 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3531 Update.
3532 (darwin_bfd_open): Update.
3533 * solib.c (solib_bfd_fopen): Update.
3534 * symfile-mem.c (symbol_file_add_from_memory): Update.
3535 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3536 (symfile_bfd_open): Update.
3537 (generic_load): Update.
3538
3539 2012-07-18 Tom Tromey <tromey@redhat.com>
3540
3541 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3542 (pmon_load_fast): Likewise.
3543 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3544 (m32r_upload_command): Likewise.
3545 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3546 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3547 Use make_cleanup_bfd_close.
3548
3549 2012-07-18 Tom Tromey <tromey@redhat.com>
3550
3551 * symfile.c (symfile_bfd_open): Don't copy name. Call
3552 gdb_bfd_stash_filename.
3553 (load_command): Open the new BFD before freeing the old.
3554 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3555 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3556 Call gdb_bfd_stash_filename.
3557 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3558 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3559 gdb_bfd_stash_filename.
3560 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3561 Free found_pathname.
3562 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3563 gdb_bfd_stash_filename.
3564 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3565 * machoread.c (macho_add_oso_symfile): Call
3566 gdb_bfd_stash_filename.
3567 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3568 gdb_bfd_stash_filename.
3569 (macho_check_dsym): Don't copy filename. Call
3570 gdb_bfd_stash_filename.
3571 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3572 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3573 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3574 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3575 * exec.c (exec_close): Don't free the BFD's filename.
3576 (exec_file_attach): Don't copy the filename. Call
3577 gdb_bfd_stash_filename.
3578 * corelow.c (core_close): Don't free the BFD's filename.
3579 (core_open): Call gdb_bfd_stash_filename.
3580 * corefile.c (reopen_exec_file): Remove #if 0 code.
3581 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3582 pathname.
3583 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3584
3585 2012-07-18 Tom Tromey <tromey@redhat.com>
3586
3587 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3588 gdb_bfd_unref.
3589 (free_dwo_file): Use gdb_bfd_unref.
3590 * cli/cli-dump.c: Include gdb_bfd.h.
3591 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3592 (bfd_openr_with_cleanup): Likewise.
3593 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3594 gdb_bfd_unref.
3595 * utils.c: Include gdb_bfd.h.
3596 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3597 * symfile.c: Include gdb_bfd.h.
3598 (separate_debug_file_exists): Use gdb_bfd_unref.
3599 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3600 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3601 (generic_load): Use gdb_bfd_ref.
3602 (reread_symbols): Use gdb_bfd_unref.
3603 * symfile-mem.c: Include gdb_bfd.h.
3604 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3605 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3606 * solib.c: Include gdb_bfd.h.
3607 (solib_bfd_fopen): Use gdb_bfd_ref.
3608 (solib_bfd_open): Use gdb_bfd_unref.
3609 (free_so_symbols): Use gdb_bfd_unref.
3610 (reload_shared_libraries_1): Use gdb_bfd_unref.
3611 * solib-spu.c: Include gdb_bfd.h.
3612 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3613 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3614 gdb_bfd_unref.
3615 * solib-frv.c: Include gdb_bfd.h.
3616 (enable_break2): Use gdb_bfd_unref.
3617 * solib-dsbt.c: Include gdb_bfd.h.
3618 (enable_break2): Use gdb_bfd_unref.
3619 * solib-darwin.c: Include gdb_bfd.h.
3620 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3621 gdb_bfd_unref.
3622 (darwin_bfd_open): Use gdb_bfd_unref.
3623 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3624 * remote-mips.c: Include gdb_bfd.h.
3625 (mips_load_srec): Use gdb_bfd_ref.
3626 (pmon_load_fast): Use gdb_bfd_ref.
3627 * remote-m32r-sdi.c: Include gdb_bfd.h.
3628 (m32r_load): Use gdb_bfd_ref.
3629 * record.c: Include gdb_bfd.h.
3630 (record_save_cleanups): Use gdb_bfd_unref.
3631 (cmd_record_save): Use gdb_bfd_unref.
3632 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3633 gdb_bfd_unref.
3634 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3635 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3636 * objfiles.c: Include gdb_bfd.h.
3637 (free_objfile): Use gdb_bfd_unref.
3638 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3639 gdb_bfd.c.
3640 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3641 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3642 (macho_check_dsym): Likewise.
3643 * m32r-rom.c: Include gdb_bfd.h.
3644 (m32r_load): Use gdb_bfd_ref.
3645 (m32r_upload_command): Use gdb_bfd_ref.
3646 * jit.c: Include gdb_bfd.h.
3647 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3648 * gdb_bfd.h: New file.
3649 * gdb_bfd.c: New file.
3650 * gcore.c: Include gdb_bfd.h.
3651 (create_gcore_bfd): Use gdb_bfd_ref.
3652 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3653 (gcore_command): Use gdb_bfd_unref.
3654 * exec.c: Include gdb_bfd.h.
3655 (exec_close): Use gdb_bfd_unref.
3656 (exec_close_1): Use gdb_bfd_unref.
3657 (exec_file_attach): Use gdb_bfd_ref.
3658 * elfread.c: Include gdb_bfd.h.
3659 (build_id_verify): Use gdb_bfd_unref.
3660 * dsrec.c: Include gdb_bfd.h.
3661 (load_srec): Use gdb_bfd_ref.
3662 * corelow.c: Include gdb_bfd.h.
3663 (core_close): Use gdb_bfd_unref.
3664 (core_open): Use gdb_bfd_ref.
3665 * bfd-target.c: Include gdb_bfd.h.
3666 (target_bfd_xclose): Use gdb_bfd_unref.
3667 (target_bfd_reopen): Use gdb_bfd_ref.
3668 * Makefile.in (SFILES): Add gdb_bfd.c.
3669 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3670 (COMMON_OBS): Add gdb_bfd.o.
3671
3672 2012-07-18 Keith Seitz <keiths@redhat.com>
3673
3674 * breakpoint.c (find_condition_and_thread): Initialize
3675 TASK and REST.
3676 (create_breakpiont): find_condition_and_thread will now
3677 initialize COND_STRING, THREAD, and REST (and TASK).
3678 (addr_string_to_sals): Likewise.
3679
3680 2012-07-18 Pedro Alves <palves@redhat.com>
3681
3682 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3683 Pull the single step breakpoints out of the target.
3684
3685 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3686
3687 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3688 * stap-probe.c (compile_probe_arg): Likewise.
3689
3690 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3691
3692 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3693 (elf_compile_to_ax): Likewise.
3694 * infrun.c (insert_exception_resume_from_probe): Likewise.
3695 (check_exception_resume): Remove `objfile' variable.
3696 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3697 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3698 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3699 (compare_entries): Rename to...
3700 (compare_probes): ...this. Adjust function to work with
3701 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3702 respectively.
3703 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3704 `VEC (probe_p) *'.
3705 (print_ui_out_info): Adjust argument to be `struct probe *'.
3706 (info_probes_for_ops): Adjust internal computations to use
3707 `VEC (probe_p) *'.
3708 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3709 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3710 gen_info_probes_table_values>: Remove `objfile' argument.
3711 (struct probe) <objfile>: New field.
3712 (find_probe_by_pc): Remove `objfile' argument.
3713 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3714 (stap_get_probe_argument_count): Likewise.
3715 (stap_get_arg): Likewise.
3716 (stap_evaluate_probe_argument): Likewise.
3717 (stap_compile_to_ax): Likewise.
3718 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3719 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3720 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3721 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3722 sym_compile_to_ax>: Likewise.
3723
3724 2012-07-18 Terry Guo <terry.guo@arm.com>
3725
3726 PR 14329
3727 * defs.h (GDB_MI_MSG_WIDTH): New.
3728 * ser_base (ser_base_read_error_fd): New function.
3729 (do_ser_base_readchar): Poll error file descriptor as well as
3730 standard output.
3731 (generic_readchar): Refactor error handling.
3732
3733 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3734
3735 * NEWS: Create a new section for the next release branch.
3736 Rename the section of the current branch, now that it has
3737 been cut.
3738
3739 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3740
3741 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3742 * version.in: Bump version to 7.5.50.20120718-cvs.
3743
3744 2012-07-17 Keith Seitz <keiths@redhat.com>
3745
3746 * linespec.c (linespec_parse_line_offset): Make parameter
3747 const.
3748
3749 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3750
3751 PR 11914
3752 * f-valprint.c (info_common_command): New variable frame_id.
3753 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3754 * printcmd.c (print_variable_and_value): Extend function comment.
3755 Add comment for invalidated FRAME.
3756 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3757 FI form FRAME_ID after each print_frame_local_vars.
3758 (struct print_variable_and_value_data): Change frame to frame_id.
3759 (do_print_variable_and_value): New variable frame, initialize it from
3760 p->frame_id. Add comment for invalidated FRAME.
3761 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3762 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3763 for invalidated FRAME.
3764
3765 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3766 Pedro Alves <palves@redhat.com>
3767
3768 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3769 loop.
3770
3771 2012-07-16 Tom Tromey <tromey@redhat.com>
3772
3773 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3774
3775 2012-07-15 Doug Evans <dje@google.com>
3776
3777 * dwarf2read.c (stmt_list_hash): New struct.
3778 (type_unit_group): Embed "per_cu" member, remove pointer.
3779 New union member "t", move member "tus" into it, all uses updated.
3780 New member "hash", replaces member "line_offset, all uses updated.
3781 (quick_file_names): Replace member "offset" with "hash", all uses
3782 updated.
3783 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3784 (hash_file_name_entry, eq_file_name_entry): Call them.
3785 (hash_type_unit_group, eq_type_unit_group): Ditto.
3786 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3787 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3788 (dw2_get_file_names): Update.
3789 (create_type_unit_group): Replace "per_cu" arg with "cu".
3790 All callers updated. Fix "quick" (.gdb_index) handling.
3791 (get_type_unit_group): Replace "per_cu" arg with "cu".
3792 All callers updated.
3793 (build_type_unit_groups): Don't reset tu_stats.
3794
3795 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3796 "tab_cur_size". Change member "tab" to be a htab_t.
3797 (create_filename_seen_cache): Update.
3798 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3799 (filename_seen): Update.
3800
3801 2012-07-13 Doug Evans <dje@google.com>
3802
3803 * symtab.c (filename_seen): Update comment.
3804
3805 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3806 Doug Evans <dje@google.com>
3807
3808 * buildsym.c (end_symtab_1): Split it to ...
3809 (end_symtab_get_static_block): ... this ...
3810 (end_symtab_from_static_block): ... and this function.
3811 (end_symtab, end_expandable_symtab): Call them.
3812 * buildsym.h (end_symtab_get_static_block)
3813 (end_symtab_from_static_block): New declarations.
3814 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3815 Set its valid CU ranges.
3816
3817 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3818
3819 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3820 DW_OP_GNU_parameter_ref.
3821
3822 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3823
3824 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3825 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3826
3827 2012-07-13 Doug Evans <dje@google.com>
3828
3829 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3830 (filename_seen_cache): New struct.
3831 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3832 (create_filename_seen_cache): New function.
3833 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3834 (filename_seen): Delete arg "first". New arg "cache". All callers
3835 updated.
3836 (output_source_filename_data): New struct.
3837 (output_source_filename): Delete arg "first". New arg "data".
3838 All callers updated.
3839 (sources_info): Delete local "first". New locals "data", "cleanups".
3840 Rewrite to use filename_seen_cache.
3841 (add_partial_filename_data): Delete member "first". New member
3842 "filename_seen_cache". All uses updated.
3843 (make_source_files_completion_list): Rewrite to use
3844 filename_seen_cache.
3845
3846 2012-07-12 Doug Evans <dje@google.com>
3847
3848 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3849
3850 2012-07-10 Doug Evans <dje@google.com>
3851
3852 PR gdb/13498
3853 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3854 all_type_unit_groups, type_unit_groups, tu_stats.
3855 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3856 All uses updated. Add type_unit_group to union "s".
3857 (type_unit_group): New struct.
3858 (IS_TYPE_UNIT_GROUP): New macro.
3859 (abbrev_table): Delete unused member "section".
3860 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3861 (dw2_get_cu): Assert not used with type_unit_group.
3862 (dw2_get_primary_cu): New function.
3863 (dw2_build_type_unit_groups_reader): New function.
3864 (dw2_build_type_unit_groups): New function.
3865 (dw2_get_file_names): Assert not called on type units.
3866 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3867 Redo loop to iterate over type unit groups instead of type units.
3868 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3869 (read_abbrev_offset): New function.
3870 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3871 updated.
3872 (create_partial_symtab): New function.
3873 (process_psymtab_comp_unit_reader): Assert not used with type units.
3874 Call create_partial_symtab.
3875 (process_psymtab_type_unit): Delete.
3876 (hash_type_unit_group, eq_type_unit_group): New functions.
3877 (allocate_type_unit_groups_table): New function.
3878 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3879 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3880 (create_type_unit_group, get_type_unit_group): New functions.
3881 (tu_abbrev_offset): New struct.
3882 (sort_tu_by_abbrev_offset): New function.
3883 (add_type_unit_group_to_table): New function.
3884 (build_type_unit_groups): New function.
3885 (build_type_psymtabs_reader): New function.
3886 (build_type_psymtab_dependencies): New function.
3887 (build_type_psymtabs): Rewrite.
3888 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3889 is seen in a type unit.
3890 (process_queue): Move symtab expansion debugging printfs here.
3891 Call process_full_type_unit for type units.
3892 (compute_symtab_includes): Assert not called for type units.
3893 (process_cu_includes): Don't call compute_symtab_includes for
3894 type units.
3895 (process_full_type_unit): New function.
3896 (process_imported_unit_die): Flag an error if called for type units.
3897 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3898 updated. Assert not called for type units.
3899 (read_file_scope): Call dwarf2_start_symtab.
3900 (setup_type_unit_groups): New function.
3901 (read_type_unit_scope): Rewrite.
3902 (abbrev_table_read_table): Initialize abbrev_table->offset.
3903 (abbrev_table_free_cleanup): New function.
3904 (dwarf2_start_symtab): New function.
3905 (load_full_type_unit): Assert not called for type unit groups.
3906 * buildsym.c (finish_block_internal): New arg "expandable".
3907 All callers updated.
3908 (start_symtab): Move most contents to ...
3909 (restart_symtab): ... here. New function.
3910 (reset_symtab_globals): New function.
3911 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3912 Call reset_symtab_globals.
3913 (end_symtab, end_expandable_symtab): New functions.
3914 (set_missing_symtab, augment_type_symtab): New functions.
3915 * buildsym.h (end_expandable_symtab): Declare.
3916 (augment_type_symtab, restart_symtab): Declare.
3917 * psympriv.h (struct partial_symtab): New member "anonymous".
3918 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3919 anonymous psymtabs.
3920 (read_psymtabs_with_filename): Ditto.
3921 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3922 (expand_symtabs_matching_via_partial): Ditto.
3923 (dump_psymtab): Update.
3924 * dictionary.c (dict_add_pending): New function.
3925 * dictionary.h (dict_add_pending): Declare.
3926
3927 2012-07-09 Doug Evans <dje@google.com>
3928
3929 * buildsym.c (start_subfile): Remove unnecessary check for
3930 name == NULL.
3931
3932 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3933
3934 * dwarf2read.c (load_full_type_unit): Simplify.
3935
3936 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3937 to struct signatured_type **. All uses updated.
3938
3939 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3940 All callers updated.
3941
3942 2012-07-09 Tom Tromey <tromey@redhat.com>
3943
3944 * c-exp.y (check_parameter_typelist): New function.
3945 (parameter_typelist): Call it.
3946 * eval.c (make_params): Handle '(void)' case.
3947 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3948 '(void)' case.
3949
3950 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3951
3952 * common/linux-ptrace.c: Include gdb_assert.h.
3953 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3954 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3955 stdint.h.
3956 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3957 functions.
3958 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3959 * linux-nat.c (linux_child_post_attach)
3960 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3961
3962 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3963
3964 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3965 nptl <2.7 bug workaround for core files.
3966
3967 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3968
3969 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3970 clearing.
3971 (save_siginfo): Remove.
3972 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3973 call.
3974 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3975 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3976 * linux-nat.h (struct lwp_info): Remove field siginfo.
3977
3978 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3979
3980 Code cleanup for the next patch.
3981 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3982 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3983 call for it.
3984 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3985 (ia64_linux_stopped_data_address):
3986 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3987 the return value.
3988 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3989 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3990 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3991 call for it.
3992
3993 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3994
3995 PR 14321
3996 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3997 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3998
3999 2012-07-06 Tom Tromey <tromey@redhat.com>
4000
4001 * c-exp.y (DOTDOTDOT): New token.
4002 (func_mod, exp): Use parameter_typelist.
4003 (parameter_typelist): New production.
4004 (tokentab3): Add "..." token.
4005 * eval.c (make_params): Handle varargs.
4006 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4007 varargs.
4008
4009 2012-07-06 Tom Tromey <tromey@redhat.com>
4010
4011 PR exp/9608:
4012 * c-exp.y (%union) <tvec>: Change type.
4013 (func_mod): Now uses <tvec> type.
4014 (exp): Update for tvec change.
4015 (direct_abs_decl): Push the typelist.
4016 (func_mod): Return a typelist.
4017 (nonempty_typelist): Update for tvec change.
4018 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4019 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4020 * parse.c (pop_type_list): New function.
4021 (push_typelist): New function.
4022 (follow_types): Handle tp_function_with_arguments.
4023 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4024 (enum type_pieces) <tp_function_with_arguments>: New constant.
4025 (union type_stack_elt) <typelist_val>: New field.
4026 (push_typelist): Declare.
4027
4028 2012-07-06 Tom Tromey <tromey@redhat.com>
4029
4030 * c-exp.y (%union) <type_stack>: New field.
4031 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4032 (ptr_operator_ts): New production.
4033 (ptype): Update.
4034 * parse.c (type_stack_reserve): New function.
4035 (check_type_stack_depth): Use it.
4036 (pop_type_stack, append_type_stack, push_type_stack)
4037 (get_type_stack, type_stack_cleanup): New functions.
4038 (follow_types): Handle tp_type_stack.
4039 (_initialize_parse): Simplify initialization.
4040 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4041 constant.
4042 (union type_stack_elt) <stack_val>: New field.
4043 (get_type_stack, append_type_stack, push_type_stack)
4044 (type_stack_cleanup): Declare.
4045
4046 2012-07-06 Tom Tromey <tromey@redhat.com>
4047
4048 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4049 Remove.
4050 (struct type_stack): New.
4051 * parse.c (type_stack, type_stack_size, type_stack_depth):
4052 Remove.
4053 (type_stack): New global.
4054 (parse_exp_in_context, check_type_stack_depth)
4055 (insert_into_type_stack, insert_type, push_type, push_type_int)
4056 (insert_type_address_space, pop_type, pop_type_int)
4057 (_initialize_parse): Update.
4058
4059 2012-07-06 Tom Tromey <tromey@redhat.com>
4060
4061 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4062 Remove %type.
4063
4064 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4065
4066 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4067
4068 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4069 Jan Kratochvil <jan.kratochvil@redhat.com>
4070
4071 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4072 alloca with xmalloc/xfree.
4073
4074 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4075
4076 * MAINTAINERS (Write After Approval): Add myself to the list.
4077
4078 2012-07-05 Doug Evans <dje@google.com>
4079
4080 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4081
4082 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4083
4084 * ax-gdb.c (cli/cli-utils.h): New include.
4085 (linespec.h): Ditto.
4086 (agent_eval_command_one): New function.
4087 (agent_command_1): Ditto.
4088 (agent_command): Call function agent_command_1.
4089 (agent_eval_command): Ditto.
4090 (_initialize_ax_gdb): Change help for "maint agent"
4091 and "maint agent-eval".
4092
4093 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4094
4095 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4096 * cli/cli-utils.c (check_for_argument): New function.
4097 * cli/cli-utils.h (check_for_argument): Ditto.
4098
4099 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4100
4101 * NEWS: Mention x32 ABI support.
4102
4103 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4104
4105 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4106 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4107
4108 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4109 and pc_regnum_from_eax to -1. Update SP regnum from
4110 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4111 needed.
4112
4113 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4114 pc_regnum_from_eax.
4115
4116 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4117
4118 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4119 * dwarf2expr.h: Include gdbtypes.h.
4120 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4121 these forward declarations.
4122 (cu_offset, sect_offset): Move these ...
4123 * gdbtypes.h: Remove include dwarf2expr.h.
4124 (cu_offset, sect_offset): ... here.
4125
4126 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4127
4128 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4129 (amd64_linux_sigtramp_code): This.
4130 (amd64_x32_linux_sigtramp_code): New.
4131 (LINUX_SIGTRAMP_LEN): Updated.
4132 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4133
4134 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4135
4136 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4137
4138 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 * config.in: Regenerate.
4141 * configure: Regenerate.
4142 * configure.ac: Remove check for gnu/libc-version.h.
4143 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4144 gnu/libc-version.h.
4145 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4146 variables libc_version, libc_major and libc_minor. Replace sscanf by
4147 inferior_has_bug. Extend the comment.
4148
4149 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4150
4151 * linux-thread-db.c (inferior_has_bug): New function.
4152 (thread_db_find_new_threads_silently): Return boolean as checked by
4153 inferior_has_bug, describe it in the comments.
4154 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4155 earlier. Abort the initialization if it returned non-zero.
4156 (thread_db_new_objfile): Exclude debug files.
4157 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4158 if UNTIL_NO_NEW,
4159
4160 2012-07-02 Doug Evans <dje@google.com>
4161
4162 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4163 related to queue management.
4164
4165 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4166 instead of "debug dwarf2-die" in debugging printfs.
4167 (create_debug_info_hash_table_reader): Ditto.
4168 (create_debug_info_hash_table): Ditto.
4169 (init_dwo_file): Ditto.
4170 (init_cutu_and_read_dies): Add debugging printf.
4171 (init_cutu_and_read_dies_no_follow): Ditto.
4172 (process_psymtab_comp_unit_reader): Ditto.
4173
4174 2012-07-02 Stan Shebs <stan@codesourcery.com>
4175
4176 Add target-side support for dynamic printf.
4177 * NEWS: Mention the additional style.
4178 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4179 (struct bp_location): New field cmd_bytecode.
4180 * breakpoint.c: Include format.h.
4181 (disconnected_dprintf): New global.
4182 (parse_cmd_to_aexpr): New function.
4183 (build_target_command_list): New function.
4184 (insert_bp_location): Call it.
4185 (remove_breakpoints_pid): Skip dprintf breakpoints.
4186 (print_one_breakpoint_location): Ditto.
4187 (dprintf_style_agent): New global.
4188 (dprintf_style_enums): Add dprintf_style_agent.
4189 (update_dprintf_command_list): Add agent case.
4190 (agent_printf_command): New function.
4191 (_initialize_breakpoint): Add new commands.
4192 * common/ax.def (printf): New bytecode.
4193 * ax.h (ax_string): Declare.
4194 * ax-gdb.h (gen_printf): Declare.
4195 * ax-gdb.c: Include cli-utils.h, format.h.
4196 (gen_printf): New function.
4197 (maint_agent_print_command): New function.
4198 (_initialize_ax_gdb): Add maint agent-printf command.
4199 * ax-general.c (ax_string): New function.
4200 (ax_print): Add printf disassembly.
4201 * Makefile.in (SFILES): Add format.c
4202 (COMMON_OBS): Add format.o.
4203 * common/format.h: New file.
4204 * common/format.c: New file.
4205 * printcmd.c: Include format.h.
4206 (ui_printf): Call parse_format_string.
4207 * remote.c (remote_state): New field breakpoint_commands.
4208 (PACKET_BreakpointCommands): New enum.
4209 (remote_breakpoint_commands_feature): New function.
4210 (remote_protocol_features): Add new BreakpointCommands entry.
4211 (remote_can_run_breakpoint_commands): New function.
4212 (remote_add_target_side_commands): New function.
4213 (remote_insert_breakpoint): Call it.
4214 (remote_insert_hw_breakpoint): Ditto.
4215 (_initialize_remote): Add new packet configuration for
4216 target-side breakpoint commands.
4217 * target.h (struct target_ops): New field
4218 to_can_run_breakpoint_commands.
4219 (target_can_run_breakpoint_commands): New macro.
4220 * target.c (update_current_target): Handle
4221 to_can_run_breakpoint_commands.
4222
4223 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4224
4225 Execute -ix and -iex only after system and user gdbinit files.
4226 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4227 processing down after gdbinit files.
4228
4229 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4230
4231 Add fnmatch-gnu module.
4232 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4233 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4234 * gnulib/aclocal.m4: Regenerate.
4235 * gnulib/config.in: Regenerate.
4236 * gnulib/configure: Regenerate.
4237 * gnulib/import/dummy.c: Remove.
4238 * gnulib/import/Makefile.am: Regenerate.
4239 * gnulib/import/Makefile.in: Likewise.
4240 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4241 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4242 * gnulib/import/alloca.c: New file.
4243 * gnulib/import/alloca.in.h: Likewise.
4244 * gnulib/import/config.charset: Likewise.
4245 * gnulib/import/fnmatch.c: Likewise.
4246 * gnulib/import/fnmatch.in.h: Likewise.
4247 * gnulib/import/fnmatch_loop.c: Likewise.
4248 * gnulib/import/localcharset.c: Likewise.
4249 * gnulib/import/localcharset.h: Likewise.
4250 * gnulib/import/m4/alloca.m4: Likewise.
4251 * gnulib/import/m4/codeset.m4: Likewise.
4252 * gnulib/import/m4/configmake.m4: Likewise.
4253 * gnulib/import/m4/fcntl-o.m4: Likewise.
4254 * gnulib/import/m4/fnmatch.m4: Likewise.
4255 * gnulib/import/m4/glibc21.m4: Likewise.
4256 * gnulib/import/m4/localcharset.m4: Likewise.
4257 * gnulib/import/m4/locale-fr.m4: Likewise.
4258 * gnulib/import/m4/locale-ja.m4: Likewise.
4259 * gnulib/import/m4/locale-zh.m4: Likewise.
4260 * gnulib/import/m4/mbrtowc.m4: Likewise.
4261 * gnulib/import/m4/mbsinit.m4: Likewise.
4262 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4263 * gnulib/import/m4/mbstate_t.m4: Likewise.
4264 * gnulib/import/m4/stdbool.m4: Likewise.
4265 * gnulib/import/m4/wchar_h.m4: Likewise.
4266 * gnulib/import/m4/wctype_h.m4: Likewise.
4267 * gnulib/import/m4/wint_t.m4: Likewise.
4268 * gnulib/import/mbrtowc.c: Likewise.
4269 * gnulib/import/mbsinit.c: Likewise.
4270 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4271 * gnulib/import/mbsrtowcs-state.c: Likewise.
4272 * gnulib/import/mbsrtowcs.c: Likewise.
4273 * gnulib/import/ref-add.sin: Likewise.
4274 * gnulib/import/ref-del.sin: Likewise.
4275 * gnulib/import/stdbool.in.h: Likewise.
4276 * gnulib/import/streq.h: Likewise.
4277 * gnulib/import/strnlen1.c: Likewise.
4278 * gnulib/import/strnlen1.h: Likewise.
4279 * gnulib/import/verify.h: Likewise.
4280 * gnulib/import/wchar.in.h: Likewise.
4281 * gnulib/import/wctype.in.h: Likewise.
4282
4283 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4284
4285 Support shell wildcards for 'set auto-load safe-path'.
4286 * auto-load.c: Include fnmatch.h.
4287 (filename_is_in_dir): Rename to ...
4288 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4289 it. Update function comment. Rename dir_len to pattern_len. New
4290 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4291 messages. Use gdb_filename_fnmatch.
4292 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4293 pattern.
4294 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4295 * defs.h (gdb_filename_fnmatch): New declaration.
4296 * utils.c: Include fnmatch.h.
4297 (gdb_filename_fnmatch): New function.
4298
4299 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4300
4301 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4302 `-probe' and `-probe-stap' options.
4303
4304 2012-07-01 Yao Qi <yao@codesourcery.com>
4305
4306 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4307 always_inserted_off, and always_inserted_enums.
4308 Change always_inserted_mode's type to 'enum auto_boolean'.
4309 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4310 callers.
4311 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4312 of add_setshow_enum_cmd.
4313 * infrun.c: Remove can_use_displaced_stepping_auto,
4314 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4315 can_use_displaced_stepping_enum.
4316 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4317 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4318 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4319 add_setshow_enum_cmd.
4320
4321 2012-06-30 Doug Evans <dje@google.com>
4322
4323 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4324 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4325 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4326
4327 2012-06-29 Doug Evans <dje@google.com>
4328
4329 * linespec.c: #include "stack.h".
4330 (decode_line_with_current_source): Moved here from symtab.c and
4331 renamed from decode_line_spec. All callers updated.
4332 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4333 renamed from decode_line_spec_1. All callers updated.
4334 * linespec.h (decode_line_with_current_source): Move declaration here
4335 from symtab.h and renamed from decode_line_spec.
4336 (decode_line_with_last_displayed): Move declaration here from symtab.h
4337 and renamed from decode_line_spec_1.
4338 * macrocmd.c: #include "linespec.h".
4339 * symtab.c: Remove #include "linespec.h".
4340
4341 2012-06-28 Doug Evans <dje@google.com>
4342
4343 * dwarf2read.c (get_cu_length): New function.
4344 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4345 (create_debug_types_hash_table): Ditto.
4346 (init_cutu_and_read_dies): Ditto.
4347 (init_cutu_and_read_dies_no_follow): Ditto.
4348
4349 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4350
4351 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4352 (struct abbrev_table): Define.
4353 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4354 abbrev_table.
4355 (init_cutu_and_read_dies): Update.
4356 (abbrev_table_alloc_abbrev): New function. Replaces
4357 dwarf_alloc_abbrev. All callers updated.
4358 (abbrev_table_add_abbrev): New function.
4359 (abbrev_table_lookup_abbrev): New function. Replaces
4360 dwarf2_lookup_abbrev. All callers updated.
4361 (abbrev_table_read_table): New function. Contents moved here from
4362 dwarf2_read_abbrevs.
4363 (dwarf2_read_abbrevs): Call it.
4364 (abbrev_table_free): New function.
4365 (dwarf2_free_abbrev_table): Call it.
4366
4367 2012-06-28 Stan Shebs <stan@codesourcery.com>
4368
4369 * osdata.c (info_osdata_command): Filter out "Title" columns
4370 from non-MI uses.
4371 * common/linux-osdata.c (struct osdata_type): Add title field.
4372 (osdata_table): Add titles to each entry.
4373 (linux_command_xfer_osdata): Add a column for title data.
4374
4375 2012-06-28 Stan Shebs <stan@codesourcery.com>
4376
4377 Make logging work for MI.
4378 * NEWS: Mention it.
4379 * interps.h (interp_set_logging_ftype): New typedef.
4380 (struct interp_procs): New field set_logging_proc.
4381 (current_interp_set_logging): Declare.
4382 * interps.c (current_interp_set_logging): New function.
4383 * cli/cli-logging.c: Include interps.h.
4384 (set_logging_redirect): Call current_interp_set_logging.
4385 (pop_output_files): Ditto.
4386 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4387 * mi/mi-console.h (mi_console_set_raw): Declare.
4388 * mi/mi-console.c (mi_console_set_raw): New function.
4389 * mi/mi-interp.c (saved_raw_stdout): New global.
4390 (mi_set_logging): New function.
4391 (_initialize_mi_interp): Add it to interp procs.
4392
4393 2012-06-28 Doug Evans <dje@google.com>
4394
4395 * symtab.c (lookup_symbol_aux_objfile): Use
4396 ALL_OBJFILE_PRIMARY_SYMTABS.
4397
4398 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4399
4400 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4401
4402 * common/buffer.c: Include inttypes.h and stdint.h.
4403 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4404
4405 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4406 Pedro Alves <palves@redhat.com>
4407
4408 * gdbthread.h (ALL_THREADS): New macro.
4409 (thread_list): Declare.
4410 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4411 going, but instead fall through to the stepping handling.
4412 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4413 the passed in signal. Adjust debug output.
4414 (resume_callback): Rename to ...
4415 (linux_nat_resume_callback): ... this. Pass the thread's last
4416 stop signal, if in "pass" state.
4417 (linux_nat_resume): Adjust to rename.
4418 (stop_wait_callback): New assertion. Don't respawn signals;
4419 instead let the LWP remain with SIGNALLED set.
4420 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4421 * remote.c (append_pending_thread_resumptions): New.
4422 (remote_vcont_resume): Call it.
4423 * target.h (target_resume): Extend comment.
4424
4425 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4426
4427 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4428
4429 2012-06-27 Doug Evans <dje@google.com>
4430
4431 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4432 Delete have_addr_base, unused. All uses updated.
4433 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4434 (dwarf2_get_pc_bounds): Add ranges_base.
4435 (dwarf2_record_block_ranges): Ditto.
4436
4437 2012-06-27 Tom Tromey <tromey@redhat.com>
4438
4439 PR macros/7961:
4440 * varobj.c (varobj_create): Update.
4441 (varobj_set_value): Update.
4442 * tracepoint.c (validate_actionline): Update.
4443 (encode_actions_1): Update.
4444 * parse.c (parse_exp_1): Add 'pc' argument.
4445 (parse_exp_in_context): Add 'pc' argument. Change how
4446 expression_context_pc is set.
4447 (parse_expression): Update.
4448 (parse_field_expression): Update.
4449 * expression.h (parse_exp_1): Update.
4450 * eval.c (parse_to_comma_and_eval): Update.
4451 * breakpoint.c (set_breakpoint_condition): Update.
4452 (update_watchpoint): Update.
4453 (init_breakpoint_sal): Update
4454 (find_condition_and_thread): Update.
4455 (watch_command_1): Update.
4456 (update_breakpoint_locations): Update.
4457 * ada-lang.c (ada_read_renaming_var_value): Update.
4458 (create_excep_cond_exprs): Update.
4459
4460 2012-06-27 Doug Evans <dje@google.com>
4461
4462 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4463 type units.
4464
4465 2012-06-26 Doug Evans <dje@google.com>
4466
4467 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4468 prototype.
4469 (error_check_comp_unit_head): New arg abbrev_section. All callers
4470 updated.
4471 (read_and_check_comp_unit_head): Ditto.
4472 (read_and_check_type_unit_head): Ditto.
4473
4474 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4475
4476 New attribute 'last' for gdb.Symtab_and_line.
4477 * NEWS (Python Scripting): Add entry about the new attribute.
4478 * python/py-symtab.c (salpy_get_last): New function which
4479 implements the get method for the 'last' attribute of
4480 gdb.Symtab_and_line.
4481 (sal_object_getset): Add entry for the 'last' attribute.
4482
4483 2012-06-26 Doug Evans <dje@google.com>
4484
4485 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4486 (dwo_sections): Add macinfo, macro.
4487 (dwarf2_locate_dwo_sections): Watch for macro sections.
4488 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4489 All callers updated. Handle DWO files.
4490
4491 * NEWS: Mention new options "set debug dwarf2-read" and
4492 "set debug symtab-create".
4493 * dwarf2read.c (dwarf2_read_debug): New static global.
4494 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4495 (process_queue): Ditto.
4496 (process_full_comp_unit): Ditto.
4497 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4498 * elfread.c (elf_symfile_read): Add debugging printf.
4499 * minsyms.c (install_minimal_symbols): Ditto.
4500 * psymtab.c (allocate_psymtab): Ditto.
4501 * symfile.c (allocate_symtab): Ditto.
4502 * symtab.c (symtab_create_debug): New global.
4503 (_initialize_symtab): Add new option "set debug symtab-create".
4504 * symtab.h (symtab_create_debug): Declare.
4505
4506 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4507 (lookup_dwo_type_unit): Ditto.
4508
4509 2012-06-26 Roland McGrath <roland@hack.frob.com>
4510 H.J. Lu <hongjiu.lu@intel.com>
4511
4512 * amd64-linux-nat.c: Include <sys/user.h>.
4513 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4514 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4515 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4516
4517 * configure.ac: Check if the fs_base and gs_base members of
4518 `struct user_regs_struct' exist.
4519 * config.in: Regenerated.
4520 * configure: Likewise.
4521
4522 2012-06-25 Michael Eager <eager@eagercon.com>
4523
4524 PR python/14291
4525 * python/python.c (gdbpy_write): Check for interrupted output.
4526
4527 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4528
4529 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4530 register as a stack alignment in ARM mode.
4531
4532 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4533
4534 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4535 * gnulib/config.in: Regenerate.
4536 * gnulib/configure: Likewise.
4537 * gnulib/import/m4/extensions.m4: Update it.
4538 * gnulib/import/m4/gnulib-common.m4: Likewise.
4539 * gnulib/import/m4/memmem.m4: Likewise.
4540 * gnulib/import/m4/mmap-anon.m4: Likewise.
4541 * gnulib/import/m4/multiarch.m4: Likewise.
4542 * gnulib/import/stdint.in.h: Likewise.
4543
4544 2012-06-24 Yao Qi <yao@codesourcery.com>
4545
4546 * corefile.c (write_memory_with_notification): New.
4547 * gdbcore.h: Declare write_memory_with_notification.
4548 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4549 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4550 * valops.c (value_assign): Likewise.
4551 * python/py-inferior.c (infpy_write_memory): Call
4552 'write_memory_with_notification'.
4553
4554 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4555
4556 * cc-with-index.sh: Use also -ex "set auto-load no".
4557
4558 2012-06-23 Doug Evans <dje@google.com>
4559
4560 PR 14125
4561 * NEWS: Document additions to .gdb_index.
4562 * dwarf2read.c: #include "gdb/gdb-index.h".
4563 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4564 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4565 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4566 (dwarf2_read_index): Recognize version 7.
4567 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4568 block_kind, domain): All callers updated.
4569 (dw2_find_symbol_file): Handle new index CU values.
4570 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4571 (add_index_entry): New args is_static, kind. All callers updated.
4572 (offset_type_compare, uniquify_cu_indices): New functions
4573 (symbol_kind): New function.
4574 (write_psymtabs_to_index): Remove duplicate CU values.
4575 (write_psymtabs_to_index): Write .gdb_index version 7.
4576
4577 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4578
4579 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4580 * configure: Regenerate.
4581
4582 2012-06-20 Yao Qi <yao@codesourcery.com>
4583
4584 * python/py-inferior.c: Update comments of infpy_read_memory
4585 and infpy_write_memory.
4586
4587 2012-06-19 Tom Tromey <tromey@redhat.com>
4588
4589 PR exp/9514:
4590 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4591 (push_type_address_space): Remove.
4592 * parse.c (insert_into_type_stack): New function.
4593 (insert_type): Likewise.
4594 (insert_type_address_space): Rename from push_type_address_space.
4595 Insert tp_space_identifier.
4596 * c-exp.y (ptr_operator): New production.
4597 (abs_decl): Use ptr_operator.
4598 (space_identifier): Call insert_type_address_space.
4599 (ptype): Don't use const_or_volatile_or_space_identifier.
4600 (const_or_volatile_noopt): Call insert_type.
4601 (conversion_type_id, conversion_declarator): New productions.
4602 (operator): Use conversion_type_id.
4603
4604 2012-06-18 Doug Evans <dje@google.com>
4605
4606 * symtab.h (minimal_symbol): New member created_by_gdb.
4607 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4608 created by gdb.
4609 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4610 (search_symbols): Call it instead of lookup_symbol.
4611 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4612
4613 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4614 Adjust address for DW_OP_GNU_addr_index.
4615 * dwarf2expr.h (dwarf_expr_context): Update comment.
4616 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4617 all callers updated. Handle TLS vars described with
4618 DW_OP_GNU_const_index.
4619 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4620 and DW_OP_GNU_const_index.
4621 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4622
4623 * block.c (find_block_in_blockvector): Make explicit the fact that we
4624 ignore GLOBAL_BLOCK.
4625
4626 2012-06-18 Tom Tromey <tromey@redhat.com>
4627
4628 * c-exp.y (operator): Remove trailing space after "delete" and
4629 "delete[]".
4630
4631 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4632 Jan Kratochvil <jan.kratochvil@redhat.com>
4633
4634 Switch i386 and derived targets to ON_STACK.
4635 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4636 (amd64_dicos_init_abi): Remove its installment.
4637 * dicos-tdep.c (dicos_init_abi): Remove the
4638 set_gdbarch_call_dummy_location call. Update the comment here.
4639 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4640 (i386_dicos_init_abi): Remove its installment.
4641 * i386-tdep.c (i386_push_dummy_code): New function.
4642 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4643 i386_push_dummy_code.
4644
4645 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4646
4647 Remove stale dummy frames.
4648 * breakpoint.c: Include dummy-frame.h.
4649 (longjmp_breakpoint_ops): New variable.
4650 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4651 bp_longjmp_call_dummy.
4652 (bpstat_what, bptype_string, print_one_breakpoint_location)
4653 (init_bp_location): Support bp_longjmp_call_dummy.
4654 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4655 (set_longjmp_breakpoint_for_call_dummy)
4656 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4657 functions.
4658 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4659 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4660 FIXME comment and extend the other comment for bp_call_dummy.
4661 (set_longjmp_breakpoint_for_call_dummy)
4662 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4663 * dummy-frame.c: Include gdbthread.h.
4664 (pop_dummy_frame_bpt): New function.
4665 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4666 (dummy_frame_discard): New function.
4667 (cleanup_dummy_frames): Update the comment about longjmps.
4668 * dummy-frame.h (dummy_frame_discard): New declaration.
4669 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4670 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4671 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4672 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4673 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4674 keep_going if IS_LONGJMP and there is no other reason to stop.
4675
4676 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4677
4678 * remote-sim.c (sim_command_completer): Initialize
4679 variable 'result'.
4680
4681 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4682
4683 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4684 * dwarf2loc.c (call_site_parameter_matches): Support
4685 CALL_SITE_PARAMETER_PARAM_OFFSET.
4686 (needs_dwarf_reg_entry_value): Push stub value.
4687 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4688 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4689 * gdbtypes.h (enum call_site_parameter_kind): New item
4690 CALL_SITE_PARAMETER_PARAM_OFFSET.
4691 (struct call_site.parameter.u): New field param_offset.
4692
4693 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4694
4695 Code cleanup: Generalize call_site.parameter key.
4696 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4697 variable dwarf_reg. New variable kind_u. Update parameters to
4698 push_dwarf_reg_entry_value.
4699 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4700 * dwarf2expr.h (enum call_site_parameter_kind)
4701 (union call_site_parameter_u): Forward declarations.
4702 (struct dwarf_expr_context_funcs): Update parameters and their
4703 description for push_dwarf_reg_entry_value.
4704 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4705 * dwarf2loc.c (call_site_parameter_matches): New function.
4706 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4707 description. Use call_site_parameter_matches.
4708 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4709 Update parameters and their description.
4710 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4711 New variable kind_u. Adjust the caller for updated parameters.
4712 (needs_dwarf_reg_entry_value): Update parameters.
4713 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4714 instead of attr. Update for the changed fields of struct
4715 call_site_parameter.
4716 * gdbtypes.h: Include dwarf2expr.h.
4717 (enum call_site_parameter_kind): New.
4718 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4719 fb_offset into new union u.
4720
4721 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4722
4723 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4724 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4725 for x32.
4726
4727 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4728
4729 * amd64-linux-nat.c (compat_x32_clock_t): New.
4730 (compat_x32_siginfo_t): Likewise.
4731 (compat_x32_siginfo_from_siginfo): Likewise.
4732 (siginfo_from_compat_x32_siginfo): Likewise.
4733 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4734 and siginfo_from_compat_x32_siginfo for x32.
4735
4736 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4737
4738 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4739
4740 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4741
4742 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4743 instead of gdbarch_ptr_bit.
4744 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4745 (amd64_supply_native_gregset): Likewise.
4746 (amd64_collect_native_gregset): Likewise.
4747 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4748 (amd64_supply_xsave): Likewise.
4749 (amd64_collect_fxsave): Likewise.
4750 (amd64_collect_xsave): Likewise.
4751
4752 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4753
4754 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4755 (amd64_linux_read_description): Check DS segment register for
4756 x32 process.
4757
4758 2012-06-15 Tom Tromey <tromey@redhat.com>
4759
4760 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4761 init_cutu_and_read_dies.
4762
4763 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4764
4765 * MAINTAINERS (Write After Approval): Add myself to the list.
4766
4767 2012-06-15 Tom Tromey <tromey@redhat.com>
4768
4769 * valops.c (value_find_oload_method_list): Now static.
4770 * value.h (value_find_oload_method_list): Don't declare.
4771
4772 2012-06-15 Tom Tromey <tromey@redhat.com>
4773
4774 * valops.c (find_overload_match): Use value_ind.
4775
4776 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4777
4778 * infrun.c (handle_inferior_event): Correct indentation.
4779
4780 2012-06-14 Doug Evans <dje@google.com>
4781
4782 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4783 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4784 All uses updated.
4785 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4786 updated. Handle DEBUG_LOC_START_LENGTH.
4787 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4788 (loclist_describe_location): Ditto.
4789
4790 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4791
4792 PR backtrace/13866
4793 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4794 after hiding inline functions.
4795
4796 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4797
4798 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4799 _initialize_inf_ttrace.
4800
4801 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4802
4803 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4804 _initialize_hppa_hpux_nat.
4805
4806 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4807
4808 * remote-sim.c (sim_command_completer): Change type of return
4809 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4810
4811 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4812 Jan Kratochvil <jan.kratochvil@redhat.com>
4813
4814 PR tdep/14222
4815 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4816 stack on a 16-byte boundary.
4817
4818 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4819
4820 * jit.c (finalize_symtab): Set function's return type to 'void' by
4821 default.
4822
4823 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4824 H.J. Lu <hongjiu.lu@intel.com>
4825
4826 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4827 Move bits common to both the classic LP64 and the new x32 ILP32
4828 ABI here.
4829 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4830 (amd64_x32_linux_init_abi): New function.
4831 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4832 subtype.
4833
4834 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4835 * i386-tdep.c (i386_pseudo_register_name): Make public.
4836 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4837 * amd64-tdep.c (amd64_dword_names): Add "eip".
4838 (amd64_x32_pseudo_register_type): New function
4839 (amd64_x32_init_abi): New function.
4840
4841 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4842
4843 PR build/14003
4844 * inferior.h (struct inferior_suspend_state): Comment out.
4845 (struct inferior): Comment out the field suspend.
4846 * infrun.c (struct infcall_suspend_state): Comment out the field
4847 inferior_suspend.
4848 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4849 out its assignment.
4850
4851 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4852
4853 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4854 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4855 function comment. Return ERROR for unresolved cases. Implement
4856 returning proper NAME.
4857 (yylex): Accept also NAME from classify_inner_name.
4858 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4859 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4860 LOC_TYPEDEF type.
4861 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4862
4863 2012-06-13 Tom Tromey <tromey@redhat.com>
4864
4865 * breakpoint.c (condition_completer): New function.
4866 (_initialize_breakpoint): Use it.
4867 * value.c (complete_internalvar): New function.
4868 * value.h (complete_internalvar): Declare.
4869
4870 2012-06-13 Tom Tromey <tromey@redhat.com>
4871
4872 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4873 * breakpoint.c (catch_syscall_completer): Return a VEC.
4874 * cli/cli-cmds.c (complete_command): Update.
4875 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4876 (complete_on_enum): Likewise.
4877 * command.h: Include gdb_vecs.h.
4878 (completer_ftype): Change return type.
4879 (complete_on_cmdlist, complete_on_enum): Likewise.
4880 * completer.c (noop_completer, filename_completer)
4881 (location_completer): Return a VEC.
4882 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4883 to a VEC.
4884 (expression_completer, complete_line_internal, complete_line)
4885 (command_completer): Return a VEC.
4886 (gdb_completion_word_break_characters, line_completion_function):
4887 Update.
4888 * completer.h: Include gdb_vecs.h.
4889 (complete_line, noop_completer, filename_completer)
4890 (expression_completer, location_completer, command_completer):
4891 Update.
4892 * f-lang.c (f_word_break_characters): Return a VEC.
4893 * interps.c (interpreter_completer): Return a VEC.
4894 * language.h (struct language_defn)
4895 <la_make_symbol_completion_list>: Return a VEC.
4896 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4897 * symtab.c (free_completion_list): Take a VEC.
4898 (return_val_size, return_val_index): Remove.
4899 (return_val): Now a VEC.
4900 (completion_list_add_name): Update.
4901 (default_make_symbol_completion_list_break_on)
4902 (default_make_symbol_completion_list, make_symbol_completion_list)
4903 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4904 Return a VEC.
4905 (add_filename_to_list): Update.
4906 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4907 <list>: Now a VEC.
4908 (maybe_add_partial_symtab_filename): Update.
4909 (make_source_files_completion_list): Return a VEC.
4910 * symtab.h (default_make_symbol_completion_list_break_on)
4911 (default_make_symbol_completion_list, make_symbol_completion_list)
4912 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4913 (make_source_files_completion_list): Update.
4914
4915 2012-06-13 Tom Tromey <tromey@redhat.com>
4916
4917 * breakpoint.c (add_catch_command): Use completer_ftype.
4918 * breakpoint.h: Include command.h.
4919 (add_catch_command): Use completer_ftype.
4920 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4921 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4922 Use completer_ftype.
4923 * command.h (completer_ftype): New typedef.
4924 (set_cmd_completer): Use it.
4925 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4926 completer_ftype.
4927
4928 2012-06-13 Pedro Alves <palves@redhat.com>
4929
4930 Partial revert of previous change.
4931
4932 * serial.c (scb_base): New global.
4933 (serial_for_fd): New.
4934 (serial_open, serial_fdopen_ops): Link new serial in open serials
4935 chain.
4936 (do_serial_close): Unlink serial from the open serials chain.
4937
4938 2012-06-12 Pedro Alves <palves@redhat.com>
4939
4940 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4941 threads here.
4942 (prepare_for_detach): No longer context switch here in non-stop
4943 mode.
4944 (fetch_inferior_event): Ditto.
4945 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4946 to the event thread before removing breakpoints. Switch to the
4947 event thread before inserting breakpoints and resuming.
4948 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4949 event thread before resuming.
4950 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4951 Switch to the event thread before removing breakpoints.
4952
4953 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4954
4955 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4956 special characters correctly for the Windows shells. See
4957 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4958 report.
4959 [!__MINGW32__]: Remove extra double quote character from special
4960 characters.
4961
4962 2012-06-11 Stan Shebs <stan@codesourcery.com>
4963
4964 * ui-out.h: Remove #if 0 declarations.
4965 * ui-out.c: Remove #if 0 functions.
4966
4967 2012-06-11 Pedro Alves <palves@redhat.com>
4968
4969 * ser-base.c (run_async_handler_and_reschedule): New.
4970 (fd_event, push_event): Use it.
4971 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4972 reference count to 1.
4973 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4974 instead of xfree.
4975 (serial_is_open, serial_ref, serial_unref): New.
4976 * serial.h (serial_open): Adjust comment.
4977 (serial_is_open): Declare.
4978 (serial_close): Adjust comment.
4979 (serial_ref, serial_unref) Declare.
4980 (struct serial): New field 'refcnt'.
4981
4982 2012-06-11 Pedro Alves <palves@redhat.com>
4983
4984 Remove #if 0'd "connect" command, and unnecessary associated
4985 refcounting and serial reuse bits.
4986
4987 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4988 * serial.c (last_serial_opened): Delete.
4989 (scb_base): Delete.
4990 (serial_open): Adjust.
4991 (serial_for_fd): Delete.
4992 (serial_fdopen_ops, do_serial_close): Adjust.
4993 (serial_fdopen_ops): Adjust.
4994
4995 2012-06-11 Pedro Alves <palves@redhat.com>
4996
4997 * serial.c (do_serial_close): Remove early return when SCB is
4998 null.
4999
5000 2012-06-11 Tom Tromey <tromey@redhat.com>
5001
5002 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5003
5004 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5005
5006 Fix regression by the "ambiguous linespec" series.
5007 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5008 get_last_displayed_symtab and get_last_displayed_line and depending
5009 on CURSAL.
5010
5011 2012-06-11 Tom Tromey <tromey@redhat.com>
5012
5013 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5014 (dw2_find_symbol_file): Use it.
5015
5016 2012-06-11 Michael Eager <eager@eagercon.com>
5017
5018 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5019 * mips-linux-tdep.h (mips_signals): New
5020
5021 2012-06-11 Tom Tromey <tromey@redhat.com>
5022
5023 * infrun.c (handle_inferior_event)
5024 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5025 breakpoint.
5026 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5027 exception logic in all cases. Update comments.
5028 (insert_longjmp_resume_breakpoint): Set the exception resume
5029 breakpoint.
5030
5031 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5032
5033 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5034
5035 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5036
5037 * valarith.c (binop_types_user_defined_p): Fix a typo.
5038
5039 2012-06-08 Yao Qi <yao@codesourcery.com>
5040 Chung-Lin Tang <cltang@codesourcery.com>
5041
5042 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5043 * arch-utils.h: Declare.
5044 * gdbarch.sh: Add return_in_first_hidden_param_p.
5045 * gdbarch.c, gdbarch.h: Regenerated.
5046 * infcall.c (call_function_by_hand): Call
5047 gdbarch_return_in_first_hidden_param_p instead of
5048 language_pass_by_reference.
5049
5050 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5051 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5052 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5053 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5054 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5055 `cplus_return_struct_by_reference'.
5056 (tic6x_return_value): Handle language cplusplus.
5057 (tic6x_return_in_first_hidden_param_p): New.
5058 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5059
5060 2012-06-07 Doug Evans <dje@google.com>
5061
5062 * dwarf2read.c (dwarf2_cu): Add comment.
5063
5064 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5065
5066 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5067 variable.
5068 (mips_eabi_push_dummy_call): Likewise.
5069 (mips_n32n64_push_dummy_call): Likewise.
5070 (mips_o32_push_dummy_call): Likewise.
5071 (mips_o64_push_dummy_call): Likewise.
5072
5073 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5074
5075 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5076
5077 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5078
5079 * mips-tdep.c (mips_pseudo_register_type): Use
5080 mips_float_register_p.
5081
5082 2012-06-06 Pedro Alves <palves@redhat.com>
5083
5084 * infrun.c (handle_inferior_event): Remove calls to
5085 reinit_frame_cache that follow a context_switch call.
5086
5087 2012-06-06 Pedro Alves <palves@redhat.com>
5088
5089 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5090 context_switch and remove stale comment.
5091
5092 2012-06-06 Pedro Alves <palves@redhat.com>
5093
5094 * infrun.c (struct execution_control_state): Remove
5095 `new_thread_event' field.
5096 (handle_inferior_event): Simplify new threads handling; don't
5097 resume the inferior if we find a new thread.
5098
5099 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5100
5101 * NEWS: Document the deprecation of SH's 'regs' command.
5102 * inferior.h (all_registers_info): Add function declaration.
5103 * sh-tdep.c (sh_show_regs): Remove variable.
5104 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5105 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5106 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5107 (sh_show_regs_command): Remove functions.
5108 (sh_gdbarch_init): Don't set sh_show_regs.
5109 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5110 'info all-registers'.
5111 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5112 (sh64_show_regs): Remove functions.
5113 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5114
5115 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5116
5117 * configure.ac: Move development=true below AC_INIT.
5118 * configure: Regenerate.
5119
5120 2012-06-05 Stan Shebs <stan@codesourcery.com>
5121
5122 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5123 gdb_stdout.
5124
5125 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5126
5127 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5128 argument as ssize_t.
5129 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5130 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5131 * target.c (target_read_stack, target_write_memory)
5132 (target_write_raw_memory): Likewise.
5133 * target.h (target_read_stack, target_write_memory)
5134 (target_write_raw_memory): Likewise.
5135
5136 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5137
5138 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5139 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5140 * target.c (target_read_memory): Change LEN to ssize_t.
5141 * target.h (target_read_memory): Change LEN to ssize_t.
5142
5143 2012-06-05 Pedro Alves <palves@redhat.com>
5144
5145 PR backtrace/13866
5146
5147 * breakpoint.c (until_break_command): Only fetch the selected
5148 frame after decode_line_1.
5149
5150 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5151
5152 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5153 event breakpoint at _start, __start or main if a program
5154 interpreter is not found.
5155
5156 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5157
5158 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5159 Add declaration.
5160 * windows-tdep.c: #include "objfiles.h".
5161 (windows_iterate_over_objfiles_in_search_order): New function.
5162 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5163 iterate_over_objfiles_in_search_order gdbarch method to
5164 windows_iterate_over_objfiles_in_search_order.
5165 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5166
5167 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5168
5169 * gdbarch.sh: Add generation of
5170 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5171 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5172 (iterate_over_objfiles_in_search_order): New gdbarch method.
5173 * gdbarch.h, gdbarch.c: Regenerate.
5174 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5175 Add declaration.
5176 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5177 New function.
5178 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5179 out of lookup_symbol_aux_symtabs.
5180 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5181 call to lookup_symbol_aux_objfile.
5182 (struct global_sym_lookup_data): New type.
5183 (lookup_symbol_global_iterator_cb): New function.
5184 (lookup_symbol_global): Search for symbol using
5185 gdbarch_iterate_over_objfiles_in_search_order and
5186 lookup_symbol_global_iterator_cb.
5187 * findvar.c (struct minsym_lookup_data): New type.
5188 (minsym_lookup_iterator_cb): New function.
5189 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5190 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5191 and minsym_lookup_iterator_cb.
5192
5193 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5194
5195 Revert the following patch:
5196 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5197 try locating the symbol in the symbol's own objfile first, before
5198 extending the search to all objfiles.
5199 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5200 out of lookup_symbol_aux_symtabs.
5201 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5202 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5203 Do not search EXCLUDE_OBJFILE.
5204 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5205 (lookup_symbol_global): Search for matches in the block's objfile
5206 first, before searching all other objfiles.
5207
5208 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5209
5210 * breakpoint.c (find_condition_and_thread): Stop parsing
5211 as soon as the first invalid keyword is found.
5212
5213 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5214
5215 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5216
5217 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5218
5219 * config/djgpp/djcheck.sh: Add copyright header.
5220
5221 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5222
5223 * copyright.py (update_files, main): Fix path to update-copyright
5224 script.
5225
5226 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5227
5228 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5229 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5230 for which a reminder to update by hand is printed.
5231
5232 2012-06-04 Doug Evans <dje@google.com>
5233
5234 * buildsym.c (make_blockvector): Add comment.
5235
5236 2012-06-04 Pedro Alves <palves@redhat.com>
5237
5238 * arch-utils.c (default_gdb_signal_from_target): Delete.
5239 * arch-utils.h (default_gdb_signal_from_target): Delete.
5240 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5241 gdbarch_gdb_signal_from_target_p.
5242 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5243 predicate).
5244 * gdbarch.h: Regenerate.
5245 * gdbarch.c: Regenerate.
5246
5247 2012-06-04 Pedro Alves <palves@redhat.com>
5248
5249 * gdbarch.sh (gdb_signal_from_target): Mention that the
5250 implementation of the method must be host independent.
5251 * gdbarch.h: Regenerate.
5252
5253 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5254
5255 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5256 parameters.
5257 (target_read_memory_bfd): New function.
5258 (symbol_file_add_from_memory): Use it.
5259
5260 2012-06-03 Doug Evans <dje@google.com>
5261
5262 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5263 of primary symtab.
5264 (basic_lookup_transparent_type): Ditto.
5265
5266 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5267 (ALL_PRIMARY_SYMTABS): Use it.
5268 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5269 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5270 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5271 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5272 (basic_lookup_transparent_type): Ditto.
5273
5274 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5275
5276 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5277 it to optimize resolution of demangled name.
5278
5279 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5280
5281 * configure.ac (development): Define new variable.
5282 Call AC_CHECK_LIB for mcheck if $development.
5283 (ERROR_ON_WARNING): Enable it by default only if $development.
5284 * config.in: Regenerate.
5285 * configure: Regenerate.
5286
5287 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5288
5289 * target.c (target_read_memory): Make LEN argument as size_t.
5290 * target.h (target_read_memory): Likewise.
5291
5292 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5293
5294 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5295
5296 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5297
5298 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5299 BookE interface for PowerPC server processors if not available
5300 in the Linux Kernel.
5301
5302 2012-05-31 Keith Seitz <keiths@redhat.com>
5303
5304 * linespec.c (decode_objc): Add cleanup to free
5305 INFO.FILE_SYMTABS.
5306 (find_linespec_symbols): Add cleanup to free CLASSES.
5307 * symfile.c (find_separate_debug_file_by_debuglink): Add
5308 cleanup to free DEBUGLINK.
5309 * ui-out.c (clear_header_list): No need to check if
5310 HEADER_NEXT.COLHDR is NULL.
5311 Free HEADER_NEXT.COL_NAME.
5312
5313 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5314
5315 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5316 warning.
5317
5318 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5319
5320 * configure.host (gdb_host_cpu): Handle tilegx*.
5321 (gdb_host): Handle tilegx-*-linux*.
5322 * tilegx-linux-nat.c: New file.
5323 * config/tilegx/linux.mh: New file.
5324
5325 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5326
5327 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5328 tilegx-linux-tdep.o.
5329 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5330 tilegx-linux-tdep.c.
5331 * configure.tgt: Handle tilegx-*-linux*.
5332 * tilegx-tdep.h: New file.
5333 * tilegx-tdep.c: New file.
5334 * tilegx-linux-tdep.c: New file.
5335 * regformats/reg-tilegx.dat: New file.
5336
5337 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5338
5339 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5340 accounting of hw watchpoints on ppc.
5341
5342 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5343
5344 * source.c (openp): Expand tilde in path entries.
5345
5346 2012-05-29 Doug Evans <dje@google.com>
5347
5348 * buildsym.c (block_compar): Fix comment.
5349 (end_symtab): Fix and clarify some comments.
5350
5351 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5352 cleanup_undefined_types.
5353 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5354 All callers updated.
5355
5356 2012-05-29 Tom Tromey <tromey@redhat.com>
5357
5358 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5359 fails.
5360 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5361 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5362 fails.
5363 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5364 fails.
5365
5366 2012-05-29 Tristan Gingold <gingold@adacore.com>
5367
5368 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5369 (struct darwin_info): ... New struct.
5370 (solib_darwin_pspace_data): New variable.
5371 (darwin_pspace_data_cleanup): New function.
5372 (get_darwin_info): Likewise.
5373 (darwin_dyld_version_ok, darwin_load_image_infos)
5374 (darwin_solib_get_all_image_info_addr_at_init)
5375 (darwin_solib_read_all_image_info_addr): Add info argument.
5376 Adjust code.
5377 (darwin_current_sos): Use per pspace structure.
5378 (darwin_solib_create_inferior_hook): Likewise.
5379 (darwin_clear_solib): Likewise.
5380 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5381
5382 2012-05-28 Pedro Alves <palves@redhat.com>
5383
5384 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5385 block that uses them. Clear ecss before handling each event.
5386
5387 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5388
5389 * solib-svr4.c (svr4_current_sos): New comment on
5390 svr4_current_sos_via_xfer_libraries fall back.
5391
5392 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5393
5394 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5395 it as a fallback for TYPE_IS_OPAQUE.
5396 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5397 symbols for lookup_symbol.
5398
5399 2012-05-24 John Steele Scott <toojays@toojays.net>
5400
5401 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5402 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5403 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5404 (check_producer): ... this new function, which also checks for ICC
5405 and caches the result.
5406 (producer_is_icc): New function.
5407 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5408 producer was ICC.
5409
5410 2012-05-24 Pedro Alves <palves@redhat.com>
5411
5412 PR gdb/7205
5413
5414 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5415 (default_gdb_signal_to_target): ... this. Add comment.
5416 (default_gdb_signal_from_host): Rename to ...
5417 (default_gdb_signal_from_target): ... this. Add comment.
5418 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5419 (default_gdb_signal_to_target): ... this.
5420 (default_gdb_signal_from_host): Rename to ...
5421 (default_gdb_signal_from_target): ... this.
5422 * corelow.c (core_open): Adjust to naming change. Replace comment.
5423 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5424 (gdb_signal_from_target): ... this. Adjust to
5425 default_gdb_signal_from_host naming change. Extend comment.
5426 (gdb_signal_to_host): Rename to ...
5427 (gdb_signal_to_target): ... this. Adjust to
5428 default_gdb_signal_to_host naming change.
5429 * gdbarch.h, gdbarch.c: Renegerate.
5430
5431 2012-05-24 Pedro Alves <palves@redhat.com>
5432
5433 PR gdb/7205
5434
5435 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5436
5437 2012-05-24 Pedro Alves <palves@redhat.com>
5438
5439 PR gdb/7205
5440
5441 Replace target_signal with gdb_signal throughout.
5442
5443 2012-05-24 Pedro Alves <palves@redhat.com>
5444
5445 PR tui/14159
5446
5447 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5448 string, instead of reusing the va_list argument.
5449
5450 2012-05-24 Tom Tromey <tromey@redhat.com>
5451
5452 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5453 Remove.
5454
5455 2012-05-23 Doug Evans <dje@google.com>
5456
5457 * symtab.c (search_symbols): Formatting fixes.
5458 (print_symbol_info): Formatting fixes.
5459
5460 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5461 int64_t change to leb128 API.
5462 (read_encoded_value, decode_frame_entry_1): Ditto.
5463 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5464 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5465 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5466 (execute_stack_op): Ditto.
5467 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5468 (safe_read_uleb128, safe_read_sleb128): Ditto.
5469 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5470 (dwarf2_compile_expr_to_ax): Ditto.
5471 (locexpr_describe_location_piece): Ditto.
5472 (disassemble_dwarf_expression): Ditto.
5473 (locexpr_describe_location_1): Ditto.
5474
5475 2012-05-23 Stan Shebs <stan@codesourcery.com>
5476 Kwok Cheung Yeung <kcy@codesourcery.com>
5477
5478 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5479 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5480 (mi-cmd-info.o): New rule.
5481 * osdata.h (info_osdata_command): New declaration.
5482 * osdata.c (info_osdata_command): Change to non-static.
5483 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5484 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5485 * mi/mi-cmd-info.c: New file.
5486
5487 2012-05-23 Doug Evans <dje@google.com>
5488
5489 * symtab.c (search_symbols): Pass NULL for file_matcher to
5490 expand_symtabs_matching if there are no files to match.
5491
5492 * gdbtypes.c (lookup_typename): Simplify.
5493
5494 2012-05-23 Pedro Alves <palves@redhat.com>
5495
5496 * arch-utils.h (default_target_signal_to_host): Delete.
5497 * arch-utils.c (default_target_signal_to_host): Delete.
5498 * gdbarch.sh (target_signal_to_host): Remove.
5499 * gdbarch.h, gdbarch.c: Regenerate.
5500
5501 2012-05-22 Doug Evans <dje@google.com>
5502
5503 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5504 "const gdb_byte *".
5505 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5506 (execute_cfa_program): Update to match API of leb128 functions.
5507 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5508 "const gdb_byte *".
5509 (read_unsigned_leb128, read_signed_leb128): Delete.
5510 (read_initial_length): Change type of buf argument to
5511 "const gdb_byte *".
5512 (read_encoded_value): Update to match API of leb128 functions.
5513 (decode_frame_entry): Change result to "const gdb_byte *", and
5514 similarly for "start" parameter.
5515 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5516 (dwarf2_build_frame_info): Change local frame_ptr to
5517 "const gdb_byte *".
5518 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5519 read_uleb128, read_sleb128. All callers updated.
5520 (safe_skip_leb128): New function.
5521 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5522 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5523 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5524 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5525 read_uleb128, read_sleb128.
5526 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5527 (execute_stack_op): Update to match API of leb128 functions.
5528 * dwarf2expr.h: #include "leb128.h".
5529 (read_uleb128, read_sleb128): Delete.
5530 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5531 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5532 * dwarf2loc.c (debug_loc_kind): New enum.
5533 (decode_debug_loc_addresses): New function.
5534 (decode_debug_loc_dwo_addresses): New function.
5535 (dwarf2_find_location_expression): Rewrite.
5536 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5537 (locexpr_describe_location_piece): Ditto.
5538 (disassemble_dwarf_expression): Ditto.
5539 (locexpr_describe_location_1): Ditto.
5540 (loclist_describe_location): Rewrite.
5541 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5542 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5543 (dwarf2_section_buffer_overflow_complaint): Renamed from
5544 dwarf2_macros_too_long_complaint. All callers updated.
5545 (skip_leb128): Delete.
5546 (init_cu_die_reader): Initialize reader->buffer_end.
5547 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5548 (skip_form_bytes): New arg buffer_end. All callers updated.
5549 Replace call to skip_leb128 with gdb_skip_leb128.
5550 (skip_unknown_opcode): New arg mac_end. All callers updated.
5551 (fill_in_loclist_baton): Initialize baton->from_dwo.
5552
5553 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5554
5555 * mips-linux-nat.c (mips_linux_read_description): Use a more
5556 verbose error message.
5557
5558 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5559
5560 * NEWS: Add MIPS/Linux DSP support.
5561 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5562 (SIGCONTEXT_DSPCTL): New macro.
5563 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5564 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5565 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5566 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5567 (N64_SIGCONTEXT_HI3): Likewise.
5568 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5569 (N64_SIGCONTEXT_LO3): Likewise.
5570 (N64_SIGCONTEXT_DSPCTL): Likewise.
5571 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5572 (mips_linux_o32_sigframe_init): Handle DSP registers.
5573 (mips_linux_n32n64_sigframe_init): Likewise.
5574
5575 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5576
5577 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5578 call to abort.
5579
5580 2012-05-22 Pedro Alves <palves@redhat.com>
5581
5582 * target.h (store_waitstatus): Move declaration ...
5583 * inf-child.h (store_waitstatus): ... here.
5584 * target.c: Move inclusion of gdb_wait.h, and ...
5585 (store_waitstatus): ... this ...
5586 * inf-child.c: ... here.
5587 * linux-nat.c: Include inf-child.h.
5588 * rs6000-nat.c: Include inf-child.h.
5589 * spu-linux-nat.c: Include inf-child.h.
5590
5591 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5592
5593 * tracepoint.c (start_tracing): Add missing i18n markup.
5594 (stop_tracing, set_trace_user): Ditto.
5595 (set_trace_notes, set_trace_stop_notes): Ditto.
5596
5597 2012-05-21 Tom Tromey <tromey@redhat.com>
5598
5599 PR c++/7173:
5600 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5601 types.
5602 * value.h (value_cast_pointers): Update.
5603 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5604 (value_cast): Update.
5605 (update_search_result): New function.
5606 (do_search_struct_field): New, from search_struct_field. Check
5607 for ambiguous results.
5608 (search_struct_field): Rewrite.
5609 * infcall.c (value_arg_coerce): Update.
5610 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5611 value_cast_pointers.
5612 * ada-lang.c (ada_convert_actual): Update.
5613
5614 2012-05-21 Tom Tromey <tromey@redhat.com>
5615
5616 * macroexp.c (macro_stringify): Terminate the string.
5617
5618 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5619
5620 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5621 Describe it.
5622 * auto-load.c (auto_load_expand_dir_vars): New function.
5623 (auto_load_safe_path_vec_update): Use it, remove the
5624 substitute_path_component call thanks to it.
5625 (auto_load_objfile_script): Remove the debug_file_directory processing.
5626 Use auto_load_expand_dir_vars, remove the substitute_path_component
5627 call thanks to it.
5628 * configure: Regenerate.
5629 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5630 path. Escape $ also for $debugdir.
5631 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5632 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5633
5634 2012-05-20 Doug Evans <dje@google.com>
5635
5636 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5637 before use. Check for symtab->includes == NULL before scanning it.
5638
5639 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5640
5641 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5642
5643 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5644
5645 * NEWS: Add microMIPS support and "set mips compression",
5646 "show mips compression" commands.
5647 * mips-tdep.h (mips_isa): New enum.
5648 (gdbarch_tdep): Add mips_isa.
5649 (mips_pc_is_mips16): Update prototype.
5650 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5651 * mips-tdep.c (mips_compression_mips16): New variable.
5652 (mips_compression_micromips): Likewise.
5653 (mips_compression_strings): Likewise.
5654 (mips_compression_string): Likewise.
5655 (is_mips16_isa, is_micromips_isa): New functions.
5656 (is_mips16_addr): Rename to...
5657 (is_compact_addr): ... this.
5658 (unmake_mips16_addr): Likewise to...
5659 (unmake_compact_addr): ... this.
5660 (make_mips16_addr): Likewise to...
5661 (make_compact_addr): ... this.
5662 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5663 functions.
5664 (mips_elf_make_msymbol_special): Handle microMIPS code.
5665 (msymbol_is_special): Rename to...
5666 (msymbol_is_mips16): ... this.
5667 (mips_make_symbol_special, mips_pc_is_mips16): Update
5668 accordingly.
5669 (msymbol_is_mips, msymbol_is_micromips): New functions.
5670 (mips16_to_32_reg): Rename to...
5671 (mips_reg3_to_reg): ... this.
5672 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5673 (mips_pc_isa): Likewise.
5674 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5675 code.
5676 (mips_fetch_instruction): Pass return status instead of printing
5677 an error message if requested. Handle microMIPS code. Bail out
5678 on an invalid ISA.
5679 (micromips_op): New macro.
5680 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5681 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5682 (b6s4_op, b7s3_reg): Likewise.
5683 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5684 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5685 (mips_insn_size): New function.
5686 (mips32_next_pc): Update mips_fetch_instruction call.
5687 (micromips_relative_offset7): New function.
5688 (micromips_relative_offset10): Likewise.
5689 (micromips_relative_offset16): Likewise.
5690 (micromips_pc_insn_size): Likewise.
5691 (micromips_bc1_pc): Likewise.
5692 (micromips_next_pc): Likewise.
5693 (unpack_mips16): Update mips_fetch_instruction call.
5694 (extended_mips16_next_pc): Update according to change to
5695 mips16_to_32_reg.
5696 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5697 code.
5698 (mips16_scan_prologue): Update mips_fetch_instruction call.
5699 Update according to change to mips16_to_32_reg.
5700 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5701 (mips_insn16_frame_base_sniffer): Likewise.
5702 (micromips_decode_imm9): New function.
5703 (micromips_scan_prologue): Likewise.
5704 (mips_micro_frame_cache): Likewise.
5705 (mips_micro_frame_this_id): Likewise.
5706 (mips_micro_frame_prev_register): Likewise.
5707 (mips_micro_frame_sniffer): Likewise.
5708 (mips_micro_frame_unwind): New variable.
5709 (mips_micro_frame_base_address): New function.
5710 (mips_micro_frame_base): New variable.
5711 (mips_micro_frame_base_sniffer): New function.
5712 (mips32_scan_prologue): Update mips_fetch_instruction call.
5713 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5714 rather than for MIPS16.
5715 (mips_insn32_frame_base_sniffer): Likewise.
5716 (mips_addr_bits_remove): Handle microMIPS code.
5717 (deal_with_atomic_sequence): Rename to...
5718 (mips_deal_with_atomic_sequence): ... this. Update the type
5719 of the variable used to hold an instruction. Remove the ISA bit
5720 check. Update mips_fetch_instruction call.
5721 (micromips_deal_with_atomic_sequence): New function.
5722 (deal_with_atomic_sequence): Likewise.
5723 (mips_about_to_return): Handle microMIPS code. Update
5724 mips_fetch_instruction call.
5725 (heuristic_proc_start): Check for the standard MIPS ISA rather
5726 than for MIPS16. Update mips_pc_is_mips16 and
5727 mips_fetch_instruction calls. Handle microMIPS code.
5728 (mips_push_dummy_code): Handle microMIPS code.
5729 (mips_eabi_push_dummy_call): Likewise.
5730 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5731 (mips_o64_push_dummy_call): Handle microMIPS code.
5732 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5733 (is_delayed): Remove function.
5734 (mips_single_step_through_delay): Replace the call to is_delayed
5735 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5736 Handle microMIPS code.
5737 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5738 microMIPS code.
5739 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5740 call.
5741 (micromips_in_function_epilogue_p): New function.
5742 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5743 call.
5744 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5745 Handle microMIPS.
5746 (gdb_print_insn_mips): Likewise.
5747 (mips_breakpoint_from_pc): Likewise.
5748 (mips_remote_breakpoint_from_pc): New function.
5749 (mips32_instruction_has_delay_slot): Simplify making use of the
5750 updated mips_fetch_instruction interface.
5751 (micromips_instruction_has_delay_slot): New function.
5752 (mips16_instruction_has_delay_slot): Simplify making use of the
5753 updated mips_fetch_instruction interface.
5754 (mips_adjust_breakpoint_address): Check for the standard MIPS
5755 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5756 calls. Handle microMIPS code.
5757 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5758 (mips_skip_trampoline_code): Handle microMIPS code.
5759 (global_mips_compression): New function.
5760 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5761 file flags. Register the microMIPS remote breakpoint handler
5762 and heuristic frame unwinder.
5763 (show_mips_compression): New function.
5764 (_initialize_mips_tdep): Add the "set mips compression" and
5765 "show mips compression" commands.
5766
5767 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5768
5769 * ada-lang.c:
5770 * ada-tasks.c:
5771 * ada-varobj.c:
5772 * amd64-darwin-tdep.c:
5773 * arm-symbian-tdep.c:
5774 * arm-tdep.c:
5775 * avr-tdep.c:
5776 * ax-gdb.c:
5777 * bfin-linux-tdep.c:
5778 * breakpoint.c:
5779 * c-valprint.c:
5780 * cli/cli-cmds.c:
5781 * coffread.c:
5782 * cp-support.c:
5783 * cris-tdep.c:
5784 * dwarf2-frame-tailcall.c:
5785 * dwarf2-frame.c:
5786 * dwarf2expr.c:
5787 * dwarf2loc.c:
5788 * dwarf2read.c:
5789 * elfread.c:
5790 * eval.c:
5791 * expprint.c:
5792 * f-valprint.c:
5793 * frv-tdep.c:
5794 * h8300-tdep.c:
5795 * hppa-hpux-tdep.c:
5796 * hppa-tdep.c:
5797 * hppanbsd-tdep.c:
5798 * i386-nto-tdep.c:
5799 * i386-tdep.c:
5800 * i387-tdep.c:
5801 * ia64-tdep.c:
5802 * jit.c:
5803 * linespec.c:
5804 * linux-tdep.c:
5805 * lm32-tdep.c:
5806 * m2-valprint.c:
5807 * m32c-tdep.c:
5808 * m32r-rom.c:
5809 * m32r-tdep.c:
5810 * m68k-tdep.c:
5811 * m68klinux-tdep.c:
5812 * mi/mi-main.c:
5813 * microblaze-tdep.c:
5814 * mips-linux-tdep.c:
5815 * mips-tdep.c:
5816 * mn10300-tdep.c:
5817 * p-valprint.c:
5818 * parse.c:
5819 * ppc-linux-tdep.c:
5820 * ppc-sysv-tdep.c:
5821 * printcmd.c:
5822 * python/py-finishbreakpoint.c:
5823 * python/py-inferior.c:
5824 * python/py-infthread.c:
5825 * python/py-type.c:
5826 * python/python.c:
5827 * remote-fileio.c:
5828 * remote-m32r-sdi.c:
5829 * remote-mips.c:
5830 * reverse.c:
5831 * rl78-tdep.c:
5832 * rs6000-aix-tdep.c:
5833 * rs6000-tdep.c:
5834 * s390-tdep.c:
5835 * score-tdep.c:
5836 * sh64-tdep.c:
5837 * skip.c:
5838 * solib-darwin.c:
5839 * solib-dsbt.c:
5840 * solib-frv.c:
5841 * sparc-tdep.c:
5842 * spu-multiarch.c:
5843 * spu-tdep.c:
5844 * stack.c:
5845 * symfile.c:
5846 * symtab.c:
5847 * tic6x-tdep.c:
5848 * tracepoint.c:
5849 * v850-tdep.c:
5850 * valarith.c:
5851 * valprint.c:
5852 * value.c:
5853 * xcoffread.c:
5854 * xtensa-tdep.c:
5855 * ada-lang.c:
5856 * ada-tasks.c:
5857 * ada-varobj.c:
5858 * amd64-darwin-tdep.c:
5859 * arm-symbian-tdep.c:
5860 * arm-tdep.c: Delete unused variables.
5861
5862 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5863
5864 Rename $ddir to $datadir.
5865 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5866 * auto-load.c (auto_load_safe_path_vec_update)
5867 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5868 * configure: Regenerate.
5869 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5870 Likewise. Remove the 'use $ddir' help string.
5871
5872 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5873
5874 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5875 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5876
5877 2012-05-18 Tom Tromey <tromey@redhat.com>
5878
5879 PR exp/13907:
5880 * valprint.h (struct value_print_options) <symbol_print>: New
5881 field.
5882 * valprint.c (user_print_options): Add default for symbol_print.
5883 (show_symbol_print): New function.
5884 (generic_val_print): Respect symbol_print.
5885 (_initialize_valprint): Add "print symbol" setting.
5886 * f-valprint.c (f_val_print): Respect symbol_print.
5887 * c-valprint.c (c_val_print): Respect symbol_print.
5888 * NEWS: Update.
5889 * printcmd.c (print_address_symbolic): Return int. Ignore some
5890 zero-size symbols.
5891 (print_address_demangle): Return int.
5892 * defs.h: (print_address_symbolic): Return int.
5893 * value.h (print_address_demangle): Return int.
5894
5895 2012-05-18 Tom Tromey <tromey@redhat.com>
5896
5897 * valprint.c (val_print_string): Don't print leading space.
5898 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5899 print space before string or vtbl.
5900 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5901 before string.
5902 * jv-valprint.c (java_value_print): Print space before string.
5903 * go-valprint.c (print_go_string): Print space before string.
5904 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5905 space before string.
5906 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5907 space before string or vtbl.
5908 * auxv.c (fprint_target_auxv): Print space after address.
5909
5910 2012-05-18 Tom Tromey <tromey@redhat.com>
5911
5912 * printcmd.c (print_address_demangle): Remove special case for 0.
5913
5914 2012-05-18 Tom Tromey <tromey@redhat.com>
5915
5916 * printcmd.c (print_address_demangle): Add 'opts' argument.
5917 * p-valprint.c (pascal_val_print): Update.
5918 * jv-valprint.c (java_val_print): Update.
5919 * value.h: Update.
5920 * valprint.c (generic_val_print): Update.
5921 (print_function_pointer_address): Add 'options' argument. Remove
5922 'addressprint' argument. Update.
5923 * m2-valprint.c (print_unpacked_pointer): Update.
5924 * gnu-v3-abi.c (print_one_vtable): Update.
5925 (gnuv3_print_method_ptr): Update.
5926 * f-valprint.c (f_val_print): Update.
5927 * cp-valprint.c (cp_print_value_fields): Update.
5928 * valprint.h (print_function_pointer_address): Update.
5929 * c-valprint.c (c_val_print): Update.
5930
5931 2012-05-18 Tom Tromey <tromey@redhat.com>
5932
5933 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5934 directly corresponding to the found psymtab.
5935 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5936 (dw2_find_pc_sect_symtab): Use it.
5937 * block.h (blockvector_contains_pc): Declare.
5938 * block.c (find_block_in_blockvector): New function.
5939 (blockvector_for_pc_sect): Use it.
5940 (blockvector_contains_pc): New function.
5941
5942 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5943
5944 * mips-tdep.h (mips_write_pc): New prototype.
5945 * mips-tdep.c (mips_write_pc): Make external, add description.
5946 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5947 add description.
5948
5949 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5950
5951 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5952 mips_regnum->pc.
5953 (mips_unwind_pc, mips_write_pc): Likewise.
5954 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5955 gdbarch_read_pc.
5956
5957 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5958
5959 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5960 proc_warn, proc_error, proc_get_status, proc_flags,
5961 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5962 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5963 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5964 proc_stop_process, proc_wait_for_stop, proc_run_process,
5965 proc_set_traced_signals, proc_set_traced_faults,
5966 proc_set_traced_sysentry, proc_set_traced_sysexit,
5967 proc_set_held_signals, proc_get_held_signals,
5968 proc_get_traced_signals, proc_get_traced_faults,
5969 proc_get_traced_sysentry, proc_get_traced_sysexit,
5970 proc_clear_current_fault, proc_set_current_signal,
5971 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5972 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5973 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5974 proc_get_current_thread, proc_get_current_thread,
5975 proc_get_current_thread, proc_update_threads,
5976 proc_update_threads, proc_update_threads, proc_update_threads,
5977 proc_iterate_over_threads, procfs_find_new_threads,
5978 procfs_pid_to_str): Make static. Remove advance declaration.
5979 (proc_cursig): Make static. Conditionalized defintion on
5980 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5981 (proc_syscall, proc_set_kill_on_last_close,
5982 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5983 proc_get_pending_signals, proc_get_signal_actions,
5984 proc_trace_signal, proc_ignore_signal): Delete.
5985
5986 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5987
5988 * coffread.c (cs_section_address): Passing proper argument for
5989 `bfd_get_section_vma'.
5990 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5991 `bfd_get_section_flags'.
5992 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5993 `bfd_get_section_vma'.
5994
5995 2012-05-16 Tom Tromey <tromey@redhat.com>
5996
5997 PR macros/13205:
5998 * macrotab.h: (macro_define_special): Declare.
5999 (enum macro_special_kind): New.
6000 (struct macro_definition) <argc, replacement>: Update comments.
6001 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6002 (macro_define_object_internal): New function.
6003 (macro_define_object): Use it.
6004 (macro_define_special): New function.
6005 (fixup_definition): New function.
6006 (macro_lookup_definition, foreach_macro_in_scope)
6007 (foreach_macro): Use fixup_definition.
6008 * macroexp.h (macro_stringify): Declare.
6009 * macroexp.c (free_buffer_return_text): New function.
6010 (stringify): Constify "arg".
6011 (macro_stringify): New function.
6012 * dwarf2read.c (macro_start_file): Call macro_define_special.
6013
6014 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6015 Maciej W. Rozycki <macro@mips.com>
6016
6017 * breakpoint.h (bp_location): Add related_address member.
6018 * inferior.h (get_return_value): Take a pointer to struct value
6019 instead of struct type for the function requested.
6020 * value.h (using_struct_return): Likewise.
6021 * gdbarch.sh (return_value): Take a pointer to struct value
6022 instead of struct type for the function requested.
6023 * breakpoint.c (set_breakpoint_location_function): Initialize
6024 related_address for bp_gnu_ifunc_resolver breakpoints.
6025 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6026 requested function's address to gdbarch_return_value.
6027 * eval.c (evaluate_subexp_standard): Pass the requested
6028 function's address to using_struct_return.
6029 * infcall.c (call_function_by_hand): Pass the requested
6030 function's address to using_struct_return and
6031 gdbarch_return_value.
6032 * infcmd.c (get_return_value): Take a pointer to struct value
6033 instead of struct type for the function requested.
6034 (print_return_value): Update accordingly.
6035 (finish_command_continuation): Likewise.
6036 * stack.c (return_command): Pass the requested function's
6037 address to using_struct_return and gdbarch_return_value.
6038 * value.c (using_struct_return): Take a pointer to struct value
6039 instead of struct type for the function requested. Pass the
6040 requested function's address to gdbarch_return_value.
6041 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6042 New function_value member, replacing function_type.
6043 (bpfinishpy_dealloc): Update accordingly.
6044 (bpfinishpy_pre_stop_hook): Likewise.
6045 (bpfinishpy_init): Likewise. Record the requested function's
6046 address.
6047 * mips-tdep.c (mips_fval_reg): New enum.
6048 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6049 words put in GP registers.
6050 (mips_o64_push_dummy_call): Update a comment.
6051 (mips_o32_return_value): Take a pointer to struct value instead
6052 of struct type for the function requested and use it to check if
6053 using the MIPS16 calling convention. Return the designated
6054 general purpose registers for floating-point values returned in
6055 MIPS16 mode.
6056 (mips_o64_return_value): Likewise.
6057 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6058 (ppc_sysv_abi_broken_return_value): Likewise.
6059 (ppc64_sysv_abi_return_value): Likewise.
6060 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6061 value instead of struct type for the function requested.
6062 * amd64-tdep.c (amd64_return_value): Likewise.
6063 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6064 * arm-tdep.c (arm_return_value): Likewise.
6065 * avr-tdep.c (avr_return_value): Likewise.
6066 * bfin-tdep.c (bfin_return_value): Likewise.
6067 * cris-tdep.c (cris_return_value): Likewise.
6068 * frv-tdep.c (frv_return_value): Likewise.
6069 * h8300-tdep.c (h8300_return_value): Likewise.
6070 (h8300h_return_value): Likewise.
6071 * hppa-tdep.c (hppa32_return_value): Likewise.
6072 (hppa64_return_value): Likewise.
6073 * i386-tdep.c (i386_return_value): Likewise.
6074 * ia64-tdep.c (ia64_return_value): Likewise.
6075 * iq2000-tdep.c (iq2000_return_value): Likewise.
6076 * lm32-tdep.c (lm32_return_value): Likewise.
6077 * m32c-tdep.c (m32c_return_value): Likewise.
6078 * m32r-tdep.c (m32r_return_value): Likewise.
6079 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6080 * m68k-tdep.c (m68k_return_value): Likewise.
6081 (m68k_svr4_return_value): Likewise.
6082 * m88k-tdep.c (m88k_return_value): Likewise.
6083 * mep-tdep.c (mep_return_value): Likewise.
6084 * microblaze-tdep.c (microblaze_return_value): Likewise.
6085 * mn10300-tdep.c (mn10300_return_value): Likewise.
6086 * moxie-tdep.c (moxie_return_value): Likewise.
6087 * mt-tdep.c (mt_return_value): Likewise.
6088 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6089 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6090 (ppc_sysv_abi_broken_return_value): Likewise.
6091 (ppc64_sysv_abi_return_value): Likewise.
6092 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6093 * rl78-tdep.c (rl78_return_value): Likewise.
6094 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6095 * rx-tdep.c (rx_return_value): Likewise.
6096 * s390-tdep.c (s390_return_value): Likewise.
6097 * score-tdep.c (score_return_value): Likewise.
6098 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6099 (sh_return_value_fpu): Likewise.
6100 * sh64-tdep.c (sh64_return_value): Likewise.
6101 * sparc-tdep.c (sparc32_return_value): Likewise.
6102 * sparc64-tdep.c (sparc64_return_value): Likewise.
6103 * spu-tdep.c (spu_return_value): Likewise.
6104 * tic6x-tdep.c (tic6x_return_value): Likewise.
6105 * v850-tdep.c (v850_return_value): Likewise.
6106 * vax-tdep.c (vax_return_value): Likewise.
6107 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6108 * xtensa-tdep.c (xtensa_return_value): Likewise.
6109 * gdbarch.c: Regenerate.
6110 * gdbarch.h: Regenerate.
6111
6112 2012-05-15 Tom Tromey <tromey@redhat.com>
6113
6114 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6115
6116 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6117
6118 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6119 of command in two error message.
6120
6121 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6122
6123 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6124
6125 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6126
6127 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6128
6129 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6130
6131 * NEWS (show auto-load scripts-directory): Add forgotten command.
6132
6133 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6134
6135 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6136 parameters.
6137
6138 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6139
6140 * amd64-tdep.c: Include features/i386/x32.c and
6141 features/i386/x32-avx.c.
6142 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6143 initialize_tdesc_x32_avx.
6144
6145 2012-05-14 Stan Shebs <stan@codesourcery.com>
6146
6147 Add dynamic printf.
6148 * breakpoint.h (enum bptype): New type bp_dprintf.
6149 (struct breakpoint): New field extra_string.
6150 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6151 (create_breakpoint): Add extra_string arg.
6152 * breakpoint.c (dprintf_breakpoint_ops): New.
6153 (is_breakpoint): Add bp_dprintf.
6154 (bpstat_what): Add dprintf case.
6155 (bptype_string): Ditto.
6156 (print_one_breakpoint_location): Ditto.
6157 (init_bp_location): Ditto.
6158 (bkpt_print_mention): Ditto.
6159 (dprintf_style_enums): New array.
6160 (dprintf_style): New global.
6161 (dprintf_function): New global.
6162 (dprintf_channel): New global.
6163 (update_dprintf_command_list): New function.
6164 (update_dprintf_commands): New function.
6165 (init_breakpoint_sal): Add extra_string argument, handle it.
6166 (create_breakpoint_sal): Add extra_string argument.
6167 (create_breakpoints_sal): Add extra_string argument, update callers.
6168 (find_condition_and_thread): Add extra argument.
6169 (create_breakpoint): Add extra_string argument, record it.
6170 (dprintf_command): New function.
6171 (break_command_1): Add arg to create_breakpoint call.
6172 (handle_gnu_v3_exceptions): Ditto.
6173 (trace_command): Ditto.
6174 (ftrace_command): Ditto.
6175 (strace_command): Ditto.
6176 (bkpt_print_mention): Add dprintf case.
6177 (create_breakpoint_sal_default): Add extra_string argument.
6178 (_initialize_breakpoint): Add new commands.
6179 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6180 * python/py-breakpoint.c (bppy_init): Ditto.
6181 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6182
6183 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6184
6185 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6186
6187 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6188
6189 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6190 unsigned long long.
6191
6192 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6193
6194 Add a new function gdb.find_pc_line to the Python API.
6195 * NEWS (Python Scripting): Add entry about the new function.
6196 * python/python.c (gdbpy_find_pc_line): New function which
6197 implements gdb.find_pc_line.
6198 (GdbMethods): Add entry for the new function.
6199
6200 2012-05-12 Pedro Alves <palves@redhat.com>
6201
6202 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6203 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6204
6205 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6206
6207 * inferior.c: Include completer.h
6208 (initialize_inferiors): Set completer of add-inferior to
6209 filename_completer.
6210
6211 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6212
6213 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6214 gdbarch_ptr_bit for x32 core dump.
6215
6216 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6217
6218 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6219 and features/i386/x32-avx-linux.c.
6220
6221 2012-05-11 Stan Shebs <stan@codesourcery.com>
6222 Kwok Cheung Yeung <kcy@codesourcery.com>
6223
6224 * NEWS: Describe new info os commands.
6225 * common/linux-osdata.c (PID_T, TIME_T): Define.
6226 (MAX_PID_T_STRLEN): New.
6227 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6228 MAX_PID_T_STRLEN.
6229 (command_from_pid): Add comment. Change to use PID_T.
6230 (commandline_from_pid): Change to use PID_T.
6231 (user_from_pid): Add comment.
6232 (get_process_owner): Add comment. Change to use PID_T and
6233 MAX_PID_T_STRLEN.
6234 (get_number_of_cpu_cores): Add comment.
6235 (get_cores_used_by_process): Add comment. Change to use PID_T and
6236 MAX_PID_T_STRLEN.
6237 (linux_xfer_osdata_processes): Change to use PID_T and
6238 MAX_PID_T_STRLEN.
6239 (compare_processes): New function.
6240 (linux_xfer_osdata_processgroups): New function.
6241 (linux_xfer_osdata_threads): Change to use PID_T.
6242 (linux_xfer_osdata_fds): New function.
6243 (format_socket_state, print_sockets): New functions.
6244 (union socket_addr): New union.
6245 (linux_xfer_osdata_isockets): New function.
6246 (time_from_time_t, group_from_gid): New functions.
6247 (linux_xfer_osdata_shm): New function.
6248 (linux_xfer_osdata_sem): New function.
6249 (linux_xfer_osdata_msg): New function.
6250 (linux_xfer_osdata_modules): New function.
6251 (osdata_table): Add new entries.
6252 * common/buffer.c (buffer_xml_printf): Add support for long and
6253 long long format specifiers.
6254
6255 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6256
6257 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6258 (tdesc_x32_avx_linux): Likewise.
6259
6260 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6261
6262 Implement multi-component --with-auto-load-dir.
6263 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6264 entries.
6265 (--with-auto-load-safe-path): Update the default value description.
6266 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6267 New.
6268 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6269 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6270 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6271 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6272 "set auto-load scripts-directory".
6273 * config.in: Regenerate.
6274 * configure: Regenerate.
6275 * configure.ac (--with-auto-load-dir): New configure option.
6276 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6277
6278 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6279
6280 Provide $ddir substitution for --with-auto-load-safe-path.
6281 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6282 entries.
6283 * auto-load.c: Include observer.h.
6284 (auto_load_safe_path_vec_update): Call substitute_path_component for
6285 each component. New variable ddir_subst.
6286 (auto_load_gdb_datadir_changed): New function.
6287 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6288 AUTO_LOAD_SAFE_PATH. New comment.
6289 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6290 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6291 * config.in: Regenerate.
6292 * configure: Regenerate.
6293 * configure.ac (--auto-load-safe-path): Rename
6294 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6295 GDB_DATADIR/auto-load.
6296 * defs.h (substitute_path_component): New declaration.
6297 * top.c: Include observer.h.
6298 (set_gdb_datadir): New function.
6299 (init_main): Install it for "set data-directory".
6300 * utils.c (substitute_path_component): New function.
6301
6302 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6303
6304 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6305 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6306 DEBUG_FILE_DIRECTORY. Handle multiple components of
6307 DEBUG_FILE_DIRECTORY.
6308
6309 2012-05-10 Tom Tromey <tromey@redhat.com>
6310
6311 * dwarf2read.c (recursively_write_psymbols): New function.
6312 (write_psymtabs_to_index): Use it.
6313
6314 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6315 field.
6316 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6317 (load_partial_comp_unit): Update.
6318 (queue_comp_unit): Add argument 'pretend_language'.
6319 (process_queue): Update.
6320 (psymtab_to_symtab_1): Skip dependencies that have a user.
6321 (load_partial_comp_unit_reader): Give meaning to the 'data'
6322 argument.
6323 (load_full_comp_unit): Add 'pretend_language' argument.
6324 (process_full_comp_unit): Add 'pretend_language' argument. Set
6325 language on CU.
6326 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6327 Update.
6328 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6329 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6330 Update.
6331 (prepare_one_comp_unit): Add 'pretend_language' argument.
6332
6333 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6334 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6335 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6336 (dw2_do_instantiate_symtab): Check whether symtab was read in
6337 before queueing.
6338 (dw2_instantiate_symtab): Add assertion. Call
6339 process_cu_includes.
6340 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6341 (partial_symtab_p): New typedef.
6342 (set_partial_user): New function.
6343 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6344 (scan_partial_symbols): Add imported CU to imported_symtabs.
6345 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6346 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6347 (get_symtab, recursively_compute_inclusions)
6348 (compute_symtab_includes, process_cu_includes)
6349 (process_imported_unit_die): New functions.
6350 (process_die) <DW_TAG_imported_unit>: New case.
6351 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6352
6353 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6354 comment.
6355 (struct partial_die_info) <locdesc>: Remove.
6356 <d>: New field.
6357 (process_psymtab_comp_unit): Add 'read_partial' argument.
6358 Update.
6359 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6360 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6361 (add_partial_symbol): Update.
6362 (process_die): Handle DW_TAG_partial_unit.
6363 (read_file_scope): Update comment.
6364 (load_partial_dies): Handle DW_TAG_imported_unit.
6365 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6366 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6367
6368 2012-05-10 Tom Tromey <tromey@redhat.com>
6369
6370 * cc-with-dwz.sh: New file.
6371
6372 2012-05-10 Tom Tromey <tromey@redhat.com>
6373
6374 * symtab.h (struct symtab) <includes, user>: New fields.
6375 * block.h (struct block_iterator) <d, idx, which>: New fields.
6376 * block.c (initialize_block_iterator, find_iterator_symtab)
6377 (block_iterator_step, block_iter_name_step)
6378 (block_iter_match_step): New functions.
6379 (block_iterator_first, block_iterator_next)
6380 (block_iter_name_first, block_iter_name_next)
6381 (block_iter_match_first, block_iter_match_next): Rewrite.
6382 (get_block_symtab): New function.
6383
6384 2012-05-10 Tom Tromey <tromey@redhat.com>
6385
6386 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6387 set_block_symtab.
6388 * jit.c (finalize_symtab): Use allocate_global_block,
6389 set_block_symtab.
6390 * buildsym.c (finish_block_internal): New function, from old
6391 finish_block.
6392 (finish_block): Rewrite.
6393 (end_symtab): Use finish_block_internal, set_block_symtab.
6394 * block.h (struct global_block): New.
6395 (allocate_global_block, set_block_symtab): Declare.
6396 * block.c (allocate_global_block, set_block_symtab): New
6397 functions.
6398
6399 2012-05-10 Tom Tromey <tromey@redhat.com>
6400
6401 * psymtab.c (partial_map_expand_apply): Add assertion.
6402 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6403 (psymtab_to_symtab): Find unshared psymtab.
6404 (dump_psymtab): Print including psymtabs.
6405 (recursively_search_psymtabs): New function.
6406 (expand_symtabs_matching_via_partial): Use it.
6407 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6408 fields.
6409 (enum psymtab_search_status): New.
6410
6411 2012-05-10 Tom Tromey <tromey@redhat.com>
6412
6413 * tracepoint.c (scope_info): Update.
6414 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6415 (find_pc_sect_symtab, search_symbols)
6416 (default_make_symbol_completion_list_break_on)
6417 (make_file_symbol_completion_list): Update.
6418 * symmisc.c (dump_symtab_1): Update.
6419 * stack.c (print_frame_args, iterate_over_block_locals)
6420 (print_frame_labels, iterate_over_block_arg_vars): Update.
6421 * python/py-block.c (block_object) <dict>: Remove.
6422 <block>: New field.
6423 <iter>: Change type.
6424 (blpy_iter): Update.
6425 (blpy_block_syms_iternext): Update.
6426 * psymtab.c (map_block): Use block iterators.
6427 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6428 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6429 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6430 * infrun.c (check_exception_resume): Update.
6431 * cp-support.c (make_symbol_overload_list_block): Update.
6432 * coffread.c (patch_opaque_types): Update.
6433 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6434 * block.h (struct block_iterator): New.
6435 (block_iterator_first, block_iterator_next, block_iter_name_first)
6436 (block_iter_name_next, block_iter_match_first)
6437 (block_iter_match_next): Declare.
6438 (ALL_BLOCK_SYMBOLS): Redefine.
6439 * block.c (block_iterator_first, block_iterator_next)
6440 (block_iter_name_first, block_iter_name_next)
6441 (block_iter_match_first, block_iter_match_next): New functions.
6442 * ada-lang.c (ada_add_block_symbols)
6443 (ada_make_symbol_completion_list): Use block iterator.
6444
6445 2012-05-10 Tom Tromey <tromey@redhat.com>
6446
6447 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6448 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6449 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6450 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6451 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6452 Update.
6453
6454 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6455
6456 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6457 print-file-var-lib2.c, print-file-var-main.c and
6458 print-file-var.exp (located in gdb/testsuite/gdb.base).
6459
6460 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6461
6462 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6463 try locating the symbol in the symbol's own objfile first, before
6464 extending the search to all objfiles.
6465 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6466 out of lookup_symbol_aux_symtabs.
6467 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6468 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6469 Do not search EXCLUDE_OBJFILE.
6470 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6471 (lookup_symbol_global): Search for matches in the block's objfile
6472 first, before searching all other objfiles.
6473
6474 2012-05-10 Tristan Gingold <gingold@adacore.com>
6475
6476 * printcmd.c (set_command): Add pre/post inc/dec.
6477
6478 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6479
6480 * gdb.1: Document -ex option.
6481
6482 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6483
6484 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6485 * inferior.h (AT_SYMBOL): Delete.
6486
6487 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6488
6489 * mips-tdep.c (mips_push_dummy_code): New function.
6490 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6491 ON_STACK and install mips_push_dummy_code as our gdbarch
6492 push_dummy_code routine.
6493
6494 2012-05-09 Pedro Alves <palves@redhat.com>
6495
6496 * target.c (set_maintenance_target_async_permitted): Rename to ...
6497 (set_target_async_command): ... this.
6498 (show_maintenance_target_async_permitted): Rename to ...
6499 (show_target_async_command): ... this.
6500 (initialize_targets): Adjust.
6501
6502 2012-05-08 Doug Evans <dje@google.com>
6503
6504 * go-exp.y (classify_name): Add missing assignment of fields of
6505 yylval.ssym.
6506
6507 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6508
6509 Display the ">" prompt in interactive mode while reading canned
6510 commands, even when the current interpreter is MI.
6511
6512 * interps.c (interp_set_temp): New function.
6513
6514 * interps.h (interp_set_temp): Add prototype.
6515
6516 * cli/cli-script.c (restore_interp): New cleanup function.
6517 (read_command_lines): Temporarily override the current interpreter
6518 with CLI and arrange for restoring the original one.
6519
6520 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6521
6522 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6523
6524 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6525
6526 * probe.c (parse_probes): Move conditional to check for
6527 debuginfo files from here...
6528 * stap-probe.c (stap_get_probes): ... to here.
6529
6530 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6531 H.J. Lu <hongjiu.lu@intel.com>
6532
6533 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6534 `movl %esp, %ebp' for the X32 ABI.
6535
6536 2012-05-07 Tom Tromey <tromey@redhat.com>
6537
6538 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6539 get_DW_TAG_name.
6540 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6541 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6542 (dwarf_stack_op_name): Remove.
6543 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6544 (decode_locdesc): Use get_DW_OP_name.
6545 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6546 (dwarf2_compile_expr_to_ax): Likewise.
6547 (disassemble_dwarf_expression): Likewise.
6548 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6549
6550 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6551
6552 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6553 (sh_linux_sigtramp_cache): New function.
6554 (sh_linux_sigreturn_init): New function.
6555 (sh_linux_rt_sigreturn_init): New function.
6556 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6557 patterns.
6558 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6559 syscall codes.
6560 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6561 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6562 (sh_linux_init_abi): Add init calls to register new tramp_frame
6563 definitions under 32-bit SH, update comments.
6564
6565 2012-05-07 Pedro Alves <palves@redhat.com>
6566
6567 PR gdb/10952
6568
6569 * amd64-linux-tdep.c: Include glibc-tdep.h.
6570 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6571 gdbarch_skip_solib_resolver callback.
6572
6573 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6574
6575 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6576 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6577 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6578 (add_auto_load_safe_path): Change the error message.
6579 (_initialize_auto_load): Change the "safe-path" help text.
6580 * configure: Regenerate
6581 * configure.ac (--without-auto-load-safe-path): Set
6582 WITH_AUTO_LOAD_SAFE_PATH to /.
6583
6584 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6585
6586 * stap-probe.h: Do not include unecessary `probe.h'.
6587
6588 2012-05-05 Alan Modra <amodra@gmail.com>
6589
6590 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6591 bfd_und_section_ptr.
6592 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6593 and bfd_com_section_ptr.
6594
6595 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6596
6597 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6598
6599 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6600
6601 * windows-nat.h (segment_register_p_ftype): New typedef.
6602 (windows_set_segment_register_p): Add declaration.
6603 * windows-nat.c (segment_register_p): New static global.
6604 (windows_set_segment_register_p): New function.
6605 (do_windows_fetch_inferior_registers): Add special handling
6606 for segment registers.
6607 * amd64-windows-nat.c: #include "amd64-tdep.h".
6608 (amd64_windows_segment_register_p): New function.
6609 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6610 * i386-windows-nat.c: #include "i386-tdep.h".
6611 (i386_windows_segment_register_p): New function.
6612 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6613
6614 2012-05-04 Tristan Gingold <gingold@adacore.com>
6615
6616 * printcmd.c (set_command): Emit a warning if the expression is not
6617 an assignment.
6618
6619 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6620
6621 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6622 Make static.
6623
6624 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6625
6626 * stap-probe.c (stap_is_operator): Change declaration.
6627 (stap_get_opcode): Change return value.
6628 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6629 `stap_parse_argument_1'.
6630
6631 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6632
6633 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6634 debug log.
6635
6636 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6637
6638 Add two new methods global_block and static_block to gdb.Symtab
6639 objects.
6640 * NEWS (Python scripting): Add entry about the new methods.
6641 * python/py-symtab.c (stpy_global_block): New function which
6642 implements the gdb.Symtab.global_block() method.
6643 (stpy_static_block): New function which implements the
6644 gdb.Symtab.static_block() method.
6645 (symtab_object_methods): Add entries for the two new methods.
6646
6647 2012-05-03 Doug Evans <dje@google.com>
6648
6649 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6650 files.
6651
6652 2012-05-03 Yao Qi <yao@codesourcery.com>
6653
6654 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6655 space.
6656 (i386_process_record): Ditto.
6657
6658 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6659
6660 * infcall.c (unwind_on_signal_p): Make static.
6661
6662 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6663
6664 * sol-thread.c (solaris_pid_to_str): Make static.
6665 (_initialize_sol_thread): Add prototype.
6666
6667 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6668
6669 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6670
6671 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6672
6673 * MAINTAINERS: Remove myself.
6674
6675 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6676
6677 Fix --without-auto-load-safe-path for MS-Windows host platform.
6678 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6679
6680 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6681
6682 * gdb_curses.h: Undefine KEY_EVENT before including curses
6683 headers. Move "#undef MOUSE_MOVED" before any curses header
6684 inclusion.
6685
6686 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6687
6688 * features/i386/i386-mmx-linux.c: Regenerate.
6689 * features/rs6000/powerpc-32.c: Likewise.
6690 * features/rs6000/powerpc-32l.c: Likewise.
6691 * features/rs6000/powerpc-403.c: Likewise.
6692 * features/rs6000/powerpc-403gc.c: Likewise.
6693 * features/rs6000/powerpc-405.c: Likewise.
6694 * features/rs6000/powerpc-505.c: Likewise.
6695 * features/rs6000/powerpc-601.c: Likewise.
6696 * features/rs6000/powerpc-602.c: Likewise.
6697 * features/rs6000/powerpc-603.c: Likewise.
6698 * features/rs6000/powerpc-604.c: Likewise.
6699 * features/rs6000/powerpc-64.c: Likewise.
6700 * features/rs6000/powerpc-64l.c: Likewise.
6701 * features/rs6000/powerpc-750.c: Likewise.
6702 * features/rs6000/powerpc-860.c: Likewise.
6703 * features/rs6000/powerpc-e500.c: Likewise.
6704 * features/rs6000/powerpc-e500l.c: Likewise.
6705 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6706 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6707 * features/rs6000/rs6000.c: Likewise.
6708
6709 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6710
6711 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6712 variable.
6713 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6714 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6715 (stap_parse_argument) <e>: Likewise.
6716 (handle_stap_probe) <byte_order>: Likewise.
6717
6718 2012-04-30 Doug Evans <dje@google.com>
6719
6720 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6721 init_and_read_dies_worker. All callers updated.
6722 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6723 replaced with init_cutu_and_read_dies.
6724 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6725 (find_partial_die): Remove FIXME. Don't free current CU.
6726
6727 2012-04-30 Sterling Augustine <saugustine@google.com>
6728
6729 * contrib: New directory.
6730 * contrib/test_pubnames_and_indexes.py: New file.
6731
6732 2012-04-30 Doug Evans <dje@google.com>
6733
6734 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6735 All callers updated.
6736 (init_cu_die_reader): Verify the section is non-empty.
6737 (dwarf_decode_line_header): Don't dereference section->asection
6738 until we know the section is present.
6739
6740 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6741
6742 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6743 probes.
6744
6745 2012-04-29 Yao Qi <yao@codesourcery.com>
6746
6747 * gdb-code-style.el: New hook gdb-markup-hook
6748 and gdb-comment-hook.
6749
6750 2012-04-28 Doug Evans <dje@google.com>
6751
6752 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6753 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6754 objfile->obfd.
6755 * symfile.h (dwarf2_debug_sections): New member addr.
6756 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6757 (ctx_no_get_addr_index): New function.
6758 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6759 (ctx_no_get_addr_index): Declare.
6760 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6761 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6762 (dwarf_expr_ctx_funcs): Update.
6763 (needs_get_addr_index): New function.
6764 (needs_frame_ctx_funcs): Update.
6765 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6766 * dwarf2read.c: #include "gdbcore.h".
6767 (dwarf2_per_objfile): New members addr, dwo_files.
6768 (dwarf2_elf_names): Add entry for addr.
6769 (struct dwo_section_names): New type.
6770 (dwo_section_names): New static global.
6771 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6772 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6773 old debug_types_section member updated to use this.
6774 Rename member debug_types_section to info_or_types_section,
6775 all uses updated.
6776 (signatured_type): Rename member type_offset to type_offset_in_tu,
6777 all uses updated. New member type_offset_in_section.
6778 (struct dwo_sections): New type.
6779 (struct dwo_unit): New type.
6780 (struct dwo_file): New type.
6781 (die_reader_specs): New member dwo_file.
6782 (dwarf2_locate_sections): Watch for .debug_addr.
6783 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6784 (dwarf2_read_section): Get bfd of section from bfd's asection,
6785 instead of objfile.
6786 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6787 (create_signatured_type_table_from_index): Initialize
6788 sig_type->info_or_types_section.
6789 (dw2_get_file_names): Statement lists for type units with DWO files
6790 live in the DWO file.
6791 (create_debug_types_hash_table): New function.
6792 (create_all_type_units): Rewrite.
6793 (init_cu_die_reader): New arg dwo_file, all callers updated.
6794 (init_and_read_dies_worker): Get section from
6795 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6796 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6797 continue reading the CU/TU from there.
6798 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6799 updated. Get section from this_cu->info_or_types_section.
6800 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6801 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6802 DW_FORM_GNU_str_index.
6803 (hash_dwo_file, eq_dwo_file): New functions.
6804 (allocate_dwo_file_hash_table): New function.
6805 (hash_dwo_unit, eq_dwo_unit): New functions.
6806 (allocate_dwo_unit_table): New function.
6807 (dwarf2_locate_dwo_sections): New function.
6808 (struct create_dwo_info_table_data): New type.
6809 (create_debug_info_hash_table_reader): New function.
6810 (create_debug_info_hash_table): New function.
6811 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6812 (lookup_dwo_file): New function.
6813 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6814 (free_dwo_file, free_dwo_file_cleanup): New functions.
6815 (free_dwo_file_from_slot, free_dwo_files): New functions.
6816 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6817 (dwarf2_record_block_ranges): Ditto.
6818 (read_partial_die): Ditto.
6819 (process_enumeration_scope): Update to use type_offset_in_section.
6820 (read_full_die_1): New function.
6821 (read_full_die): Rewrite.
6822 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6823 DW_FORM_GNU_str_index.
6824 (read_addr_index_1, read_addr_index): New functions.
6825 (read_addr_index_from_leb128): New function.
6826 (struct dwarf2_read_addr_index_data): New type.
6827 (dwarf2_read_addr_index_reader): New function.
6828 (dwarf2_read_addr_index): New function.
6829 (read_str_index): New function.
6830 (leb128_size): New function.
6831 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6832 If processing a type unit from a DWO file, get the line section
6833 from the DWO file.
6834 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6835 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6836 DW_FORM_GNU_str_index.
6837 (lookup_die_type): Check whether section offset of type's die is
6838 known before looking it up. Remove assert. Condition can
6839 legimately happen for inter-cu type references.
6840 (dwarf_attr_name): Handle Fission attributes.
6841 (dwarf_form_name): Handle Fission forms.
6842 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6843 DW_FORM_GNU_str_index.
6844 (follow_die_sig): Update to use type_offset_in_section.
6845 (decode_locdesc): New case DW_OP_GNU_addr_index.
6846 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6847 DW_FORM_GNU_str_index.
6848 (cu_debug_loc_section): New function.
6849 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6850 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6851 Free DWO files if present.
6852 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6853
6854 Refactor DIE reading.
6855 * dwarf2read.c (dwarf2_per_objfile): Replace members
6856 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6857 (die_reader_specs): New member "die_section". Temporarily make
6858 member "buffer" non-const, pending constifying all info_ptr uses.
6859 (die_reader_func_ftype): New typedef.
6860 (dw2_get_file_names_reader): New function.
6861 (dw2_get_file_names): Rewrite.
6862 (read_and_check_type_unit_head): Rename arg type_offset to
6863 type_offset_in_tu.
6864 (create_all_type_units): Improve debugging message.
6865 Improve dummy type unit check.
6866 (init_cu_die_reader): New arg "section". All callers updated.
6867 (init_and_read_dies_worker): New function.
6868 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6869 (init_cutu_and_read_dies_no_follow): New function.
6870 (init_cutu_and_read_dies_simple): New function.
6871 (process_psymtab_comp_unit_reader): New function.
6872 (process_psymtab_comp_unit): Delete args section,
6873 is_debug_types_section. Rewrite. All callers updated.
6874 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6875 All callers updated. Rewrite.
6876 (load_partial_comp_unit_reader): New function.
6877 (load_partial_comp_unit): Rewrite.
6878 (skip_children): New arg reader. Delete args buffer, cu.
6879 All callers updated.
6880 (skip_one_die): New arg reader. Delete args buffer, cu.
6881 All callers updated.
6882 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6883 All callers updated.
6884 (load_full_comp_unit_reader): New function.
6885 (load_full_comp_unit): Rewrite.
6886 (read_comp_unit): Delete.
6887 (read_die_and_children_1): Delete, contents moved ...
6888 (read_die_and_children): ... here.
6889 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6890 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6891 All callers updated.
6892 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6893 All callers updated.
6894 (find_partial_die): Rewrite load_all_dies support.
6895 (read_attribute_value): New arg reader. Delete args abfd, cu.
6896 All callers updated.
6897 (read_attribute): New arg reader. Delete args abfd, cu.
6898 All callers updated.
6899 (load_full_type_unit): Add assert.
6900 (read_signatured_type_reader): New function.
6901 (read_signatured_type): Rewrite.
6902 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6903 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6904 All callers updated. Set per_cu->cu = NULL after freeing it.
6905 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6906 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6907 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6908 (set_die_type): Update.
6909 (get_die_type_at_offset): Update.
6910 (read_file_scope): Call prepare_one_comp_unit.
6911 (read_type_unit_scope): Ditto.
6912 (prepare_one_comp_unit): Set producer if present.
6913
6914 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6915
6916 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6917 gettext function on `error'.
6918
6919 2012-04-27 Doug Evans <dje@google.com>
6920
6921 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6922 is empty.
6923
6924 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6925 Tom Tromey <tromey@redhat.com>
6926
6927 * breakpoint.c (struct breakpoint_objfile_data)
6928 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6929 <exception_probes>: New fields.
6930 (free_breakpoint_probes): New function.
6931 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6932 `_Unwind_DebugHook'.
6933 (create_exception_master_breakpoint): Likewise.
6934 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6935 * infrun.c: Including necessary header files for handling SystemTap
6936 probes.
6937 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6938 via SystemTap probes.
6939 (check_exception_resume): Remove `func' argument. Handle exception
6940 unwinding breakpoint set via a SystemTap probe.
6941 (insert_exception_resume_from_probe): New function.
6942
6943 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6944 Tom Tromey <tromey@redhat.com>
6945 Jan Kratochvil <jan.kratochvil@redhat.com>
6946
6947 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6948 (COMMON_OBS): Likewise.
6949 (HFILES_NO_SRCDIR): Add `probe'.
6950 * NEWS: Mention support for static and SystemTap probes.
6951 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6952 SystemTap probes' arguments parser.
6953 * arm-linux-tdep.c: Including headers needed to perform the parsing
6954 of SystemTap probes' arguments.
6955 (arm_stap_is_single_operand): New function.
6956 (arm_stap_parse_special_token): Likewise.
6957 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6958 probes' arguments parser.
6959 * ax-gdb.c (require_rvalue): Removing static declaration.
6960 (gen_expr): Likewise.
6961 * ax-gdb.h (gen_expr): Declaring function.
6962 (require_rvalue): Likewise.
6963 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6964 (bkpt_probe_breakpoint_ops): New variable.
6965 (momentary_breakpoint_from_master): Set the `probe' value.
6966 (add_location_to_breakpoint): Likewise.
6967 (break_command_1): Using proper breakpoint_ops according to the
6968 argument passed by the user in the command line.
6969 (bkpt_probe_insert_location): New function.
6970 (bkpt_probe_remove_location): Likewise.
6971 (bkpt_probe_create_sals_from_address): Likewise.
6972 (bkpt_probe_decode_linespec): Likewise.
6973 (tracepoint_probe_create_sals_from_address): Likewise.
6974 (tracepoint_probe_decode_linespec): Likewise.
6975 (tracepoint_probe_breakpoint_ops): New variable.
6976 (trace_command): Using proper breakpoint_ops according to the
6977 argument passed by the user in the command line.
6978 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6979 static probes on breakpoints and tracepoints.
6980 * breakpoint.h (struct bp_location) <probe>: New field.
6981 * cli-utils.c (skip_spaces_const): New function.
6982 (extract_arg): Likewise.
6983 * cli-utils.h (skip_spaces_const): Likewise.
6984 (extract_arg): Likewise.
6985 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6986 * configure.ac: Append `stap-probe.o' to be generated when ELF
6987 support is present.
6988 * configure: Regenerate.
6989 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6990 * elfread.c: Include `probe.h' and `arch-utils.h'.
6991 (probe_key): New variable.
6992 (elf_get_probes): New function.
6993 (elf_get_probe_argument_count): Likewise.
6994 (elf_evaluate_probe_argument): Likewise.
6995 (elf_compile_to_ax): Likewise.
6996 (elf_symfile_relocate_probe): Likewise.
6997 (stap_probe_key_free): Likewise.
6998 (elf_probe_fns): New variable.
6999 (elf_sym_fns): Add `sym_probe_fns' value.
7000 (elf_sym_fns_lazy_psyms): Likewise.
7001 (elf_sym_fns_gdb_index): Likewise.
7002 (_initialize_elfread): Initialize objfile cache for static
7003 probes.
7004 * gdb_vecs.h (struct probe): New forward declaration.
7005 (probe_p): New VEC declaration.
7006 * gdbarch.c: Regenerate.
7007 * gdbarch.h: Regenerate.
7008 * gdbarch.sh (stap_integer_prefix): New variable.
7009 (stap_integer_suffix): Likewise.
7010 (stap_register_prefix): Likewise.
7011 (stap_register_suffix): Likewise.
7012 (stap_register_indirection_prefix): Likewise.
7013 (stap_register_indirection_suffix): Likewise.
7014 (stap_gdb_register_prefix): Likewise.
7015 (stap_gdb_register_suffix): Likewise.
7016 (stap_is_single_operand): New function.
7017 (stap_parse_special_token): Likewise.
7018 (struct stap_parse_info): Forward declaration.
7019 * i386-tdep.c: Including headers needed to perform the parsing
7020 of SystemTap probes' arguments.
7021 (i386_stap_is_single_operand): New function.
7022 (i386_stap_parse_special_token): Likewise.
7023 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7024 probes' arguments parser.
7025 * i386-tdep.h (i386_stap_is_single_operand): New function.
7026 (i386_stap_parse_special_token): Likewise.
7027 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7028 * mipsread.c (ecoff_sym_fns): Likewise.
7029 * objfiles.c (objfile_relocate1): Support relocation for static
7030 probes.
7031 * parse.c (prefixify_expression): Remove static declaration.
7032 (initialize_expout): Likewise.
7033 (reallocate_expout): Likewise.
7034 * parser-defs.h (initialize_expout): Declare function.
7035 (reallocate_expout): Likewise.
7036 (prefixify_expression): Likewise.
7037 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7038 of SystemTap probes' arguments.
7039 (ppc_stap_is_single_operand): New function.
7040 (ppc_stap_parse_special_token): Likewise.
7041 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7042 probes' arguments parser.
7043 * probe.c: New file, for generic statically defined probe support.
7044 * probe.h: Likewise.
7045 * s390-tdep.c: Including headers needed to perform the parsing of
7046 SystemTap probes' arguments.
7047 (s390_stap_is_single_operand): New function.
7048 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7049 probes' arguments parser.
7050 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7051 * stap-probe.c: New file, for SystemTap probe support.
7052 * stap-probe.h: Likewise.
7053 * symfile.h: Include `gdb_vecs.h'.
7054 (struct sym_probe_fns): New struct.
7055 (struct sym_fns) <sym_probe_fns>: New field.
7056 * symtab.c (init_sal): Initialize `probe' field.
7057 * symtab.h (struct probe): Forward declaration.
7058 (struct symtab_and_line) <probe>: New field.
7059 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7060 locations.
7061 (stop_tracing): Likewise.
7062 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7063
7064 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7065 Tom Tromey <tromey@redhat.com>
7066
7067 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7068 and to compile agent expressions.
7069 * infrun.c (siginfo_make_value): New argument `ignore'.
7070 (siginfo_funcs): New struct.
7071 (_initialize_infrun): New argument when calling
7072 `create_internalvar_type_lazy'.
7073 * thread.c (thread_id_make_value): New argument `ignore'.
7074 (thread_funcs): New struct.
7075 (_initialize_thread): New argument when calling
7076 `create_internalvar_type_lazy'.
7077 * tracepoint.c (sdata_make_value): New argument `ignore'.
7078 (sdata_funcs): New struct.
7079 (_initialize_tracepoint): New argument when calling
7080 `create_internalvar_type_lazy'.
7081 * value.c (make_value): New struct.
7082 (create_internalvar_type_lazy): New argument `data'.
7083 (compile_internalvar_to_ax): New function.
7084 (value_of_internalvar): Properly handling `make_value' case.
7085 (clear_internalvar): Likewise.
7086 (show_convenience): Adding `TRY_CATCH' block.
7087 * value.h (internalvar_make_value): Delete, replace by...
7088 (struct internalvar_funcs): ... this.
7089 (create_internalvar_type_lazy) <fun>: Delete argument.
7090 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7091 (compile_internalvar_to_ax): New function.
7092 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7093 (tlb_funcs): New struct.
7094 (_initialize_windows_tdep): New argument when calling
7095 `create_internalvar_type_lazy'.
7096
7097 2012-04-27 Mark Wielaard <mjw@redhat.com>
7098
7099 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7100 see whether it is an address or a constant offset from DW_AT_low_pc.
7101 (dwarf2_record_block_ranges): Likewise.
7102 (read_partial_die): Likewise.
7103
7104 2012-04-26 Mark Wielaard <mjw@redhat.com>
7105
7106 * MAINTAINERS (Write After Approval): Add myself to the list.
7107
7108 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7109
7110 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7111 (proc_prettyprint_signal): Likewise.
7112 (proc_prettyprint_faultset): Likewise.
7113 (proc_prettyprint_fault): Likewise.
7114 (proc_prettyprint_actionset): Likewise.
7115 (proc_prettyprint_flags): Move to new proc-flags.c section.
7116 (proc_prettyfprint_flags): New prototype.
7117 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7118 (proc_syscall, proc_cursig): Likewise.
7119 (proc_set_kill_on_last_close): Likewise.
7120 (proc_unset_kill_on_last_close): Likewise.
7121 (proc_set_watchpoint): Make static.
7122 (proc_delete_dead_threads): Likewise.
7123 (procfs_set_watchpoint): Likewise.
7124 (_initialize_procfs): Add prototype.
7125 * proc-events.c: Include proc-utils.h.
7126 (init_syscall_table): Make static.
7127 * proc-api.c (_initialize_proc_api): Add prototype.
7128 * proc-flags.c: Include proc-utils.h.
7129
7130 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7131
7132 * configure.ac: Add AC_ARG_PROGRAM.
7133 * configure: Regenerate.
7134
7135 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7136
7137 Fix DW_AT_lower_bound defaults for DWARF-4+.
7138 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7139 high. New variable low_default_is_valid. Implement DWARF-4+
7140 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7141 no default by the DWARF standard.
7142
7143 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7144 Maciej W. Rozycki <macro@codesourcery.com>
7145
7146 * infrun.c (handle_inferior_event): Move the check for return
7147 trampolines ahead of the check for function trampolines.
7148 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7149 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7150 (mips_str_mips16_ret_stub): Likewise.
7151 (mips_str_call_fp_stub): Likewise.
7152 (mips_str_call_stub): Likewise.
7153 (mips_str_fn_stub): Likewise.
7154 (mips_str_pic): Likewise.
7155 (mips_in_frame_stub): New function.
7156 (mips_unwind_pc): Return the return address rather than the PC
7157 if the PC of an intermediate frame is inside a call thunk.
7158 (mips_is_stub_suffix): New function.
7159 (mips_is_stub_mode): Likewise.
7160 (mips_get_mips16_fn_stub_pc): Likewise.
7161 (mips_skip_mips16_trampoline_code): Update to handle all the
7162 currently generated stub types. Don't recurse into __fn_stub
7163 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7164 Use cooked register accesses.
7165 (mips_in_return_stub): Reintroduce function.
7166 (mips_skip_trampoline_code): Traverse trampolines recursively.
7167 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7168
7169 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7170
7171 GDB 7.4.1 released.
7172
7173 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7174
7175 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7176 * features/arm-with-m-vfp-d16.xml: New file. Describes
7177 Cortex-M with VFPv4-sp-d16 FPU register layout.
7178 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7179 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7180 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7181 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7182 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7183
7184 2012-04-25 Doug Evans <dje@google.com>
7185
7186 * cli/cli-decode.c (print_doc_line): Use stream instead of
7187 current_uiout.
7188
7189 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7190
7191 * features/arm-with-iwmmxt.c: Regenerate.
7192 * features/arm-with-m-fpa-layout.c: Likewise.
7193 * features/arm-with-m.c: Likewise.
7194 * features/arm-with-neon.c: Likewise.
7195 * features/arm-with-vfpv2.c: Likewise.
7196 * features/arm-with-vfpv3.c: Likewise.
7197 * features/mips-dsp-linux.c: Likewise.
7198 * features/mips-linux.c: Likewise.
7199 * features/mips64-dsp-linux.c: Likewise.
7200 * features/mips64-linux.c: Likewise.
7201 * features/s390-linux32.c: Likewise.
7202 * features/s390-linux32v1.c: Likewise.
7203 * features/s390-linux32v2.c: Likewise.
7204 * features/s390-linux64.c: Likewise.
7205 * features/s390-linux64v1.c: Likewise.
7206 * features/s390-linux64v2.c: Likewise.
7207 * features/s390x-linux64.c: Likewise.
7208 * features/s390x-linux64v1.c: Likewise.
7209 * features/s390x-linux64v2.c: Likewise.
7210 * features/tic6x-c62x-linux.c: Likewise.
7211 * features/tic6x-c62x.c: Likewise.
7212 * features/tic6x-c64x-linux.c: Likewise.
7213 * features/tic6x-c64x.c: Likewise.
7214 * features/tic6x-c64xp-linux.c: Likewise.
7215 * features/tic6x-c64xp.c: Likewise.
7216 * target-descriptions.c: Only generate `field_type' and `type'
7217 variables when needed.
7218
7219 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7220
7221 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7222
7223 2012-04-25 Doug Evans <dje@google.com>
7224
7225 Initial pass at Go language support.
7226 * NEWS: Mention Go.
7227 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7228 go-valprint.c.
7229 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7230 (YYFILES): Add go-exp.c.
7231 (YYOBJ): Add go-exp.o.
7232 (local-maintainer-clean): Delete go-exp.c.
7233 * defs.h (enum language): Add language_go.
7234 * dwarf2read.c: #include "go-lang.h".
7235 (fixup_go_packaging): New function.
7236 (process_full_comp_unit): Call it when processing Go CUs.
7237 (dwarf2_physname): Add Go support.
7238 (read_file_scope): Handle missing language spec for GNU Go.
7239 (set_cu_language): Handle DW_LANG_Go.
7240 * go-exp.y: New file.
7241 * go-lang.h: New file.
7242 * go-lang.c: New file.
7243 * go-typeprint.c: New file.
7244 * go-valprint.c: New file.
7245 * symtab.c: #include "go-lang.h".
7246 (symbol_set_language): Handle language_go.
7247 (symbol_find_demangled_name, symbol_set_names): Ditto.
7248 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7249
7250 2012-04-24 Jim Meyering <meyering@redhat.com>
7251
7252 avoid a few strncpy-induced buffer overruns
7253 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7254 fname and psargs before trying to concatenate.
7255 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7256 "name" before applying strchr.
7257
7258 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7259
7260 * CONTRIBUTE: Use unified diff instead of context diff when
7261 generating patches.
7262
7263 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7264
7265 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7266 code. Handle JR.HB correctly.
7267
7268 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7269
7270 * mips-tdep.c
7271 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7272 with the other MIPS16 helpers.
7273
7274 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7275
7276 * observer.sh: Conditionally declare `args', thus cleaning up
7277 unused instances of this variable.
7278
7279 2012-04-24 Yao Qi <yao@codesourcery.com>
7280
7281 Revert this patch to allow breakpoint always-inserted
7282 in record target.
7283 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7284 * breakpoint.c: Include record.h.
7285 (breakpoints_always_inserted_mode): Return false when the record
7286 target is in use.
7287
7288 * breakpoint.c (iterate_over_bp_locations): New.
7289 * breakpoint.h: Declare.
7290 New typedef walk_bp_location_callback.
7291 * record.c (record_open): Call record_init_record_breakpoints.
7292 (record_sync_record_breakpoints): New.
7293 (record_init_record_breakpoints): New.
7294 * NEWS: Mention supporting breakpoint always-inserted mode in
7295 record target.
7296
7297 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7298
7299 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7300 any thread.
7301
7302 2012-04-24 Yao Qi <yao@codesourcery.com>
7303
7304 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7305 (is_catchpoint): ... it.
7306 (print_one_breakpoint_location): Caller update.
7307 * breakpoint.h: Update declaration.
7308
7309 2012-04-23 David S. Miller <davem@davemloft.net>
7310
7311 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7312
7313 2012-04-23 Tom Tromey <tromey@redhat.com>
7314
7315 * buildsym.c (add_free_pendings): Remove.
7316 * buildsym.h (add_free_pendings): Remove.
7317
7318 2012-04-23 Doug Evans <dje@google.com>
7319
7320 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7321 attr.u.unsnd instead of attr.u.addr.
7322 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7323 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7324 DW_FORM_ref_udata.
7325 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7326 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7327 DW_FORM_ref_udata.
7328 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7329
7330 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7331
7332 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7333 (mips_o32_return_value): Likewise.
7334 (mips_o64_return_value): Likewise.
7335
7336 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7337
7338 * ada-lang.c (ada_evaluate_subexp): Add cases for
7339 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7340 their treatment in eval.c.
7341
7342 2012-04-21 David S. Miller <davem@davemloft.net>
7343
7344 * sparc-tdep.c (X_DISP10): Define.
7345 (sparc_analyze_control_transfer): Handle compare-and-branch.
7346
7347 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7348
7349 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7350 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7351
7352 2012-04-20 Nigel Stephens <nigel@mips.com>
7353 Maciej W. Rozycki <macro@codesourcery.com>
7354
7355 * mips-tdep.c (mips_float_register_p): New function.
7356 (mips_convert_register_float_case_p): Use mips_float_register_p.
7357 (mips_register_type): Likewise.
7358 (mips_print_register): Likewise.
7359 (print_gp_register_row): Likewise.
7360 (mips_print_registers_info): Likewise.
7361
7362 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7363
7364 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7365 of mips16 symbols.
7366
7367 2012-04-20 Andrew Pinski <apinski@cavium.com>
7368
7369 * MAINTAINERS (Write After Approval): Add myself to the list.
7370
7371 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7372
7373 * MAINTAINERS: Update my e-mail address.
7374
7375 2012-04-20 Pedro Alves <palves@redhat.com>
7376
7377 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7378 $srcdir.
7379 * configure: Regenerate.
7380
7381 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7382
7383 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7384 declaration.
7385 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7386
7387 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7388
7389 Fix compilation compatibility with python-2.4
7390 * python/py-type.c (convert_field): Cast ADDRSTRING for
7391 PyObject_SetAttrString as non-const. New comment.
7392
7393 2012-04-19 Tom Tromey <tromey@redhat.com>
7394
7395 * top.c (quit_target): Use all_cleanups.
7396 * main.c (captured_command_loop): Use all_cleanups.
7397 * exceptions.c (throw_exception): Use all_cleanups.
7398
7399 2012-04-19 Pedro Alves <palves@redhat.com>
7400
7401 * Makefile.in (GNULIB_BUILDDIR): New.
7402 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7403 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7404 (CLEANDIRS). Remove gnulib/import.
7405 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7406 (all-lib): Ditto.
7407 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7408 (gnulib/import/Makefile): Replace gnulib/import with
7409 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7410 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7411 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7412 acx_configure_dir.m4.
7413 * acinclude.m4: Include acx_configure_dir.m4.
7414 * acx_configure_dir.m4: New file.
7415 * aclocal.m4: Regenerate.
7416 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7417 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7418 (GNULIB): New variable.
7419 (GNULIB_STDINT_H): Adjust.
7420 (AC_OUTPUT): Don't output gnulib/Makefile.
7421 * gdb/defs.h: Include build-gnulib/config.h.
7422 * aclocal.m4: Regenerate.
7423 * config.in: Regenerate.
7424 * configure: Regenerate.
7425
7426 * gnulib/Makefile.in: New file.
7427 * gnulib/configure.ac: New file.
7428 * gnulib/aclocal.m4: New file.
7429 * gnulib/config.in: New file.
7430 * gnulib/configure: New file.
7431 * gnulib/: Re-run gnulib-tool to adjust.
7432
7433 2012-04-19 Doug Evans <dje@google.com>
7434
7435 * cleanups.h (struct cleanup): Move to cleanups.c.
7436 (make_cleanup_dtor_ftype): New typedef.
7437 (make_cleanup_dtor): Use it.
7438 (ALL_CLEANUPS): Replace with ...
7439 (all_cleanups): ... this. Declare. All uses updated.
7440 * cleanups.c: #include "gdb_assert.h".
7441 (sentinel_cleanup): New static global.
7442 (SENTINEL_CLEANUP): Define.
7443 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7444 (make_my_cleanup2): Assert result is non-NULL.
7445 (all_cleanups): New function.
7446 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7447 of NULL.
7448
7449 2012-04-19 Pedro Alves <palves@redhat.com>
7450
7451 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7452 Adjust paths to gnulib imported files.
7453
7454 2012-04-19 Pedro Alves <palves@redhat.com>
7455
7456 * gnulib/: Move whole directory ...
7457 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7458 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7459 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7460 (aclocal_m4_deps): Adjust.
7461 * aclocal.m4: Regenerate.
7462 * configure: Regenerate.
7463 * configure.ac: Adjust AC_OUTPUT output.
7464
7465 2012-04-19 Yao Qi <yao@codesourcery.com>
7466
7467 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7468 (vec.o): New rule.
7469 * vec.c: Move it ...
7470 * common/vec.c: ... here.
7471 * vec.h: Move it ...
7472 * common/vec.h: ... here.
7473
7474 2012-04-19 Yao Qi <yao@codesourcery.com>
7475
7476 * gdb-code-style.el: New.
7477
7478 2012-04-18 Pedro Alves <palves@redhat.com>
7479
7480 Update gnulib from latest git.
7481 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7482
7483 * gnulib/Makefile.am: Update.
7484 * gnulib/dummy.c: Update.
7485 * gnulib/extra/arg-nonnull.h: Update.
7486 * gnulib/extra/c++defs.h: Update.
7487 * gnulib/extra/update-copyright: Update.
7488 * gnulib/extra/warn-on-use.h: Update.
7489 * gnulib/inttypes.in.h: Update.
7490 * gnulib/m4/00gnulib.m4: Update.
7491 * gnulib/m4/extensions.m4: Update.
7492 * gnulib/m4/gnulib-cache.m4: Update.
7493 * gnulib/m4/gnulib-common.m4: Update.
7494 * gnulib/m4/gnulib-comp.m4: Update.
7495 * gnulib/m4/gnulib-tool.m4: Update.
7496 * gnulib/m4/include_next.m4: Update.
7497 * gnulib/m4/inttypes-pri.m4: Update.
7498 * gnulib/m4/inttypes.m4: Update.
7499 * gnulib/m4/longlong.m4: Update.
7500 * gnulib/m4/memchr.m4: Update.
7501 * gnulib/m4/memmem.m4: Update.
7502 * gnulib/m4/mmap-anon.m4: Update.
7503 * gnulib/m4/multiarch.m4: Update.
7504 * gnulib/m4/onceonly.m4: Update.
7505 * gnulib/m4/stddef_h.m4: Update.
7506 * gnulib/m4/stdint.m4: Update.
7507 * gnulib/m4/string_h.m4: Update.
7508 * gnulib/m4/warn-on-use.m4: Update.
7509 * gnulib/m4/wchar_h.m4: Update.
7510 * gnulib/m4/wchar_t.m4: Update.
7511 * gnulib/m4/wint_t.m4: Update.
7512 * gnulib/memchr.c: Update.
7513 * gnulib/memmem.c: Update.
7514 * gnulib/stddef.in.h: Update.
7515 * gnulib/stdint.in.h: Update.
7516 * gnulib/str-two-way.h: Update.
7517 * gnulib/string.in.h: Update.
7518 * gnulib/wchar.in.h: Update.
7519
7520 * gnulib/extra/arg-nonnull.h: Delete.
7521 * gnulib/extra/c++defs.h: Delete.
7522 * gnulib/extra/warn-on-use.h: Delete.
7523 * gnulib/m4/wchar_h.m4: Delete.
7524 * gnulib/m4/wint_t.m4: Delete.
7525 * gnulib/wchar.in.h: Delete.
7526
7527 * gnulib/extra/snippets/arg-nonnull.h: New.
7528 * gnulib/extra/snippets/c++defs.h: New.
7529 * gnulib/extra/snippets/warn-on-use.h: New.
7530
7531 * aclocal.m4: Regenerate.
7532 * config.in: Regenerate.
7533 * configure: Regenerate.
7534 * gnulib/Makefile.in: Regenerate.
7535
7536 2012-04-18 Pedro Alves <palves@redhat.com>
7537
7538 Reimport the update-copyright module from gnulib
7539 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7540
7541 * configure: Regenerate.
7542 * gnulib/Makefile.am: Update.
7543 * gnulib/Makefile.in: Regenerate.
7544 * gnulib/extra/update-copyright: Update.
7545 * gnulib/m4/gnulib-cache.m4: Update.
7546 * gnulib/m4/gnulib-comp.m4: Update.
7547
7548 2012-04-18 Tristan Gingold <gingold@adacore.com>
7549
7550 * configure.ac (aix): Put -lpthread into libs.
7551 * configure: Regenerate.
7552
7553 2012-04-18 Tom Tromey <tromey@redhat.com>
7554
7555 * linespec.c (convert_linespec_to_sals): Don't use
7556 SYMBOL_OBJ_SECTION.
7557 (compare_msymbols): Arguments are minsym_and_objfile, not
7558 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7559
7560 2012-04-18 Pedro Alves <palves@redhat.com>
7561
7562 Revert gnulib/ part of:
7563 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7564 Copyright year update in most files (performed by copyright.sh).
7565
7566 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 Fix 64-bit constants on 32-bit hosts.
7569 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7570 from unsigned long to ULONGEST.
7571 (read_signed_leb128): Change declaration return type from long to
7572 LONGEST.
7573 (dwarf2_const_value_attr): Change declaration parameter value from long
7574 to LONGEST.
7575 (dwarf2_compute_name): Change variable value from long to LONGEST.
7576 (read_unsigned_leb128): Change return type, variable result and some
7577 casts from unsigned long to ULONGEST.
7578 (read_signed_leb128): Change return type, variable result and some
7579 casts from long to LONGEST.
7580 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7581 value from long to LONGEST.
7582 (dwarf2_const_value): Change variable value from long to LONGEST.
7583 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7584 plongest and hex_string.
7585 * symtab.h (struct general_symbol_info): Change ivalue from long to
7586 LONGEST, remove the comment.
7587 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7588 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7589
7590 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7591
7592 PR symtab/7259:
7593 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7594 * ada-lang.c (ada_discrete_type_high_bound)
7595 (ada_discrete_type_low_bound): Fix function comment. Use
7596 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7597 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7598 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7599 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7600 Use TYPE_FIELD_ENUMVAL.
7601 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7602 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7603 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7604 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7605 TYPE_CODE_ENUM.
7606 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7607 * dwarf2read.c (process_enumeration_scope): Likewise.
7608 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7609 field.bitpos.
7610 (class StructMainTypePrettyPrinter): Support also
7611 FIELD_LOC_KIND_ENUMVAL.
7612 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7613 TYPE_CODE_ENUM.
7614 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7615 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7616 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7617 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7618 field enumval.
7619 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7620 accommodate enumval.
7621 (struct call_site): Adjust loc_kind to accommodate enumval.
7622 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7623 (TYPE_FIELD_ENUMVAL): New macros.
7624 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7625 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7626 TYPE_CODE_ENUM.
7627 * p-typeprint.c (pascal_type_print_base): Likewise.
7628 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7629 enumval.
7630 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7631 * python/py-type.c (convert_field): New variable addrstring. Use
7632 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7633 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7634 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7635 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7636 TYPE_CODE_ENUM.
7637 * valprint.c (generic_val_print): Likewise.
7638
7639 2012-04-17 Doug Evans <dje@google.com>
7640
7641 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7642
7643 * dwarf2read.c: Whitespace fixes.
7644 (lookup_signatured_type): Tweak comment.
7645 (get_die_type_at_offset): Fix comment.
7646
7647 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7648
7649 * xcoffread.c (xcoff_secnum_to_sections): New function.
7650 (secnum_to_section, secnum_to_bfd_section): Reimplement
7651 using xcoff_secnum_to_sections. Rename "secnum" parameter
7652 into "n_scnum".
7653 (RECORD_MINIMAL_SYMBOL): Delete.
7654 (record_minimal_symbol): New function.
7655 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7656 by call to record_minimal_symbol and set misc_func_recorded
7657 to 1. Set last_csect_sec to the XCOFF section index instead
7658 of GDB's section_offset index. Update calls to
7659 prim_record_minimal_symbol_and_info to pass the BFD section
7660 as well.
7661
7662 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7663
7664 * xcoffread.c (read_xcoff_symtab): Delete variables
7665 last_csect_val and last_csect_sec and associated code.
7666
7667 2012-04-17 Doug Evans <dje@google.com>
7668
7669 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7670 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7671 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7672 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7673
7674 * cleanups.h: New file.
7675 * cleanups.c: New file.
7676 * Makefile.in (SFILES): Add cleanups.c.
7677 (HFILES_NO_SRCDIR): Add cleanups.h.
7678 (COMMON_OBS): Add cleanups.o.
7679 * defs.h (struct cleanup): Moved to cleanups.h.
7680 (do_cleanups,do_final_cleanups): Ditto.
7681 (discard_cleanups,discard_final_cleanups): Ditto
7682 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7683 (save_cleanups,save_final_cleanups): Ditto.
7684 (restore_cleanups,restore_final_cleanups): Ditto.
7685 (null_cleanup): Ditto.
7686 (make_my_cleanup,make_my_cleanup2): Ditto.
7687 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7688 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7689 (do_cleanups,do_final_cleanups): Ditto.
7690 (discard_cleanups,discard_final_cleanups): Ditto
7691 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7692 (save_cleanups,save_final_cleanups): Ditto.
7693 (restore_cleanups,restore_final_cleanups): Ditto.
7694 (null_cleanup): Ditto.
7695 (make_my_cleanup,make_my_cleanup2): Ditto.
7696 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7697
7698 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7699 make_my_cleanup.
7700 (make_cleanup_dyn_string_delete): Ditto.
7701 (make_cleanup_ui_file_delete): Ditto.
7702 (make_cleanup_ui_out_redirect_pop): Ditto.
7703 (make_cleanup_free_section_addr_info): Ditto.
7704 (make_cleanup_restore_integer): Ditto.
7705 (make_cleanup_unpush_target): Ditto.
7706 (make_cleanup_value_free_to_mark): Ditto.
7707 (make_cleanup_value_free): Ditto.
7708 (make_cleanup_free_so): Ditto.
7709
7710 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7711
7712 New option "set debug auto-load".
7713 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7714 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7715 (auto_load_safe_path_vec_update)
7716 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7717 if DEBUG_AUTO_LOAD.
7718 (file_is_auto_load_safe): New parameters debug_fmt and ....
7719 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7720 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7721 caller by explanatory string.
7722 (_initialize_auto_load): Register "set debug auto-load".
7723 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7724 and ....
7725 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7726 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7727 by explanatory string.
7728 * main.c (captured_main): Likewise.
7729 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7730 (source_section_scripts): Likewise.
7731
7732 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7733
7734 New option "set auto-load safe-path".
7735 * NEWS: New commands "set auto-load safe-path"
7736 and "show auto-load safe-path".
7737 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7738 (auto_load_safe_path, auto_load_safe_path_vec)
7739 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7740 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7741 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7742 (source_gdb_script_for_objfile): New variable is_safe. Call
7743 file_is_auto_load_safe. Return if it is not.
7744 (struct loaded_script): New field loaded.
7745 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7746 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7747 output "Missing" to "No".
7748 (_initialize_auto_load): New variable cmd. Initialize
7749 auto_load_safe_path. Register "set auto-load safe-path",
7750 "show auto-load safe-path" and "add-auto-load-safe-path".
7751 * auto-load.h (maybe_add_script): Add parameter loaded.
7752 (file_is_auto_load_safe): New declaration.
7753 * config.in: Regenerate.
7754 * configure: Regenerate.
7755 * configure.ac: New parameters --with-auto-load-safe-path
7756 and --without-auto-load-safe-path.
7757 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7758 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7759 * main.c (captured_main): Check file_is_auto_load_safe for
7760 LOCAL_GDBINIT.
7761 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7762 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7763 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7764 not.
7765
7766 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7767
7768 auto-load: Implementation.
7769 * NEWS: New descriptions for "info auto-load",
7770 "info auto-load gdb-scripts", "info auto-load python-scripts",
7771 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7772 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7773 and "show auto-load-scripts". New description for "set auto-load",
7774 "show auto-load", "set auto-load gdb-scripts",
7775 "show auto-load gdb-scripts", "set auto-load python-scripts",
7776 "show auto-load python-scripts", "set auto-load local-gdbinit",
7777 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7778 "show auto-load libthread-db".
7779 * auto-load.c: Remove include python/python-internal.h. Add includes
7780 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7781 cli/cli-setshow.h.
7782 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7783 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7784 (gdbpy_global_auto_load): Rename to ...
7785 (global_auto_load): ... here.
7786 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7787 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7788 (script_language_gdb, source_gdb_script_for_objfile): New.
7789 (struct loaded_script): New field language.
7790 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7791 LANGUAGE.
7792 (maybe_add_script): Add parameter language. Drop redundant
7793 entry.full_path initialization. Initialize entry.language and
7794 (*slot)->language.
7795 (auto_load_objfile_script): Change parameter suffix to language.
7796 Remove the call of maybe_add_script.
7797 Call language->source_script_for_objfile.
7798 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7799 New.
7800 (collect_matching_scripts): Adjust it for
7801 struct collect_matching_scripts_data.
7802 (auto_load_info_scripts_pattern_nl): New variable.
7803 (info_auto_load_scripts): Rename to ...
7804 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7805 for struct collect_matching_scripts_data.
7806 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7807 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7808 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7809 (auto_load_info_cmdlist_get): New.
7810 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7811 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7812 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7813 "info auto-load local-gdbinit".
7814 * auto-load.h (struct script_language): New.
7815 (gdbpy_global_auto_load): Rename to ...
7816 (global_auto_load): ... here.
7817 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7818 (auto_load_local_gdbinit_loaded): New declarations.
7819 (maybe_add_script): New parameter language.
7820 (auto_load_objfile_script): Change parameter suffix to language.
7821 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7822 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7823 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7824 declarations.
7825 * linux-thread-db.c: Include auto-load.h and ctype.h.
7826 (auto_load_thread_db, show_auto_load_thread_db): New.
7827 (struct thread_db_info): New field filename.
7828 (delete_thread_db_info): Call xfree for FILENAME.
7829 (try_thread_db_load): Initialize FILENAME.
7830 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7831 if !AUTO_LOAD_THREAD_DB.
7832 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7833 (_initialize_thread_db): Install auto_load_thread_db
7834 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7835 as "info auto-load libthread-db".
7836 * main.c (captured_main): Rename gdbpy_global_auto_load to
7837 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7838 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7839 (print_gdb_help): Extend the help for 'local init file'.
7840 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7841 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7842 (auto_load_scripts): Rename to ...
7843 (auto_load_python_scripts): ... here, update the comment.
7844 (gdbpy_load_auto_script_for_objfile): New declaration.
7845 (show_auto_load_python_scripts, script_language_python)
7846 (gdbpy_load_auto_script_for_objfile): New.
7847 (source_section_scripts): Refactor the code.
7848 (load_auto_scripts_for_objfile): Rename to ...
7849 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7850 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7851 (info_auto_load_python_scripts): New.
7852 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7853 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7854 Register "set auto-load-scripts" as its deprecated alias. Register
7855 "info auto-load python-scripts". Register "info auto-load-scripts" as
7856 its deprecated alias.
7857 (load_auto_scripts_for_objfile): Rename to ...
7858 (gdbpy_load_auto_scripts_for_objfile): ... here.
7859 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7860 (gdbpy_load_auto_scripts_for_objfile): ... here.
7861
7862 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7863
7864 auto-load: Move files.
7865 * Makefile.in (SFILES): Add auto-load.c.
7866 (HFILES_NO_SRCDIR): Add auto-load.h.
7867 (COMMON_OBS): Add auto-load.o.
7868 (distclean): Change .gdbinit for gdb-gdb.gdb.
7869 * auto-load.c: New file, with parts from python/py-auto-load.c.
7870 * auto-load.h: New file, with parts from python/python.h.
7871 * configure: Regenerate.
7872 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7873 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7874 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7875 * main.c: Include auto-load.h.
7876 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7877 command.h, observer.h and progspace.h to auto-load.c. Add include
7878 auto-load.h.
7879 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7880 (struct loaded_script, auto_load_pspace_data)
7881 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7882 (hash_loaded_script_entry, eq_loaded_script_entry)
7883 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7884 (maybe_add_script): Move to auto-load.c.
7885 (source_section_scripts): Change maybe_add_script parameters passing,
7886 use script_not_found_warning_print.
7887 (clear_section_scripts, auto_load_objfile_script)
7888 (auto_load_new_objfile, loaded_script_ptr)
7889 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7890 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7891 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7892 auto_load_new_objfile and info_auto_load_scripts initizations to
7893 auto-load.c.
7894 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7895
7896 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7897
7898 Code cleanup.
7899 * charset.c (find_charset_names): Remove variables ix and elt.
7900 Use free_char_ptr_vec.
7901 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7902 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7903 debugdir_end. New variable debugdir_len.
7904 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7905 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7906 declarations.
7907 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7908 and elt. Use free_char_ptr_vec.
7909 * source.c (add_path): Remove variables argv, arg and argv_index.
7910 New variables dir_vec, back_to, ix and name.
7911 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7912 make_cleanup_freeargv. Remove variable separator. Simplify the code
7913 no longer expecting DIRNAME_SEPARATOR.
7914 (openp): Remove variable p, p1 and len. New variables dir_vec,
7915 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7916 no longer expecting DIRNAME_SEPARATOR.
7917 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7918 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7919 debugdir_end.
7920 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7921 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7922 (dirnames_to_char_ptr_vec): New functions.
7923
7924 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 Code cleanup.
7927 * source.c (add_path): Remove always true conditional 'p == 0' and
7928 unindent its code block.
7929
7930 2012-04-17 Pedro Alves <palves@redhat.com>
7931
7932 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7933 (FIELD_BITPOS_LVAL): ... this.
7934 (FIELD_BITPOS): New.
7935 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7936 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7937 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7938 SET_FIELD_BITPOS.
7939 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7940 SET_FIELD_BITPOS.
7941 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7942 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7943 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7944 SET_FIELD_BITPOS.
7945
7946 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7949 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7950 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7951 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7952 * jv-lang.c (java_link_class_type): Likewise, once.
7953 * stabsread.c (read_enum_type): Likewise.
7954
7955 2012-04-16 Yao Qi <yao@codesourcery.com>
7956
7957 * common/agent.c (agent_run_command): Add one more parameter `len'.
7958 Update callers.
7959 * common/agent.h: Update declaration.
7960 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7961 Update.
7962 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7963
7964 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7965
7966 PR mi/13393
7967 * value.c (value_actual_type): New function.
7968 * value.h (value_actual_type): New declaration.
7969 * varobj.c (update_type_if_necessary): New function.
7970 (varobj_create): Call value_actual_type instead of
7971 value_type.
7972 (install_dynamic_child): distinct changed and type changed MI variable
7973 objects.
7974 (update_dynamic_varobj_children): Updated for install_dynamic_child
7975 change. All callers updated.
7976 (varobj_update): Support for MI variable object type change if
7977 the value changed and RTTI is used to determine the type.
7978 (create_child_with_value): Call value_actual_type instead of
7979 value_type.
7980 (adjust_value_for_child_access): Extended with a new parameter which
7981 specify whether the given value should be casted to enclosing type.
7982 All callers updated.
7983
7984 2012-04-14 Yao Qi <yao@codesourcery.com>
7985
7986 Import gnulib module inttypes from git
7987 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7988 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7989 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7990 gnulib/m4/inttypes-pri.m4
7991 * aclocal.m4, config.in, configure: Regenerated.
7992 * gnulib/Makefile.am: Update.
7993 * gnulib/Makefile.in: Update.
7994 * gnulib/m4/gnulib-cache.m4: Update.
7995 * gnulib/m4/gnulib-comp.m4: Update.
7996 * gnulib/inttypes.in.h: New.
7997 * gnulib/m4/inttypes-pri.m4: New.
7998 * gnulib/m4/inttypes.m4: New.
7999
8000 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8001
8002 * infrun.c (resume): Update PC address to the real PC after
8003 preparing to do displaced stepping.
8004
8005 2012-04-12 Doug Evans <dje@google.com>
8006
8007 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8008 All callers updated.
8009
8010 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8011
8012 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8013
8014 2012-04-12 Doug Evans <dje@google.com>
8015
8016 * dwarf2read.c (create_all_type_units): Renamed from
8017 create_debug_types_hash_table. All callers updated.
8018
8019 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8020 local type_sig to sig_type, type_offset to type_offset_in_tu.
8021 (hash_signatured_type): Renamed from hash_type_signature,
8022 all callers updated.
8023 (eq_signatured_type): Renamed from eq_type_signature,
8024 all callers updated.
8025 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8026 (process_enumeration_scope): Ditto.
8027 (lookup_signatured_type_at_offset): Ditto.
8028 (load_full_type_unit, read_signatured_type): Ditto.
8029
8030 2012-04-12 Yao Qi <yao@codesourcery.com>
8031
8032 * remote.c (async_remote_interrupt): Correct function name in
8033 debug message.
8034 (async_remote_interrupt_twice): Ditto.
8035
8036 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8037
8038 * source.c (find_and_open_source): Consistently pass resulting
8039 full path through xfullpath.
8040
8041 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8042
8043 Provide more specific displaced-stepping memory error message.
8044 * infrun.c (displaced_step_prepare): New variable status. Call
8045 target_read_memory instead of read_memory, provide more specific
8046 error message.
8047
8048 2012-04-11 Tristan Gingold <gingold@adacore.com>
8049
8050 PR gdb/13901
8051 * darwin-nat.c (darwin_execvp): Revert previous patch.
8052
8053 2012-04-11 Tristan Gingold <gingold@adacore.com>
8054
8055 PR gdb/13901
8056 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8057 in case of change.
8058
8059 2012-04-11 Tristan Gingold <gingold@adacore.com>
8060
8061 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8062 warning.
8063
8064 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8065
8066 New command 'explore' which helps explore values and types in
8067 scope.
8068 * NEWS: Add an entry about the new 'explore' command.
8069 * data-directory/Makefile.in: Add gdb/command/explore.py
8070 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8071 command using the GDB Python API.
8072
8073 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8074
8075 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8076 extension in jump target calculation.
8077
8078 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8079
8080 * mips-tdep.c (mips32_next_pc): Handle JALX.
8081
8082 2012-04-10 Yao Qi <yao@codesourcery.com>
8083
8084 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8085
8086 2012-04-10 Yao Qi <yao@codesourcery.com>
8087
8088 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8089 and gnulib/m4/gnulib-tool.m4.
8090
8091 2012-04-10 Doug Evans <dje@google.com>
8092
8093 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8094 (load_partial_dies): Clarify comment.
8095 (find_partial_die): Support rereading type units.
8096 Clarify CU handling, if we know offset is in CU, don't search for the
8097 containing CU. Add comment regarding memory waste.
8098
8099 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8100
8101 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8102 i386/x32-avx and i386/x32-avx-linux.
8103 (i386/x32-expedite): New.
8104 (i386/x32-linux-expedite): Likewise.
8105 (i386/x32-avx-expedite): Likewise.
8106 (i386/x32-avx-linux-expedite): Likewise.
8107 ($(outdir)/i386/x32.dat): Likewise.
8108 ($(outdir)/i386/x32-linux.dat): Likewise.
8109 ($(outdir)/i386/x32-avx.dat): Likewise.
8110 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8111
8112 * features/i386/x32-avx-linux.xml: New file.
8113 * features/i386/x32-avx.xml: Likewise.
8114 * features/i386/x32-core.xml: Likewise.
8115 * features/i386/x32-linux.xml: Likewise.
8116 * features/i386/x32.xml: Likewise.
8117
8118 * features/i386/x32-avx-linux.c: New. Generated.
8119 * features/i386/x32-avx.c: Likewise.
8120 * features/i386/x32-linux.c: Likewise.
8121 * features/i386/x32.c: Likewise.
8122 * regformats/i386/x32-avx-linux.dat: Likewise.
8123 * regformats/i386/x32-avx.dat: Likewise.
8124 * regformats/i386/x32-linux.dat: Likewise.
8125 * regformats/i386/x32.dat: Likewise.
8126
8127 2012-04-10 Tristan Gingold <gingold@adacore.com>
8128
8129 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8130 code to kill the inferior.
8131
8132 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8133
8134 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8135 defines.
8136 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8137 defines.
8138 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8139 (yyvsp): New defines.
8140 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8141 defines.
8142 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8143 defines.
8144 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8145 defines.
8146 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8147 defines.
8148 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8149 defines.
8150
8151 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8152
8153 * sparc64-tdep.c (sparc64_store_arguments)
8154 (sparc64_store_arguments): Fix coding style.
8155
8156 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8157
8158 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8159 complex floats, adjust some related comments and tighten a related
8160 assertion.
8161 (sparc64_extract_return_value): Handle complex floats.
8162
8163 2012-04-07 Doug Evans <dje@google.com>
8164
8165 * dwarf2read.c (load_partial_dies): Change condition to assert.
8166
8167 2012-04-06 Doug Evans <dje@google.com>
8168
8169 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8170 "mov %rsp,%rbp".
8171
8172 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8173
8174 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8175 fencepost error.
8176 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8177 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8178 architecture.
8179
8180 2012-04-05 Keith Seitz <keiths@redhat.com>
8181
8182 * linespec.c (decode_compound): Remove.
8183 (enum offset_relative_sign): New enum.
8184 (struct line_offset): New struct.
8185 (struct linespec): New struct.
8186 (struct linespec_state): Move file_symtabs,
8187 user_filename, and user_function into struct linespec.
8188 Make result an anonymous struct holding vectors of
8189 symbolp and minsym_and_objfile_d.
8190 Add language member.
8191 (enum ls_token_type): New enum.
8192 (linespec_keywords): New array.
8193 (struct ls_token): New struct.
8194 (struct ls_parser): New struct.
8195 (linespec_lexer_lex_number): New function.
8196 (linespec_lexer_lex_keyword): New function.
8197 (is_ada_operator): New function.
8198 (skip_quote_char): New function.
8199 (copy_token_string): New function.
8200 (is_closing_quote_enclosed): New function.
8201 (find_parameter_list_end): New function.
8202 (linespec_lexer_lex_string): New function.
8203 (linespec_lexer_lex_one): New function.
8204 (linespec_lexer_consume_token): New function.
8205 (linespec_lexer_peek_token): New function.
8206 (cplusplus_error): Remove unused function.
8207 (find_methods): Update comment.
8208 (find_toplevel_char): Return const.
8209 (is_objc_method_format): Remove unused function.
8210 (find_toplevel_string): New function.
8211 (is_linespec_boundary): Remove.
8212 (symbol_not_found_error): New function.
8213 (find_method_overload_end): Remove function.
8214 (unexpected_linespec_error): New function.
8215 (keep_name_info): Remove.
8216 (linespec_parse_line_offset): New function.
8217 (linespec_parse_basic): New function.
8218 (canonicalize_linespec): New function.
8219 (decode_line_internal): Remove.
8220 (create_sals_line_offset): New function adapted from
8221 decode_all_digits.
8222 (convert_linespec_to_sals): New function.
8223 (parse_linespec): New function.
8224 (linespec_parser_new): New function.
8225 (linespec_state_destructor): Change parameter type to
8226 struct linespec_state *.
8227 Add language parameter.
8228 Remove freeing of moved members.
8229 (linespec_parser_delete): New function.
8230 (decode_line_full): Use parse_linespec and linespec_parser_new.
8231 (decode_line_1): Likewise.
8232 (decode_indirect): Rename to ...
8233 (linespec_expression_to_pc): ... this and rewrite
8234 to simply find CORE_ADDR, storing this result for later
8235 conversion to SALs.
8236 (locate_first_half): Remove.
8237 (deocde_objc): Add parameter LS.
8238 Initialize new struct collect_info members.
8239 Handle minimal symbols, too.
8240 (decode_compound): Delete.
8241 (lookup_prefix_sym): Rewrite.
8242 (compare_msymbols): New function.
8243 (find_method): Rewrite.
8244 Do not call cplusplus_error.
8245 (symtabs_from_filename): Rewrite.
8246 (collect_function_symbols): Delete.
8247 (find_function_symbols): Rewrite without ARGPTR-style
8248 processing.
8249 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8250 (decode_dollar): Adapted and renamed to ...
8251 (linespec_parse_variable): ... this.
8252 (find_linespec_symbols): New function.
8253 (decode_label): Adapted and renamed to ...
8254 (find_label_symbols): ... this.
8255 (decode_digits_list_mode): Add and use LS argument.
8256 (decode_digits_ordinary): Likewise.
8257 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8258 If in list mode, allow any symbol class. Otherwise, only
8259 permit LOC_BLOCK symbols.
8260 (minsym_found): Update comments.
8261 (search_minsyms_for_name): Do not convert the matching symbol
8262 into a SAL. Simply push the symbol and objfile into the
8263 result vector.
8264 (decode_variable): Delete. Contents adapted into
8265 find_linespec_symbols.
8266
8267 * cp-support.c (SKIP_SPACE): Remove.
8268 (operator_tokens): Remove unused global.
8269 (cp_validate_operator): Remove.
8270 * cp-support.h (cp_validate_operator): Remove declaration.
8271
8272 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8273
8274 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8275 for TYPE_VPTR_FIELDNO.
8276 * valprint.c (valprint_check_validity): Make it global, move the
8277 function comment ...
8278 * value.h (valprint_check_validity): ... to this new declaration.
8279
8280 2012-04-02 Tristan Gingold <gingold@adacore.com>
8281
8282 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8283 the STATE32 api for i386 state.
8284 (i386_darwin_store_inferior_registers): Likewise.
8285
8286 2012-04-02 Tristan Gingold <gingold@adacore.com>
8287
8288 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8289 SS offset.
8290 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8291 format_string.
8292
8293 2012-04-02 Tristan Gingold <gingold@adacore.com>
8294
8295 PR gdb/13901
8296 * darwin-nat.c (darwin_execvp): Set binary preference.
8297
8298 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8299
8300 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8301
8302 2012-03-30 Tom Tromey <tromey@redhat.com>
8303
8304 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8305 of TRY_CATCH. Fix error handling.
8306 * python/py-value.c (convert_value_from_python): Move 'old'
8307 declaration to innermost scope.
8308
8309 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8310 Andrey Smirnov <andrew.smirnov@gmail.com>
8311
8312 -Wshadow warning fix.
8313 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8314 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8315 Adjust code accordingly.
8316
8317 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8318
8319 * ada-lang.c (symbol_completion_add): Rename parameter
8320 "encoded" into "encoded_p". Ajust code and documentation
8321 accordingly.
8322
8323 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8324 Andrey Smirnov <andrew.smirnov@gmail.com>
8325
8326 -Wshadow warning fix.
8327 * ada-lang.c (symbol_completion_add): Rename parameter
8328 "wild_match" into wild_match_p. Update code and documentation
8329 accordingly.
8330
8331 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8332
8333 * ada-lang.c (symbol_completion_match): Rename parameter
8334 "encoded" into "encoded_p". Ajust code and documentation
8335 accordingly.
8336
8337 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8338 Andrey Smirnov <andrew.smirnov@gmail.com>
8339
8340 -Wshadow warning fix.
8341 * ada-lang.c (symbol_completion_match): Rename parameter
8342 "wild_match" into "wild_match_p". Adjust code and function
8343 documentation accordingly.
8344
8345 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8346 Andrey Smirnov <andrew.smirnov@gmail.com>
8347
8348 -Wshadow warning fix.
8349 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8350 "symbol_info" into "info". Adjust code accordingly.
8351 (ada_lookup_symbol): Likewise.
8352
8353 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8354
8355 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8356 of this function's documentation.
8357
8358 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8359 Andrey Smirnov <andrew.smirnov@gmail.com>
8360
8361 -Wshadow warning fix.
8362 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8363 variable into "wild_match_p". Adjust code accordingly.
8364
8365 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8366 Andrey Smirnov <andrew.smirnov@gmail.com>
8367
8368 -Wshadow warning fix.
8369 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8370 parameter into "wild_match_p". Adjust code accordingly.
8371 Document this parameter in the function description.
8372
8373 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8374 Andrey Smirnov <andrew.smirnov@gmail.com>
8375
8376 -Wshadow warning fix.
8377 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8378 "wild_match" parameter to "wild_match_p" (-Wshadow).
8379
8380 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8381
8382 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8383 in function documentation.
8384
8385 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8386 Andrey Smirnov <andrew.smirnov@gmail.com>
8387
8388 -Wshadow warning fix.
8389 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8390 variable into wild_match_p. Adjust code accordingly.
8391
8392 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8393 Andrey Smirnov <andrew.smirnov@gmail.com>
8394
8395 * ada-valprint.c (ada_val_print_1): Move the code handling
8396 TYPE_CODE_ENUM inside its own lexical block. Declare
8397 variables len and val there, instead of in the function's
8398 top level block. Avoid declaring deref_val again in a way
8399 that shadows another variable of the same name declared
8400 in one of the up-level blocks. Just re-use the up-level
8401 variable instead.
8402
8403 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8404
8405 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8406 Replace block_found argument by symbol_info. Adjust
8407 implementation accordingly. Add function documentation.
8408 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8409 Fix documentation.
8410 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8411 * ada-exp.y (write_object_renaming): Adjust to new
8412 ada_lookup_encoded_symbol API.
8413
8414 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8415
8416 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8417 documentation.
8418
8419 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8420
8421 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8422 (v850_register_name): Add the mpu and fpu register names.
8423 (v850e_register_name): Add the mpu and fpu register names.
8424 (v850e2_register_name): New function.
8425 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8426 bfd_mach_v850e2v3.
8427
8428 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8429
8430 * NEWS: Add entry for Ada varobj support.
8431
8432 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8433
8434 * varobj.c (default_value_is_changeable_p): New function,
8435 extracted from varobj_value_is_changeable_p. Add declaration.
8436 (ada_value_is_changeable_p): New function, extracted from
8437 varobj_value_is_changeable_p. Add declaration.
8438 (struct language_specific): New field "value_is_changeable_p".
8439 (languages): Add entries for new field.
8440 (varobj_create): Set language before calling install_new_value.
8441 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8442 "value_is_changeable_p" language callback.
8443
8444 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8445
8446 * ada-varobj.h, ada-varobj.c: New files.
8447 * Makefile.in (SFILES): Add ada-varobj.c.
8448 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8449 (COMMON_OBS): Add ada-varobj.o.
8450
8451 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8452
8453 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8454 (struct language_specific): New field "value_has_mutated".
8455 (languages): Set field "value_has_mutated" in each entry of array.
8456 (varobj_value_has_mutated): New function.
8457 (varobj_udpdate): Add handling of type mutation.
8458 (value_of_root): Add handling of type mutation.
8459 (ada_value_has_mutated): New function.
8460
8461 2012-03-28 Pedro Alves <palves@redhat.com>
8462
8463 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8464 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8465
8466 2012-03-28 Tom Tromey <tromey@redhat.com>
8467
8468 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8469 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8470 before returning.
8471
8472 2012-03-28 Tom Tromey <tromey@redhat.com>
8473
8474 * .dir-locals.el: New file.
8475
8476 2012-03-28 Pedro Alves <palves@redhat.com>
8477
8478 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8479
8480 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8481
8482 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8483 handling for r0.
8484
8485 2012-03-27 Pedro Alves <palves@redhat.com>
8486
8487 Eliminate struct ui_stream.
8488
8489 * ui-out.h (struct ui_stream): Delete.
8490 (ui_out_field_stream): Adjust prototype.
8491 (ui_out_stream_new, ui_out_stream_delete)
8492 (make_cleanup_ui_out_stream_delete): Delete declarations.
8493 * ui-out.c (ui_out_field_stream): Change prototype to take a
8494 ui_file instead of a ui_stream. Adjust.
8495 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8496 (make_cleanup_ui_out_stream_delete): Delete.
8497 * breakpoint.c (print_breakpoint_location)
8498 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8499 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8500 * disasm.c (dump_insns): Ditto.
8501 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8502 prototype.
8503 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8504 ui_stream/ui_out_stream_new.
8505 * infcmd.c (print_return_value): Ditto.
8506 * osdata.c (info_osdata_command): Don't allocate a local
8507 ui_stream.
8508 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8509 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8510 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8511 allocate a local ui_stream.
8512 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8513 instead of ui_stream/ui_out_stream_new.
8514 (list_args_or_locals): Don't allocate a local ui_stream.
8515 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8516 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8517 ui_stream/ui_out_stream_new.
8518 * cli/cli-setshow.c (do_setshow_command): Ditto.
8519
8520 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8521
8522 * arm-linux-tdep.c (arm_linux_init_abi): Call
8523 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8524 * arm-tdep.c (arm_process_record): New function.
8525 (deallocate_reg_mem): New function.
8526 (decode_insn): New function.
8527 (thumb_record_branch): New function.
8528 (thumb_record_ldm_stm_swi(): New function.
8529 (thumb_record_misc): New function.
8530 (thumb_record_ld_st_stack): New function.
8531 (thumb_record_ld_st_imm_offset): New function.
8532 (thumb_record_ld_st_reg_offset(): New function.
8533 (thumb_record_add_sub_cmp_mov): New function.
8534 (thumb_record_shift_add_sub): New function.
8535 (arm_record_coproc_data_proc): New function.
8536 (arm_record_coproc): New function.
8537 (arm_record_b_bl): New function.
8538 (arm_record_ld_st_multiple): New function.
8539 (arm_record_ld_st_reg_offset): New function.
8540 (arm_record_ld_st_imm_offset): New function.
8541 (arm_record_data_proc_imm): New function.
8542 (arm_record_data_proc_misc_ld_str): New function.
8543 (arm_record_extension_space): New function.
8544 (arm_record_strx): New function.
8545 (sbo_sbz): New function.
8546 (struct insn_decode_record): New structure for arm insn record.
8547 (REG_ALLOC): New macro for reg allocations.
8548 (MEM_ALLOC): New macro for memory allocations.
8549 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8550
8551 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8552
8553 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8554 (store_register): Likewise.
8555
8556 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8557
8558 * MAINTAINERS (Write After Approval): Add myself to the list.
8559
8560 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8561
8562 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8563 Describe also the option "auto".
8564
8565 2012-03-22 Richard Henderson <rth@redhat.com>
8566
8567 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8568 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8569
8570 2012-03-22 Richard Henderson <rth@redhat.com>
8571
8572 * jit.c (jit_read_code_entry): Compute alignment and offset of
8573 int64_t member before computing entry_size.
8574
8575 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8576
8577 Python scripting: Add new method Value.referenced_value to
8578 gdb.Value which can dereference pointer as well as reference
8579 values.
8580 * NEWS: Add entry under 'Python scripting' about the new method
8581 Value.referenced_value on gdb.Value objects.
8582 * python/py-value.c (valpy_referenced_value): New function
8583 defining a new method on gdb.Value objects which can dereference
8584 pointer and reference values.
8585
8586 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8587
8588 * MAINTAINERS (Write After Approval): Add myself to the list.
8589
8590 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8591
8592 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8593 in addition to "main".
8594
8595 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8596
8597 * expression.h (op_name): Add declaration.
8598 * expprint.c (op_name): Remove declaration. Make non-static.
8599 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8600
8601 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8602
8603 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8604 of struct siginfo.
8605 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8606 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8607 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8608 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8609 (linux_nat_get_siginfo): Likewise.
8610 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8611 (linux_nat_get_siginfo): Likewise.
8612 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8613 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8614 * procfs.c (gdb_siginfo_t): Likewise.
8615
8616 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8617
8618 * .gitignore: Ignore more files.
8619
8620 2012-03-20 Pedro Alves <palves@redhat.com>
8621
8622 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8623 returns.
8624
8625 2012-03-20 Yao Qi <yao@codesourcery.com>
8626
8627 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8628 comment.
8629
8630 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8631
8632 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8633 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8634 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8635 sect_offset.
8636 * dwarf2expr.h (cu_offset, sect_offset): New types.
8637 (struct dwarf_expr_context_funcs) <dwarf_call>
8638 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8639 sect_offset.
8640 (struct dwarf_expr_context) <len>: Improve the comment.
8641 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8642 cu_offset and sect_offset.
8643 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8644 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8645 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8646 * dwarf2loc.h: Include dwarf2expr.h.
8647 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8648 and sect_offset.
8649 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8650 Improve the comment.
8651 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8652 (struct signatured_type, struct line_header, struct partial_die_info)
8653 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8654 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8655 (get_die_type_at_offset, create_cus_from_index)
8656 (create_signatured_type_table_from_index, dw2_get_file_names)
8657 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8658 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8659 (create_debug_types_hash_table, process_psymtab_comp_unit)
8660 (load_partial_comp_unit, create_all_comp_units)
8661 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8662 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8663 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8664 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8665 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8666 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8667 (find_partial_die, read_attribute_value, lookup_die_type)
8668 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8669 (is_ref_attr): New function comment.
8670 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8671 Use cu_offset and sect_offset.
8672 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8673 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8674 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8675 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8676 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8677 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8678 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8679 sect_offset.
8680
8681 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8682
8683 Code cleanup.
8684 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8685 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8686 with xfree.
8687 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8688
8689 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8690
8691 * NEWS: Describe new options --init-command=FILE, -ix and
8692 --init-eval-command=COMMAND, -iex.
8693 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8694 CMDARG_INIT_COMMAND.
8695 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8696 "init-command", "init-eval-command", "ix" and "iex" to the variable
8697 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8698 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8699 (print_gdb_help): Describe --init-command=FILE, -ix and
8700 --init-eval-command=COMMAND, -iex.
8701
8702 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8703
8704 Code cleanup.
8705 * main.c (struct cmdarg): Move it here from main. Add more comments.
8706 (cmdarg_s, VEC (cmdarg_s)): New.
8707 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8708 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8709 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8710 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8711 of CMDARG.
8712
8713 2012-03-19 Tom Tromey <tromey@redhat.com>
8714
8715 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8716
8717 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 PR symtab/13777
8720 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8721 GCC >=4.5.
8722
8723 2012-03-16 Chris January <chris.january@allinea.com>
8724
8725 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8726 of clear.
8727
8728 2012-03-16 Chris January <chris.january@allinea.com>
8729
8730 * source.c (add_path): Use memmove instead of strcpy because the
8731 strings overlap.
8732
8733 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8734
8735 * value.h (set_value_parent): Add declaration.
8736 * value.c (set_value_parent): New function.
8737 (value_address): If VALUE->PARENT is not NULL, then use it as
8738 the base address instead of VALUE->LOCATION.address.
8739 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8740 the same as OBJ's address. Adjust V's offset accordingly.
8741 Set V's parent.
8742
8743 2012-03-16 Gary Benson <gbenson@redhat.com>
8744
8745 PR breakpoints/10738
8746 * dwarf2read.c (use_deprecated_index_sections): New global.
8747 (struct partial_die_info): New member may_be_inlined.
8748 (read_partial_die): Set may_be_inlined where appropriate.
8749 (add_partial_subprogram): Add partial symbols for partial
8750 DIEs that may be inlined.
8751 (new_symbol_full): Add inlined subroutines to the current
8752 scope.
8753 (write_psymtabs_to_index): Bump version number.
8754 (dwarf2_read_index): Read only version 6 indices unless
8755 use_deprecated_index_sections is set.
8756 * linespec.c (symbol_and_data_callback): New structure.
8757 (iterate_inline_only): New function.
8758 (iterate_over_all_matching_symtabs): New argument
8759 "include_inline". If nonzero, also call the callback for
8760 symbols representing inlined subroutines.
8761 (lookup_prefix_sym): Pass extra argument to the above.
8762 (find_function_symbols): Likewise.
8763 (add_matching_symbols_to_info): Likewise.
8764 * NEWS: Mention that GDB can now set breakpoints on inlined
8765 functions.
8766
8767 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8768
8769 * p-typeprint.c (pascal_type_print_method_args):
8770 Fix display of parameter of methods.
8771
8772 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8773
8774 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8775 Add missing prototype.
8776
8777 2012-03-16 Yao Qi <yao@codesourcery.com>
8778 Jan Kratochvil <jan.kratochvil@redhat.com>
8779
8780 Fix false compilation warning.
8781 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8782
8783 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8784 Pedro Alves <pedro@codesourcery.com>
8785
8786 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8787 (arm_register_g_packet_guesses): New function.
8788 (arm_gdbarch_init): Don't force a target description with
8789 registers when the executable is detected as M-profile. Instead
8790 set gdbarch->tdep->is_m. Register `g' packet guesses.
8791 (_initialize_arm_tdep): Initialize the new target description.
8792 * features/arm-with-m-fpa-layout.xml: New description.
8793 * features/arm-with-m-fpa-layout.c: New, generated.
8794
8795 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8796
8797 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8798 Update function description.
8799 (insert_bp_location): Do not wipe bl->target_info out.
8800 * mem-break.c: #include "gdb_string.h".
8801 (default_memory_insert_breakpoint): Do not call target_read_memory
8802 with a pointer to the breakpoint's shadow_contents buffer. Use
8803 a local buffer instead.
8804 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8805
8806 2012-03-15 Tom Tromey <tromey@redhat.com>
8807
8808 * NEWS: Mention "info vtbl", not "info vtable".
8809 * cp-support.c (info_vtbl_command): Fix comment.
8810 (_initialize_cp_support): Fix text.
8811
8812 2012-03-15 Tom Tromey <tromey@redhat.com>
8813
8814 * cp-valprint.c (cp_print_value_fields): Use
8815 print_function_pointer_address for vtable slot.
8816
8817 2012-03-15 Tom Tromey <tromey@redhat.com>
8818
8819 * gnu-v3-abi.c (struct value_and_voffset): New.
8820 (hash_value_and_voffset, eq_value_and_voffset)
8821 (compare_value_and_voffset, compute_vtable_size)
8822 (print_one_vtable, gnuv3_print_vtable): New functions.
8823 (init_gnuv3_ops): Initialize 'print_vtable' field.
8824 * cp-support.c (info_vtbl_command): New function.
8825 (_initialize_cp_support): Add "info vtbl".
8826 * cp-abi.h (cplus_print_vtable): Declare.
8827 (struct cp_abi_ops) <print_vtable>: New field.
8828 * cp-abi.c (cplus_print_vtable): New function.
8829 * NEWS: Update.
8830
8831 2012-03-15 Tom Tromey <tromey@redhat.com>
8832
8833 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8834 iterate_over_symbols.
8835
8836 2012-03-14 Doug Evans <dje@google.com>
8837
8838 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8839 DW_OP_GNU_parameter_ref.
8840
8841 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8842
8843 Fix double prompt of 'interpreter-exec mi'.
8844 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8845 (mi_interpreter_resume): use it.
8846 (mi_execute_command_input_handler): New function.
8847 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8848 mi_execute_command_input_handler.
8849
8850 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8851
8852 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8853 prototype.
8854 (darwin_debug_port_info): Make static.
8855 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8856 * machoread.c (_initialize_machoread): Add prototype.
8857 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8858 (i386_darwin_set_control, i386_darwin_get_control)
8859 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8860 i386_darwin_get_status, i386_darwin_get_control):
8861 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8862
8863 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8864
8865 * ax-gdb.c (gen_usual_unary): Remove special handling of
8866 enum and bool types.
8867
8868 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8869
8870 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8871
8872 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8873
8874 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8875
8876 2012-03-13 Chris January <chris.january@allinea.com>
8877
8878 * aix-thread.c (fill_sprs): Store the floating point registers
8879 at the correct offsets into vals.
8880
8881 2012-03-13 Doug Evans <dje@google.com>
8882
8883 * NEWS: Mention symbol-reloading has been deleted.
8884 * symfile.c (symbol_reloading): Delete.
8885 (show_symbol_reloading): Delete.
8886 (_initialize_symfile): Delete set/show symbol-reloading.
8887
8888 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8889 read_in_chain until we have successfully read it in.
8890 (load_full_comp_unit): Ditto.
8891 (read_signatured_type): Add comment.
8892
8893 2012-03-13 Chris January <chris.january@allinea.com>
8894
8895 * stabsread.c (fix_common_block): Change type of valu argument
8896 to CORE_ADDR.
8897
8898 2012-03-13 Chris January <chris.january@allinea.com>
8899
8900 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8901 instruction.
8902
8903 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8904
8905 * common/linux-procfs.c (linux_proc_get_int): New, from
8906 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8907 field.
8908 (linux_proc_get_tgid): Only call linux_proc_get_int.
8909 (linux_proc_get_tracerpid): New.
8910 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8911 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8912 linux_proc_pid_has_state.
8913 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8914 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8915 (linux_ptrace_attach_warnings): New.
8916 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8917 New declaration.
8918 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8919 (linux_nat_attach): New variables ex, buffer, message and message_s.
8920 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8921
8922 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8923
8924 * Makefile.in (linux-ptrace.o): New.
8925 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8926 from linux-nat.c.
8927 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8928 * common/linux-ptrace.c: New file.
8929 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8930 * config/arm/linux.mh: Likewise.
8931 * config/i386/linux.mh: Likewise.
8932 * config/i386/linux64.mh: Likewise.
8933 * config/ia64/linux.mh: Likewise.
8934 * config/m32r/linux.mh: Likewise.
8935 * config/m68k/linux.mh: Likewise.
8936 * config/mips/linux.mh: Likewise.
8937 * config/pa/linux.mh: Likewise.
8938 * config/powerpc/linux.mh: Likewise.
8939 * config/powerpc/ppc64-linux.mh: Likewise.
8940 * config/powerpc/spu-linux.mh: Likewise.
8941 * config/s390/s390.mh: Likewise.
8942 * config/sparc/linux.mh: Likewise.
8943 * config/sparc/linux64.mh: Likewise.
8944 * config/xtensa/linux.mh: Likewise.
8945 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8946 common/linux-procfs.c.
8947 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8948
8949 2012-03-13 Hui Zhu <teawater@gmail.com>
8950 Pedro Alves <palves@redhat.com>
8951
8952 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8953 CREATE_BREAKPOINT_FLAGS_INSERTED.
8954 (create_breakpoint_sal, create_breakpoints_sal)
8955 (base_breakpoint_create_breakpoints_sal)
8956 (tracepoint_create_breakpoints_sal)
8957 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8958 down.
8959 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8960 (ftrace_command, strace_command): Adjust.
8961 (create_tracepoint_from_upload): Pass
8962 CREATE_BREAKPOINT_FLAGS_INSERTED.
8963 * breakpoint.h (enum breakpoint_create_flags): New.
8964 (create_breakpoint): New flags parameter.
8965 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8966 * python/py-breakpoint.c (bppy_init): Adjust.
8967 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8968 * spu-tdep.c (spu_catch_start): Adjust.
8969
8970 2012-03-13 Pedro Alves <palves@redhat.com>
8971 Hui Zhu <teawater@gmail.com>
8972 Yao Qi <yao@codesourcery.com>
8973
8974 * remote.c (struct remote_state): New field `starting_up'.
8975 (remote_start_remote): Set and clear it.
8976 (remote_can_download_tracepoint): If starting up, return false.
8977
8978 2012-03-13 Yao Qi <yao@codesourcery.com>
8979
8980 * inferior.h (struct inferior): Remove fields any_syscall_count,
8981 syscalls_counts and total_syscalls_count. Move them to new
8982 struct catch_syscall_inferior_data in breakpoint.c.
8983 * breakpoint.c: Call DEF_VEC_I(int).
8984 (struct catch_syscall_inferior_data): New.
8985 (get_catch_syscall_inferior_data): New.
8986 (catch_syscall_inferior_data_cleanup): New.
8987 (insert_catch_syscall): Update to access data in
8988 struct catch_syscall_inferior_data.
8989 (insert_catch_syscall): Likewise.
8990 (remove_catch_syscall): Likewise.
8991 (remove_catch_syscall): Likewise.
8992 (is_syscall_catchpoint_enabled): Likewise.
8993 (add_catch_command): Likewise.
8994 (_initialize_breakpoint): Register cleanup.
8995 * breakpoint.h: Removed DEF_VEC_I(int).
8996 * dwarf2loc.c: Call DEF_VEC_I(int).
8997 * mi/mi-main.c: Likewise.
8998
8999 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9000
9001 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9002
9003 2012-03-12 Chris January <chris.january@allinea.com>
9004
9005 * aix-thread.c (_initialize_aix_thread): Add prototype.
9006 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9007 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9008
9009 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9010
9011 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9012 include of "amd64-nat.h".
9013
9014 2012-03-12 Tom Tromey <tromey@redhat.com>
9015
9016 * buildsym.c (record_pending_block): Now static.
9017 * buildsym.h: (record_pending_block): Remove.
9018
9019 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9020
9021 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9022
9023 2012-03-09 Tom Tromey <tromey@redhat.com>
9024
9025 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9026 producer_is_gxx_lt_4_6>: New fields.
9027 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9028
9029 2012-03-09 Tom Tromey <tromey@redhat.com>
9030
9031 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9032
9033 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9034
9035 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9036 prototype.
9037
9038 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9039
9040 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9041
9042 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9043
9044 Fix -Wmissing-prototypes build.
9045 * arm-linux-nat.c (get_thread_id): Make it static.
9046 * xtensa-linux-nat.c (get_thread_id): Likewise.
9047
9048 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9049
9050 * server.c (process_point_options): If a conditional expression
9051 is found, only print a message if remote_debug is nonzero.
9052
9053 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9054
9055 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9056 of internal error for unknown/unsupported types.
9057
9058 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9059
9060 Fix CU relative vs. absolute DIE offsets.
9061 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9062 offset to offset_in_cu.
9063 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9064 TYPE_OFFSET.
9065 (dwarf2_fetch_die_location_block): Rename parameter offset to
9066 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9067
9068 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9069
9070 * libunwind-frame.c: Rename to ...
9071 * ia64-libunwind-tdep.c: ... here.
9072 * libunwind-frame.h: Rename to ...
9073 * ia64-libunwind-tdep.h: ... here.
9074 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9075 ia64-libunwind-tdep.h.
9076 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9077 * README (--with-libunwind): Rename to ...
9078 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9079 * config.in: Regenerate.
9080 * configure: Regenerate.
9081 * configure.ac: New option --with-libunwind-ia64, make the
9082 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9083 Remove AC_DEFINE for HAVE_LIBUNWIND.
9084 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9085 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9086 Rename libunwind-frame in the general comment.
9087 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9088 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9089 Move forward declarations inside #ifndef. Rename libunwind-frame in
9090 the general comment.
9091 * ia64-tdep.c: Rename libunwind-frame.h #include to
9092 ia64-libunwind-tdep.h.
9093 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9094 (ia64_libunwind_descr): Rename libunwind-frame to
9095 ia64-libunwind-tdep in these function comments.
9096 * ia64-tdep.h: Rename libunwind-frame.h #include to
9097 ia64-libunwind-tdep.h.
9098 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9099 ia64-libunwind-tdep in that data comment.
9100
9101 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9102
9103 * libunwind-frame.h (struct frame_unwind): New declaration.
9104
9105 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9106
9107 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9108 "set breakpoint condition-evaluation" command.
9109
9110 2012-03-08 Tristan Gingold <gingold@adacore.com>
9111
9112 * sparc-stub.c: Move to stubs/
9113 * sh-stub.c: Likewise.
9114 * m68k-stub.c: Likewise.
9115 * m32r-stub.c: Likewise.
9116 * i386-stub.c: Likewise.
9117
9118 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9119
9120 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9121 linux_get_siginfo_type.
9122
9123 * m68klinux-nat.c: Include "gdb_proc_service.h".
9124 (PTRACE_GET_THREAD_AREA): Define.
9125 (ps_get_thread_area): New function.
9126
9127 2012-03-08 Yao Qi <yao@codesourcery.com>
9128
9129 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9130 `xsnprintf'.
9131 (remote_query_attached): Likewise.
9132 (remote_static_tracepoint_marker_at): Likewise.
9133 (remote_set_permissions): Likewise.
9134 (remote_detach_1, extended_remote_attach_1): Likewise.
9135 (send_g_packet, remote_vkill): Likewise.
9136 (extended_remote_disable_randomization): Likewise.
9137 (remote_add_target_side_condition): Likewise.
9138 (remote_insert_breakpoint): Likewise.
9139 (remote_remove_breakpoint): Likewise.
9140 (remote_insert_watchpoint): Likewise.
9141 (remote_remove_watchpoint): Likewise.
9142 (remote_insert_hw_breakpoint): Likewise.
9143 (remote_insert_hw_breakpoint): Likewise.
9144 (remote_remove_hw_breakpoint): Likewise.
9145 (remote_download_command_source): Likewise.
9146 (remote_download_tracepoint): Likewise.
9147 (remote_download_trace_state_variable): Likewise.
9148 (remote_disable_tracepoint): Likewise.
9149 (remote_trace_set_readonly_regions): Likewise.
9150 (remote_get_tracepoint_status): Likewise.
9151 (remote_trace_find): Likewise.
9152 (remote_get_trace_state_variable_value): Likewise.
9153 (remote_set_disconnected_tracing): Likewise.
9154 (remote_set_circular_trace_buffer): Likewise.
9155 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9156 (remote_use_agent): Likewise.
9157 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9158 Update callers.
9159
9160 2012-03-07 Pedro Alves <palves@redhat.com>
9161
9162 * NEWS: Mention QProgramSignals.
9163 * inferior.h (update_signals_program_target): Declare.
9164 * infrun.c: (update_signals_program_target): New.
9165 (handle_command): Update the target of the new program signals
9166 array changes.
9167 * remote.c (PACKET_QProgramSignals): New enum.
9168 (last_program_signals_packet): New global.
9169 (remote_program_signals): New.
9170 (remote_start_remote): Update the target with the program signals
9171 list.
9172 (remote_protocol_features): Add entry for QPassSignals.
9173 (remote_open_1): Free anc clear last_program_signals_packet.
9174 (init_remote_ops): Install remote_program_signals.
9175 * target.c (update_current_target): Adjust.
9176 (target_program_signals): New.
9177 * target.h (struct target_ops) <to_program_signals>: New field.
9178 (target_program_signals): Declare.
9179
9180 2012-03-07 Pedro Alves <palves@redhat.com>
9181
9182 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9183 extensions.
9184
9185 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9186
9187 * m68klinux-nat.c (getregs_supplies): Make static.
9188 (getfpregs_supplies): Likewise.
9189 (have_ptrace_getregs): Likewise.
9190
9191 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9192
9193 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9194 in call to get_die_type_at_offset.
9195
9196 2012-03-06 Stan Shebs <stan@codesourcery.com>
9197
9198 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9199 * mi/mi-cmd-disas.c: Ditto.
9200 * mi/mi-cmd-env.c: Ditto.
9201 * mi/mi-cmd-file.c: Ditto.
9202 * mi/mi-cmd-stack.c: Ditto.
9203 * mi/mi-cmd-target.c: Ditto.
9204 * mi/mi-cmd-var.c: Ditto.
9205 * mi/mi-cmds.c: Ditto.
9206 * mi/mi-cmds.h: Ditto.
9207 * mi/mi-console.c: Ditto.
9208 * mi/mi-getopt.c: Ditto.
9209 * mi/mi-getopt.h: Ditto.
9210 * mi/mi-interp.c: Ditto.
9211 * mi/mi-main.c: Ditto.
9212 * mi/mi-out.c: Ditto.
9213 * mi/mi-parse.c: Ditto.
9214 * mi/mi-parse.h: Ditto.
9215 * mi/mi-symbol-cmds.c: Ditto.
9216
9217 * mi/mi-getopt.h: Move mi_opt struct up.
9218 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9219 return.
9220 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9221
9222 2012-03-06 Tom Tromey <tromey@redhat.com>
9223
9224 * proc-service.c (ps_pglobal_lookup): Set the current program
9225 space.
9226
9227 2012-03-06 Pedro Alves <palves@redhat.com>
9228
9229 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9230
9231 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9232
9233 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9234
9235 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9236
9237 Code cleanup.
9238 * common/linux-osdata.c (linux_common_core_of_thread): New function
9239 comment.
9240 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9241 call by linux_common_core_of_thread.
9242 (linux_nat_core_of_thread_1): Remove.
9243 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9244 * linux-thread-db.c: Include linux-osdata.h.
9245 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9246 linux_common_core_of_thread.
9247
9248 2012-03-05 Tom Tromey <tromey@redhat.com>
9249
9250 * value.c (value_primitive_field): Don't fetch contents for
9251 non-virtual bases.
9252
9253 2012-03-05 Tom Tromey <tromey@redhat.com>
9254
9255 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9256
9257 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9258
9259 * s390-nat.c: Include "gregset.h".
9260
9261 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9262
9263 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9264 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9265 (libunwind_load): New variable so_error, use it for dlerror. Try to
9266 load also LIBUNWIND_SO_7.
9267
9268 2012-03-05 Pedro Alves <palves@redhat.com>
9269
9270 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9271 is not NULL, and remove resulting dead code.
9272
9273 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9274
9275 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9276 prologue to sh_analyze_prologue.
9277 (sh_analyze_prologue): Make better use of such an upper limit, and
9278 generally be more cautious about accessing memory.
9279
9280 2012-03-05 Tom Tromey <tromey@redhat.com>
9281
9282 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9283 _initialize_ia64_hpux_tdep.
9284
9285 2012-03-05 Pedro Alves <palves@redhat.com>
9286
9287 PR gdb/13766
9288
9289 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9290 the register state is clear, supply explicit zero, instead of
9291 marking the register unavailable.
9292
9293 2012-03-05 Tristan Gingold <gingold@adacore.com>
9294
9295 * NEWS: Mention OpenVMS ia64 new target.
9296
9297 2012-03-05 Tristan Gingold <gingold@adacore.com>
9298
9299 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9300 (ia64_unw_accessors, ia64_unw_rse_accessors)
9301 (ia64_libunwind_descr): Declare.
9302 * ia64-vms-tdep.c: New file.
9303 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9304 (ia64_libunwind_descr): Make them public.
9305 * configure.tgt: Add ia64-*-*vms*.
9306 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9307 (ALLDEPFILES): Add ia64-vms-tdep.c
9308
9309 2012-03-05 Tristan Gingold <gingold@adacore.com>
9310
9311 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9312 * remote.c (PACKET_qXfer_uib): New enum value.
9313 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9314 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9315 (_initialize_remote): Call add_packet_config_cmd for
9316 xfer:uib packet.
9317
9318 2012-03-05 Tristan Gingold <gingold@adacore.com>
9319
9320 * osabi.c (gdb_osabi_names): Add OpenVMS.
9321 (generic_elf_osabi_sniffer): Likewise.
9322 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9323
9324 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9325
9326 Removed unused code.
9327 * libunwind-frame.c (libunwind_frame_unwind)
9328 (libunwind_frame_base_address): Remove.
9329 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9330
9331 2012-03-04 Yao Qi <yao@codesourcery.com>
9332
9333 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9334 remove trailing new line.
9335 (agent_run_command, agent_run_command): Add _ markup.
9336 (agent_capability_check): Likewise.
9337
9338 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9339
9340 * breakpoint.c (set_condition_evaluation_mode): Set
9341 CONDITION_EVALUATION_MODE unconditionally.
9342
9343 2012-03-03 Yao Qi <yao@codesourcery.com>
9344
9345 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9346 * common/agent.h: Update declaration.
9347 * inf-child.c (inf_child_use_agent): New.
9348 (inf_child_can_use_agent): New.
9349 (inf_child_target): Initialize fields `to_use_agent'
9350 and `to_can_use_agent'.
9351 * agent.c (agent_new_objfile): New.
9352 (_initialize_agent): Add agent_new_objfile to new_objfile
9353 observer.
9354
9355 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9356 New.
9357 (linux_target_install_ops): Initialize field
9358 `to_static_tracepoint_markers_by_strid'.
9359 * remote.c (free_current_marker): Move it to ...
9360 * tracepoint.c (free_current_marker): ... here. New.
9361 (cleanup_target_stop): New.
9362 * tracepoint.h: Declare free_current_marker.
9363 * NEWS: Add one entry about `info static-tracepoint-marker'.
9364
9365 2012-03-03 Yao Qi <yao@codesourcery.com>
9366
9367 * common/agent.c (agent_loaded_p): New.
9368 (agent_look_up_symbols): New global.
9369 * common/agent.h: Declare agent_loaded_p.
9370
9371 2012-03-03 Yao Qi <yao@codesourcery.com>
9372
9373 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9374 (agent_capability_check, agent_capability_invalidate): New.
9375 (symbol_list): New array element.
9376 * common/agent.h (enum agent_capa): New.
9377 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9378
9379 2012-03-03 Yao Qi <yao@codesourcery.com>
9380
9381 * target.h (struct target_ops) <to_use_agent>: New field.
9382 (struct target_ops) <to_can_use_agent>: New field.
9383 (target_use_agent, target_can_use_agent): New macro.
9384 * target.c (update_current_target): Update.
9385 * remote.c: New enum `PACKET_QAgent'.
9386 (remote_protocol_features): Add a new element.
9387 (remote_use_agent, remote_can_use_agent): New.
9388 (init_remote_ops): Initialize field `can_use_agent' with
9389 remote_can_use_agent. Intiailize field `use_agent' with
9390 remote_use_agent.
9391 * common/agent.c (use_agent): New global.
9392 * common/agent.h: Declare it.
9393 * tracepoint.c (info_static_tracepoint_markers_command): Add
9394 comment.
9395 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9396 (COMMON_OBS): Add common/agent.o and agent.o
9397 (common-agent.o): New rule.
9398 * agent.c: New.
9399
9400 2012-03-03 Yao Qi <yao@codesourcery.com>
9401
9402 * common/agent.c: New.
9403 * common/agent.h: New.
9404 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9405 AC_CHECK_HEADERS.
9406 * configure, configh.in: Regenerated.
9407
9408 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9409
9410 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9411 unless it exists for this architecture.
9412
9413 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9414
9415 * language.h (struct language_defn): New "method" la_read_var_value.
9416 * findvar.c: #include "language.h".
9417 (default_read_var_value): Renames read_var_value. Rewrite
9418 function description.
9419 (read_var_value): New function.
9420 * value.h (default_read_var_value): Add prototype.
9421 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9422 New functions.
9423 (ada_language_defn): Add entry for la_read_var_value.
9424 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9425 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9426 language_defn structures to add entry for new la_read_var_value
9427 field.
9428
9429 2012-03-02 Tom Tromey <tromey@redhat.com>
9430 Pedro Alves <palves@redhat.com>
9431
9432 PR breakpoints/13776:
9433 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9434 breakpoints.
9435 (delete_longjmp_breakpoint_at_next_stop): New.
9436 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9437 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9438 before deleting the inferior. Add comments.
9439 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9440 breakpoints immediately, but only on next stop. Move that code
9441 next to where we mark other breakpoints for deletion.
9442
9443 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9444
9445 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9446 marker.
9447 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9448 violation.
9449
9450 2012-03-02 Pedro Alves <palves@redhat.com>
9451
9452 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9453
9454 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9455
9456 Fix -Wmissing-prototypes build.
9457 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9458 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9459 (gdbsim_has_memory): Likewise.
9460
9461 2012-03-02 Yao Qi <yao@codesourcery.com>
9462
9463 Fix -Wmissing-prototypes build.
9464 * charset.c (phony_iconv_open): Make static.
9465 (phony_iconv_close, phony_iconv): Likewise.
9466 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9467 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9468 prototype.
9469 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9470 * ser-mingw.c (create_select_thread): Make static.
9471 * windows-termcap.c (tgetent): New prototype.
9472 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9473
9474 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9475
9476 Fix -Wmissing-prototypes build.
9477 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9478 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9479 (_initialize_loadable): New prototypes.
9480
9481 2012-03-02 Doug Evans <dje@google.com>
9482
9483 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9484 abbrev table, read_comp_unit will do it.
9485
9486 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9487
9488 Fix -Wmissing-prototypes build.
9489 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9490 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9491 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9492 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9493 (_initialize_arm_symbian_tdep): New prototype.
9494 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9495 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9496 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9497 static.
9498 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9499 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9500 prototype.
9501 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9502 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9503 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9504 static.
9505 * moxie-tdep.c (moxie_process_record): Likewise.
9506 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9507 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9508 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9509 (_initialize_rl78_tdep): New prototype.
9510 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9511 (_initialize_rx_tdep): New prototype.
9512 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9513 (_initialize_darwin_solib): New prototype.
9514 * solib-spu.c: Include solib-spu.h.
9515 (_initialize_spu_solib): New prototype.
9516 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9517 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9518 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9519 (tic6x_software_single_step): Make it static.
9520 (_initialize_tic6x_tdep): New prototype.
9521
9522 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9523
9524 Fix -Wmissing-prototypes build.
9525 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9526 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9527
9528 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9529
9530 Fix -Wmissing-prototypes build.
9531 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9532 (frv_have_stopped_data_address): Remove.
9533
9534 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9535
9536 Fix -Wmissing-prototypes build.
9537 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9538 * sh-tdep.c: Include sh64-tdep.h.
9539 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9540 * sh64-tdep.c: Include sh64-tdep.h.
9541 * sh64-tdep.h: New file.
9542
9543 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9544
9545 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9546
9547 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9548
9549 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9550 sp_regnum once the gdbarch_init_osabi hook has been called.
9551
9552 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9553
9554 * mips-tdep.c (mips32_bc1_pc): New function.
9555 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9556 BPOSGE32 and BPOSGE64 instructions.
9557 (deal_with_atomic_sequence): Likewise.
9558 (mips32_instruction_has_delay_slot): Likewise.
9559
9560 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9561 Chris Dearman <chris@mips.com>
9562 Maciej W. Rozycki <macro@codesourcery.com>
9563 Joseph Myers <joseph@codesourcery.com>
9564
9565 * features/mips-dsp.xml: New file.
9566 * features/mips64-dsp.xml: New file.
9567 * features/mips-dsp-linux.xml: New file.
9568 * features/mips64-dsp-linux.xml: New file.
9569 * features/Makefile (WHICH): Add mips-dsp-linux and
9570 mips64-dsp-linux.
9571 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9572 * features/mips-dsp-linux.c: New file.
9573 * features/mips64-dsp-linux.c: New file.
9574 * regformats/mips-dsp-linux.dat: New file.
9575 * regformats/mips64-dsp-linux.dat: New file.
9576 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9577 registers.
9578 (mips64_linux_register_addr): Likewise.
9579 (mips64_linux_regsets_fetch_registers): Likewise.
9580 (mips64_linux_regsets_store_registers): Likewise.
9581 (mips64_linux_fetch_registers): Update call to
9582 mips64_linux_regsets_fetch_registers.
9583 (mips64_linux_store_registers): Update call to
9584 mips64_linux_regsets_store_registers.
9585 (mips_linux_read_description): Probe for DSP registers.
9586 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9587 and initialize_tdesc_mips64_dsp_linux.
9588 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9589 Remove padding of no longer used embedded register slots.
9590 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9591 (MIPS_RESTART_REGNUM): Redefine enum value.
9592 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9593 strings.
9594 (mips_tx39_reg_names): Likewise.
9595 (mips_linux_reg_names): New array of register names for Linux
9596 targets.
9597 (mips_register_name): Check for a null pointer in
9598 mips_processor_reg_names and return an empty string.
9599 (mips_register_type): Exclude embedded registers for the IRIX
9600 and Linux ABIs.
9601 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9602 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9603 DSP registers.
9604 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9605 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9606 (mips_gdbarch_init): Likewise. Initialize internal register
9607 indices for the Linux ABI. Use dynamic numbers to refer to
9608 registers, as applicable, while parsing the target description.
9609 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9610
9611 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9612
9613 * frame.h (read_frame_register_unsigned): Fix typo in function
9614 description.
9615
9616 2012-03-01 Pedro Alves <palves@redhat.com>
9617
9618 * jit-reader.in [!__cplusplus]
9619 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9620
9621 2012-03-01 Pedro Alves <palves@redhat.com>
9622
9623 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9624 * configure: Regenerate.
9625
9626 2012-03-01 Pedro Alves <palves@redhat.com>
9627
9628 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9629 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9630 (ftrace_command, strace_command): Make static.
9631 * d-lang.c (_initialize_d_language): Declare.
9632 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9633 * dwarf2loc.c (_initialize_dwarf2loc):
9634 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9635 * exec.c (exec_get_section_table): Make static.
9636 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9637 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9638 * inferior.c (remove_inferior_command, add_inferior_command)
9639 (clone_inferior_command): Make static.
9640 * linux-nat.c (linux_nat_thread_address_space)
9641 (linux_nat_core_of_thread): Make static.
9642 * linux-tdep.c (_initialize_linux_tdep): Declare.
9643 * objc-lang.c (_initialize_objc_lang): Declare.
9644 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9645 Make static.
9646 (_initialize_opencl_language): Declare.
9647 * record.c (_initialize_record): Declare.
9648 * remote.c (demand_private_info, remote_get_tib_address)
9649 (remote_supports_cond_tracepoints)
9650 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9651 Make static.
9652 * skip.c (_initialize_step_skip): Declare.
9653 * symtab.c (skip_prologue_using_lineinfo): Make static.
9654 * tracepoint.c (delete_trace_state_variable)
9655 (trace_variable_command, delete_trace_variable_command)
9656 (get_uploaded_tsv, find_matching_tracepoint_location)
9657 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9658 Make static.
9659 * value.c (pack_unsigned_long): Make static.
9660 * varobj.c (varobj_ensure_python_env): Make static.
9661 * windows-tdep.c (_initialize_windows_tdep): Declare.
9662 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9663
9664 2012-03-01 Pedro Alves <palves@redhat.com>
9665
9666 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9667 gdbarch parameter.
9668 (linux_init_abi): Install it as has_shared_address_space gdbarch
9669 callback.
9670
9671 2012-03-01 Pedro Alves <palves@redhat.com>
9672
9673 * observer.c (observer_test_first_notification_function)
9674 (observer_test_second_notification_function)
9675 (observer_test_third_notification_function): Add declarations.
9676
9677 2012-03-01 Pedro Alves <palves@redhat.com>
9678
9679 * common/signals.c (default_target_signal_to_host)
9680 (default_target_signal_from_host): Move ...
9681 * arch-utils.c: ... here.
9682 * arch-utils.h (default_target_signal_to_host)
9683 (default_target_signal_from_host): Declare.
9684
9685 * common/signals.c (target_signal_from_command): Move ...
9686 * infrun.c: ... here.
9687 * inferior.h (target_signal_from_command): Declare.
9688 * target.h (target_signal_from_command)
9689 (default_target_signal_from_host, default_target_signal_to_host):
9690 Delete declarations.
9691
9692 * common/signals.c (_initialize_signals): Delete.
9693
9694 2012-03-01 Pedro Alves <palves@redhat.com>
9695
9696 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9697 both __cplusplus and !__cplusplus.
9698
9699 2012-03-01 Pedro Alves <palves@redhat.com>
9700
9701 * psymtab.c (find_and_open_source): Delete declaration.
9702 * source.c (find_and_open_source): Move comment ...
9703 * source.h (find_and_open_source): ... to this new declaration.
9704
9705 2012-03-01 Pedro Alves <palves@redhat.com>
9706
9707 * inline-frame.c: Include inline-frame.h.
9708
9709 2012-03-01 Pedro Alves <palves@redhat.com>
9710
9711 * tui/tui-data.c (set_gen_win_origin): Delete.
9712 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9713 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9714
9715 2012-03-01 Pedro Alves <palves@redhat.com>
9716
9717 * remote.c (encode_actions): Delete declaration.
9718 * tracepoint.c (encode_actions): Make extern.
9719 * tracepoint.h (encode_actions): Declare.
9720
9721 2012-03-01 Pedro Alves <palves@redhat.com>
9722
9723 * python/py-breakpoint.c: Include python.h.
9724 * python/py-continueevent.c (create_continue_event_object): Make
9725 static.
9726 * python/py-lazy-string.c (stpy_get_type): Make static.
9727 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9728 Make static.
9729 * python/py-utils.c (unicode_to_target_python_string): Make
9730 static.
9731 * python/py-value.c: Include python.h.
9732
9733 2012-03-01 Pedro Alves <palves@redhat.com>
9734
9735 * inferior.c (delete_threads_of_inferior): Delete.
9736
9737 2012-03-01 Pedro Alves <palves@redhat.com>
9738
9739 Import fallback definitions from glibc.
9740
9741 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9742 ps_prochandle): Forward declare.
9743 (ps_err_e): Use glibc's comments.
9744 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9745 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9746 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9747 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9748 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9749 (struct ps_prochandle): Adjust comment.
9750
9751 2012-03-01 Pedro Alves <palves@redhat.com>
9752
9753 * ada-lang.c (ada_modulus_from_name): Delete.
9754 * ada-lex.l (lexer_init): Make static.
9755
9756 2012-03-01 Pedro Alves <palves@redhat.com>
9757
9758 PR gdb/13767
9759
9760 * frame.c (read_frame_register_unsigned): New.
9761 * frame.h (read_frame_register_unsigned): Declare.
9762 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9763 Handle it.
9764 (print_i387_control_word): New parameter `control_p'. Handle it.
9765 (i387_print_float_info): Handle unavailable float registers.
9766
9767 2012-03-01 Keith Seitz <keiths@redhat.com>
9768
9769 * linespec.c (decode_line_2): Sort the list of methods
9770 alphabetically before presenting the user with a selection
9771 menu.
9772
9773 2012-03-01 Doug Evans <dje@google.com>
9774
9775 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9776 has_namespace_info.
9777 (dwarf2_read_abbrevs): Remove corresponding initialization.
9778
9779 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9780
9781 * NEWS: Mention new python command class gdb.COMMAND_USER.
9782 * cli/cli-cmds.c (show_user): Print error when used on a python
9783 command.
9784 (init_cli_cmds): Update documentation strings for "show user" and
9785 "set/show max-user-call-depth" to clarify that it does not apply to
9786 python commands.
9787 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9788 error check.
9789 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9790 gdb python api.
9791 * top.c (execute_command): Only execute a user-defined command as a
9792 legacy macro if c->user_commands is set.
9793
9794 2012-03-01 Tom Tromey <tromey@redhat.com>
9795
9796 * valprint.h (struct generic_val_print_decorations): New.
9797 (generic_val_print): Declare.
9798 * valprint.c (generic_val_print): New function.
9799 * p-valprint.c (p_decorations): New global.
9800 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9801 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9802 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9803 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9804 * m2-valprint.c (m2_decorations): New global.
9805 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9806 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9807 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9808 TYPE_CODE_ERROR>: Call generic_val_print.
9809 * f-valprint.c (f_decorations): New global.
9810 (f_val_print): Use print_function_pointer_address.
9811 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9812 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9813 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9814 generic_val_print.
9815 * c-valprint.c (c_decorations): New global.
9816 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9817 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9818 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9819 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9820 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9821 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9822 case.
9823
9824 2012-03-01 Tom Tromey <tromey@redhat.com>
9825
9826 * valprint.c (val_print): Update.
9827 * p-valprint (pascal_val_print): Return void.
9828 * p-lang.h (pascal_val_print): Return void.
9829 * m2-valprint.c (m2_val_print): Return void.
9830 * m2-lang.h (m2_val_print): Return void.
9831 * language.h (struct language_defn) <la_val_print>: Return void.
9832 * language.c (unk_lang_val_print): Return void.
9833 * jv-valprint.c (java_val_print): Return void.
9834 * jv-lang.h (java_val_print): Return void.
9835 * f-valprint.c (f_val_print): Return void.
9836 * f-lang.h (f_val_print): Return void.
9837 * d-valprint.c (d_val_print): Return void.
9838 (dynamic_array_type): Update.
9839 * d-lang.h (d_val_print): Return void.
9840 * c-valprint.c (c_val_print): Return void.
9841 * c-lang.h (c_val_print): Return void.
9842 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9843 void.
9844 * ada-lang.h (ada_val_print): Return void.
9845
9846 2012-03-01 Tom Tromey <tromey@redhat.com>
9847
9848 * value.h (val_print): Return void.
9849 * valprint.c (val_print): Return void.
9850
9851 2012-03-01 Tom Tromey <tromey@redhat.com>
9852
9853 * value.h (common_val_print): Return void.
9854 * valprint.c (common_val_print): Return void.
9855
9856 2012-03-01 Tom Tromey <tromey@redhat.com>
9857
9858 * value.h (value_print): Return void.
9859 * valprint.c (value_print): Return void.
9860 * p-valprint.c (pascal_value_print): Return void.
9861 * p-lang.h (pascal_value_print): Return void.
9862 * language.h (struct language_defn) <la_value_print>: Return
9863 void.
9864 * language.c (unk_lang_value_print): Return void.
9865 * jv-valprint.c (java_value_print): Return void.
9866 * jv-lang.h (java_value_print): Return void.
9867 * f-valprint.c (c_value_print): Don't declare.
9868 Include c-lang.h.
9869 * c-valprint.c (c_value_print): Return void.
9870 * c-lang.h (c_value_print): Return void.
9871 * ada-valprint.c (ada_value_print): Return void.
9872 * ada-lang.h (ada_value_print): Return void.
9873
9874 2012-03-01 Tom Tromey <tromey@redhat.com>
9875
9876 * value.c (value_primitive_field): Handle virtual base classes.
9877
9878 2012-03-01 Tom Tromey <tromey@redhat.com>
9879
9880 * gdbtypes.h (struct vbase): Remove.
9881
9882 2012-03-01 Tom Tromey <tromey@redhat.com>
9883
9884 * c-valprint.c (print_function_pointer_address): Move...
9885 * valprint.c: ... here. Make non-static.
9886 * m2-valprint.c (print_function_pointer_address): Remove.
9887 * valprint.h (print_function_pointer_address): Declare.
9888
9889 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9890
9891 * NEWS: Document the fact that one can provide a condition when
9892 creating an Ada exception catchpoint.
9893
9894 2012-03-01 Tom Tromey <tromey@redhat.com>
9895
9896 * valprint.c (val_print_type_code_flags): Fix placement of
9897 trailing brace.
9898
9899 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9900
9901 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9902 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9903 environment variable before calling update-copyright.
9904
9905 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9906
9907 * gnulib/extra/update-copyright: Update to the latest from
9908 gnulib's git repository.
9909 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9910 variable to 2 instead of 1.
9911
9912 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9913
9914 * varobj.c (c_value_of_variable): Remove dead code.
9915
9916 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9917
9918 * ada-lex.p (processId): Do not modify already encoded IDs.
9919 Update function documentation.
9920
9921 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9922
9923 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9924 "name" with "struct symbol *name_sym".
9925 * ada-exp.y (write_var_or_type): Update call to
9926 ada_find_renaming_symbol.
9927 "name" with "struct symbol *name_sym". Adjust Implementation
9928 accordingly. Adjust the function documentation.
9929
9930 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9931
9932 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9933 * ada-lang.c (ada_find_any_type): Add advance declaration.
9934 Make static. Replace ada_find_any_symbol by
9935 ada_find_any_type_symbol.
9936 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9937 Improve function description. Make static.
9938 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9939 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9940
9941 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9942
9943 * ada-lang.c (struct tag_args): Delete.
9944 (ada_get_tsd_type): Function body moved up in source file.
9945 (ada_tag_name_1, ada_tag_name_2): Delete.
9946 (ada_get_tsd_from_tag): New function.
9947 (ada_tag_name_from_tsd): New function.
9948 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9949 to determine the tag name.
9950
9951 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9952
9953 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9954 declaration.
9955 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9956 function.
9957
9958 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9959
9960 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9961
9962 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9963
9964 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9965 full searches.
9966
9967 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9968
9969 * ada-lang.c (constrained_packed_array_type): If there is a
9970 parallel XA type, use it to determine the array index type.
9971
9972 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9973
9974 * ada-valprint.c (ada_val_print_1): If our value is a reference
9975 to an array descriptor, dereference it before converting it
9976 to a simple array.
9977
9978 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9979
9980 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9981 creating fixed value.
9982 (ada_value_ind, ada_coerce_ref, assign_component)
9983 (ada_evaluate_subexp): Remove call to unwrap_value before
9984 call to ada_to_fixed_value.
9985
9986 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9987
9988 * ada-lang.c (to_fixed_array_type): Set result's type name.
9989
9990 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9991
9992 * ada-lang.c (catch_ada_exception_command_split): Add new
9993 argument cond_string. Add support for condition at end of
9994 "catch exception" commands.
9995 (ada_decode_exception_location): Add new argument cond_string.
9996 Update call to catch_ada_exception_command_split.
9997 (create_ada_exception_catchpoint): Add new argument cond_string.
9998 Set the breakpoint condition if needed.
9999 (catch_ada_exception_command): Update call to
10000 ada_decode_exception_location.
10001 (ada_decode_assert_location): Add function documentation.
10002 Add support for condition at end of "catch assert" command.
10003 (catch_assert_command): Update calls to ada_decode_assert_location
10004 and create_ada_exception_catchpoint.
10005
10006 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10007
10008 Fix disp-step-syscall.exp: fork: single step over fork.
10009 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10010 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10011 comment, change parameters gdbarch and ptid to regcache. Remove
10012 parameter regcache, initialize gdbarch from regcache here.
10013 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10014 New functions.
10015 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10016 instead.
10017 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10018 'syscall'. Make the 'int' check more strict.
10019
10020 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10021
10022 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10023 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10024 (i386_linux_intx80_sysenter_syscall_record): ... here.
10025 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10026 Use the renamed function name.
10027
10028 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10029
10030 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10031 * breakpoint.c (until_break_command): Likewise.
10032 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10033 * infcall.c (call_function_by_hand): Likewise.
10034 * infcmd.c (finish_forward): Likewise.
10035 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10036
10037 2012-02-28 Tristan Gingold <gingold@adacore.com>
10038
10039 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10040 avoid variable assignments inside condition.
10041
10042 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10043
10044 Fix static analysis issue found by cppcheck.
10045 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10046 uninitialized BUF for size 2.
10047
10048 2012-02-27 Chris Dearman <chris@mips.com>
10049 Nathan Froyd <froydnj@codesourcery.com>
10050 Maciej W. Rozycki <macro@codesourcery.com>
10051
10052 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10053 (mips16_instruction_has_delay_slot): Likewise.
10054 (mips_segment_boundary): Likewise.
10055 (mips_adjust_breakpoint_address): Likewise.
10056 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10057
10058 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10059 Maciej W. Rozycki <macro@codesourcery.com>
10060
10061 * infrun.c (handle_inferior_event): Don't proceed through
10062 shared library trampolines if stepping at the machine
10063 instruction level.
10064
10065 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10066
10067 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10068 too.
10069
10070 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10071
10072 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10073 (sh_stub_unwind_sniffer): New functions.
10074 (sh_stub_unwind): New variable.
10075 (sh_gdbarch_init): Wire everything.
10076
10077 2012-02-27 Pedro Alves <palves@redhat.com>
10078
10079 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10080 (linux_nat_post_attach_wait): Adjust to use
10081 linux_proc_pid_is_stopped.
10082 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10083 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10084 based on pid_is_stopped from both linux-nat.c and
10085 gdbserver/linux-low.c, and renamed.
10086
10087 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10088
10089 * remote.c (remote_watchpoint_addr_within_range): New function.
10090 (init_remote_ops): Use it.
10091
10092 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10093
10094 * target.h (target_watchpoint_addr_within_range): Document macro.
10095
10096 2012-02-24 Pedro Alves <palves@redhat.com>
10097
10098 * stack.c (set_last_displayed_sal): Issue internal_error instead
10099 of warning, and issue it after clearing the last displayed sal.
10100
10101 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10102 Pedro Alves <palves@redhat.com>
10103
10104 * breakpoint.c (until_break_command): Install breakpoints after
10105 all frame manipulations.
10106
10107 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10108
10109 * remote.c (remote_supports_cond_breakpoints): New forward
10110 declaration.
10111 (remote_add_target_side_condition): New function.
10112 (remote_insert_breakpoint): Add target-side breakpoint
10113 conditional if supported.
10114 (remote_insert_hw_breakpoint): Likewise.
10115 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10116 hook.
10117
10118 * target.c (update_current_target): Inherit
10119 to_supports_evaluation_of_breakpoint_conditions.
10120 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10121
10122 * target.h (struct target_ops)
10123 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10124 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10125
10126 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10127 (condition_evaluation_both, condition_evaluation_auto,
10128 condition_evaluation_host, condition_evaluation_target,
10129 condition_evaluation_enums, condition_evaluation_mode_1,
10130 condition_evaluation_mode): New static globals.
10131 (translate_condition_evaluation_mode): New function.
10132 (breakpoint_condition_evaluation_mode): New function.
10133 (gdb_evaluates_breakpoint_condition_p): New function.
10134 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10135 (mark_breakpoint_modified): New function.
10136 (mark_breakpoint_location_modified): New function.
10137 (set_condition_evaluation_mode): New function.
10138 (show_condition_evaluation_mode): New function.
10139 (bp_location_compare_addrs): New function.
10140 (get_first_location_gte_addr): New helper function.
10141 (set_breakpoint_condition): Free condition bytecode if locations
10142 has become unconditional. Call mark_breakpoint_modified (...).
10143 (condition_command): Call update_global_location_list (1) for
10144 breakpoints.
10145 (breakpoint_xfer_memory): Use is_breakpoint (...).
10146 (is_breakpoint): New function.
10147 (parse_cond_to_aexpr): New function.
10148 (build_target_condition_list): New function.
10149 (insert_bp_location): Handle target-side conditional
10150 breakpoints and call build_target_condition_list (...).
10151 (update_inserted_breakpoint_locations): New function.
10152 (insert_breakpoint_locations): Handle target-side conditional
10153 breakpoints.
10154 (bpstat_check_breakpoint_conditions): Add comment.
10155 (bp_condition_evaluator): New function.
10156 (bp_location_condition_evaluator): New function.
10157 (print_breakpoint_location): Print information on where the condition
10158 will be evaluated.
10159 (print_one_breakpoint_location): Likewise.
10160 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10161 breakpoint location.
10162 (force_breakpoint_reinsertion): New functions.
10163 (update_global_location_list): Handle target-side breakpoint
10164 conditions.
10165 Reinsert locations that are already inserted if conditions have
10166 changed.
10167 (bp_location_dtor): Free agent expression bytecode.
10168 (disable_breakpoint): Call mark_breakpoint_modified (...).
10169 Call update_global_location_list (...) with parameter 1 for breakpoints.
10170 (disable_command): Call mark_breakpoint_location_modified (...).
10171 Call update_global_location_list (...) with parameter 1 for breakpoints.
10172 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10173 (enable_command): mark_breakpoint_location_modified (...).
10174 (_initialize_breakpoint): Update documentation and add
10175 condition-evaluation breakpoint subcommand.
10176
10177 * breakpoint.h: Include ax.h.
10178 (condition_list): New data structure.
10179 (condition_status): New enum.
10180 (bp_target_info) <cond_list>: New field.
10181 (bp_location) <condition_changed, cond_bytecode>: New fields.
10182 (is_breakpoint): New prototype.
10183
10184 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10185
10186 * remote.c (remote_state) <cond_breakpoints>: New field.
10187 (PACKET_ConditionalBreakpoints): New enum.
10188 (remote_cond_breakpoint_feature): New function.
10189 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10190 (remote_supports_cond_breakpoints): New function.
10191 (_initialize_remote): Add new packet configuration for
10192 target-side conditional breakpoints.
10193
10194 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10195
10196 * NEWS: Mention target-side conditional breakpoint support,
10197 new condition-evaluation breakpoint subcommand and remote
10198 packet extensions.
10199
10200 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10201
10202 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10203 number.
10204
10205 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10206
10207 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10208 (after_prologue): Remove.
10209
10210 2012-02-23 Tom Tromey <tromey@redhat.com>
10211
10212 * jv-valprint.c (java_val_print): Remove dead code.
10213
10214 2012-02-23 Tristan Gingold <gingold@adacore.com>
10215
10216 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10217 known_tasks_element and known_tasks_length fields.
10218 (read_known_tasks_array): Change argument type. Use pointer type
10219 and number of elements from DATA. Adjust.
10220 (read_known_tasks_list): Likewise.
10221 (get_known_tasks_addr): Remove.
10222 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10223 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10224 type and array length. Merge former get_known_tasks_addr code.
10225
10226 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10227
10228 PR backtrace/13716
10229 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10230 it after set_momentary_breakpoint.
10231
10232 2012-02-22 Sterling Augustine <saugustine@google.com>
10233
10234 PR 13689:
10235 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10236
10237 2012-02-22 Gary Benson <gbenson@redhat.com>
10238
10239 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10240 (find_slot_in_mapped_hash): Likewise.
10241
10242 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10243
10244 PR build/13638
10245 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10246 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10247 * configure: Regenerate.
10248
10249 2012-02-21 Tristan Gingold <gingold@adacore.com>
10250 Pedro Alves <palves@redhat.com>
10251
10252 * ia64-tdep.c: Do not include libunwind-ia64.h.
10253 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10254 Include libunwind-ia64.h instead of libunwind.h.
10255 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10256 for libunwind.h existence.
10257 * configure, config.in: Regenerate.
10258
10259 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10260
10261 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10262 instead of value_rtti_target_type.
10263 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10264 instead of value_rtti_target_type.
10265 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10266 value_rtti_target_type.
10267 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10268 (value_rtti_target_type): Rename to ...
10269 (value_rtti_indirect_type): ... here and make it indirect. Update
10270 function comment.
10271 * value.c (readjust_indirect_value_type): New function.
10272 (coerce_ref): Support for enclosing type setting for references
10273 with readjust_indirect_value_type.
10274 * value.h (readjust_value_type): New declaration.
10275 (value_rtti_target_type): Rename to ...
10276 (value_rtti_indirect_type): ... here.
10277
10278 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10279
10280 * MAINTAINERS (Write After Approval): Add myself to the list.
10281
10282 2012-02-20 Doug Evans <dje@google.com>
10283
10284 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10285 Rename objfile_p_char parameter to objfilep.
10286 (build_objfile_section_table): Result is now void. All callers
10287 updated.
10288 * objfiles.h (struct objfile): Tweak comments, whitespace.
10289 (build_objfile_section_table): Update.
10290
10291 * elfread.c (elf_symfile_segments): Fix warning text.
10292
10293 2012-02-20 Tom Tromey <tromey@redhat.com>
10294
10295 PR gdb/13498:
10296 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10297 particular set of file names once.
10298 (dw2_map_symbol_filenames): Likewise.
10299
10300 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 Code cleanup.
10303 * main.c (write_files): Remove the declaration.
10304 (external_editor_command): Move the declaration ...
10305 [GDBTK] (external_editor_command): ... here. Fix the comment.
10306
10307 2012-02-20 Tom Tromey <tromey@redhat.com>
10308
10309 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10310 extraneous block.
10311
10312 2012-02-20 Tristan Gingold <gingold@adacore.com>
10313
10314 * darwin-nat.h (enum darwin_msg_state): Add comments.
10315
10316 2012-02-20 Tristan Gingold <gingold@adacore.com>
10317
10318 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10319 value.
10320
10321 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10322
10323 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10324 between function description and implementation.
10325
10326 2012-02-17 Tom Tromey <tromey@redhat.com>
10327
10328 PR python/12070:
10329 * python/py-event.c (event_object_getset): New global.
10330 (event_object_type): Reference it.
10331 * python/py-type.c (field_object_getset): New global.
10332 (field_object_type): Reference it.
10333 * python/python-internal.h (gdb_py_generic_dict): Declare.
10334 * python/py-utils.c (gdb_py_generic_dict): New function.
10335
10336 2012-02-17 Tristan Gingold <gingold@adacore.com>
10337
10338 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10339
10340 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10341
10342 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10343 TYPE_CALLING_CONVENTION annotation.
10344
10345 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10346
10347 * MAINTAINERS: Add rx to target ISA section.
10348 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10349 (ALLDEPFILES): Add rx-tdep.c.
10350
10351 2012-02-16 Tom Tromey <tromey@redhat.com>
10352
10353 * symfile.c (symbol_file_add_main_1): Use inferior's
10354 symfile_flags.
10355 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10356 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10357 inferior.
10358 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10359 inferior.
10360 (follow_exec): Use inferior's symfile_flags.
10361 * inferior.h (struct inferior) <symfile_flags>: New field.
10362
10363 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10364
10365 PR gdb/9734:
10366 * remote-sim.c (gdbsim_create_inferior): Call error() when
10367 sim_create_inferior() fails.
10368
10369 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10370
10371 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10372
10373 2012-02-16 Tom Tromey <tromey@redhat.com>
10374
10375 PR c++/13653:
10376 * thread.c (struct current_thread_cleanup) <was_removable>: New
10377 field.
10378 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10379 (make_cleanup_restore_current_thread): Initialize new field.
10380
10381 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10382
10383 * MAINTAINERS: Add rl78 to target ISA section.
10384 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10385 (ALLDEPFILES): Add rl78-tdep.c.
10386 * NEWS: Mention rl78 as a new target.
10387
10388 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10389
10390 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10391 data.
10392 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10393
10394 2012-02-15 Tom Tromey <tromey@redhat.com>
10395
10396 PR gdb/12659:
10397 * infcmd.c (registers_info): Print just the current register's
10398 name.
10399
10400 2012-02-15 Tom Tromey <tromey@redhat.com>
10401
10402 * python/py-symbol.c (sympy_value): Use _().
10403
10404 2012-02-15 Pedro Alves <palves@redhat.com>
10405
10406 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10407 output to be like native targets'.
10408 (remote_pid_to_str): Special case the null ptid.
10409
10410 2012-02-14 Stan Shebs <stan@codesourcery.com>
10411
10412 * NEWS: Mention enable count command.
10413 * breakpoint.h (struct breakpoint): New field enable_count.
10414 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10415 (enable_breakpoint): Add arg to call.
10416 (struct disp_data): New struct.
10417 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10418 (do_map_enable_once_breakpoint): Create a struct and pass it.
10419 (do_map_enable_delete_breakpoint): Ditto.
10420 (do_map_enable_count_breakpoint): New function.
10421 (enable_count_command): New function.
10422 (bpstat_stop_status): Decrement enable_count.
10423 (print_one_breakpoint_location): Report enable count.
10424 (_initialize_breakpoint): Add enable count command.
10425
10426 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10427
10428 * rl78-tdep.c (reggroups.h): Include.
10429 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10430 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10431 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10432 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10433 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10434 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10435 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10436 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10437 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10438 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10439 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10440 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10441 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10442 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10443 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10444 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10445 beginning of register list.
10446 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10447 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10448 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10449 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10450 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10451 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10452 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10453 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10454 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10455 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10456 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10457 the pseudo registers. Rearrange other pseudo registers too so
10458 that the bank registers appear at the end.
10459 (rl78_register_type): Account for the fact that the byte sized
10460 bank registers are now pseudo-registers.
10461 (rl78_register_name): Rearrange the register name array. Make
10462 initial set of raw banked registers inaccessible.
10463 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10464 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10465 case for copying bytes back and forth between raw and pseudo
10466 versions of the banked registers. Update other cases to reflect
10467 the changed names.
10468 (rl78_return_value): Update to account for changed names of
10469 raw registers.
10470 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10471 rl78_register_sim_regno().
10472
10473 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10474
10475 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10476 the name parameter being passed to find_pc_partial_function().
10477
10478 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10479
10480 * MAINTAINERS: Step down from being ia64 target maintainer.
10481
10482 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10483
10484 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10485 compilation warning.
10486
10487 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10488
10489 Fix crash on loaded shlibs without loaded exec_bfd.
10490 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10491 (set_section_command): Replace exec_bfd by p->bfd.
10492
10493 2012-02-10 Tom Tromey <tromey@redhat.com>
10494
10495 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10496 when we have a C++ qualified name.
10497
10498 2012-02-10 Pedro Alves <palves@redhat.com>
10499
10500 * inferior.c (inferior_pid_to_str): New.
10501 (print_inferior, inferior_command): Use it.
10502
10503 2012-02-10 Pedro Alves <palves@redhat.com>
10504
10505 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10506 the test CFLAGS.
10507 * configure: Regenerate.
10508
10509 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10510
10511 * linespec.c (decode_line_internal): Fix comment correctness.
10512
10513 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10514
10515 PR gdb/12953
10516 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10517 * amd64bsd-nat.c: Add support for debug registers (adapted from
10518 i386bsd-nat.c).
10519 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10520 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10521 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10522 (amd64bsd_dr_get_control): New functions.
10523 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10524 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10525 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10526 watchpoints initialization.
10527 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10528
10529 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10530
10531 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10532 flds_bnds.fields.
10533 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10534
10535 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10536
10537 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10538
10539 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10540
10541 * language.h (symbol_name_cmp_ftype): Renames
10542 symbol_name_match_p_ftype.
10543 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10544 la_get_symbol_name_match_p.
10545 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10546 ada_get_symbol_name_match_p. Update comment.
10547 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10548 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10549 Renames symbol_name_match_p. Update field type.
10550 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10551 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10552 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10553 "la_get_symbol_name_cmp" in comments.
10554 * language.c: Likewise.
10555
10556 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10557
10558 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10559 %eflags offset.
10560 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10561 (amd64_sol2_gregset32_reg_offs): Likewise.
10562
10563 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10564
10565 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10566 of the returned BFD is allocated by GDB.
10567
10568 2012-02-07 Tom Tromey <tromey@redhat.com>
10569
10570 PR python/12027:
10571 * python/python-internal.h (frame_object_type): Declare.
10572 * python/py-symbol.c (sympy_needs_frame): New function.
10573 (sympy_value): New function.
10574 (symbol_object_getset): Add "needs_frame".
10575 (symbol_object_methods): Add "value".
10576 * python/py-frame.c (frame_object_type): No longer static.
10577
10578 2012-02-07 Tom Tromey <tromey@redhat.com>
10579
10580 PR python/13599:
10581 * python/py-symbol.c (sympy_line): New function.
10582 (symbol_object_getset): Add "line".
10583
10584 2012-02-07 Tom Tromey <tromey@redhat.com>
10585
10586 * charset.c (find_charset_names): Check 'in' against NULL.
10587
10588 2012-02-06 Doug Evans <dje@google.com>
10589
10590 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10591 and fields.name members from char * to const char *. All uses updated.
10592 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10593 from char * to const char *. All uses updated.
10594 (type_name_no_tag): Update.
10595 (lookup_unsigned_typename, lookup_signed_typename): Update.
10596 * gdbtypes.c (type_name_no_tag): Change result type
10597 from char * to const char *. All callers updated.
10598 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10599 name parameter from char * to const char *.
10600 * symtab.h (struct cplus_specific): Change type of demangled_name
10601 member from char * to const char *. All uses updated.
10602 (struct general_symbol_info): Change type of name and
10603 mangled_lang.demangled_name members from char * to const char *.
10604 All uses updated.
10605 (symbol_get_demangled_name, symbol_natural_name): Update.
10606 (symbol_demangled_name, symbol_search_name): Update.
10607 * symtab.c (symbol_get_demangled_name): Change result type
10608 from char * to const char *. All callers updated.
10609 (symbol_natural_name, symbol_demangled_name): Ditto.
10610 (symbol_search_name): Ditto.
10611 (completion_list_add_name): Change type of symname,sym_text,
10612 text,word parameters from char * to const char *.
10613 (completion_list_objc_symbol): Change type of sym_text,
10614 text,word parameters from char * to const char *.
10615 * ada-lang.c (find_struct_field): Change type of name parameter
10616 from char * to const char *.
10617 (encoded_ordered_before): Similarly for N0,N1 parameters.
10618 (old_renaming_is_invisible): Similarly for function_name parameter.
10619 (ada_type_name): Change result type from char * to const char *.
10620 All callers updated.
10621 * ada-lang.h (ada_type_name): Update.
10622 * buildsym.c (hashname): Change type of name parameter
10623 from char * to const char *.
10624 * buildsym.h (hashname): Update.
10625 * dbxread.c (end_psymtab): Change type of include_list parameter
10626 from char ** to const char **.
10627 * dwarf2read.c (determine_prefix): Change result type
10628 from char * to const char *. All callers updated.
10629 * f-lang.c (find_common_for_function): Change type of name, funcname
10630 parameters from char * to const char *.
10631 * f-lang.c (find_common_for_function): Update.
10632 * f-valprint.c (list_all_visible_commons): Change type of funcname
10633 parameters from char * to const char *.
10634 * gdbarch.sh (static_transform_name): Change type of name parameter
10635 and result from char * to const char *.
10636 * gdbarch.c: Regenerate.
10637 * gdbarch.h: Regenerate.
10638 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10639 of name parameter from char * to const char *.
10640 * jv-lang.c (java_primitive_type_from_name): Ditto.
10641 (java_demangled_signature_length): Similarly for signature parameter.
10642 (java_demangled_signature_copy): Ditto.
10643 (java_demangle_type_signature): Ditto.
10644 * jv-lang.h (java_primitive_type_from_name): Update.
10645 (java_demangle_type_signature): Update.
10646 * objc-lang.c (specialcmp): Change type of a,b parameters
10647 from char * to const char *.
10648 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10649 from char * to const char *. All callers updated.
10650 * p-lang.h (is_pascal_string_type): Update.
10651 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10652 of name parameter from char * to const char *.
10653 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10654 * utils.c (fprintf_symbol_filtered): Ditto.
10655 * defs.h (fprintf_symbol_filtered): Update.
10656 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10657 * stabsread.h (end_psymtab): Update.
10658 * stack.c (find_frame_funname): Change type of funname parameter
10659 from char ** to const char **.
10660 * stack.h (find_frame_funname): Update.
10661 * typeprint.c (type_print): Change type of varstring parameter
10662 from char * to const char *.
10663 * value.h (type_print): Update.
10664 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10665 from char * to const char *. All callers updated.
10666 (xcoff_end_psymtab): Change type of include_list parameter
10667 from char ** to const char **. All callers updated.
10668 (swap_sym): Similarly for name parameter. All callers updated.
10669 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10670 Use xstrdup.
10671 (process_coff_symbol): Use xstrdup.
10672 * stabsread.c (stabs_method_name_from_physname): Renamed from
10673 update_method_name_from_physname. Change result type from void
10674 to char *. All callers updated.
10675 (read_member_functions): In has_destructor case, store name in objfile
10676 obstack instead of malloc space. In !has_stub case, fix mem leak.
10677
10678 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10679
10680 * configure: Rebuild.
10681 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10682 LDFLAGS.
10683
10684 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10685
10686 * configure.tgt (rl78-*-elf): New target.
10687 * rl78-tdep.c: New file.
10688
10689 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10690
10691 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10692 and continue the loop. Add QUIT statement.
10693
10694 2012-02-03 Tom Tromey <tromey@redhat.com>
10695
10696 PR gdb/13596:
10697 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10698 bfd_lookup_symbol_from_symtab.
10699 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10700 gdb_bfd_lookup_symbol_from_symtab.
10701
10702 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10703
10704 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10705 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10706 symbol. Add assertion that sym2 is never NULL.
10707
10708 2012-02-02 Doug Evans <dje@google.com>
10709
10710 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10711 "name" parameter to const char ** from char **. All callers updated.
10712 (find_pc_partial_function): Ditto.
10713 (cache_pc_function_name): Change type to const char * from char *.
10714 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10715 (find_pc_partial_function): Update.
10716 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10717 type of "name" parameter to const char * from char *.
10718 All uses updated.
10719 * arch-utils.c (generic_in_solib_return_trampoline): Change
10720 type of "name" parameter to const char * from char *.
10721 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10722 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10723 type of "name" parameter to const char * from char *.
10724 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10725 * gdbarch.c: Regenerate.
10726 * gdbarch.h: Regenerate.
10727 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10728 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10729 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10730 type of "name" parameter to const char * from char *.
10731 * skip.c (skip_function_pc): Ditto.
10732 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10733 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10734 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10735 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10736 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10737 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10738 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10739 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10740 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10741
10742 2012-02-02 Pedro Alves <palves@redhat.com>
10743
10744 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10745 the current inferior has no execution. Make sure the current
10746 remote process matches gdb's current inferior.
10747
10748 2012-02-02 Tom Tromey <tromey@redhat.com>
10749
10750 PR gdb/13405:
10751 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10752 read-only memory.
10753
10754 2012-02-02 Tom Tromey <tromey@redhat.com>
10755
10756 PR gdb/9307:
10757 * symtab.c (lookup_language_this): Set block_found.
10758
10759 2012-02-01 Tom Tromey <tromey@redhat.com>
10760
10761 PR gdb/13431:
10762 * jit.c (struct jit_inferior_data): Rewrite.
10763 (struct jit_objfile_data): New.
10764 (get_jit_objfile_data): New function.
10765 (add_objfile_entry): Update.
10766 (jit_read_descriptor): Return int. Replace descriptor_addr
10767 argument with inf_data. Update. Don't call error.
10768 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10769 descriptor here.
10770 (jit_inferior_init): Don't look up descriptor. Don't call error.
10771 (jit_reset_inferior_data_and_breakpoints)
10772 (jit_inferior_created_observer): Remove.
10773 (jit_inferior_exit_hook): Update.
10774 (jit_executable_changed_observer): Remove.
10775 (jit_event_handler): Update.
10776 (free_objfile_data): Reset inferior data if needed.
10777 (_initialize_jit): Update.
10778
10779 2012-02-01 Tom Tromey <tromey@redhat.com>
10780
10781 * jit.c (bfd_open_from_target_memory): Move higher in file.
10782
10783 2012-02-01 Tristan Gingold <gingold@adacore.com>
10784
10785 * libunwind-frame.c (libunwind_load): Display message if dlopen
10786 failed.
10787
10788 2012-02-01 Gary Benson <gbenson@redhat.com>
10789
10790 * symtab.h (symbol_found_callback_ftype): New typedef.
10791 (iterate_over_symbols): Use the above.
10792 * symtab.c (iterate_over_symbols): Likewise.
10793 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10794 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10795 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10796 (iterate_name_matcher): Document return values.
10797 (collect_one_symbol): Likewise.
10798 (collect_function_symbols): Likewise.
10799 (collect_symbols): Likewise.
10800
10801 2012-02-01 Tom Tromey <tromey@redhat.com>
10802
10803 * ada-lang.c (resolve_subexp): Update.
10804 (ada_lookup_symbol_list): Add 'full_search' argument.
10805 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10806 ada_lookup_symbol_list.
10807 (ada_lookup_encoded_symbol): Update.
10808 (get_var_value): Update.
10809 * ada-exp.y (block_lookup): Update.
10810 (write_var_or_type): Update.
10811 (write_name_assoc): Update.
10812 * ada-lang.h (ada_lookup_symbol_list): Update.
10813
10814 2012-01-31 Tom Tromey <tromey@redhat.com>
10815
10816 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10817 comment.
10818
10819 2012-01-31 Doug Evans <dje@google.com>
10820
10821 * symtab.h: Remove outdated comment.
10822 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10823
10824 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10825
10826 Fix build error in Darwin port.
10827 * i386-darwin-nat.c: Include i386-nat.h.
10828
10829 2012-01-30 Tom Tromey <tromey@redhat.com>
10830
10831 PR breakpoints/13568:
10832 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10833 argument. Check for recursive includes.
10834 (dwarf_decode_macros): Create an include hash.
10835
10836 2012-01-30 Michael Eager <eager@eagercon.com>
10837
10838 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10839 * ppc-linux-tdep.c: Include glibc-tdep.h.
10840 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10841 (powerpc_linux_in_plt_stub): New function.
10842 (powerpc_linux_in_dynsym_resolve_code): New function.
10843 (ppc_skip_trampoline_code): New function.
10844 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10845 Use glibc_skip_solib_resolver.
10846
10847 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10848
10849 Code cleanup: Make 1440 bytes of data segment read-only.
10850 * arch-utils.c (endian_enum): Make it const char *const [].
10851 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10852 Likewise.
10853 * breakpoint.c (always_inserted_enums): Likewise.
10854 * cli/cli-cmds.c (script_ext_enums): Likewise.
10855 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10856 enumlist parameter const char *const *.
10857 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10858 const char *const *.
10859 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10860 parameter const char *const *.
10861 * cris-tdep.c (cris_modes): Make it const char *const [].
10862 * filesystem.c (target_file_system_kinds): Likewise.
10863 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10864 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10865 (can_use_displaced_stepping_enum, scheduler_enums)
10866 (exec_direction_names): Likewise.
10867 * language.c (_initialize_language): Make the type_or_range_names and
10868 case_sensitive_names variables const char *const [].
10869 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10870 * python/python.c (python_excp_enums): Likewise.
10871 * remote.c (interrupt_sequence_modes): Likewise.
10872 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10873 * serial.c (logbase_enums): Likewise.
10874 * sh-tdep.c (sh_cc_enum): Likewise.
10875 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10876 Likewise.
10877 * symtab.c (multiple_symbols_modes): Likewise.
10878 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10879 Likewise.
10880 * utils.c (internal_problem_modes): Likewise.
10881
10882 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10883
10884 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10885 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10886 result.
10887
10888 2012-01-27 Doug Evans <dje@google.com>
10889
10890 * configure.ac (with_python): Fix absolute path handling for win32.
10891 * configure: Regenerate.
10892
10893 2012-01-26 Doug Evans <dje@google.com>
10894
10895 * symtab.c: Whitespace cleanup, no code changes.
10896
10897 * symtab.c (lookup_symbol_in_language): Improve comment.
10898 (lookup_symbol_aux): Fix comment.
10899
10900 * psymtab.c (add_psymbol_to_list): Result is now "void".
10901 * psympriv.h (add_psymbol_to_list): Update.
10902
10903 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10904
10905 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10906
10907 Do not open script filenames twice.
10908 * cli/cli-cmds.c (source_script_from_stream): Pass to
10909 source_python_script also STREAM.
10910 * python/py-auto-load.c (source_section_scripts): Pass to
10911 source_python_script_for_objfile also STREAM.
10912 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10913 also INPUT.
10914 * python/python-internal.h (source_python_script_for_objfile): New
10915 parameter file, rename parameter file to filename.
10916 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10917 instead if !_WIN32. Update the function comment.
10918 (source_python_script, source_python_script_for_objfile)
10919 (source_python_script): New parameter file, rename parameter file to
10920 filename. Pass FILENAME to python_run_simple_file.
10921 * python/python.h (source_python_script): New parameter file, rename
10922 parameter file to filename.
10923
10924 2012-01-26 Pedro Alves <palves@redhat.com>
10925
10926 * corelow.c (core_has_fake_pid): Delete.
10927 (core_close): Delete references to `core_has_fake_pid'.
10928 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10929 (core_open): Delete references to `core_has_fake_pid'.
10930 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10931 the removed global.
10932
10933 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10934
10935 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10936 Remove language parameter from name_matcher. Adjust the comment.
10937 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10938 Remove language parameter.
10939 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10940 * linespec.c (iterate_name_matcher): Likewise.
10941 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10942 name_matcher. Adjust call accordingly.
10943 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10944 (maintenance_check_symtabs): Adjust type of parameter "fun".
10945 * psymtab.h (maintenance_check_symtabs): Likewise.
10946
10947 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10948
10949 * language.h (symbol_name_match_p_ftype): New typedef.
10950 (struct language_defn): Replace field la_symbol_name_compare
10951 by la_get_symbol_name_match_p.
10952 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10953 (ada_language_defn): Use it.
10954 * linespec.c (struct symbol_matcher_data): New type.
10955 (iterate_name_matcher): Rewrite.
10956 (iterate_over_all_matching_symtabs): Pass a pointer to
10957 a symbol_matcher_data struct to expand_symtabs_matching
10958 instead of just the lookup name.
10959 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10960 opencl-lang.c, p-lang.c, language.c: Delete field
10961 la_symbol_name_compare, and replace by NULL for new field
10962 la_get_symbol_name_match_p.
10963 * symfile.h (struct quick_symbol_functions): Update comment.
10964
10965 2012-01-25 Tom Tromey <tromey@redhat.com>
10966
10967 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10968 dereferencing.
10969
10970 2012-01-24 Tom Tromey <tromey@redhat.com>
10971
10972 PR symtab/12406:
10973 * solib.c (update_solib_list): Update the program space's
10974 added_solibs and deleted_solibs fields.
10975 * progspace.h (struct program_space) <added_solibs,
10976 deleted_solibs>: New fields.
10977 (clear_program_space_solib_cache): Declare.
10978 * progspace.c (release_program_space): Call
10979 clear_program_space_solib_cache.
10980 (clear_program_space_solib_cache): New function.
10981 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10982 bpstat_stop_status. Use handle_solib_event.
10983 * breakpoint.c: Include gdb_regex.h.
10984 (print_solib_event): New function.
10985 (bpstat_print): Use print_solib_event.
10986 (bpstat_stop_status): Add special case for bp_shlib_event.
10987 (handle_solib_event): New function.
10988 (bpstat_what): Use handle_solib_event.
10989 (struct solib_catchpoint): New.
10990 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10991 (breakpoint_hit_catch_solib, check_status_catch_solib)
10992 (print_it_catch_solib, print_one_catch_solib)
10993 (print_mention_catch_solib, print_recreate_catch_solib): New
10994 functions.
10995 (catch_solib_breakpoint_ops): New global.
10996 (catch_load_or_unload, catch_load_command_1)
10997 (catch_unload_command_1): New functions.
10998 (internal_bkpt_check_status): Add special case for
10999 bp_shlib_event.
11000 (internal_bkpt_print_it): Use print_solib_event.
11001 (initialize_breakpoint_ops): Initialize
11002 catch_solib_breakpoint_ops.
11003 (_initialize_breakpoint): Register "catch load" and "catch
11004 unload".
11005 * breakpoint.h (handle_solib_event): Declare.
11006 * NEWS: Add entry for "catch load" and "catch unload".
11007
11008 2012-01-24 Tom Tromey <tromey@redhat.com>
11009
11010 * ada-lang.c: Include gdb_vecs.h.
11011 * charset.c: Include gdb_vecs.h.
11012 * tracepoint.h: Include gdb_vecs.h.
11013 * gdb_vecs.h: New file.
11014
11015 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11016
11017 * breakpoint.c (breakpoint_hit_catch_fork)
11018 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11019 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11020 * infrun.c (inferior_has_forked, inferior_has_vforked)
11021 (inferior_has_execd, inferior_has_called_syscall): Delete.
11022 (handle_syscall_event): Get syscall_number from the execution
11023 control state's wait status.
11024 (wait_for_inferior): Don't clear syscall_number.
11025
11026 2012-01-24 Pedro Alves <palves@redhat.com>
11027
11028 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11029 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11030 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11031 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11032 `ws' parameter.
11033 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11034 false for events other than TARGET_SIGNAL_TRAP.
11035 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11036 Add `ws' parameter.
11037 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11038 events other than TARGET_SIGNAL_TRAP.
11039 (tracepoint_breakpoint_hit): Add `ws' parameter.
11040 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11041 parameter.
11042 (bpstat_stop_status): Same.
11043 (pc_at_non_inline_function): Same.
11044 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11045 to pass the current event's waitstatus to bpstat_stop_status
11046 and pc_at_non_inline_function.
11047
11048 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11049
11050 Code cleanup.
11051 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11052 Update the function comment for it.
11053 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11054 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11055 for STREAM.
11056
11057 2012-01-24 Pedro Alves <palves@redhat.com>
11058
11059 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11060 outside `bs->stop' block.
11061 (bpstat_what): Rework bp_shlib_event handling.
11062 (internal_bkpt_check_status): If the breakpoint is a
11063 bp_shlib_event, then set bs->stop and bs->print if
11064 stop_on_solib_events is set.
11065
11066 2012-01-24 Gary Benson <gbenson@redhat.com>
11067
11068 Delete #if 0'd out code.
11069 * stack.c (print_frame_label_vars): Remove.
11070 (catch_info): Likewise.
11071 (_initialize_stack): Remove "info catch" command.
11072 * NEWS: Mention the above.
11073
11074 2012-01-24 Pedro Alves <palves@redhat.com>
11075
11076 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11077 it.
11078 (remote_notice_new_inferior): If the remote end doesn't support
11079 the multiprocess extensions, then the PID is fake.
11080 (add_current_inferior_and_thread): New.
11081 (remote_start_remote): Use it.
11082 (extended_remote_attach_1): Adjust.
11083 (extended_remote_create_inferior_1): Use
11084 add_current_inferior_and_thread.
11085
11086 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11087
11088 Fix watchpoints to be specific for each inferior.
11089 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11090 current_program_space.
11091 * i386-nat.c (i386_inferior_data_cleanup): New.
11092 (i386_inferior_data_get): Replace variable inf_data_local by an
11093 inferior_data call.
11094 (i386_use_watchpoints): Initialize i386_inferior_data.
11095 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11096 specific iterate_over_lwps.
11097
11098 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11099
11100 Fix watchpoints across inferior fork.
11101 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11102 comment for linux_nat_iterate_watchpoint_lwps.
11103 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11104 linux_nat_iterate_watchpoint_lwps.
11105 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11106 * i386-linux-nat.c (update_debug_registers_callback): Update the
11107 comment for linux_nat_iterate_watchpoint_lwps.
11108 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11109 linux_nat_iterate_watchpoint_lwps.
11110 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11111 * i386-nat.c: Include inferior.h.
11112 (dr_mirror): Remove.
11113 (i386_inferior_data, struct i386_inferior_data)
11114 (i386_inferior_data_get): New.
11115 (i386_debug_reg_state): Use i386_inferior_data_get.
11116 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11117 (i386_insert_watchpoint, i386_remove_watchpoint)
11118 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11119 (i386_remove_hw_breakpoint): New variable state, use
11120 i386_debug_reg_state instead of DR_MIRROR.
11121 * linux-nat.c (delete_lwp): New declaration.
11122 (num_lwps): Move here from downwards.
11123 (delete_lwp_cleanup): New.
11124 (linux_child_follow_fork): Create new child_lp, call
11125 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11126 PTRACE_DETACH.
11127 (num_lwps): Move upwards.
11128 (linux_nat_iterate_watchpoint_lwps): New.
11129 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11130 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11131
11132 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11133
11134 GDB 7.4 released.
11135
11136 2012-01-23 Pedro Alves <palves@redhat.com>
11137
11138 * top.c (caution): Rename to ...
11139 (confirm): ... this.
11140 (show_caution): Rename to ...
11141 (show_confirm): ... this.
11142 (quit_cover): Adjust.
11143 (init_main): Adjust.
11144 * top.h (caution): Rename to ...
11145 (confirm): ... this.
11146 * utils.c (internal_vproblem, defaulted_query): Adjust.
11147
11148 2012-01-23 Pedro Alves <palves@redhat.com>
11149
11150 * top.c (caution): Update comment.
11151 (execute_command): Don't consider the current value of `caution'.
11152
11153 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11154
11155 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11156
11157 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11158
11159 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11160 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11161 * target.c (target_fileio_pwrite): Remove buffer address from
11162 debug output.
11163 (target_fileio_pread): Likewise.
11164
11165 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11166
11167 * NEWS: Document remote "info proc" and "generate-core-file".
11168
11169 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11170
11171 * gdbarch.sh (find_memory_regions): New callback.
11172 * gdbarch.c, gdbarch.h: Regenerate.
11173
11174 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11175 callback before falling back to target method.
11176
11177 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11178 (linux_target_install_ops): No longer install it.
11179
11180 * linux-tdep.c (linux_find_memory_regions): New function.
11181 (linux_init_abi): Install it.
11182
11183 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11184
11185 * gdbarch.sh (make_corefile_notes): New architecture callback.
11186 * gdbarch.c: Regenerate.
11187 * gdbarch.h: Likewise.
11188
11189 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11190 before target_make_corefile_notes. If NULL is returned, the
11191 target does not support core file generation.
11192
11193 * linux-nat.c: Include "linux-tdep.h".
11194 (find_signalled_thread, find_stop_signal): Remove.
11195 (linux_nat_do_thread_registers): Likewise.
11196 (struct linux_nat_corefile_thread_data): Likewise.
11197 (linux_nat_corefile_thread_callback): Likewise.
11198 (iterate_over_spus): Likewise.
11199 (struct linux_spu_corefile_data): Likewise.
11200 (linux_spu_corefile_callback): Likewise.
11201 (linux_spu_make_corefile_notes): Likewise.
11202 (linux_nat_collect_thread_registers): New function.
11203 (linux_nat_make_corefile_notes): Replace contents by call to
11204 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11205 as native-only callback.
11206
11207 * linux-tdep.h: Include "bfd.h".
11208 (struct regcache): Add forward declaration.
11209 (linux_collect_thread_registers_ftype): New typedef.
11210 (linux_make_corefile_notes): Add prototype.
11211 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11212 "regset.h", and "elf-bfd.h".
11213 (find_signalled_thread, find_stop_signal): New functions.
11214 (linux_spu_make_corefile_notes): Likewise.
11215 (linux_collect_thread_registers): Likewise.
11216 (struct linux_corefile_thread_data): New data structure.
11217 (linux_corefile_thread_callback): New funcion.
11218 (linux_make_corefile_notes): Likewise.
11219 (linux_make_corefile_notes_1): Likewise.
11220 (linux_init_abi): Install it.
11221
11222 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11223
11224 * gdbarch.sh (info_proc): New callback.
11225 * gdbarch.c, gdbarch.h: Regenerate.
11226
11227 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11228 before falling back to the target info_proc callback.
11229
11230 * linux-nat.c: Do not include "cli/cli-utils.h".
11231 (linux_nat_info_proc): Remove.
11232 (linux_target_install_ops): No longer install it.
11233
11234 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11235 (read_mapping): New function.
11236 (linux_info_proc): Likewise.
11237 (linux_init_abi): Install it.
11238
11239 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11240
11241 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11242 * infcmd.c: (info_proc_cmd_1): New function.
11243 (info_proc_cmd): New function, moved here from equivalent routine
11244 orignally in linux-nat.c.
11245 (info_proc_cmd_mappings): Likewise.
11246 (info_proc_cmd_stat): Likewise.
11247 (info_proc_cmd_status): Likewise.
11248 (info_proc_cmd_cwd): Likewise.
11249 (info_proc_cmd_cmdline): Likewise.
11250 (info_proc_cmd_exe): Likewise.
11251 (info_proc_cmd_all): Likewise.
11252 (_initialize_infcmd): Install "info proc" command and subcommands.
11253
11254 * target.h (struct target_ops): Add to_info_proc.
11255 (target_info_proc): Add prototype.
11256 * target.c (target_info_proc): New function.
11257
11258 * procfs.c (procfs_info_proc): Add prototype.
11259 (info_proc_cmd): Rename into ...
11260 (procfs_info_proc): ... this. Update argument types as appropriate
11261 for a to_info_proc implementation. Handle "what" argument.
11262 (procfs_target): Install procfs_info_proc.
11263 (_initialize_procfs): No longer install "info proc" command.
11264
11265 * linux-nat.c: (enum info_proc_what): Remove.
11266 (linux_nat_info_proc_cmd_1): Rename into ...
11267 (linux_nat_info_proc): ... this. Update argument types as appropriate
11268 for a to_info_proc implementation.
11269 (linux_nat_info_proc_cmd): Remove.
11270 (linux_nat_info_proc_cmd_mappings): Likewise.
11271 (linux_nat_info_proc_cmd_stat): Likewise.
11272 (linux_nat_info_proc_cmd_status): Likewise.
11273 (linux_nat_info_proc_cmd_cwd): Likewise.
11274 (linux_nat_info_proc_cmd_cmdline): Likewise.
11275 (linux_nat_info_proc_cmd_exe): Likewise.
11276 (linux_nat_info_proc_cmd_all): Likewise.
11277 (linux_target_install_ops): Install linux_nat_info_proc.
11278 (_initialize_linux_nat): No longer install "info proc" command
11279 and subcommands.
11280
11281 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11282
11283 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11284 * config.in, configure: Regenerate.
11285
11286 * target.h (struct target_ops): Add to_fileio_readlink.
11287 (target_fileio_readlink): Add prototype.
11288 * target.c (target_fileio_readlink): New function.
11289
11290 * inf-child.c: Conditionally include <sys/param.h>.
11291 (inf_child_fileio_readlink): New function.
11292 (inf_child_target): Install it.
11293
11294 * remote.c (PACKET_vFile_readlink): New enum value.
11295 (remote_hostio_readlink): New function.
11296 (init_remote_ops): Install it.
11297 (_initialize_remote): Handle vFile:readlink packet type.
11298
11299 2012-01-20 Pedro Alves <palves@redhat.com>
11300 Ulrich Weigand <ulrich.weigand@linaro.org>
11301
11302 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11303 * config.in, configure: Regenerate.
11304
11305 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11306 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11307 (target_fileio_open): Add prototype.
11308 (target_fileio_pwrite): Likewise.
11309 (target_fileio_pread): Likewise.
11310 (target_fileio_close): Likewise.
11311 (target_fileio_unlink): Likewise.
11312 (target_fileio_read_alloc): Likewise.
11313 (target_fileio_read_stralloc): Likewise.
11314
11315 * target.c: Include "gdb/fileio.h".
11316 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11317 (default_fileio_target): New function.
11318 (target_fileio_open): Likewise.
11319 (target_fileio_pwrite): Likewise.
11320 (target_fileio_pread): Likewise.
11321 (target_fileio_close): Likewise.
11322 (target_fileio_unlink): Likewise.
11323 (target_fileio_close_cleanup): Likewise.
11324 (target_fileio_read_alloc_1): Likewise.
11325 (target_fileio_read_alloc): Likewise.
11326 (target_fileio_read_stralloc): Likewise.
11327
11328 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11329 <fcntl.h>, and <unistd.h>.
11330 (inf_child_fileio_open_flags_to_host): New function.
11331 (inf_child_errno_to_fileio_error): Likewise.
11332 (inf_child_fileio_open): Likewise.
11333 (inf_child_fileio_pwrite): Likewise.
11334 (inf_child_fileio_pread): Likewise.
11335 (inf_child_fileio_close): Likewise.
11336 (inf_child_fileio_unlink): Likewise.
11337 (inf_child_target): Install to_fileio routines.
11338
11339 * remote.c (init_remote_ops): Install to_fileio routines.
11340
11341 2012-01-20 Pedro Alves <palves@redhat.com>
11342 Ulrich Weigand <ulrich.weigand@linaro.org>
11343
11344 * remote.c (remote_multi_process_p): Only check for multi-process
11345 protocol feature, do not check for extended protocol.
11346 (remote_supports_multi_process): Check for extended protocol here.
11347 (set_general_process): Likewise.
11348 (extended_remote_kill): Likewise.
11349 (remote_pid_to_str): Likewise.
11350 (remote_query_supported): Always query multiprocess mode.
11351
11352 2012-01-20 Pedro Alves <palves@redhat.com>
11353 Ulrich Weigand <ulrich.weigand@linaro.org>
11354
11355 * inferior.h (struct inferior): Add fake_pid_p.
11356 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11357 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11358 magic_null_ptid since the remote side doesn't provide a real PID.
11359
11360 2012-01-19 Tom Tromey <tromey@redhat.com>
11361
11362 * NEWS: Combine the two Python sections.
11363
11364 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11365
11366 * target.h (target_close): Update comment on the target's unpush state.
11367
11368 2012-01-19 Pedro Alves <palves@redhat.com>
11369
11370 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11371 linux_nat_async directly instead of going through the target
11372 vector.
11373 * target.c (unpush_target): Close target after unpushing it, not
11374 before.
11375
11376 2012-01-19 Gary Benson <gbenson@redhat.com>
11377
11378 * mdebugread.c (sort_blocks): Replace integer constants with ones
11379 derived from FIRST_LOCAL_BLOCK.
11380
11381 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11382 Jan Kratochvil <jan.kratochvil@redhat.com>
11383
11384 PR gdb/9538
11385 * symfile.c (find_separate_debug_file): New function.
11386 (terminate_after_last_dir_separator): Likewise.
11387 (find_separate_debug_file_by_debuglink): Also try realpath.
11388 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11389 * configure: Regenerate.
11390 * config.in: Regenerate.
11391
11392 2012-01-18 Doug Evans <dje@google.com>
11393
11394 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11395 (main.o): Remove rule.
11396 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11397 (--with-sysroot): Rewrite.
11398 * configure: Regenerate.
11399 * config.in: Regenerate.
11400
11401 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11402
11403 * parse.c (initialize_expout): New function.
11404 (reallocate_expout): Likewise.
11405 (parse_exp_in_context): Use `initialize_expout' and
11406 `reallocate_expout' when appropriate.
11407
11408 2012-01-18 Pedro Alves <palves@redhat.com>
11409
11410 * record.c (struct record_breakpoint, record_breakpoint_p)
11411 (record_breakpoints): New.
11412 (record_insert_breakpoint, record_remove_breakpoint): Manage
11413 record breakpoints list. Only remove breakpoints from the
11414 inferior if they had been inserted there in the first place.
11415
11416 2012-01-17 Doug Evans <dje@google.com>
11417
11418 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11419 if we know we don't have a file name to look for.
11420
11421 2012-01-17 Pedro Alves <palves@redhat.com>
11422
11423 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11424 the frame's stop reason is UNWIND_UNAVAILABLE.
11425
11426 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11427
11428 Fix compilation error.
11429 * m2-exp.y (yyerror): Use ANSI C prototype.
11430
11431 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11432
11433 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11434 (growbuf_by_size): Likewise.
11435 (yyerror): Likewise.
11436 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11437 (modblock): Remove variable (was #if 0'ed).
11438 (parse_number): Convert prototype from K&R to ANSI C.
11439 (yyerror): Likewise.
11440 * objc-exp.y (parse_number): Likewise.
11441 (yyerror): Likewise.
11442 (yylex): Remove #if 0'ed code.
11443 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11444 (yyerror): Likewise.
11445
11446 2012-01-16 Tom Tromey <tromey@redhat.com>
11447
11448 * NEWS: Add item.
11449 * symtab.h (compare_filenames_for_search): Declare.
11450 * symtab.c (compare_filenames_for_search): New function.
11451 (iterate_over_some_symtabs): Use it.
11452 * symfile.h (struct quick_symbol_functions)
11453 <map_symtabs_matching_filename>: Change spec.
11454 * psymtab.c (partial_map_symtabs_matching_filename): Use
11455 compare_filenames_for_search. Update for new spec.
11456 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11457 compare_filenames_for_search. Update for new spec.
11458 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11459
11460 2012-01-16 Tom Tromey <tromey@redhat.com>
11461
11462 PR python/13281:
11463 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11464 (struct main_type) <flag_flag_enum>: New field.
11465 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11466 * NEWS: Add entries.
11467 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11468 enums.
11469 * python/lib/gdb/printing.py (_EnumInstance): New class.
11470 (FlagEnumerationPrinter): Likewise.
11471
11472 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11473
11474 * breakpoint.c (create_sals_from_address_default): New function.
11475 (create_breakpoints_sal_default): Likewise.
11476 (decode_linespec_default): Likewise.
11477 (is_marker_spec): Removed.
11478 (strace_marker_p): New function.
11479 (init_breakpoint_sal): Using `strace_marker_p' instead of
11480 `is_marker_spec'.
11481 (create_breakpoint): Call method `create_sals_from_address' from
11482 breakpoint_ops, replacing code that created SALs conditionally
11483 on the type of the breakpoint. Call method `create_breakpoints_sal',
11484 replacing code that created breakpoints conditionally on the type
11485 wanted.
11486 (base_breakpoint_create_sals_from_address): New function.
11487 (base_breakpoint_create_breakpoints_sal): Likewise.
11488 (base_breakpoint_decode_linespec): Likewise.
11489 (base_breakpoint_ops): Add methods
11490 `base_breakpoint_create_sals_from_address',
11491 `base_breakpoint_create_breakpoints_sal' and
11492 `base_breakpoint_decode_linespec'.
11493 (bkpt_create_sals_from_address): New function.
11494 (bkpt_create_breakpoints_sal): Likewise.
11495 (bkpt_decode_linespec): Likewise.
11496 (tracepoint_create_sals_from_address): Likewise.
11497 (tracepoint_create_breakpoints_sal): Likewise.
11498 (tracepoint_decode_linespec): Likewise.
11499 (strace_marker_create_sals_from_address): Likewise.
11500 (strace_marker_create_breakpoints_sal): Likewise.
11501 (strace_marker_decode_linespec): Likewise.
11502 (strace_marker_breakpoint_ops): New variable.
11503 (addr_string_to_sals): Remove `marker_spec'. Call method
11504 `decode_linespec' from breakpoint_ops, replacing code that decoded
11505 an address string into a SAL. Use `strace_marker_p' instead of
11506 `marker_spec'.
11507 (strace_command): Decide whether we are dealing with a static
11508 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11509 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11510 * breakpoint.h (linespec_result, linespec_sals): New forward
11511 declarations.
11512 (breakpoint_ops) <create_sals_from_address>,
11513 <create_breakpoints_sal>, <decode_linespec>: New methods.
11514
11515 2012-01-14 Doug Evans <dje@google.com>
11516
11517 * NEWS: Update text for "maint set python print-stack".
11518 It is deprecated in gdb 7.4 and deleted in 7.5.
11519
11520 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11521
11522 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11523 including curses.h.
11524
11525 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11526
11527 * configure: Regenerate.
11528 * config.in: Regenerate.
11529
11530 2012-01-12 Keith Seitz <keiths@redhat.com>
11531
11532 PR mi/10586
11533 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11534 (ANONYMOUS_UNION_NAME): Define.
11535 (is_path_expr_parent): New function.
11536 (get_path_expr_parent): New function.
11537 (is_anonymous_child): New function.
11538 (create_child_with_value): If the child is anonymous and without
11539 a name, assign an object name to it.
11540 (c_describe_child): Use get_path_expr_parent to determine
11541 the parent expression.
11542 If there field represents an anonymous struct or union and
11543 has no name, set an appropriate display name and expression.
11544 (cplus_describe_child): Likewise.
11545
11546 2012-01-12 Pedro Alves <palves@redhat.com>
11547
11548 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11549 available when %ebp is found to be zero (outermost).
11550
11551 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11552
11553 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11554 an internal gdb_static_assert.
11555 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11556
11557 2012-01-11 Tom Tromey <tromey@redhat.com>
11558
11559 PR gdb/9598:
11560 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11561 catch" and "catch throw".
11562
11563 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11564
11565 * blockframe.c (block_innermost_frame): Start search from selected
11566 frame, if present, or otherwise the current frame.
11567
11568 * c-exp.y (variable): Update innermost_block for
11569 'block COLONCOLON NAME' clause.
11570 * m2-exp.y (variable): Ditto.
11571 * objc-exp.y (variable): Ditto.
11572
11573 2012-01-10 Tom Tromey <tromey@redhat.com>
11574
11575 PR python/13199:
11576 * python/python.c (finish_python_initialization): Set sys.argv.
11577
11578 2012-01-10 Doug Evans <dje@google.com>
11579
11580 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11581 "want_line_info". All callers updated.
11582 (dwarf_decode_lines_1): New function.
11583 (handle_DW_AT_stmt_list): Add function comment.
11584 New arg "want_line_info". All callers updated.
11585 (read_file_scope,read_type_unit_scope): Move comment from
11586 handle_DW_AT_stmt_list to here.
11587
11588 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11589
11590 Fix regression after libiberty/ update for GCC PR 6057 and others.
11591 * c-exp.y (operator) <OPERATOR DELETE>
11592 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11593 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11594 (make_builtin_type, make_name): New variable i, add gdb_assert.
11595 (operator) <OPERATOR NEW>: Update ARGS to 3.
11596 (operator) <OPERATOR DELETE>: Add trailing space.
11597 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11598 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11599 * cp-support.c (cp_canonicalize_string): Check NULL from
11600 cp_comp_to_string, call warning and return.
11601
11602 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11603
11604 Fix duplicate .o files after omitting libbfd.a.
11605 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11606 (SFILES): Add corelow.c.
11607 (COMMON_OBS): Add corelow.o.
11608 (ALLDEPFILES): Remove corelow.c.
11609 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11610 * config/alpha/alpha-osf3.mh: Likewise.
11611 * config/alpha/fbsd.mh: Likewise.
11612 * config/arm/nbsdaout.mh: Likewise.
11613 * config/arm/nbsdelf.mh: Likewise.
11614 * config/i386/i386gnu.mh: Likewise.
11615 * config/ia64/hpux.mh: Likewise.
11616 * config/ia64/linux.mh: Likewise.
11617 * config/m32r/linux.mh: Likewise.
11618 * config/m68k/linux.mh: Likewise.
11619 * config/mips/irix5.mh: Likewise.
11620 * config/mips/irix6.mh: Likewise.
11621 * config/pa/hpux.mh: Likewise.
11622 * config/pa/linux.mh: Likewise.
11623 * config/powerpc/aix.mh: Likewise.
11624 * config/sparc/linux.mh: Likewise.
11625 * config/sparc/linux64.mh: Likewise.
11626 * config/sparc/sol2.mh: Likewise.
11627 * config/vax/vax.mh: Likewise.
11628 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11629 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11630 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11631 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11632 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11633 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11634 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11635 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11636 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11637 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11638 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11639 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11640 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11641 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11642 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11643 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11644 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11645 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11646 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11647 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11648 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11649 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11650 corelow.o from gdb_target_obs.
11651 * corefile.c (core_target): Update the comment on NULL value.
11652 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11653 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11654 MATCHES. Drop YUMMY set on NULL.
11655 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11656 reclaim CORE_DATA if it is already NULL.
11657
11658 2012-01-09 Doug Evans <dje@google.com>
11659
11660 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11661 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11662
11663 2012-01-09 Keith Seitz <keiths@redhat.com>
11664
11665 * breakpoint.c (wrapper.h): Don't include.
11666
11667 2012-01-09 Keith Seitz <keiths@redhat.com>
11668
11669 * Makefile.in (SFILES): Remove wrapper.c.
11670 (HFILES_NO_SRCDIR): Remove wrapper.h.
11671 (COMMON_OBS): Remove wrapper.o.
11672 * cli/cli-interp.c: Don't inlude wrapper.h.
11673 * corelow.c: Likewise.
11674 (core_open): Replace gdb_target_find_new_threads with
11675 TRY_CATCH around target_find_new_threads.
11676 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11677 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11678 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11679 evaluate_expression.
11680 (varobj_set_value): Likewise for evaluate_expression and
11681 value_assign.
11682 (install_new_variable): Likewise for value_fetch_lazy.
11683 (adjust_value_for_child_access): Likewise for value_ind.
11684 (c_describe_child): Likewise for value_subscript and
11685 value_ind.
11686 (c_value_of_root): Likewise for evaluate_expression.
11687 * wrapper.c: Remove.
11688 * wrapper.h: Remove.
11689
11690 2012-01-09 Doug Evans <dje@google.com>
11691
11692 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11693 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11694 "abfd" args with "section". All callers updated.
11695 Error checking code moved ...
11696 (error_check_comp_unit_head): ... here. New function.
11697 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11698 Delete arg "abfd". New arg "type_offset". All callers updated.
11699 (create_debug_types_hash_table): Simplify by using
11700 read_and_check_type_unit_head.
11701
11702 * parser-defs.h (namecopy): Delete.
11703 * parse.c (namecopy, namecopy_size): Move into copy_name.
11704
11705 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11706
11707 Partially fix duplicate .o files after omitting libbfd.a.
11708 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11709 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11710 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11711 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11712 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11713 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11714 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11715
11716 2012-01-09 Pedro Alves <palves@redhat.com>
11717
11718 * MAINTAINERS: Update my email address.
11719
11720 2012-01-08 Doug Evans <dje@google.com>
11721
11722 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11723 n_type_units. Rename type_comp_units to all_type_units.
11724 All uses updated.
11725 (add_signatured_type_cu_to_table): Renamed from
11726 add_signatured_type_cu_to_list. All callers updated.
11727
11728 * gdbtypes.h (struct cplus_struct_type): Delete member
11729 nfn_fields_total. All uses removed.
11730
11731 2012-01-06 Doug Evans <dje@google.com>
11732
11733 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11734 to top of file.
11735 (dwarf2_find_comp_unit): Delete.
11736 (process_psymtab_comp_unit): Make result "void".
11737 Delete args buffer, info_ptr, buffer_size, and replace with
11738 "section". All callers updated.
11739 (dwarf2_build_psymtabs_hard): Simplify.
11740
11741 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11742 Thiago Jung Bauermann <bauerman@br.ibm.com>
11743
11744 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11745 before `struct gdb_exception'.
11746 * breakpoint.c (update_global_location_list_nothrow)
11747 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11748 * cp-abi.c (value_rtti_type): Likewise.
11749 * cp-support.c (cp_validate_operator): Likewise.
11750 * infrun.c (insert_exception_resume_breakpoint)
11751 (check_exception_resume, keep_going): Likewise.
11752 * mi-interp.c (mi_breakpoint_created)
11753 (mi_breakpoint_modified): Likewise.
11754 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11755 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11756 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11757
11758 2012-01-05 Doug Evans <dje@google.com>
11759
11760 * dwarf2read.c (statement_prologue): Delete, unused.
11761
11762 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11763 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11764
11765 * dwarf2read.c (comp_unit_header): Delete, unused.
11766
11767 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11768
11769 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11770 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11771
11772 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11773
11774 * infrun.c (normal_stop): Don't skip calling the normal_stop
11775 observers if the thread was doing a multi-step, but stopped for
11776 some reason other than stepping.
11777
11778 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11779
11780 * cli/cli-decode.h: Add comments.
11781 (CMD_LIST_AMBIGUOUS): Moved to command.h
11782 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11783 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11784 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11785 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11786 (add_com, add_com_alias, add_info, add_info_alias)
11787 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11788 declarations.
11789 * command.h: Add and adjust comments.
11790 (CMD_LIST_AMBIGUOUS): Moved here.
11791 (help_cmd, help_cmd_list): Delete declarations.
11792
11793 2012-01-04 Doug Evans <dje@google.com>
11794
11795 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11796 All callers updated.
11797 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11798 Replace all arguments with "per_cu". All callers updated.
11799
11800 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11801
11802 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11803 New arg "per_cu". All callers updated.
11804
11805 Delete #if 0'd out code.
11806 * language.c (binop_result_type): Delete.
11807 (simple_type, ordered_type, same_type, integral_type): Delete.
11808 (numeric_type, character_type, string_type, boolean_type): Delete.
11809 (float_type, structured_type): Delete.
11810 * language.h: Update.
11811
11812 2012-01-04 Tom Tromey <tromey@redhat.com>
11813
11814 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11815
11816 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11817
11818 * corefile.c (close_exec_file): Delete.
11819 (reopen_exec_file): Remove commented out code that seems related
11820 to close_exec_file, which is being deleted here.
11821 * inferior.h (close_exec_file): Delete.
11822 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11823
11824 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11825
11826 * ada-lang.c: #include "cli/cli-utils.h".
11827 (get_selections): Use skip_spaces.
11828 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11829 (catch_ada_exception_command_split): Use skip_spaces.
11830 (ada_decode_assert_location): Likewise.
11831
11832 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11833
11834 * linespec.c (decode_line_internal): Check for C++ or Java
11835 compound constructs only if the current language is C, C++
11836 or Java.
11837
11838 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11839
11840 Revert:
11841 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11842 Joel Brobecker <brobecker@adacore.com>
11843 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11844 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11845 3 times.
11846 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11847 fall through into AT_ENTRY_POINT.
11848 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11849 DUMMY_ADDR with it.
11850 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11851 PPC_INSN_SIZE skip to 3 times.
11852
11853 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11854
11855 * linespec.c (add_minsym): Preserve function descriptors.
11856
11857 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11858
11859 * breakpoint.c (all_locations_are_pending): Consider locations
11860 in program spaces executing during startup pending as well.
11861
11862 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11863
11864 Copyright year update in most files of the GDB Project.
11865
11866 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11867
11868 * copyright.sh: Delete.
11869 * copyright.py: Rewrite.
11870
11871 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11872
11873 * gnulib/extra/update-copyright: New file, imported from gnulib.
11874
11875 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11876
11877 * README (Copyright and License Notices): New section.
11878
11879 2012-01-03 Tom Tromey <tromey@redhat.com>
11880
11881 PR python/12533:
11882 * python/py-value.c (valpy_dereference, valpy_get_address
11883 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11884 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11885 (valpy_absolute, valpy_richcompare): Free intermediate values.
11886
11887 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11888
11889 * ada-lang.c: Reformat the copyright notice.
11890
11891 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11892
11893 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11894 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11895 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11896 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11897 Revert this part of:
11898 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11899 Build gdb directly from *.o files not using libgdb.a.
11900 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11901
11902 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11903
11904 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11905 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11906 Reformat the copyright header.
11907
11908 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11909
11910 Revert this part of:
11911 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11912 Remove the gdbtui binary.
11913 * gdb.c (main): Remove args.interpreter_p initialization.
11914 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11915 * main.h (struct captured_main_args): Remove interpreter_p.
11916
11917 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11918
11919 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11920
11921 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11922
11923 * top.c (print_gdb_version): Update copyright year.
11924
11925 2012-01-02 Yao Qi <yao@codesourcery.com>
11926
11927 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11928
11929 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11930 Joel Brobecker <brobecker@adacore.com>
11931
11932 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11933 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11934 3 times.
11935 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11936 fall through into AT_ENTRY_POINT.
11937 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11938 DUMMY_ADDR with it.
11939 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11940 PPC_INSN_SIZE skip to 3 times.
11941
11942 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11943
11944 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11945 the return value.
11946 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11947
11948 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11949
11950 Build gdb directly from *.o files not using libgdb.a.
11951 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11952 (COMMON_OBS): Remove solib-target.o.
11953 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11954 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11955 (LIBGDB_OBS, libgdb.a): Move it above.
11956 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11957 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11958 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11959 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11960 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11961 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11962 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11963 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11964 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11965 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11966 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11967 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11968 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11969 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11970 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11971 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11972 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11973 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11974 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11975 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11976 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11977 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11978 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11979 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11980 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11981 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11982 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11983
11984 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11985
11986 Remove the gdbtui binary.
11987 * .gitignore (/gdbtui): Remove.
11988 * Makefile.in (TUI): Remove.
11989 (SUBDIR_TUI_OBS): Remove tui-main.o.
11990 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11991 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11992 (tui-main.o): Remove.
11993 (all_object_files): Remove tui-main.o.
11994 * NEWS: New note for the gdbtui removal.
11995 * configure: Rebuilt.
11996 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11997 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11998 CONFIG_UNINSTALL respectively.
11999 * gdb.c (main): Remove args.interpreter_p initialization.
12000 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12001 * main.h (struct captured_main_args): Remove interpreter_p.
12002 * tui/tui-main.c: Remove.
12003
12004 2012-01-01 Doug Evans <dje@google.com>
12005
12006 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12007 (dwarf2_physname, read_import_statement): Ditto.
12008 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12009 (process_structure_scope read_subroutine_type): Ditto.
12010 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12011 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12012 (dwarf2_fetch_die_location_block): Ditto.
12013 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12014
12015 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12016 All callers updated.
12017 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12018 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12019 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12020
12021 * dwarf2read.c (load_cu): Move assert to more useful location.
12022
12023 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12024 All callers updated.
12025
12026 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12027 (dwarf2_elf_names): Minor reformat.
12028 (dwarf2_per_cu_data): Tweak comment.
12029 (dwarf2_read_section): Fix comment.
12030 (create_all_comp_units): Fix comment.
12031 (load_full_comp_unit): Fix comment.
12032 (process_full_comp_unit): Fix comment.
12033 (read_signatured_type): Fix comment.
12034
12035 For older changes see ChangeLog-2011.
12036 \f
12037 Local Variables:
12038 mode: change-log
12039 left-margin: 8
12040 fill-column: 74
12041 version-control: never
12042 coding: utf-8
12043 End:
This page took 0.341783 seconds and 4 git commands to generate.