48c18459d9fa9141db5413906be89d043bdacea3
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-29 Joel Brobecker <brobecker@adacore.com>
2
3 GDB 7.5.1 released.
4
5 2012-11-29 Yao Qi <yao@codesourcery.com>
6 Tom Tromey <tromey@redhat.com>
7
8 * eval.c (evaluate_subexp_standard): Get the correct pointer
9 type for TYPE_CODE_MEMBERPTR.
10
11 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
12
13 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
14 since now it is being done by binutils' powerpc_init_dialect().
15
16 2012-11-28 Tom Tromey <tromey@redhat.com>
17
18 PR gdb/14290:
19 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
20 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
21 Use it.
22 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
23 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
24 (gdb_bfd_openr_next_archived_file): Use it.
25
26 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
27
28 * configure.ac: Check for linux/perf_event.h.
29 * config.in: Regenerated.
30 * configure: Regenerated.
31
32 2012-11-28 Yao Qi <yao@codesourcery.com>
33
34 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
35 abbreviate 'delete tracepoints' to 'delete tr'.
36 * corefile.c (_initialize_core): Call add_alias_cmd to
37 abbreviate 'set gnutarget' to 'set g'.
38 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
39 'show convenience' to 'show conv'.
40
41 2012-11-27 Joel Brobecker <brobecker@adacore.com>
42
43 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
44 call to sparc_supply_fpregset.
45 (fill_fpregset): Fix first parameter in call to
46 sparc_collect_fpregset.
47
48 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
49 Kazu Hirata <kazu@codesourcery.com>
50 Yao Qi <yao@codesourcery.com>
51
52 * objfiles.c (init_entry_point_info): Call
53 gdbarch_convert_from_func_ptr_addr and
54 gdbarch_addr_bits_remove here ...
55 (entry_point_address_query): ... instead of here.
56 * solib-svr4.c (exec_entry_point): Call
57 gdbarch_addr_bits_remove.
58 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
59 the entry address.
60
61 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
62 Yao Qi <yao@codesourcery.com>
63
64 * eval.c (evaluate_subexp_standard): Add handling of
65 TYPE_CODE_MEMBERPTR when calling functions. Correct the
66 result of ptype for calling a TYPE_CODE_METHODPTR.
67
68 2012-11-27 Yao Qi <yao@codesourcery.com>
69
70 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
71 warning.
72 Add i18n markup.
73
74 2012-11-26 Alexander Larsson <alexl@redhat.com>
75 Jan Kratochvil <jan.kratochvil@redhat.com>
76 Tom Tromey <tromey@redhat.com>
77
78 * NEWS: Mention mini debuginfo feature.
79 * minidebug.c: New file.
80 * configure.ac: Check for lzma.
81 * configure, config.in: Rebuild.
82 * Makefile.in (LIBLZMA): New variable.
83 (CLIBS): Include LIBLZMA.
84 (SFILES): Mention minidebug.c.
85 (COMMON_OBS): Mention minidebug.o.
86 * symfile.c (read_symbols): New function.
87 (syms_from_objfile, reread_symbols): Call it.
88 * symfile.h (find_separate_debug_file_in_section): Declare.
89
90 2012-11-26 Keith Seitz <keiths@redhat.com>
91
92 * exec.c (exec_file_attach): Move cleanup after verifying that
93 memory has in fact been allocated.
94
95 2012-11-26 Tom Tromey <tromey@redhat.com>
96
97 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
98 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
99 SYMBOL_SYMTAB.
100 * skip.c (skip_info): Use SYMBOL_SYMTAB.
101
102 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
103 Pedro Alves <palves@redhat.com>
104
105 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
106 size parameter passed to readlink by one byte.
107 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
108 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
109 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
110 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
111 size by one byte.
112
113 2012-11-26 Yao Qi <yao@codesourcery.com>
114
115 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
116 extraneous parentheses.
117
118 2012-11-26 Yao Qi <yao@codesourcery.com>
119
120 * remote.c (remote_start_remote): Typo fix.
121
122 2012-11-23 David S. Miller <davem@davemloft.net>
123
124 * sparc-tdep.h (struct sparc_fpregset): New data structure.
125 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
126 sparc32_sol2_fpregset): Declare new globals.
127 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
128 'fpregset' argument.
129 * sparc64-tdep.h (sparc64_supply_fpregset,
130 sparc64_collect_fpregset): Likewise.
131 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
132 globals.
133 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
134 (sparc_fpregset): Declare new global.
135 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
136 'fpregset' argument.
137 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
138 into handler.
139 (fill_fpregset): Likewise.
140 (_initialize_sparc_linux_nat): Set sparc_fpregset to
141 sparc32_bsd_fpregset.
142 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
143 sparc32_bsd_fpregset down into handler.
144 (sparc32_linux_collect_core_fpregset): Likewise.
145 * sparc-nat.c (sparc_fpregset): Define.
146 (sparc_supply_fpregset): Add 'fpregset' argument.
147 (sparc_collect_fpregset): Likewise.
148 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
149 into fpregset handler.
150 (sparc_store_inferior_registers): Likewise.
151 (_initialize_sparc_nat): Set sparc_fpregset to
152 sparc32_sunos4_fpregset if NULL.
153 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
154 down into handler.
155 (fill_fpregset): Likewise.
156 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
157 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
158 use it to compute offsets.
159 (sparc32_collect_fpregset): Likewise.
160 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
161 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
162 down into handler.
163 (fill_fpregset): Likewise.
164 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
165 Likewise.
166 (sparc64_linux_collect_core_fpregset): Likewise.
167 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
168 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
169 use it to compute offsets.
170 (sparc64_collect_fpregset): Likewise.
171 (sparc64_bsd_fpregset): Define.
172 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
173 sparc64_bsd_fpregset down into handler.
174 (sparc64fbsd_collect_fpregset): Likewise.
175 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
176 and pass sparc{32,64}_bsd_fpregset down into handler.
177 (sparc64nbsd_collect_fpregset): Likewise.
178 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
179 sparc64_bsd_fpregset down into handler.
180 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
181 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
182 to sparc32_bsd_fpregset.
183 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
184 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
185 (sparc32nbsd_supply_fpregset): Likewise.
186
187 2012-11-21 Tom Tromey <tromey@redhat.com>
188
189 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
190 field.
191 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
192 Remove.
193 * c-typeprint.c (c_type_print_base): Update.
194
195 2012-11-21 Yao Qi <yao@codesourcery.com>
196
197 PR tdep/7438
198 * gdbarch.sh (smash_text_address): Remove.
199 * gdbarch.c, gdbarch.h: Regenerate.
200 * arm-tdep.c (arm_smash_text_address): Remove.
201 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
202 * hppa-tdep.c (hppa_smash_text_address): Remove.
203 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
204 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
205 Caller update.
206 * coffread.c (coff_symtab_read): Caller update.
207 * dbxread.c (process_one_symbol): Likewise.
208 * elfread.c (record_minimal_symbol): Likewise.
209 * somread.c (som_symtab_read): Likewise.
210
211 2012-11-20 Pierre Muller <muller@sourceware.org>
212
213 ARI fixes: sprintf rule.
214 Replace sprintf function calls for char arrays by
215 calls to xsnprintf calls.
216 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
217 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
218 (arm_neon_quad_read, arm_pseudo_read): Ditto.
219 (arm_neon_quad_write, arm_pseudo_write): Ditto.
220 * breakpoint.c (condition_completer): Ditto.
221 (create_tracepoint_from_upload): Ditto.
222 * dwarf2read.c (file_full_name): Ditto.
223 * gcore.c (gcore_command): Ditto.
224 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
225 * go32-nat.c (go32_sysinfo): Ditto.
226 * interps.c (interp_set): Ditto.
227 * m32c-tdep.c (make_types): Ditto.
228 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
229 * remote-m32r-sdi.c (m32r_open): Ditto.
230 * sol-thread.c (td_err_string): Ditto.
231 (td_state_string, solaris_pid_to_str): Ditto.
232 * symtab.c (gdb_mangle_name): Ditto.
233 * cli/cli-script.c (execute_control_command): Ditto.
234 (define_command, document_command): Ditto.
235 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
236 * tui/tui-stack.c (tui_make_status_line): Ditto.
237 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
238
239 2012-11-20 Mike Frysinger <vapier@gentoo.org>
240
241 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
242 it when looking at ptr->func.
243 * command.h (complete_on_cmdlist): Add a fourth arg.
244 * completer.c (complete_line_internal): Add local ignore_help_classes,
245 and set it to 1 when reason is not handle_help. Pass this down to
246 lookup_cmd_1 and complete_on_cmdlist.
247
248 2012-11-20 Tom Tromey <tromey@redhat.com>
249
250 * completer.c (count_struct_fields): Remove.
251 (expression_completer): Don't call count_struct_fields.
252
253 2012-11-20 Pedro Alves <palves@redhat.com>
254
255 * annotate.c (breakpoints_changed): Rename to ...
256 (annotate_breakpoints_changed): ... this.
257 (annotate_stopped, breakpoint_changed): Adjust caller.
258 * annotate.h (breakpoints_changed): Rename to ...
259 (annotate_breakpoints_changed): ... this.
260 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
261 (do_map_commands_command, init_raw_breakpoint, clear_command)
262 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
263
264 2012-11-20 David S. Miller <davem@davemloft.net>
265
266 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
267 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
268 sysconf.
269 (get_cores_used_by_process): Update comment.
270
271 2012-11-20 Yao Qi <yao@codesourcery.com>
272
273 * objfiles.c (init_entry_point_info): Remove trailing spaces.
274
275 2012-11-20 Yao Qi <yao@codesourcery.com>
276
277 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
278 to deprecated_context_hook.
279
280 2012-11-19 Yao Qi <yao@codesourcery.com>
281
282 * infrun.c (infwait_state): Add static.
283
284 2012-11-16 Keith Seitz <keiths@redhat.com>
285
286 PR c++/13615
287 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
288 parameter and pass it to lookup_symbol_file.
289 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
290 to search base classes.
291 (cp_lookup_symbol_namespace): Likewise.
292 (lookup_namespace_scope): Likewise.
293 (lookup_symbol_file): Add SEARCH parameter.
294 If SEARCH is non-zero and no symbol is found, lookup the class
295 and call cp_lookup_nested_symbol.
296 (find_symbol_in_baseclass): New function.
297 (cp_lookup_nested_symbol): Do not let
298 cp_lookup_symbol_in_namespace search through base classes.
299 Do that later when there is no global symbol match.
300
301 2012-11-16 Doug Evans <dje@google.com>
302
303 * main.c (gdb_datadir_provided): New static global.
304 (get_init_files): If --data-directory is provided,
305 and SYSTEM_GDBINIT lives in data-directory, look for it there.
306 * NEWS: Mention it.
307
308 2012-11-15 Pierre Muller <muller@sourceware.org>
309
310 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
311 * gdb_stat.h: Delete. Moved to common directory.
312 * common/gdb_stat.h: New file.
313 * gdb_wait.h: Delete. Moved to common directory.
314 * common/gdb_wait.h: New file.
315 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
316 location.
317 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
318 location.
319 (stat.h rule): Adapt to new gdb_stat.h location.
320 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
321 <sys/stat.h> header.
322 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
323 <sys/wait.h> header.
324
325 2012-11-15 Pierre Muller <muller@sourceware.org>
326
327 * configure.ac (AC_HEADER_STAT): Remove.
328 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
329 and corresponding code.
330 * configure: Regenerate.
331 * config.in: Regenerate.
332
333 2012-11-15 Pierre Muller <muller@sourceware.org>
334
335 ARI xasprintf rule fixes.
336 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
337 instead of xasprintf.
338 (open_and_init_dwp_file): Ditto.
339
340 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
341
342 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
343 target types.
344
345 2012-11-14 Tom Tromey <tromey@redhat.com>
346
347 * configure, config.in: Rebuild.
348 * configure.ac: Don't check for ctype.h, time.h.
349 * expprint.c: Don't use HAVE_CTYPE_H.
350
351 2012-11-13 Tom Tromey <tromey@redhat.com>
352
353 * gdbarch.h, gdbarch.c: Rebuild.
354 * gdbarch.sh (set_target_gdbarch): Rename from
355 deprecated_target_gdbarch_select_hack.
356 * arch-utils.c (gdbarch_update_p): Update.
357 (set_gdbarch_from_file): Update.
358
359 2012-11-14 Pierre Muller <muller@sourceware.org>
360
361 * MAINTAINERS (Responsible Maintainers/misc): Add myself
362 as responsible of contrib/ari directory.
363
364 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
365 Yao Qi <yao@codesourcery.com>
366
367 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
368 bit of EXC_RETURN.
369 (arm_m_exception_cache, arm_m_exception_this_id)
370 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
371 (arm_m_exception_unwind): New.
372 (arm_gdbarch_init): Register arm_m_exception_unwind.
373
374 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
375
376 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
377 parameter COUNT, for pattern filling of memory regions.
378 * NEWS: Mention it.
379
380 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
381
382 * disasm.h (DISASSEMBLY_FILENAME): New macro.
383 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
384 to print_source_lines ().
385 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
386 flag.
387 * source.c (print_source_lines_base): Prefix source line with
388 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
389
390 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
391
392 * symtab.h (print_source_lines_flags): New enum.
393 * source.c (print_source_lines_base): Change noerror to flags.
394 (print_source_lines): Change noerror to flags.
395
396 2012-11-13 Pierre Muller <muller@sourceware.org>
397
398 ARI fixes: Avoid sprintf function use rule.
399 * charset.c (convert_between_encodings): Use xsnprintf.
400 * cli-out.c (cli_field_int): Likewise.
401 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
402 * expprint.c (op_name_standard): Likewise.
403 * frv-tdep.c (set_variant_num_gprs): Likewise.
404 (set_variant_num_fprs): Likewise.
405 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
406 * nto-tdep.c (nto_find_and_open_solib): Likewise.
407 (nto_init_solib_absolute_prefix): Likewise.
408 * source.c (init_source_path): Likewise.
409 (print_source_lines_base): Likewise.
410 * valprint.c (print_wchar): Likewise.
411 * mi/mi-out.c (mi_field_int): Likewise.
412 windows-nat.c (windows_pid_to_exec_file): Likewise.
413 (windows_create_inferior): Likewise.
414 (_initialize_check_for_gdb_ini): Likewise.
415
416 2012-11-12 Joel Brobecker <brobecker@adacore.com>
417
418 * frame.h (deprecated_frame_register_read): Renames
419 frame_register_read.
420 * frame.c (deprecated_frame_register_read): Renames
421 frame_register_read. Update all callers.
422 * i386-tdep.c: Update all callers of frame_register_read.
423 * infcmd.c: Likewise.
424 * jit.c: Likewise.
425 * mips-tdep.c: Likewise.
426 * mt-tdep.c: Likewise.
427 * sh64-tdep.c: Likewise.
428
429 2012-11-12 Joel Brobecker <brobecker@adacore.com>
430
431 * frame.h (frame_register_read): Remove FIXME comment.
432 * frame.c (frame_register_read): Add suggestion explaining
433 which function to use in place of this one.
434
435 2012-11-12 Tom Tromey <tromey@redhat.com>
436
437 * python/python.c (start_type_printers): Initialize 'result_obj'.
438
439 2012-11-12 Tom Tromey <tromey@redhat.com>
440
441 * NEWS: Update.
442 * data-directory/Makefile.in (PYTHON_FILES): Add
443 type_printers.py.
444 * python/lib/gdb/command/type_printers.py: New file.
445 * python/lib/gdb/command/types.py (TypePrinter): New class.
446 (_get_some_type_recognizers, get_type_recognizers,
447 apply_type_recognizers, register_type_printer): New
448 functions.
449 * python/py-objfile.c (objfile_object) <type_printers>: New
450 field.
451 (objfpy_dealloc): Decref new field.
452 (objfpy_new): Set new field.
453 (objfpy_get_type_printers, objfpy_set_type_printers): New
454 functions.
455 (objfile_to_objfile_object): Set new field.
456 (objfile_getset): Add "type_printers".
457 * python/py-progspace.c (pspace_object) <type_printers>: New
458 field.
459 (pspy_dealloc): Decref new field.
460 (pspy_new): Set new field.
461 (pspy_get_type_printers, pspy_set_type_printers): New functions.
462 (pspace_to_pspace_object): Set new field.
463 (pspace_getset): Add "type_printers".
464 * python/python.c (start_type_printers, apply_type_printers,
465 free_type_printers): New functions.
466 (_initialize_python): Set gdb.type_printers.
467 * python/python.h (start_type_printers, apply_type_printers,
468 free_type_printers): Declare.
469 * typeprint.c (type_print_raw_options, default_ptype_flags):
470 Update for new fields.
471 (do_free_global_table, create_global_typedef_table,
472 find_global_typedef): New functions.
473 (find_typedef_in_hash): Use find_global_typedef.
474 (whatis_exp): Use create_global_typedef_table. Change cleanup
475 handling.
476 * typeprint.h (struct type_print_options) <global_typedefs,
477 global_printers>: New fields.
478
479 2012-11-12 Tom Tromey <tromey@redhat.com>
480
481 * c-typeprint.c (find_typedef_for_canonicalize,
482 print_name_maybe_canonical): New functions.
483 (c_print_type): Look up type name.
484 (cp_type_print_derivation_info): Add flags argument. Use
485 print_name_maybe_canonical.
486 (cp_type_print_method_args): Add wrapping.
487 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
488 (c_type_print_template_args): New function.
489 (c_type_print_base): Change wrapping. Use
490 print_name_maybe_canonical.
491 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
492 type name lookups.
493 * gdbtypes.c (types_equal): No longer static.
494 * gdbtypes.h (types_equal): Declare.
495 * typeprint.c (type_print_raw_options, default_ptype_flags):
496 Update.
497 (struct typedef_hash_table): New.
498 (hash_typedef_field, eq_typedef_field,
499 recursively_update_typedef_hash, add_template_parameters,
500 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
501 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
502 copy_typedef_hash, find_typedef_in_hash): New functions.
503 * typeprint.h (struct type_print_options) <local_typedefs>:
504 New field.
505 (recursively_update_typedef_hash, add_template_parameters,
506 create_typedef_hash, free_typedef_hash,
507 make_cleanup_free_typedef_hash, copy_typedef_hash,
508 find_typedef_in_hash): Declare.
509
510 2012-11-12 Tom Tromey <tromey@redhat.com>
511
512 * cp-support.c (inspect_type,
513 replace_typedefs_qualified_name, replace_typedefs): Add
514 finder, data arguments. Call as needed.
515 (cp_canonicalize_string_full): New function.
516 (cp_canonicalize_string_no_typedefs): Rewrite.
517 * cp-support.h (canonicalization_ftype): New typedef.
518 (cp_canonicalize_string_full): Declare.
519
520 2012-11-12 Tom Tromey <tromey@redhat.com>
521
522 * NEWS: Update.
523 * c-typeprint.c (c_type_print_base): Handle print_method and
524 print_typedefs flags.
525 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
526 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
527 options.
528 * typeprint.c (type_print_raw_options, default_ptype_flags):
529 Update for new field.s
530 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
531 (setprinttypelist, showprinttypelist, print_methods,
532 print_typedefs): New globals.
533 (set_print_type, show_print_type, set_print_type_methods,
534 show_print_type_methods, set_print_type_typedefs,
535 show_print_type_typedefs): New functions.
536 (_initialize_typeprint): Update documentation. Add "print
537 type methods" and "print type typedefs" parameters.
538 * typeprint.h (struct type_print_options) <print_methods,
539 print_typedefs>: New fields.
540
541 2012-11-12 Tom Tromey <tromey@redhat.com>
542
543 * c-typeprint.c (cp_type_print_method_args): Add flags
544 argument. Call c_print_type, not type_print.
545 (c_type_print_base): Call c_print_type, not type_print.
546 Update.
547
548 2012-11-12 Tom Tromey <tromey@redhat.com>
549
550 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
551 to type-printing functions.
552 * ada-lang.h (ada_print_type): Add argument.
553 * ada-typeprint.c (print_array_type, print_variant_clauses,
554 print_variant_part, print_selected_record_field_types,
555 print_record_field_types, print_unchecked_union_type,
556 print_func_type, ada_print_type): Add flags argument.
557 (ada_print_typedef): Update.
558 * c-exp.y (OPERATOR conversion_type_id): Update.
559 * c-lang.h (c_print_type, c_type_print_base): Update.
560 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
561 c_type_print_modifier, c_type_print_args,
562 c_type_print_varspec_suffix, c_type_print_base): Add flags
563 argument.
564 * cp-valprint.c (cp_print_class_member): Update.
565 * dwarf2read.c (dwarf2_compute_name): Update.
566 * f-lang.h (f_print_type): Add argument.
567 * f-typeprint.c (f_print_type): Add flags argument.
568 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
569 * go-lang.h (go_print_type): Add argument.
570 * go-typeprint.c (go_print_type): Add flags argument.
571 * jv-lang.h (java_print_type): Add argument.
572 * jv-typeprint.c (java_type_print_base, java_print_type): Add
573 flags argument.
574 * language.c (unk_lang_print_type): Add flags argument.
575 * language.h (struct language_defn) <la_print_type>: Add flags
576 argument.
577 (LA_PRINT_TYPE): Likewise.
578 * m2-lang.h (m2_print_type): Add argument.
579 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
580 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
581 m2_unbounded_array, m2_record_fields): Add flags argument.
582 * p-lang.h (pascal_print_type, pascal_type_print_base,
583 pascal_type_print_varspec_prefix): Add argument.
584 * p-typeprint.c (pascal_print_type,
585 pascal_type_print_varspec_prefix, pascal_print_func_args,
586 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
587 flags argument.
588 * symmisc.c (print_symbol): Update.
589 * typeprint.c (type_print_raw_options, default_ptype_flags):
590 New globals.
591 (type_print): Update.
592 * typeprint.h (struct type_print_options): New.
593 (type_print_raw_options): Declare.
594 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
595
596 2012-11-10 Keith Seitz <keiths@redhat.com>
597
598 * breakpoint.c (clear_command): Add cleanup for
599 sals.sals if an argument is given.
600
601 * linespec.c (parse_linespec): Do cleanups after
602 parsing a convenience variable.
603
604 2012-11-10 Keith Seitz <keiths@redhat.com>
605
606 PR gdb/14288
607 * c-valprint.c (c_val_print): For character arrays
608 with "print null" option on, print ellipses if
609 the output is truncated and the next character is not \000.
610 * valprint.c (MAX_WCHARS): Define.
611 (WCHAR_BUFLEN): Likewise.
612 (WCHAR_BUFLEN_MAX): Likewise.
613 (struct converted_character): New structure.
614 (count_next_character): New function.
615 (print_converted_chars_to_obstack): New function.
616 (generic_printstr): Rewrite using count_next_character
617 and print_converted_chars_to_obstack.
618
619 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
620
621 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
622 while executing the gdb command.
623 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
624 are called from prompt_for_continue.
625 * tui/tui-io.c (tui_redisplay_readline): Likewise.
626
627 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
628
629 PR tui/9584
630
631 * tui/tui.c (tui_rl_command_key): Do not call execute_command
632 but insert the command to execute in readline's buffer.
633
634 2012-11-09 Tom Tromey <tromey@redhat.com>
635
636 * gdbarch.sh (target_gdbarch): Remove macro.
637 (get_target_gdbarch): Rename to target_gdbarch.
638 * gdbarch.c, gdbarch.h: Rebuild.
639 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
640 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
641 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
642 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
643 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
644 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
645 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
646 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
647 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
648 procfs.c, progspace.c, ravenscar-thread.c, record.c,
649 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
650 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
651 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
652 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
653 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
654 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
655 target-descriptions.c, target.c, target.h, tracepoint.c,
656 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
657 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
658 python/py-inferior.c, python/python.c: Update.
659
660 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
661
662 * source.c (print_source_lines_base): Add fullname field giving
663 full path to file in mi output.
664 * NEWS: Mention the new fullname field.
665
666 2012-11-09 Yao Qi <yao@codesourcery.com>
667
668 * NEWS: Mention the fix to the ambiguity of 'fo' command.
669
670 2012-11-09 Pedro Alves <palves@redhat.com>
671
672 PR gdb/14306
673
674 * infrun.c: Include target-descriptions.h.
675 (follow_exec): Fetch new target description.
676
677 2012-11-09 Yao Qi <yao@codesourcery.com>
678
679 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
680 0x8d (lea).
681
682 2012-11-09 Yao Qi <yao@codesourcery.com>
683
684 * breakpoint.c: Declare set_tracepoint_count.
685 (install_breakpoint): Call set_tracepoint_count if B is a
686 tracepoint.
687 (trace_command): Don't call set_tracepoint_count. Re-indent.
688 (strace_command, ftrace_command):
689 (create_tracepoint_from_upload): Likewise.
690
691 2012-11-09 Pedro Alves <palves@redhat.com>
692
693 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
694 (get_target_gdbarch) <gdbarch.h>: New function.
695 (startup_gdbarch) <gdbarch.h>: Declare.
696 <gdbarch.c> (target_gdbarch): Delete.
697 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
698 current inferior's gdbarch.
699 <gdbarch.c> (get_target_gdbarch): New function.
700 * inferior.c: Include target-descriptions.h.
701 (free_inferior): Free target description info.
702 (add_inferior_with_spaces): Set the inferior's initial
703 architecture.
704 (clone_inferior_command): Copy the original inferior's target
705 description if it was user specified.
706 (initialize_inferiors): Add comment.
707 * inferior.h (struct target_desc_info): Forward declare.
708 (struct inferior) <gdbarch>: New field.
709 * linux-nat.c: Include target-descriptions.h.
710 (linux_child_follow_fork): Copy the parent's architecture and
711 target description to the child.
712 * target-descriptions.c: Include inferior.h.
713 (struct target_desc_info): New structure, holding the equivalents
714 of ...
715 (target_desc_fetched, current_target_desc)
716 (target_description_filename): ... these removed globals.
717 (get_tdesc_info, target_desc_info_from_user_p)
718 (copy_inferior_target_desc_info, target_desc_info_free): New.
719 (target_desc_fetched, current_target_desc)
720 (target_description_filename): Reimplemented as convenience
721 macros.
722 (tdesc_filename_cmd_string): New global.
723 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
724 tdescs filename ..." commands to the per-inferior equivalent.
725 (show_tdesc_filename_cmd): Get the value to show from the
726 per-inferior description filename.
727 (_initilize_target_descriptions): Change the "set/show tdesc
728 filename" commands' variable.
729 * target-descriptions.h (struct target_desc, struct target_desc_info)
730 (struct inferior): Forward declare.
731 (target_find_description, target_clear_description)
732 (target_current_description): Adjust comments.
733 (copy_inferior_target_desc_info, target_desc_info_free)
734 (target_desc_info_from_user_p). Declare.
735
736 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
737
738 * tui/tui-hooks.c (tui_about_to_proceed): New function.
739 (tui_target_wait_hook): Remove.
740 (tui_install_hooks): Install the about_to_proceed observer.
741 (tui_remove_hooks): And remove it here.
742
743 2012-11-08 Tom Tromey <tromey@redhat.com>
744
745 * linux-tdep.c (linux_make_siginfo_note): New function.
746 (linux_make_corefile_notes): Use it.
747 * corelow.c (get_core_siginfo): New function.
748 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
749
750 2012-11-08 Tom Tromey <tromey@redhat.com>
751
752 PR gdb/14704:
753 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
754 (zlib_decompress_section): Remove.
755 (gdb_bfd_map_section): Only check for compressed section
756 in mmap case. Use bfd_get_full_section_contents.
757 * osabi.c (check_note): Add 'sectsize' argument. Read
758 section data.
759 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
760 section data. Update for check_note change.
761 * xcoffread.c (xcoff_initial_scan): Use
762 bfd_get_full_section_contents.
763 * py-auto-load.c (auto_load_section_scripts): Use
764 bfd_get_full_section_contents.
765 * contrib/cc-with-tweaks.sh: Add -Z option.
766
767 2012-11-08 Tom Tromey <tromey@redhat.com>
768
769 * python/py-bpevent.c: Include defs.h.
770 * python/py-continueevent.c: Include defs.h.
771 * python/py-event.c: Include defs.h.
772 * python/py-event.h: Don't include defs.h.
773 * python/py-events.h: Don't include defs.h.
774 * python/py-evts.c: Include defs.h.
775 * python/py-exitedevent.c: Include defs.h.
776 * python/py-newobjfileevent.c: Include defs.h.
777 * python/py-signalevent.c: Include defs.h.
778 * python/py-stopevent.c: Include defs.h.
779 * python/py-threadevent.c: Include defs.h.
780
781 2012-11-08 Pierre Muller <muller@sourceware.org>
782
783 * update-web-ari.sh (print_heading): Add number of files
784 checked.
785 (nb_files): New variable counting the number of sources
786 files found by gdb_find.sh script.
787 (debug_awk): New variable to allow extra debug output.
788 (indexes): Add more information if DEBUG_AWK is set.
789
790 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
791
792 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
793 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
794 following the change in PLT call stubs on linker.
795
796 2012-11-08 Pierre Muller <muller@sourceware.org>
797
798 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
799 as default language.
800 (AWK): Use = instead of == for sh test to avoid warning.
801 (Linux rule): Correct [:digit] into [[:digit:]].
802 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
803 (vasprintf rule): Adapt to common subdirectory moves.
804 (xasprintf rule): Idem.
805 (xvasprintf rule): Idem.
806 (var_boolean rule): Accept occurence in == or != test.
807
808 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
809
810 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
811
812 * tui/tui-hooks.c (tui_inferior_exit): New function.
813 (tui_detach_hook): Remove.
814 (tui_install_hooks): Install the inferior exit observer.
815 (tui_remove_hooks): Remove it.
816
817 2012-11-08 Yao Qi <yao@codesourcery.com>
818
819 PR gdb/14777.
820 * source.c (_initialize_source): Call add_com_alias to abbreviate
821 'forward-search' as 'fo'.
822
823 2012-11-07 Pedro Alves <palves@redhat.com>
824
825 * arm-tdep.c: Make defs.h be the first include.
826 * coff-pe-read.c: Ditto.
827 * gnu-nat.c: Ditto.
828 * go32-nat.c: Ditto.
829 * i386-nat.c: Ditto.
830 * ppcnbsd-nat.c: Ditto.
831 * ada-varobj.h: Don't include defs.h.
832 * i386-darwin-tdep.h: Ditto.
833 * i386-nat.h: Ditto.
834
835 2012-11-07 Pedro Alves <palves@redhat.com>
836
837 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
838 Committee.
839
840 2012-11-07 Pierre Muller <muller@sourceware.org>
841
842 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
843 File already uses "gdb_dirent.h" header.
844
845 2012-11-07 Yao Qi <yao@codesourcery.com>
846
847 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
848 tracepoint_count'.
849
850 2012-11-06 Tom Tromey <tromey@redhat.com>
851
852 * target.h (inferior_has_forked, inferior_has_vforked)
853 (inferior_has_execd, inferior_has_called_syscall): Remove
854 declarations.
855
856 2012-11-06 Pierre Muller <muller@sourceware.org>
857
858 * remote.c (remote_insert_hw_breakpoint): ARI fix,
859 add missing internalization markup.
860
861 2012-11-06 Pedro Alves <palves@redhat.com>
862
863 PR gdb/14810
864
865 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
866
867 2012-11-06 Pierre Muller <muller@sourceware.org>
868
869 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
870 is not executable.
871
872 2012-11-05 Joel Brobecker <brobecker@adacore.com>
873
874 * gnulib/update-gnulib.sh: New script.
875
876 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
877
878 * MAINTAINERS: Update my email address.
879
880 2012-11-05 Tom Tromey <tromey@redhat.com>
881
882 * frame.c (put_frame_register): Don't use temporary buffer.
883
884 2012-11-05 Pedro Alves <palves@redhat.com>
885
886 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
887 child. Clear 'pending_detach'.
888 * infrun.c (handle_vfork_child_exec_or_exit): Clear
889 'pending_detach' in the vfork parent.
890
891 2012-11-05 Doug Evans <dje@google.com>
892
893 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
894 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
895 * dwarf2read.c: #include "elf-bfd.h".
896 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
897 (dwop_section_names): Renamed from dwo_section names. All uses
898 updated. Add entries for .debug_cu_index, .debug_tu_index.
899 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
900 All uses updated.
901 (struct dwp_sections): New type.
902 (struct virtual_dwo_sections): New type.
903 (struct dwp_hash_table): New type.
904 (struct dwp_file): New type.
905 (init_cutu_and_read_dies): Ensure DWO info/types section has been
906 read in. Handle DWOs coming from DWP files.
907 (lookup_dwo_file_slot): New function.
908 (dwarf2_locate_dwo_sections): Move definition closer to use.
909 (create_dwo_debug_info_hash_table_reader): Renamed from
910 create_debug_info_hash_table_reader. All callers updated.
911 (create_dwo_debug_info_hash_table): Renamed from
912 create_debug_info_hash_table. All callers updated.
913 (create_dwp_hash_table): New function.
914 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
915 (lookup_dwo_in_dwp): New function.
916 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
917 is_dwp. All callers updated.
918 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
919 (open_and_init_dwo_file): Renamed from init_dwo_file.
920 All callers updated.
921 (lookup_dwo_file): Delete.
922 (dwarf2_locate_dwp_sections): New function.
923 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
924 (allocate_dwp_loaded_cutus_table): New function.
925 (open_and_init_dwp_file): New function.
926 (lookup_dwo_cutu): New function.
927 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
928
929 2012-11-03 Yao Qi <yao@codesourcery.com>
930
931 Fix PR gdb/14617.
932 * breakpoint.c (trace_pass_set_count): Call
933 observer_notify_breakpoint_modified instead of
934 observer_notify_tracepoint_modified.
935 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
936
937 2012-11-02 Tom Tromey <tromey@redhat.com>
938
939 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
940 argument to complete_on_enum.
941
942 2012-11-02 Tom Tromey <tromey@redhat.com>
943
944 * configure: Rebuild.
945 * configure.ac (build_warnings): Add -Wempty-body.
946 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
947 * remote.c (handle_notification): Use braces for empty 'else' body.
948 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
949 'else' body.
950 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
951 'else' body.
952 * solib-som.c (som_relocate_section_addresses): Use braces
953 for empty 'else' body.
954 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
955 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
956
957 2012-11-02 Pedro Alves <palves@redhat.com>
958
959 PR gdb/14766
960
961 * infrun.c (handle_inferior_event)
962 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
963 null_ptid before handling a vfork child exec or exit. Switch to
964 the event ptid afterwards.
965
966 2012-11-02 Yao Qi <yao@codesourcery.com>
967
968 * std-operator.def: Remove OP_LABELED.
969 * eval.c: Remove the declaration of 'get_label'.
970 (get_label): Remove.
971 (evaluate_struct_tuple): Remove code handling OP_LABELED.
972 Update comment.
973 Remove local variable 'variantno' and related code.
974 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
975 with 'fieldno'.
976 * expprint.c (print_subexp_standard): Likewise.
977 (dump_subexp_body_standard): Likewise.
978 * parse.c (operator_length_standard): Likewise.
979
980 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
981
982 Incorporate ARI web page generator into GDB sources.
983 * contrib/ari/create-web-ari-in-src.sh: New file.
984 * contrib/ari/gdb_ari.sh: New file.
985 * contrib/ari/gdb_find.sh: New file.
986 * contrib/ari/update-web-ari.sh: New file.
987
988 2012-10-31 Tom Tromey <tromey@redhat.com>
989
990 * gdbarch.c: Rebuild.
991 * gdbarch.sh: Remove references to gdbarch_swap.
992 * corelow.c (core_open): Remove obsolete comment.
993
994 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
995
996 PR cli/14772
997 * c-typeprint.c (c_print_type): Don't print a space for vector
998 types, this is handled within the suffix.
999 (c_type_print_varspec_suffix): Add a space to vector suffix.
1000
1001 2012-10-26 Pedro Alves <palves@redhat.com>
1002
1003 * amd64-tdep.c (amd64_relocate_instruction): Use
1004 store_unsigned_integer instead of memcpy.
1005 * i386-tdep.c (i386_relocate_instruction): Ditto.
1006
1007 2012-10-26 Pedro Alves <palves@redhat.com>
1008
1009 * infrun.c (handle_inferior_event): Merge handling of
1010 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1011 switch case.
1012
1013 2012-10-26 Pedro Alves <palves@redhat.com>
1014
1015 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1016 Remove comment.
1017
1018 2012-10-26 Pedro Alves <palves@redhat.com>
1019
1020 * target.c (target_waitstatus_to_string): Handle
1021 TARGET_WAITKIND_VFORK_DONE.
1022
1023 2012-10-26 Pedro Alves <palves@redhat.com>
1024
1025 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1026 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1027
1028 2012-10-24 Tristan Gingold <gingold@adacore.com>
1029
1030 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1031 Add comments.
1032
1033 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1034
1035 * ravenscar-thread.c (ravenscar_wait): Only update the list
1036 of threads and inferior_ptid if the inferior is still alive.
1037
1038 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1039
1040 * ada-lang.c (is_known_support_routine): Use lbasename when
1041 matching the symtab's filename against
1042 known_runtime_file_name_patterns.
1043
1044 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1045
1046 * ada-lang.c (ada_same_array_size_p): New function.
1047 (ada_promote_array_of_integrals): New function.
1048 (coerce_for_assign): Add handling of arrays where the elements
1049 are integrals of a smaller size than the size of the target
1050 array element type.
1051
1052 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1053
1054 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1055 against maximum exponent value.
1056
1057 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1058
1059 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1060 "unwind-seh.c".
1061
1062 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1063
1064 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1065 strip typedef layer when computing the fixed type's field type,
1066 only when computing its size.
1067
1068 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1069
1070 PR gdb/12783
1071 * i386-tdep.c (i386_return_value): Handle complex double and long
1072 double.
1073
1074 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1075
1076 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1077 New local variable args_len.
1078 Quote the name of the executable when computing the command line.
1079
1080 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1081
1082 PR gdb/12796
1083 PR gdb/12798
1084 PR gdb/12800
1085 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1086 AMD64_FTAG_REGNUM.
1087 * amd64-tdep.c (amd64_classify): Classify complex types.
1088 (amd64_return_value): Handle the COMPLEX_X87 class.
1089
1090 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1091
1092 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1093 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1094
1095 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1096
1097 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1098 function.
1099 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1100 to amd64_windows_auto_wide_charset.
1101
1102 2012-10-23 Yao Qi <yao@codesourcery.com>
1103
1104 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1105 * event-top.h: Remove its declaration.
1106 (async_request_quit): Call mark_async_signal_handler instead of
1107 mark_async_signal_handler_wrapper.
1108 (async_do_nothing, async_disconnect): Likewise.
1109 (async_stop_sig): Likewise.
1110 * remote.c (handle_remote_sigint): Likewise.
1111 (handle_remote_sigint_twice): Likewise.
1112
1113 2012-10-23 Yao Qi <yao@codesourcery.com>
1114
1115 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1116 with 'static struct async_signal_handler *'.
1117 (sighup_token, sigquit_token, sigstp_token): Likewise.
1118
1119 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1120
1121 * gdbarch.sh (function_list): Use 'pstring' when printing
1122 a variable which could return NULL.
1123 * gdbarch.c: Regenerate.
1124
1125 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1126 Tom Tromey <tromey@redhat.com>
1127
1128 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1129 inneffective if condition by gdb assertion. Add function
1130 description comment.
1131
1132 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1133
1134 * parser-defs.h (struct exp_descriptor): Document constraint
1135 on return value for "op_name" callbacks.
1136
1137 2012-10-18 Tom Tromey <tromey@redhat.com>
1138
1139 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1140 * symtab.c (iterate_over_some_symtabs): Constify.
1141 * source.h (symtab_to_fullname): Return 'const char *'.
1142 * source.c (symtab_to_fullname): Return 'const char *'.
1143 * python/py-symtab.c (stpy_fullname): Constify.
1144 * cli/cli-cmds.c (edit_command): Constify.
1145 * breakpoint.c (print_breakpoint_location)
1146 (update_static_tracepoint): Constify.
1147
1148 2012-10-18 Tom Tromey <tromey@redhat.com>
1149
1150 * breakpoint.c (compare_breakpoints): Fix comparison.
1151
1152 2012-10-18 Tom Tromey <tromey@redhat.com>
1153
1154 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1155 gdb_wchar_t to convert_between_encodings.
1156
1157 2012-10-17 Yao Qi <yao@codesourcery.com>
1158
1159 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1160 more parameter 'inferior'.
1161 * corefile.c (write_memory_with_notification): Caller update.
1162
1163 * mi/mi-cmd-var.c: Include "mi-main.h".
1164 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1165 to 1 and restore it later.
1166 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1167 and "data-write-memory-bytes.
1168 * mi/mi-interp.c: Include objfiles.h.
1169 (mi_interpreter_init): Call observer_attach_memory_changed.
1170 (mi_memory_changed): New.
1171 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1172 New field.
1173
1174 * NEWS: Mention new MI notification "memory-changed".
1175
1176 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1177
1178 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1179
1180 2012-10-15 Doug Evans <dje@google.com>
1181
1182 New option -nh: inhibit loading of ~/.gdbinit.
1183 * NEWS: Mention -nh.
1184 * main.c (captured_main): Recognize and process -nh.
1185 (print_gdb_help): Mention -nh.
1186 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1187
1188 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1189
1190 PR backtrace/14646
1191 PR gdb/14647
1192 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1193 pc_regnum_from_eax.
1194 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1195 nor pc_regnum_from_eax.
1196 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1197 nor pc_regnum_from_eax.
1198
1199 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1200
1201 Fix entry values resolving in inlined frames.
1202 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1203 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1204 entries of FRAME.
1205
1206 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1207
1208 * configure.ac: Build with -DMS_WIN64 if building with Python
1209 enabled using GCC on amd64-windows.
1210 * configure: Regenerate.
1211
1212 2012-10-15 Tom Tromey <tromey@redhat.com>
1213
1214 PR python/14635:
1215 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1216 to Py_None.
1217
1218 2012-10-15 Tom Tromey <tromey@redhat.com>
1219
1220 PR python/14634:
1221 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1222
1223 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1224
1225 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1226 reset thread numbering back to 1.
1227
1228 2012-10-11 Doug Evans <dje@google.com>
1229
1230 PR breakpoints/14643.
1231 * linespec.c (struct ls_parser): New member keyword_ok.
1232 (linespec_lexer_lex_string): Add comment.
1233 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1234 for one.
1235 (parse_linespec): Set keyword_ok.
1236
1237 2012-10-10 Doug Evans <dje@google.com>
1238
1239 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1240 "0x" prefix on address in log message.
1241
1242 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1243 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1244 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1245 (lookup_dwo_file): Add const to dwo_name parameter.
1246 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1247
1248 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1249
1250 Fix crash during stepping on ppc32.
1251 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1252 SYM.
1253
1254 2012-10-03 Doug Evans <dje@google.com>
1255
1256 PR symtab/14601
1257 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1258
1259 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1260
1261 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1262 output and use uint32_t not long to ensure 4 byte size.
1263
1264 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1265
1266 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1267 unref'ed it.
1268
1269 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1270
1271 * target.c (simple_search_memory): Include access length in
1272 warning message.
1273
1274 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1275 Edjunior Machado <emachado@linux.vnet.ibm.com>
1276
1277 PR gdb/13989
1278 * solib.c (solib_find): Prevent GDB from loading native libraries when
1279 debugging a cross-target corefile.
1280
1281 2012-09-28 selven <pcthegreat@gmail.com>
1282
1283 Make definition match declaration.
1284
1285 * regcache.c (regcache_register_status): Change return type to
1286 enum register_status.
1287
1288 2012-09-28 Yao Qi <yao@codesourcery.com>
1289
1290 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1291 write_memory_with_notification instead of write_memory.
1292 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1293 instead of target_write_memory.
1294
1295 2012-09-28 Yao Qi <yao@codesourcery.com>
1296
1297 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1298 when the length of content is not an even number.
1299
1300 2012-09-27 Tom Tromey <tromey@redhat.com>
1301
1302 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1303 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1304
1305 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1306
1307 * sol-thread.c (sol_thread_fetch_registers)
1308 (sol_thread_store_registers): Delete commented out code.
1309
1310 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1311
1312 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1313 Move these functions to sparc-sol-thread.c.
1314 * sparc-sol-thread.c: New file.
1315 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1316 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1317 configurations.
1318 * configure: Regenerate.
1319
1320 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1321
1322 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1323 Remove commented-out code.
1324
1325 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1326
1327 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1328 Enable this code for sparc hosts only.
1329
1330 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1331
1332 * procfs.h (procfs_find_LDT_entry): Add declaration.
1333 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1334 function procfs_find_LDT_entry.
1335
1336 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1337
1338 * procfs.c (proc_get_LDT_entry): Make static.
1339
1340 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1341
1342 * procfs.c (proc_find_memory_regions): Fix declaration.
1343
1344 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1345
1346 * amd64-tdep.c (amd64_return_value): Revert previous change
1347 that used TYPE_LENGTH directly.
1348 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1349 (bfin_store_return_value): Likewise.
1350 * cris-tdep.c (cris_store_return_value): Likewise.
1351 (cris_extract_return_value): Likewise.
1352 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1353 * hppa-tdep.c (hppa64_return_value): Likewise.
1354 * lm32-tdep.c (lm32_store_return_value): Likewise.
1355 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1356 * spu-tdep.c (spu_value_from_register): Likewise.
1357 * vax-tdep.c (vax_return_value): Likewise.
1358
1359 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1360
1361 * gdbtypes.c (lookup_array_range_type): Expand parameters
1362 LOW_BOUND and HIGH_BOUND to LONGEST.
1363 (lookup_string_range_type): Likewise.
1364 * gdbtypes.h (lookup_array_range_type): Likewise.
1365 (lookup_string_range_type): Likewise.
1366 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1367 Expand HIGHBOUND to ssize_t.
1368 (value_string): Likewise.
1369 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1370 (value_string): Likewise.
1371
1372 2012-09-27 Yao Qi <yao@codesourcery.com>
1373
1374 PR breakpoints/13898
1375 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1376 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1377 per breakpoint type.
1378
1379 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1380
1381 * procfs.c: Add gdb_bfd header.
1382 * rs6000-nat.c: Likewise.
1383 * solib-pa64.c: Likewise.
1384 * spu-linux-nat.c: Likewise.
1385 * windows-nat.c: Likewise.
1386
1387 2012-09-26 Tom Tromey <tromey@redhat.com>
1388
1389 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1390
1391 2012-09-26 Tom Tromey <tromey@redhat.com>
1392
1393 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1394 (read_common_block): Handle child DIEs with
1395 DW_AT_data_member_location.
1396 (new_symbol_full): Add special case for common blocks.
1397
1398 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1399 Tom Tromey <tromey@redhat.com>
1400
1401 * dwarf2read.c (read_common_block): Rewrite.
1402 (new_symbol_full): Handle DW_TAG_common_block.
1403 * f-lang.c (head_common_list, find_common_for_function):
1404 Remove.
1405 * f-lang.h (struct common_entry, struct saved_f77_common,
1406 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1407 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1408 BLANK_COMMON_NAME_LOCAL): Remove.
1409 (struct common_block): New.
1410 * f-valprint.c (list_all_visible_commons): Remove.
1411 (info_common_command_for_block): New function.
1412 (info_common_command): Use it.
1413 * stack.c (iterate_over_block_locals): Special case for
1414 COMMON_BLOCK_DOMAIN.
1415 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1416 constant.
1417 (struct general_symbol_info) <value.common_block>: New field.
1418 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1419
1420 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1421 Tom Tromey <tromey@redhat.com>
1422
1423 * f-lang.c (allocate_saved_bf_node,
1424 allocate_saved_function_node, allocate_saved_f77_common_node,
1425 allocate_common_entry_node, tail_common_list, current_common,
1426 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1427 tmp_bf_ptr, add_common_block, add_common_entry,
1428 find_first_common_named, patch_common_entries,
1429 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1430 global_remote_debug, get_bf_for_fcn, saved_function_list,
1431 saved_function_list_end, clear_function_list, struct saved_fcn,
1432 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1433 SAVED_BF, SAVED_BF_PTR): Remove.
1434 * f-lang.h (tail_common_list, current_common,
1435 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1436 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1437 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1438 real_main_c_value): Remove.
1439 * f-valprint.c (there_is_a_visible_common_named): Remove.
1440
1441 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1442
1443 * breakpoint.c (update_global_location_list): Ignore previous
1444 duplicate status of a breakpoint when starting a new scan for
1445 duplicate breakpoints.
1446
1447 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1448 PR breakpoints/14419
1449 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1450 support LLVM compiler.
1451
1452 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1453
1454 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1455 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1456 (bfin_store_return_value): Likewise.
1457 * cris-tdep.c (cris_store_return_value): Likewise.
1458 (cris_extract_return_value): Likewise.
1459 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1460 * hppa-tdep.c (hppa64_return_value): Likewise.
1461 * lm32-tdep.c (lm32_store_return_value): Likewise.
1462 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1463 * spu-tdep.c (spu_value_from_register): Likewise.
1464 * vax-tdep.c (vax_return_value): Likewise.
1465
1466 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1467
1468 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1469 parameter LEN to ssize_t.
1470
1471 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1472
1473 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1474 variable LEN.
1475 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1476 directly.
1477 (alpha_store_return_value): Likewise.
1478 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1479 (amd64_push_arguments): Likewise.
1480 * ax-gdb.c (gen_trace_static_fields): Likewise.
1481 (gen_traced_pop): Likewise.
1482 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1483 * breakpoint.c (update_watchpoint): Likewise.
1484 * findcmd.c (parse_find_args): Use local variable for type
1485 instead of length.
1486 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1487 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1488 (h8300_store_return_value): Likewise.
1489 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1490 Use i386_darwin_arg_type_alignment directly.
1491 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1492 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1493 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1494 (m68hc11_extract_return_value): Likewise.
1495 * mep-tdep.c (mep_push_dummy_call): Likewise.
1496 * printcmd.c (float_type_from_length): Likewise.
1497 * s390-tdep.c (s390_value_from_register): Likewise.
1498 * stack.c (read_frame_arg): Likewise.
1499 * tracepoint.c (encode_actions_1): Likewise.
1500 * valops.c (value_fetch_lazy): Use local variable for type
1501 instead of length. Use TYPE_LENGTH directly.
1502 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1503
1504 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1505
1506 * symtab.c (skip_prologue_sal): Fix typo in comment.
1507
1508 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1509
1510 * linespec.c (create_sals_line_offset): Fix typo in comment.
1511
1512 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1513
1514 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1515 use plongest to print the array size.
1516
1517 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1518
1519 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1520 * p-valprint.c (pascal_type_print_base): Likewise.
1521
1522 2012-09-22 Yao Qi <yao@codesourcery.com>
1523
1524 * remote.c (remote_get_trace_status): Remove setting default
1525 values of fields of 'ts'.
1526
1527 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1528
1529 Fix internal error on canonicalization of clang types.
1530 * cp-name-parser.y (operator): New comment at make_operator call for
1531 new, delete, new[] and delete[].
1532 (exp): Use "sizeof ". Add new comment at make_operator call.
1533
1534 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1535
1536 Fix disassemble without parameters in tailcall frame.
1537 * cli/cli-cmds.c (disassemble_current_function): Use
1538 get_frame_address_in_block.
1539
1540 2012-09-21 Tom Tromey <tromey@redhat.com>
1541
1542 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1543 TYPE_CODE_UNION>: Unify, removing a goto.
1544
1545 2012-09-21 Tom Tromey <tromey@redhat.com>
1546
1547 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1548
1549 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1550
1551 * findvar.c (read_frame_register_value): Mark the result value as
1552 optimized out if any of the input registers have been optimized out.
1553
1554 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1555
1556 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1557
1558 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1559
1560 * eval.c (evaluate_subexp_standard): Eliminate single-use
1561 variable LOWER.
1562
1563 2012-09-21 Yao Qi <yao@codesourcery.com>
1564
1565 * mi/mi-interp.c: Declare mi_record_changed.
1566 (mi_interpreter_init): Call observer_attach_record_changed.
1567 (mi_record_changed): New.
1568 * record.c (record_open): Call observer_notify_record_changed.
1569 (cmd_record_stop): Call observer_notify_record_changed.
1570 * NEWS: Mention it.
1571
1572 2012-09-20 Tom Tromey <tromey@redhat.com>
1573
1574 * NEWS: Update.
1575 * python/python.c (finalize_python): New function.
1576 (_initialize_python): Make a final cleanup.
1577
1578 2012-09-19 Doug Evans <dje@google.com>
1579
1580 * buildsym.h (param_symbols): Delete, unused.
1581 (context_stack): Delete member "params", unused.
1582 * buildsym.c (push_context): Update.
1583 * dwarf2read.c (read_func_scope): Update.
1584
1585 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1586
1587 * sh-tdep.c (sh_register_convert_to_virtual)
1588 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1589 all callers. Just do a memcpy if not the little-endian case.
1590
1591 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1592 set_gdbarch_double_format and set_gdbarch_long_double_format.
1593 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1594 set_gdbarch_double_format.
1595 * sh-tdep.c (sh_gdbarch_init): Likewise.
1596
1597 * NEWS: Document the removal of SH's 'regs' command.
1598 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1599 command.
1600
1601 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1602
1603 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1604 `jump'.
1605
1606 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1607
1608 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1609 language when iterating over symbols.
1610
1611 2012-09-18 Yao Qi <yao@codesourcery.com>
1612
1613 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1614 (mi_interpreter_init): Call observer_attach_tsv_created and
1615 observer_attach_tsv_deleted.
1616 (mi_tsv_created, mi_tsv_deleted): New.
1617 * tracepoint.c (delete_trace_state_variable): Call
1618 observer_notify_tsv_deleted.
1619 (trace_variable_command): Call observer_notify_tsv_created.
1620 (delete_trace_variable_command): Call
1621 observer_notify_tsv_deleted.
1622 (create_tsv_from_upload): Call observer_notify_tsv_created.
1623 * NEWS: Mention it.
1624
1625 2012-09-18 Yao Qi <yao@codesourcery.com>
1626
1627 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1628 if traceframe changed.
1629 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1630 "trace-find".
1631 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1632 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1633 'traceframe_changed'.
1634 (mi_traceframe_changed): New.
1635 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1636 New field.
1637 * NEWS: Mention the new MI notification.
1638
1639 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1640
1641 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1642
1643 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1644
1645 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1646 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1647 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1648 Extend code also for PaX support. Convert all gdb_assert to warning
1649 calls.
1650
1651 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1652
1653 Implement auto-load user conveniences suggested by Doug Evans.
1654 * auto-load.c: Include top.h.
1655 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1656 (_initialize_auto_load): New variable scripts_directory_help. Mention
1657 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1658 scripts-directory. Document in online help one can use also files for
1659 set auto-load safe-path.
1660 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1661 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1662
1663 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1664
1665 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1666 of LEN.
1667
1668 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1669
1670 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1671 ELTLEN and use TYPE_LENGTH directly.
1672 (m2_val_print): Likewise.
1673 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1674 variable LEN and use TYPE_LENGTH directly.
1675 (m68k_svr4_store_return_value): Likewise.
1676 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1677 ARGLEN and use TYPE_LENGTH directly.
1678 (mips_o64_push_dummy_call): Likewise.
1679 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1680 variable LENGTH and use TYPE_LENGTH directly.
1681 (s390_function_arg_float): Likewise.
1682 (s390_function_arg_integer): Likewise.
1683 (s390_push_dummy_call): Likewise.
1684 (s390_return_value_convention): Likewise.
1685 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1686 TYPE_LENGTH directly.
1687
1688 2012-09-17 Yao Qi <yao@codesourcery.com>
1689
1690 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1691 Update comment to add_setshow_integer_cmd.
1692 * cli/cli-setshow.c (do_set_command): Handle case
1693 'var_zuinteger_unlimited'.
1694 (do_show_command): Likewise.
1695 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1696 for command 'remotetimeout'.
1697 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1698 to var_integer.
1699 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1700 for command 'set listsize'.
1701
1702 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1703
1704 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1705 variable LEN.
1706
1707 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1708
1709 PR 14119
1710 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1711 (frame_pop): Drop also TAILCALL_FRAME frames.
1712 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1713
1714 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1715 Pedro Alves <palves@redhat.com>
1716
1717 PR 14548
1718 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1719 function start if we are already at function start. Both for
1720 reverse-next and for reverse-step into function without line number
1721 info.
1722
1723 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1724
1725 Code cleanup - rename 'inline' depth to 'artificial' depth.
1726 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1727 frame_id_artificial_p, extend the comment.
1728 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1729 * frame.c (fprint_frame_id): Rename at a user, change debug output
1730 text to "artificial=".
1731 (skip_inlined_frames): Rename to ...
1732 (skip_artificial_frames): ... here. Extend the comment.
1733 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1734 (frame_id_inlined_p): Rename to ...
1735 (frame_id_artificial_p): ... here. Rename at a user.
1736 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1737 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1738 at a user.
1739 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1740 Extend the comment.
1741 (frame_id_inlined_p): Rename to ...
1742 (frame_id_artificial_p): ... here.
1743 * inline-frame.c (inline_frame_this_id): Rename at a user.
1744
1745 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1746
1747 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1748 vector variables using vector_size syntax rather than array
1749 syntax.
1750
1751 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1752
1753 * valarith.c (value_concat): Replace unsafe ALLOCA with
1754 XMALLOC/XFREE.
1755
1756 2012-09-14 Pedro Alves <palves@redhat.com>
1757
1758 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1759
1760 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1761
1762 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1763 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1764 data-directory as appropriate.
1765
1766 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1767
1768 * printcmd.c (ui_printf): Eliminate single-use variable
1769 PARAM_LEN.
1770
1771 2012-09-14 Yao Qi <yao@codesourcery.com>
1772 Pedro Alves <palves@redhat.com>
1773
1774 * valops.c (value_assign): Move observer_notify_target_changed
1775 below to replace reinit_frame_cache.
1776
1777 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1778
1779 Refactor Python "gdb" module into a proper Python package, by
1780 introducing a new "_gdb" module for code implemented in C, and
1781 using reload/__import__ instead of exec.
1782 * python/lib/gdb/__init__.py: Import * from _gdb.
1783 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1784 prompt_hook, sys.argv): Moved from finish_python_initialization.
1785 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1786 (packages, auto_load_packages): New list and function replacing
1787 module_dict and auto-loading code, using __file__ instead of
1788 gdb.PYTHONDIR and reload/__import__ instead of exec.
1789 (GdbSetPythonDirectory): Replacing function of the same name
1790 from finish_python_initialization, using reload/__import__ instead
1791 of exec, as well as call auto_load_packages.
1792 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1793 gdb_python_module and not gdb_module.
1794 * python/python-internal.h (gdb_python_module): Declare.
1795 * python/python.c (gdb_python_module): New global.
1796 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1797 (_initialize_python): Rename gdb module to _gdb.
1798 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1799 (finish_python_initialization): Move Python code to
1800 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1801 __main__.
1802
1803 2012-09-13 Pedro Alves <palves@redhat.com>
1804
1805 * Makefile.in (COMMON_OBS): Add registry.o.
1806 * registry.c: New file.
1807 * registry.h (struct registry_container): Declare.
1808 (registry_data_callback): New typedef.
1809 (struct registry_data, struct registry_data_registration, struct
1810 registry_data_registry): New type.
1811 (register_data_with_cleanup, registry_alloc_data)
1812 (registry_callback_adaptor, registry_clear_data)
1813 (registry_container_free_data, registry_set_data, registry_data):
1814 Declare.
1815 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1816 the new common structures and functions.
1817 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1818 callback typedefs.
1819
1820 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1821
1822 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1823 there is an error inserting hardware breakpoints and use the
1824 error message from the target.
1825
1826 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1827 Catch this exception and print the error message contained within. Do not
1828 print the default hardware error breakpoint message in this case.
1829
1830 2012-09-12 Doug Evans <dje@google.com>
1831
1832 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1833 cu == NULL.
1834
1835 2012-09-11 Doug Evans <dje@google.com>
1836
1837 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1838 .gdb_index symbol attributes if there are none.
1839
1840 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1841
1842 * symtab.h (struct minimal_symbol) [has_size]: New field.
1843 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1844 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1845 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1846 minimal symbols if the symbol's size is actually known.
1847 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1848 of msymbol's size field. Add comment.
1849 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1850 SET_MSYMBOL_SIZE to set the minimal symbol size.
1851
1852 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1853
1854 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1855 minimal_symbol struct object, rather than setting some of its
1856 fields one by one.
1857
1858 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1859
1860 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1861 passed_a_ptr flag when displaying typedef types.
1862
1863 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1864
1865 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1866 the optimized_out flag is preserved.
1867
1868 2012-09-10 Anthony Green <green@moxielogic.com>
1869
1870 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1871 prologue changes in GCC.
1872
1873 2012-09-10 Keith Seitz <keiths@redhat.com>
1874
1875 PR gdb/13483
1876 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1877 (BOOL_CONVERSION_BADNESS): ... this.
1878 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1879 (rank_one_type): Allow all boolean conversions
1880 permitted by the standard.
1881
1882 2012-09-06 Tom Tromey <tromey@redhat.com>
1883
1884 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1885 Don't decref py_objfile.
1886
1887 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1888
1889 Do not enable -lmcheck by default when Python is enabled with
1890 threading support.
1891 * configure.ac: (python_has_threads) New variable, by testing
1892 if WITH_THREAD is defined in Python.h.
1893 Move --enable-lmcheck after --with-python.
1894 Do not enable -lmcheck by default if python_has_threads=yes.
1895 Warn if --enable-lmcheck and python_has_threads=yes.
1896 * configure: Regenerate.
1897
1898 2012-08-31 Yao Qi <yao@codesourcery.com>
1899
1900 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1901 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1902 Update some commands.
1903 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1904 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1905 to 1.
1906
1907 2012-08-31 Yao Qi <yao@codesourcery.com>
1908
1909 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1910
1911 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1912
1913 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1914
1915 2012-08-29 Doug Evans <dje@google.com>
1916
1917 * main.c (print_gdb_help): Remove reference to
1918 --use-deprecated-index-sections.
1919
1920 2012-08-28 Yao Qi <yao@codesourcery.com>
1921
1922 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1923 (init_cmds): Call add_setshow_uinteger_cmd for command
1924 'max-user-call-depth'.
1925 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1926 declaration of 'max_user_call_depth'.
1927 * frame.c (backtrace_limit): Add 'unsigned'.
1928 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1929 'limit'.
1930 * remote.c (remoteaddresssize): Add 'unsigned'.
1931 (remote_address_masked): Change local var 'address_size' to
1932 'unsigned'.
1933 (_initialize_remote): Call add_setshow_uinteger_cmd for
1934 'remoteaddresssize'.
1935 * top.c (history_size): Add 'unsigned'.
1936 (show_commands): Change local variables to 'unsigned'.
1937 (set_history_size_command): Don't check history_size is negative.
1938 Adjust the condition to call unstifle_history and set history_size
1939 to UNIT_MAX.
1940
1941 2012-08-28 Pedro Alves <palves@redhat.com>
1942
1943 PR gdb/14428
1944
1945 * infcmd.c (default_print_one_register_info): New, factored out
1946 from default_print_registers_info.
1947 (default_print_registers_info): Use it. Mark value unavailable if
1948 necessary.
1949 (registers_info): Print user registers with
1950 default_print_one_register_info.
1951
1952 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1953
1954 PR tui/14486
1955 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1956 is not NULL before referencing it.
1957
1958 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1959
1960 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1961 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1962 original PC for it.
1963
1964 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1965 Jan Kratochvil <jan.kratochvil@redhat.com>
1966
1967 * auto-load.c (auto_load_objfile_script): Rename to ...
1968 (auto_load_objfile_script_1): ... here, change variable realname to
1969 parameter realname, document it, add return value, add variable retval.
1970 (auto_load_objfile_script): New function.
1971
1972 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1973
1974 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1975 followed by a whitespace.
1976
1977 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1978
1979 PR gdb/14494.
1980 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1981 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1982 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1983 here.
1984
1985 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1986
1987 * memattr.c (create_mem_region): Fix memory region overlapping
1988 checking.
1989
1990 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1991
1992 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1993 with xmalloc/cleanup.
1994 * mt-tdep.c (mt_push_dummy_call): Likewise.
1995 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1996 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1997
1998 2012-08-24 Yao Qi <yao@codesourcery.com>
1999
2000 * jv-exp.y (push_expression_name): Add "." at the end of error
2001 message.
2002
2003 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2004
2005 Document how to return from "python-interactive" to GDB.
2006 * python/python.c (_initialize_python): Update documentation.
2007
2008 2012-08-23 Pedro Alves <palves@redhat.com>
2009
2010 * infrun.c (_initialize_infrun) <handle command help text>:
2011 Mention that multiple signals are supported.
2012
2013 2012-08-23 Pedro Alves <palves@redhat.com>
2014
2015 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2016 string.
2017
2018 2012-08-23 Yao Qi <yao@codesourcery.com>
2019
2020 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2021 (tfind_1): Don't call registers_changed, set_traceframe_num,
2022 and clear_traceframe_info.
2023 Call set_current_traceframe.
2024 (set_current_traceframe): call set_traceframe_num.
2025
2026 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2027
2028 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2029 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2030
2031 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2032
2033 Enable readline in Python in a GDB-specific way and block the
2034 standard Python readline module to prevent conflicts with GDB.
2035 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2036 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2037 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2038 * python/py-gdb-readline.c: New file.
2039 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2040 prototype.
2041 * python/python.c (_initialize_python): Call
2042 gdbpy_initialize_gdb_readline.
2043
2044 2012-08-22 Keith Seitz <keiths@redhat.com>
2045
2046 * defs.h: Include build-gnulib/config.h
2047
2048 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2049
2050 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2051 and blx pc.
2052
2053 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2054
2055 Add a new "python-interactive" command that starts a standard
2056 Python interactive prompt with "pi" as alias, and add "py" as
2057 an alias to "python".
2058 * NEWS: Mention the new commands.
2059 * python/python.c (eval_python_command): New function.
2060 (python_interactive_command): For "python-interactive" with
2061 arguments, call eval_python_command. For "python-interactive"
2062 without arguments, call PyRun_InteractiveLoop.
2063 (_initialize_python): Add "python-interactive" command with
2064 "pi" as alias, and add "py" as an alias to "python".
2065
2066 2012-08-22 Tom Tromey <tromey@redhat.com>
2067
2068 * defs.h (quit_flag): Don't declare.
2069 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2070 (QUIT): Use new functions.
2071 * event-top.c (command_handler): Use clear_quit_flag.
2072 (handle_sigint): Use set_quit_flag.
2073 (async_request_quit): Use check_quit_flag. Don't check
2074 immediate_quit.
2075 * exceptions.c (throw_exception): Use clear_quit_flag.
2076 * main.c (captured_main): Use clear_quit_flag.
2077 * python/python.c (clear_quit_flag, set_quit_flag)
2078 (check_quit_flag): New functions.
2079 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2080 clear_quit_flag.
2081 * remote.c (remote_wait_as): Use check_quit_flag,
2082 clear_quit_flag.
2083 (remote_start_remote): Call QUIT.
2084 * symfile.c (load_progress): Use check_quit_flag.
2085 * top.c (command_loop): Use clear_quit_flag.
2086 (command_line_input): Call QUIT.
2087 * utils.c (quit_flag): Conditionally define.
2088 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2089 functions.
2090 (prompt_for_continue): Call QUIT. Use quit, not
2091 async_request_quit.
2092 * remote-mips.c (mips_expect_timeout): Call QUIT.
2093 * monitor.c (monitor_expect): Call QUIT.
2094
2095 2012-08-22 Tom Tromey <tromey@redhat.com>
2096
2097 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2098 (async_init_signals): Update.
2099 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2100 (SIGWINCH_HANDLER_BODY): Remove.
2101
2102 2012-08-22 Tom Tromey <tromey@redhat.com>
2103
2104 * jit.c (jit_object_close_impl): Don't malloc the objfile
2105 name.
2106 * objfiles.c (allocate_objfile): Don't malloc the objfile
2107 name.
2108 (free_objfile): Don't free the objfile name.
2109 * objfiles.h (struct objfile) <name>: Update comment.
2110 * symfile.c (reread_symbols): Fix reference counting. Don't
2111 malloc objfile name.
2112
2113 2012-08-22 Tom Tromey <tromey@redhat.com>
2114
2115 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2116 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2117 (symfile_bfd_open): Likewise.
2118 (generic_load): Likewise.
2119 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2120 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2121 gdb_bfd_open.
2122 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2123 Use gdb_bfd_open.
2124 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2125 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2126 (pmon_load_fast): Likewise.
2127 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2128 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2129 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2130 (macho_check_dsym): Likewise.
2131 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2132 (m32r_upload_command): Likewise.
2133 * gdb_bfd.h (gdb_bfd_cache): Declare.
2134 * gdb_bfd.c (struct gdb_bfd_data): New.
2135 (gdb_bfd_cache): New global.
2136 (struct gdb_bfd_cache_search): New.
2137 (hash_bfd): New function.
2138 (eq_bfd): Likewise.
2139 (gdb_bfd_open): Likewise.
2140 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2141 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2142 gdb_bfd_data.
2143 * exec.c (exec_file_attach): Use gdb_bfd_open.
2144 * dsrec.c (load_srec): Use gdb_bfd_open.
2145
2146 2012-08-22 Tom Tromey <tromey@redhat.com>
2147
2148 * dwarf2read.c (macro_start_file): Update.
2149 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2150 (free_objfile_per_bfd_storage): Destroy macro_cache.
2151 (allocate_objfile, free_objfile): Update.
2152 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2153 New field.
2154 (struct objfile) <macro_cache>: Remove.
2155 * symfile.c (reread_symbols): Update.
2156 * symmisc.c (print_symbol_bcache_statistics): Update.
2157 (print_objfile_statistics): Update.
2158
2159 2012-08-22 Tom Tromey <tromey@redhat.com>
2160
2161 * elfread.c (elf_symtab_read): Update.
2162 * objfiles.c (objfiles_bfd_data): New global.
2163 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2164 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2165 (allocate_objfile, free_objfile): Update.
2166 (_initialize_objfiles): Initialize objfiles_bfd_data.
2167 * objfiles.h (struct objfile_per_bfd_storage): New.
2168 (struct objfile) <per_bfd>: New field.
2169 <filename_cache>: Remove.
2170 (set_objfile_per_bfd): Declare.
2171 * symfile.c (reread_symbols): Update. Call
2172 set_objfile_per_bfd.
2173 (allocate_symtab): Update.
2174 * symmisc.c (print_symbol_bcache_statistics): Update.
2175 (print_objfile_statistics): Print the size of the BFD obstack.
2176
2177 2012-08-22 Tom Tromey <tromey@redhat.com>
2178
2179 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2180 * gdb_bfd.c: Use DEFINE_REGISTRY.
2181 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2182 (gdb_bfd_ref): Call bfd_alloc_data.
2183 (gdb_bfd_unref): Call bfd_free_data.
2184
2185 2012-08-22 Tom Tromey <tromey@redhat.com>
2186
2187 * registry.h (struct registry_fields): New.
2188 (REGISTRY_FIELDS): Redefine.
2189 (REGISTRY_ACCESS_FIELD): New macro.
2190 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2191 functions.
2192
2193 2012-08-22 Tom Tromey <tromey@redhat.com>
2194
2195 * auto-load.c (_initialize_auto_load): Update.
2196 * solib-svr4.c (_initialize_svr4_solib): Update
2197 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2198 * solib-darwin.c (_initialize_darwin_solib): Update.
2199 * registry.h: New file.
2200 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2201 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2202 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2203 (register_program_space_data_with_cleanup)
2204 (register_program_space_data, program_space_alloc_data)
2205 (clear_program_space_data, set_program_space_data)
2206 (program_space_data): Don't declare.
2207 * progspace.c: Use DEFINE_REGISTRY.
2208 (struct program_space_data, struct
2209 program_space_data_registration, struct
2210 program_space_data_registry, program_space_data_registry)
2211 (register_program_space_data_with_cleanup)
2212 (register_program_space_data, program_space_alloc_data)
2213 (program_space_free_data, clear_program_space_data)
2214 (set_program_space_data, program_space_data): Remove.
2215 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2216 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2217 (register_objfile_data_with_cleanup, register_objfile_data)
2218 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2219 declare.
2220 * objfiles.c: Use DEFINE_REGISTRY.
2221 (struct objfile_data, struct objfile_data_registration, struct
2222 objfile_data_registry, objfile_data_registry)
2223 (register_objfile_data_with_cleanup, register_objfile_data)
2224 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2225 (set_objfile_data, objfile_data): Remove.
2226 (_initialize_objfiles): Update.
2227 * jit.c (_initialize_jit): Update.
2228 * inflow.c (_initialize_inflow): Update.
2229 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2230 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2231 (register_inferior_data_with_cleanup, register_inferior_data)
2232 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2233 declare.
2234 * inferior.c: Use DEFINE_REGISTRY.
2235 (struct inferior_data, struct inferior_data_registration, struct
2236 inferior_data_registry, inferior_data_registry)
2237 (register_inferior_data_with_cleanup, register_inferior_data)
2238 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2239 (set_inferior_data, inferior_data): Remove.
2240 * auxv.c (_initialize_auxv): Update.
2241 * ada-lang.c (_initialize_ada_language): Update.
2242 * breakpoint.c (_initialize_breakpoint): Update.
2243 * i386-nat.c (i386_use_watchpoints): Update.
2244
2245 2012-08-22 Tom Tromey <tromey@redhat.com>
2246
2247 * exec.c (exec_close, exec_file_attach): Update.
2248 (add_to_section_table): Initialize 'key' field.
2249 (add_target_sections, remove_target_sections): Add 'key' argument.
2250 * exec.h (add_target_sections, remove_target_sections): Add
2251 'key' argument.
2252 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2253 (reload_shared_libraries_1): Update.
2254 * target.h (struct target_section) <key>: New field.
2255
2256 2012-08-22 Tom Tromey <tromey@redhat.com>
2257
2258 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2259
2260 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2261
2262 * symfile.c (allocate_symtab): Use host_address_to_string
2263 function instead of cast of pointer to long which is not
2264 compatible with x86_64-w64-mingw32 build.
2265
2266 2012-08-19 Andrew Pinski <apinski@cavium.com>
2267
2268 * mips-tdep.c (is_octeon): New function.
2269 (is_octeon_bbit_op): New function.
2270 (mips32_next_pc): Handle Octeon's bbit instructions.
2271 (mips32_instruction_has_delay_slot): Likewise.
2272
2273 2012-08-19 Andrew Pinski <apinski@cavium.com>
2274
2275 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2276 before the function.
2277
2278 2012-08-19 Andrew Pinski <apinski@cavium.com>
2279
2280 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2281
2282 2012-08-19 Keith Seitz <keiths@redhat.com>
2283
2284 PR c++/14365
2285 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2286 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2287
2288 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2289
2290 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2291 The typo broke "make TAGS".
2292
2293 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2294
2295 GDB 7.5 released.
2296
2297 2012-08-17 Keith Seitz <keiths@redhat.com>
2298
2299 PR c++/13356
2300 * gdbtypes.c (strict_type_checking): New variable.
2301 (show_strict_type_checking): New function.
2302 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2303 if strict type checking is disabled.
2304 (_initialize_gdbtypes): Add "check type" subcommand.
2305 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2306
2307 2012-08-17 Keith Seitz <keiths@redhat.com>
2308
2309 * language.h (type_mode): Remove.
2310 (type_check): Remove.
2311 (struct language_defn): Remove la_type_check.
2312 (STRICT_TYPE): Remove unused macro.
2313 (type_error): Remove.
2314 * language.c (set_type_range_case): Renamed to ...
2315 (set_range_case): ... this. Update all callers.
2316 Remove type_mode/type_check.
2317 (type_mode): Remove.
2318 (type_check): Remove.
2319 (show_type_command): Remove.
2320 (set_type_command): Remove.
2321 (language_info): Remove type checking output.
2322 (type_error): Remove unused function.
2323 (range_error): Update comment.
2324 (unknown_language_defn): Remove la_type_check.
2325 (auto_language_defn): Likewise.
2326 (local_language_defn): Likewise.
2327 (_initialize_language): Remove "check type" subcommand.
2328 * ada-lang.c (ada_language_defn): Remove la_type_check.
2329 * c-lang.c (c_language_defn): Likewise.
2330 (cplus_language_defn): Likewise.
2331 (asm_language_defn): Likewise.
2332 (minimal_language_defn): Likewise.
2333 * d-lang.c (d_language_defn): Likewise.
2334 * f-lang.c (f_language_defn): Likewise.
2335 * go-lang.c (go_language_defn): Likewise.
2336 * jv-lang.c (java_language_defn): Likewise.
2337 * m2-lang.c (m2_language_defn): Likewise.
2338 * objc-lang.c (objc_language_defn): Likewise.
2339 * opencl-lang.c (opencl_language_defn): Likewise.
2340 * p-lang.c (pascal_language_defn): Likewise.
2341
2342 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2343
2344 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2345
2346 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2347
2348 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2349 New function.
2350 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2351 using the regache. Use ia64_hpux_get_register_from_save_state_t
2352 to access the bsp and bspstore registers if not.
2353
2354 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2355
2356 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2357 * breakpoint.c (detach_breakpoints): Change pid parameter into
2358 a ptid. Adjust code accordingly.
2359 * infrun.c (handle_inferior_event): Delete variable child_pid.
2360 Update call to detach_breakpoints to pass the child ptid for
2361 fork events.
2362 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2363 assert that inferior_ptid's lwp is zero.
2364 (linux_handle_extended_wait): Update call to detach_breakpoints.
2365 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2366 detach_breakpoints.
2367
2368 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2369
2370 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2371 parent, only call detach_breakpoints if tts.tts_event ==
2372 TTEVT_VFORK.
2373
2374 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2375
2376 * dwarf2-frame.c (dwarf2_frame_cache): Use
2377 get_frame_address_in_block instead of get_frame_pc as
2378 the bound for executing the frame's FDE.
2379
2380 2012-08-16 Yao Qi <yao@codesourcery.com>
2381
2382 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2383 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2384 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2385 (c_type_print_varspec_suffix): Likewise.
2386 * eval.c (evaluate_subexp_standard): Likewise.
2387 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2388 (f_type_print_varspec_suffix): Likewise.
2389 * gdbtypes.c (is_scalar_type): Likewise.
2390 (recursive_dump_type): Likewise.
2391 * infcall.c (value_arg_coerce): Likewise.
2392 * m2-valprint.c (m2_val_print): Likewise.
2393 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2394 (pascal_type_print_varspec_suffix): Likewise.
2395 (pascal_type_print_base): Likewise.
2396 * p-valprint.c (pascal_val_print): Likewise.
2397 (pascal_val_print): Likewise.
2398 * valops.c (value_slice): Likewise.
2399 * valprint.c (scalar_type_p): Likewise.
2400 * valarith.c (value_bitstring_subscript): Remove.
2401 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2402 Remove comment on TYPE_CODE_BITSTRING.
2403
2404 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2405 TYPE_CODE_BITSTRING.
2406
2407 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2408 slot 0.
2409
2410 2012-08-16 Yao Qi <yao@codesourcery.com>
2411
2412 * tracepoint.c (trace_find_none_command): Remove.
2413 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2414
2415 2012-08-16 Yao Qi <yao@codesourcery.com>
2416
2417 * remote.c (handle_notification): Remove parameter 'length'.
2418 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2419
2420 2012-08-15 Keith Seitz <keiths@redhat.com>
2421
2422 * gdbtypes.c (opaque_type_resolution): Make static.
2423 Add missing comment.
2424 (overload_debug): Add missing comment.
2425 (show_opaque_type_resolution): Likewise.
2426 (show_overload_debug): Likewise.
2427 (print_bit_vector): Remove unnecessary forward declaration.
2428 (print_arg_types): Likewise.
2429 (dump_fn_fieldlists): Likewise.
2430 (print_cplus_stuff): Likewise.
2431
2432 2012-08-15 Tom Tromey <tromey@redhat.com>
2433
2434 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2435 (gdb_bfd_ref): Initialize new field.
2436 (gdb_bfd_unref): Unref the archive BFD.
2437 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2438 parent archive.
2439
2440 2012-08-15 Tom Tromey <tromey@redhat.com>
2441
2442 PR python/14387:
2443 * python/py-bpevent.c (create_breakpoint_event_object): Update
2444 comment.
2445 * python/py-event.c (evpy_add_attribute): Update comment.
2446 * python/py-exitedevent.c (create_exited_event_object): Fix
2447 reference counting and error handling.
2448 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2449 Fix reference counting.
2450 * python/py-signalevent.c (create_signal_event_object): Fix
2451 reference counting and error handling.
2452 * python/py-stopevent.c (emit_stop_event): Fix reference
2453 counting.
2454 * python/py-threadevent.c (get_event_thread): Return a
2455 borrowed reference.
2456 * python/py-type.c (convert_field): Fix reference counting.
2457
2458 2012-08-15 Tom Tromey <tromey@redhat.com>
2459
2460 * dwarf2read.c (dwarf_decode_macro_bytes)
2461 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2462 as hash key.
2463
2464 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2465
2466 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2467 stepi, nexti, finish, next, step, jump, and continue commands.
2468 * infrun.c (_initialize_infrun): Update help text for the handle
2469 command.
2470
2471 2012-08-14 Doug Evans <dje@google.com>
2472
2473 * gdbtypes.c (struct extra): Delete, unused.
2474
2475 * gdbtypes.c: Whitespace cleanup.
2476 (address_space_name_to_int): Remove "extern" from definition.
2477 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2478
2479 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2480 TYPE_POINTER_TYPE (type).
2481
2482 2012-08-14 Gary Benson <gbenson@redhat.com>
2483
2484 * solib-svr4.c (svr4_free_library_list): Use free_so.
2485
2486 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2487
2488 * .gitignore: Add go-exp.c.
2489
2490 2012-08-13 Doug Evans <dje@google.com>
2491
2492 * value.c (show_convenience): Tweak comment.
2493 (_initialize_values): Mention convenience functions in the help text
2494 for "show convenience".
2495
2496 2012-08-13 Yao Qi <yao@codesourcery.com>
2497
2498 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2499 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2500 TERNOP_SLICE_COUNT.
2501 * eval.c (evaluate_subexp_standard): Likewise.
2502 * expprint.c (print_subexp_standard): Likewise.
2503 (dump_subexp_body_standard): Likewise.
2504 * parse.c (operator_length_standard): Likewise.
2505
2506 2012-08-13 Yao Qi <yao@codesourcery.com>
2507
2508 * std-operator.def: Remove OP_BITSTRING.
2509 * breakpoint.c (watchpoint_exp_is_const): Update.
2510 * eval.c (evaluate_subexp_standard): Remove handling to
2511 OP_BITSTRING.
2512 * expprint.c (print_subexp_standard): Likewise.
2513 (dump_subexp_body_standard): Likewise.
2514 * parse.c (operator_length_standard): Likewise.
2515 * valops.c (value_bitstring): Remove.
2516 * value.h: Remove the declaration of 'value_bitstring'.
2517
2518 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2519
2520 * linespec.c (find_methods): Remove unused variables `i1' and
2521 `name_len'.
2522 (decode_line_full): Likewise for `arg_start'.
2523
2524 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2525
2526 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2527 (zlib_decompress_section): Likewise for `section_data'.
2528 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2529
2530 2012-08-10 Doug Evans <dje@google.com>
2531
2532 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2533 * NEWS: Document them.
2534 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2535 function/strfns.py.
2536 * python/py-type.c (typy_array_1): New function.
2537 (typy_array): Call it.
2538 (typy_vector): New function.
2539 (type_object_methods): Add "vector".
2540 * python/lib/gdb/function/__init__.py: New file.
2541 * python/lib/gdb/function/strfns.py: New file.
2542
2543 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2544
2545 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2546 for TYPE_FIELD_BITPOS.
2547 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2548
2549 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2550
2551 PR cli/10436:
2552 * common/vec.h (VEC_merge): Define.
2553 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2554 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2555 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2556 * completer.c: Include gdb_signals.h.
2557 (signal_completer): Define.
2558 * completer.h (signal_completer): Add prototype.
2559 * infcmd.c (_initialize_infcmd): Assign the command
2560 completer for "signal" to handle_completer.
2561 * infrun.c: Include completer.h.
2562 (handle_completer): Define.
2563 (_initialize_infrun): Declare a new local variable c. Store the
2564 result of add_com("handle") to it. Assign the command
2565 completer for "handle" to handle_completer.
2566
2567 2012-08-09 Yao Qi <yao@codesourcery.com>
2568
2569 * cli/cli-decode.c (set_cmd_prefix): New.
2570 (lookup_cmd_for_prefixlist): New.
2571 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2572 of each cmd_list_element in *prefixlist.
2573 (add_setshow_cmd_full): set_cmd_prefix.
2574 (add_alias_cmd): Likewise.
2575 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2576 Declare 'auto_boolean_enums'.
2577 * cli/cli-setshow.c: Include "observer.h".
2578 (notify_command_param_changed_p): New.
2579 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2580 Remove 'static'.
2581 (do_setshow_command): Split it to ...
2582 (do_set_command, do_show_command): ... them. New.
2583 (do_set_command): Call observer_notify_command_param_changed if
2584 notify_command_param_changed_p returns true.
2585 (cmd_show_list): Caller update.
2586 * auto-load.c (set_auto_load_cmd): Likewise.
2587 * remote.c (show_remote_cmd): Likewise.
2588 * cli/cli-setshow.h: Update declarations.
2589 * top.c (execute_command): Call do_set_command and do_show_command.
2590
2591 * NEWS: Mention new MI notification.
2592 * mi/mi-interp.c: Declare mi_command_param_changed.
2593 (mi_interpreter_init): Attach mi_command_param_changed to
2594 observer command_param_changed.
2595 (mi_command_param_changed): New.
2596 Remove mi_suppress_breakpoint_notifications.
2597 Define global variable mi_suppress_notification.
2598 (mi_breakpoint_created): Update.
2599 (mi_breakpoint_deleted): Likewise.
2600 (mi_breakpoint_modified): Likewise.
2601 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2602 'gdb-set' and set mi_suppress_notification.
2603 * mi/mi-main.h: (mi_suppress_notification): New struct.
2604
2605 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2606 Jan Kratochvil <jan.kratochvil@redhat.com>
2607
2608 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2609
2610 2012-08-09 Yao Qi <yao@codesourcery.com>
2611
2612 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2613 (skiplist): Move it to skip.c.
2614 (init_cmd_lists): Remove code setting enablebreaklist and
2615 skiplist to NULL.
2616 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2617 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2618 skiplist.
2619 * gdbcmd.h: Likewise.
2620 * skip.c (_initialize_step_skip): Move 'skiplist' from
2621 cli/cli-cmds.c.
2622
2623 2012-08-09 Yao Qi <yao@codesourcery.com>
2624
2625 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2626 * gnu-nat.c, symfile.c: Likewise.
2627
2628 2012-08-08 Aaron Gamble <agamble@google.com>
2629
2630 * utils.c (prompt_for_continue_wait_time): New static global.
2631 (make_command_stats_cleanup): Initialize it.
2632 (report_command_stats): Subtract time waiting for user.
2633 (prompt_for_continue): Track time waiting for user.
2634 (defaulted_query): Track time waiting for user.
2635
2636 2012-08-08 Doug Evans <dje@google.com>
2637
2638 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2639 UNOP_MEMVAL_TYPE.
2640 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2641 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2642 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2643 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2644 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2645 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2646 elt.
2647 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2648 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2649 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2650 (dump_prefix_expression): Handle OP_TYPE.
2651
2652 2012-08-08 Keith Seitz <keiths@redhat.com>
2653
2654 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2655 addr_start.
2656
2657 2012-08-08 Doug Evans <dje@google.com>
2658
2659 * linux-thread-db.c: #include "gdb_vecs.h".
2660 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2661 updated.
2662 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2663 (thread_db_load_search): Use a vector to iterate over path elements.
2664 Handle text appearing after "$pdir".
2665
2666 * gdb_string.h: Moved to ...
2667 * common/gdb_string.h: ... here.
2668 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2669 gdb_string.h and gdb_assert.h.
2670
2671 2012-08-08 Yao Qi <yao@codesourcery.com>
2672
2673 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2674 (tic6x_value_to_register): Likewise.
2675 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2676 and set_gdbarch_value_to_register.
2677
2678 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2679 Jean-Marc Saffroy <saffroy@gmail.com>
2680
2681 PR 11804
2682 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2683 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2684 * gcore.c (gcore_create_callback): New function comment. Add modified
2685 parameter. Only write modified regions. Set SEC_READONLY exactly
2686 according to MODIFIED.
2687 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2688 the passed modified value to FUNC.
2689 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2690 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2691 first. New variables modified and has_anonymous. Parse the lines of
2692 smaps file. Add the passed MODIFIED value to FUNC.
2693 * procfs.c (find_memory_regions_callback): Add the passed modified
2694 value.
2695
2696 2012-08-06 Tom Tromey <tromey@redhat.com>
2697
2698 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2699 (dwarf2_frame_cache): Use it.
2700 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2701 cache initialization constraint.
2702
2703 2012-08-06 Tom Tromey <tromey@redhat.com>
2704
2705 PR python/14386:
2706 * varobj.c (update_dynamic_varobj_children): Don't call
2707 PyIter_Check.
2708
2709 2012-08-06 Tom Tromey <tromey@redhat.com>
2710
2711 PR cli/14392:
2712 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2713
2714 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2715
2716 * NEWS: New entry for 'cd' default parameters.
2717 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2718
2719 2012-08-03 Tom Tromey <tromey@redhat.com>
2720
2721 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2722 return.
2723
2724 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2725
2726 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2727 to attempting lseek/write.
2728 (inf_child_fileio_pread): Likewise for pread.
2729
2730 2012-08-02 Yao Qi <yao@codesourcery.com>
2731
2732 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2733 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2734 add_setshow_zinteger_cmd.
2735 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2736 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2737 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2738 instead of add_setshow_zinteger_cmd.
2739 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2740 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2741 instead of add_setshow_zinteger_cmd.
2742 * frame.c (frame_debug): Add 'unsigned'.
2743 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2744 add_setshow_zinteger_cmd.
2745 * frame.h: Update the declaration of 'frame_debug'.
2746 * gdbtypes.c (overload_debug): Add 'unsigned'.
2747 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2748 add_setshow_zinteger_cmd.
2749 * inferior.h: Update declaration of 'debug_infrun'.
2750 * infrun.c (debug_infrun): Add 'unsigned'.
2751 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2752 add_setshow_zinteger_cmd.
2753 * jit.c (jit_debug): Add 'unsigned'.
2754 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2755 add_setshow_zinteger_cmd.
2756 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2757 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2758 instead of add_setshow_zinteger_cmd.
2759 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2760 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2761 add_setshow_zinteger_cmd.
2762 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2763 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2764 instead of add_setshow_zinteger_cmd.
2765 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2766 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2767 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2768 intead of add_setshow_zinteger_cmd.
2769 * mips-tdep.c (mips_debug): Add 'unsigned'.
2770 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2771 instead of add_setshow_zinteger_cmd.
2772 * monitor.c (monitor_debug): Add 'unsigned'.
2773 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2774 add_setshow_zinteger_cmd.
2775 * observer.c (observer_debug): Add 'unsigned'.
2776 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2777 add_setshow_zinteger_cmd.
2778 * parse.c (expressiondebug): Add 'unsigned'.
2779 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2780 add_setshow_zinteger_cmd.
2781 * record.c (record_debug): Add 'unsigned'.
2782 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2783 add_setshow_zinteger_cmd.
2784 * record.h: Update the declaration of 'record_debug'.
2785 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2786 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2787 add_setshow_zinteger_cmd.
2788 * serial.c (global_serial_debug_p): Add 'unsigned'.
2789 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2790 add_setshow_zinteger_cmd.
2791 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2792 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2793 add_setshow_zinteger_cmd.
2794 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2795 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2796 add_setshow_zinteger_cmd.
2797 * target.c (targetdebug): Add 'unsigned'.
2798 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2799 add_setshow_zinteger_cmd.
2800 * valops.c (overload_debug): Add 'unsigned'.
2801 * varobj.c (varobjdebug): Add 'unsigned'.
2802 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2803 add_setshow_zinteger_cmd.
2804 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2805 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2806 instead of add_setshow_zinteger_cmd.
2807
2808 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2809 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2810 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2811 instead of add_setshow_zinteger_cmd.
2812 * gdbarch.c, gdbarch.h: Re-generated.
2813
2814 2012-08-02 Yao Qi <yao@codesourcery.com>
2815
2816 * nto-tdep.c: Don't include cli/cli-decode.h and
2817 cli/cli-cmds.h.
2818 (_initialize_nto_tdep): Remove.
2819 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2820 Remove field.
2821 Remove macro nto_internal_debugging.
2822
2823 2012-08-01 Richard Henderson <rth@redhat.com>
2824
2825 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2826 (mep-*-*) [gdb_target_obs]: Likewise.
2827
2828 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2829
2830 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2831 linux_get_siginfo_type.
2832
2833 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2836 AT_ENTRY_POINT.
2837 (call_function_by_hand) <ON_STACK>: Call write_memory with
2838 gdbarch_breakpoint_from_pc, if possible.
2839 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2840 here.
2841
2842 2012-07-31 Yao Qi <yao@codesourcery.com>
2843
2844 * tracepoint.c: Add 'static' for some variables.
2845
2846 2012-07-31 Yao Qi <yao@codesourcery.com>
2847
2848 * go32-nat.c: Declare _initialize_go32_nat.
2849 * ser-go32.c: Declare _initialize_ser_dos.
2850 * top.c (do_chdir_cleanup): Add 'static'.
2851
2852 2012-07-30 Keith Seitz <keiths@redhat.com>
2853
2854 * linespec.c (linespec_lex_number): A number followed
2855 by quotes is a valid number, too.
2856
2857 2012-07-30 Tom Tromey <tromey@redhat.com>
2858
2859 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2860
2861 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2862
2863 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2864 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2865
2866 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2867
2868 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2869 invalid or reevaluated to prevent prevent references to possibly
2870 delete'd type objects being left in the varobj.
2871
2872 2012-07-27 Tom Tromey <tromey@redhat.com>
2873 Jan Kratochvil <jan.kratochvil@redhat.com>
2874
2875 * copying.awk: Print buffer-read-only and vi ro markers.
2876 * copying.c: Rebuild.
2877 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2878 * gdbarch.c, gdbarch.h: Rebuild.
2879 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2880 buffer-read-only and vi ro markers.
2881 * features/arm-with-iwmmxt.c: Rebuild.
2882 * features/arm-with-m-fpa-layout.c: Rebuild.
2883 * features/arm-with-m-vfp-d16.c: Rebuild.
2884 * features/arm-with-m.c: Rebuild.
2885 * features/arm-with-neon.c: Rebuild.
2886 * features/arm-with-vfpv2.c: Rebuild.
2887 * features/arm-with-vfpv3.c: Rebuild.
2888 * features/i386/amd64-avx-linux.c: Rebuild.
2889 * features/i386/amd64-avx.c: Rebuild.
2890 * features/i386/amd64-linux.c: Rebuild.
2891 * features/i386/amd64.c: Rebuild.
2892 * features/i386/i386-avx-linux.c: Rebuild.
2893 * features/i386/i386-avx.c: Rebuild.
2894 * features/i386/i386-linux.c: Rebuild.
2895 * features/i386/i386-mmx-linux.c: Rebuild.
2896 * features/i386/i386-mmx.c: Rebuild.
2897 * features/i386/i386.c: Rebuild.
2898 * features/i386/x32-avx-linux.c: Rebuild.
2899 * features/i386/x32-avx.c: Rebuild.
2900 * features/i386/x32-linux.c: Rebuild.
2901 * features/i386/x32.c: Rebuild.
2902 * features/mips-dsp-linux.c: Rebuild.
2903 * features/mips-linux.c: Rebuild.
2904 * features/mips64-dsp-linux.c: Rebuild.
2905 * features/mips64-linux.c: Rebuild.
2906 * features/rs6000/powerpc-32.c: Rebuild.
2907 * features/rs6000/powerpc-32l.c: Rebuild.
2908 * features/rs6000/powerpc-403.c: Rebuild.
2909 * features/rs6000/powerpc-403gc.c: Rebuild.
2910 * features/rs6000/powerpc-405.c: Rebuild.
2911 * features/rs6000/powerpc-505.c: Rebuild.
2912 * features/rs6000/powerpc-601.c: Rebuild.
2913 * features/rs6000/powerpc-602.c: Rebuild.
2914 * features/rs6000/powerpc-603.c: Rebuild.
2915 * features/rs6000/powerpc-604.c: Rebuild.
2916 * features/rs6000/powerpc-64.c: Rebuild.
2917 * features/rs6000/powerpc-64l.c: Rebuild.
2918 * features/rs6000/powerpc-7400.c: Rebuild.
2919 * features/rs6000/powerpc-750.c: Rebuild.
2920 * features/rs6000/powerpc-860.c: Rebuild.
2921 * features/rs6000/powerpc-altivec32.c: Rebuild.
2922 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2923 * features/rs6000/powerpc-altivec64.c: Rebuild.
2924 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2925 * features/rs6000/powerpc-cell32l.c: Rebuild.
2926 * features/rs6000/powerpc-cell64l.c: Rebuild.
2927 * features/rs6000/powerpc-e500.c: Rebuild.
2928 * features/rs6000/powerpc-e500l.c: Rebuild.
2929 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2930 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2931 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2932 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2933 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2934 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2935 * features/rs6000/powerpc-vsx32.c: Rebuild.
2936 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2937 * features/rs6000/powerpc-vsx64.c: Rebuild.
2938 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2939 * features/rs6000/rs6000.c: Rebuild.
2940 * features/s390-linux32.c: Rebuild.
2941 * features/s390-linux32v1.c: Rebuild.
2942 * features/s390-linux32v2.c: Rebuild.
2943 * features/s390-linux64.c: Rebuild.
2944 * features/s390-linux64v1.c: Rebuild.
2945 * features/s390-linux64v2.c: Rebuild.
2946 * features/s390x-linux64.c: Rebuild.
2947 * features/s390x-linux64v1.c: Rebuild.
2948 * features/s390x-linux64v2.c: Rebuild.
2949 * features/tic6x-c62x-linux.c: Rebuild.
2950 * features/tic6x-c62x.c: Rebuild.
2951 * features/tic6x-c64x-linux.c: Rebuild.
2952 * features/tic6x-c64x.c: Rebuild.
2953 * features/tic6x-c64xp-linux.c: Rebuild.
2954 * features/tic6x-c64xp.c: Rebuild.
2955
2956 2012-07-27 Tom Tromey <tromey@redhat.com>
2957
2958 * c-exp.y (classify_name): Avoid assignment in condition.
2959
2960 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2961
2962 * amd64-windows-tdep.c: Include "frame.h".
2963 (amd64_windows_skip_trampoline_code): New function.
2964 (amd64_windows_init_abi): Add trampoline registration.
2965
2966 2012-07-27 Yao Qi <yao@codesourcery.com>
2967
2968 * tracepoint.c (cur_traceframe_number): Remove.
2969 (set_tfile_traceframe): Remove.
2970 (tfile_trace_find, tfile_fetch_registers): Update callers.
2971 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2972 (tfile_open, tfile_trace_find): Likewise.
2973
2974 2012-07-27 Yao Qi <yao@codesourcery.com>
2975
2976 * thread.c (switch_to_thread): Don't call registers_changed.
2977
2978 2012-07-26 Tom Tromey <tromey@redhat.com>
2979
2980 * Makefile.in (SFILES): Remove objc-exp.y.
2981 (YYFILES): Remove objc-exp.c.
2982 (YYOBJ): Remove objc-exp.o.
2983 (local-maintainer-clean): Don't mention objc-exp.c.
2984 * c-exp.y: Include objc-lang.h.
2985 (%union) <class>: New field.
2986 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2987 (exp): Clone subscript production for OBJC_LBRAC. Add various
2988 Objective C productions.
2989 (msglist, msgarglist, msgarg): New productions.
2990 (array_mod, func_mod, operator): Clone productions for
2991 OBJC_LBRAC.
2992 (parse_string_or_char): Handle '@' strings.
2993 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2994 (classify_name): Check la_name_of_this. Recognize ObjC class
2995 names.
2996 * objc-exp.y: Remove.
2997 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2998 * objc-lang.h (objc_parse, objc_error): Don't declare.
2999
3000 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3001
3002 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3003
3004 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3007 and decrement.
3008
3009 2012-07-26 Tom Tromey <tromey@redhat.com>
3010
3011 * copying.c: Rebuild.
3012 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3013 'no_class'.
3014
3015 2012-07-26 Tom Tromey <tromey@redhat.com>
3016
3017 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3018 immediate_quit.
3019 (print_objfile_statistics): Likewise.
3020 (maintenance_print_symbols): Likewise.
3021 (maintenance_print_msymbols): Likewise.
3022 (maintenance_print_objfiles): Likewise.
3023 * psymtab.c (print_partial_symbols): Call QUIT.
3024 (maintenance_print_psymbols): Likewise. Don't modify
3025 immediate_quit.
3026 * copying.c (show_copying_command): Don't modify immediate_quit.
3027 (show_warranty_command): Likewise.
3028 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3029
3030 2012-07-26 Keith Seitz <keiths@redhat.com>
3031
3032 * linespec.c (linespec_lexer_lex_number): The input
3033 is also a valid number if the next character is a comma
3034 or colon.
3035
3036 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3037
3038 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3039 configure options.
3040
3041 2012-07-26 Tristan Gingold <gingold@adacore.com>
3042
3043 * machoread.c: Include gdb_bfd.h.
3044
3045 2012-07-26 Tristan Gingold <gingold@adacore.com>
3046
3047 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3048 offset.
3049
3050 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3051
3052 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3053 SIZE to size_t.
3054 (dwarf2_evaluate_loc_desc): Likewise.
3055 (dwarf2_loc_desc_needs_frame): Likewise.
3056 (locexpr_describe_location_1): Likewise.
3057 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3058 size_t.
3059 (struct dwarf2_loclist_baton): Likewise.
3060 * dwarf2read.c (struct dwarf_block): Likewise.
3061 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3062 (decode_locdesc): Expand SIZE and I to size_t.
3063
3064 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3065
3066 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3067
3068 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3069
3070 * doublest.c (convert_doublest_to_floatformat): If the exponent
3071 is too small, treat the value as zero. If the exponent is too
3072 large, treat the value as infinity.
3073
3074 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3075
3076 * configure.ac: Add --enable-lmcheck configure option.
3077 * configure: Regenerate.
3078
3079 2012-07-25 Tom Tromey <tromey@redhat.com>
3080
3081 * NEWS: Mention maint info bfds.
3082 * gdb_bfd.c (all_bfds): New global.
3083 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3084 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3085 New functions.
3086
3087 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3088
3089 * configure.tgt: Add v850*-*-rtems*.
3090
3091 2012-07-25 Tom Tromey <tromey@redhat.com>
3092
3093 * macrotab.c (macro_bcache_str): Remove cast.
3094
3095 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3096
3097 * linespec.c (linespec_lexer_lex_number): Update comments,
3098 change the return and add check to make sure the input is
3099 the decimal numbers.
3100 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3101 false, call linespec_lexer_lex_string.
3102
3103 2012-07-24 Tom Tromey <tromey@redhat.com>
3104
3105 * symfile.c (symbol_file_add): Don't open BFD twice.
3106
3107 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3108
3109 * breakpoint.c (create_breakpoint): Store condition for pending
3110 breakpoints.
3111
3112 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3113
3114 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3115 (m68k_return_value): Handle complex types like structures.
3116 (m68k_svr4_return_value): Likewise.
3117
3118 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3119
3120 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3121 parameters to bfd_get_section_name.
3122
3123 2012-07-24 Yao Qi <yao@codesourcery.com>
3124
3125 * cli/cli-setshow.c: Handle case 'var_uinteger'
3126 and 'var_zuninteger' together. Handle case 'var_integer' and
3127 'var_zinteger' together.
3128
3129 2012-07-23 Keith Seitz <keiths@redhat.com>
3130
3131 * linespec.c (convert_linespec_to_sal): Don't add
3132 any symbols to the result vector if symbol_to_sal
3133 returns zero.
3134
3135 2012-07-23 Keith Seitz <keiths@redhat.com>
3136
3137 * linespec.c (decode_objc): Record the function name
3138 in the linespec.
3139
3140 2012-07-23 Tom Tromey <tromey@redhat.com>
3141
3142 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3143 counting.
3144 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3145 (map_vmap): Acquire a reference to the BFD.
3146
3147 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3148
3149 * p-valprint.c (pascal_object_print_value): Replace potentially
3150 unsafe alloca with xmalloc/xfree.
3151 * valops.c (search_struct_method): Likewise.
3152
3153 2012-07-23 Tom Tromey <tromey@redhat.com>
3154
3155 * solib-svr4.c (enable_break): Update.
3156 * bfd-target.h (target_bfd_reopen): Update documentation.
3157
3158 2012-07-23 Tom Tromey <tromey@redhat.com>
3159
3160 * symfile.c (separate_debug_file_exists): Update.
3161 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3162 (reread_symbols): Update.
3163 * elfread.c (build_id_verify): Update.
3164 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3165 bfd_open_maybe_remote.
3166
3167 2012-07-23 Tom Tromey <tromey@redhat.com>
3168
3169 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3170
3171 2012-07-23 Tom Tromey <tromey@redhat.com>
3172
3173 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3174 and 'abfd'.
3175 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3176 and 'abfd'.
3177 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3178 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3179 'abfd'.
3180 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3181 * objfiles.c (allocate_objfile): Acquire a new reference.
3182 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3183 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3184 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3185 a cleanup for 'nbfd'.
3186 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3187 for 'nbfd'.
3188 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3189 make a cleanup for 'abfd'.
3190 (symbol_file_add): Make a BFD cleanup.
3191
3192 2012-07-23 Tom Tromey <tromey@redhat.com>
3193
3194 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3195 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3196 * corelow.c (core_open): Use gdb_bfd_fopen.
3197 * dsrec.c (load_srec): Use gdb_bfd_openr.
3198 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3199 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3200 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3201 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3202 (gdb_bfd_fdopenr): New functions.
3203 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3204 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3205 (gdb_bfd_fdopenr): Declare.
3206 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3207 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3208 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3209 gdb_bfd_openr_next_archived_file.
3210 (macho_check_dsym): Use gdb_bfd_openr.
3211 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3212 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3213 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3214 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3215 gdb_bfd_openr.
3216 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3217 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3218 gdb_bfd_openr_next_archived_file.
3219 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3220 Use gdb_bfd_openr.
3221 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3222 gdb_bfd_openr.
3223 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3224 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3225 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3226 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3227 (symfile_bfd_open): Use gdb_bfd_fopen.
3228 (generic_load): Use gdb_bfd_openr.
3229 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3230
3231 2012-07-23 Tom Tromey <tromey@redhat.com>
3232
3233 * bfd-target.c (target_bfd_reopen): Update.
3234 * cli/cli-dump.c (bfd_openr_with_cleanup)
3235 (bfd_openw_with_cleanup): Update.
3236 * corelow.c (core_open): Update.
3237 * dsrec.c (load_srec): Update.
3238 * exec.c (exec_file_attach): Update.
3239 * gcore.c (create_gcore_bfd): Update.
3240 * gdb_bfd.c (gdb_bfd_ref): Return void.
3241 (gdb_bfd_open): Update.
3242 * gdb_bfd.h (gdb_bfd_ref): Return void.
3243 Update comments.
3244 * jit.c (jit_bfd_try_read_symtab): Update.
3245 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3246 * machoread.c (macho_symfile_read_all_oso): Update.
3247 (macho_check_dsym): Update.
3248 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3249 * remote-m32r-sdi.c (m32r_load): Update.
3250 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3251 * rs6000-nat.c (add_vmap): Update.
3252 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3253 Update.
3254 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3255 * solib-spu.c (spu_bfd_open): Update.
3256 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3257 * spu-linux-nat.c (spu_bfd_open): Update.
3258 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3259 (generic_load): Update.
3260 * windows-nat.c (windows_make_so): Update.
3261
3262 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3263
3264 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3265
3266 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3267
3268 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3269 SIGTRAMP_FRAME unwinding.
3270
3271 2012-07-20 Doug Evans <dje@google.com>
3272
3273 * NEWS: Document new options "set/show use-deprecated-index-sections",
3274 and delete reference to --use-deprecated-index-sections.
3275 * symfile.h (use_deprecated_index_sections): Delete.
3276 * dwarf2read.c (use_deprecated_index_sections): Make static.
3277 (read_index_from_section): Update wording of how to load
3278 deprecated index sections.
3279 (_initialize_dwarf2_read): New options
3280 "set/show use-deprecated-index-sections".
3281 * main.c (captured_main): Delete --use-deprecated-index-sections.
3282
3283 2012-07-20 Pedro Alves <palves@redhat.com>
3284
3285 PR threads/11692
3286 PR gdb/12203
3287
3288 * infrun.c (handle_inferior_event) <new thread>: Don't special
3289 case minus_one_ptid.
3290 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3291 * linux-thread-db.c (thread_get_info_callback): Don't return early
3292 if the thread is zombie.
3293 (thread_from_lwp): Change return type to void. Rewrite stale
3294 comment.
3295 (attach_thread): Don't return early if the thread is zombie,
3296 instead set its "dying" flag.
3297 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3298 (find_new_threads_callback): Don't return early if the thread is
3299 zombie.
3300
3301 2012-07-20 Pedro Alves <palves@redhat.com>
3302
3303 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3304 * target.c (target_wait): Likewise.
3305 (str_comma_list_concat_elem, do_option, target_options_to_string):
3306 New functions.
3307 * target.h (target_options_to_string): Declare.
3308
3309 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3310 Tom Tromey <tromey@redhat.com>
3311
3312 * dwarf2read.c (dwarf_decode_macros)
3313 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3314 DW_MACRO_GNU_transparent_include_alt>: New cases.
3315 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3316 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3317
3318 2012-07-20 Tom Tromey <tromey@redhat.com>
3319
3320 * dwarf2read.c (try_open_dwo_file): Don't call
3321 gdb_bfd_stash_filename.
3322
3323 2012-07-20 Pedro Alves <palves@redhat.com>
3324
3325 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3326 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3327 (i386_process_record): Tweak description comments.
3328
3329 2012-07-20 Pedro Alves <palves@redhat.com>
3330
3331 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3332 (i386_process_record): Use record_read_memory.
3333 * record.c (record_read_memory): New function.
3334 (record_arch_list_add_mem, record_exec_insn): Use
3335 record_read_memory.
3336 * record.h (record_read_memory): Declare.
3337
3338 2012-07-20 Yao Qi <yao@codesourcery.com>
3339
3340 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3341 NULL for xfree.
3342
3343 2012-07-19 Pedro Alves <palves@redhat.com>
3344
3345 * record.c (record_resume): Ask the target beneath to report all
3346 signals.
3347
3348 2012-07-19 Doug Evans <dje@google.com>
3349
3350 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3351 there's no section at address zero.
3352 (dwarf2_record_block_ranges): Ditto.
3353
3354 2012-07-19 Yao Qi <yao@codesourcery.com>
3355
3356 * command.h, remote.c: Fix a typo in comment.
3357
3358 2012-07-19 Tom Tromey <tromey@redhat.com>
3359
3360 PR exp/13206:
3361 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3362 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3363 OP_DECLTYPE>: New cases.
3364 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3365 (type_exp): Add new productions.
3366 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3367 and decltype.
3368 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3369 New case.
3370 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3371 OP_DECLTYPE>: New case.
3372 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3373 New case.
3374 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3375 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3376
3377 2012-07-19 Tom Tromey <tromey@redhat.com>
3378
3379 * c-exp.y (enum token_flags): New.
3380 (struct token) <cxx_only>: Remove.
3381 <flags>: New field.
3382 (tokentab3, tokentab2, ident_tokens): Update.
3383 (lex_one_token): Update. Handle FLAG_SHADOW.
3384
3385 2012-07-19 Tom Tromey <tromey@redhat.com>
3386
3387 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3388 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3389 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3390 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3391 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3392 type_exp production where appropriate.
3393 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3394 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3395 <UNOP_MEMVAL_TYPE>: New case.
3396 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3397 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3398 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3399 <UNOP_MEMVAL_TYPE>: New case.
3400 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3401 UNOP_REINTERPRET_CAST>: Update.
3402 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3403 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3404 UNOP_REINTERPRET_CAST>: Update.
3405 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3406 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3407 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3408 constants.
3409
3410 2012-07-19 Yao Qi <yao@codesourcery.com>
3411 Jan Kratochvil <jan.kratochvil@redhat.com>
3412
3413 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3414 and case 'var_optional_filename' together.
3415 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3416 instead of add_setshow_optional_filename_cmd for setshow command
3417 'args'. Set completer for 'set args'.
3418
3419 2012-07-18 Doug Evans <dje@google.com>
3420
3421 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3422 * common/gdb_vecs.c: New file, contents from utils.c.
3423 * common/host-defs.h: New file, contents from defs.h.
3424 * utils.h: New file, contents from defs.h.
3425 * defs.h: Move all declarations of objects defined in utils.c
3426 to utils.h (except QUIT() and related).
3427 #include "utils.h", "host-defs.h".
3428 * probe.h (probe_p): Move here from gdb_vecs.h.
3429 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3430 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3431 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3432 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3433 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3434 (COMMON_OBS): Add gdb_vecs.o.
3435 (gdb_vecs.o): New rule.
3436
3437 2012-07-18 Keith Seitz <keiths@redhat.com>
3438
3439 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3440 parameter. If non-zero, use SYMNAME as the canonical name
3441 for the SaL.
3442 Update all callers.
3443 (convert_linespec_to_sals): Use add_sal_to_sals for
3444 expressions, too.
3445 (decode_line_full): No need to "fill in missing canonical names"
3446 anymore. Simply make cleanups for the allocated names.
3447
3448 2012-07-18 Keith Seitz <keiths@redhat.com>
3449
3450 * linespec.c (struct linespec): Constify expression,
3451 source_filename, function_name, and label_name.
3452 (symbol_not_found_error): Make all parameters const.
3453 (linespec_parser_delete): No need to check for NULL
3454 when using xfree. Cast const char * to char * for xfree.
3455
3456 2012-07-18 Keith Seitz <keiths@redhat.com>
3457
3458 * breakpoint.c (invalid_thread_id_error): New function.
3459 (find_condition_and_thread): Use invalid_thread_id_error.
3460 (watch_command_1): Likewise.
3461
3462 2012-07-18 Tom Tromey <tromey@redhat.com>
3463
3464 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3465 * contrib/cc-with-tweaks.sh: New file.
3466
3467 2012-07-18 Tom Tromey <tromey@redhat.com>
3468
3469 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3470 (locate_dwz_sections): Recognize .gdb_index.
3471 (create_cus_from_index_list): New function.
3472 (create_cus_from_index): Use it. Handle .dwz data.
3473 (read_index_from_section): New function, extracted from
3474 dwarf2_read_index.
3475 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3476 if needed.
3477
3478 2012-07-18 Tom Tromey <tromey@redhat.com>
3479
3480 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3481 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3482 <is_dwz>: New field.
3483 (struct dwz_file): New.
3484 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3485 (locate_dwz_sections, dwarf2_get_dwz_file)
3486 (get_abbrev_section_for_cu): New functions.
3487 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3488 (read_and_check_type_unit_head): Add abbrev_section argument.
3489 (create_debug_types_hash_table): Update.
3490 (init_cutu_and_read_dies): Use proper abbrev section.
3491 (init_cutu_and_read_dies_no_follow): Likewise.
3492 (set_partial_user): Do nothing if PST==NULL.
3493 (read_comp_units_from_section): New function.
3494 (create_all_comp_units): Use it.
3495 (scan_partial_symbols, partial_die_parent_scope): Update.
3496 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3497 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3498 (find_partial_die): Add offset_in_dwz argument. Update.
3499 (guess_partial_die_structure_name, fixup_partial_die): Update.
3500 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3501 DW_FORM_GNU_strp_alt.
3502 (read_indirect_string_from_dwz): New function.
3503 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3504 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3505 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3506 (follow_die_offset): Add offset_in_dwz argument.
3507 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3508 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3509 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3510 Handle new macro forms.
3511 (dwarf_decode_macros): Update.
3512 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3513 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3514 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3515 (create_debug_types_hash_table): Use correct abbrev section.
3516 (get_debug_line_section): New function.
3517 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3518 (process_full_comp_unit): Pass 'required' argument to
3519 end_symtab_get_static_block.
3520 * buildsym.h (end_symtab_get_static_block): Update.
3521 * buildsym.c (end_symtab_get_static_block): Add 'required'
3522 argument.
3523 (end_symtab, end_expandable_symtab): Update.
3524
3525 2012-07-18 Tom Tromey <tromey@redhat.com>
3526
3527 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3528 (pagesize): Remove.
3529 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3530 (zlib_decompress_section): Remove.
3531 (dwarf2_read_section): Use gdb_bfd_map_section.
3532 (munmap_section_buffer): Remove.
3533 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3534 munmap_section_buffer.
3535 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3536 (struct gdb_bfd_section_data): New.
3537 (free_one_bfd_section): New function.
3538 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3539 (get_section_descriptor, zlib_decompress_section)
3540 (gdb_bfd_map_section): New functions.
3541 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3542
3543 2012-07-18 Tom Tromey <tromey@redhat.com>
3544
3545 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3546
3547 2012-07-18 Tom Tromey <tromey@redhat.com>
3548
3549 * gdb_bfd.c (struct gdb_bfd_data): New.
3550 (gdb_bfd_cache): New global.
3551 (struct gdb_bfd_cache_search): New.
3552 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3553 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3554 * gdb_bfd.h (gdb_bfd_open): Declare.
3555
3556 2012-07-18 Tom Tromey <tromey@redhat.com>
3557
3558 * utils.c (make_cleanup_bfd_unref): Rename from
3559 make_cleanup_bfd_close.
3560 * defs.h (make_cleanup_bfd_unref): Rename from
3561 make_cleanup_bfd_close.
3562 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3563 (bfd_openw_with_cleanup): Update.
3564 * corelow.c (core_open): Update.
3565 * dsrec.c (load_srec): Update.
3566 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3567 * remote-m32r-sdi.c (m32r_load): Update.
3568 * remote-mips.c (mips_load_srec): Update.
3569 (pmon_load_fast): Update.
3570 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3571 Update.
3572 (darwin_bfd_open): Update.
3573 * solib.c (solib_bfd_fopen): Update.
3574 * symfile-mem.c (symbol_file_add_from_memory): Update.
3575 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3576 (symfile_bfd_open): Update.
3577 (generic_load): Update.
3578
3579 2012-07-18 Tom Tromey <tromey@redhat.com>
3580
3581 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3582 (pmon_load_fast): Likewise.
3583 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3584 (m32r_upload_command): Likewise.
3585 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3586 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3587 Use make_cleanup_bfd_close.
3588
3589 2012-07-18 Tom Tromey <tromey@redhat.com>
3590
3591 * symfile.c (symfile_bfd_open): Don't copy name. Call
3592 gdb_bfd_stash_filename.
3593 (load_command): Open the new BFD before freeing the old.
3594 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3595 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3596 Call gdb_bfd_stash_filename.
3597 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3598 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3599 gdb_bfd_stash_filename.
3600 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3601 Free found_pathname.
3602 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3603 gdb_bfd_stash_filename.
3604 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3605 * machoread.c (macho_add_oso_symfile): Call
3606 gdb_bfd_stash_filename.
3607 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3608 gdb_bfd_stash_filename.
3609 (macho_check_dsym): Don't copy filename. Call
3610 gdb_bfd_stash_filename.
3611 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3612 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3613 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3614 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3615 * exec.c (exec_close): Don't free the BFD's filename.
3616 (exec_file_attach): Don't copy the filename. Call
3617 gdb_bfd_stash_filename.
3618 * corelow.c (core_close): Don't free the BFD's filename.
3619 (core_open): Call gdb_bfd_stash_filename.
3620 * corefile.c (reopen_exec_file): Remove #if 0 code.
3621 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3622 pathname.
3623 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3624
3625 2012-07-18 Tom Tromey <tromey@redhat.com>
3626
3627 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3628 gdb_bfd_unref.
3629 (free_dwo_file): Use gdb_bfd_unref.
3630 * cli/cli-dump.c: Include gdb_bfd.h.
3631 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3632 (bfd_openr_with_cleanup): Likewise.
3633 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3634 gdb_bfd_unref.
3635 * utils.c: Include gdb_bfd.h.
3636 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3637 * symfile.c: Include gdb_bfd.h.
3638 (separate_debug_file_exists): Use gdb_bfd_unref.
3639 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3640 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3641 (generic_load): Use gdb_bfd_ref.
3642 (reread_symbols): Use gdb_bfd_unref.
3643 * symfile-mem.c: Include gdb_bfd.h.
3644 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3645 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3646 * solib.c: Include gdb_bfd.h.
3647 (solib_bfd_fopen): Use gdb_bfd_ref.
3648 (solib_bfd_open): Use gdb_bfd_unref.
3649 (free_so_symbols): Use gdb_bfd_unref.
3650 (reload_shared_libraries_1): Use gdb_bfd_unref.
3651 * solib-spu.c: Include gdb_bfd.h.
3652 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3653 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3654 gdb_bfd_unref.
3655 * solib-frv.c: Include gdb_bfd.h.
3656 (enable_break2): Use gdb_bfd_unref.
3657 * solib-dsbt.c: Include gdb_bfd.h.
3658 (enable_break2): Use gdb_bfd_unref.
3659 * solib-darwin.c: Include gdb_bfd.h.
3660 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3661 gdb_bfd_unref.
3662 (darwin_bfd_open): Use gdb_bfd_unref.
3663 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3664 * remote-mips.c: Include gdb_bfd.h.
3665 (mips_load_srec): Use gdb_bfd_ref.
3666 (pmon_load_fast): Use gdb_bfd_ref.
3667 * remote-m32r-sdi.c: Include gdb_bfd.h.
3668 (m32r_load): Use gdb_bfd_ref.
3669 * record.c: Include gdb_bfd.h.
3670 (record_save_cleanups): Use gdb_bfd_unref.
3671 (cmd_record_save): Use gdb_bfd_unref.
3672 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3673 gdb_bfd_unref.
3674 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3675 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3676 * objfiles.c: Include gdb_bfd.h.
3677 (free_objfile): Use gdb_bfd_unref.
3678 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3679 gdb_bfd.c.
3680 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3681 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3682 (macho_check_dsym): Likewise.
3683 * m32r-rom.c: Include gdb_bfd.h.
3684 (m32r_load): Use gdb_bfd_ref.
3685 (m32r_upload_command): Use gdb_bfd_ref.
3686 * jit.c: Include gdb_bfd.h.
3687 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3688 * gdb_bfd.h: New file.
3689 * gdb_bfd.c: New file.
3690 * gcore.c: Include gdb_bfd.h.
3691 (create_gcore_bfd): Use gdb_bfd_ref.
3692 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3693 (gcore_command): Use gdb_bfd_unref.
3694 * exec.c: Include gdb_bfd.h.
3695 (exec_close): Use gdb_bfd_unref.
3696 (exec_close_1): Use gdb_bfd_unref.
3697 (exec_file_attach): Use gdb_bfd_ref.
3698 * elfread.c: Include gdb_bfd.h.
3699 (build_id_verify): Use gdb_bfd_unref.
3700 * dsrec.c: Include gdb_bfd.h.
3701 (load_srec): Use gdb_bfd_ref.
3702 * corelow.c: Include gdb_bfd.h.
3703 (core_close): Use gdb_bfd_unref.
3704 (core_open): Use gdb_bfd_ref.
3705 * bfd-target.c: Include gdb_bfd.h.
3706 (target_bfd_xclose): Use gdb_bfd_unref.
3707 (target_bfd_reopen): Use gdb_bfd_ref.
3708 * Makefile.in (SFILES): Add gdb_bfd.c.
3709 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3710 (COMMON_OBS): Add gdb_bfd.o.
3711
3712 2012-07-18 Keith Seitz <keiths@redhat.com>
3713
3714 * breakpoint.c (find_condition_and_thread): Initialize
3715 TASK and REST.
3716 (create_breakpiont): find_condition_and_thread will now
3717 initialize COND_STRING, THREAD, and REST (and TASK).
3718 (addr_string_to_sals): Likewise.
3719
3720 2012-07-18 Pedro Alves <palves@redhat.com>
3721
3722 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3723 Pull the single step breakpoints out of the target.
3724
3725 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3726
3727 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3728 * stap-probe.c (compile_probe_arg): Likewise.
3729
3730 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3731
3732 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3733 (elf_compile_to_ax): Likewise.
3734 * infrun.c (insert_exception_resume_from_probe): Likewise.
3735 (check_exception_resume): Remove `objfile' variable.
3736 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3737 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3738 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3739 (compare_entries): Rename to...
3740 (compare_probes): ...this. Adjust function to work with
3741 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3742 respectively.
3743 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3744 `VEC (probe_p) *'.
3745 (print_ui_out_info): Adjust argument to be `struct probe *'.
3746 (info_probes_for_ops): Adjust internal computations to use
3747 `VEC (probe_p) *'.
3748 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3749 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3750 gen_info_probes_table_values>: Remove `objfile' argument.
3751 (struct probe) <objfile>: New field.
3752 (find_probe_by_pc): Remove `objfile' argument.
3753 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3754 (stap_get_probe_argument_count): Likewise.
3755 (stap_get_arg): Likewise.
3756 (stap_evaluate_probe_argument): Likewise.
3757 (stap_compile_to_ax): Likewise.
3758 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3759 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3760 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3761 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3762 sym_compile_to_ax>: Likewise.
3763
3764 2012-07-18 Terry Guo <terry.guo@arm.com>
3765
3766 PR 14329
3767 * defs.h (GDB_MI_MSG_WIDTH): New.
3768 * ser_base (ser_base_read_error_fd): New function.
3769 (do_ser_base_readchar): Poll error file descriptor as well as
3770 standard output.
3771 (generic_readchar): Refactor error handling.
3772
3773 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3774
3775 * NEWS: Create a new section for the next release branch.
3776 Rename the section of the current branch, now that it has
3777 been cut.
3778
3779 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3780
3781 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3782 * version.in: Bump version to 7.5.50.20120718-cvs.
3783
3784 2012-07-17 Keith Seitz <keiths@redhat.com>
3785
3786 * linespec.c (linespec_parse_line_offset): Make parameter
3787 const.
3788
3789 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3790
3791 PR 11914
3792 * f-valprint.c (info_common_command): New variable frame_id.
3793 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3794 * printcmd.c (print_variable_and_value): Extend function comment.
3795 Add comment for invalidated FRAME.
3796 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3797 FI form FRAME_ID after each print_frame_local_vars.
3798 (struct print_variable_and_value_data): Change frame to frame_id.
3799 (do_print_variable_and_value): New variable frame, initialize it from
3800 p->frame_id. Add comment for invalidated FRAME.
3801 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3802 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3803 for invalidated FRAME.
3804
3805 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3806 Pedro Alves <palves@redhat.com>
3807
3808 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3809 loop.
3810
3811 2012-07-16 Tom Tromey <tromey@redhat.com>
3812
3813 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3814
3815 2012-07-15 Doug Evans <dje@google.com>
3816
3817 * dwarf2read.c (stmt_list_hash): New struct.
3818 (type_unit_group): Embed "per_cu" member, remove pointer.
3819 New union member "t", move member "tus" into it, all uses updated.
3820 New member "hash", replaces member "line_offset, all uses updated.
3821 (quick_file_names): Replace member "offset" with "hash", all uses
3822 updated.
3823 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3824 (hash_file_name_entry, eq_file_name_entry): Call them.
3825 (hash_type_unit_group, eq_type_unit_group): Ditto.
3826 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3827 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3828 (dw2_get_file_names): Update.
3829 (create_type_unit_group): Replace "per_cu" arg with "cu".
3830 All callers updated. Fix "quick" (.gdb_index) handling.
3831 (get_type_unit_group): Replace "per_cu" arg with "cu".
3832 All callers updated.
3833 (build_type_unit_groups): Don't reset tu_stats.
3834
3835 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3836 "tab_cur_size". Change member "tab" to be a htab_t.
3837 (create_filename_seen_cache): Update.
3838 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3839 (filename_seen): Update.
3840
3841 2012-07-13 Doug Evans <dje@google.com>
3842
3843 * symtab.c (filename_seen): Update comment.
3844
3845 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3846 Doug Evans <dje@google.com>
3847
3848 * buildsym.c (end_symtab_1): Split it to ...
3849 (end_symtab_get_static_block): ... this ...
3850 (end_symtab_from_static_block): ... and this function.
3851 (end_symtab, end_expandable_symtab): Call them.
3852 * buildsym.h (end_symtab_get_static_block)
3853 (end_symtab_from_static_block): New declarations.
3854 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3855 Set its valid CU ranges.
3856
3857 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3858
3859 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3860 DW_OP_GNU_parameter_ref.
3861
3862 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3863
3864 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3865 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3866
3867 2012-07-13 Doug Evans <dje@google.com>
3868
3869 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3870 (filename_seen_cache): New struct.
3871 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3872 (create_filename_seen_cache): New function.
3873 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3874 (filename_seen): Delete arg "first". New arg "cache". All callers
3875 updated.
3876 (output_source_filename_data): New struct.
3877 (output_source_filename): Delete arg "first". New arg "data".
3878 All callers updated.
3879 (sources_info): Delete local "first". New locals "data", "cleanups".
3880 Rewrite to use filename_seen_cache.
3881 (add_partial_filename_data): Delete member "first". New member
3882 "filename_seen_cache". All uses updated.
3883 (make_source_files_completion_list): Rewrite to use
3884 filename_seen_cache.
3885
3886 2012-07-12 Doug Evans <dje@google.com>
3887
3888 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3889
3890 2012-07-10 Doug Evans <dje@google.com>
3891
3892 PR gdb/13498
3893 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3894 all_type_unit_groups, type_unit_groups, tu_stats.
3895 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3896 All uses updated. Add type_unit_group to union "s".
3897 (type_unit_group): New struct.
3898 (IS_TYPE_UNIT_GROUP): New macro.
3899 (abbrev_table): Delete unused member "section".
3900 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3901 (dw2_get_cu): Assert not used with type_unit_group.
3902 (dw2_get_primary_cu): New function.
3903 (dw2_build_type_unit_groups_reader): New function.
3904 (dw2_build_type_unit_groups): New function.
3905 (dw2_get_file_names): Assert not called on type units.
3906 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3907 Redo loop to iterate over type unit groups instead of type units.
3908 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3909 (read_abbrev_offset): New function.
3910 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3911 updated.
3912 (create_partial_symtab): New function.
3913 (process_psymtab_comp_unit_reader): Assert not used with type units.
3914 Call create_partial_symtab.
3915 (process_psymtab_type_unit): Delete.
3916 (hash_type_unit_group, eq_type_unit_group): New functions.
3917 (allocate_type_unit_groups_table): New function.
3918 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3919 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3920 (create_type_unit_group, get_type_unit_group): New functions.
3921 (tu_abbrev_offset): New struct.
3922 (sort_tu_by_abbrev_offset): New function.
3923 (add_type_unit_group_to_table): New function.
3924 (build_type_unit_groups): New function.
3925 (build_type_psymtabs_reader): New function.
3926 (build_type_psymtab_dependencies): New function.
3927 (build_type_psymtabs): Rewrite.
3928 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3929 is seen in a type unit.
3930 (process_queue): Move symtab expansion debugging printfs here.
3931 Call process_full_type_unit for type units.
3932 (compute_symtab_includes): Assert not called for type units.
3933 (process_cu_includes): Don't call compute_symtab_includes for
3934 type units.
3935 (process_full_type_unit): New function.
3936 (process_imported_unit_die): Flag an error if called for type units.
3937 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3938 updated. Assert not called for type units.
3939 (read_file_scope): Call dwarf2_start_symtab.
3940 (setup_type_unit_groups): New function.
3941 (read_type_unit_scope): Rewrite.
3942 (abbrev_table_read_table): Initialize abbrev_table->offset.
3943 (abbrev_table_free_cleanup): New function.
3944 (dwarf2_start_symtab): New function.
3945 (load_full_type_unit): Assert not called for type unit groups.
3946 * buildsym.c (finish_block_internal): New arg "expandable".
3947 All callers updated.
3948 (start_symtab): Move most contents to ...
3949 (restart_symtab): ... here. New function.
3950 (reset_symtab_globals): New function.
3951 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3952 Call reset_symtab_globals.
3953 (end_symtab, end_expandable_symtab): New functions.
3954 (set_missing_symtab, augment_type_symtab): New functions.
3955 * buildsym.h (end_expandable_symtab): Declare.
3956 (augment_type_symtab, restart_symtab): Declare.
3957 * psympriv.h (struct partial_symtab): New member "anonymous".
3958 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3959 anonymous psymtabs.
3960 (read_psymtabs_with_filename): Ditto.
3961 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3962 (expand_symtabs_matching_via_partial): Ditto.
3963 (dump_psymtab): Update.
3964 * dictionary.c (dict_add_pending): New function.
3965 * dictionary.h (dict_add_pending): Declare.
3966
3967 2012-07-09 Doug Evans <dje@google.com>
3968
3969 * buildsym.c (start_subfile): Remove unnecessary check for
3970 name == NULL.
3971
3972 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3973
3974 * dwarf2read.c (load_full_type_unit): Simplify.
3975
3976 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3977 to struct signatured_type **. All uses updated.
3978
3979 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3980 All callers updated.
3981
3982 2012-07-09 Tom Tromey <tromey@redhat.com>
3983
3984 * c-exp.y (check_parameter_typelist): New function.
3985 (parameter_typelist): Call it.
3986 * eval.c (make_params): Handle '(void)' case.
3987 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3988 '(void)' case.
3989
3990 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3991
3992 * common/linux-ptrace.c: Include gdb_assert.h.
3993 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3994 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3995 stdint.h.
3996 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3997 functions.
3998 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3999 * linux-nat.c (linux_child_post_attach)
4000 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4001
4002 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4003
4004 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4005 nptl <2.7 bug workaround for core files.
4006
4007 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4008
4009 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4010 clearing.
4011 (save_siginfo): Remove.
4012 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4013 call.
4014 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4015 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4016 * linux-nat.h (struct lwp_info): Remove field siginfo.
4017
4018 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4019
4020 Code cleanup for the next patch.
4021 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4022 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4023 call for it.
4024 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4025 (ia64_linux_stopped_data_address):
4026 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4027 the return value.
4028 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4029 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4030 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4031 call for it.
4032
4033 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 PR 14321
4036 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4037 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4038
4039 2012-07-06 Tom Tromey <tromey@redhat.com>
4040
4041 * c-exp.y (DOTDOTDOT): New token.
4042 (func_mod, exp): Use parameter_typelist.
4043 (parameter_typelist): New production.
4044 (tokentab3): Add "..." token.
4045 * eval.c (make_params): Handle varargs.
4046 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4047 varargs.
4048
4049 2012-07-06 Tom Tromey <tromey@redhat.com>
4050
4051 PR exp/9608:
4052 * c-exp.y (%union) <tvec>: Change type.
4053 (func_mod): Now uses <tvec> type.
4054 (exp): Update for tvec change.
4055 (direct_abs_decl): Push the typelist.
4056 (func_mod): Return a typelist.
4057 (nonempty_typelist): Update for tvec change.
4058 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4059 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4060 * parse.c (pop_type_list): New function.
4061 (push_typelist): New function.
4062 (follow_types): Handle tp_function_with_arguments.
4063 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4064 (enum type_pieces) <tp_function_with_arguments>: New constant.
4065 (union type_stack_elt) <typelist_val>: New field.
4066 (push_typelist): Declare.
4067
4068 2012-07-06 Tom Tromey <tromey@redhat.com>
4069
4070 * c-exp.y (%union) <type_stack>: New field.
4071 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4072 (ptr_operator_ts): New production.
4073 (ptype): Update.
4074 * parse.c (type_stack_reserve): New function.
4075 (check_type_stack_depth): Use it.
4076 (pop_type_stack, append_type_stack, push_type_stack)
4077 (get_type_stack, type_stack_cleanup): New functions.
4078 (follow_types): Handle tp_type_stack.
4079 (_initialize_parse): Simplify initialization.
4080 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4081 constant.
4082 (union type_stack_elt) <stack_val>: New field.
4083 (get_type_stack, append_type_stack, push_type_stack)
4084 (type_stack_cleanup): Declare.
4085
4086 2012-07-06 Tom Tromey <tromey@redhat.com>
4087
4088 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4089 Remove.
4090 (struct type_stack): New.
4091 * parse.c (type_stack, type_stack_size, type_stack_depth):
4092 Remove.
4093 (type_stack): New global.
4094 (parse_exp_in_context, check_type_stack_depth)
4095 (insert_into_type_stack, insert_type, push_type, push_type_int)
4096 (insert_type_address_space, pop_type, pop_type_int)
4097 (_initialize_parse): Update.
4098
4099 2012-07-06 Tom Tromey <tromey@redhat.com>
4100
4101 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4102 Remove %type.
4103
4104 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4105
4106 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4107
4108 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4109 Jan Kratochvil <jan.kratochvil@redhat.com>
4110
4111 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4112 alloca with xmalloc/xfree.
4113
4114 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4115
4116 * MAINTAINERS (Write After Approval): Add myself to the list.
4117
4118 2012-07-05 Doug Evans <dje@google.com>
4119
4120 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4121
4122 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4123
4124 * ax-gdb.c (cli/cli-utils.h): New include.
4125 (linespec.h): Ditto.
4126 (agent_eval_command_one): New function.
4127 (agent_command_1): Ditto.
4128 (agent_command): Call function agent_command_1.
4129 (agent_eval_command): Ditto.
4130 (_initialize_ax_gdb): Change help for "maint agent"
4131 and "maint agent-eval".
4132
4133 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4134
4135 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4136 * cli/cli-utils.c (check_for_argument): New function.
4137 * cli/cli-utils.h (check_for_argument): Ditto.
4138
4139 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4140
4141 * NEWS: Mention x32 ABI support.
4142
4143 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4144
4145 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4146 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4147
4148 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4149 and pc_regnum_from_eax to -1. Update SP regnum from
4150 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4151 needed.
4152
4153 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4154 pc_regnum_from_eax.
4155
4156 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4157
4158 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4159 * dwarf2expr.h: Include gdbtypes.h.
4160 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4161 these forward declarations.
4162 (cu_offset, sect_offset): Move these ...
4163 * gdbtypes.h: Remove include dwarf2expr.h.
4164 (cu_offset, sect_offset): ... here.
4165
4166 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4167
4168 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4169 (amd64_linux_sigtramp_code): This.
4170 (amd64_x32_linux_sigtramp_code): New.
4171 (LINUX_SIGTRAMP_LEN): Updated.
4172 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4173
4174 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4177
4178 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4179
4180 * config.in: Regenerate.
4181 * configure: Regenerate.
4182 * configure.ac: Remove check for gnu/libc-version.h.
4183 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4184 gnu/libc-version.h.
4185 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4186 variables libc_version, libc_major and libc_minor. Replace sscanf by
4187 inferior_has_bug. Extend the comment.
4188
4189 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4190
4191 * linux-thread-db.c (inferior_has_bug): New function.
4192 (thread_db_find_new_threads_silently): Return boolean as checked by
4193 inferior_has_bug, describe it in the comments.
4194 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4195 earlier. Abort the initialization if it returned non-zero.
4196 (thread_db_new_objfile): Exclude debug files.
4197 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4198 if UNTIL_NO_NEW,
4199
4200 2012-07-02 Doug Evans <dje@google.com>
4201
4202 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4203 related to queue management.
4204
4205 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4206 instead of "debug dwarf2-die" in debugging printfs.
4207 (create_debug_info_hash_table_reader): Ditto.
4208 (create_debug_info_hash_table): Ditto.
4209 (init_dwo_file): Ditto.
4210 (init_cutu_and_read_dies): Add debugging printf.
4211 (init_cutu_and_read_dies_no_follow): Ditto.
4212 (process_psymtab_comp_unit_reader): Ditto.
4213
4214 2012-07-02 Stan Shebs <stan@codesourcery.com>
4215
4216 Add target-side support for dynamic printf.
4217 * NEWS: Mention the additional style.
4218 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4219 (struct bp_location): New field cmd_bytecode.
4220 * breakpoint.c: Include format.h.
4221 (disconnected_dprintf): New global.
4222 (parse_cmd_to_aexpr): New function.
4223 (build_target_command_list): New function.
4224 (insert_bp_location): Call it.
4225 (remove_breakpoints_pid): Skip dprintf breakpoints.
4226 (print_one_breakpoint_location): Ditto.
4227 (dprintf_style_agent): New global.
4228 (dprintf_style_enums): Add dprintf_style_agent.
4229 (update_dprintf_command_list): Add agent case.
4230 (agent_printf_command): New function.
4231 (_initialize_breakpoint): Add new commands.
4232 * common/ax.def (printf): New bytecode.
4233 * ax.h (ax_string): Declare.
4234 * ax-gdb.h (gen_printf): Declare.
4235 * ax-gdb.c: Include cli-utils.h, format.h.
4236 (gen_printf): New function.
4237 (maint_agent_print_command): New function.
4238 (_initialize_ax_gdb): Add maint agent-printf command.
4239 * ax-general.c (ax_string): New function.
4240 (ax_print): Add printf disassembly.
4241 * Makefile.in (SFILES): Add format.c
4242 (COMMON_OBS): Add format.o.
4243 * common/format.h: New file.
4244 * common/format.c: New file.
4245 * printcmd.c: Include format.h.
4246 (ui_printf): Call parse_format_string.
4247 * remote.c (remote_state): New field breakpoint_commands.
4248 (PACKET_BreakpointCommands): New enum.
4249 (remote_breakpoint_commands_feature): New function.
4250 (remote_protocol_features): Add new BreakpointCommands entry.
4251 (remote_can_run_breakpoint_commands): New function.
4252 (remote_add_target_side_commands): New function.
4253 (remote_insert_breakpoint): Call it.
4254 (remote_insert_hw_breakpoint): Ditto.
4255 (_initialize_remote): Add new packet configuration for
4256 target-side breakpoint commands.
4257 * target.h (struct target_ops): New field
4258 to_can_run_breakpoint_commands.
4259 (target_can_run_breakpoint_commands): New macro.
4260 * target.c (update_current_target): Handle
4261 to_can_run_breakpoint_commands.
4262
4263 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4264
4265 Execute -ix and -iex only after system and user gdbinit files.
4266 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4267 processing down after gdbinit files.
4268
4269 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4270
4271 Add fnmatch-gnu module.
4272 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4273 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4274 * gnulib/aclocal.m4: Regenerate.
4275 * gnulib/config.in: Regenerate.
4276 * gnulib/configure: Regenerate.
4277 * gnulib/import/dummy.c: Remove.
4278 * gnulib/import/Makefile.am: Regenerate.
4279 * gnulib/import/Makefile.in: Likewise.
4280 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4281 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4282 * gnulib/import/alloca.c: New file.
4283 * gnulib/import/alloca.in.h: Likewise.
4284 * gnulib/import/config.charset: Likewise.
4285 * gnulib/import/fnmatch.c: Likewise.
4286 * gnulib/import/fnmatch.in.h: Likewise.
4287 * gnulib/import/fnmatch_loop.c: Likewise.
4288 * gnulib/import/localcharset.c: Likewise.
4289 * gnulib/import/localcharset.h: Likewise.
4290 * gnulib/import/m4/alloca.m4: Likewise.
4291 * gnulib/import/m4/codeset.m4: Likewise.
4292 * gnulib/import/m4/configmake.m4: Likewise.
4293 * gnulib/import/m4/fcntl-o.m4: Likewise.
4294 * gnulib/import/m4/fnmatch.m4: Likewise.
4295 * gnulib/import/m4/glibc21.m4: Likewise.
4296 * gnulib/import/m4/localcharset.m4: Likewise.
4297 * gnulib/import/m4/locale-fr.m4: Likewise.
4298 * gnulib/import/m4/locale-ja.m4: Likewise.
4299 * gnulib/import/m4/locale-zh.m4: Likewise.
4300 * gnulib/import/m4/mbrtowc.m4: Likewise.
4301 * gnulib/import/m4/mbsinit.m4: Likewise.
4302 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4303 * gnulib/import/m4/mbstate_t.m4: Likewise.
4304 * gnulib/import/m4/stdbool.m4: Likewise.
4305 * gnulib/import/m4/wchar_h.m4: Likewise.
4306 * gnulib/import/m4/wctype_h.m4: Likewise.
4307 * gnulib/import/m4/wint_t.m4: Likewise.
4308 * gnulib/import/mbrtowc.c: Likewise.
4309 * gnulib/import/mbsinit.c: Likewise.
4310 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4311 * gnulib/import/mbsrtowcs-state.c: Likewise.
4312 * gnulib/import/mbsrtowcs.c: Likewise.
4313 * gnulib/import/ref-add.sin: Likewise.
4314 * gnulib/import/ref-del.sin: Likewise.
4315 * gnulib/import/stdbool.in.h: Likewise.
4316 * gnulib/import/streq.h: Likewise.
4317 * gnulib/import/strnlen1.c: Likewise.
4318 * gnulib/import/strnlen1.h: Likewise.
4319 * gnulib/import/verify.h: Likewise.
4320 * gnulib/import/wchar.in.h: Likewise.
4321 * gnulib/import/wctype.in.h: Likewise.
4322
4323 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4324
4325 Support shell wildcards for 'set auto-load safe-path'.
4326 * auto-load.c: Include fnmatch.h.
4327 (filename_is_in_dir): Rename to ...
4328 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4329 it. Update function comment. Rename dir_len to pattern_len. New
4330 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4331 messages. Use gdb_filename_fnmatch.
4332 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4333 pattern.
4334 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4335 * defs.h (gdb_filename_fnmatch): New declaration.
4336 * utils.c: Include fnmatch.h.
4337 (gdb_filename_fnmatch): New function.
4338
4339 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4340
4341 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4342 `-probe' and `-probe-stap' options.
4343
4344 2012-07-01 Yao Qi <yao@codesourcery.com>
4345
4346 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4347 always_inserted_off, and always_inserted_enums.
4348 Change always_inserted_mode's type to 'enum auto_boolean'.
4349 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4350 callers.
4351 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4352 of add_setshow_enum_cmd.
4353 * infrun.c: Remove can_use_displaced_stepping_auto,
4354 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4355 can_use_displaced_stepping_enum.
4356 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4357 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4358 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4359 add_setshow_enum_cmd.
4360
4361 2012-06-30 Doug Evans <dje@google.com>
4362
4363 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4364 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4365 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4366
4367 2012-06-29 Doug Evans <dje@google.com>
4368
4369 * linespec.c: #include "stack.h".
4370 (decode_line_with_current_source): Moved here from symtab.c and
4371 renamed from decode_line_spec. All callers updated.
4372 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4373 renamed from decode_line_spec_1. All callers updated.
4374 * linespec.h (decode_line_with_current_source): Move declaration here
4375 from symtab.h and renamed from decode_line_spec.
4376 (decode_line_with_last_displayed): Move declaration here from symtab.h
4377 and renamed from decode_line_spec_1.
4378 * macrocmd.c: #include "linespec.h".
4379 * symtab.c: Remove #include "linespec.h".
4380
4381 2012-06-28 Doug Evans <dje@google.com>
4382
4383 * dwarf2read.c (get_cu_length): New function.
4384 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4385 (create_debug_types_hash_table): Ditto.
4386 (init_cutu_and_read_dies): Ditto.
4387 (init_cutu_and_read_dies_no_follow): Ditto.
4388
4389 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4390
4391 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4392 (struct abbrev_table): Define.
4393 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4394 abbrev_table.
4395 (init_cutu_and_read_dies): Update.
4396 (abbrev_table_alloc_abbrev): New function. Replaces
4397 dwarf_alloc_abbrev. All callers updated.
4398 (abbrev_table_add_abbrev): New function.
4399 (abbrev_table_lookup_abbrev): New function. Replaces
4400 dwarf2_lookup_abbrev. All callers updated.
4401 (abbrev_table_read_table): New function. Contents moved here from
4402 dwarf2_read_abbrevs.
4403 (dwarf2_read_abbrevs): Call it.
4404 (abbrev_table_free): New function.
4405 (dwarf2_free_abbrev_table): Call it.
4406
4407 2012-06-28 Stan Shebs <stan@codesourcery.com>
4408
4409 * osdata.c (info_osdata_command): Filter out "Title" columns
4410 from non-MI uses.
4411 * common/linux-osdata.c (struct osdata_type): Add title field.
4412 (osdata_table): Add titles to each entry.
4413 (linux_command_xfer_osdata): Add a column for title data.
4414
4415 2012-06-28 Stan Shebs <stan@codesourcery.com>
4416
4417 Make logging work for MI.
4418 * NEWS: Mention it.
4419 * interps.h (interp_set_logging_ftype): New typedef.
4420 (struct interp_procs): New field set_logging_proc.
4421 (current_interp_set_logging): Declare.
4422 * interps.c (current_interp_set_logging): New function.
4423 * cli/cli-logging.c: Include interps.h.
4424 (set_logging_redirect): Call current_interp_set_logging.
4425 (pop_output_files): Ditto.
4426 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4427 * mi/mi-console.h (mi_console_set_raw): Declare.
4428 * mi/mi-console.c (mi_console_set_raw): New function.
4429 * mi/mi-interp.c (saved_raw_stdout): New global.
4430 (mi_set_logging): New function.
4431 (_initialize_mi_interp): Add it to interp procs.
4432
4433 2012-06-28 Doug Evans <dje@google.com>
4434
4435 * symtab.c (lookup_symbol_aux_objfile): Use
4436 ALL_OBJFILE_PRIMARY_SYMTABS.
4437
4438 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4439
4440 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4441
4442 * common/buffer.c: Include inttypes.h and stdint.h.
4443 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4444
4445 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4446 Pedro Alves <palves@redhat.com>
4447
4448 * gdbthread.h (ALL_THREADS): New macro.
4449 (thread_list): Declare.
4450 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4451 going, but instead fall through to the stepping handling.
4452 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4453 the passed in signal. Adjust debug output.
4454 (resume_callback): Rename to ...
4455 (linux_nat_resume_callback): ... this. Pass the thread's last
4456 stop signal, if in "pass" state.
4457 (linux_nat_resume): Adjust to rename.
4458 (stop_wait_callback): New assertion. Don't respawn signals;
4459 instead let the LWP remain with SIGNALLED set.
4460 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4461 * remote.c (append_pending_thread_resumptions): New.
4462 (remote_vcont_resume): Call it.
4463 * target.h (target_resume): Extend comment.
4464
4465 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4466
4467 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4468
4469 2012-06-27 Doug Evans <dje@google.com>
4470
4471 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4472 Delete have_addr_base, unused. All uses updated.
4473 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4474 (dwarf2_get_pc_bounds): Add ranges_base.
4475 (dwarf2_record_block_ranges): Ditto.
4476
4477 2012-06-27 Tom Tromey <tromey@redhat.com>
4478
4479 PR macros/7961:
4480 * varobj.c (varobj_create): Update.
4481 (varobj_set_value): Update.
4482 * tracepoint.c (validate_actionline): Update.
4483 (encode_actions_1): Update.
4484 * parse.c (parse_exp_1): Add 'pc' argument.
4485 (parse_exp_in_context): Add 'pc' argument. Change how
4486 expression_context_pc is set.
4487 (parse_expression): Update.
4488 (parse_field_expression): Update.
4489 * expression.h (parse_exp_1): Update.
4490 * eval.c (parse_to_comma_and_eval): Update.
4491 * breakpoint.c (set_breakpoint_condition): Update.
4492 (update_watchpoint): Update.
4493 (init_breakpoint_sal): Update
4494 (find_condition_and_thread): Update.
4495 (watch_command_1): Update.
4496 (update_breakpoint_locations): Update.
4497 * ada-lang.c (ada_read_renaming_var_value): Update.
4498 (create_excep_cond_exprs): Update.
4499
4500 2012-06-27 Doug Evans <dje@google.com>
4501
4502 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4503 type units.
4504
4505 2012-06-26 Doug Evans <dje@google.com>
4506
4507 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4508 prototype.
4509 (error_check_comp_unit_head): New arg abbrev_section. All callers
4510 updated.
4511 (read_and_check_comp_unit_head): Ditto.
4512 (read_and_check_type_unit_head): Ditto.
4513
4514 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4515
4516 New attribute 'last' for gdb.Symtab_and_line.
4517 * NEWS (Python Scripting): Add entry about the new attribute.
4518 * python/py-symtab.c (salpy_get_last): New function which
4519 implements the get method for the 'last' attribute of
4520 gdb.Symtab_and_line.
4521 (sal_object_getset): Add entry for the 'last' attribute.
4522
4523 2012-06-26 Doug Evans <dje@google.com>
4524
4525 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4526 (dwo_sections): Add macinfo, macro.
4527 (dwarf2_locate_dwo_sections): Watch for macro sections.
4528 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4529 All callers updated. Handle DWO files.
4530
4531 * NEWS: Mention new options "set debug dwarf2-read" and
4532 "set debug symtab-create".
4533 * dwarf2read.c (dwarf2_read_debug): New static global.
4534 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4535 (process_queue): Ditto.
4536 (process_full_comp_unit): Ditto.
4537 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4538 * elfread.c (elf_symfile_read): Add debugging printf.
4539 * minsyms.c (install_minimal_symbols): Ditto.
4540 * psymtab.c (allocate_psymtab): Ditto.
4541 * symfile.c (allocate_symtab): Ditto.
4542 * symtab.c (symtab_create_debug): New global.
4543 (_initialize_symtab): Add new option "set debug symtab-create".
4544 * symtab.h (symtab_create_debug): Declare.
4545
4546 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4547 (lookup_dwo_type_unit): Ditto.
4548
4549 2012-06-26 Roland McGrath <roland@hack.frob.com>
4550 H.J. Lu <hongjiu.lu@intel.com>
4551
4552 * amd64-linux-nat.c: Include <sys/user.h>.
4553 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4554 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4555 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4556
4557 * configure.ac: Check if the fs_base and gs_base members of
4558 `struct user_regs_struct' exist.
4559 * config.in: Regenerated.
4560 * configure: Likewise.
4561
4562 2012-06-25 Michael Eager <eager@eagercon.com>
4563
4564 PR python/14291
4565 * python/python.c (gdbpy_write): Check for interrupted output.
4566
4567 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4568
4569 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4570 register as a stack alignment in ARM mode.
4571
4572 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4573
4574 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4575 * gnulib/config.in: Regenerate.
4576 * gnulib/configure: Likewise.
4577 * gnulib/import/m4/extensions.m4: Update it.
4578 * gnulib/import/m4/gnulib-common.m4: Likewise.
4579 * gnulib/import/m4/memmem.m4: Likewise.
4580 * gnulib/import/m4/mmap-anon.m4: Likewise.
4581 * gnulib/import/m4/multiarch.m4: Likewise.
4582 * gnulib/import/stdint.in.h: Likewise.
4583
4584 2012-06-24 Yao Qi <yao@codesourcery.com>
4585
4586 * corefile.c (write_memory_with_notification): New.
4587 * gdbcore.h: Declare write_memory_with_notification.
4588 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4589 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4590 * valops.c (value_assign): Likewise.
4591 * python/py-inferior.c (infpy_write_memory): Call
4592 'write_memory_with_notification'.
4593
4594 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4595
4596 * cc-with-index.sh: Use also -ex "set auto-load no".
4597
4598 2012-06-23 Doug Evans <dje@google.com>
4599
4600 PR 14125
4601 * NEWS: Document additions to .gdb_index.
4602 * dwarf2read.c: #include "gdb/gdb-index.h".
4603 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4604 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4605 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4606 (dwarf2_read_index): Recognize version 7.
4607 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4608 block_kind, domain): All callers updated.
4609 (dw2_find_symbol_file): Handle new index CU values.
4610 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4611 (add_index_entry): New args is_static, kind. All callers updated.
4612 (offset_type_compare, uniquify_cu_indices): New functions
4613 (symbol_kind): New function.
4614 (write_psymtabs_to_index): Remove duplicate CU values.
4615 (write_psymtabs_to_index): Write .gdb_index version 7.
4616
4617 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4618
4619 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4620 * configure: Regenerate.
4621
4622 2012-06-20 Yao Qi <yao@codesourcery.com>
4623
4624 * python/py-inferior.c: Update comments of infpy_read_memory
4625 and infpy_write_memory.
4626
4627 2012-06-19 Tom Tromey <tromey@redhat.com>
4628
4629 PR exp/9514:
4630 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4631 (push_type_address_space): Remove.
4632 * parse.c (insert_into_type_stack): New function.
4633 (insert_type): Likewise.
4634 (insert_type_address_space): Rename from push_type_address_space.
4635 Insert tp_space_identifier.
4636 * c-exp.y (ptr_operator): New production.
4637 (abs_decl): Use ptr_operator.
4638 (space_identifier): Call insert_type_address_space.
4639 (ptype): Don't use const_or_volatile_or_space_identifier.
4640 (const_or_volatile_noopt): Call insert_type.
4641 (conversion_type_id, conversion_declarator): New productions.
4642 (operator): Use conversion_type_id.
4643
4644 2012-06-18 Doug Evans <dje@google.com>
4645
4646 * symtab.h (minimal_symbol): New member created_by_gdb.
4647 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4648 created by gdb.
4649 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4650 (search_symbols): Call it instead of lookup_symbol.
4651 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4652
4653 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4654 Adjust address for DW_OP_GNU_addr_index.
4655 * dwarf2expr.h (dwarf_expr_context): Update comment.
4656 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4657 all callers updated. Handle TLS vars described with
4658 DW_OP_GNU_const_index.
4659 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4660 and DW_OP_GNU_const_index.
4661 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4662
4663 * block.c (find_block_in_blockvector): Make explicit the fact that we
4664 ignore GLOBAL_BLOCK.
4665
4666 2012-06-18 Tom Tromey <tromey@redhat.com>
4667
4668 * c-exp.y (operator): Remove trailing space after "delete" and
4669 "delete[]".
4670
4671 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4672 Jan Kratochvil <jan.kratochvil@redhat.com>
4673
4674 Switch i386 and derived targets to ON_STACK.
4675 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4676 (amd64_dicos_init_abi): Remove its installment.
4677 * dicos-tdep.c (dicos_init_abi): Remove the
4678 set_gdbarch_call_dummy_location call. Update the comment here.
4679 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4680 (i386_dicos_init_abi): Remove its installment.
4681 * i386-tdep.c (i386_push_dummy_code): New function.
4682 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4683 i386_push_dummy_code.
4684
4685 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4686
4687 Remove stale dummy frames.
4688 * breakpoint.c: Include dummy-frame.h.
4689 (longjmp_breakpoint_ops): New variable.
4690 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4691 bp_longjmp_call_dummy.
4692 (bpstat_what, bptype_string, print_one_breakpoint_location)
4693 (init_bp_location): Support bp_longjmp_call_dummy.
4694 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4695 (set_longjmp_breakpoint_for_call_dummy)
4696 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4697 functions.
4698 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4699 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4700 FIXME comment and extend the other comment for bp_call_dummy.
4701 (set_longjmp_breakpoint_for_call_dummy)
4702 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4703 * dummy-frame.c: Include gdbthread.h.
4704 (pop_dummy_frame_bpt): New function.
4705 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4706 (dummy_frame_discard): New function.
4707 (cleanup_dummy_frames): Update the comment about longjmps.
4708 * dummy-frame.h (dummy_frame_discard): New declaration.
4709 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4710 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4711 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4712 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4713 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4714 keep_going if IS_LONGJMP and there is no other reason to stop.
4715
4716 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4717
4718 * remote-sim.c (sim_command_completer): Initialize
4719 variable 'result'.
4720
4721 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4722
4723 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4724 * dwarf2loc.c (call_site_parameter_matches): Support
4725 CALL_SITE_PARAMETER_PARAM_OFFSET.
4726 (needs_dwarf_reg_entry_value): Push stub value.
4727 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4728 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4729 * gdbtypes.h (enum call_site_parameter_kind): New item
4730 CALL_SITE_PARAMETER_PARAM_OFFSET.
4731 (struct call_site.parameter.u): New field param_offset.
4732
4733 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4734
4735 Code cleanup: Generalize call_site.parameter key.
4736 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4737 variable dwarf_reg. New variable kind_u. Update parameters to
4738 push_dwarf_reg_entry_value.
4739 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4740 * dwarf2expr.h (enum call_site_parameter_kind)
4741 (union call_site_parameter_u): Forward declarations.
4742 (struct dwarf_expr_context_funcs): Update parameters and their
4743 description for push_dwarf_reg_entry_value.
4744 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4745 * dwarf2loc.c (call_site_parameter_matches): New function.
4746 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4747 description. Use call_site_parameter_matches.
4748 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4749 Update parameters and their description.
4750 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4751 New variable kind_u. Adjust the caller for updated parameters.
4752 (needs_dwarf_reg_entry_value): Update parameters.
4753 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4754 instead of attr. Update for the changed fields of struct
4755 call_site_parameter.
4756 * gdbtypes.h: Include dwarf2expr.h.
4757 (enum call_site_parameter_kind): New.
4758 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4759 fb_offset into new union u.
4760
4761 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4762
4763 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4764 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4765 for x32.
4766
4767 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4768
4769 * amd64-linux-nat.c (compat_x32_clock_t): New.
4770 (compat_x32_siginfo_t): Likewise.
4771 (compat_x32_siginfo_from_siginfo): Likewise.
4772 (siginfo_from_compat_x32_siginfo): Likewise.
4773 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4774 and siginfo_from_compat_x32_siginfo for x32.
4775
4776 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4777
4778 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4779
4780 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4781
4782 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4783 instead of gdbarch_ptr_bit.
4784 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4785 (amd64_supply_native_gregset): Likewise.
4786 (amd64_collect_native_gregset): Likewise.
4787 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4788 (amd64_supply_xsave): Likewise.
4789 (amd64_collect_fxsave): Likewise.
4790 (amd64_collect_xsave): Likewise.
4791
4792 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4793
4794 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4795 (amd64_linux_read_description): Check DS segment register for
4796 x32 process.
4797
4798 2012-06-15 Tom Tromey <tromey@redhat.com>
4799
4800 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4801 init_cutu_and_read_dies.
4802
4803 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4804
4805 * MAINTAINERS (Write After Approval): Add myself to the list.
4806
4807 2012-06-15 Tom Tromey <tromey@redhat.com>
4808
4809 * valops.c (value_find_oload_method_list): Now static.
4810 * value.h (value_find_oload_method_list): Don't declare.
4811
4812 2012-06-15 Tom Tromey <tromey@redhat.com>
4813
4814 * valops.c (find_overload_match): Use value_ind.
4815
4816 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4817
4818 * infrun.c (handle_inferior_event): Correct indentation.
4819
4820 2012-06-14 Doug Evans <dje@google.com>
4821
4822 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4823 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4824 All uses updated.
4825 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4826 updated. Handle DEBUG_LOC_START_LENGTH.
4827 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4828 (loclist_describe_location): Ditto.
4829
4830 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4831
4832 PR backtrace/13866
4833 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4834 after hiding inline functions.
4835
4836 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4837
4838 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4839 _initialize_inf_ttrace.
4840
4841 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4842
4843 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4844 _initialize_hppa_hpux_nat.
4845
4846 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4847
4848 * remote-sim.c (sim_command_completer): Change type of return
4849 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4850
4851 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4852 Jan Kratochvil <jan.kratochvil@redhat.com>
4853
4854 PR tdep/14222
4855 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4856 stack on a 16-byte boundary.
4857
4858 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4859
4860 * jit.c (finalize_symtab): Set function's return type to 'void' by
4861 default.
4862
4863 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4864 H.J. Lu <hongjiu.lu@intel.com>
4865
4866 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4867 Move bits common to both the classic LP64 and the new x32 ILP32
4868 ABI here.
4869 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4870 (amd64_x32_linux_init_abi): New function.
4871 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4872 subtype.
4873
4874 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4875 * i386-tdep.c (i386_pseudo_register_name): Make public.
4876 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4877 * amd64-tdep.c (amd64_dword_names): Add "eip".
4878 (amd64_x32_pseudo_register_type): New function
4879 (amd64_x32_init_abi): New function.
4880
4881 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4882
4883 PR build/14003
4884 * inferior.h (struct inferior_suspend_state): Comment out.
4885 (struct inferior): Comment out the field suspend.
4886 * infrun.c (struct infcall_suspend_state): Comment out the field
4887 inferior_suspend.
4888 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4889 out its assignment.
4890
4891 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4892
4893 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4894 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4895 function comment. Return ERROR for unresolved cases. Implement
4896 returning proper NAME.
4897 (yylex): Accept also NAME from classify_inner_name.
4898 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4899 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4900 LOC_TYPEDEF type.
4901 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4902
4903 2012-06-13 Tom Tromey <tromey@redhat.com>
4904
4905 * breakpoint.c (condition_completer): New function.
4906 (_initialize_breakpoint): Use it.
4907 * value.c (complete_internalvar): New function.
4908 * value.h (complete_internalvar): Declare.
4909
4910 2012-06-13 Tom Tromey <tromey@redhat.com>
4911
4912 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4913 * breakpoint.c (catch_syscall_completer): Return a VEC.
4914 * cli/cli-cmds.c (complete_command): Update.
4915 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4916 (complete_on_enum): Likewise.
4917 * command.h: Include gdb_vecs.h.
4918 (completer_ftype): Change return type.
4919 (complete_on_cmdlist, complete_on_enum): Likewise.
4920 * completer.c (noop_completer, filename_completer)
4921 (location_completer): Return a VEC.
4922 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4923 to a VEC.
4924 (expression_completer, complete_line_internal, complete_line)
4925 (command_completer): Return a VEC.
4926 (gdb_completion_word_break_characters, line_completion_function):
4927 Update.
4928 * completer.h: Include gdb_vecs.h.
4929 (complete_line, noop_completer, filename_completer)
4930 (expression_completer, location_completer, command_completer):
4931 Update.
4932 * f-lang.c (f_word_break_characters): Return a VEC.
4933 * interps.c (interpreter_completer): Return a VEC.
4934 * language.h (struct language_defn)
4935 <la_make_symbol_completion_list>: Return a VEC.
4936 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4937 * symtab.c (free_completion_list): Take a VEC.
4938 (return_val_size, return_val_index): Remove.
4939 (return_val): Now a VEC.
4940 (completion_list_add_name): Update.
4941 (default_make_symbol_completion_list_break_on)
4942 (default_make_symbol_completion_list, make_symbol_completion_list)
4943 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4944 Return a VEC.
4945 (add_filename_to_list): Update.
4946 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4947 <list>: Now a VEC.
4948 (maybe_add_partial_symtab_filename): Update.
4949 (make_source_files_completion_list): Return a VEC.
4950 * symtab.h (default_make_symbol_completion_list_break_on)
4951 (default_make_symbol_completion_list, make_symbol_completion_list)
4952 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4953 (make_source_files_completion_list): Update.
4954
4955 2012-06-13 Tom Tromey <tromey@redhat.com>
4956
4957 * breakpoint.c (add_catch_command): Use completer_ftype.
4958 * breakpoint.h: Include command.h.
4959 (add_catch_command): Use completer_ftype.
4960 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4961 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4962 Use completer_ftype.
4963 * command.h (completer_ftype): New typedef.
4964 (set_cmd_completer): Use it.
4965 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4966 completer_ftype.
4967
4968 2012-06-13 Pedro Alves <palves@redhat.com>
4969
4970 Partial revert of previous change.
4971
4972 * serial.c (scb_base): New global.
4973 (serial_for_fd): New.
4974 (serial_open, serial_fdopen_ops): Link new serial in open serials
4975 chain.
4976 (do_serial_close): Unlink serial from the open serials chain.
4977
4978 2012-06-12 Pedro Alves <palves@redhat.com>
4979
4980 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4981 threads here.
4982 (prepare_for_detach): No longer context switch here in non-stop
4983 mode.
4984 (fetch_inferior_event): Ditto.
4985 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4986 to the event thread before removing breakpoints. Switch to the
4987 event thread before inserting breakpoints and resuming.
4988 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4989 event thread before resuming.
4990 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4991 Switch to the event thread before removing breakpoints.
4992
4993 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4994
4995 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4996 special characters correctly for the Windows shells. See
4997 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4998 report.
4999 [!__MINGW32__]: Remove extra double quote character from special
5000 characters.
5001
5002 2012-06-11 Stan Shebs <stan@codesourcery.com>
5003
5004 * ui-out.h: Remove #if 0 declarations.
5005 * ui-out.c: Remove #if 0 functions.
5006
5007 2012-06-11 Pedro Alves <palves@redhat.com>
5008
5009 * ser-base.c (run_async_handler_and_reschedule): New.
5010 (fd_event, push_event): Use it.
5011 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5012 reference count to 1.
5013 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5014 instead of xfree.
5015 (serial_is_open, serial_ref, serial_unref): New.
5016 * serial.h (serial_open): Adjust comment.
5017 (serial_is_open): Declare.
5018 (serial_close): Adjust comment.
5019 (serial_ref, serial_unref) Declare.
5020 (struct serial): New field 'refcnt'.
5021
5022 2012-06-11 Pedro Alves <palves@redhat.com>
5023
5024 Remove #if 0'd "connect" command, and unnecessary associated
5025 refcounting and serial reuse bits.
5026
5027 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5028 * serial.c (last_serial_opened): Delete.
5029 (scb_base): Delete.
5030 (serial_open): Adjust.
5031 (serial_for_fd): Delete.
5032 (serial_fdopen_ops, do_serial_close): Adjust.
5033 (serial_fdopen_ops): Adjust.
5034
5035 2012-06-11 Pedro Alves <palves@redhat.com>
5036
5037 * serial.c (do_serial_close): Remove early return when SCB is
5038 null.
5039
5040 2012-06-11 Tom Tromey <tromey@redhat.com>
5041
5042 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5043
5044 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5045
5046 Fix regression by the "ambiguous linespec" series.
5047 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5048 get_last_displayed_symtab and get_last_displayed_line and depending
5049 on CURSAL.
5050
5051 2012-06-11 Tom Tromey <tromey@redhat.com>
5052
5053 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5054 (dw2_find_symbol_file): Use it.
5055
5056 2012-06-11 Michael Eager <eager@eagercon.com>
5057
5058 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5059 * mips-linux-tdep.h (mips_signals): New
5060
5061 2012-06-11 Tom Tromey <tromey@redhat.com>
5062
5063 * infrun.c (handle_inferior_event)
5064 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5065 breakpoint.
5066 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5067 exception logic in all cases. Update comments.
5068 (insert_longjmp_resume_breakpoint): Set the exception resume
5069 breakpoint.
5070
5071 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5072
5073 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5074
5075 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5076
5077 * valarith.c (binop_types_user_defined_p): Fix a typo.
5078
5079 2012-06-08 Yao Qi <yao@codesourcery.com>
5080 Chung-Lin Tang <cltang@codesourcery.com>
5081
5082 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5083 * arch-utils.h: Declare.
5084 * gdbarch.sh: Add return_in_first_hidden_param_p.
5085 * gdbarch.c, gdbarch.h: Regenerated.
5086 * infcall.c (call_function_by_hand): Call
5087 gdbarch_return_in_first_hidden_param_p instead of
5088 language_pass_by_reference.
5089
5090 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5091 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5092 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5093 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5094 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5095 `cplus_return_struct_by_reference'.
5096 (tic6x_return_value): Handle language cplusplus.
5097 (tic6x_return_in_first_hidden_param_p): New.
5098 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5099
5100 2012-06-07 Doug Evans <dje@google.com>
5101
5102 * dwarf2read.c (dwarf2_cu): Add comment.
5103
5104 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5105
5106 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5107 variable.
5108 (mips_eabi_push_dummy_call): Likewise.
5109 (mips_n32n64_push_dummy_call): Likewise.
5110 (mips_o32_push_dummy_call): Likewise.
5111 (mips_o64_push_dummy_call): Likewise.
5112
5113 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5114
5115 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5116
5117 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5118
5119 * mips-tdep.c (mips_pseudo_register_type): Use
5120 mips_float_register_p.
5121
5122 2012-06-06 Pedro Alves <palves@redhat.com>
5123
5124 * infrun.c (handle_inferior_event): Remove calls to
5125 reinit_frame_cache that follow a context_switch call.
5126
5127 2012-06-06 Pedro Alves <palves@redhat.com>
5128
5129 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5130 context_switch and remove stale comment.
5131
5132 2012-06-06 Pedro Alves <palves@redhat.com>
5133
5134 * infrun.c (struct execution_control_state): Remove
5135 `new_thread_event' field.
5136 (handle_inferior_event): Simplify new threads handling; don't
5137 resume the inferior if we find a new thread.
5138
5139 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5140
5141 * NEWS: Document the deprecation of SH's 'regs' command.
5142 * inferior.h (all_registers_info): Add function declaration.
5143 * sh-tdep.c (sh_show_regs): Remove variable.
5144 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5145 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5146 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5147 (sh_show_regs_command): Remove functions.
5148 (sh_gdbarch_init): Don't set sh_show_regs.
5149 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5150 'info all-registers'.
5151 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5152 (sh64_show_regs): Remove functions.
5153 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5154
5155 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5156
5157 * configure.ac: Move development=true below AC_INIT.
5158 * configure: Regenerate.
5159
5160 2012-06-05 Stan Shebs <stan@codesourcery.com>
5161
5162 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5163 gdb_stdout.
5164
5165 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5166
5167 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5168 argument as ssize_t.
5169 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5170 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5171 * target.c (target_read_stack, target_write_memory)
5172 (target_write_raw_memory): Likewise.
5173 * target.h (target_read_stack, target_write_memory)
5174 (target_write_raw_memory): Likewise.
5175
5176 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5179 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5180 * target.c (target_read_memory): Change LEN to ssize_t.
5181 * target.h (target_read_memory): Change LEN to ssize_t.
5182
5183 2012-06-05 Pedro Alves <palves@redhat.com>
5184
5185 PR backtrace/13866
5186
5187 * breakpoint.c (until_break_command): Only fetch the selected
5188 frame after decode_line_1.
5189
5190 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5191
5192 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5193 event breakpoint at _start, __start or main if a program
5194 interpreter is not found.
5195
5196 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5197
5198 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5199 Add declaration.
5200 * windows-tdep.c: #include "objfiles.h".
5201 (windows_iterate_over_objfiles_in_search_order): New function.
5202 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5203 iterate_over_objfiles_in_search_order gdbarch method to
5204 windows_iterate_over_objfiles_in_search_order.
5205 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5206
5207 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5208
5209 * gdbarch.sh: Add generation of
5210 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5211 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5212 (iterate_over_objfiles_in_search_order): New gdbarch method.
5213 * gdbarch.h, gdbarch.c: Regenerate.
5214 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5215 Add declaration.
5216 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5217 New function.
5218 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5219 out of lookup_symbol_aux_symtabs.
5220 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5221 call to lookup_symbol_aux_objfile.
5222 (struct global_sym_lookup_data): New type.
5223 (lookup_symbol_global_iterator_cb): New function.
5224 (lookup_symbol_global): Search for symbol using
5225 gdbarch_iterate_over_objfiles_in_search_order and
5226 lookup_symbol_global_iterator_cb.
5227 * findvar.c (struct minsym_lookup_data): New type.
5228 (minsym_lookup_iterator_cb): New function.
5229 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5230 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5231 and minsym_lookup_iterator_cb.
5232
5233 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5234
5235 Revert the following patch:
5236 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5237 try locating the symbol in the symbol's own objfile first, before
5238 extending the search to all objfiles.
5239 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5240 out of lookup_symbol_aux_symtabs.
5241 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5242 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5243 Do not search EXCLUDE_OBJFILE.
5244 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5245 (lookup_symbol_global): Search for matches in the block's objfile
5246 first, before searching all other objfiles.
5247
5248 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5249
5250 * breakpoint.c (find_condition_and_thread): Stop parsing
5251 as soon as the first invalid keyword is found.
5252
5253 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5254
5255 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5256
5257 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5258
5259 * config/djgpp/djcheck.sh: Add copyright header.
5260
5261 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5262
5263 * copyright.py (update_files, main): Fix path to update-copyright
5264 script.
5265
5266 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5267
5268 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5269 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5270 for which a reminder to update by hand is printed.
5271
5272 2012-06-04 Doug Evans <dje@google.com>
5273
5274 * buildsym.c (make_blockvector): Add comment.
5275
5276 2012-06-04 Pedro Alves <palves@redhat.com>
5277
5278 * arch-utils.c (default_gdb_signal_from_target): Delete.
5279 * arch-utils.h (default_gdb_signal_from_target): Delete.
5280 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5281 gdbarch_gdb_signal_from_target_p.
5282 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5283 predicate).
5284 * gdbarch.h: Regenerate.
5285 * gdbarch.c: Regenerate.
5286
5287 2012-06-04 Pedro Alves <palves@redhat.com>
5288
5289 * gdbarch.sh (gdb_signal_from_target): Mention that the
5290 implementation of the method must be host independent.
5291 * gdbarch.h: Regenerate.
5292
5293 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5294
5295 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5296 parameters.
5297 (target_read_memory_bfd): New function.
5298 (symbol_file_add_from_memory): Use it.
5299
5300 2012-06-03 Doug Evans <dje@google.com>
5301
5302 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5303 of primary symtab.
5304 (basic_lookup_transparent_type): Ditto.
5305
5306 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5307 (ALL_PRIMARY_SYMTABS): Use it.
5308 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5309 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5310 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5311 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5312 (basic_lookup_transparent_type): Ditto.
5313
5314 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5315
5316 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5317 it to optimize resolution of demangled name.
5318
5319 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5320
5321 * configure.ac (development): Define new variable.
5322 Call AC_CHECK_LIB for mcheck if $development.
5323 (ERROR_ON_WARNING): Enable it by default only if $development.
5324 * config.in: Regenerate.
5325 * configure: Regenerate.
5326
5327 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5328
5329 * target.c (target_read_memory): Make LEN argument as size_t.
5330 * target.h (target_read_memory): Likewise.
5331
5332 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5333
5334 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5335
5336 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5337
5338 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5339 BookE interface for PowerPC server processors if not available
5340 in the Linux Kernel.
5341
5342 2012-05-31 Keith Seitz <keiths@redhat.com>
5343
5344 * linespec.c (decode_objc): Add cleanup to free
5345 INFO.FILE_SYMTABS.
5346 (find_linespec_symbols): Add cleanup to free CLASSES.
5347 * symfile.c (find_separate_debug_file_by_debuglink): Add
5348 cleanup to free DEBUGLINK.
5349 * ui-out.c (clear_header_list): No need to check if
5350 HEADER_NEXT.COLHDR is NULL.
5351 Free HEADER_NEXT.COL_NAME.
5352
5353 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5354
5355 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5356 warning.
5357
5358 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5359
5360 * configure.host (gdb_host_cpu): Handle tilegx*.
5361 (gdb_host): Handle tilegx-*-linux*.
5362 * tilegx-linux-nat.c: New file.
5363 * config/tilegx/linux.mh: New file.
5364
5365 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5366
5367 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5368 tilegx-linux-tdep.o.
5369 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5370 tilegx-linux-tdep.c.
5371 * configure.tgt: Handle tilegx-*-linux*.
5372 * tilegx-tdep.h: New file.
5373 * tilegx-tdep.c: New file.
5374 * tilegx-linux-tdep.c: New file.
5375 * regformats/reg-tilegx.dat: New file.
5376
5377 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5378
5379 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5380 accounting of hw watchpoints on ppc.
5381
5382 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5383
5384 * source.c (openp): Expand tilde in path entries.
5385
5386 2012-05-29 Doug Evans <dje@google.com>
5387
5388 * buildsym.c (block_compar): Fix comment.
5389 (end_symtab): Fix and clarify some comments.
5390
5391 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5392 cleanup_undefined_types.
5393 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5394 All callers updated.
5395
5396 2012-05-29 Tom Tromey <tromey@redhat.com>
5397
5398 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5399 fails.
5400 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5401 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5402 fails.
5403 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5404 fails.
5405
5406 2012-05-29 Tristan Gingold <gingold@adacore.com>
5407
5408 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5409 (struct darwin_info): ... New struct.
5410 (solib_darwin_pspace_data): New variable.
5411 (darwin_pspace_data_cleanup): New function.
5412 (get_darwin_info): Likewise.
5413 (darwin_dyld_version_ok, darwin_load_image_infos)
5414 (darwin_solib_get_all_image_info_addr_at_init)
5415 (darwin_solib_read_all_image_info_addr): Add info argument.
5416 Adjust code.
5417 (darwin_current_sos): Use per pspace structure.
5418 (darwin_solib_create_inferior_hook): Likewise.
5419 (darwin_clear_solib): Likewise.
5420 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5421
5422 2012-05-28 Pedro Alves <palves@redhat.com>
5423
5424 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5425 block that uses them. Clear ecss before handling each event.
5426
5427 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 * solib-svr4.c (svr4_current_sos): New comment on
5430 svr4_current_sos_via_xfer_libraries fall back.
5431
5432 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5433
5434 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5435 it as a fallback for TYPE_IS_OPAQUE.
5436 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5437 symbols for lookup_symbol.
5438
5439 2012-05-24 John Steele Scott <toojays@toojays.net>
5440
5441 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5442 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5443 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5444 (check_producer): ... this new function, which also checks for ICC
5445 and caches the result.
5446 (producer_is_icc): New function.
5447 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5448 producer was ICC.
5449
5450 2012-05-24 Pedro Alves <palves@redhat.com>
5451
5452 PR gdb/7205
5453
5454 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5455 (default_gdb_signal_to_target): ... this. Add comment.
5456 (default_gdb_signal_from_host): Rename to ...
5457 (default_gdb_signal_from_target): ... this. Add comment.
5458 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5459 (default_gdb_signal_to_target): ... this.
5460 (default_gdb_signal_from_host): Rename to ...
5461 (default_gdb_signal_from_target): ... this.
5462 * corelow.c (core_open): Adjust to naming change. Replace comment.
5463 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5464 (gdb_signal_from_target): ... this. Adjust to
5465 default_gdb_signal_from_host naming change. Extend comment.
5466 (gdb_signal_to_host): Rename to ...
5467 (gdb_signal_to_target): ... this. Adjust to
5468 default_gdb_signal_to_host naming change.
5469 * gdbarch.h, gdbarch.c: Renegerate.
5470
5471 2012-05-24 Pedro Alves <palves@redhat.com>
5472
5473 PR gdb/7205
5474
5475 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5476
5477 2012-05-24 Pedro Alves <palves@redhat.com>
5478
5479 PR gdb/7205
5480
5481 Replace target_signal with gdb_signal throughout.
5482
5483 2012-05-24 Pedro Alves <palves@redhat.com>
5484
5485 PR tui/14159
5486
5487 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5488 string, instead of reusing the va_list argument.
5489
5490 2012-05-24 Tom Tromey <tromey@redhat.com>
5491
5492 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5493 Remove.
5494
5495 2012-05-23 Doug Evans <dje@google.com>
5496
5497 * symtab.c (search_symbols): Formatting fixes.
5498 (print_symbol_info): Formatting fixes.
5499
5500 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5501 int64_t change to leb128 API.
5502 (read_encoded_value, decode_frame_entry_1): Ditto.
5503 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5504 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5505 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5506 (execute_stack_op): Ditto.
5507 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5508 (safe_read_uleb128, safe_read_sleb128): Ditto.
5509 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5510 (dwarf2_compile_expr_to_ax): Ditto.
5511 (locexpr_describe_location_piece): Ditto.
5512 (disassemble_dwarf_expression): Ditto.
5513 (locexpr_describe_location_1): Ditto.
5514
5515 2012-05-23 Stan Shebs <stan@codesourcery.com>
5516 Kwok Cheung Yeung <kcy@codesourcery.com>
5517
5518 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5519 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5520 (mi-cmd-info.o): New rule.
5521 * osdata.h (info_osdata_command): New declaration.
5522 * osdata.c (info_osdata_command): Change to non-static.
5523 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5524 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5525 * mi/mi-cmd-info.c: New file.
5526
5527 2012-05-23 Doug Evans <dje@google.com>
5528
5529 * symtab.c (search_symbols): Pass NULL for file_matcher to
5530 expand_symtabs_matching if there are no files to match.
5531
5532 * gdbtypes.c (lookup_typename): Simplify.
5533
5534 2012-05-23 Pedro Alves <palves@redhat.com>
5535
5536 * arch-utils.h (default_target_signal_to_host): Delete.
5537 * arch-utils.c (default_target_signal_to_host): Delete.
5538 * gdbarch.sh (target_signal_to_host): Remove.
5539 * gdbarch.h, gdbarch.c: Regenerate.
5540
5541 2012-05-22 Doug Evans <dje@google.com>
5542
5543 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5544 "const gdb_byte *".
5545 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5546 (execute_cfa_program): Update to match API of leb128 functions.
5547 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5548 "const gdb_byte *".
5549 (read_unsigned_leb128, read_signed_leb128): Delete.
5550 (read_initial_length): Change type of buf argument to
5551 "const gdb_byte *".
5552 (read_encoded_value): Update to match API of leb128 functions.
5553 (decode_frame_entry): Change result to "const gdb_byte *", and
5554 similarly for "start" parameter.
5555 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5556 (dwarf2_build_frame_info): Change local frame_ptr to
5557 "const gdb_byte *".
5558 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5559 read_uleb128, read_sleb128. All callers updated.
5560 (safe_skip_leb128): New function.
5561 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5562 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5563 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5564 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5565 read_uleb128, read_sleb128.
5566 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5567 (execute_stack_op): Update to match API of leb128 functions.
5568 * dwarf2expr.h: #include "leb128.h".
5569 (read_uleb128, read_sleb128): Delete.
5570 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5571 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5572 * dwarf2loc.c (debug_loc_kind): New enum.
5573 (decode_debug_loc_addresses): New function.
5574 (decode_debug_loc_dwo_addresses): New function.
5575 (dwarf2_find_location_expression): Rewrite.
5576 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5577 (locexpr_describe_location_piece): Ditto.
5578 (disassemble_dwarf_expression): Ditto.
5579 (locexpr_describe_location_1): Ditto.
5580 (loclist_describe_location): Rewrite.
5581 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5582 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5583 (dwarf2_section_buffer_overflow_complaint): Renamed from
5584 dwarf2_macros_too_long_complaint. All callers updated.
5585 (skip_leb128): Delete.
5586 (init_cu_die_reader): Initialize reader->buffer_end.
5587 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5588 (skip_form_bytes): New arg buffer_end. All callers updated.
5589 Replace call to skip_leb128 with gdb_skip_leb128.
5590 (skip_unknown_opcode): New arg mac_end. All callers updated.
5591 (fill_in_loclist_baton): Initialize baton->from_dwo.
5592
5593 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5594
5595 * mips-linux-nat.c (mips_linux_read_description): Use a more
5596 verbose error message.
5597
5598 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5599
5600 * NEWS: Add MIPS/Linux DSP support.
5601 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5602 (SIGCONTEXT_DSPCTL): New macro.
5603 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5604 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5605 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5606 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5607 (N64_SIGCONTEXT_HI3): Likewise.
5608 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5609 (N64_SIGCONTEXT_LO3): Likewise.
5610 (N64_SIGCONTEXT_DSPCTL): Likewise.
5611 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5612 (mips_linux_o32_sigframe_init): Handle DSP registers.
5613 (mips_linux_n32n64_sigframe_init): Likewise.
5614
5615 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5616
5617 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5618 call to abort.
5619
5620 2012-05-22 Pedro Alves <palves@redhat.com>
5621
5622 * target.h (store_waitstatus): Move declaration ...
5623 * inf-child.h (store_waitstatus): ... here.
5624 * target.c: Move inclusion of gdb_wait.h, and ...
5625 (store_waitstatus): ... this ...
5626 * inf-child.c: ... here.
5627 * linux-nat.c: Include inf-child.h.
5628 * rs6000-nat.c: Include inf-child.h.
5629 * spu-linux-nat.c: Include inf-child.h.
5630
5631 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5632
5633 * tracepoint.c (start_tracing): Add missing i18n markup.
5634 (stop_tracing, set_trace_user): Ditto.
5635 (set_trace_notes, set_trace_stop_notes): Ditto.
5636
5637 2012-05-21 Tom Tromey <tromey@redhat.com>
5638
5639 PR c++/7173:
5640 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5641 types.
5642 * value.h (value_cast_pointers): Update.
5643 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5644 (value_cast): Update.
5645 (update_search_result): New function.
5646 (do_search_struct_field): New, from search_struct_field. Check
5647 for ambiguous results.
5648 (search_struct_field): Rewrite.
5649 * infcall.c (value_arg_coerce): Update.
5650 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5651 value_cast_pointers.
5652 * ada-lang.c (ada_convert_actual): Update.
5653
5654 2012-05-21 Tom Tromey <tromey@redhat.com>
5655
5656 * macroexp.c (macro_stringify): Terminate the string.
5657
5658 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5659
5660 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5661 Describe it.
5662 * auto-load.c (auto_load_expand_dir_vars): New function.
5663 (auto_load_safe_path_vec_update): Use it, remove the
5664 substitute_path_component call thanks to it.
5665 (auto_load_objfile_script): Remove the debug_file_directory processing.
5666 Use auto_load_expand_dir_vars, remove the substitute_path_component
5667 call thanks to it.
5668 * configure: Regenerate.
5669 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5670 path. Escape $ also for $debugdir.
5671 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5672 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5673
5674 2012-05-20 Doug Evans <dje@google.com>
5675
5676 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5677 before use. Check for symtab->includes == NULL before scanning it.
5678
5679 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5680
5681 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5682
5683 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5684
5685 * NEWS: Add microMIPS support and "set mips compression",
5686 "show mips compression" commands.
5687 * mips-tdep.h (mips_isa): New enum.
5688 (gdbarch_tdep): Add mips_isa.
5689 (mips_pc_is_mips16): Update prototype.
5690 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5691 * mips-tdep.c (mips_compression_mips16): New variable.
5692 (mips_compression_micromips): Likewise.
5693 (mips_compression_strings): Likewise.
5694 (mips_compression_string): Likewise.
5695 (is_mips16_isa, is_micromips_isa): New functions.
5696 (is_mips16_addr): Rename to...
5697 (is_compact_addr): ... this.
5698 (unmake_mips16_addr): Likewise to...
5699 (unmake_compact_addr): ... this.
5700 (make_mips16_addr): Likewise to...
5701 (make_compact_addr): ... this.
5702 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5703 functions.
5704 (mips_elf_make_msymbol_special): Handle microMIPS code.
5705 (msymbol_is_special): Rename to...
5706 (msymbol_is_mips16): ... this.
5707 (mips_make_symbol_special, mips_pc_is_mips16): Update
5708 accordingly.
5709 (msymbol_is_mips, msymbol_is_micromips): New functions.
5710 (mips16_to_32_reg): Rename to...
5711 (mips_reg3_to_reg): ... this.
5712 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5713 (mips_pc_isa): Likewise.
5714 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5715 code.
5716 (mips_fetch_instruction): Pass return status instead of printing
5717 an error message if requested. Handle microMIPS code. Bail out
5718 on an invalid ISA.
5719 (micromips_op): New macro.
5720 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5721 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5722 (b6s4_op, b7s3_reg): Likewise.
5723 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5724 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5725 (mips_insn_size): New function.
5726 (mips32_next_pc): Update mips_fetch_instruction call.
5727 (micromips_relative_offset7): New function.
5728 (micromips_relative_offset10): Likewise.
5729 (micromips_relative_offset16): Likewise.
5730 (micromips_pc_insn_size): Likewise.
5731 (micromips_bc1_pc): Likewise.
5732 (micromips_next_pc): Likewise.
5733 (unpack_mips16): Update mips_fetch_instruction call.
5734 (extended_mips16_next_pc): Update according to change to
5735 mips16_to_32_reg.
5736 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5737 code.
5738 (mips16_scan_prologue): Update mips_fetch_instruction call.
5739 Update according to change to mips16_to_32_reg.
5740 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5741 (mips_insn16_frame_base_sniffer): Likewise.
5742 (micromips_decode_imm9): New function.
5743 (micromips_scan_prologue): Likewise.
5744 (mips_micro_frame_cache): Likewise.
5745 (mips_micro_frame_this_id): Likewise.
5746 (mips_micro_frame_prev_register): Likewise.
5747 (mips_micro_frame_sniffer): Likewise.
5748 (mips_micro_frame_unwind): New variable.
5749 (mips_micro_frame_base_address): New function.
5750 (mips_micro_frame_base): New variable.
5751 (mips_micro_frame_base_sniffer): New function.
5752 (mips32_scan_prologue): Update mips_fetch_instruction call.
5753 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5754 rather than for MIPS16.
5755 (mips_insn32_frame_base_sniffer): Likewise.
5756 (mips_addr_bits_remove): Handle microMIPS code.
5757 (deal_with_atomic_sequence): Rename to...
5758 (mips_deal_with_atomic_sequence): ... this. Update the type
5759 of the variable used to hold an instruction. Remove the ISA bit
5760 check. Update mips_fetch_instruction call.
5761 (micromips_deal_with_atomic_sequence): New function.
5762 (deal_with_atomic_sequence): Likewise.
5763 (mips_about_to_return): Handle microMIPS code. Update
5764 mips_fetch_instruction call.
5765 (heuristic_proc_start): Check for the standard MIPS ISA rather
5766 than for MIPS16. Update mips_pc_is_mips16 and
5767 mips_fetch_instruction calls. Handle microMIPS code.
5768 (mips_push_dummy_code): Handle microMIPS code.
5769 (mips_eabi_push_dummy_call): Likewise.
5770 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5771 (mips_o64_push_dummy_call): Handle microMIPS code.
5772 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5773 (is_delayed): Remove function.
5774 (mips_single_step_through_delay): Replace the call to is_delayed
5775 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5776 Handle microMIPS code.
5777 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5778 microMIPS code.
5779 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5780 call.
5781 (micromips_in_function_epilogue_p): New function.
5782 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5783 call.
5784 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5785 Handle microMIPS.
5786 (gdb_print_insn_mips): Likewise.
5787 (mips_breakpoint_from_pc): Likewise.
5788 (mips_remote_breakpoint_from_pc): New function.
5789 (mips32_instruction_has_delay_slot): Simplify making use of the
5790 updated mips_fetch_instruction interface.
5791 (micromips_instruction_has_delay_slot): New function.
5792 (mips16_instruction_has_delay_slot): Simplify making use of the
5793 updated mips_fetch_instruction interface.
5794 (mips_adjust_breakpoint_address): Check for the standard MIPS
5795 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5796 calls. Handle microMIPS code.
5797 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5798 (mips_skip_trampoline_code): Handle microMIPS code.
5799 (global_mips_compression): New function.
5800 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5801 file flags. Register the microMIPS remote breakpoint handler
5802 and heuristic frame unwinder.
5803 (show_mips_compression): New function.
5804 (_initialize_mips_tdep): Add the "set mips compression" and
5805 "show mips compression" commands.
5806
5807 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5808
5809 * ada-lang.c:
5810 * ada-tasks.c:
5811 * ada-varobj.c:
5812 * amd64-darwin-tdep.c:
5813 * arm-symbian-tdep.c:
5814 * arm-tdep.c:
5815 * avr-tdep.c:
5816 * ax-gdb.c:
5817 * bfin-linux-tdep.c:
5818 * breakpoint.c:
5819 * c-valprint.c:
5820 * cli/cli-cmds.c:
5821 * coffread.c:
5822 * cp-support.c:
5823 * cris-tdep.c:
5824 * dwarf2-frame-tailcall.c:
5825 * dwarf2-frame.c:
5826 * dwarf2expr.c:
5827 * dwarf2loc.c:
5828 * dwarf2read.c:
5829 * elfread.c:
5830 * eval.c:
5831 * expprint.c:
5832 * f-valprint.c:
5833 * frv-tdep.c:
5834 * h8300-tdep.c:
5835 * hppa-hpux-tdep.c:
5836 * hppa-tdep.c:
5837 * hppanbsd-tdep.c:
5838 * i386-nto-tdep.c:
5839 * i386-tdep.c:
5840 * i387-tdep.c:
5841 * ia64-tdep.c:
5842 * jit.c:
5843 * linespec.c:
5844 * linux-tdep.c:
5845 * lm32-tdep.c:
5846 * m2-valprint.c:
5847 * m32c-tdep.c:
5848 * m32r-rom.c:
5849 * m32r-tdep.c:
5850 * m68k-tdep.c:
5851 * m68klinux-tdep.c:
5852 * mi/mi-main.c:
5853 * microblaze-tdep.c:
5854 * mips-linux-tdep.c:
5855 * mips-tdep.c:
5856 * mn10300-tdep.c:
5857 * p-valprint.c:
5858 * parse.c:
5859 * ppc-linux-tdep.c:
5860 * ppc-sysv-tdep.c:
5861 * printcmd.c:
5862 * python/py-finishbreakpoint.c:
5863 * python/py-inferior.c:
5864 * python/py-infthread.c:
5865 * python/py-type.c:
5866 * python/python.c:
5867 * remote-fileio.c:
5868 * remote-m32r-sdi.c:
5869 * remote-mips.c:
5870 * reverse.c:
5871 * rl78-tdep.c:
5872 * rs6000-aix-tdep.c:
5873 * rs6000-tdep.c:
5874 * s390-tdep.c:
5875 * score-tdep.c:
5876 * sh64-tdep.c:
5877 * skip.c:
5878 * solib-darwin.c:
5879 * solib-dsbt.c:
5880 * solib-frv.c:
5881 * sparc-tdep.c:
5882 * spu-multiarch.c:
5883 * spu-tdep.c:
5884 * stack.c:
5885 * symfile.c:
5886 * symtab.c:
5887 * tic6x-tdep.c:
5888 * tracepoint.c:
5889 * v850-tdep.c:
5890 * valarith.c:
5891 * valprint.c:
5892 * value.c:
5893 * xcoffread.c:
5894 * xtensa-tdep.c:
5895 * ada-lang.c:
5896 * ada-tasks.c:
5897 * ada-varobj.c:
5898 * amd64-darwin-tdep.c:
5899 * arm-symbian-tdep.c:
5900 * arm-tdep.c: Delete unused variables.
5901
5902 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5903
5904 Rename $ddir to $datadir.
5905 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5906 * auto-load.c (auto_load_safe_path_vec_update)
5907 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5908 * configure: Regenerate.
5909 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5910 Likewise. Remove the 'use $ddir' help string.
5911
5912 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5913
5914 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5915 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5916
5917 2012-05-18 Tom Tromey <tromey@redhat.com>
5918
5919 PR exp/13907:
5920 * valprint.h (struct value_print_options) <symbol_print>: New
5921 field.
5922 * valprint.c (user_print_options): Add default for symbol_print.
5923 (show_symbol_print): New function.
5924 (generic_val_print): Respect symbol_print.
5925 (_initialize_valprint): Add "print symbol" setting.
5926 * f-valprint.c (f_val_print): Respect symbol_print.
5927 * c-valprint.c (c_val_print): Respect symbol_print.
5928 * NEWS: Update.
5929 * printcmd.c (print_address_symbolic): Return int. Ignore some
5930 zero-size symbols.
5931 (print_address_demangle): Return int.
5932 * defs.h: (print_address_symbolic): Return int.
5933 * value.h (print_address_demangle): Return int.
5934
5935 2012-05-18 Tom Tromey <tromey@redhat.com>
5936
5937 * valprint.c (val_print_string): Don't print leading space.
5938 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5939 print space before string or vtbl.
5940 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5941 before string.
5942 * jv-valprint.c (java_value_print): Print space before string.
5943 * go-valprint.c (print_go_string): Print space before string.
5944 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5945 space before string.
5946 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5947 space before string or vtbl.
5948 * auxv.c (fprint_target_auxv): Print space after address.
5949
5950 2012-05-18 Tom Tromey <tromey@redhat.com>
5951
5952 * printcmd.c (print_address_demangle): Remove special case for 0.
5953
5954 2012-05-18 Tom Tromey <tromey@redhat.com>
5955
5956 * printcmd.c (print_address_demangle): Add 'opts' argument.
5957 * p-valprint.c (pascal_val_print): Update.
5958 * jv-valprint.c (java_val_print): Update.
5959 * value.h: Update.
5960 * valprint.c (generic_val_print): Update.
5961 (print_function_pointer_address): Add 'options' argument. Remove
5962 'addressprint' argument. Update.
5963 * m2-valprint.c (print_unpacked_pointer): Update.
5964 * gnu-v3-abi.c (print_one_vtable): Update.
5965 (gnuv3_print_method_ptr): Update.
5966 * f-valprint.c (f_val_print): Update.
5967 * cp-valprint.c (cp_print_value_fields): Update.
5968 * valprint.h (print_function_pointer_address): Update.
5969 * c-valprint.c (c_val_print): Update.
5970
5971 2012-05-18 Tom Tromey <tromey@redhat.com>
5972
5973 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5974 directly corresponding to the found psymtab.
5975 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5976 (dw2_find_pc_sect_symtab): Use it.
5977 * block.h (blockvector_contains_pc): Declare.
5978 * block.c (find_block_in_blockvector): New function.
5979 (blockvector_for_pc_sect): Use it.
5980 (blockvector_contains_pc): New function.
5981
5982 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5983
5984 * mips-tdep.h (mips_write_pc): New prototype.
5985 * mips-tdep.c (mips_write_pc): Make external, add description.
5986 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5987 add description.
5988
5989 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5990
5991 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5992 mips_regnum->pc.
5993 (mips_unwind_pc, mips_write_pc): Likewise.
5994 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5995 gdbarch_read_pc.
5996
5997 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5998
5999 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6000 proc_warn, proc_error, proc_get_status, proc_flags,
6001 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6002 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6003 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6004 proc_stop_process, proc_wait_for_stop, proc_run_process,
6005 proc_set_traced_signals, proc_set_traced_faults,
6006 proc_set_traced_sysentry, proc_set_traced_sysexit,
6007 proc_set_held_signals, proc_get_held_signals,
6008 proc_get_traced_signals, proc_get_traced_faults,
6009 proc_get_traced_sysentry, proc_get_traced_sysexit,
6010 proc_clear_current_fault, proc_set_current_signal,
6011 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6012 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6013 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6014 proc_get_current_thread, proc_get_current_thread,
6015 proc_get_current_thread, proc_update_threads,
6016 proc_update_threads, proc_update_threads, proc_update_threads,
6017 proc_iterate_over_threads, procfs_find_new_threads,
6018 procfs_pid_to_str): Make static. Remove advance declaration.
6019 (proc_cursig): Make static. Conditionalized defintion on
6020 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6021 (proc_syscall, proc_set_kill_on_last_close,
6022 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6023 proc_get_pending_signals, proc_get_signal_actions,
6024 proc_trace_signal, proc_ignore_signal): Delete.
6025
6026 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6027
6028 * coffread.c (cs_section_address): Passing proper argument for
6029 `bfd_get_section_vma'.
6030 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6031 `bfd_get_section_flags'.
6032 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6033 `bfd_get_section_vma'.
6034
6035 2012-05-16 Tom Tromey <tromey@redhat.com>
6036
6037 PR macros/13205:
6038 * macrotab.h: (macro_define_special): Declare.
6039 (enum macro_special_kind): New.
6040 (struct macro_definition) <argc, replacement>: Update comments.
6041 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6042 (macro_define_object_internal): New function.
6043 (macro_define_object): Use it.
6044 (macro_define_special): New function.
6045 (fixup_definition): New function.
6046 (macro_lookup_definition, foreach_macro_in_scope)
6047 (foreach_macro): Use fixup_definition.
6048 * macroexp.h (macro_stringify): Declare.
6049 * macroexp.c (free_buffer_return_text): New function.
6050 (stringify): Constify "arg".
6051 (macro_stringify): New function.
6052 * dwarf2read.c (macro_start_file): Call macro_define_special.
6053
6054 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6055 Maciej W. Rozycki <macro@mips.com>
6056
6057 * breakpoint.h (bp_location): Add related_address member.
6058 * inferior.h (get_return_value): Take a pointer to struct value
6059 instead of struct type for the function requested.
6060 * value.h (using_struct_return): Likewise.
6061 * gdbarch.sh (return_value): Take a pointer to struct value
6062 instead of struct type for the function requested.
6063 * breakpoint.c (set_breakpoint_location_function): Initialize
6064 related_address for bp_gnu_ifunc_resolver breakpoints.
6065 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6066 requested function's address to gdbarch_return_value.
6067 * eval.c (evaluate_subexp_standard): Pass the requested
6068 function's address to using_struct_return.
6069 * infcall.c (call_function_by_hand): Pass the requested
6070 function's address to using_struct_return and
6071 gdbarch_return_value.
6072 * infcmd.c (get_return_value): Take a pointer to struct value
6073 instead of struct type for the function requested.
6074 (print_return_value): Update accordingly.
6075 (finish_command_continuation): Likewise.
6076 * stack.c (return_command): Pass the requested function's
6077 address to using_struct_return and gdbarch_return_value.
6078 * value.c (using_struct_return): Take a pointer to struct value
6079 instead of struct type for the function requested. Pass the
6080 requested function's address to gdbarch_return_value.
6081 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6082 New function_value member, replacing function_type.
6083 (bpfinishpy_dealloc): Update accordingly.
6084 (bpfinishpy_pre_stop_hook): Likewise.
6085 (bpfinishpy_init): Likewise. Record the requested function's
6086 address.
6087 * mips-tdep.c (mips_fval_reg): New enum.
6088 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6089 words put in GP registers.
6090 (mips_o64_push_dummy_call): Update a comment.
6091 (mips_o32_return_value): Take a pointer to struct value instead
6092 of struct type for the function requested and use it to check if
6093 using the MIPS16 calling convention. Return the designated
6094 general purpose registers for floating-point values returned in
6095 MIPS16 mode.
6096 (mips_o64_return_value): Likewise.
6097 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6098 (ppc_sysv_abi_broken_return_value): Likewise.
6099 (ppc64_sysv_abi_return_value): Likewise.
6100 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6101 value instead of struct type for the function requested.
6102 * amd64-tdep.c (amd64_return_value): Likewise.
6103 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6104 * arm-tdep.c (arm_return_value): Likewise.
6105 * avr-tdep.c (avr_return_value): Likewise.
6106 * bfin-tdep.c (bfin_return_value): Likewise.
6107 * cris-tdep.c (cris_return_value): Likewise.
6108 * frv-tdep.c (frv_return_value): Likewise.
6109 * h8300-tdep.c (h8300_return_value): Likewise.
6110 (h8300h_return_value): Likewise.
6111 * hppa-tdep.c (hppa32_return_value): Likewise.
6112 (hppa64_return_value): Likewise.
6113 * i386-tdep.c (i386_return_value): Likewise.
6114 * ia64-tdep.c (ia64_return_value): Likewise.
6115 * iq2000-tdep.c (iq2000_return_value): Likewise.
6116 * lm32-tdep.c (lm32_return_value): Likewise.
6117 * m32c-tdep.c (m32c_return_value): Likewise.
6118 * m32r-tdep.c (m32r_return_value): Likewise.
6119 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6120 * m68k-tdep.c (m68k_return_value): Likewise.
6121 (m68k_svr4_return_value): Likewise.
6122 * m88k-tdep.c (m88k_return_value): Likewise.
6123 * mep-tdep.c (mep_return_value): Likewise.
6124 * microblaze-tdep.c (microblaze_return_value): Likewise.
6125 * mn10300-tdep.c (mn10300_return_value): Likewise.
6126 * moxie-tdep.c (moxie_return_value): Likewise.
6127 * mt-tdep.c (mt_return_value): Likewise.
6128 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6129 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6130 (ppc_sysv_abi_broken_return_value): Likewise.
6131 (ppc64_sysv_abi_return_value): Likewise.
6132 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6133 * rl78-tdep.c (rl78_return_value): Likewise.
6134 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6135 * rx-tdep.c (rx_return_value): Likewise.
6136 * s390-tdep.c (s390_return_value): Likewise.
6137 * score-tdep.c (score_return_value): Likewise.
6138 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6139 (sh_return_value_fpu): Likewise.
6140 * sh64-tdep.c (sh64_return_value): Likewise.
6141 * sparc-tdep.c (sparc32_return_value): Likewise.
6142 * sparc64-tdep.c (sparc64_return_value): Likewise.
6143 * spu-tdep.c (spu_return_value): Likewise.
6144 * tic6x-tdep.c (tic6x_return_value): Likewise.
6145 * v850-tdep.c (v850_return_value): Likewise.
6146 * vax-tdep.c (vax_return_value): Likewise.
6147 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6148 * xtensa-tdep.c (xtensa_return_value): Likewise.
6149 * gdbarch.c: Regenerate.
6150 * gdbarch.h: Regenerate.
6151
6152 2012-05-15 Tom Tromey <tromey@redhat.com>
6153
6154 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6155
6156 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6157
6158 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6159 of command in two error message.
6160
6161 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6162
6163 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6164
6165 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6166
6167 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6168
6169 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6170
6171 * NEWS (show auto-load scripts-directory): Add forgotten command.
6172
6173 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6174
6175 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6176 parameters.
6177
6178 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6179
6180 * amd64-tdep.c: Include features/i386/x32.c and
6181 features/i386/x32-avx.c.
6182 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6183 initialize_tdesc_x32_avx.
6184
6185 2012-05-14 Stan Shebs <stan@codesourcery.com>
6186
6187 Add dynamic printf.
6188 * breakpoint.h (enum bptype): New type bp_dprintf.
6189 (struct breakpoint): New field extra_string.
6190 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6191 (create_breakpoint): Add extra_string arg.
6192 * breakpoint.c (dprintf_breakpoint_ops): New.
6193 (is_breakpoint): Add bp_dprintf.
6194 (bpstat_what): Add dprintf case.
6195 (bptype_string): Ditto.
6196 (print_one_breakpoint_location): Ditto.
6197 (init_bp_location): Ditto.
6198 (bkpt_print_mention): Ditto.
6199 (dprintf_style_enums): New array.
6200 (dprintf_style): New global.
6201 (dprintf_function): New global.
6202 (dprintf_channel): New global.
6203 (update_dprintf_command_list): New function.
6204 (update_dprintf_commands): New function.
6205 (init_breakpoint_sal): Add extra_string argument, handle it.
6206 (create_breakpoint_sal): Add extra_string argument.
6207 (create_breakpoints_sal): Add extra_string argument, update callers.
6208 (find_condition_and_thread): Add extra argument.
6209 (create_breakpoint): Add extra_string argument, record it.
6210 (dprintf_command): New function.
6211 (break_command_1): Add arg to create_breakpoint call.
6212 (handle_gnu_v3_exceptions): Ditto.
6213 (trace_command): Ditto.
6214 (ftrace_command): Ditto.
6215 (strace_command): Ditto.
6216 (bkpt_print_mention): Add dprintf case.
6217 (create_breakpoint_sal_default): Add extra_string argument.
6218 (_initialize_breakpoint): Add new commands.
6219 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6220 * python/py-breakpoint.c (bppy_init): Ditto.
6221 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6222
6223 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6224
6225 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6226
6227 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6228
6229 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6230 unsigned long long.
6231
6232 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6233
6234 Add a new function gdb.find_pc_line to the Python API.
6235 * NEWS (Python Scripting): Add entry about the new function.
6236 * python/python.c (gdbpy_find_pc_line): New function which
6237 implements gdb.find_pc_line.
6238 (GdbMethods): Add entry for the new function.
6239
6240 2012-05-12 Pedro Alves <palves@redhat.com>
6241
6242 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6243 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6244
6245 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6246
6247 * inferior.c: Include completer.h
6248 (initialize_inferiors): Set completer of add-inferior to
6249 filename_completer.
6250
6251 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6252
6253 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6254 gdbarch_ptr_bit for x32 core dump.
6255
6256 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6257
6258 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6259 and features/i386/x32-avx-linux.c.
6260
6261 2012-05-11 Stan Shebs <stan@codesourcery.com>
6262 Kwok Cheung Yeung <kcy@codesourcery.com>
6263
6264 * NEWS: Describe new info os commands.
6265 * common/linux-osdata.c (PID_T, TIME_T): Define.
6266 (MAX_PID_T_STRLEN): New.
6267 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6268 MAX_PID_T_STRLEN.
6269 (command_from_pid): Add comment. Change to use PID_T.
6270 (commandline_from_pid): Change to use PID_T.
6271 (user_from_pid): Add comment.
6272 (get_process_owner): Add comment. Change to use PID_T and
6273 MAX_PID_T_STRLEN.
6274 (get_number_of_cpu_cores): Add comment.
6275 (get_cores_used_by_process): Add comment. Change to use PID_T and
6276 MAX_PID_T_STRLEN.
6277 (linux_xfer_osdata_processes): Change to use PID_T and
6278 MAX_PID_T_STRLEN.
6279 (compare_processes): New function.
6280 (linux_xfer_osdata_processgroups): New function.
6281 (linux_xfer_osdata_threads): Change to use PID_T.
6282 (linux_xfer_osdata_fds): New function.
6283 (format_socket_state, print_sockets): New functions.
6284 (union socket_addr): New union.
6285 (linux_xfer_osdata_isockets): New function.
6286 (time_from_time_t, group_from_gid): New functions.
6287 (linux_xfer_osdata_shm): New function.
6288 (linux_xfer_osdata_sem): New function.
6289 (linux_xfer_osdata_msg): New function.
6290 (linux_xfer_osdata_modules): New function.
6291 (osdata_table): Add new entries.
6292 * common/buffer.c (buffer_xml_printf): Add support for long and
6293 long long format specifiers.
6294
6295 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6296
6297 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6298 (tdesc_x32_avx_linux): Likewise.
6299
6300 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6301
6302 Implement multi-component --with-auto-load-dir.
6303 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6304 entries.
6305 (--with-auto-load-safe-path): Update the default value description.
6306 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6307 New.
6308 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6309 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6310 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6311 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6312 "set auto-load scripts-directory".
6313 * config.in: Regenerate.
6314 * configure: Regenerate.
6315 * configure.ac (--with-auto-load-dir): New configure option.
6316 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6317
6318 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6319
6320 Provide $ddir substitution for --with-auto-load-safe-path.
6321 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6322 entries.
6323 * auto-load.c: Include observer.h.
6324 (auto_load_safe_path_vec_update): Call substitute_path_component for
6325 each component. New variable ddir_subst.
6326 (auto_load_gdb_datadir_changed): New function.
6327 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6328 AUTO_LOAD_SAFE_PATH. New comment.
6329 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6330 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6331 * config.in: Regenerate.
6332 * configure: Regenerate.
6333 * configure.ac (--auto-load-safe-path): Rename
6334 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6335 GDB_DATADIR/auto-load.
6336 * defs.h (substitute_path_component): New declaration.
6337 * top.c: Include observer.h.
6338 (set_gdb_datadir): New function.
6339 (init_main): Install it for "set data-directory".
6340 * utils.c (substitute_path_component): New function.
6341
6342 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6343
6344 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6345 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6346 DEBUG_FILE_DIRECTORY. Handle multiple components of
6347 DEBUG_FILE_DIRECTORY.
6348
6349 2012-05-10 Tom Tromey <tromey@redhat.com>
6350
6351 * dwarf2read.c (recursively_write_psymbols): New function.
6352 (write_psymtabs_to_index): Use it.
6353
6354 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6355 field.
6356 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6357 (load_partial_comp_unit): Update.
6358 (queue_comp_unit): Add argument 'pretend_language'.
6359 (process_queue): Update.
6360 (psymtab_to_symtab_1): Skip dependencies that have a user.
6361 (load_partial_comp_unit_reader): Give meaning to the 'data'
6362 argument.
6363 (load_full_comp_unit): Add 'pretend_language' argument.
6364 (process_full_comp_unit): Add 'pretend_language' argument. Set
6365 language on CU.
6366 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6367 Update.
6368 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6369 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6370 Update.
6371 (prepare_one_comp_unit): Add 'pretend_language' argument.
6372
6373 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6374 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6375 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6376 (dw2_do_instantiate_symtab): Check whether symtab was read in
6377 before queueing.
6378 (dw2_instantiate_symtab): Add assertion. Call
6379 process_cu_includes.
6380 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6381 (partial_symtab_p): New typedef.
6382 (set_partial_user): New function.
6383 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6384 (scan_partial_symbols): Add imported CU to imported_symtabs.
6385 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6386 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6387 (get_symtab, recursively_compute_inclusions)
6388 (compute_symtab_includes, process_cu_includes)
6389 (process_imported_unit_die): New functions.
6390 (process_die) <DW_TAG_imported_unit>: New case.
6391 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6392
6393 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6394 comment.
6395 (struct partial_die_info) <locdesc>: Remove.
6396 <d>: New field.
6397 (process_psymtab_comp_unit): Add 'read_partial' argument.
6398 Update.
6399 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6400 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6401 (add_partial_symbol): Update.
6402 (process_die): Handle DW_TAG_partial_unit.
6403 (read_file_scope): Update comment.
6404 (load_partial_dies): Handle DW_TAG_imported_unit.
6405 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6406 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6407
6408 2012-05-10 Tom Tromey <tromey@redhat.com>
6409
6410 * cc-with-dwz.sh: New file.
6411
6412 2012-05-10 Tom Tromey <tromey@redhat.com>
6413
6414 * symtab.h (struct symtab) <includes, user>: New fields.
6415 * block.h (struct block_iterator) <d, idx, which>: New fields.
6416 * block.c (initialize_block_iterator, find_iterator_symtab)
6417 (block_iterator_step, block_iter_name_step)
6418 (block_iter_match_step): New functions.
6419 (block_iterator_first, block_iterator_next)
6420 (block_iter_name_first, block_iter_name_next)
6421 (block_iter_match_first, block_iter_match_next): Rewrite.
6422 (get_block_symtab): New function.
6423
6424 2012-05-10 Tom Tromey <tromey@redhat.com>
6425
6426 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6427 set_block_symtab.
6428 * jit.c (finalize_symtab): Use allocate_global_block,
6429 set_block_symtab.
6430 * buildsym.c (finish_block_internal): New function, from old
6431 finish_block.
6432 (finish_block): Rewrite.
6433 (end_symtab): Use finish_block_internal, set_block_symtab.
6434 * block.h (struct global_block): New.
6435 (allocate_global_block, set_block_symtab): Declare.
6436 * block.c (allocate_global_block, set_block_symtab): New
6437 functions.
6438
6439 2012-05-10 Tom Tromey <tromey@redhat.com>
6440
6441 * psymtab.c (partial_map_expand_apply): Add assertion.
6442 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6443 (psymtab_to_symtab): Find unshared psymtab.
6444 (dump_psymtab): Print including psymtabs.
6445 (recursively_search_psymtabs): New function.
6446 (expand_symtabs_matching_via_partial): Use it.
6447 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6448 fields.
6449 (enum psymtab_search_status): New.
6450
6451 2012-05-10 Tom Tromey <tromey@redhat.com>
6452
6453 * tracepoint.c (scope_info): Update.
6454 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6455 (find_pc_sect_symtab, search_symbols)
6456 (default_make_symbol_completion_list_break_on)
6457 (make_file_symbol_completion_list): Update.
6458 * symmisc.c (dump_symtab_1): Update.
6459 * stack.c (print_frame_args, iterate_over_block_locals)
6460 (print_frame_labels, iterate_over_block_arg_vars): Update.
6461 * python/py-block.c (block_object) <dict>: Remove.
6462 <block>: New field.
6463 <iter>: Change type.
6464 (blpy_iter): Update.
6465 (blpy_block_syms_iternext): Update.
6466 * psymtab.c (map_block): Use block iterators.
6467 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6468 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6469 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6470 * infrun.c (check_exception_resume): Update.
6471 * cp-support.c (make_symbol_overload_list_block): Update.
6472 * coffread.c (patch_opaque_types): Update.
6473 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6474 * block.h (struct block_iterator): New.
6475 (block_iterator_first, block_iterator_next, block_iter_name_first)
6476 (block_iter_name_next, block_iter_match_first)
6477 (block_iter_match_next): Declare.
6478 (ALL_BLOCK_SYMBOLS): Redefine.
6479 * block.c (block_iterator_first, block_iterator_next)
6480 (block_iter_name_first, block_iter_name_next)
6481 (block_iter_match_first, block_iter_match_next): New functions.
6482 * ada-lang.c (ada_add_block_symbols)
6483 (ada_make_symbol_completion_list): Use block iterator.
6484
6485 2012-05-10 Tom Tromey <tromey@redhat.com>
6486
6487 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6488 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6489 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6490 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6491 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6492 Update.
6493
6494 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6495
6496 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6497 print-file-var-lib2.c, print-file-var-main.c and
6498 print-file-var.exp (located in gdb/testsuite/gdb.base).
6499
6500 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6501
6502 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6503 try locating the symbol in the symbol's own objfile first, before
6504 extending the search to all objfiles.
6505 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6506 out of lookup_symbol_aux_symtabs.
6507 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6508 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6509 Do not search EXCLUDE_OBJFILE.
6510 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6511 (lookup_symbol_global): Search for matches in the block's objfile
6512 first, before searching all other objfiles.
6513
6514 2012-05-10 Tristan Gingold <gingold@adacore.com>
6515
6516 * printcmd.c (set_command): Add pre/post inc/dec.
6517
6518 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6519
6520 * gdb.1: Document -ex option.
6521
6522 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6523
6524 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6525 * inferior.h (AT_SYMBOL): Delete.
6526
6527 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6528
6529 * mips-tdep.c (mips_push_dummy_code): New function.
6530 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6531 ON_STACK and install mips_push_dummy_code as our gdbarch
6532 push_dummy_code routine.
6533
6534 2012-05-09 Pedro Alves <palves@redhat.com>
6535
6536 * target.c (set_maintenance_target_async_permitted): Rename to ...
6537 (set_target_async_command): ... this.
6538 (show_maintenance_target_async_permitted): Rename to ...
6539 (show_target_async_command): ... this.
6540 (initialize_targets): Adjust.
6541
6542 2012-05-08 Doug Evans <dje@google.com>
6543
6544 * go-exp.y (classify_name): Add missing assignment of fields of
6545 yylval.ssym.
6546
6547 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6548
6549 Display the ">" prompt in interactive mode while reading canned
6550 commands, even when the current interpreter is MI.
6551
6552 * interps.c (interp_set_temp): New function.
6553
6554 * interps.h (interp_set_temp): Add prototype.
6555
6556 * cli/cli-script.c (restore_interp): New cleanup function.
6557 (read_command_lines): Temporarily override the current interpreter
6558 with CLI and arrange for restoring the original one.
6559
6560 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6561
6562 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6563
6564 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6565
6566 * probe.c (parse_probes): Move conditional to check for
6567 debuginfo files from here...
6568 * stap-probe.c (stap_get_probes): ... to here.
6569
6570 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6571 H.J. Lu <hongjiu.lu@intel.com>
6572
6573 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6574 `movl %esp, %ebp' for the X32 ABI.
6575
6576 2012-05-07 Tom Tromey <tromey@redhat.com>
6577
6578 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6579 get_DW_TAG_name.
6580 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6581 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6582 (dwarf_stack_op_name): Remove.
6583 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6584 (decode_locdesc): Use get_DW_OP_name.
6585 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6586 (dwarf2_compile_expr_to_ax): Likewise.
6587 (disassemble_dwarf_expression): Likewise.
6588 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6589
6590 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6591
6592 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6593 (sh_linux_sigtramp_cache): New function.
6594 (sh_linux_sigreturn_init): New function.
6595 (sh_linux_rt_sigreturn_init): New function.
6596 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6597 patterns.
6598 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6599 syscall codes.
6600 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6601 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6602 (sh_linux_init_abi): Add init calls to register new tramp_frame
6603 definitions under 32-bit SH, update comments.
6604
6605 2012-05-07 Pedro Alves <palves@redhat.com>
6606
6607 PR gdb/10952
6608
6609 * amd64-linux-tdep.c: Include glibc-tdep.h.
6610 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6611 gdbarch_skip_solib_resolver callback.
6612
6613 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6614
6615 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6616 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6617 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6618 (add_auto_load_safe_path): Change the error message.
6619 (_initialize_auto_load): Change the "safe-path" help text.
6620 * configure: Regenerate
6621 * configure.ac (--without-auto-load-safe-path): Set
6622 WITH_AUTO_LOAD_SAFE_PATH to /.
6623
6624 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6625
6626 * stap-probe.h: Do not include unecessary `probe.h'.
6627
6628 2012-05-05 Alan Modra <amodra@gmail.com>
6629
6630 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6631 bfd_und_section_ptr.
6632 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6633 and bfd_com_section_ptr.
6634
6635 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6636
6637 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6638
6639 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6640
6641 * windows-nat.h (segment_register_p_ftype): New typedef.
6642 (windows_set_segment_register_p): Add declaration.
6643 * windows-nat.c (segment_register_p): New static global.
6644 (windows_set_segment_register_p): New function.
6645 (do_windows_fetch_inferior_registers): Add special handling
6646 for segment registers.
6647 * amd64-windows-nat.c: #include "amd64-tdep.h".
6648 (amd64_windows_segment_register_p): New function.
6649 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6650 * i386-windows-nat.c: #include "i386-tdep.h".
6651 (i386_windows_segment_register_p): New function.
6652 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6653
6654 2012-05-04 Tristan Gingold <gingold@adacore.com>
6655
6656 * printcmd.c (set_command): Emit a warning if the expression is not
6657 an assignment.
6658
6659 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6660
6661 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6662 Make static.
6663
6664 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6665
6666 * stap-probe.c (stap_is_operator): Change declaration.
6667 (stap_get_opcode): Change return value.
6668 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6669 `stap_parse_argument_1'.
6670
6671 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6672
6673 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6674 debug log.
6675
6676 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6677
6678 Add two new methods global_block and static_block to gdb.Symtab
6679 objects.
6680 * NEWS (Python scripting): Add entry about the new methods.
6681 * python/py-symtab.c (stpy_global_block): New function which
6682 implements the gdb.Symtab.global_block() method.
6683 (stpy_static_block): New function which implements the
6684 gdb.Symtab.static_block() method.
6685 (symtab_object_methods): Add entries for the two new methods.
6686
6687 2012-05-03 Doug Evans <dje@google.com>
6688
6689 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6690 files.
6691
6692 2012-05-03 Yao Qi <yao@codesourcery.com>
6693
6694 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6695 space.
6696 (i386_process_record): Ditto.
6697
6698 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6699
6700 * infcall.c (unwind_on_signal_p): Make static.
6701
6702 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6703
6704 * sol-thread.c (solaris_pid_to_str): Make static.
6705 (_initialize_sol_thread): Add prototype.
6706
6707 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6708
6709 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6710
6711 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6712
6713 * MAINTAINERS: Remove myself.
6714
6715 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6716
6717 Fix --without-auto-load-safe-path for MS-Windows host platform.
6718 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6719
6720 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6721
6722 * gdb_curses.h: Undefine KEY_EVENT before including curses
6723 headers. Move "#undef MOUSE_MOVED" before any curses header
6724 inclusion.
6725
6726 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6727
6728 * features/i386/i386-mmx-linux.c: Regenerate.
6729 * features/rs6000/powerpc-32.c: Likewise.
6730 * features/rs6000/powerpc-32l.c: Likewise.
6731 * features/rs6000/powerpc-403.c: Likewise.
6732 * features/rs6000/powerpc-403gc.c: Likewise.
6733 * features/rs6000/powerpc-405.c: Likewise.
6734 * features/rs6000/powerpc-505.c: Likewise.
6735 * features/rs6000/powerpc-601.c: Likewise.
6736 * features/rs6000/powerpc-602.c: Likewise.
6737 * features/rs6000/powerpc-603.c: Likewise.
6738 * features/rs6000/powerpc-604.c: Likewise.
6739 * features/rs6000/powerpc-64.c: Likewise.
6740 * features/rs6000/powerpc-64l.c: Likewise.
6741 * features/rs6000/powerpc-750.c: Likewise.
6742 * features/rs6000/powerpc-860.c: Likewise.
6743 * features/rs6000/powerpc-e500.c: Likewise.
6744 * features/rs6000/powerpc-e500l.c: Likewise.
6745 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6746 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6747 * features/rs6000/rs6000.c: Likewise.
6748
6749 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6750
6751 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6752 variable.
6753 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6754 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6755 (stap_parse_argument) <e>: Likewise.
6756 (handle_stap_probe) <byte_order>: Likewise.
6757
6758 2012-04-30 Doug Evans <dje@google.com>
6759
6760 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6761 init_and_read_dies_worker. All callers updated.
6762 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6763 replaced with init_cutu_and_read_dies.
6764 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6765 (find_partial_die): Remove FIXME. Don't free current CU.
6766
6767 2012-04-30 Sterling Augustine <saugustine@google.com>
6768
6769 * contrib: New directory.
6770 * contrib/test_pubnames_and_indexes.py: New file.
6771
6772 2012-04-30 Doug Evans <dje@google.com>
6773
6774 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6775 All callers updated.
6776 (init_cu_die_reader): Verify the section is non-empty.
6777 (dwarf_decode_line_header): Don't dereference section->asection
6778 until we know the section is present.
6779
6780 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6781
6782 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6783 probes.
6784
6785 2012-04-29 Yao Qi <yao@codesourcery.com>
6786
6787 * gdb-code-style.el: New hook gdb-markup-hook
6788 and gdb-comment-hook.
6789
6790 2012-04-28 Doug Evans <dje@google.com>
6791
6792 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6793 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6794 objfile->obfd.
6795 * symfile.h (dwarf2_debug_sections): New member addr.
6796 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6797 (ctx_no_get_addr_index): New function.
6798 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6799 (ctx_no_get_addr_index): Declare.
6800 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6801 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6802 (dwarf_expr_ctx_funcs): Update.
6803 (needs_get_addr_index): New function.
6804 (needs_frame_ctx_funcs): Update.
6805 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6806 * dwarf2read.c: #include "gdbcore.h".
6807 (dwarf2_per_objfile): New members addr, dwo_files.
6808 (dwarf2_elf_names): Add entry for addr.
6809 (struct dwo_section_names): New type.
6810 (dwo_section_names): New static global.
6811 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6812 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6813 old debug_types_section member updated to use this.
6814 Rename member debug_types_section to info_or_types_section,
6815 all uses updated.
6816 (signatured_type): Rename member type_offset to type_offset_in_tu,
6817 all uses updated. New member type_offset_in_section.
6818 (struct dwo_sections): New type.
6819 (struct dwo_unit): New type.
6820 (struct dwo_file): New type.
6821 (die_reader_specs): New member dwo_file.
6822 (dwarf2_locate_sections): Watch for .debug_addr.
6823 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6824 (dwarf2_read_section): Get bfd of section from bfd's asection,
6825 instead of objfile.
6826 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6827 (create_signatured_type_table_from_index): Initialize
6828 sig_type->info_or_types_section.
6829 (dw2_get_file_names): Statement lists for type units with DWO files
6830 live in the DWO file.
6831 (create_debug_types_hash_table): New function.
6832 (create_all_type_units): Rewrite.
6833 (init_cu_die_reader): New arg dwo_file, all callers updated.
6834 (init_and_read_dies_worker): Get section from
6835 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6836 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6837 continue reading the CU/TU from there.
6838 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6839 updated. Get section from this_cu->info_or_types_section.
6840 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6841 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6842 DW_FORM_GNU_str_index.
6843 (hash_dwo_file, eq_dwo_file): New functions.
6844 (allocate_dwo_file_hash_table): New function.
6845 (hash_dwo_unit, eq_dwo_unit): New functions.
6846 (allocate_dwo_unit_table): New function.
6847 (dwarf2_locate_dwo_sections): New function.
6848 (struct create_dwo_info_table_data): New type.
6849 (create_debug_info_hash_table_reader): New function.
6850 (create_debug_info_hash_table): New function.
6851 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6852 (lookup_dwo_file): New function.
6853 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6854 (free_dwo_file, free_dwo_file_cleanup): New functions.
6855 (free_dwo_file_from_slot, free_dwo_files): New functions.
6856 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6857 (dwarf2_record_block_ranges): Ditto.
6858 (read_partial_die): Ditto.
6859 (process_enumeration_scope): Update to use type_offset_in_section.
6860 (read_full_die_1): New function.
6861 (read_full_die): Rewrite.
6862 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6863 DW_FORM_GNU_str_index.
6864 (read_addr_index_1, read_addr_index): New functions.
6865 (read_addr_index_from_leb128): New function.
6866 (struct dwarf2_read_addr_index_data): New type.
6867 (dwarf2_read_addr_index_reader): New function.
6868 (dwarf2_read_addr_index): New function.
6869 (read_str_index): New function.
6870 (leb128_size): New function.
6871 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6872 If processing a type unit from a DWO file, get the line section
6873 from the DWO file.
6874 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6875 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6876 DW_FORM_GNU_str_index.
6877 (lookup_die_type): Check whether section offset of type's die is
6878 known before looking it up. Remove assert. Condition can
6879 legimately happen for inter-cu type references.
6880 (dwarf_attr_name): Handle Fission attributes.
6881 (dwarf_form_name): Handle Fission forms.
6882 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6883 DW_FORM_GNU_str_index.
6884 (follow_die_sig): Update to use type_offset_in_section.
6885 (decode_locdesc): New case DW_OP_GNU_addr_index.
6886 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6887 DW_FORM_GNU_str_index.
6888 (cu_debug_loc_section): New function.
6889 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6890 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6891 Free DWO files if present.
6892 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6893
6894 Refactor DIE reading.
6895 * dwarf2read.c (dwarf2_per_objfile): Replace members
6896 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6897 (die_reader_specs): New member "die_section". Temporarily make
6898 member "buffer" non-const, pending constifying all info_ptr uses.
6899 (die_reader_func_ftype): New typedef.
6900 (dw2_get_file_names_reader): New function.
6901 (dw2_get_file_names): Rewrite.
6902 (read_and_check_type_unit_head): Rename arg type_offset to
6903 type_offset_in_tu.
6904 (create_all_type_units): Improve debugging message.
6905 Improve dummy type unit check.
6906 (init_cu_die_reader): New arg "section". All callers updated.
6907 (init_and_read_dies_worker): New function.
6908 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6909 (init_cutu_and_read_dies_no_follow): New function.
6910 (init_cutu_and_read_dies_simple): New function.
6911 (process_psymtab_comp_unit_reader): New function.
6912 (process_psymtab_comp_unit): Delete args section,
6913 is_debug_types_section. Rewrite. All callers updated.
6914 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6915 All callers updated. Rewrite.
6916 (load_partial_comp_unit_reader): New function.
6917 (load_partial_comp_unit): Rewrite.
6918 (skip_children): New arg reader. Delete args buffer, cu.
6919 All callers updated.
6920 (skip_one_die): New arg reader. Delete args buffer, cu.
6921 All callers updated.
6922 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6923 All callers updated.
6924 (load_full_comp_unit_reader): New function.
6925 (load_full_comp_unit): Rewrite.
6926 (read_comp_unit): Delete.
6927 (read_die_and_children_1): Delete, contents moved ...
6928 (read_die_and_children): ... here.
6929 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6930 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6931 All callers updated.
6932 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6933 All callers updated.
6934 (find_partial_die): Rewrite load_all_dies support.
6935 (read_attribute_value): New arg reader. Delete args abfd, cu.
6936 All callers updated.
6937 (read_attribute): New arg reader. Delete args abfd, cu.
6938 All callers updated.
6939 (load_full_type_unit): Add assert.
6940 (read_signatured_type_reader): New function.
6941 (read_signatured_type): Rewrite.
6942 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6943 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6944 All callers updated. Set per_cu->cu = NULL after freeing it.
6945 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6946 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6947 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6948 (set_die_type): Update.
6949 (get_die_type_at_offset): Update.
6950 (read_file_scope): Call prepare_one_comp_unit.
6951 (read_type_unit_scope): Ditto.
6952 (prepare_one_comp_unit): Set producer if present.
6953
6954 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6955
6956 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6957 gettext function on `error'.
6958
6959 2012-04-27 Doug Evans <dje@google.com>
6960
6961 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6962 is empty.
6963
6964 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6965 Tom Tromey <tromey@redhat.com>
6966
6967 * breakpoint.c (struct breakpoint_objfile_data)
6968 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6969 <exception_probes>: New fields.
6970 (free_breakpoint_probes): New function.
6971 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6972 `_Unwind_DebugHook'.
6973 (create_exception_master_breakpoint): Likewise.
6974 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6975 * infrun.c: Including necessary header files for handling SystemTap
6976 probes.
6977 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6978 via SystemTap probes.
6979 (check_exception_resume): Remove `func' argument. Handle exception
6980 unwinding breakpoint set via a SystemTap probe.
6981 (insert_exception_resume_from_probe): New function.
6982
6983 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6984 Tom Tromey <tromey@redhat.com>
6985 Jan Kratochvil <jan.kratochvil@redhat.com>
6986
6987 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6988 (COMMON_OBS): Likewise.
6989 (HFILES_NO_SRCDIR): Add `probe'.
6990 * NEWS: Mention support for static and SystemTap probes.
6991 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6992 SystemTap probes' arguments parser.
6993 * arm-linux-tdep.c: Including headers needed to perform the parsing
6994 of SystemTap probes' arguments.
6995 (arm_stap_is_single_operand): New function.
6996 (arm_stap_parse_special_token): Likewise.
6997 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6998 probes' arguments parser.
6999 * ax-gdb.c (require_rvalue): Removing static declaration.
7000 (gen_expr): Likewise.
7001 * ax-gdb.h (gen_expr): Declaring function.
7002 (require_rvalue): Likewise.
7003 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7004 (bkpt_probe_breakpoint_ops): New variable.
7005 (momentary_breakpoint_from_master): Set the `probe' value.
7006 (add_location_to_breakpoint): Likewise.
7007 (break_command_1): Using proper breakpoint_ops according to the
7008 argument passed by the user in the command line.
7009 (bkpt_probe_insert_location): New function.
7010 (bkpt_probe_remove_location): Likewise.
7011 (bkpt_probe_create_sals_from_address): Likewise.
7012 (bkpt_probe_decode_linespec): Likewise.
7013 (tracepoint_probe_create_sals_from_address): Likewise.
7014 (tracepoint_probe_decode_linespec): Likewise.
7015 (tracepoint_probe_breakpoint_ops): New variable.
7016 (trace_command): Using proper breakpoint_ops according to the
7017 argument passed by the user in the command line.
7018 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7019 static probes on breakpoints and tracepoints.
7020 * breakpoint.h (struct bp_location) <probe>: New field.
7021 * cli-utils.c (skip_spaces_const): New function.
7022 (extract_arg): Likewise.
7023 * cli-utils.h (skip_spaces_const): Likewise.
7024 (extract_arg): Likewise.
7025 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7026 * configure.ac: Append `stap-probe.o' to be generated when ELF
7027 support is present.
7028 * configure: Regenerate.
7029 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7030 * elfread.c: Include `probe.h' and `arch-utils.h'.
7031 (probe_key): New variable.
7032 (elf_get_probes): New function.
7033 (elf_get_probe_argument_count): Likewise.
7034 (elf_evaluate_probe_argument): Likewise.
7035 (elf_compile_to_ax): Likewise.
7036 (elf_symfile_relocate_probe): Likewise.
7037 (stap_probe_key_free): Likewise.
7038 (elf_probe_fns): New variable.
7039 (elf_sym_fns): Add `sym_probe_fns' value.
7040 (elf_sym_fns_lazy_psyms): Likewise.
7041 (elf_sym_fns_gdb_index): Likewise.
7042 (_initialize_elfread): Initialize objfile cache for static
7043 probes.
7044 * gdb_vecs.h (struct probe): New forward declaration.
7045 (probe_p): New VEC declaration.
7046 * gdbarch.c: Regenerate.
7047 * gdbarch.h: Regenerate.
7048 * gdbarch.sh (stap_integer_prefix): New variable.
7049 (stap_integer_suffix): Likewise.
7050 (stap_register_prefix): Likewise.
7051 (stap_register_suffix): Likewise.
7052 (stap_register_indirection_prefix): Likewise.
7053 (stap_register_indirection_suffix): Likewise.
7054 (stap_gdb_register_prefix): Likewise.
7055 (stap_gdb_register_suffix): Likewise.
7056 (stap_is_single_operand): New function.
7057 (stap_parse_special_token): Likewise.
7058 (struct stap_parse_info): Forward declaration.
7059 * i386-tdep.c: Including headers needed to perform the parsing
7060 of SystemTap probes' arguments.
7061 (i386_stap_is_single_operand): New function.
7062 (i386_stap_parse_special_token): Likewise.
7063 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7064 probes' arguments parser.
7065 * i386-tdep.h (i386_stap_is_single_operand): New function.
7066 (i386_stap_parse_special_token): Likewise.
7067 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7068 * mipsread.c (ecoff_sym_fns): Likewise.
7069 * objfiles.c (objfile_relocate1): Support relocation for static
7070 probes.
7071 * parse.c (prefixify_expression): Remove static declaration.
7072 (initialize_expout): Likewise.
7073 (reallocate_expout): Likewise.
7074 * parser-defs.h (initialize_expout): Declare function.
7075 (reallocate_expout): Likewise.
7076 (prefixify_expression): Likewise.
7077 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7078 of SystemTap probes' arguments.
7079 (ppc_stap_is_single_operand): New function.
7080 (ppc_stap_parse_special_token): Likewise.
7081 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7082 probes' arguments parser.
7083 * probe.c: New file, for generic statically defined probe support.
7084 * probe.h: Likewise.
7085 * s390-tdep.c: Including headers needed to perform the parsing of
7086 SystemTap probes' arguments.
7087 (s390_stap_is_single_operand): New function.
7088 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7089 probes' arguments parser.
7090 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7091 * stap-probe.c: New file, for SystemTap probe support.
7092 * stap-probe.h: Likewise.
7093 * symfile.h: Include `gdb_vecs.h'.
7094 (struct sym_probe_fns): New struct.
7095 (struct sym_fns) <sym_probe_fns>: New field.
7096 * symtab.c (init_sal): Initialize `probe' field.
7097 * symtab.h (struct probe): Forward declaration.
7098 (struct symtab_and_line) <probe>: New field.
7099 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7100 locations.
7101 (stop_tracing): Likewise.
7102 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7103
7104 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7105 Tom Tromey <tromey@redhat.com>
7106
7107 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7108 and to compile agent expressions.
7109 * infrun.c (siginfo_make_value): New argument `ignore'.
7110 (siginfo_funcs): New struct.
7111 (_initialize_infrun): New argument when calling
7112 `create_internalvar_type_lazy'.
7113 * thread.c (thread_id_make_value): New argument `ignore'.
7114 (thread_funcs): New struct.
7115 (_initialize_thread): New argument when calling
7116 `create_internalvar_type_lazy'.
7117 * tracepoint.c (sdata_make_value): New argument `ignore'.
7118 (sdata_funcs): New struct.
7119 (_initialize_tracepoint): New argument when calling
7120 `create_internalvar_type_lazy'.
7121 * value.c (make_value): New struct.
7122 (create_internalvar_type_lazy): New argument `data'.
7123 (compile_internalvar_to_ax): New function.
7124 (value_of_internalvar): Properly handling `make_value' case.
7125 (clear_internalvar): Likewise.
7126 (show_convenience): Adding `TRY_CATCH' block.
7127 * value.h (internalvar_make_value): Delete, replace by...
7128 (struct internalvar_funcs): ... this.
7129 (create_internalvar_type_lazy) <fun>: Delete argument.
7130 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7131 (compile_internalvar_to_ax): New function.
7132 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7133 (tlb_funcs): New struct.
7134 (_initialize_windows_tdep): New argument when calling
7135 `create_internalvar_type_lazy'.
7136
7137 2012-04-27 Mark Wielaard <mjw@redhat.com>
7138
7139 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7140 see whether it is an address or a constant offset from DW_AT_low_pc.
7141 (dwarf2_record_block_ranges): Likewise.
7142 (read_partial_die): Likewise.
7143
7144 2012-04-26 Mark Wielaard <mjw@redhat.com>
7145
7146 * MAINTAINERS (Write After Approval): Add myself to the list.
7147
7148 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7149
7150 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7151 (proc_prettyprint_signal): Likewise.
7152 (proc_prettyprint_faultset): Likewise.
7153 (proc_prettyprint_fault): Likewise.
7154 (proc_prettyprint_actionset): Likewise.
7155 (proc_prettyprint_flags): Move to new proc-flags.c section.
7156 (proc_prettyfprint_flags): New prototype.
7157 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7158 (proc_syscall, proc_cursig): Likewise.
7159 (proc_set_kill_on_last_close): Likewise.
7160 (proc_unset_kill_on_last_close): Likewise.
7161 (proc_set_watchpoint): Make static.
7162 (proc_delete_dead_threads): Likewise.
7163 (procfs_set_watchpoint): Likewise.
7164 (_initialize_procfs): Add prototype.
7165 * proc-events.c: Include proc-utils.h.
7166 (init_syscall_table): Make static.
7167 * proc-api.c (_initialize_proc_api): Add prototype.
7168 * proc-flags.c: Include proc-utils.h.
7169
7170 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7171
7172 * configure.ac: Add AC_ARG_PROGRAM.
7173 * configure: Regenerate.
7174
7175 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7176
7177 Fix DW_AT_lower_bound defaults for DWARF-4+.
7178 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7179 high. New variable low_default_is_valid. Implement DWARF-4+
7180 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7181 no default by the DWARF standard.
7182
7183 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7184 Maciej W. Rozycki <macro@codesourcery.com>
7185
7186 * infrun.c (handle_inferior_event): Move the check for return
7187 trampolines ahead of the check for function trampolines.
7188 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7189 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7190 (mips_str_mips16_ret_stub): Likewise.
7191 (mips_str_call_fp_stub): Likewise.
7192 (mips_str_call_stub): Likewise.
7193 (mips_str_fn_stub): Likewise.
7194 (mips_str_pic): Likewise.
7195 (mips_in_frame_stub): New function.
7196 (mips_unwind_pc): Return the return address rather than the PC
7197 if the PC of an intermediate frame is inside a call thunk.
7198 (mips_is_stub_suffix): New function.
7199 (mips_is_stub_mode): Likewise.
7200 (mips_get_mips16_fn_stub_pc): Likewise.
7201 (mips_skip_mips16_trampoline_code): Update to handle all the
7202 currently generated stub types. Don't recurse into __fn_stub
7203 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7204 Use cooked register accesses.
7205 (mips_in_return_stub): Reintroduce function.
7206 (mips_skip_trampoline_code): Traverse trampolines recursively.
7207 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7208
7209 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7210
7211 GDB 7.4.1 released.
7212
7213 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7214
7215 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7216 * features/arm-with-m-vfp-d16.xml: New file. Describes
7217 Cortex-M with VFPv4-sp-d16 FPU register layout.
7218 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7219 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7220 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7221 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7222 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7223
7224 2012-04-25 Doug Evans <dje@google.com>
7225
7226 * cli/cli-decode.c (print_doc_line): Use stream instead of
7227 current_uiout.
7228
7229 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7230
7231 * features/arm-with-iwmmxt.c: Regenerate.
7232 * features/arm-with-m-fpa-layout.c: Likewise.
7233 * features/arm-with-m.c: Likewise.
7234 * features/arm-with-neon.c: Likewise.
7235 * features/arm-with-vfpv2.c: Likewise.
7236 * features/arm-with-vfpv3.c: Likewise.
7237 * features/mips-dsp-linux.c: Likewise.
7238 * features/mips-linux.c: Likewise.
7239 * features/mips64-dsp-linux.c: Likewise.
7240 * features/mips64-linux.c: Likewise.
7241 * features/s390-linux32.c: Likewise.
7242 * features/s390-linux32v1.c: Likewise.
7243 * features/s390-linux32v2.c: Likewise.
7244 * features/s390-linux64.c: Likewise.
7245 * features/s390-linux64v1.c: Likewise.
7246 * features/s390-linux64v2.c: Likewise.
7247 * features/s390x-linux64.c: Likewise.
7248 * features/s390x-linux64v1.c: Likewise.
7249 * features/s390x-linux64v2.c: Likewise.
7250 * features/tic6x-c62x-linux.c: Likewise.
7251 * features/tic6x-c62x.c: Likewise.
7252 * features/tic6x-c64x-linux.c: Likewise.
7253 * features/tic6x-c64x.c: Likewise.
7254 * features/tic6x-c64xp-linux.c: Likewise.
7255 * features/tic6x-c64xp.c: Likewise.
7256 * target-descriptions.c: Only generate `field_type' and `type'
7257 variables when needed.
7258
7259 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7260
7261 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7262
7263 2012-04-25 Doug Evans <dje@google.com>
7264
7265 Initial pass at Go language support.
7266 * NEWS: Mention Go.
7267 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7268 go-valprint.c.
7269 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7270 (YYFILES): Add go-exp.c.
7271 (YYOBJ): Add go-exp.o.
7272 (local-maintainer-clean): Delete go-exp.c.
7273 * defs.h (enum language): Add language_go.
7274 * dwarf2read.c: #include "go-lang.h".
7275 (fixup_go_packaging): New function.
7276 (process_full_comp_unit): Call it when processing Go CUs.
7277 (dwarf2_physname): Add Go support.
7278 (read_file_scope): Handle missing language spec for GNU Go.
7279 (set_cu_language): Handle DW_LANG_Go.
7280 * go-exp.y: New file.
7281 * go-lang.h: New file.
7282 * go-lang.c: New file.
7283 * go-typeprint.c: New file.
7284 * go-valprint.c: New file.
7285 * symtab.c: #include "go-lang.h".
7286 (symbol_set_language): Handle language_go.
7287 (symbol_find_demangled_name, symbol_set_names): Ditto.
7288 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7289
7290 2012-04-24 Jim Meyering <meyering@redhat.com>
7291
7292 avoid a few strncpy-induced buffer overruns
7293 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7294 fname and psargs before trying to concatenate.
7295 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7296 "name" before applying strchr.
7297
7298 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7299
7300 * CONTRIBUTE: Use unified diff instead of context diff when
7301 generating patches.
7302
7303 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7304
7305 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7306 code. Handle JR.HB correctly.
7307
7308 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7309
7310 * mips-tdep.c
7311 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7312 with the other MIPS16 helpers.
7313
7314 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7315
7316 * observer.sh: Conditionally declare `args', thus cleaning up
7317 unused instances of this variable.
7318
7319 2012-04-24 Yao Qi <yao@codesourcery.com>
7320
7321 Revert this patch to allow breakpoint always-inserted
7322 in record target.
7323 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7324 * breakpoint.c: Include record.h.
7325 (breakpoints_always_inserted_mode): Return false when the record
7326 target is in use.
7327
7328 * breakpoint.c (iterate_over_bp_locations): New.
7329 * breakpoint.h: Declare.
7330 New typedef walk_bp_location_callback.
7331 * record.c (record_open): Call record_init_record_breakpoints.
7332 (record_sync_record_breakpoints): New.
7333 (record_init_record_breakpoints): New.
7334 * NEWS: Mention supporting breakpoint always-inserted mode in
7335 record target.
7336
7337 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7338
7339 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7340 any thread.
7341
7342 2012-04-24 Yao Qi <yao@codesourcery.com>
7343
7344 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7345 (is_catchpoint): ... it.
7346 (print_one_breakpoint_location): Caller update.
7347 * breakpoint.h: Update declaration.
7348
7349 2012-04-23 David S. Miller <davem@davemloft.net>
7350
7351 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7352
7353 2012-04-23 Tom Tromey <tromey@redhat.com>
7354
7355 * buildsym.c (add_free_pendings): Remove.
7356 * buildsym.h (add_free_pendings): Remove.
7357
7358 2012-04-23 Doug Evans <dje@google.com>
7359
7360 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7361 attr.u.unsnd instead of attr.u.addr.
7362 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7363 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7364 DW_FORM_ref_udata.
7365 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7366 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7367 DW_FORM_ref_udata.
7368 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7369
7370 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7371
7372 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7373 (mips_o32_return_value): Likewise.
7374 (mips_o64_return_value): Likewise.
7375
7376 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7377
7378 * ada-lang.c (ada_evaluate_subexp): Add cases for
7379 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7380 their treatment in eval.c.
7381
7382 2012-04-21 David S. Miller <davem@davemloft.net>
7383
7384 * sparc-tdep.c (X_DISP10): Define.
7385 (sparc_analyze_control_transfer): Handle compare-and-branch.
7386
7387 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7388
7389 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7390 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7391
7392 2012-04-20 Nigel Stephens <nigel@mips.com>
7393 Maciej W. Rozycki <macro@codesourcery.com>
7394
7395 * mips-tdep.c (mips_float_register_p): New function.
7396 (mips_convert_register_float_case_p): Use mips_float_register_p.
7397 (mips_register_type): Likewise.
7398 (mips_print_register): Likewise.
7399 (print_gp_register_row): Likewise.
7400 (mips_print_registers_info): Likewise.
7401
7402 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7403
7404 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7405 of mips16 symbols.
7406
7407 2012-04-20 Andrew Pinski <apinski@cavium.com>
7408
7409 * MAINTAINERS (Write After Approval): Add myself to the list.
7410
7411 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7412
7413 * MAINTAINERS: Update my e-mail address.
7414
7415 2012-04-20 Pedro Alves <palves@redhat.com>
7416
7417 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7418 $srcdir.
7419 * configure: Regenerate.
7420
7421 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7422
7423 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7424 declaration.
7425 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7426
7427 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7428
7429 Fix compilation compatibility with python-2.4
7430 * python/py-type.c (convert_field): Cast ADDRSTRING for
7431 PyObject_SetAttrString as non-const. New comment.
7432
7433 2012-04-19 Tom Tromey <tromey@redhat.com>
7434
7435 * top.c (quit_target): Use all_cleanups.
7436 * main.c (captured_command_loop): Use all_cleanups.
7437 * exceptions.c (throw_exception): Use all_cleanups.
7438
7439 2012-04-19 Pedro Alves <palves@redhat.com>
7440
7441 * Makefile.in (GNULIB_BUILDDIR): New.
7442 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7443 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7444 (CLEANDIRS). Remove gnulib/import.
7445 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7446 (all-lib): Ditto.
7447 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7448 (gnulib/import/Makefile): Replace gnulib/import with
7449 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7450 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7451 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7452 acx_configure_dir.m4.
7453 * acinclude.m4: Include acx_configure_dir.m4.
7454 * acx_configure_dir.m4: New file.
7455 * aclocal.m4: Regenerate.
7456 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7457 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7458 (GNULIB): New variable.
7459 (GNULIB_STDINT_H): Adjust.
7460 (AC_OUTPUT): Don't output gnulib/Makefile.
7461 * gdb/defs.h: Include build-gnulib/config.h.
7462 * aclocal.m4: Regenerate.
7463 * config.in: Regenerate.
7464 * configure: Regenerate.
7465
7466 * gnulib/Makefile.in: New file.
7467 * gnulib/configure.ac: New file.
7468 * gnulib/aclocal.m4: New file.
7469 * gnulib/config.in: New file.
7470 * gnulib/configure: New file.
7471 * gnulib/: Re-run gnulib-tool to adjust.
7472
7473 2012-04-19 Doug Evans <dje@google.com>
7474
7475 * cleanups.h (struct cleanup): Move to cleanups.c.
7476 (make_cleanup_dtor_ftype): New typedef.
7477 (make_cleanup_dtor): Use it.
7478 (ALL_CLEANUPS): Replace with ...
7479 (all_cleanups): ... this. Declare. All uses updated.
7480 * cleanups.c: #include "gdb_assert.h".
7481 (sentinel_cleanup): New static global.
7482 (SENTINEL_CLEANUP): Define.
7483 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7484 (make_my_cleanup2): Assert result is non-NULL.
7485 (all_cleanups): New function.
7486 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7487 of NULL.
7488
7489 2012-04-19 Pedro Alves <palves@redhat.com>
7490
7491 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7492 Adjust paths to gnulib imported files.
7493
7494 2012-04-19 Pedro Alves <palves@redhat.com>
7495
7496 * gnulib/: Move whole directory ...
7497 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7498 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7499 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7500 (aclocal_m4_deps): Adjust.
7501 * aclocal.m4: Regenerate.
7502 * configure: Regenerate.
7503 * configure.ac: Adjust AC_OUTPUT output.
7504
7505 2012-04-19 Yao Qi <yao@codesourcery.com>
7506
7507 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7508 (vec.o): New rule.
7509 * vec.c: Move it ...
7510 * common/vec.c: ... here.
7511 * vec.h: Move it ...
7512 * common/vec.h: ... here.
7513
7514 2012-04-19 Yao Qi <yao@codesourcery.com>
7515
7516 * gdb-code-style.el: New.
7517
7518 2012-04-18 Pedro Alves <palves@redhat.com>
7519
7520 Update gnulib from latest git.
7521 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7522
7523 * gnulib/Makefile.am: Update.
7524 * gnulib/dummy.c: Update.
7525 * gnulib/extra/arg-nonnull.h: Update.
7526 * gnulib/extra/c++defs.h: Update.
7527 * gnulib/extra/update-copyright: Update.
7528 * gnulib/extra/warn-on-use.h: Update.
7529 * gnulib/inttypes.in.h: Update.
7530 * gnulib/m4/00gnulib.m4: Update.
7531 * gnulib/m4/extensions.m4: Update.
7532 * gnulib/m4/gnulib-cache.m4: Update.
7533 * gnulib/m4/gnulib-common.m4: Update.
7534 * gnulib/m4/gnulib-comp.m4: Update.
7535 * gnulib/m4/gnulib-tool.m4: Update.
7536 * gnulib/m4/include_next.m4: Update.
7537 * gnulib/m4/inttypes-pri.m4: Update.
7538 * gnulib/m4/inttypes.m4: Update.
7539 * gnulib/m4/longlong.m4: Update.
7540 * gnulib/m4/memchr.m4: Update.
7541 * gnulib/m4/memmem.m4: Update.
7542 * gnulib/m4/mmap-anon.m4: Update.
7543 * gnulib/m4/multiarch.m4: Update.
7544 * gnulib/m4/onceonly.m4: Update.
7545 * gnulib/m4/stddef_h.m4: Update.
7546 * gnulib/m4/stdint.m4: Update.
7547 * gnulib/m4/string_h.m4: Update.
7548 * gnulib/m4/warn-on-use.m4: Update.
7549 * gnulib/m4/wchar_h.m4: Update.
7550 * gnulib/m4/wchar_t.m4: Update.
7551 * gnulib/m4/wint_t.m4: Update.
7552 * gnulib/memchr.c: Update.
7553 * gnulib/memmem.c: Update.
7554 * gnulib/stddef.in.h: Update.
7555 * gnulib/stdint.in.h: Update.
7556 * gnulib/str-two-way.h: Update.
7557 * gnulib/string.in.h: Update.
7558 * gnulib/wchar.in.h: Update.
7559
7560 * gnulib/extra/arg-nonnull.h: Delete.
7561 * gnulib/extra/c++defs.h: Delete.
7562 * gnulib/extra/warn-on-use.h: Delete.
7563 * gnulib/m4/wchar_h.m4: Delete.
7564 * gnulib/m4/wint_t.m4: Delete.
7565 * gnulib/wchar.in.h: Delete.
7566
7567 * gnulib/extra/snippets/arg-nonnull.h: New.
7568 * gnulib/extra/snippets/c++defs.h: New.
7569 * gnulib/extra/snippets/warn-on-use.h: New.
7570
7571 * aclocal.m4: Regenerate.
7572 * config.in: Regenerate.
7573 * configure: Regenerate.
7574 * gnulib/Makefile.in: Regenerate.
7575
7576 2012-04-18 Pedro Alves <palves@redhat.com>
7577
7578 Reimport the update-copyright module from gnulib
7579 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7580
7581 * configure: Regenerate.
7582 * gnulib/Makefile.am: Update.
7583 * gnulib/Makefile.in: Regenerate.
7584 * gnulib/extra/update-copyright: Update.
7585 * gnulib/m4/gnulib-cache.m4: Update.
7586 * gnulib/m4/gnulib-comp.m4: Update.
7587
7588 2012-04-18 Tristan Gingold <gingold@adacore.com>
7589
7590 * configure.ac (aix): Put -lpthread into libs.
7591 * configure: Regenerate.
7592
7593 2012-04-18 Tom Tromey <tromey@redhat.com>
7594
7595 * linespec.c (convert_linespec_to_sals): Don't use
7596 SYMBOL_OBJ_SECTION.
7597 (compare_msymbols): Arguments are minsym_and_objfile, not
7598 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7599
7600 2012-04-18 Pedro Alves <palves@redhat.com>
7601
7602 Revert gnulib/ part of:
7603 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7604 Copyright year update in most files (performed by copyright.sh).
7605
7606 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7607
7608 Fix 64-bit constants on 32-bit hosts.
7609 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7610 from unsigned long to ULONGEST.
7611 (read_signed_leb128): Change declaration return type from long to
7612 LONGEST.
7613 (dwarf2_const_value_attr): Change declaration parameter value from long
7614 to LONGEST.
7615 (dwarf2_compute_name): Change variable value from long to LONGEST.
7616 (read_unsigned_leb128): Change return type, variable result and some
7617 casts from unsigned long to ULONGEST.
7618 (read_signed_leb128): Change return type, variable result and some
7619 casts from long to LONGEST.
7620 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7621 value from long to LONGEST.
7622 (dwarf2_const_value): Change variable value from long to LONGEST.
7623 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7624 plongest and hex_string.
7625 * symtab.h (struct general_symbol_info): Change ivalue from long to
7626 LONGEST, remove the comment.
7627 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7628 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7629
7630 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7631
7632 PR symtab/7259:
7633 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7634 * ada-lang.c (ada_discrete_type_high_bound)
7635 (ada_discrete_type_low_bound): Fix function comment. Use
7636 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7637 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7638 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7639 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7640 Use TYPE_FIELD_ENUMVAL.
7641 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7642 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7643 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7644 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7645 TYPE_CODE_ENUM.
7646 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7647 * dwarf2read.c (process_enumeration_scope): Likewise.
7648 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7649 field.bitpos.
7650 (class StructMainTypePrettyPrinter): Support also
7651 FIELD_LOC_KIND_ENUMVAL.
7652 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7653 TYPE_CODE_ENUM.
7654 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7655 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7656 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7657 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7658 field enumval.
7659 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7660 accommodate enumval.
7661 (struct call_site): Adjust loc_kind to accommodate enumval.
7662 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7663 (TYPE_FIELD_ENUMVAL): New macros.
7664 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7665 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7666 TYPE_CODE_ENUM.
7667 * p-typeprint.c (pascal_type_print_base): Likewise.
7668 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7669 enumval.
7670 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7671 * python/py-type.c (convert_field): New variable addrstring. Use
7672 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7673 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7674 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7675 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7676 TYPE_CODE_ENUM.
7677 * valprint.c (generic_val_print): Likewise.
7678
7679 2012-04-17 Doug Evans <dje@google.com>
7680
7681 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7682
7683 * dwarf2read.c: Whitespace fixes.
7684 (lookup_signatured_type): Tweak comment.
7685 (get_die_type_at_offset): Fix comment.
7686
7687 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7688
7689 * xcoffread.c (xcoff_secnum_to_sections): New function.
7690 (secnum_to_section, secnum_to_bfd_section): Reimplement
7691 using xcoff_secnum_to_sections. Rename "secnum" parameter
7692 into "n_scnum".
7693 (RECORD_MINIMAL_SYMBOL): Delete.
7694 (record_minimal_symbol): New function.
7695 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7696 by call to record_minimal_symbol and set misc_func_recorded
7697 to 1. Set last_csect_sec to the XCOFF section index instead
7698 of GDB's section_offset index. Update calls to
7699 prim_record_minimal_symbol_and_info to pass the BFD section
7700 as well.
7701
7702 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7703
7704 * xcoffread.c (read_xcoff_symtab): Delete variables
7705 last_csect_val and last_csect_sec and associated code.
7706
7707 2012-04-17 Doug Evans <dje@google.com>
7708
7709 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7710 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7711 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7712 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7713
7714 * cleanups.h: New file.
7715 * cleanups.c: New file.
7716 * Makefile.in (SFILES): Add cleanups.c.
7717 (HFILES_NO_SRCDIR): Add cleanups.h.
7718 (COMMON_OBS): Add cleanups.o.
7719 * defs.h (struct cleanup): Moved to cleanups.h.
7720 (do_cleanups,do_final_cleanups): Ditto.
7721 (discard_cleanups,discard_final_cleanups): Ditto
7722 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7723 (save_cleanups,save_final_cleanups): Ditto.
7724 (restore_cleanups,restore_final_cleanups): Ditto.
7725 (null_cleanup): Ditto.
7726 (make_my_cleanup,make_my_cleanup2): Ditto.
7727 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7728 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7729 (do_cleanups,do_final_cleanups): Ditto.
7730 (discard_cleanups,discard_final_cleanups): Ditto
7731 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7732 (save_cleanups,save_final_cleanups): Ditto.
7733 (restore_cleanups,restore_final_cleanups): Ditto.
7734 (null_cleanup): Ditto.
7735 (make_my_cleanup,make_my_cleanup2): Ditto.
7736 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7737
7738 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7739 make_my_cleanup.
7740 (make_cleanup_dyn_string_delete): Ditto.
7741 (make_cleanup_ui_file_delete): Ditto.
7742 (make_cleanup_ui_out_redirect_pop): Ditto.
7743 (make_cleanup_free_section_addr_info): Ditto.
7744 (make_cleanup_restore_integer): Ditto.
7745 (make_cleanup_unpush_target): Ditto.
7746 (make_cleanup_value_free_to_mark): Ditto.
7747 (make_cleanup_value_free): Ditto.
7748 (make_cleanup_free_so): Ditto.
7749
7750 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7751
7752 New option "set debug auto-load".
7753 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7754 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7755 (auto_load_safe_path_vec_update)
7756 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7757 if DEBUG_AUTO_LOAD.
7758 (file_is_auto_load_safe): New parameters debug_fmt and ....
7759 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7760 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7761 caller by explanatory string.
7762 (_initialize_auto_load): Register "set debug auto-load".
7763 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7764 and ....
7765 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7766 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7767 by explanatory string.
7768 * main.c (captured_main): Likewise.
7769 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7770 (source_section_scripts): Likewise.
7771
7772 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 New option "set auto-load safe-path".
7775 * NEWS: New commands "set auto-load safe-path"
7776 and "show auto-load safe-path".
7777 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7778 (auto_load_safe_path, auto_load_safe_path_vec)
7779 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7780 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7781 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7782 (source_gdb_script_for_objfile): New variable is_safe. Call
7783 file_is_auto_load_safe. Return if it is not.
7784 (struct loaded_script): New field loaded.
7785 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7786 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7787 output "Missing" to "No".
7788 (_initialize_auto_load): New variable cmd. Initialize
7789 auto_load_safe_path. Register "set auto-load safe-path",
7790 "show auto-load safe-path" and "add-auto-load-safe-path".
7791 * auto-load.h (maybe_add_script): Add parameter loaded.
7792 (file_is_auto_load_safe): New declaration.
7793 * config.in: Regenerate.
7794 * configure: Regenerate.
7795 * configure.ac: New parameters --with-auto-load-safe-path
7796 and --without-auto-load-safe-path.
7797 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7798 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7799 * main.c (captured_main): Check file_is_auto_load_safe for
7800 LOCAL_GDBINIT.
7801 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7802 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7803 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7804 not.
7805
7806 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7807
7808 auto-load: Implementation.
7809 * NEWS: New descriptions for "info auto-load",
7810 "info auto-load gdb-scripts", "info auto-load python-scripts",
7811 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7812 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7813 and "show auto-load-scripts". New description for "set auto-load",
7814 "show auto-load", "set auto-load gdb-scripts",
7815 "show auto-load gdb-scripts", "set auto-load python-scripts",
7816 "show auto-load python-scripts", "set auto-load local-gdbinit",
7817 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7818 "show auto-load libthread-db".
7819 * auto-load.c: Remove include python/python-internal.h. Add includes
7820 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7821 cli/cli-setshow.h.
7822 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7823 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7824 (gdbpy_global_auto_load): Rename to ...
7825 (global_auto_load): ... here.
7826 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7827 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7828 (script_language_gdb, source_gdb_script_for_objfile): New.
7829 (struct loaded_script): New field language.
7830 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7831 LANGUAGE.
7832 (maybe_add_script): Add parameter language. Drop redundant
7833 entry.full_path initialization. Initialize entry.language and
7834 (*slot)->language.
7835 (auto_load_objfile_script): Change parameter suffix to language.
7836 Remove the call of maybe_add_script.
7837 Call language->source_script_for_objfile.
7838 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7839 New.
7840 (collect_matching_scripts): Adjust it for
7841 struct collect_matching_scripts_data.
7842 (auto_load_info_scripts_pattern_nl): New variable.
7843 (info_auto_load_scripts): Rename to ...
7844 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7845 for struct collect_matching_scripts_data.
7846 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7847 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7848 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7849 (auto_load_info_cmdlist_get): New.
7850 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7851 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7852 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7853 "info auto-load local-gdbinit".
7854 * auto-load.h (struct script_language): New.
7855 (gdbpy_global_auto_load): Rename to ...
7856 (global_auto_load): ... here.
7857 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7858 (auto_load_local_gdbinit_loaded): New declarations.
7859 (maybe_add_script): New parameter language.
7860 (auto_load_objfile_script): Change parameter suffix to language.
7861 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7862 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7863 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7864 declarations.
7865 * linux-thread-db.c: Include auto-load.h and ctype.h.
7866 (auto_load_thread_db, show_auto_load_thread_db): New.
7867 (struct thread_db_info): New field filename.
7868 (delete_thread_db_info): Call xfree for FILENAME.
7869 (try_thread_db_load): Initialize FILENAME.
7870 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7871 if !AUTO_LOAD_THREAD_DB.
7872 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7873 (_initialize_thread_db): Install auto_load_thread_db
7874 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7875 as "info auto-load libthread-db".
7876 * main.c (captured_main): Rename gdbpy_global_auto_load to
7877 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7878 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7879 (print_gdb_help): Extend the help for 'local init file'.
7880 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7881 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7882 (auto_load_scripts): Rename to ...
7883 (auto_load_python_scripts): ... here, update the comment.
7884 (gdbpy_load_auto_script_for_objfile): New declaration.
7885 (show_auto_load_python_scripts, script_language_python)
7886 (gdbpy_load_auto_script_for_objfile): New.
7887 (source_section_scripts): Refactor the code.
7888 (load_auto_scripts_for_objfile): Rename to ...
7889 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7890 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7891 (info_auto_load_python_scripts): New.
7892 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7893 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7894 Register "set auto-load-scripts" as its deprecated alias. Register
7895 "info auto-load python-scripts". Register "info auto-load-scripts" as
7896 its deprecated alias.
7897 (load_auto_scripts_for_objfile): Rename to ...
7898 (gdbpy_load_auto_scripts_for_objfile): ... here.
7899 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7900 (gdbpy_load_auto_scripts_for_objfile): ... here.
7901
7902 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7903
7904 auto-load: Move files.
7905 * Makefile.in (SFILES): Add auto-load.c.
7906 (HFILES_NO_SRCDIR): Add auto-load.h.
7907 (COMMON_OBS): Add auto-load.o.
7908 (distclean): Change .gdbinit for gdb-gdb.gdb.
7909 * auto-load.c: New file, with parts from python/py-auto-load.c.
7910 * auto-load.h: New file, with parts from python/python.h.
7911 * configure: Regenerate.
7912 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7913 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7914 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7915 * main.c: Include auto-load.h.
7916 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7917 command.h, observer.h and progspace.h to auto-load.c. Add include
7918 auto-load.h.
7919 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7920 (struct loaded_script, auto_load_pspace_data)
7921 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7922 (hash_loaded_script_entry, eq_loaded_script_entry)
7923 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7924 (maybe_add_script): Move to auto-load.c.
7925 (source_section_scripts): Change maybe_add_script parameters passing,
7926 use script_not_found_warning_print.
7927 (clear_section_scripts, auto_load_objfile_script)
7928 (auto_load_new_objfile, loaded_script_ptr)
7929 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7930 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7931 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7932 auto_load_new_objfile and info_auto_load_scripts initizations to
7933 auto-load.c.
7934 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7935
7936 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7937
7938 Code cleanup.
7939 * charset.c (find_charset_names): Remove variables ix and elt.
7940 Use free_char_ptr_vec.
7941 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7942 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7943 debugdir_end. New variable debugdir_len.
7944 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7945 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7946 declarations.
7947 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7948 and elt. Use free_char_ptr_vec.
7949 * source.c (add_path): Remove variables argv, arg and argv_index.
7950 New variables dir_vec, back_to, ix and name.
7951 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7952 make_cleanup_freeargv. Remove variable separator. Simplify the code
7953 no longer expecting DIRNAME_SEPARATOR.
7954 (openp): Remove variable p, p1 and len. New variables dir_vec,
7955 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7956 no longer expecting DIRNAME_SEPARATOR.
7957 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7958 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7959 debugdir_end.
7960 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7961 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7962 (dirnames_to_char_ptr_vec): New functions.
7963
7964 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7965
7966 Code cleanup.
7967 * source.c (add_path): Remove always true conditional 'p == 0' and
7968 unindent its code block.
7969
7970 2012-04-17 Pedro Alves <palves@redhat.com>
7971
7972 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7973 (FIELD_BITPOS_LVAL): ... this.
7974 (FIELD_BITPOS): New.
7975 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7976 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7977 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7978 SET_FIELD_BITPOS.
7979 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7980 SET_FIELD_BITPOS.
7981 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7982 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7983 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7984 SET_FIELD_BITPOS.
7985
7986 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7987
7988 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7989 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7990 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7991 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7992 * jv-lang.c (java_link_class_type): Likewise, once.
7993 * stabsread.c (read_enum_type): Likewise.
7994
7995 2012-04-16 Yao Qi <yao@codesourcery.com>
7996
7997 * common/agent.c (agent_run_command): Add one more parameter `len'.
7998 Update callers.
7999 * common/agent.h: Update declaration.
8000 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8001 Update.
8002 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8003
8004 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8005
8006 PR mi/13393
8007 * value.c (value_actual_type): New function.
8008 * value.h (value_actual_type): New declaration.
8009 * varobj.c (update_type_if_necessary): New function.
8010 (varobj_create): Call value_actual_type instead of
8011 value_type.
8012 (install_dynamic_child): distinct changed and type changed MI variable
8013 objects.
8014 (update_dynamic_varobj_children): Updated for install_dynamic_child
8015 change. All callers updated.
8016 (varobj_update): Support for MI variable object type change if
8017 the value changed and RTTI is used to determine the type.
8018 (create_child_with_value): Call value_actual_type instead of
8019 value_type.
8020 (adjust_value_for_child_access): Extended with a new parameter which
8021 specify whether the given value should be casted to enclosing type.
8022 All callers updated.
8023
8024 2012-04-14 Yao Qi <yao@codesourcery.com>
8025
8026 Import gnulib module inttypes from git
8027 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8028 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8029 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8030 gnulib/m4/inttypes-pri.m4
8031 * aclocal.m4, config.in, configure: Regenerated.
8032 * gnulib/Makefile.am: Update.
8033 * gnulib/Makefile.in: Update.
8034 * gnulib/m4/gnulib-cache.m4: Update.
8035 * gnulib/m4/gnulib-comp.m4: Update.
8036 * gnulib/inttypes.in.h: New.
8037 * gnulib/m4/inttypes-pri.m4: New.
8038 * gnulib/m4/inttypes.m4: New.
8039
8040 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8041
8042 * infrun.c (resume): Update PC address to the real PC after
8043 preparing to do displaced stepping.
8044
8045 2012-04-12 Doug Evans <dje@google.com>
8046
8047 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8048 All callers updated.
8049
8050 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8051
8052 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8053
8054 2012-04-12 Doug Evans <dje@google.com>
8055
8056 * dwarf2read.c (create_all_type_units): Renamed from
8057 create_debug_types_hash_table. All callers updated.
8058
8059 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8060 local type_sig to sig_type, type_offset to type_offset_in_tu.
8061 (hash_signatured_type): Renamed from hash_type_signature,
8062 all callers updated.
8063 (eq_signatured_type): Renamed from eq_type_signature,
8064 all callers updated.
8065 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8066 (process_enumeration_scope): Ditto.
8067 (lookup_signatured_type_at_offset): Ditto.
8068 (load_full_type_unit, read_signatured_type): Ditto.
8069
8070 2012-04-12 Yao Qi <yao@codesourcery.com>
8071
8072 * remote.c (async_remote_interrupt): Correct function name in
8073 debug message.
8074 (async_remote_interrupt_twice): Ditto.
8075
8076 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8077
8078 * source.c (find_and_open_source): Consistently pass resulting
8079 full path through xfullpath.
8080
8081 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8082
8083 Provide more specific displaced-stepping memory error message.
8084 * infrun.c (displaced_step_prepare): New variable status. Call
8085 target_read_memory instead of read_memory, provide more specific
8086 error message.
8087
8088 2012-04-11 Tristan Gingold <gingold@adacore.com>
8089
8090 PR gdb/13901
8091 * darwin-nat.c (darwin_execvp): Revert previous patch.
8092
8093 2012-04-11 Tristan Gingold <gingold@adacore.com>
8094
8095 PR gdb/13901
8096 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8097 in case of change.
8098
8099 2012-04-11 Tristan Gingold <gingold@adacore.com>
8100
8101 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8102 warning.
8103
8104 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8105
8106 New command 'explore' which helps explore values and types in
8107 scope.
8108 * NEWS: Add an entry about the new 'explore' command.
8109 * data-directory/Makefile.in: Add gdb/command/explore.py
8110 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8111 command using the GDB Python API.
8112
8113 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8114
8115 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8116 extension in jump target calculation.
8117
8118 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8119
8120 * mips-tdep.c (mips32_next_pc): Handle JALX.
8121
8122 2012-04-10 Yao Qi <yao@codesourcery.com>
8123
8124 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8125
8126 2012-04-10 Yao Qi <yao@codesourcery.com>
8127
8128 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8129 and gnulib/m4/gnulib-tool.m4.
8130
8131 2012-04-10 Doug Evans <dje@google.com>
8132
8133 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8134 (load_partial_dies): Clarify comment.
8135 (find_partial_die): Support rereading type units.
8136 Clarify CU handling, if we know offset is in CU, don't search for the
8137 containing CU. Add comment regarding memory waste.
8138
8139 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8140
8141 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8142 i386/x32-avx and i386/x32-avx-linux.
8143 (i386/x32-expedite): New.
8144 (i386/x32-linux-expedite): Likewise.
8145 (i386/x32-avx-expedite): Likewise.
8146 (i386/x32-avx-linux-expedite): Likewise.
8147 ($(outdir)/i386/x32.dat): Likewise.
8148 ($(outdir)/i386/x32-linux.dat): Likewise.
8149 ($(outdir)/i386/x32-avx.dat): Likewise.
8150 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8151
8152 * features/i386/x32-avx-linux.xml: New file.
8153 * features/i386/x32-avx.xml: Likewise.
8154 * features/i386/x32-core.xml: Likewise.
8155 * features/i386/x32-linux.xml: Likewise.
8156 * features/i386/x32.xml: Likewise.
8157
8158 * features/i386/x32-avx-linux.c: New. Generated.
8159 * features/i386/x32-avx.c: Likewise.
8160 * features/i386/x32-linux.c: Likewise.
8161 * features/i386/x32.c: Likewise.
8162 * regformats/i386/x32-avx-linux.dat: Likewise.
8163 * regformats/i386/x32-avx.dat: Likewise.
8164 * regformats/i386/x32-linux.dat: Likewise.
8165 * regformats/i386/x32.dat: Likewise.
8166
8167 2012-04-10 Tristan Gingold <gingold@adacore.com>
8168
8169 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8170 code to kill the inferior.
8171
8172 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8173
8174 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8175 defines.
8176 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8177 defines.
8178 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8179 (yyvsp): New defines.
8180 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8181 defines.
8182 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8183 defines.
8184 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8185 defines.
8186 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8187 defines.
8188 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8189 defines.
8190
8191 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8192
8193 * sparc64-tdep.c (sparc64_store_arguments)
8194 (sparc64_store_arguments): Fix coding style.
8195
8196 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8197
8198 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8199 complex floats, adjust some related comments and tighten a related
8200 assertion.
8201 (sparc64_extract_return_value): Handle complex floats.
8202
8203 2012-04-07 Doug Evans <dje@google.com>
8204
8205 * dwarf2read.c (load_partial_dies): Change condition to assert.
8206
8207 2012-04-06 Doug Evans <dje@google.com>
8208
8209 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8210 "mov %rsp,%rbp".
8211
8212 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8213
8214 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8215 fencepost error.
8216 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8217 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8218 architecture.
8219
8220 2012-04-05 Keith Seitz <keiths@redhat.com>
8221
8222 * linespec.c (decode_compound): Remove.
8223 (enum offset_relative_sign): New enum.
8224 (struct line_offset): New struct.
8225 (struct linespec): New struct.
8226 (struct linespec_state): Move file_symtabs,
8227 user_filename, and user_function into struct linespec.
8228 Make result an anonymous struct holding vectors of
8229 symbolp and minsym_and_objfile_d.
8230 Add language member.
8231 (enum ls_token_type): New enum.
8232 (linespec_keywords): New array.
8233 (struct ls_token): New struct.
8234 (struct ls_parser): New struct.
8235 (linespec_lexer_lex_number): New function.
8236 (linespec_lexer_lex_keyword): New function.
8237 (is_ada_operator): New function.
8238 (skip_quote_char): New function.
8239 (copy_token_string): New function.
8240 (is_closing_quote_enclosed): New function.
8241 (find_parameter_list_end): New function.
8242 (linespec_lexer_lex_string): New function.
8243 (linespec_lexer_lex_one): New function.
8244 (linespec_lexer_consume_token): New function.
8245 (linespec_lexer_peek_token): New function.
8246 (cplusplus_error): Remove unused function.
8247 (find_methods): Update comment.
8248 (find_toplevel_char): Return const.
8249 (is_objc_method_format): Remove unused function.
8250 (find_toplevel_string): New function.
8251 (is_linespec_boundary): Remove.
8252 (symbol_not_found_error): New function.
8253 (find_method_overload_end): Remove function.
8254 (unexpected_linespec_error): New function.
8255 (keep_name_info): Remove.
8256 (linespec_parse_line_offset): New function.
8257 (linespec_parse_basic): New function.
8258 (canonicalize_linespec): New function.
8259 (decode_line_internal): Remove.
8260 (create_sals_line_offset): New function adapted from
8261 decode_all_digits.
8262 (convert_linespec_to_sals): New function.
8263 (parse_linespec): New function.
8264 (linespec_parser_new): New function.
8265 (linespec_state_destructor): Change parameter type to
8266 struct linespec_state *.
8267 Add language parameter.
8268 Remove freeing of moved members.
8269 (linespec_parser_delete): New function.
8270 (decode_line_full): Use parse_linespec and linespec_parser_new.
8271 (decode_line_1): Likewise.
8272 (decode_indirect): Rename to ...
8273 (linespec_expression_to_pc): ... this and rewrite
8274 to simply find CORE_ADDR, storing this result for later
8275 conversion to SALs.
8276 (locate_first_half): Remove.
8277 (deocde_objc): Add parameter LS.
8278 Initialize new struct collect_info members.
8279 Handle minimal symbols, too.
8280 (decode_compound): Delete.
8281 (lookup_prefix_sym): Rewrite.
8282 (compare_msymbols): New function.
8283 (find_method): Rewrite.
8284 Do not call cplusplus_error.
8285 (symtabs_from_filename): Rewrite.
8286 (collect_function_symbols): Delete.
8287 (find_function_symbols): Rewrite without ARGPTR-style
8288 processing.
8289 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8290 (decode_dollar): Adapted and renamed to ...
8291 (linespec_parse_variable): ... this.
8292 (find_linespec_symbols): New function.
8293 (decode_label): Adapted and renamed to ...
8294 (find_label_symbols): ... this.
8295 (decode_digits_list_mode): Add and use LS argument.
8296 (decode_digits_ordinary): Likewise.
8297 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8298 If in list mode, allow any symbol class. Otherwise, only
8299 permit LOC_BLOCK symbols.
8300 (minsym_found): Update comments.
8301 (search_minsyms_for_name): Do not convert the matching symbol
8302 into a SAL. Simply push the symbol and objfile into the
8303 result vector.
8304 (decode_variable): Delete. Contents adapted into
8305 find_linespec_symbols.
8306
8307 * cp-support.c (SKIP_SPACE): Remove.
8308 (operator_tokens): Remove unused global.
8309 (cp_validate_operator): Remove.
8310 * cp-support.h (cp_validate_operator): Remove declaration.
8311
8312 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8313
8314 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8315 for TYPE_VPTR_FIELDNO.
8316 * valprint.c (valprint_check_validity): Make it global, move the
8317 function comment ...
8318 * value.h (valprint_check_validity): ... to this new declaration.
8319
8320 2012-04-02 Tristan Gingold <gingold@adacore.com>
8321
8322 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8323 the STATE32 api for i386 state.
8324 (i386_darwin_store_inferior_registers): Likewise.
8325
8326 2012-04-02 Tristan Gingold <gingold@adacore.com>
8327
8328 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8329 SS offset.
8330 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8331 format_string.
8332
8333 2012-04-02 Tristan Gingold <gingold@adacore.com>
8334
8335 PR gdb/13901
8336 * darwin-nat.c (darwin_execvp): Set binary preference.
8337
8338 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8339
8340 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8341
8342 2012-03-30 Tom Tromey <tromey@redhat.com>
8343
8344 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8345 of TRY_CATCH. Fix error handling.
8346 * python/py-value.c (convert_value_from_python): Move 'old'
8347 declaration to innermost scope.
8348
8349 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8350 Andrey Smirnov <andrew.smirnov@gmail.com>
8351
8352 -Wshadow warning fix.
8353 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8354 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8355 Adjust code accordingly.
8356
8357 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8358
8359 * ada-lang.c (symbol_completion_add): Rename parameter
8360 "encoded" into "encoded_p". Ajust code and documentation
8361 accordingly.
8362
8363 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8364 Andrey Smirnov <andrew.smirnov@gmail.com>
8365
8366 -Wshadow warning fix.
8367 * ada-lang.c (symbol_completion_add): Rename parameter
8368 "wild_match" into wild_match_p. Update code and documentation
8369 accordingly.
8370
8371 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8372
8373 * ada-lang.c (symbol_completion_match): Rename parameter
8374 "encoded" into "encoded_p". Ajust code and documentation
8375 accordingly.
8376
8377 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8378 Andrey Smirnov <andrew.smirnov@gmail.com>
8379
8380 -Wshadow warning fix.
8381 * ada-lang.c (symbol_completion_match): Rename parameter
8382 "wild_match" into "wild_match_p". Adjust code and function
8383 documentation accordingly.
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_encoded_symbol): Rename parameter
8390 "symbol_info" into "info". Adjust code accordingly.
8391 (ada_lookup_symbol): Likewise.
8392
8393 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8394
8395 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8396 of this function's documentation.
8397
8398 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8399 Andrey Smirnov <andrew.smirnov@gmail.com>
8400
8401 -Wshadow warning fix.
8402 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8403 variable into "wild_match_p". Adjust code accordingly.
8404
8405 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8406 Andrey Smirnov <andrew.smirnov@gmail.com>
8407
8408 -Wshadow warning fix.
8409 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8410 parameter into "wild_match_p". Adjust code accordingly.
8411 Document this parameter in the function description.
8412
8413 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8414 Andrey Smirnov <andrew.smirnov@gmail.com>
8415
8416 -Wshadow warning fix.
8417 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8418 "wild_match" parameter to "wild_match_p" (-Wshadow).
8419
8420 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8421
8422 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8423 in function documentation.
8424
8425 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8426 Andrey Smirnov <andrew.smirnov@gmail.com>
8427
8428 -Wshadow warning fix.
8429 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8430 variable into wild_match_p. Adjust code accordingly.
8431
8432 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8433 Andrey Smirnov <andrew.smirnov@gmail.com>
8434
8435 * ada-valprint.c (ada_val_print_1): Move the code handling
8436 TYPE_CODE_ENUM inside its own lexical block. Declare
8437 variables len and val there, instead of in the function's
8438 top level block. Avoid declaring deref_val again in a way
8439 that shadows another variable of the same name declared
8440 in one of the up-level blocks. Just re-use the up-level
8441 variable instead.
8442
8443 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8444
8445 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8446 Replace block_found argument by symbol_info. Adjust
8447 implementation accordingly. Add function documentation.
8448 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8449 Fix documentation.
8450 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8451 * ada-exp.y (write_object_renaming): Adjust to new
8452 ada_lookup_encoded_symbol API.
8453
8454 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8455
8456 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8457 documentation.
8458
8459 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8460
8461 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8462 (v850_register_name): Add the mpu and fpu register names.
8463 (v850e_register_name): Add the mpu and fpu register names.
8464 (v850e2_register_name): New function.
8465 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8466 bfd_mach_v850e2v3.
8467
8468 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8469
8470 * NEWS: Add entry for Ada varobj support.
8471
8472 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8473
8474 * varobj.c (default_value_is_changeable_p): New function,
8475 extracted from varobj_value_is_changeable_p. Add declaration.
8476 (ada_value_is_changeable_p): New function, extracted from
8477 varobj_value_is_changeable_p. Add declaration.
8478 (struct language_specific): New field "value_is_changeable_p".
8479 (languages): Add entries for new field.
8480 (varobj_create): Set language before calling install_new_value.
8481 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8482 "value_is_changeable_p" language callback.
8483
8484 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8485
8486 * ada-varobj.h, ada-varobj.c: New files.
8487 * Makefile.in (SFILES): Add ada-varobj.c.
8488 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8489 (COMMON_OBS): Add ada-varobj.o.
8490
8491 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8492
8493 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8494 (struct language_specific): New field "value_has_mutated".
8495 (languages): Set field "value_has_mutated" in each entry of array.
8496 (varobj_value_has_mutated): New function.
8497 (varobj_udpdate): Add handling of type mutation.
8498 (value_of_root): Add handling of type mutation.
8499 (ada_value_has_mutated): New function.
8500
8501 2012-03-28 Pedro Alves <palves@redhat.com>
8502
8503 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8504 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8505
8506 2012-03-28 Tom Tromey <tromey@redhat.com>
8507
8508 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8509 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8510 before returning.
8511
8512 2012-03-28 Tom Tromey <tromey@redhat.com>
8513
8514 * .dir-locals.el: New file.
8515
8516 2012-03-28 Pedro Alves <palves@redhat.com>
8517
8518 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8519
8520 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8521
8522 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8523 handling for r0.
8524
8525 2012-03-27 Pedro Alves <palves@redhat.com>
8526
8527 Eliminate struct ui_stream.
8528
8529 * ui-out.h (struct ui_stream): Delete.
8530 (ui_out_field_stream): Adjust prototype.
8531 (ui_out_stream_new, ui_out_stream_delete)
8532 (make_cleanup_ui_out_stream_delete): Delete declarations.
8533 * ui-out.c (ui_out_field_stream): Change prototype to take a
8534 ui_file instead of a ui_stream. Adjust.
8535 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8536 (make_cleanup_ui_out_stream_delete): Delete.
8537 * breakpoint.c (print_breakpoint_location)
8538 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8539 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8540 * disasm.c (dump_insns): Ditto.
8541 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8542 prototype.
8543 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8544 ui_stream/ui_out_stream_new.
8545 * infcmd.c (print_return_value): Ditto.
8546 * osdata.c (info_osdata_command): Don't allocate a local
8547 ui_stream.
8548 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8549 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8550 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8551 allocate a local ui_stream.
8552 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8553 instead of ui_stream/ui_out_stream_new.
8554 (list_args_or_locals): Don't allocate a local ui_stream.
8555 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8556 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8557 ui_stream/ui_out_stream_new.
8558 * cli/cli-setshow.c (do_setshow_command): Ditto.
8559
8560 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8561
8562 * arm-linux-tdep.c (arm_linux_init_abi): Call
8563 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8564 * arm-tdep.c (arm_process_record): New function.
8565 (deallocate_reg_mem): New function.
8566 (decode_insn): New function.
8567 (thumb_record_branch): New function.
8568 (thumb_record_ldm_stm_swi(): New function.
8569 (thumb_record_misc): New function.
8570 (thumb_record_ld_st_stack): New function.
8571 (thumb_record_ld_st_imm_offset): New function.
8572 (thumb_record_ld_st_reg_offset(): New function.
8573 (thumb_record_add_sub_cmp_mov): New function.
8574 (thumb_record_shift_add_sub): New function.
8575 (arm_record_coproc_data_proc): New function.
8576 (arm_record_coproc): New function.
8577 (arm_record_b_bl): New function.
8578 (arm_record_ld_st_multiple): New function.
8579 (arm_record_ld_st_reg_offset): New function.
8580 (arm_record_ld_st_imm_offset): New function.
8581 (arm_record_data_proc_imm): New function.
8582 (arm_record_data_proc_misc_ld_str): New function.
8583 (arm_record_extension_space): New function.
8584 (arm_record_strx): New function.
8585 (sbo_sbz): New function.
8586 (struct insn_decode_record): New structure for arm insn record.
8587 (REG_ALLOC): New macro for reg allocations.
8588 (MEM_ALLOC): New macro for memory allocations.
8589 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8590
8591 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8592
8593 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8594 (store_register): Likewise.
8595
8596 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8597
8598 * MAINTAINERS (Write After Approval): Add myself to the list.
8599
8600 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8601
8602 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8603 Describe also the option "auto".
8604
8605 2012-03-22 Richard Henderson <rth@redhat.com>
8606
8607 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8608 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8609
8610 2012-03-22 Richard Henderson <rth@redhat.com>
8611
8612 * jit.c (jit_read_code_entry): Compute alignment and offset of
8613 int64_t member before computing entry_size.
8614
8615 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8616
8617 Python scripting: Add new method Value.referenced_value to
8618 gdb.Value which can dereference pointer as well as reference
8619 values.
8620 * NEWS: Add entry under 'Python scripting' about the new method
8621 Value.referenced_value on gdb.Value objects.
8622 * python/py-value.c (valpy_referenced_value): New function
8623 defining a new method on gdb.Value objects which can dereference
8624 pointer and reference values.
8625
8626 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8627
8628 * MAINTAINERS (Write After Approval): Add myself to the list.
8629
8630 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8631
8632 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8633 in addition to "main".
8634
8635 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8636
8637 * expression.h (op_name): Add declaration.
8638 * expprint.c (op_name): Remove declaration. Make non-static.
8639 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8640
8641 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8642
8643 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8644 of struct siginfo.
8645 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8646 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8647 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8648 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8649 (linux_nat_get_siginfo): Likewise.
8650 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8651 (linux_nat_get_siginfo): Likewise.
8652 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8653 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8654 * procfs.c (gdb_siginfo_t): Likewise.
8655
8656 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8657
8658 * .gitignore: Ignore more files.
8659
8660 2012-03-20 Pedro Alves <palves@redhat.com>
8661
8662 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8663 returns.
8664
8665 2012-03-20 Yao Qi <yao@codesourcery.com>
8666
8667 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8668 comment.
8669
8670 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8671
8672 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8673 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8674 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8675 sect_offset.
8676 * dwarf2expr.h (cu_offset, sect_offset): New types.
8677 (struct dwarf_expr_context_funcs) <dwarf_call>
8678 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8679 sect_offset.
8680 (struct dwarf_expr_context) <len>: Improve the comment.
8681 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8682 cu_offset and sect_offset.
8683 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8684 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8685 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8686 * dwarf2loc.h: Include dwarf2expr.h.
8687 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8688 and sect_offset.
8689 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8690 Improve the comment.
8691 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8692 (struct signatured_type, struct line_header, struct partial_die_info)
8693 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8694 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8695 (get_die_type_at_offset, create_cus_from_index)
8696 (create_signatured_type_table_from_index, dw2_get_file_names)
8697 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8698 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8699 (create_debug_types_hash_table, process_psymtab_comp_unit)
8700 (load_partial_comp_unit, create_all_comp_units)
8701 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8702 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8703 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8704 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8705 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8706 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8707 (find_partial_die, read_attribute_value, lookup_die_type)
8708 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8709 (is_ref_attr): New function comment.
8710 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8711 Use cu_offset and sect_offset.
8712 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8713 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8714 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8715 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8716 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8717 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8718 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8719 sect_offset.
8720
8721 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8722
8723 Code cleanup.
8724 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8725 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8726 with xfree.
8727 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8728
8729 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8730
8731 * NEWS: Describe new options --init-command=FILE, -ix and
8732 --init-eval-command=COMMAND, -iex.
8733 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8734 CMDARG_INIT_COMMAND.
8735 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8736 "init-command", "init-eval-command", "ix" and "iex" to the variable
8737 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8738 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8739 (print_gdb_help): Describe --init-command=FILE, -ix and
8740 --init-eval-command=COMMAND, -iex.
8741
8742 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8743
8744 Code cleanup.
8745 * main.c (struct cmdarg): Move it here from main. Add more comments.
8746 (cmdarg_s, VEC (cmdarg_s)): New.
8747 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8748 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8749 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8750 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8751 of CMDARG.
8752
8753 2012-03-19 Tom Tromey <tromey@redhat.com>
8754
8755 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8756
8757 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8758
8759 PR symtab/13777
8760 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8761 GCC >=4.5.
8762
8763 2012-03-16 Chris January <chris.january@allinea.com>
8764
8765 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8766 of clear.
8767
8768 2012-03-16 Chris January <chris.january@allinea.com>
8769
8770 * source.c (add_path): Use memmove instead of strcpy because the
8771 strings overlap.
8772
8773 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8774
8775 * value.h (set_value_parent): Add declaration.
8776 * value.c (set_value_parent): New function.
8777 (value_address): If VALUE->PARENT is not NULL, then use it as
8778 the base address instead of VALUE->LOCATION.address.
8779 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8780 the same as OBJ's address. Adjust V's offset accordingly.
8781 Set V's parent.
8782
8783 2012-03-16 Gary Benson <gbenson@redhat.com>
8784
8785 PR breakpoints/10738
8786 * dwarf2read.c (use_deprecated_index_sections): New global.
8787 (struct partial_die_info): New member may_be_inlined.
8788 (read_partial_die): Set may_be_inlined where appropriate.
8789 (add_partial_subprogram): Add partial symbols for partial
8790 DIEs that may be inlined.
8791 (new_symbol_full): Add inlined subroutines to the current
8792 scope.
8793 (write_psymtabs_to_index): Bump version number.
8794 (dwarf2_read_index): Read only version 6 indices unless
8795 use_deprecated_index_sections is set.
8796 * linespec.c (symbol_and_data_callback): New structure.
8797 (iterate_inline_only): New function.
8798 (iterate_over_all_matching_symtabs): New argument
8799 "include_inline". If nonzero, also call the callback for
8800 symbols representing inlined subroutines.
8801 (lookup_prefix_sym): Pass extra argument to the above.
8802 (find_function_symbols): Likewise.
8803 (add_matching_symbols_to_info): Likewise.
8804 * NEWS: Mention that GDB can now set breakpoints on inlined
8805 functions.
8806
8807 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8808
8809 * p-typeprint.c (pascal_type_print_method_args):
8810 Fix display of parameter of methods.
8811
8812 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8813
8814 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8815 Add missing prototype.
8816
8817 2012-03-16 Yao Qi <yao@codesourcery.com>
8818 Jan Kratochvil <jan.kratochvil@redhat.com>
8819
8820 Fix false compilation warning.
8821 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8822
8823 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8824 Pedro Alves <pedro@codesourcery.com>
8825
8826 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8827 (arm_register_g_packet_guesses): New function.
8828 (arm_gdbarch_init): Don't force a target description with
8829 registers when the executable is detected as M-profile. Instead
8830 set gdbarch->tdep->is_m. Register `g' packet guesses.
8831 (_initialize_arm_tdep): Initialize the new target description.
8832 * features/arm-with-m-fpa-layout.xml: New description.
8833 * features/arm-with-m-fpa-layout.c: New, generated.
8834
8835 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8836
8837 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8838 Update function description.
8839 (insert_bp_location): Do not wipe bl->target_info out.
8840 * mem-break.c: #include "gdb_string.h".
8841 (default_memory_insert_breakpoint): Do not call target_read_memory
8842 with a pointer to the breakpoint's shadow_contents buffer. Use
8843 a local buffer instead.
8844 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8845
8846 2012-03-15 Tom Tromey <tromey@redhat.com>
8847
8848 * NEWS: Mention "info vtbl", not "info vtable".
8849 * cp-support.c (info_vtbl_command): Fix comment.
8850 (_initialize_cp_support): Fix text.
8851
8852 2012-03-15 Tom Tromey <tromey@redhat.com>
8853
8854 * cp-valprint.c (cp_print_value_fields): Use
8855 print_function_pointer_address for vtable slot.
8856
8857 2012-03-15 Tom Tromey <tromey@redhat.com>
8858
8859 * gnu-v3-abi.c (struct value_and_voffset): New.
8860 (hash_value_and_voffset, eq_value_and_voffset)
8861 (compare_value_and_voffset, compute_vtable_size)
8862 (print_one_vtable, gnuv3_print_vtable): New functions.
8863 (init_gnuv3_ops): Initialize 'print_vtable' field.
8864 * cp-support.c (info_vtbl_command): New function.
8865 (_initialize_cp_support): Add "info vtbl".
8866 * cp-abi.h (cplus_print_vtable): Declare.
8867 (struct cp_abi_ops) <print_vtable>: New field.
8868 * cp-abi.c (cplus_print_vtable): New function.
8869 * NEWS: Update.
8870
8871 2012-03-15 Tom Tromey <tromey@redhat.com>
8872
8873 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8874 iterate_over_symbols.
8875
8876 2012-03-14 Doug Evans <dje@google.com>
8877
8878 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8879 DW_OP_GNU_parameter_ref.
8880
8881 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8882
8883 Fix double prompt of 'interpreter-exec mi'.
8884 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8885 (mi_interpreter_resume): use it.
8886 (mi_execute_command_input_handler): New function.
8887 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8888 mi_execute_command_input_handler.
8889
8890 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8891
8892 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8893 prototype.
8894 (darwin_debug_port_info): Make static.
8895 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8896 * machoread.c (_initialize_machoread): Add prototype.
8897 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8898 (i386_darwin_set_control, i386_darwin_get_control)
8899 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8900 i386_darwin_get_status, i386_darwin_get_control):
8901 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8902
8903 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8904
8905 * ax-gdb.c (gen_usual_unary): Remove special handling of
8906 enum and bool types.
8907
8908 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8909
8910 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8911
8912 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8913
8914 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8915
8916 2012-03-13 Chris January <chris.january@allinea.com>
8917
8918 * aix-thread.c (fill_sprs): Store the floating point registers
8919 at the correct offsets into vals.
8920
8921 2012-03-13 Doug Evans <dje@google.com>
8922
8923 * NEWS: Mention symbol-reloading has been deleted.
8924 * symfile.c (symbol_reloading): Delete.
8925 (show_symbol_reloading): Delete.
8926 (_initialize_symfile): Delete set/show symbol-reloading.
8927
8928 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8929 read_in_chain until we have successfully read it in.
8930 (load_full_comp_unit): Ditto.
8931 (read_signatured_type): Add comment.
8932
8933 2012-03-13 Chris January <chris.january@allinea.com>
8934
8935 * stabsread.c (fix_common_block): Change type of valu argument
8936 to CORE_ADDR.
8937
8938 2012-03-13 Chris January <chris.january@allinea.com>
8939
8940 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8941 instruction.
8942
8943 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8944
8945 * common/linux-procfs.c (linux_proc_get_int): New, from
8946 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8947 field.
8948 (linux_proc_get_tgid): Only call linux_proc_get_int.
8949 (linux_proc_get_tracerpid): New.
8950 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8951 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8952 linux_proc_pid_has_state.
8953 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8954 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8955 (linux_ptrace_attach_warnings): New.
8956 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8957 New declaration.
8958 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8959 (linux_nat_attach): New variables ex, buffer, message and message_s.
8960 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8961
8962 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8963
8964 * Makefile.in (linux-ptrace.o): New.
8965 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8966 from linux-nat.c.
8967 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8968 * common/linux-ptrace.c: New file.
8969 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8970 * config/arm/linux.mh: Likewise.
8971 * config/i386/linux.mh: Likewise.
8972 * config/i386/linux64.mh: Likewise.
8973 * config/ia64/linux.mh: Likewise.
8974 * config/m32r/linux.mh: Likewise.
8975 * config/m68k/linux.mh: Likewise.
8976 * config/mips/linux.mh: Likewise.
8977 * config/pa/linux.mh: Likewise.
8978 * config/powerpc/linux.mh: Likewise.
8979 * config/powerpc/ppc64-linux.mh: Likewise.
8980 * config/powerpc/spu-linux.mh: Likewise.
8981 * config/s390/s390.mh: Likewise.
8982 * config/sparc/linux.mh: Likewise.
8983 * config/sparc/linux64.mh: Likewise.
8984 * config/xtensa/linux.mh: Likewise.
8985 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8986 common/linux-procfs.c.
8987 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8988
8989 2012-03-13 Hui Zhu <teawater@gmail.com>
8990 Pedro Alves <palves@redhat.com>
8991
8992 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8993 CREATE_BREAKPOINT_FLAGS_INSERTED.
8994 (create_breakpoint_sal, create_breakpoints_sal)
8995 (base_breakpoint_create_breakpoints_sal)
8996 (tracepoint_create_breakpoints_sal)
8997 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8998 down.
8999 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9000 (ftrace_command, strace_command): Adjust.
9001 (create_tracepoint_from_upload): Pass
9002 CREATE_BREAKPOINT_FLAGS_INSERTED.
9003 * breakpoint.h (enum breakpoint_create_flags): New.
9004 (create_breakpoint): New flags parameter.
9005 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9006 * python/py-breakpoint.c (bppy_init): Adjust.
9007 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9008 * spu-tdep.c (spu_catch_start): Adjust.
9009
9010 2012-03-13 Pedro Alves <palves@redhat.com>
9011 Hui Zhu <teawater@gmail.com>
9012 Yao Qi <yao@codesourcery.com>
9013
9014 * remote.c (struct remote_state): New field `starting_up'.
9015 (remote_start_remote): Set and clear it.
9016 (remote_can_download_tracepoint): If starting up, return false.
9017
9018 2012-03-13 Yao Qi <yao@codesourcery.com>
9019
9020 * inferior.h (struct inferior): Remove fields any_syscall_count,
9021 syscalls_counts and total_syscalls_count. Move them to new
9022 struct catch_syscall_inferior_data in breakpoint.c.
9023 * breakpoint.c: Call DEF_VEC_I(int).
9024 (struct catch_syscall_inferior_data): New.
9025 (get_catch_syscall_inferior_data): New.
9026 (catch_syscall_inferior_data_cleanup): New.
9027 (insert_catch_syscall): Update to access data in
9028 struct catch_syscall_inferior_data.
9029 (insert_catch_syscall): Likewise.
9030 (remove_catch_syscall): Likewise.
9031 (remove_catch_syscall): Likewise.
9032 (is_syscall_catchpoint_enabled): Likewise.
9033 (add_catch_command): Likewise.
9034 (_initialize_breakpoint): Register cleanup.
9035 * breakpoint.h: Removed DEF_VEC_I(int).
9036 * dwarf2loc.c: Call DEF_VEC_I(int).
9037 * mi/mi-main.c: Likewise.
9038
9039 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9040
9041 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9042
9043 2012-03-12 Chris January <chris.january@allinea.com>
9044
9045 * aix-thread.c (_initialize_aix_thread): Add prototype.
9046 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9047 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9048
9049 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9050
9051 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9052 include of "amd64-nat.h".
9053
9054 2012-03-12 Tom Tromey <tromey@redhat.com>
9055
9056 * buildsym.c (record_pending_block): Now static.
9057 * buildsym.h: (record_pending_block): Remove.
9058
9059 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9060
9061 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9062
9063 2012-03-09 Tom Tromey <tromey@redhat.com>
9064
9065 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9066 producer_is_gxx_lt_4_6>: New fields.
9067 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9068
9069 2012-03-09 Tom Tromey <tromey@redhat.com>
9070
9071 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9072
9073 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9074
9075 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9076 prototype.
9077
9078 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9079
9080 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9081
9082 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9083
9084 Fix -Wmissing-prototypes build.
9085 * arm-linux-nat.c (get_thread_id): Make it static.
9086 * xtensa-linux-nat.c (get_thread_id): Likewise.
9087
9088 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9089
9090 * server.c (process_point_options): If a conditional expression
9091 is found, only print a message if remote_debug is nonzero.
9092
9093 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9094
9095 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9096 of internal error for unknown/unsupported types.
9097
9098 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9099
9100 Fix CU relative vs. absolute DIE offsets.
9101 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9102 offset to offset_in_cu.
9103 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9104 TYPE_OFFSET.
9105 (dwarf2_fetch_die_location_block): Rename parameter offset to
9106 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9107
9108 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9109
9110 * libunwind-frame.c: Rename to ...
9111 * ia64-libunwind-tdep.c: ... here.
9112 * libunwind-frame.h: Rename to ...
9113 * ia64-libunwind-tdep.h: ... here.
9114 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9115 ia64-libunwind-tdep.h.
9116 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9117 * README (--with-libunwind): Rename to ...
9118 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9119 * config.in: Regenerate.
9120 * configure: Regenerate.
9121 * configure.ac: New option --with-libunwind-ia64, make the
9122 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9123 Remove AC_DEFINE for HAVE_LIBUNWIND.
9124 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9125 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9126 Rename libunwind-frame in the general comment.
9127 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9128 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9129 Move forward declarations inside #ifndef. Rename libunwind-frame in
9130 the general comment.
9131 * ia64-tdep.c: Rename libunwind-frame.h #include to
9132 ia64-libunwind-tdep.h.
9133 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9134 (ia64_libunwind_descr): Rename libunwind-frame to
9135 ia64-libunwind-tdep in these function comments.
9136 * ia64-tdep.h: Rename libunwind-frame.h #include to
9137 ia64-libunwind-tdep.h.
9138 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9139 ia64-libunwind-tdep in that data comment.
9140
9141 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9142
9143 * libunwind-frame.h (struct frame_unwind): New declaration.
9144
9145 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9146
9147 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9148 "set breakpoint condition-evaluation" command.
9149
9150 2012-03-08 Tristan Gingold <gingold@adacore.com>
9151
9152 * sparc-stub.c: Move to stubs/
9153 * sh-stub.c: Likewise.
9154 * m68k-stub.c: Likewise.
9155 * m32r-stub.c: Likewise.
9156 * i386-stub.c: Likewise.
9157
9158 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9159
9160 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9161 linux_get_siginfo_type.
9162
9163 * m68klinux-nat.c: Include "gdb_proc_service.h".
9164 (PTRACE_GET_THREAD_AREA): Define.
9165 (ps_get_thread_area): New function.
9166
9167 2012-03-08 Yao Qi <yao@codesourcery.com>
9168
9169 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9170 `xsnprintf'.
9171 (remote_query_attached): Likewise.
9172 (remote_static_tracepoint_marker_at): Likewise.
9173 (remote_set_permissions): Likewise.
9174 (remote_detach_1, extended_remote_attach_1): Likewise.
9175 (send_g_packet, remote_vkill): Likewise.
9176 (extended_remote_disable_randomization): Likewise.
9177 (remote_add_target_side_condition): Likewise.
9178 (remote_insert_breakpoint): Likewise.
9179 (remote_remove_breakpoint): Likewise.
9180 (remote_insert_watchpoint): Likewise.
9181 (remote_remove_watchpoint): Likewise.
9182 (remote_insert_hw_breakpoint): Likewise.
9183 (remote_insert_hw_breakpoint): Likewise.
9184 (remote_remove_hw_breakpoint): Likewise.
9185 (remote_download_command_source): Likewise.
9186 (remote_download_tracepoint): Likewise.
9187 (remote_download_trace_state_variable): Likewise.
9188 (remote_disable_tracepoint): Likewise.
9189 (remote_trace_set_readonly_regions): Likewise.
9190 (remote_get_tracepoint_status): Likewise.
9191 (remote_trace_find): Likewise.
9192 (remote_get_trace_state_variable_value): Likewise.
9193 (remote_set_disconnected_tracing): Likewise.
9194 (remote_set_circular_trace_buffer): Likewise.
9195 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9196 (remote_use_agent): Likewise.
9197 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9198 Update callers.
9199
9200 2012-03-07 Pedro Alves <palves@redhat.com>
9201
9202 * NEWS: Mention QProgramSignals.
9203 * inferior.h (update_signals_program_target): Declare.
9204 * infrun.c: (update_signals_program_target): New.
9205 (handle_command): Update the target of the new program signals
9206 array changes.
9207 * remote.c (PACKET_QProgramSignals): New enum.
9208 (last_program_signals_packet): New global.
9209 (remote_program_signals): New.
9210 (remote_start_remote): Update the target with the program signals
9211 list.
9212 (remote_protocol_features): Add entry for QPassSignals.
9213 (remote_open_1): Free anc clear last_program_signals_packet.
9214 (init_remote_ops): Install remote_program_signals.
9215 * target.c (update_current_target): Adjust.
9216 (target_program_signals): New.
9217 * target.h (struct target_ops) <to_program_signals>: New field.
9218 (target_program_signals): Declare.
9219
9220 2012-03-07 Pedro Alves <palves@redhat.com>
9221
9222 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9223 extensions.
9224
9225 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9226
9227 * m68klinux-nat.c (getregs_supplies): Make static.
9228 (getfpregs_supplies): Likewise.
9229 (have_ptrace_getregs): Likewise.
9230
9231 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9232
9233 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9234 in call to get_die_type_at_offset.
9235
9236 2012-03-06 Stan Shebs <stan@codesourcery.com>
9237
9238 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9239 * mi/mi-cmd-disas.c: Ditto.
9240 * mi/mi-cmd-env.c: Ditto.
9241 * mi/mi-cmd-file.c: Ditto.
9242 * mi/mi-cmd-stack.c: Ditto.
9243 * mi/mi-cmd-target.c: Ditto.
9244 * mi/mi-cmd-var.c: Ditto.
9245 * mi/mi-cmds.c: Ditto.
9246 * mi/mi-cmds.h: Ditto.
9247 * mi/mi-console.c: Ditto.
9248 * mi/mi-getopt.c: Ditto.
9249 * mi/mi-getopt.h: Ditto.
9250 * mi/mi-interp.c: Ditto.
9251 * mi/mi-main.c: Ditto.
9252 * mi/mi-out.c: Ditto.
9253 * mi/mi-parse.c: Ditto.
9254 * mi/mi-parse.h: Ditto.
9255 * mi/mi-symbol-cmds.c: Ditto.
9256
9257 * mi/mi-getopt.h: Move mi_opt struct up.
9258 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9259 return.
9260 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9261
9262 2012-03-06 Tom Tromey <tromey@redhat.com>
9263
9264 * proc-service.c (ps_pglobal_lookup): Set the current program
9265 space.
9266
9267 2012-03-06 Pedro Alves <palves@redhat.com>
9268
9269 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9270
9271 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9272
9273 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9274
9275 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9276
9277 Code cleanup.
9278 * common/linux-osdata.c (linux_common_core_of_thread): New function
9279 comment.
9280 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9281 call by linux_common_core_of_thread.
9282 (linux_nat_core_of_thread_1): Remove.
9283 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9284 * linux-thread-db.c: Include linux-osdata.h.
9285 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9286 linux_common_core_of_thread.
9287
9288 2012-03-05 Tom Tromey <tromey@redhat.com>
9289
9290 * value.c (value_primitive_field): Don't fetch contents for
9291 non-virtual bases.
9292
9293 2012-03-05 Tom Tromey <tromey@redhat.com>
9294
9295 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9296
9297 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9298
9299 * s390-nat.c: Include "gregset.h".
9300
9301 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9302
9303 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9304 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9305 (libunwind_load): New variable so_error, use it for dlerror. Try to
9306 load also LIBUNWIND_SO_7.
9307
9308 2012-03-05 Pedro Alves <palves@redhat.com>
9309
9310 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9311 is not NULL, and remove resulting dead code.
9312
9313 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9314
9315 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9316 prologue to sh_analyze_prologue.
9317 (sh_analyze_prologue): Make better use of such an upper limit, and
9318 generally be more cautious about accessing memory.
9319
9320 2012-03-05 Tom Tromey <tromey@redhat.com>
9321
9322 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9323 _initialize_ia64_hpux_tdep.
9324
9325 2012-03-05 Pedro Alves <palves@redhat.com>
9326
9327 PR gdb/13766
9328
9329 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9330 the register state is clear, supply explicit zero, instead of
9331 marking the register unavailable.
9332
9333 2012-03-05 Tristan Gingold <gingold@adacore.com>
9334
9335 * NEWS: Mention OpenVMS ia64 new target.
9336
9337 2012-03-05 Tristan Gingold <gingold@adacore.com>
9338
9339 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9340 (ia64_unw_accessors, ia64_unw_rse_accessors)
9341 (ia64_libunwind_descr): Declare.
9342 * ia64-vms-tdep.c: New file.
9343 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9344 (ia64_libunwind_descr): Make them public.
9345 * configure.tgt: Add ia64-*-*vms*.
9346 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9347 (ALLDEPFILES): Add ia64-vms-tdep.c
9348
9349 2012-03-05 Tristan Gingold <gingold@adacore.com>
9350
9351 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9352 * remote.c (PACKET_qXfer_uib): New enum value.
9353 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9354 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9355 (_initialize_remote): Call add_packet_config_cmd for
9356 xfer:uib packet.
9357
9358 2012-03-05 Tristan Gingold <gingold@adacore.com>
9359
9360 * osabi.c (gdb_osabi_names): Add OpenVMS.
9361 (generic_elf_osabi_sniffer): Likewise.
9362 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9363
9364 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9365
9366 Removed unused code.
9367 * libunwind-frame.c (libunwind_frame_unwind)
9368 (libunwind_frame_base_address): Remove.
9369 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9370
9371 2012-03-04 Yao Qi <yao@codesourcery.com>
9372
9373 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9374 remove trailing new line.
9375 (agent_run_command, agent_run_command): Add _ markup.
9376 (agent_capability_check): Likewise.
9377
9378 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9379
9380 * breakpoint.c (set_condition_evaluation_mode): Set
9381 CONDITION_EVALUATION_MODE unconditionally.
9382
9383 2012-03-03 Yao Qi <yao@codesourcery.com>
9384
9385 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9386 * common/agent.h: Update declaration.
9387 * inf-child.c (inf_child_use_agent): New.
9388 (inf_child_can_use_agent): New.
9389 (inf_child_target): Initialize fields `to_use_agent'
9390 and `to_can_use_agent'.
9391 * agent.c (agent_new_objfile): New.
9392 (_initialize_agent): Add agent_new_objfile to new_objfile
9393 observer.
9394
9395 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9396 New.
9397 (linux_target_install_ops): Initialize field
9398 `to_static_tracepoint_markers_by_strid'.
9399 * remote.c (free_current_marker): Move it to ...
9400 * tracepoint.c (free_current_marker): ... here. New.
9401 (cleanup_target_stop): New.
9402 * tracepoint.h: Declare free_current_marker.
9403 * NEWS: Add one entry about `info static-tracepoint-marker'.
9404
9405 2012-03-03 Yao Qi <yao@codesourcery.com>
9406
9407 * common/agent.c (agent_loaded_p): New.
9408 (agent_look_up_symbols): New global.
9409 * common/agent.h: Declare agent_loaded_p.
9410
9411 2012-03-03 Yao Qi <yao@codesourcery.com>
9412
9413 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9414 (agent_capability_check, agent_capability_invalidate): New.
9415 (symbol_list): New array element.
9416 * common/agent.h (enum agent_capa): New.
9417 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9418
9419 2012-03-03 Yao Qi <yao@codesourcery.com>
9420
9421 * target.h (struct target_ops) <to_use_agent>: New field.
9422 (struct target_ops) <to_can_use_agent>: New field.
9423 (target_use_agent, target_can_use_agent): New macro.
9424 * target.c (update_current_target): Update.
9425 * remote.c: New enum `PACKET_QAgent'.
9426 (remote_protocol_features): Add a new element.
9427 (remote_use_agent, remote_can_use_agent): New.
9428 (init_remote_ops): Initialize field `can_use_agent' with
9429 remote_can_use_agent. Intiailize field `use_agent' with
9430 remote_use_agent.
9431 * common/agent.c (use_agent): New global.
9432 * common/agent.h: Declare it.
9433 * tracepoint.c (info_static_tracepoint_markers_command): Add
9434 comment.
9435 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9436 (COMMON_OBS): Add common/agent.o and agent.o
9437 (common-agent.o): New rule.
9438 * agent.c: New.
9439
9440 2012-03-03 Yao Qi <yao@codesourcery.com>
9441
9442 * common/agent.c: New.
9443 * common/agent.h: New.
9444 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9445 AC_CHECK_HEADERS.
9446 * configure, configh.in: Regenerated.
9447
9448 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9449
9450 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9451 unless it exists for this architecture.
9452
9453 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9454
9455 * language.h (struct language_defn): New "method" la_read_var_value.
9456 * findvar.c: #include "language.h".
9457 (default_read_var_value): Renames read_var_value. Rewrite
9458 function description.
9459 (read_var_value): New function.
9460 * value.h (default_read_var_value): Add prototype.
9461 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9462 New functions.
9463 (ada_language_defn): Add entry for la_read_var_value.
9464 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9465 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9466 language_defn structures to add entry for new la_read_var_value
9467 field.
9468
9469 2012-03-02 Tom Tromey <tromey@redhat.com>
9470 Pedro Alves <palves@redhat.com>
9471
9472 PR breakpoints/13776:
9473 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9474 breakpoints.
9475 (delete_longjmp_breakpoint_at_next_stop): New.
9476 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9477 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9478 before deleting the inferior. Add comments.
9479 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9480 breakpoints immediately, but only on next stop. Move that code
9481 next to where we mark other breakpoints for deletion.
9482
9483 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9484
9485 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9486 marker.
9487 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9488 violation.
9489
9490 2012-03-02 Pedro Alves <palves@redhat.com>
9491
9492 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9493
9494 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9495
9496 Fix -Wmissing-prototypes build.
9497 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9498 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9499 (gdbsim_has_memory): Likewise.
9500
9501 2012-03-02 Yao Qi <yao@codesourcery.com>
9502
9503 Fix -Wmissing-prototypes build.
9504 * charset.c (phony_iconv_open): Make static.
9505 (phony_iconv_close, phony_iconv): Likewise.
9506 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9507 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9508 prototype.
9509 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9510 * ser-mingw.c (create_select_thread): Make static.
9511 * windows-termcap.c (tgetent): New prototype.
9512 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9513
9514 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9515
9516 Fix -Wmissing-prototypes build.
9517 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9518 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9519 (_initialize_loadable): New prototypes.
9520
9521 2012-03-02 Doug Evans <dje@google.com>
9522
9523 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9524 abbrev table, read_comp_unit will do it.
9525
9526 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9527
9528 Fix -Wmissing-prototypes build.
9529 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9530 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9531 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9532 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9533 (_initialize_arm_symbian_tdep): New prototype.
9534 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9535 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9536 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9537 static.
9538 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9539 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9540 prototype.
9541 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9542 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9543 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9544 static.
9545 * moxie-tdep.c (moxie_process_record): Likewise.
9546 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9547 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9548 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9549 (_initialize_rl78_tdep): New prototype.
9550 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9551 (_initialize_rx_tdep): New prototype.
9552 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9553 (_initialize_darwin_solib): New prototype.
9554 * solib-spu.c: Include solib-spu.h.
9555 (_initialize_spu_solib): New prototype.
9556 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9557 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9558 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9559 (tic6x_software_single_step): Make it static.
9560 (_initialize_tic6x_tdep): New prototype.
9561
9562 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9563
9564 Fix -Wmissing-prototypes build.
9565 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9566 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9567
9568 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9569
9570 Fix -Wmissing-prototypes build.
9571 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9572 (frv_have_stopped_data_address): Remove.
9573
9574 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9575
9576 Fix -Wmissing-prototypes build.
9577 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9578 * sh-tdep.c: Include sh64-tdep.h.
9579 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9580 * sh64-tdep.c: Include sh64-tdep.h.
9581 * sh64-tdep.h: New file.
9582
9583 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9584
9585 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9586
9587 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9588
9589 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9590 sp_regnum once the gdbarch_init_osabi hook has been called.
9591
9592 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9593
9594 * mips-tdep.c (mips32_bc1_pc): New function.
9595 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9596 BPOSGE32 and BPOSGE64 instructions.
9597 (deal_with_atomic_sequence): Likewise.
9598 (mips32_instruction_has_delay_slot): Likewise.
9599
9600 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9601 Chris Dearman <chris@mips.com>
9602 Maciej W. Rozycki <macro@codesourcery.com>
9603 Joseph Myers <joseph@codesourcery.com>
9604
9605 * features/mips-dsp.xml: New file.
9606 * features/mips64-dsp.xml: New file.
9607 * features/mips-dsp-linux.xml: New file.
9608 * features/mips64-dsp-linux.xml: New file.
9609 * features/Makefile (WHICH): Add mips-dsp-linux and
9610 mips64-dsp-linux.
9611 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9612 * features/mips-dsp-linux.c: New file.
9613 * features/mips64-dsp-linux.c: New file.
9614 * regformats/mips-dsp-linux.dat: New file.
9615 * regformats/mips64-dsp-linux.dat: New file.
9616 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9617 registers.
9618 (mips64_linux_register_addr): Likewise.
9619 (mips64_linux_regsets_fetch_registers): Likewise.
9620 (mips64_linux_regsets_store_registers): Likewise.
9621 (mips64_linux_fetch_registers): Update call to
9622 mips64_linux_regsets_fetch_registers.
9623 (mips64_linux_store_registers): Update call to
9624 mips64_linux_regsets_store_registers.
9625 (mips_linux_read_description): Probe for DSP registers.
9626 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9627 and initialize_tdesc_mips64_dsp_linux.
9628 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9629 Remove padding of no longer used embedded register slots.
9630 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9631 (MIPS_RESTART_REGNUM): Redefine enum value.
9632 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9633 strings.
9634 (mips_tx39_reg_names): Likewise.
9635 (mips_linux_reg_names): New array of register names for Linux
9636 targets.
9637 (mips_register_name): Check for a null pointer in
9638 mips_processor_reg_names and return an empty string.
9639 (mips_register_type): Exclude embedded registers for the IRIX
9640 and Linux ABIs.
9641 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9642 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9643 DSP registers.
9644 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9645 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9646 (mips_gdbarch_init): Likewise. Initialize internal register
9647 indices for the Linux ABI. Use dynamic numbers to refer to
9648 registers, as applicable, while parsing the target description.
9649 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9650
9651 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9652
9653 * frame.h (read_frame_register_unsigned): Fix typo in function
9654 description.
9655
9656 2012-03-01 Pedro Alves <palves@redhat.com>
9657
9658 * jit-reader.in [!__cplusplus]
9659 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9660
9661 2012-03-01 Pedro Alves <palves@redhat.com>
9662
9663 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9664 * configure: Regenerate.
9665
9666 2012-03-01 Pedro Alves <palves@redhat.com>
9667
9668 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9669 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9670 (ftrace_command, strace_command): Make static.
9671 * d-lang.c (_initialize_d_language): Declare.
9672 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9673 * dwarf2loc.c (_initialize_dwarf2loc):
9674 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9675 * exec.c (exec_get_section_table): Make static.
9676 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9677 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9678 * inferior.c (remove_inferior_command, add_inferior_command)
9679 (clone_inferior_command): Make static.
9680 * linux-nat.c (linux_nat_thread_address_space)
9681 (linux_nat_core_of_thread): Make static.
9682 * linux-tdep.c (_initialize_linux_tdep): Declare.
9683 * objc-lang.c (_initialize_objc_lang): Declare.
9684 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9685 Make static.
9686 (_initialize_opencl_language): Declare.
9687 * record.c (_initialize_record): Declare.
9688 * remote.c (demand_private_info, remote_get_tib_address)
9689 (remote_supports_cond_tracepoints)
9690 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9691 Make static.
9692 * skip.c (_initialize_step_skip): Declare.
9693 * symtab.c (skip_prologue_using_lineinfo): Make static.
9694 * tracepoint.c (delete_trace_state_variable)
9695 (trace_variable_command, delete_trace_variable_command)
9696 (get_uploaded_tsv, find_matching_tracepoint_location)
9697 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9698 Make static.
9699 * value.c (pack_unsigned_long): Make static.
9700 * varobj.c (varobj_ensure_python_env): Make static.
9701 * windows-tdep.c (_initialize_windows_tdep): Declare.
9702 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9703
9704 2012-03-01 Pedro Alves <palves@redhat.com>
9705
9706 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9707 gdbarch parameter.
9708 (linux_init_abi): Install it as has_shared_address_space gdbarch
9709 callback.
9710
9711 2012-03-01 Pedro Alves <palves@redhat.com>
9712
9713 * observer.c (observer_test_first_notification_function)
9714 (observer_test_second_notification_function)
9715 (observer_test_third_notification_function): Add declarations.
9716
9717 2012-03-01 Pedro Alves <palves@redhat.com>
9718
9719 * common/signals.c (default_target_signal_to_host)
9720 (default_target_signal_from_host): Move ...
9721 * arch-utils.c: ... here.
9722 * arch-utils.h (default_target_signal_to_host)
9723 (default_target_signal_from_host): Declare.
9724
9725 * common/signals.c (target_signal_from_command): Move ...
9726 * infrun.c: ... here.
9727 * inferior.h (target_signal_from_command): Declare.
9728 * target.h (target_signal_from_command)
9729 (default_target_signal_from_host, default_target_signal_to_host):
9730 Delete declarations.
9731
9732 * common/signals.c (_initialize_signals): Delete.
9733
9734 2012-03-01 Pedro Alves <palves@redhat.com>
9735
9736 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9737 both __cplusplus and !__cplusplus.
9738
9739 2012-03-01 Pedro Alves <palves@redhat.com>
9740
9741 * psymtab.c (find_and_open_source): Delete declaration.
9742 * source.c (find_and_open_source): Move comment ...
9743 * source.h (find_and_open_source): ... to this new declaration.
9744
9745 2012-03-01 Pedro Alves <palves@redhat.com>
9746
9747 * inline-frame.c: Include inline-frame.h.
9748
9749 2012-03-01 Pedro Alves <palves@redhat.com>
9750
9751 * tui/tui-data.c (set_gen_win_origin): Delete.
9752 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9753 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9754
9755 2012-03-01 Pedro Alves <palves@redhat.com>
9756
9757 * remote.c (encode_actions): Delete declaration.
9758 * tracepoint.c (encode_actions): Make extern.
9759 * tracepoint.h (encode_actions): Declare.
9760
9761 2012-03-01 Pedro Alves <palves@redhat.com>
9762
9763 * python/py-breakpoint.c: Include python.h.
9764 * python/py-continueevent.c (create_continue_event_object): Make
9765 static.
9766 * python/py-lazy-string.c (stpy_get_type): Make static.
9767 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9768 Make static.
9769 * python/py-utils.c (unicode_to_target_python_string): Make
9770 static.
9771 * python/py-value.c: Include python.h.
9772
9773 2012-03-01 Pedro Alves <palves@redhat.com>
9774
9775 * inferior.c (delete_threads_of_inferior): Delete.
9776
9777 2012-03-01 Pedro Alves <palves@redhat.com>
9778
9779 Import fallback definitions from glibc.
9780
9781 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9782 ps_prochandle): Forward declare.
9783 (ps_err_e): Use glibc's comments.
9784 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9785 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9786 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9787 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9788 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9789 (struct ps_prochandle): Adjust comment.
9790
9791 2012-03-01 Pedro Alves <palves@redhat.com>
9792
9793 * ada-lang.c (ada_modulus_from_name): Delete.
9794 * ada-lex.l (lexer_init): Make static.
9795
9796 2012-03-01 Pedro Alves <palves@redhat.com>
9797
9798 PR gdb/13767
9799
9800 * frame.c (read_frame_register_unsigned): New.
9801 * frame.h (read_frame_register_unsigned): Declare.
9802 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9803 Handle it.
9804 (print_i387_control_word): New parameter `control_p'. Handle it.
9805 (i387_print_float_info): Handle unavailable float registers.
9806
9807 2012-03-01 Keith Seitz <keiths@redhat.com>
9808
9809 * linespec.c (decode_line_2): Sort the list of methods
9810 alphabetically before presenting the user with a selection
9811 menu.
9812
9813 2012-03-01 Doug Evans <dje@google.com>
9814
9815 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9816 has_namespace_info.
9817 (dwarf2_read_abbrevs): Remove corresponding initialization.
9818
9819 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9820
9821 * NEWS: Mention new python command class gdb.COMMAND_USER.
9822 * cli/cli-cmds.c (show_user): Print error when used on a python
9823 command.
9824 (init_cli_cmds): Update documentation strings for "show user" and
9825 "set/show max-user-call-depth" to clarify that it does not apply to
9826 python commands.
9827 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9828 error check.
9829 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9830 gdb python api.
9831 * top.c (execute_command): Only execute a user-defined command as a
9832 legacy macro if c->user_commands is set.
9833
9834 2012-03-01 Tom Tromey <tromey@redhat.com>
9835
9836 * valprint.h (struct generic_val_print_decorations): New.
9837 (generic_val_print): Declare.
9838 * valprint.c (generic_val_print): New function.
9839 * p-valprint.c (p_decorations): New global.
9840 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9841 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9842 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9843 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9844 * m2-valprint.c (m2_decorations): New global.
9845 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9846 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9847 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9848 TYPE_CODE_ERROR>: Call generic_val_print.
9849 * f-valprint.c (f_decorations): New global.
9850 (f_val_print): Use print_function_pointer_address.
9851 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9852 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9853 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9854 generic_val_print.
9855 * c-valprint.c (c_decorations): New global.
9856 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9857 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9858 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9859 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9860 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9861 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9862 case.
9863
9864 2012-03-01 Tom Tromey <tromey@redhat.com>
9865
9866 * valprint.c (val_print): Update.
9867 * p-valprint (pascal_val_print): Return void.
9868 * p-lang.h (pascal_val_print): Return void.
9869 * m2-valprint.c (m2_val_print): Return void.
9870 * m2-lang.h (m2_val_print): Return void.
9871 * language.h (struct language_defn) <la_val_print>: Return void.
9872 * language.c (unk_lang_val_print): Return void.
9873 * jv-valprint.c (java_val_print): Return void.
9874 * jv-lang.h (java_val_print): Return void.
9875 * f-valprint.c (f_val_print): Return void.
9876 * f-lang.h (f_val_print): Return void.
9877 * d-valprint.c (d_val_print): Return void.
9878 (dynamic_array_type): Update.
9879 * d-lang.h (d_val_print): Return void.
9880 * c-valprint.c (c_val_print): Return void.
9881 * c-lang.h (c_val_print): Return void.
9882 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9883 void.
9884 * ada-lang.h (ada_val_print): Return void.
9885
9886 2012-03-01 Tom Tromey <tromey@redhat.com>
9887
9888 * value.h (val_print): Return void.
9889 * valprint.c (val_print): Return void.
9890
9891 2012-03-01 Tom Tromey <tromey@redhat.com>
9892
9893 * value.h (common_val_print): Return void.
9894 * valprint.c (common_val_print): Return void.
9895
9896 2012-03-01 Tom Tromey <tromey@redhat.com>
9897
9898 * value.h (value_print): Return void.
9899 * valprint.c (value_print): Return void.
9900 * p-valprint.c (pascal_value_print): Return void.
9901 * p-lang.h (pascal_value_print): Return void.
9902 * language.h (struct language_defn) <la_value_print>: Return
9903 void.
9904 * language.c (unk_lang_value_print): Return void.
9905 * jv-valprint.c (java_value_print): Return void.
9906 * jv-lang.h (java_value_print): Return void.
9907 * f-valprint.c (c_value_print): Don't declare.
9908 Include c-lang.h.
9909 * c-valprint.c (c_value_print): Return void.
9910 * c-lang.h (c_value_print): Return void.
9911 * ada-valprint.c (ada_value_print): Return void.
9912 * ada-lang.h (ada_value_print): Return void.
9913
9914 2012-03-01 Tom Tromey <tromey@redhat.com>
9915
9916 * value.c (value_primitive_field): Handle virtual base classes.
9917
9918 2012-03-01 Tom Tromey <tromey@redhat.com>
9919
9920 * gdbtypes.h (struct vbase): Remove.
9921
9922 2012-03-01 Tom Tromey <tromey@redhat.com>
9923
9924 * c-valprint.c (print_function_pointer_address): Move...
9925 * valprint.c: ... here. Make non-static.
9926 * m2-valprint.c (print_function_pointer_address): Remove.
9927 * valprint.h (print_function_pointer_address): Declare.
9928
9929 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9930
9931 * NEWS: Document the fact that one can provide a condition when
9932 creating an Ada exception catchpoint.
9933
9934 2012-03-01 Tom Tromey <tromey@redhat.com>
9935
9936 * valprint.c (val_print_type_code_flags): Fix placement of
9937 trailing brace.
9938
9939 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9940
9941 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9942 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9943 environment variable before calling update-copyright.
9944
9945 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9946
9947 * gnulib/extra/update-copyright: Update to the latest from
9948 gnulib's git repository.
9949 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9950 variable to 2 instead of 1.
9951
9952 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9953
9954 * varobj.c (c_value_of_variable): Remove dead code.
9955
9956 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9957
9958 * ada-lex.p (processId): Do not modify already encoded IDs.
9959 Update function documentation.
9960
9961 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9962
9963 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9964 "name" with "struct symbol *name_sym".
9965 * ada-exp.y (write_var_or_type): Update call to
9966 ada_find_renaming_symbol.
9967 "name" with "struct symbol *name_sym". Adjust Implementation
9968 accordingly. Adjust the function documentation.
9969
9970 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9971
9972 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9973 * ada-lang.c (ada_find_any_type): Add advance declaration.
9974 Make static. Replace ada_find_any_symbol by
9975 ada_find_any_type_symbol.
9976 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9977 Improve function description. Make static.
9978 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9979 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9980
9981 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9982
9983 * ada-lang.c (struct tag_args): Delete.
9984 (ada_get_tsd_type): Function body moved up in source file.
9985 (ada_tag_name_1, ada_tag_name_2): Delete.
9986 (ada_get_tsd_from_tag): New function.
9987 (ada_tag_name_from_tsd): New function.
9988 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9989 to determine the tag name.
9990
9991 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9992
9993 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9994 declaration.
9995 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9996 function.
9997
9998 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9999
10000 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10001
10002 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10003
10004 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10005 full searches.
10006
10007 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10008
10009 * ada-lang.c (constrained_packed_array_type): If there is a
10010 parallel XA type, use it to determine the array index type.
10011
10012 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10013
10014 * ada-valprint.c (ada_val_print_1): If our value is a reference
10015 to an array descriptor, dereference it before converting it
10016 to a simple array.
10017
10018 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10019
10020 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10021 creating fixed value.
10022 (ada_value_ind, ada_coerce_ref, assign_component)
10023 (ada_evaluate_subexp): Remove call to unwrap_value before
10024 call to ada_to_fixed_value.
10025
10026 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ada-lang.c (to_fixed_array_type): Set result's type name.
10029
10030 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10031
10032 * ada-lang.c (catch_ada_exception_command_split): Add new
10033 argument cond_string. Add support for condition at end of
10034 "catch exception" commands.
10035 (ada_decode_exception_location): Add new argument cond_string.
10036 Update call to catch_ada_exception_command_split.
10037 (create_ada_exception_catchpoint): Add new argument cond_string.
10038 Set the breakpoint condition if needed.
10039 (catch_ada_exception_command): Update call to
10040 ada_decode_exception_location.
10041 (ada_decode_assert_location): Add function documentation.
10042 Add support for condition at end of "catch assert" command.
10043 (catch_assert_command): Update calls to ada_decode_assert_location
10044 and create_ada_exception_catchpoint.
10045
10046 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10047
10048 Fix disp-step-syscall.exp: fork: single step over fork.
10049 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10050 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10051 comment, change parameters gdbarch and ptid to regcache. Remove
10052 parameter regcache, initialize gdbarch from regcache here.
10053 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10054 New functions.
10055 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10056 instead.
10057 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10058 'syscall'. Make the 'int' check more strict.
10059
10060 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10061
10062 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10063 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10064 (i386_linux_intx80_sysenter_syscall_record): ... here.
10065 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10066 Use the renamed function name.
10067
10068 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10069
10070 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10071 * breakpoint.c (until_break_command): Likewise.
10072 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10073 * infcall.c (call_function_by_hand): Likewise.
10074 * infcmd.c (finish_forward): Likewise.
10075 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10076
10077 2012-02-28 Tristan Gingold <gingold@adacore.com>
10078
10079 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10080 avoid variable assignments inside condition.
10081
10082 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10083
10084 Fix static analysis issue found by cppcheck.
10085 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10086 uninitialized BUF for size 2.
10087
10088 2012-02-27 Chris Dearman <chris@mips.com>
10089 Nathan Froyd <froydnj@codesourcery.com>
10090 Maciej W. Rozycki <macro@codesourcery.com>
10091
10092 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10093 (mips16_instruction_has_delay_slot): Likewise.
10094 (mips_segment_boundary): Likewise.
10095 (mips_adjust_breakpoint_address): Likewise.
10096 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10097
10098 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10099 Maciej W. Rozycki <macro@codesourcery.com>
10100
10101 * infrun.c (handle_inferior_event): Don't proceed through
10102 shared library trampolines if stepping at the machine
10103 instruction level.
10104
10105 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10106
10107 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10108 too.
10109
10110 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10111
10112 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10113 (sh_stub_unwind_sniffer): New functions.
10114 (sh_stub_unwind): New variable.
10115 (sh_gdbarch_init): Wire everything.
10116
10117 2012-02-27 Pedro Alves <palves@redhat.com>
10118
10119 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10120 (linux_nat_post_attach_wait): Adjust to use
10121 linux_proc_pid_is_stopped.
10122 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10123 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10124 based on pid_is_stopped from both linux-nat.c and
10125 gdbserver/linux-low.c, and renamed.
10126
10127 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10128
10129 * remote.c (remote_watchpoint_addr_within_range): New function.
10130 (init_remote_ops): Use it.
10131
10132 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10133
10134 * target.h (target_watchpoint_addr_within_range): Document macro.
10135
10136 2012-02-24 Pedro Alves <palves@redhat.com>
10137
10138 * stack.c (set_last_displayed_sal): Issue internal_error instead
10139 of warning, and issue it after clearing the last displayed sal.
10140
10141 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10142 Pedro Alves <palves@redhat.com>
10143
10144 * breakpoint.c (until_break_command): Install breakpoints after
10145 all frame manipulations.
10146
10147 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10148
10149 * remote.c (remote_supports_cond_breakpoints): New forward
10150 declaration.
10151 (remote_add_target_side_condition): New function.
10152 (remote_insert_breakpoint): Add target-side breakpoint
10153 conditional if supported.
10154 (remote_insert_hw_breakpoint): Likewise.
10155 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10156 hook.
10157
10158 * target.c (update_current_target): Inherit
10159 to_supports_evaluation_of_breakpoint_conditions.
10160 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10161
10162 * target.h (struct target_ops)
10163 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10164 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10165
10166 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10167 (condition_evaluation_both, condition_evaluation_auto,
10168 condition_evaluation_host, condition_evaluation_target,
10169 condition_evaluation_enums, condition_evaluation_mode_1,
10170 condition_evaluation_mode): New static globals.
10171 (translate_condition_evaluation_mode): New function.
10172 (breakpoint_condition_evaluation_mode): New function.
10173 (gdb_evaluates_breakpoint_condition_p): New function.
10174 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10175 (mark_breakpoint_modified): New function.
10176 (mark_breakpoint_location_modified): New function.
10177 (set_condition_evaluation_mode): New function.
10178 (show_condition_evaluation_mode): New function.
10179 (bp_location_compare_addrs): New function.
10180 (get_first_location_gte_addr): New helper function.
10181 (set_breakpoint_condition): Free condition bytecode if locations
10182 has become unconditional. Call mark_breakpoint_modified (...).
10183 (condition_command): Call update_global_location_list (1) for
10184 breakpoints.
10185 (breakpoint_xfer_memory): Use is_breakpoint (...).
10186 (is_breakpoint): New function.
10187 (parse_cond_to_aexpr): New function.
10188 (build_target_condition_list): New function.
10189 (insert_bp_location): Handle target-side conditional
10190 breakpoints and call build_target_condition_list (...).
10191 (update_inserted_breakpoint_locations): New function.
10192 (insert_breakpoint_locations): Handle target-side conditional
10193 breakpoints.
10194 (bpstat_check_breakpoint_conditions): Add comment.
10195 (bp_condition_evaluator): New function.
10196 (bp_location_condition_evaluator): New function.
10197 (print_breakpoint_location): Print information on where the condition
10198 will be evaluated.
10199 (print_one_breakpoint_location): Likewise.
10200 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10201 breakpoint location.
10202 (force_breakpoint_reinsertion): New functions.
10203 (update_global_location_list): Handle target-side breakpoint
10204 conditions.
10205 Reinsert locations that are already inserted if conditions have
10206 changed.
10207 (bp_location_dtor): Free agent expression bytecode.
10208 (disable_breakpoint): Call mark_breakpoint_modified (...).
10209 Call update_global_location_list (...) with parameter 1 for breakpoints.
10210 (disable_command): Call mark_breakpoint_location_modified (...).
10211 Call update_global_location_list (...) with parameter 1 for breakpoints.
10212 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10213 (enable_command): mark_breakpoint_location_modified (...).
10214 (_initialize_breakpoint): Update documentation and add
10215 condition-evaluation breakpoint subcommand.
10216
10217 * breakpoint.h: Include ax.h.
10218 (condition_list): New data structure.
10219 (condition_status): New enum.
10220 (bp_target_info) <cond_list>: New field.
10221 (bp_location) <condition_changed, cond_bytecode>: New fields.
10222 (is_breakpoint): New prototype.
10223
10224 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10225
10226 * remote.c (remote_state) <cond_breakpoints>: New field.
10227 (PACKET_ConditionalBreakpoints): New enum.
10228 (remote_cond_breakpoint_feature): New function.
10229 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10230 (remote_supports_cond_breakpoints): New function.
10231 (_initialize_remote): Add new packet configuration for
10232 target-side conditional breakpoints.
10233
10234 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10235
10236 * NEWS: Mention target-side conditional breakpoint support,
10237 new condition-evaluation breakpoint subcommand and remote
10238 packet extensions.
10239
10240 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10241
10242 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10243 number.
10244
10245 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10246
10247 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10248 (after_prologue): Remove.
10249
10250 2012-02-23 Tom Tromey <tromey@redhat.com>
10251
10252 * jv-valprint.c (java_val_print): Remove dead code.
10253
10254 2012-02-23 Tristan Gingold <gingold@adacore.com>
10255
10256 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10257 known_tasks_element and known_tasks_length fields.
10258 (read_known_tasks_array): Change argument type. Use pointer type
10259 and number of elements from DATA. Adjust.
10260 (read_known_tasks_list): Likewise.
10261 (get_known_tasks_addr): Remove.
10262 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10263 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10264 type and array length. Merge former get_known_tasks_addr code.
10265
10266 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10267
10268 PR backtrace/13716
10269 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10270 it after set_momentary_breakpoint.
10271
10272 2012-02-22 Sterling Augustine <saugustine@google.com>
10273
10274 PR 13689:
10275 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10276
10277 2012-02-22 Gary Benson <gbenson@redhat.com>
10278
10279 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10280 (find_slot_in_mapped_hash): Likewise.
10281
10282 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10283
10284 PR build/13638
10285 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10286 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10287 * configure: Regenerate.
10288
10289 2012-02-21 Tristan Gingold <gingold@adacore.com>
10290 Pedro Alves <palves@redhat.com>
10291
10292 * ia64-tdep.c: Do not include libunwind-ia64.h.
10293 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10294 Include libunwind-ia64.h instead of libunwind.h.
10295 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10296 for libunwind.h existence.
10297 * configure, config.in: Regenerate.
10298
10299 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10300
10301 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10302 instead of value_rtti_target_type.
10303 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10304 instead of value_rtti_target_type.
10305 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10306 value_rtti_target_type.
10307 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10308 (value_rtti_target_type): Rename to ...
10309 (value_rtti_indirect_type): ... here and make it indirect. Update
10310 function comment.
10311 * value.c (readjust_indirect_value_type): New function.
10312 (coerce_ref): Support for enclosing type setting for references
10313 with readjust_indirect_value_type.
10314 * value.h (readjust_value_type): New declaration.
10315 (value_rtti_target_type): Rename to ...
10316 (value_rtti_indirect_type): ... here.
10317
10318 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10319
10320 * MAINTAINERS (Write After Approval): Add myself to the list.
10321
10322 2012-02-20 Doug Evans <dje@google.com>
10323
10324 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10325 Rename objfile_p_char parameter to objfilep.
10326 (build_objfile_section_table): Result is now void. All callers
10327 updated.
10328 * objfiles.h (struct objfile): Tweak comments, whitespace.
10329 (build_objfile_section_table): Update.
10330
10331 * elfread.c (elf_symfile_segments): Fix warning text.
10332
10333 2012-02-20 Tom Tromey <tromey@redhat.com>
10334
10335 PR gdb/13498:
10336 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10337 particular set of file names once.
10338 (dw2_map_symbol_filenames): Likewise.
10339
10340 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10341
10342 Code cleanup.
10343 * main.c (write_files): Remove the declaration.
10344 (external_editor_command): Move the declaration ...
10345 [GDBTK] (external_editor_command): ... here. Fix the comment.
10346
10347 2012-02-20 Tom Tromey <tromey@redhat.com>
10348
10349 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10350 extraneous block.
10351
10352 2012-02-20 Tristan Gingold <gingold@adacore.com>
10353
10354 * darwin-nat.h (enum darwin_msg_state): Add comments.
10355
10356 2012-02-20 Tristan Gingold <gingold@adacore.com>
10357
10358 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10359 value.
10360
10361 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10362
10363 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10364 between function description and implementation.
10365
10366 2012-02-17 Tom Tromey <tromey@redhat.com>
10367
10368 PR python/12070:
10369 * python/py-event.c (event_object_getset): New global.
10370 (event_object_type): Reference it.
10371 * python/py-type.c (field_object_getset): New global.
10372 (field_object_type): Reference it.
10373 * python/python-internal.h (gdb_py_generic_dict): Declare.
10374 * python/py-utils.c (gdb_py_generic_dict): New function.
10375
10376 2012-02-17 Tristan Gingold <gingold@adacore.com>
10377
10378 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10379
10380 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10381
10382 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10383 TYPE_CALLING_CONVENTION annotation.
10384
10385 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10386
10387 * MAINTAINERS: Add rx to target ISA section.
10388 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10389 (ALLDEPFILES): Add rx-tdep.c.
10390
10391 2012-02-16 Tom Tromey <tromey@redhat.com>
10392
10393 * symfile.c (symbol_file_add_main_1): Use inferior's
10394 symfile_flags.
10395 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10396 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10397 inferior.
10398 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10399 inferior.
10400 (follow_exec): Use inferior's symfile_flags.
10401 * inferior.h (struct inferior) <symfile_flags>: New field.
10402
10403 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10404
10405 PR gdb/9734:
10406 * remote-sim.c (gdbsim_create_inferior): Call error() when
10407 sim_create_inferior() fails.
10408
10409 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10410
10411 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10412
10413 2012-02-16 Tom Tromey <tromey@redhat.com>
10414
10415 PR c++/13653:
10416 * thread.c (struct current_thread_cleanup) <was_removable>: New
10417 field.
10418 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10419 (make_cleanup_restore_current_thread): Initialize new field.
10420
10421 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10422
10423 * MAINTAINERS: Add rl78 to target ISA section.
10424 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10425 (ALLDEPFILES): Add rl78-tdep.c.
10426 * NEWS: Mention rl78 as a new target.
10427
10428 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10429
10430 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10431 data.
10432 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10433
10434 2012-02-15 Tom Tromey <tromey@redhat.com>
10435
10436 PR gdb/12659:
10437 * infcmd.c (registers_info): Print just the current register's
10438 name.
10439
10440 2012-02-15 Tom Tromey <tromey@redhat.com>
10441
10442 * python/py-symbol.c (sympy_value): Use _().
10443
10444 2012-02-15 Pedro Alves <palves@redhat.com>
10445
10446 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10447 output to be like native targets'.
10448 (remote_pid_to_str): Special case the null ptid.
10449
10450 2012-02-14 Stan Shebs <stan@codesourcery.com>
10451
10452 * NEWS: Mention enable count command.
10453 * breakpoint.h (struct breakpoint): New field enable_count.
10454 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10455 (enable_breakpoint): Add arg to call.
10456 (struct disp_data): New struct.
10457 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10458 (do_map_enable_once_breakpoint): Create a struct and pass it.
10459 (do_map_enable_delete_breakpoint): Ditto.
10460 (do_map_enable_count_breakpoint): New function.
10461 (enable_count_command): New function.
10462 (bpstat_stop_status): Decrement enable_count.
10463 (print_one_breakpoint_location): Report enable count.
10464 (_initialize_breakpoint): Add enable count command.
10465
10466 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10467
10468 * rl78-tdep.c (reggroups.h): Include.
10469 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10470 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10471 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10472 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10473 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10474 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10475 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10476 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10477 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10478 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10479 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10480 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10481 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10482 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10483 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10484 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10485 beginning of register list.
10486 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10487 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10488 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10489 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10490 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10491 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10492 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10493 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10494 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10495 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10496 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10497 the pseudo registers. Rearrange other pseudo registers too so
10498 that the bank registers appear at the end.
10499 (rl78_register_type): Account for the fact that the byte sized
10500 bank registers are now pseudo-registers.
10501 (rl78_register_name): Rearrange the register name array. Make
10502 initial set of raw banked registers inaccessible.
10503 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10504 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10505 case for copying bytes back and forth between raw and pseudo
10506 versions of the banked registers. Update other cases to reflect
10507 the changed names.
10508 (rl78_return_value): Update to account for changed names of
10509 raw registers.
10510 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10511 rl78_register_sim_regno().
10512
10513 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10514
10515 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10516 the name parameter being passed to find_pc_partial_function().
10517
10518 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10519
10520 * MAINTAINERS: Step down from being ia64 target maintainer.
10521
10522 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10523
10524 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10525 compilation warning.
10526
10527 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 Fix crash on loaded shlibs without loaded exec_bfd.
10530 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10531 (set_section_command): Replace exec_bfd by p->bfd.
10532
10533 2012-02-10 Tom Tromey <tromey@redhat.com>
10534
10535 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10536 when we have a C++ qualified name.
10537
10538 2012-02-10 Pedro Alves <palves@redhat.com>
10539
10540 * inferior.c (inferior_pid_to_str): New.
10541 (print_inferior, inferior_command): Use it.
10542
10543 2012-02-10 Pedro Alves <palves@redhat.com>
10544
10545 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10546 the test CFLAGS.
10547 * configure: Regenerate.
10548
10549 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 * linespec.c (decode_line_internal): Fix comment correctness.
10552
10553 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10554
10555 PR gdb/12953
10556 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10557 * amd64bsd-nat.c: Add support for debug registers (adapted from
10558 i386bsd-nat.c).
10559 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10560 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10561 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10562 (amd64bsd_dr_get_control): New functions.
10563 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10564 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10565 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10566 watchpoints initialization.
10567 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10568
10569 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10570
10571 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10572 flds_bnds.fields.
10573 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10574
10575 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10576
10577 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10578
10579 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10580
10581 * language.h (symbol_name_cmp_ftype): Renames
10582 symbol_name_match_p_ftype.
10583 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10584 la_get_symbol_name_match_p.
10585 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10586 ada_get_symbol_name_match_p. Update comment.
10587 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10588 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10589 Renames symbol_name_match_p. Update field type.
10590 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10591 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10592 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10593 "la_get_symbol_name_cmp" in comments.
10594 * language.c: Likewise.
10595
10596 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10597
10598 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10599 %eflags offset.
10600 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10601 (amd64_sol2_gregset32_reg_offs): Likewise.
10602
10603 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10604
10605 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10606 of the returned BFD is allocated by GDB.
10607
10608 2012-02-07 Tom Tromey <tromey@redhat.com>
10609
10610 PR python/12027:
10611 * python/python-internal.h (frame_object_type): Declare.
10612 * python/py-symbol.c (sympy_needs_frame): New function.
10613 (sympy_value): New function.
10614 (symbol_object_getset): Add "needs_frame".
10615 (symbol_object_methods): Add "value".
10616 * python/py-frame.c (frame_object_type): No longer static.
10617
10618 2012-02-07 Tom Tromey <tromey@redhat.com>
10619
10620 PR python/13599:
10621 * python/py-symbol.c (sympy_line): New function.
10622 (symbol_object_getset): Add "line".
10623
10624 2012-02-07 Tom Tromey <tromey@redhat.com>
10625
10626 * charset.c (find_charset_names): Check 'in' against NULL.
10627
10628 2012-02-06 Doug Evans <dje@google.com>
10629
10630 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10631 and fields.name members from char * to const char *. All uses updated.
10632 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10633 from char * to const char *. All uses updated.
10634 (type_name_no_tag): Update.
10635 (lookup_unsigned_typename, lookup_signed_typename): Update.
10636 * gdbtypes.c (type_name_no_tag): Change result type
10637 from char * to const char *. All callers updated.
10638 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10639 name parameter from char * to const char *.
10640 * symtab.h (struct cplus_specific): Change type of demangled_name
10641 member from char * to const char *. All uses updated.
10642 (struct general_symbol_info): Change type of name and
10643 mangled_lang.demangled_name members from char * to const char *.
10644 All uses updated.
10645 (symbol_get_demangled_name, symbol_natural_name): Update.
10646 (symbol_demangled_name, symbol_search_name): Update.
10647 * symtab.c (symbol_get_demangled_name): Change result type
10648 from char * to const char *. All callers updated.
10649 (symbol_natural_name, symbol_demangled_name): Ditto.
10650 (symbol_search_name): Ditto.
10651 (completion_list_add_name): Change type of symname,sym_text,
10652 text,word parameters from char * to const char *.
10653 (completion_list_objc_symbol): Change type of sym_text,
10654 text,word parameters from char * to const char *.
10655 * ada-lang.c (find_struct_field): Change type of name parameter
10656 from char * to const char *.
10657 (encoded_ordered_before): Similarly for N0,N1 parameters.
10658 (old_renaming_is_invisible): Similarly for function_name parameter.
10659 (ada_type_name): Change result type from char * to const char *.
10660 All callers updated.
10661 * ada-lang.h (ada_type_name): Update.
10662 * buildsym.c (hashname): Change type of name parameter
10663 from char * to const char *.
10664 * buildsym.h (hashname): Update.
10665 * dbxread.c (end_psymtab): Change type of include_list parameter
10666 from char ** to const char **.
10667 * dwarf2read.c (determine_prefix): Change result type
10668 from char * to const char *. All callers updated.
10669 * f-lang.c (find_common_for_function): Change type of name, funcname
10670 parameters from char * to const char *.
10671 * f-lang.c (find_common_for_function): Update.
10672 * f-valprint.c (list_all_visible_commons): Change type of funcname
10673 parameters from char * to const char *.
10674 * gdbarch.sh (static_transform_name): Change type of name parameter
10675 and result from char * to const char *.
10676 * gdbarch.c: Regenerate.
10677 * gdbarch.h: Regenerate.
10678 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10679 of name parameter from char * to const char *.
10680 * jv-lang.c (java_primitive_type_from_name): Ditto.
10681 (java_demangled_signature_length): Similarly for signature parameter.
10682 (java_demangled_signature_copy): Ditto.
10683 (java_demangle_type_signature): Ditto.
10684 * jv-lang.h (java_primitive_type_from_name): Update.
10685 (java_demangle_type_signature): Update.
10686 * objc-lang.c (specialcmp): Change type of a,b parameters
10687 from char * to const char *.
10688 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10689 from char * to const char *. All callers updated.
10690 * p-lang.h (is_pascal_string_type): Update.
10691 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10692 of name parameter from char * to const char *.
10693 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10694 * utils.c (fprintf_symbol_filtered): Ditto.
10695 * defs.h (fprintf_symbol_filtered): Update.
10696 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10697 * stabsread.h (end_psymtab): Update.
10698 * stack.c (find_frame_funname): Change type of funname parameter
10699 from char ** to const char **.
10700 * stack.h (find_frame_funname): Update.
10701 * typeprint.c (type_print): Change type of varstring parameter
10702 from char * to const char *.
10703 * value.h (type_print): Update.
10704 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10705 from char * to const char *. All callers updated.
10706 (xcoff_end_psymtab): Change type of include_list parameter
10707 from char ** to const char **. All callers updated.
10708 (swap_sym): Similarly for name parameter. All callers updated.
10709 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10710 Use xstrdup.
10711 (process_coff_symbol): Use xstrdup.
10712 * stabsread.c (stabs_method_name_from_physname): Renamed from
10713 update_method_name_from_physname. Change result type from void
10714 to char *. All callers updated.
10715 (read_member_functions): In has_destructor case, store name in objfile
10716 obstack instead of malloc space. In !has_stub case, fix mem leak.
10717
10718 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10719
10720 * configure: Rebuild.
10721 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10722 LDFLAGS.
10723
10724 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10725
10726 * configure.tgt (rl78-*-elf): New target.
10727 * rl78-tdep.c: New file.
10728
10729 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10730
10731 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10732 and continue the loop. Add QUIT statement.
10733
10734 2012-02-03 Tom Tromey <tromey@redhat.com>
10735
10736 PR gdb/13596:
10737 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10738 bfd_lookup_symbol_from_symtab.
10739 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10740 gdb_bfd_lookup_symbol_from_symtab.
10741
10742 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10743
10744 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10745 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10746 symbol. Add assertion that sym2 is never NULL.
10747
10748 2012-02-02 Doug Evans <dje@google.com>
10749
10750 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10751 "name" parameter to const char ** from char **. All callers updated.
10752 (find_pc_partial_function): Ditto.
10753 (cache_pc_function_name): Change type to const char * from char *.
10754 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10755 (find_pc_partial_function): Update.
10756 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10757 type of "name" parameter to const char * from char *.
10758 All uses updated.
10759 * arch-utils.c (generic_in_solib_return_trampoline): Change
10760 type of "name" parameter to const char * from char *.
10761 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10762 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10763 type of "name" parameter to const char * from char *.
10764 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10765 * gdbarch.c: Regenerate.
10766 * gdbarch.h: Regenerate.
10767 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10768 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10769 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10770 type of "name" parameter to const char * from char *.
10771 * skip.c (skip_function_pc): Ditto.
10772 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10773 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10774 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10775 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10776 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10777 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10778 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10779 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10780 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10781
10782 2012-02-02 Pedro Alves <palves@redhat.com>
10783
10784 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10785 the current inferior has no execution. Make sure the current
10786 remote process matches gdb's current inferior.
10787
10788 2012-02-02 Tom Tromey <tromey@redhat.com>
10789
10790 PR gdb/13405:
10791 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10792 read-only memory.
10793
10794 2012-02-02 Tom Tromey <tromey@redhat.com>
10795
10796 PR gdb/9307:
10797 * symtab.c (lookup_language_this): Set block_found.
10798
10799 2012-02-01 Tom Tromey <tromey@redhat.com>
10800
10801 PR gdb/13431:
10802 * jit.c (struct jit_inferior_data): Rewrite.
10803 (struct jit_objfile_data): New.
10804 (get_jit_objfile_data): New function.
10805 (add_objfile_entry): Update.
10806 (jit_read_descriptor): Return int. Replace descriptor_addr
10807 argument with inf_data. Update. Don't call error.
10808 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10809 descriptor here.
10810 (jit_inferior_init): Don't look up descriptor. Don't call error.
10811 (jit_reset_inferior_data_and_breakpoints)
10812 (jit_inferior_created_observer): Remove.
10813 (jit_inferior_exit_hook): Update.
10814 (jit_executable_changed_observer): Remove.
10815 (jit_event_handler): Update.
10816 (free_objfile_data): Reset inferior data if needed.
10817 (_initialize_jit): Update.
10818
10819 2012-02-01 Tom Tromey <tromey@redhat.com>
10820
10821 * jit.c (bfd_open_from_target_memory): Move higher in file.
10822
10823 2012-02-01 Tristan Gingold <gingold@adacore.com>
10824
10825 * libunwind-frame.c (libunwind_load): Display message if dlopen
10826 failed.
10827
10828 2012-02-01 Gary Benson <gbenson@redhat.com>
10829
10830 * symtab.h (symbol_found_callback_ftype): New typedef.
10831 (iterate_over_symbols): Use the above.
10832 * symtab.c (iterate_over_symbols): Likewise.
10833 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10834 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10835 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10836 (iterate_name_matcher): Document return values.
10837 (collect_one_symbol): Likewise.
10838 (collect_function_symbols): Likewise.
10839 (collect_symbols): Likewise.
10840
10841 2012-02-01 Tom Tromey <tromey@redhat.com>
10842
10843 * ada-lang.c (resolve_subexp): Update.
10844 (ada_lookup_symbol_list): Add 'full_search' argument.
10845 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10846 ada_lookup_symbol_list.
10847 (ada_lookup_encoded_symbol): Update.
10848 (get_var_value): Update.
10849 * ada-exp.y (block_lookup): Update.
10850 (write_var_or_type): Update.
10851 (write_name_assoc): Update.
10852 * ada-lang.h (ada_lookup_symbol_list): Update.
10853
10854 2012-01-31 Tom Tromey <tromey@redhat.com>
10855
10856 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10857 comment.
10858
10859 2012-01-31 Doug Evans <dje@google.com>
10860
10861 * symtab.h: Remove outdated comment.
10862 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10863
10864 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10865
10866 Fix build error in Darwin port.
10867 * i386-darwin-nat.c: Include i386-nat.h.
10868
10869 2012-01-30 Tom Tromey <tromey@redhat.com>
10870
10871 PR breakpoints/13568:
10872 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10873 argument. Check for recursive includes.
10874 (dwarf_decode_macros): Create an include hash.
10875
10876 2012-01-30 Michael Eager <eager@eagercon.com>
10877
10878 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10879 * ppc-linux-tdep.c: Include glibc-tdep.h.
10880 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10881 (powerpc_linux_in_plt_stub): New function.
10882 (powerpc_linux_in_dynsym_resolve_code): New function.
10883 (ppc_skip_trampoline_code): New function.
10884 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10885 Use glibc_skip_solib_resolver.
10886
10887 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10888
10889 Code cleanup: Make 1440 bytes of data segment read-only.
10890 * arch-utils.c (endian_enum): Make it const char *const [].
10891 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10892 Likewise.
10893 * breakpoint.c (always_inserted_enums): Likewise.
10894 * cli/cli-cmds.c (script_ext_enums): Likewise.
10895 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10896 enumlist parameter const char *const *.
10897 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10898 const char *const *.
10899 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10900 parameter const char *const *.
10901 * cris-tdep.c (cris_modes): Make it const char *const [].
10902 * filesystem.c (target_file_system_kinds): Likewise.
10903 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10904 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10905 (can_use_displaced_stepping_enum, scheduler_enums)
10906 (exec_direction_names): Likewise.
10907 * language.c (_initialize_language): Make the type_or_range_names and
10908 case_sensitive_names variables const char *const [].
10909 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10910 * python/python.c (python_excp_enums): Likewise.
10911 * remote.c (interrupt_sequence_modes): Likewise.
10912 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10913 * serial.c (logbase_enums): Likewise.
10914 * sh-tdep.c (sh_cc_enum): Likewise.
10915 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10916 Likewise.
10917 * symtab.c (multiple_symbols_modes): Likewise.
10918 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10919 Likewise.
10920 * utils.c (internal_problem_modes): Likewise.
10921
10922 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10923
10924 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10925 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10926 result.
10927
10928 2012-01-27 Doug Evans <dje@google.com>
10929
10930 * configure.ac (with_python): Fix absolute path handling for win32.
10931 * configure: Regenerate.
10932
10933 2012-01-26 Doug Evans <dje@google.com>
10934
10935 * symtab.c: Whitespace cleanup, no code changes.
10936
10937 * symtab.c (lookup_symbol_in_language): Improve comment.
10938 (lookup_symbol_aux): Fix comment.
10939
10940 * psymtab.c (add_psymbol_to_list): Result is now "void".
10941 * psympriv.h (add_psymbol_to_list): Update.
10942
10943 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10944
10945 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10946
10947 Do not open script filenames twice.
10948 * cli/cli-cmds.c (source_script_from_stream): Pass to
10949 source_python_script also STREAM.
10950 * python/py-auto-load.c (source_section_scripts): Pass to
10951 source_python_script_for_objfile also STREAM.
10952 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10953 also INPUT.
10954 * python/python-internal.h (source_python_script_for_objfile): New
10955 parameter file, rename parameter file to filename.
10956 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10957 instead if !_WIN32. Update the function comment.
10958 (source_python_script, source_python_script_for_objfile)
10959 (source_python_script): New parameter file, rename parameter file to
10960 filename. Pass FILENAME to python_run_simple_file.
10961 * python/python.h (source_python_script): New parameter file, rename
10962 parameter file to filename.
10963
10964 2012-01-26 Pedro Alves <palves@redhat.com>
10965
10966 * corelow.c (core_has_fake_pid): Delete.
10967 (core_close): Delete references to `core_has_fake_pid'.
10968 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10969 (core_open): Delete references to `core_has_fake_pid'.
10970 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10971 the removed global.
10972
10973 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10974
10975 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10976 Remove language parameter from name_matcher. Adjust the comment.
10977 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10978 Remove language parameter.
10979 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10980 * linespec.c (iterate_name_matcher): Likewise.
10981 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10982 name_matcher. Adjust call accordingly.
10983 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10984 (maintenance_check_symtabs): Adjust type of parameter "fun".
10985 * psymtab.h (maintenance_check_symtabs): Likewise.
10986
10987 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10988
10989 * language.h (symbol_name_match_p_ftype): New typedef.
10990 (struct language_defn): Replace field la_symbol_name_compare
10991 by la_get_symbol_name_match_p.
10992 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10993 (ada_language_defn): Use it.
10994 * linespec.c (struct symbol_matcher_data): New type.
10995 (iterate_name_matcher): Rewrite.
10996 (iterate_over_all_matching_symtabs): Pass a pointer to
10997 a symbol_matcher_data struct to expand_symtabs_matching
10998 instead of just the lookup name.
10999 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11000 opencl-lang.c, p-lang.c, language.c: Delete field
11001 la_symbol_name_compare, and replace by NULL for new field
11002 la_get_symbol_name_match_p.
11003 * symfile.h (struct quick_symbol_functions): Update comment.
11004
11005 2012-01-25 Tom Tromey <tromey@redhat.com>
11006
11007 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11008 dereferencing.
11009
11010 2012-01-24 Tom Tromey <tromey@redhat.com>
11011
11012 PR symtab/12406:
11013 * solib.c (update_solib_list): Update the program space's
11014 added_solibs and deleted_solibs fields.
11015 * progspace.h (struct program_space) <added_solibs,
11016 deleted_solibs>: New fields.
11017 (clear_program_space_solib_cache): Declare.
11018 * progspace.c (release_program_space): Call
11019 clear_program_space_solib_cache.
11020 (clear_program_space_solib_cache): New function.
11021 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11022 bpstat_stop_status. Use handle_solib_event.
11023 * breakpoint.c: Include gdb_regex.h.
11024 (print_solib_event): New function.
11025 (bpstat_print): Use print_solib_event.
11026 (bpstat_stop_status): Add special case for bp_shlib_event.
11027 (handle_solib_event): New function.
11028 (bpstat_what): Use handle_solib_event.
11029 (struct solib_catchpoint): New.
11030 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11031 (breakpoint_hit_catch_solib, check_status_catch_solib)
11032 (print_it_catch_solib, print_one_catch_solib)
11033 (print_mention_catch_solib, print_recreate_catch_solib): New
11034 functions.
11035 (catch_solib_breakpoint_ops): New global.
11036 (catch_load_or_unload, catch_load_command_1)
11037 (catch_unload_command_1): New functions.
11038 (internal_bkpt_check_status): Add special case for
11039 bp_shlib_event.
11040 (internal_bkpt_print_it): Use print_solib_event.
11041 (initialize_breakpoint_ops): Initialize
11042 catch_solib_breakpoint_ops.
11043 (_initialize_breakpoint): Register "catch load" and "catch
11044 unload".
11045 * breakpoint.h (handle_solib_event): Declare.
11046 * NEWS: Add entry for "catch load" and "catch unload".
11047
11048 2012-01-24 Tom Tromey <tromey@redhat.com>
11049
11050 * ada-lang.c: Include gdb_vecs.h.
11051 * charset.c: Include gdb_vecs.h.
11052 * tracepoint.h: Include gdb_vecs.h.
11053 * gdb_vecs.h: New file.
11054
11055 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11056
11057 * breakpoint.c (breakpoint_hit_catch_fork)
11058 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11059 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11060 * infrun.c (inferior_has_forked, inferior_has_vforked)
11061 (inferior_has_execd, inferior_has_called_syscall): Delete.
11062 (handle_syscall_event): Get syscall_number from the execution
11063 control state's wait status.
11064 (wait_for_inferior): Don't clear syscall_number.
11065
11066 2012-01-24 Pedro Alves <palves@redhat.com>
11067
11068 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11069 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11070 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11071 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11072 `ws' parameter.
11073 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11074 false for events other than TARGET_SIGNAL_TRAP.
11075 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11076 Add `ws' parameter.
11077 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11078 events other than TARGET_SIGNAL_TRAP.
11079 (tracepoint_breakpoint_hit): Add `ws' parameter.
11080 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11081 parameter.
11082 (bpstat_stop_status): Same.
11083 (pc_at_non_inline_function): Same.
11084 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11085 to pass the current event's waitstatus to bpstat_stop_status
11086 and pc_at_non_inline_function.
11087
11088 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11089
11090 Code cleanup.
11091 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11092 Update the function comment for it.
11093 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11094 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11095 for STREAM.
11096
11097 2012-01-24 Pedro Alves <palves@redhat.com>
11098
11099 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11100 outside `bs->stop' block.
11101 (bpstat_what): Rework bp_shlib_event handling.
11102 (internal_bkpt_check_status): If the breakpoint is a
11103 bp_shlib_event, then set bs->stop and bs->print if
11104 stop_on_solib_events is set.
11105
11106 2012-01-24 Gary Benson <gbenson@redhat.com>
11107
11108 Delete #if 0'd out code.
11109 * stack.c (print_frame_label_vars): Remove.
11110 (catch_info): Likewise.
11111 (_initialize_stack): Remove "info catch" command.
11112 * NEWS: Mention the above.
11113
11114 2012-01-24 Pedro Alves <palves@redhat.com>
11115
11116 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11117 it.
11118 (remote_notice_new_inferior): If the remote end doesn't support
11119 the multiprocess extensions, then the PID is fake.
11120 (add_current_inferior_and_thread): New.
11121 (remote_start_remote): Use it.
11122 (extended_remote_attach_1): Adjust.
11123 (extended_remote_create_inferior_1): Use
11124 add_current_inferior_and_thread.
11125
11126 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11127
11128 Fix watchpoints to be specific for each inferior.
11129 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11130 current_program_space.
11131 * i386-nat.c (i386_inferior_data_cleanup): New.
11132 (i386_inferior_data_get): Replace variable inf_data_local by an
11133 inferior_data call.
11134 (i386_use_watchpoints): Initialize i386_inferior_data.
11135 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11136 specific iterate_over_lwps.
11137
11138 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11139
11140 Fix watchpoints across inferior fork.
11141 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11142 comment for linux_nat_iterate_watchpoint_lwps.
11143 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11144 linux_nat_iterate_watchpoint_lwps.
11145 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11146 * i386-linux-nat.c (update_debug_registers_callback): Update the
11147 comment for linux_nat_iterate_watchpoint_lwps.
11148 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11149 linux_nat_iterate_watchpoint_lwps.
11150 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11151 * i386-nat.c: Include inferior.h.
11152 (dr_mirror): Remove.
11153 (i386_inferior_data, struct i386_inferior_data)
11154 (i386_inferior_data_get): New.
11155 (i386_debug_reg_state): Use i386_inferior_data_get.
11156 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11157 (i386_insert_watchpoint, i386_remove_watchpoint)
11158 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11159 (i386_remove_hw_breakpoint): New variable state, use
11160 i386_debug_reg_state instead of DR_MIRROR.
11161 * linux-nat.c (delete_lwp): New declaration.
11162 (num_lwps): Move here from downwards.
11163 (delete_lwp_cleanup): New.
11164 (linux_child_follow_fork): Create new child_lp, call
11165 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11166 PTRACE_DETACH.
11167 (num_lwps): Move upwards.
11168 (linux_nat_iterate_watchpoint_lwps): New.
11169 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11170 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11171
11172 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11173
11174 GDB 7.4 released.
11175
11176 2012-01-23 Pedro Alves <palves@redhat.com>
11177
11178 * top.c (caution): Rename to ...
11179 (confirm): ... this.
11180 (show_caution): Rename to ...
11181 (show_confirm): ... this.
11182 (quit_cover): Adjust.
11183 (init_main): Adjust.
11184 * top.h (caution): Rename to ...
11185 (confirm): ... this.
11186 * utils.c (internal_vproblem, defaulted_query): Adjust.
11187
11188 2012-01-23 Pedro Alves <palves@redhat.com>
11189
11190 * top.c (caution): Update comment.
11191 (execute_command): Don't consider the current value of `caution'.
11192
11193 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11194
11195 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11196
11197 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11198
11199 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11200 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11201 * target.c (target_fileio_pwrite): Remove buffer address from
11202 debug output.
11203 (target_fileio_pread): Likewise.
11204
11205 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11206
11207 * NEWS: Document remote "info proc" and "generate-core-file".
11208
11209 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11210
11211 * gdbarch.sh (find_memory_regions): New callback.
11212 * gdbarch.c, gdbarch.h: Regenerate.
11213
11214 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11215 callback before falling back to target method.
11216
11217 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11218 (linux_target_install_ops): No longer install it.
11219
11220 * linux-tdep.c (linux_find_memory_regions): New function.
11221 (linux_init_abi): Install it.
11222
11223 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11224
11225 * gdbarch.sh (make_corefile_notes): New architecture callback.
11226 * gdbarch.c: Regenerate.
11227 * gdbarch.h: Likewise.
11228
11229 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11230 before target_make_corefile_notes. If NULL is returned, the
11231 target does not support core file generation.
11232
11233 * linux-nat.c: Include "linux-tdep.h".
11234 (find_signalled_thread, find_stop_signal): Remove.
11235 (linux_nat_do_thread_registers): Likewise.
11236 (struct linux_nat_corefile_thread_data): Likewise.
11237 (linux_nat_corefile_thread_callback): Likewise.
11238 (iterate_over_spus): Likewise.
11239 (struct linux_spu_corefile_data): Likewise.
11240 (linux_spu_corefile_callback): Likewise.
11241 (linux_spu_make_corefile_notes): Likewise.
11242 (linux_nat_collect_thread_registers): New function.
11243 (linux_nat_make_corefile_notes): Replace contents by call to
11244 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11245 as native-only callback.
11246
11247 * linux-tdep.h: Include "bfd.h".
11248 (struct regcache): Add forward declaration.
11249 (linux_collect_thread_registers_ftype): New typedef.
11250 (linux_make_corefile_notes): Add prototype.
11251 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11252 "regset.h", and "elf-bfd.h".
11253 (find_signalled_thread, find_stop_signal): New functions.
11254 (linux_spu_make_corefile_notes): Likewise.
11255 (linux_collect_thread_registers): Likewise.
11256 (struct linux_corefile_thread_data): New data structure.
11257 (linux_corefile_thread_callback): New funcion.
11258 (linux_make_corefile_notes): Likewise.
11259 (linux_make_corefile_notes_1): Likewise.
11260 (linux_init_abi): Install it.
11261
11262 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11263
11264 * gdbarch.sh (info_proc): New callback.
11265 * gdbarch.c, gdbarch.h: Regenerate.
11266
11267 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11268 before falling back to the target info_proc callback.
11269
11270 * linux-nat.c: Do not include "cli/cli-utils.h".
11271 (linux_nat_info_proc): Remove.
11272 (linux_target_install_ops): No longer install it.
11273
11274 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11275 (read_mapping): New function.
11276 (linux_info_proc): Likewise.
11277 (linux_init_abi): Install it.
11278
11279 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11280
11281 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11282 * infcmd.c: (info_proc_cmd_1): New function.
11283 (info_proc_cmd): New function, moved here from equivalent routine
11284 orignally in linux-nat.c.
11285 (info_proc_cmd_mappings): Likewise.
11286 (info_proc_cmd_stat): Likewise.
11287 (info_proc_cmd_status): Likewise.
11288 (info_proc_cmd_cwd): Likewise.
11289 (info_proc_cmd_cmdline): Likewise.
11290 (info_proc_cmd_exe): Likewise.
11291 (info_proc_cmd_all): Likewise.
11292 (_initialize_infcmd): Install "info proc" command and subcommands.
11293
11294 * target.h (struct target_ops): Add to_info_proc.
11295 (target_info_proc): Add prototype.
11296 * target.c (target_info_proc): New function.
11297
11298 * procfs.c (procfs_info_proc): Add prototype.
11299 (info_proc_cmd): Rename into ...
11300 (procfs_info_proc): ... this. Update argument types as appropriate
11301 for a to_info_proc implementation. Handle "what" argument.
11302 (procfs_target): Install procfs_info_proc.
11303 (_initialize_procfs): No longer install "info proc" command.
11304
11305 * linux-nat.c: (enum info_proc_what): Remove.
11306 (linux_nat_info_proc_cmd_1): Rename into ...
11307 (linux_nat_info_proc): ... this. Update argument types as appropriate
11308 for a to_info_proc implementation.
11309 (linux_nat_info_proc_cmd): Remove.
11310 (linux_nat_info_proc_cmd_mappings): Likewise.
11311 (linux_nat_info_proc_cmd_stat): Likewise.
11312 (linux_nat_info_proc_cmd_status): Likewise.
11313 (linux_nat_info_proc_cmd_cwd): Likewise.
11314 (linux_nat_info_proc_cmd_cmdline): Likewise.
11315 (linux_nat_info_proc_cmd_exe): Likewise.
11316 (linux_nat_info_proc_cmd_all): Likewise.
11317 (linux_target_install_ops): Install linux_nat_info_proc.
11318 (_initialize_linux_nat): No longer install "info proc" command
11319 and subcommands.
11320
11321 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11322
11323 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11324 * config.in, configure: Regenerate.
11325
11326 * target.h (struct target_ops): Add to_fileio_readlink.
11327 (target_fileio_readlink): Add prototype.
11328 * target.c (target_fileio_readlink): New function.
11329
11330 * inf-child.c: Conditionally include <sys/param.h>.
11331 (inf_child_fileio_readlink): New function.
11332 (inf_child_target): Install it.
11333
11334 * remote.c (PACKET_vFile_readlink): New enum value.
11335 (remote_hostio_readlink): New function.
11336 (init_remote_ops): Install it.
11337 (_initialize_remote): Handle vFile:readlink packet type.
11338
11339 2012-01-20 Pedro Alves <palves@redhat.com>
11340 Ulrich Weigand <ulrich.weigand@linaro.org>
11341
11342 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11343 * config.in, configure: Regenerate.
11344
11345 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11346 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11347 (target_fileio_open): Add prototype.
11348 (target_fileio_pwrite): Likewise.
11349 (target_fileio_pread): Likewise.
11350 (target_fileio_close): Likewise.
11351 (target_fileio_unlink): Likewise.
11352 (target_fileio_read_alloc): Likewise.
11353 (target_fileio_read_stralloc): Likewise.
11354
11355 * target.c: Include "gdb/fileio.h".
11356 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11357 (default_fileio_target): New function.
11358 (target_fileio_open): Likewise.
11359 (target_fileio_pwrite): Likewise.
11360 (target_fileio_pread): Likewise.
11361 (target_fileio_close): Likewise.
11362 (target_fileio_unlink): Likewise.
11363 (target_fileio_close_cleanup): Likewise.
11364 (target_fileio_read_alloc_1): Likewise.
11365 (target_fileio_read_alloc): Likewise.
11366 (target_fileio_read_stralloc): Likewise.
11367
11368 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11369 <fcntl.h>, and <unistd.h>.
11370 (inf_child_fileio_open_flags_to_host): New function.
11371 (inf_child_errno_to_fileio_error): Likewise.
11372 (inf_child_fileio_open): Likewise.
11373 (inf_child_fileio_pwrite): Likewise.
11374 (inf_child_fileio_pread): Likewise.
11375 (inf_child_fileio_close): Likewise.
11376 (inf_child_fileio_unlink): Likewise.
11377 (inf_child_target): Install to_fileio routines.
11378
11379 * remote.c (init_remote_ops): Install to_fileio routines.
11380
11381 2012-01-20 Pedro Alves <palves@redhat.com>
11382 Ulrich Weigand <ulrich.weigand@linaro.org>
11383
11384 * remote.c (remote_multi_process_p): Only check for multi-process
11385 protocol feature, do not check for extended protocol.
11386 (remote_supports_multi_process): Check for extended protocol here.
11387 (set_general_process): Likewise.
11388 (extended_remote_kill): Likewise.
11389 (remote_pid_to_str): Likewise.
11390 (remote_query_supported): Always query multiprocess mode.
11391
11392 2012-01-20 Pedro Alves <palves@redhat.com>
11393 Ulrich Weigand <ulrich.weigand@linaro.org>
11394
11395 * inferior.h (struct inferior): Add fake_pid_p.
11396 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11397 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11398 magic_null_ptid since the remote side doesn't provide a real PID.
11399
11400 2012-01-19 Tom Tromey <tromey@redhat.com>
11401
11402 * NEWS: Combine the two Python sections.
11403
11404 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11405
11406 * target.h (target_close): Update comment on the target's unpush state.
11407
11408 2012-01-19 Pedro Alves <palves@redhat.com>
11409
11410 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11411 linux_nat_async directly instead of going through the target
11412 vector.
11413 * target.c (unpush_target): Close target after unpushing it, not
11414 before.
11415
11416 2012-01-19 Gary Benson <gbenson@redhat.com>
11417
11418 * mdebugread.c (sort_blocks): Replace integer constants with ones
11419 derived from FIRST_LOCAL_BLOCK.
11420
11421 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11422 Jan Kratochvil <jan.kratochvil@redhat.com>
11423
11424 PR gdb/9538
11425 * symfile.c (find_separate_debug_file): New function.
11426 (terminate_after_last_dir_separator): Likewise.
11427 (find_separate_debug_file_by_debuglink): Also try realpath.
11428 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11429 * configure: Regenerate.
11430 * config.in: Regenerate.
11431
11432 2012-01-18 Doug Evans <dje@google.com>
11433
11434 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11435 (main.o): Remove rule.
11436 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11437 (--with-sysroot): Rewrite.
11438 * configure: Regenerate.
11439 * config.in: Regenerate.
11440
11441 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11442
11443 * parse.c (initialize_expout): New function.
11444 (reallocate_expout): Likewise.
11445 (parse_exp_in_context): Use `initialize_expout' and
11446 `reallocate_expout' when appropriate.
11447
11448 2012-01-18 Pedro Alves <palves@redhat.com>
11449
11450 * record.c (struct record_breakpoint, record_breakpoint_p)
11451 (record_breakpoints): New.
11452 (record_insert_breakpoint, record_remove_breakpoint): Manage
11453 record breakpoints list. Only remove breakpoints from the
11454 inferior if they had been inserted there in the first place.
11455
11456 2012-01-17 Doug Evans <dje@google.com>
11457
11458 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11459 if we know we don't have a file name to look for.
11460
11461 2012-01-17 Pedro Alves <palves@redhat.com>
11462
11463 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11464 the frame's stop reason is UNWIND_UNAVAILABLE.
11465
11466 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11467
11468 Fix compilation error.
11469 * m2-exp.y (yyerror): Use ANSI C prototype.
11470
11471 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11472
11473 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11474 (growbuf_by_size): Likewise.
11475 (yyerror): Likewise.
11476 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11477 (modblock): Remove variable (was #if 0'ed).
11478 (parse_number): Convert prototype from K&R to ANSI C.
11479 (yyerror): Likewise.
11480 * objc-exp.y (parse_number): Likewise.
11481 (yyerror): Likewise.
11482 (yylex): Remove #if 0'ed code.
11483 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11484 (yyerror): Likewise.
11485
11486 2012-01-16 Tom Tromey <tromey@redhat.com>
11487
11488 * NEWS: Add item.
11489 * symtab.h (compare_filenames_for_search): Declare.
11490 * symtab.c (compare_filenames_for_search): New function.
11491 (iterate_over_some_symtabs): Use it.
11492 * symfile.h (struct quick_symbol_functions)
11493 <map_symtabs_matching_filename>: Change spec.
11494 * psymtab.c (partial_map_symtabs_matching_filename): Use
11495 compare_filenames_for_search. Update for new spec.
11496 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11497 compare_filenames_for_search. Update for new spec.
11498 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11499
11500 2012-01-16 Tom Tromey <tromey@redhat.com>
11501
11502 PR python/13281:
11503 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11504 (struct main_type) <flag_flag_enum>: New field.
11505 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11506 * NEWS: Add entries.
11507 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11508 enums.
11509 * python/lib/gdb/printing.py (_EnumInstance): New class.
11510 (FlagEnumerationPrinter): Likewise.
11511
11512 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11513
11514 * breakpoint.c (create_sals_from_address_default): New function.
11515 (create_breakpoints_sal_default): Likewise.
11516 (decode_linespec_default): Likewise.
11517 (is_marker_spec): Removed.
11518 (strace_marker_p): New function.
11519 (init_breakpoint_sal): Using `strace_marker_p' instead of
11520 `is_marker_spec'.
11521 (create_breakpoint): Call method `create_sals_from_address' from
11522 breakpoint_ops, replacing code that created SALs conditionally
11523 on the type of the breakpoint. Call method `create_breakpoints_sal',
11524 replacing code that created breakpoints conditionally on the type
11525 wanted.
11526 (base_breakpoint_create_sals_from_address): New function.
11527 (base_breakpoint_create_breakpoints_sal): Likewise.
11528 (base_breakpoint_decode_linespec): Likewise.
11529 (base_breakpoint_ops): Add methods
11530 `base_breakpoint_create_sals_from_address',
11531 `base_breakpoint_create_breakpoints_sal' and
11532 `base_breakpoint_decode_linespec'.
11533 (bkpt_create_sals_from_address): New function.
11534 (bkpt_create_breakpoints_sal): Likewise.
11535 (bkpt_decode_linespec): Likewise.
11536 (tracepoint_create_sals_from_address): Likewise.
11537 (tracepoint_create_breakpoints_sal): Likewise.
11538 (tracepoint_decode_linespec): Likewise.
11539 (strace_marker_create_sals_from_address): Likewise.
11540 (strace_marker_create_breakpoints_sal): Likewise.
11541 (strace_marker_decode_linespec): Likewise.
11542 (strace_marker_breakpoint_ops): New variable.
11543 (addr_string_to_sals): Remove `marker_spec'. Call method
11544 `decode_linespec' from breakpoint_ops, replacing code that decoded
11545 an address string into a SAL. Use `strace_marker_p' instead of
11546 `marker_spec'.
11547 (strace_command): Decide whether we are dealing with a static
11548 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11549 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11550 * breakpoint.h (linespec_result, linespec_sals): New forward
11551 declarations.
11552 (breakpoint_ops) <create_sals_from_address>,
11553 <create_breakpoints_sal>, <decode_linespec>: New methods.
11554
11555 2012-01-14 Doug Evans <dje@google.com>
11556
11557 * NEWS: Update text for "maint set python print-stack".
11558 It is deprecated in gdb 7.4 and deleted in 7.5.
11559
11560 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11561
11562 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11563 including curses.h.
11564
11565 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11566
11567 * configure: Regenerate.
11568 * config.in: Regenerate.
11569
11570 2012-01-12 Keith Seitz <keiths@redhat.com>
11571
11572 PR mi/10586
11573 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11574 (ANONYMOUS_UNION_NAME): Define.
11575 (is_path_expr_parent): New function.
11576 (get_path_expr_parent): New function.
11577 (is_anonymous_child): New function.
11578 (create_child_with_value): If the child is anonymous and without
11579 a name, assign an object name to it.
11580 (c_describe_child): Use get_path_expr_parent to determine
11581 the parent expression.
11582 If there field represents an anonymous struct or union and
11583 has no name, set an appropriate display name and expression.
11584 (cplus_describe_child): Likewise.
11585
11586 2012-01-12 Pedro Alves <palves@redhat.com>
11587
11588 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11589 available when %ebp is found to be zero (outermost).
11590
11591 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11592
11593 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11594 an internal gdb_static_assert.
11595 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11596
11597 2012-01-11 Tom Tromey <tromey@redhat.com>
11598
11599 PR gdb/9598:
11600 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11601 catch" and "catch throw".
11602
11603 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11604
11605 * blockframe.c (block_innermost_frame): Start search from selected
11606 frame, if present, or otherwise the current frame.
11607
11608 * c-exp.y (variable): Update innermost_block for
11609 'block COLONCOLON NAME' clause.
11610 * m2-exp.y (variable): Ditto.
11611 * objc-exp.y (variable): Ditto.
11612
11613 2012-01-10 Tom Tromey <tromey@redhat.com>
11614
11615 PR python/13199:
11616 * python/python.c (finish_python_initialization): Set sys.argv.
11617
11618 2012-01-10 Doug Evans <dje@google.com>
11619
11620 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11621 "want_line_info". All callers updated.
11622 (dwarf_decode_lines_1): New function.
11623 (handle_DW_AT_stmt_list): Add function comment.
11624 New arg "want_line_info". All callers updated.
11625 (read_file_scope,read_type_unit_scope): Move comment from
11626 handle_DW_AT_stmt_list to here.
11627
11628 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11629
11630 Fix regression after libiberty/ update for GCC PR 6057 and others.
11631 * c-exp.y (operator) <OPERATOR DELETE>
11632 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11633 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11634 (make_builtin_type, make_name): New variable i, add gdb_assert.
11635 (operator) <OPERATOR NEW>: Update ARGS to 3.
11636 (operator) <OPERATOR DELETE>: Add trailing space.
11637 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11638 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11639 * cp-support.c (cp_canonicalize_string): Check NULL from
11640 cp_comp_to_string, call warning and return.
11641
11642 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11643
11644 Fix duplicate .o files after omitting libbfd.a.
11645 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11646 (SFILES): Add corelow.c.
11647 (COMMON_OBS): Add corelow.o.
11648 (ALLDEPFILES): Remove corelow.c.
11649 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11650 * config/alpha/alpha-osf3.mh: Likewise.
11651 * config/alpha/fbsd.mh: Likewise.
11652 * config/arm/nbsdaout.mh: Likewise.
11653 * config/arm/nbsdelf.mh: Likewise.
11654 * config/i386/i386gnu.mh: Likewise.
11655 * config/ia64/hpux.mh: Likewise.
11656 * config/ia64/linux.mh: Likewise.
11657 * config/m32r/linux.mh: Likewise.
11658 * config/m68k/linux.mh: Likewise.
11659 * config/mips/irix5.mh: Likewise.
11660 * config/mips/irix6.mh: Likewise.
11661 * config/pa/hpux.mh: Likewise.
11662 * config/pa/linux.mh: Likewise.
11663 * config/powerpc/aix.mh: Likewise.
11664 * config/sparc/linux.mh: Likewise.
11665 * config/sparc/linux64.mh: Likewise.
11666 * config/sparc/sol2.mh: Likewise.
11667 * config/vax/vax.mh: Likewise.
11668 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11669 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11670 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11671 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11672 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11673 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11674 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11675 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11676 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11677 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11678 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11679 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11680 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11681 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11682 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11683 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11684 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11685 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11686 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11687 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11688 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11689 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11690 corelow.o from gdb_target_obs.
11691 * corefile.c (core_target): Update the comment on NULL value.
11692 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11693 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11694 MATCHES. Drop YUMMY set on NULL.
11695 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11696 reclaim CORE_DATA if it is already NULL.
11697
11698 2012-01-09 Doug Evans <dje@google.com>
11699
11700 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11701 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11702
11703 2012-01-09 Keith Seitz <keiths@redhat.com>
11704
11705 * breakpoint.c (wrapper.h): Don't include.
11706
11707 2012-01-09 Keith Seitz <keiths@redhat.com>
11708
11709 * Makefile.in (SFILES): Remove wrapper.c.
11710 (HFILES_NO_SRCDIR): Remove wrapper.h.
11711 (COMMON_OBS): Remove wrapper.o.
11712 * cli/cli-interp.c: Don't inlude wrapper.h.
11713 * corelow.c: Likewise.
11714 (core_open): Replace gdb_target_find_new_threads with
11715 TRY_CATCH around target_find_new_threads.
11716 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11717 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11718 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11719 evaluate_expression.
11720 (varobj_set_value): Likewise for evaluate_expression and
11721 value_assign.
11722 (install_new_variable): Likewise for value_fetch_lazy.
11723 (adjust_value_for_child_access): Likewise for value_ind.
11724 (c_describe_child): Likewise for value_subscript and
11725 value_ind.
11726 (c_value_of_root): Likewise for evaluate_expression.
11727 * wrapper.c: Remove.
11728 * wrapper.h: Remove.
11729
11730 2012-01-09 Doug Evans <dje@google.com>
11731
11732 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11733 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11734 "abfd" args with "section". All callers updated.
11735 Error checking code moved ...
11736 (error_check_comp_unit_head): ... here. New function.
11737 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11738 Delete arg "abfd". New arg "type_offset". All callers updated.
11739 (create_debug_types_hash_table): Simplify by using
11740 read_and_check_type_unit_head.
11741
11742 * parser-defs.h (namecopy): Delete.
11743 * parse.c (namecopy, namecopy_size): Move into copy_name.
11744
11745 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11746
11747 Partially fix duplicate .o files after omitting libbfd.a.
11748 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11749 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11750 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11751 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11752 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11753 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11754 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11755
11756 2012-01-09 Pedro Alves <palves@redhat.com>
11757
11758 * MAINTAINERS: Update my email address.
11759
11760 2012-01-08 Doug Evans <dje@google.com>
11761
11762 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11763 n_type_units. Rename type_comp_units to all_type_units.
11764 All uses updated.
11765 (add_signatured_type_cu_to_table): Renamed from
11766 add_signatured_type_cu_to_list. All callers updated.
11767
11768 * gdbtypes.h (struct cplus_struct_type): Delete member
11769 nfn_fields_total. All uses removed.
11770
11771 2012-01-06 Doug Evans <dje@google.com>
11772
11773 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11774 to top of file.
11775 (dwarf2_find_comp_unit): Delete.
11776 (process_psymtab_comp_unit): Make result "void".
11777 Delete args buffer, info_ptr, buffer_size, and replace with
11778 "section". All callers updated.
11779 (dwarf2_build_psymtabs_hard): Simplify.
11780
11781 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11782 Thiago Jung Bauermann <bauerman@br.ibm.com>
11783
11784 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11785 before `struct gdb_exception'.
11786 * breakpoint.c (update_global_location_list_nothrow)
11787 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11788 * cp-abi.c (value_rtti_type): Likewise.
11789 * cp-support.c (cp_validate_operator): Likewise.
11790 * infrun.c (insert_exception_resume_breakpoint)
11791 (check_exception_resume, keep_going): Likewise.
11792 * mi-interp.c (mi_breakpoint_created)
11793 (mi_breakpoint_modified): Likewise.
11794 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11795 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11796 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11797
11798 2012-01-05 Doug Evans <dje@google.com>
11799
11800 * dwarf2read.c (statement_prologue): Delete, unused.
11801
11802 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11803 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11804
11805 * dwarf2read.c (comp_unit_header): Delete, unused.
11806
11807 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11808
11809 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11810 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11811
11812 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11813
11814 * infrun.c (normal_stop): Don't skip calling the normal_stop
11815 observers if the thread was doing a multi-step, but stopped for
11816 some reason other than stepping.
11817
11818 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11819
11820 * cli/cli-decode.h: Add comments.
11821 (CMD_LIST_AMBIGUOUS): Moved to command.h
11822 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11823 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11824 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11825 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11826 (add_com, add_com_alias, add_info, add_info_alias)
11827 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11828 declarations.
11829 * command.h: Add and adjust comments.
11830 (CMD_LIST_AMBIGUOUS): Moved here.
11831 (help_cmd, help_cmd_list): Delete declarations.
11832
11833 2012-01-04 Doug Evans <dje@google.com>
11834
11835 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11836 All callers updated.
11837 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11838 Replace all arguments with "per_cu". All callers updated.
11839
11840 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11841
11842 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11843 New arg "per_cu". All callers updated.
11844
11845 Delete #if 0'd out code.
11846 * language.c (binop_result_type): Delete.
11847 (simple_type, ordered_type, same_type, integral_type): Delete.
11848 (numeric_type, character_type, string_type, boolean_type): Delete.
11849 (float_type, structured_type): Delete.
11850 * language.h: Update.
11851
11852 2012-01-04 Tom Tromey <tromey@redhat.com>
11853
11854 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11855
11856 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11857
11858 * corefile.c (close_exec_file): Delete.
11859 (reopen_exec_file): Remove commented out code that seems related
11860 to close_exec_file, which is being deleted here.
11861 * inferior.h (close_exec_file): Delete.
11862 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11863
11864 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11865
11866 * ada-lang.c: #include "cli/cli-utils.h".
11867 (get_selections): Use skip_spaces.
11868 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11869 (catch_ada_exception_command_split): Use skip_spaces.
11870 (ada_decode_assert_location): Likewise.
11871
11872 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11873
11874 * linespec.c (decode_line_internal): Check for C++ or Java
11875 compound constructs only if the current language is C, C++
11876 or Java.
11877
11878 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11879
11880 Revert:
11881 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11882 Joel Brobecker <brobecker@adacore.com>
11883 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11884 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11885 3 times.
11886 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11887 fall through into AT_ENTRY_POINT.
11888 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11889 DUMMY_ADDR with it.
11890 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11891 PPC_INSN_SIZE skip to 3 times.
11892
11893 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11894
11895 * linespec.c (add_minsym): Preserve function descriptors.
11896
11897 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11898
11899 * breakpoint.c (all_locations_are_pending): Consider locations
11900 in program spaces executing during startup pending as well.
11901
11902 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11903
11904 Copyright year update in most files of the GDB Project.
11905
11906 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11907
11908 * copyright.sh: Delete.
11909 * copyright.py: Rewrite.
11910
11911 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11912
11913 * gnulib/extra/update-copyright: New file, imported from gnulib.
11914
11915 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11916
11917 * README (Copyright and License Notices): New section.
11918
11919 2012-01-03 Tom Tromey <tromey@redhat.com>
11920
11921 PR python/12533:
11922 * python/py-value.c (valpy_dereference, valpy_get_address
11923 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11924 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11925 (valpy_absolute, valpy_richcompare): Free intermediate values.
11926
11927 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11928
11929 * ada-lang.c: Reformat the copyright notice.
11930
11931 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11932
11933 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11934 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11935 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11936 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11937 Revert this part of:
11938 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11939 Build gdb directly from *.o files not using libgdb.a.
11940 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11941
11942 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11943
11944 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11945 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11946 Reformat the copyright header.
11947
11948 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11949
11950 Revert this part of:
11951 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11952 Remove the gdbtui binary.
11953 * gdb.c (main): Remove args.interpreter_p initialization.
11954 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11955 * main.h (struct captured_main_args): Remove interpreter_p.
11956
11957 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11958
11959 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11960
11961 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11962
11963 * top.c (print_gdb_version): Update copyright year.
11964
11965 2012-01-02 Yao Qi <yao@codesourcery.com>
11966
11967 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11968
11969 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11970 Joel Brobecker <brobecker@adacore.com>
11971
11972 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11973 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11974 3 times.
11975 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11976 fall through into AT_ENTRY_POINT.
11977 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11978 DUMMY_ADDR with it.
11979 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11980 PPC_INSN_SIZE skip to 3 times.
11981
11982 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11983
11984 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11985 the return value.
11986 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11987
11988 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11989
11990 Build gdb directly from *.o files not using libgdb.a.
11991 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11992 (COMMON_OBS): Remove solib-target.o.
11993 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11994 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11995 (LIBGDB_OBS, libgdb.a): Move it above.
11996 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11997 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11998 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11999 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12000 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12001 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12002 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12003 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12004 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12005 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12006 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12007 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12008 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12009 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12010 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12011 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12012 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12013 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12014 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12015 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12016 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12017 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12018 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12019 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12020 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12021 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12022 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12023
12024 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12025
12026 Remove the gdbtui binary.
12027 * .gitignore (/gdbtui): Remove.
12028 * Makefile.in (TUI): Remove.
12029 (SUBDIR_TUI_OBS): Remove tui-main.o.
12030 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12031 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12032 (tui-main.o): Remove.
12033 (all_object_files): Remove tui-main.o.
12034 * NEWS: New note for the gdbtui removal.
12035 * configure: Rebuilt.
12036 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12037 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12038 CONFIG_UNINSTALL respectively.
12039 * gdb.c (main): Remove args.interpreter_p initialization.
12040 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12041 * main.h (struct captured_main_args): Remove interpreter_p.
12042 * tui/tui-main.c: Remove.
12043
12044 2012-01-01 Doug Evans <dje@google.com>
12045
12046 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12047 (dwarf2_physname, read_import_statement): Ditto.
12048 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12049 (process_structure_scope read_subroutine_type): Ditto.
12050 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12051 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12052 (dwarf2_fetch_die_location_block): Ditto.
12053 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12054
12055 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12056 All callers updated.
12057 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12058 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12059 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12060
12061 * dwarf2read.c (load_cu): Move assert to more useful location.
12062
12063 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12064 All callers updated.
12065
12066 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12067 (dwarf2_elf_names): Minor reformat.
12068 (dwarf2_per_cu_data): Tweak comment.
12069 (dwarf2_read_section): Fix comment.
12070 (create_all_comp_units): Fix comment.
12071 (load_full_comp_unit): Fix comment.
12072 (process_full_comp_unit): Fix comment.
12073 (read_signatured_type): Fix comment.
12074
12075 For older changes see ChangeLog-2011.
12076 \f
12077 Local Variables:
12078 mode: change-log
12079 left-margin: 8
12080 fill-column: 74
12081 version-control: never
12082 coding: utf-8
12083 End:
This page took 0.282375 seconds and 4 git commands to generate.