* contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2012-11-29 Tom Tromey <tromey@redhat.com>
2
3 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
4 xvasprintf.
5 * common/common-utils.c (xasprintf, xvasprintf): Remove.
6 * common/common-utils.h (xasprintf, xvasprintf): Remove.
7
8 2012-11-29 Jerome Guitton <guitton@adacore.com>
9
10 * ada-lang.c (ada_is_interface_tag): New function.
11 (ada_is_ignored_field): Add interface tags to the list
12 of ignored fields.
13
14 2012-11-29 Jerome Guitton <guitton@adacore.com>
15
16 * ada-lang.h (ada_tag_value_at_base_address): New function
17 declaration.
18 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
19 New functions.
20 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
21 relocate the class-wide value if need be.
22 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
23 Let ada_tag_value_at_base_address relocate the class-wide access/ref
24 before dereferencing it.
25 * ada-valprint.c (ada_val_print_1): Relocate to base address
26 before displaying the content of an interface-wide ref.
27
28 2012-11-29 Jerome Guitton <guitton@adacore.com>
29
30 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
31
32 2012-11-29 Joel Brobecker <brobecker@adacore.com>
33
34 GDB 7.5.1 released.
35
36 2012-11-29 Yao Qi <yao@codesourcery.com>
37 Tom Tromey <tromey@redhat.com>
38
39 * eval.c (evaluate_subexp_standard): Get the correct pointer
40 type for TYPE_CODE_MEMBERPTR.
41
42 2012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
43
44 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
45 since now it is being done by binutils' powerpc_init_dialect().
46
47 2012-11-28 Tom Tromey <tromey@redhat.com>
48
49 PR gdb/14290:
50 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
51 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
52 Use it.
53 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
54 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
55 (gdb_bfd_openr_next_archived_file): Use it.
56
57 2012-11-28 Markus Metzger <markus.t.metzger@intel.com>
58
59 * configure.ac: Check for linux/perf_event.h.
60 * config.in: Regenerated.
61 * configure: Regenerated.
62
63 2012-11-28 Yao Qi <yao@codesourcery.com>
64
65 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
66 abbreviate 'delete tracepoints' to 'delete tr'.
67 * corefile.c (_initialize_core): Call add_alias_cmd to
68 abbreviate 'set gnutarget' to 'set g'.
69 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
70 'show convenience' to 'show conv'.
71
72 2012-11-27 Joel Brobecker <brobecker@adacore.com>
73
74 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
75 call to sparc_supply_fpregset.
76 (fill_fpregset): Fix first parameter in call to
77 sparc_collect_fpregset.
78
79 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
80 Kazu Hirata <kazu@codesourcery.com>
81 Yao Qi <yao@codesourcery.com>
82
83 * objfiles.c (init_entry_point_info): Call
84 gdbarch_convert_from_func_ptr_addr and
85 gdbarch_addr_bits_remove here ...
86 (entry_point_address_query): ... instead of here.
87 * solib-svr4.c (exec_entry_point): Call
88 gdbarch_addr_bits_remove.
89 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
90 the entry address.
91
92 2012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
93 Yao Qi <yao@codesourcery.com>
94
95 * eval.c (evaluate_subexp_standard): Add handling of
96 TYPE_CODE_MEMBERPTR when calling functions. Correct the
97 result of ptype for calling a TYPE_CODE_METHODPTR.
98
99 2012-11-27 Yao Qi <yao@codesourcery.com>
100
101 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
102 warning.
103 Add i18n markup.
104
105 2012-11-26 Alexander Larsson <alexl@redhat.com>
106 Jan Kratochvil <jan.kratochvil@redhat.com>
107 Tom Tromey <tromey@redhat.com>
108
109 * NEWS: Mention mini debuginfo feature.
110 * minidebug.c: New file.
111 * configure.ac: Check for lzma.
112 * configure, config.in: Rebuild.
113 * Makefile.in (LIBLZMA): New variable.
114 (CLIBS): Include LIBLZMA.
115 (SFILES): Mention minidebug.c.
116 (COMMON_OBS): Mention minidebug.o.
117 * symfile.c (read_symbols): New function.
118 (syms_from_objfile, reread_symbols): Call it.
119 * symfile.h (find_separate_debug_file_in_section): Declare.
120
121 2012-11-26 Keith Seitz <keiths@redhat.com>
122
123 * exec.c (exec_file_attach): Move cleanup after verifying that
124 memory has in fact been allocated.
125
126 2012-11-26 Tom Tromey <tromey@redhat.com>
127
128 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
129 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
130 SYMBOL_SYMTAB.
131 * skip.c (skip_info): Use SYMBOL_SYMTAB.
132
133 2012-11-26 Maxime Villard <rustyBSD@gmx.fr>
134 Pedro Alves <palves@redhat.com>
135
136 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
137 size parameter passed to readlink by one byte.
138 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
139 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
140 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
141 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
142 size by one byte.
143
144 2012-11-26 Yao Qi <yao@codesourcery.com>
145
146 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
147 extraneous parentheses.
148
149 2012-11-26 Yao Qi <yao@codesourcery.com>
150
151 * remote.c (remote_start_remote): Typo fix.
152
153 2012-11-23 David S. Miller <davem@davemloft.net>
154
155 * sparc-tdep.h (struct sparc_fpregset): New data structure.
156 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
157 sparc32_sol2_fpregset): Declare new globals.
158 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
159 'fpregset' argument.
160 * sparc64-tdep.h (sparc64_supply_fpregset,
161 sparc64_collect_fpregset): Likewise.
162 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
163 globals.
164 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
165 (sparc_fpregset): Declare new global.
166 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
167 'fpregset' argument.
168 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
169 into handler.
170 (fill_fpregset): Likewise.
171 (_initialize_sparc_linux_nat): Set sparc_fpregset to
172 sparc32_bsd_fpregset.
173 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
174 sparc32_bsd_fpregset down into handler.
175 (sparc32_linux_collect_core_fpregset): Likewise.
176 * sparc-nat.c (sparc_fpregset): Define.
177 (sparc_supply_fpregset): Add 'fpregset' argument.
178 (sparc_collect_fpregset): Likewise.
179 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
180 into fpregset handler.
181 (sparc_store_inferior_registers): Likewise.
182 (_initialize_sparc_nat): Set sparc_fpregset to
183 sparc32_sunos4_fpregset if NULL.
184 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
185 down into handler.
186 (fill_fpregset): Likewise.
187 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
188 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
189 use it to compute offsets.
190 (sparc32_collect_fpregset): Likewise.
191 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
192 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
193 down into handler.
194 (fill_fpregset): Likewise.
195 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
196 Likewise.
197 (sparc64_linux_collect_core_fpregset): Likewise.
198 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
199 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
200 use it to compute offsets.
201 (sparc64_collect_fpregset): Likewise.
202 (sparc64_bsd_fpregset): Define.
203 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
204 sparc64_bsd_fpregset down into handler.
205 (sparc64fbsd_collect_fpregset): Likewise.
206 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
207 and pass sparc{32,64}_bsd_fpregset down into handler.
208 (sparc64nbsd_collect_fpregset): Likewise.
209 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
210 sparc64_bsd_fpregset down into handler.
211 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
212 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
213 to sparc32_bsd_fpregset.
214 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
215 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
216 (sparc32nbsd_supply_fpregset): Likewise.
217
218 2012-11-21 Tom Tromey <tromey@redhat.com>
219
220 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
221 field.
222 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
223 Remove.
224 * c-typeprint.c (c_type_print_base): Update.
225
226 2012-11-21 Yao Qi <yao@codesourcery.com>
227
228 PR tdep/7438
229 * gdbarch.sh (smash_text_address): Remove.
230 * gdbarch.c, gdbarch.h: Regenerate.
231 * arm-tdep.c (arm_smash_text_address): Remove.
232 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
233 * hppa-tdep.c (hppa_smash_text_address): Remove.
234 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
235 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
236 Caller update.
237 * coffread.c (coff_symtab_read): Caller update.
238 * dbxread.c (process_one_symbol): Likewise.
239 * elfread.c (record_minimal_symbol): Likewise.
240 * somread.c (som_symtab_read): Likewise.
241
242 2012-11-20 Pierre Muller <muller@sourceware.org>
243
244 ARI fixes: sprintf rule.
245 Replace sprintf function calls for char arrays by
246 calls to xsnprintf calls.
247 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
248 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
249 (arm_neon_quad_read, arm_pseudo_read): Ditto.
250 (arm_neon_quad_write, arm_pseudo_write): Ditto.
251 * breakpoint.c (condition_completer): Ditto.
252 (create_tracepoint_from_upload): Ditto.
253 * dwarf2read.c (file_full_name): Ditto.
254 * gcore.c (gcore_command): Ditto.
255 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
256 * go32-nat.c (go32_sysinfo): Ditto.
257 * interps.c (interp_set): Ditto.
258 * m32c-tdep.c (make_types): Ditto.
259 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
260 * remote-m32r-sdi.c (m32r_open): Ditto.
261 * sol-thread.c (td_err_string): Ditto.
262 (td_state_string, solaris_pid_to_str): Ditto.
263 * symtab.c (gdb_mangle_name): Ditto.
264 * cli/cli-script.c (execute_control_command): Ditto.
265 (define_command, document_command): Ditto.
266 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
267 * tui/tui-stack.c (tui_make_status_line): Ditto.
268 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
269
270 2012-11-20 Mike Frysinger <vapier@gentoo.org>
271
272 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
273 it when looking at ptr->func.
274 * command.h (complete_on_cmdlist): Add a fourth arg.
275 * completer.c (complete_line_internal): Add local ignore_help_classes,
276 and set it to 1 when reason is not handle_help. Pass this down to
277 lookup_cmd_1 and complete_on_cmdlist.
278
279 2012-11-20 Tom Tromey <tromey@redhat.com>
280
281 * completer.c (count_struct_fields): Remove.
282 (expression_completer): Don't call count_struct_fields.
283
284 2012-11-20 Pedro Alves <palves@redhat.com>
285
286 * annotate.c (breakpoints_changed): Rename to ...
287 (annotate_breakpoints_changed): ... this.
288 (annotate_stopped, breakpoint_changed): Adjust caller.
289 * annotate.h (breakpoints_changed): Rename to ...
290 (annotate_breakpoints_changed): ... this.
291 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
292 (do_map_commands_command, init_raw_breakpoint, clear_command)
293 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
294
295 2012-11-20 David S. Miller <davem@davemloft.net>
296
297 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
298 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
299 sysconf.
300 (get_cores_used_by_process): Update comment.
301
302 2012-11-20 Yao Qi <yao@codesourcery.com>
303
304 * objfiles.c (init_entry_point_info): Remove trailing spaces.
305
306 2012-11-20 Yao Qi <yao@codesourcery.com>
307
308 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
309 to deprecated_context_hook.
310
311 2012-11-19 Yao Qi <yao@codesourcery.com>
312
313 * infrun.c (infwait_state): Add static.
314
315 2012-11-16 Keith Seitz <keiths@redhat.com>
316
317 PR c++/13615
318 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
319 parameter and pass it to lookup_symbol_file.
320 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
321 to search base classes.
322 (cp_lookup_symbol_namespace): Likewise.
323 (lookup_namespace_scope): Likewise.
324 (lookup_symbol_file): Add SEARCH parameter.
325 If SEARCH is non-zero and no symbol is found, lookup the class
326 and call cp_lookup_nested_symbol.
327 (find_symbol_in_baseclass): New function.
328 (cp_lookup_nested_symbol): Do not let
329 cp_lookup_symbol_in_namespace search through base classes.
330 Do that later when there is no global symbol match.
331
332 2012-11-16 Doug Evans <dje@google.com>
333
334 * main.c (gdb_datadir_provided): New static global.
335 (get_init_files): If --data-directory is provided,
336 and SYSTEM_GDBINIT lives in data-directory, look for it there.
337 * NEWS: Mention it.
338
339 2012-11-15 Pierre Muller <muller@sourceware.org>
340
341 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
342 * gdb_stat.h: Delete. Moved to common directory.
343 * common/gdb_stat.h: New file.
344 * gdb_wait.h: Delete. Moved to common directory.
345 * common/gdb_wait.h: New file.
346 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
347 location.
348 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
349 location.
350 (stat.h rule): Adapt to new gdb_stat.h location.
351 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
352 <sys/stat.h> header.
353 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
354 <sys/wait.h> header.
355
356 2012-11-15 Pierre Muller <muller@sourceware.org>
357
358 * configure.ac (AC_HEADER_STAT): Remove.
359 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
360 and corresponding code.
361 * configure: Regenerate.
362 * config.in: Regenerate.
363
364 2012-11-15 Pierre Muller <muller@sourceware.org>
365
366 ARI xasprintf rule fixes.
367 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
368 instead of xasprintf.
369 (open_and_init_dwp_file): Ditto.
370
371 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
372
373 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
374 target types.
375
376 2012-11-14 Tom Tromey <tromey@redhat.com>
377
378 * configure, config.in: Rebuild.
379 * configure.ac: Don't check for ctype.h, time.h.
380 * expprint.c: Don't use HAVE_CTYPE_H.
381
382 2012-11-13 Tom Tromey <tromey@redhat.com>
383
384 * gdbarch.h, gdbarch.c: Rebuild.
385 * gdbarch.sh (set_target_gdbarch): Rename from
386 deprecated_target_gdbarch_select_hack.
387 * arch-utils.c (gdbarch_update_p): Update.
388 (set_gdbarch_from_file): Update.
389
390 2012-11-14 Pierre Muller <muller@sourceware.org>
391
392 * MAINTAINERS (Responsible Maintainers/misc): Add myself
393 as responsible of contrib/ari directory.
394
395 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
396 Yao Qi <yao@codesourcery.com>
397
398 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
399 bit of EXC_RETURN.
400 (arm_m_exception_cache, arm_m_exception_this_id)
401 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
402 (arm_m_exception_unwind): New.
403 (arm_gdbarch_init): Register arm_m_exception_unwind.
404
405 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
406
407 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
408 parameter COUNT, for pattern filling of memory regions.
409 * NEWS: Mention it.
410
411 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
412
413 * disasm.h (DISASSEMBLY_FILENAME): New macro.
414 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
415 to print_source_lines ().
416 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
417 flag.
418 * source.c (print_source_lines_base): Prefix source line with
419 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
420
421 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
422
423 * symtab.h (print_source_lines_flags): New enum.
424 * source.c (print_source_lines_base): Change noerror to flags.
425 (print_source_lines): Change noerror to flags.
426
427 2012-11-13 Pierre Muller <muller@sourceware.org>
428
429 ARI fixes: Avoid sprintf function use rule.
430 * charset.c (convert_between_encodings): Use xsnprintf.
431 * cli-out.c (cli_field_int): Likewise.
432 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
433 * expprint.c (op_name_standard): Likewise.
434 * frv-tdep.c (set_variant_num_gprs): Likewise.
435 (set_variant_num_fprs): Likewise.
436 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
437 * nto-tdep.c (nto_find_and_open_solib): Likewise.
438 (nto_init_solib_absolute_prefix): Likewise.
439 * source.c (init_source_path): Likewise.
440 (print_source_lines_base): Likewise.
441 * valprint.c (print_wchar): Likewise.
442 * mi/mi-out.c (mi_field_int): Likewise.
443 windows-nat.c (windows_pid_to_exec_file): Likewise.
444 (windows_create_inferior): Likewise.
445 (_initialize_check_for_gdb_ini): Likewise.
446
447 2012-11-12 Joel Brobecker <brobecker@adacore.com>
448
449 * frame.h (deprecated_frame_register_read): Renames
450 frame_register_read.
451 * frame.c (deprecated_frame_register_read): Renames
452 frame_register_read. Update all callers.
453 * i386-tdep.c: Update all callers of frame_register_read.
454 * infcmd.c: Likewise.
455 * jit.c: Likewise.
456 * mips-tdep.c: Likewise.
457 * mt-tdep.c: Likewise.
458 * sh64-tdep.c: Likewise.
459
460 2012-11-12 Joel Brobecker <brobecker@adacore.com>
461
462 * frame.h (frame_register_read): Remove FIXME comment.
463 * frame.c (frame_register_read): Add suggestion explaining
464 which function to use in place of this one.
465
466 2012-11-12 Tom Tromey <tromey@redhat.com>
467
468 * python/python.c (start_type_printers): Initialize 'result_obj'.
469
470 2012-11-12 Tom Tromey <tromey@redhat.com>
471
472 * NEWS: Update.
473 * data-directory/Makefile.in (PYTHON_FILES): Add
474 type_printers.py.
475 * python/lib/gdb/command/type_printers.py: New file.
476 * python/lib/gdb/command/types.py (TypePrinter): New class.
477 (_get_some_type_recognizers, get_type_recognizers,
478 apply_type_recognizers, register_type_printer): New
479 functions.
480 * python/py-objfile.c (objfile_object) <type_printers>: New
481 field.
482 (objfpy_dealloc): Decref new field.
483 (objfpy_new): Set new field.
484 (objfpy_get_type_printers, objfpy_set_type_printers): New
485 functions.
486 (objfile_to_objfile_object): Set new field.
487 (objfile_getset): Add "type_printers".
488 * python/py-progspace.c (pspace_object) <type_printers>: New
489 field.
490 (pspy_dealloc): Decref new field.
491 (pspy_new): Set new field.
492 (pspy_get_type_printers, pspy_set_type_printers): New functions.
493 (pspace_to_pspace_object): Set new field.
494 (pspace_getset): Add "type_printers".
495 * python/python.c (start_type_printers, apply_type_printers,
496 free_type_printers): New functions.
497 (_initialize_python): Set gdb.type_printers.
498 * python/python.h (start_type_printers, apply_type_printers,
499 free_type_printers): Declare.
500 * typeprint.c (type_print_raw_options, default_ptype_flags):
501 Update for new fields.
502 (do_free_global_table, create_global_typedef_table,
503 find_global_typedef): New functions.
504 (find_typedef_in_hash): Use find_global_typedef.
505 (whatis_exp): Use create_global_typedef_table. Change cleanup
506 handling.
507 * typeprint.h (struct type_print_options) <global_typedefs,
508 global_printers>: New fields.
509
510 2012-11-12 Tom Tromey <tromey@redhat.com>
511
512 * c-typeprint.c (find_typedef_for_canonicalize,
513 print_name_maybe_canonical): New functions.
514 (c_print_type): Look up type name.
515 (cp_type_print_derivation_info): Add flags argument. Use
516 print_name_maybe_canonical.
517 (cp_type_print_method_args): Add wrapping.
518 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
519 (c_type_print_template_args): New function.
520 (c_type_print_base): Change wrapping. Use
521 print_name_maybe_canonical.
522 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
523 type name lookups.
524 * gdbtypes.c (types_equal): No longer static.
525 * gdbtypes.h (types_equal): Declare.
526 * typeprint.c (type_print_raw_options, default_ptype_flags):
527 Update.
528 (struct typedef_hash_table): New.
529 (hash_typedef_field, eq_typedef_field,
530 recursively_update_typedef_hash, add_template_parameters,
531 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
532 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
533 copy_typedef_hash, find_typedef_in_hash): New functions.
534 * typeprint.h (struct type_print_options) <local_typedefs>:
535 New field.
536 (recursively_update_typedef_hash, add_template_parameters,
537 create_typedef_hash, free_typedef_hash,
538 make_cleanup_free_typedef_hash, copy_typedef_hash,
539 find_typedef_in_hash): Declare.
540
541 2012-11-12 Tom Tromey <tromey@redhat.com>
542
543 * cp-support.c (inspect_type,
544 replace_typedefs_qualified_name, replace_typedefs): Add
545 finder, data arguments. Call as needed.
546 (cp_canonicalize_string_full): New function.
547 (cp_canonicalize_string_no_typedefs): Rewrite.
548 * cp-support.h (canonicalization_ftype): New typedef.
549 (cp_canonicalize_string_full): Declare.
550
551 2012-11-12 Tom Tromey <tromey@redhat.com>
552
553 * NEWS: Update.
554 * c-typeprint.c (c_type_print_base): Handle print_method and
555 print_typedefs flags.
556 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
557 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
558 options.
559 * typeprint.c (type_print_raw_options, default_ptype_flags):
560 Update for new field.s
561 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
562 (setprinttypelist, showprinttypelist, print_methods,
563 print_typedefs): New globals.
564 (set_print_type, show_print_type, set_print_type_methods,
565 show_print_type_methods, set_print_type_typedefs,
566 show_print_type_typedefs): New functions.
567 (_initialize_typeprint): Update documentation. Add "print
568 type methods" and "print type typedefs" parameters.
569 * typeprint.h (struct type_print_options) <print_methods,
570 print_typedefs>: New fields.
571
572 2012-11-12 Tom Tromey <tromey@redhat.com>
573
574 * c-typeprint.c (cp_type_print_method_args): Add flags
575 argument. Call c_print_type, not type_print.
576 (c_type_print_base): Call c_print_type, not type_print.
577 Update.
578
579 2012-11-12 Tom Tromey <tromey@redhat.com>
580
581 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
582 to type-printing functions.
583 * ada-lang.h (ada_print_type): Add argument.
584 * ada-typeprint.c (print_array_type, print_variant_clauses,
585 print_variant_part, print_selected_record_field_types,
586 print_record_field_types, print_unchecked_union_type,
587 print_func_type, ada_print_type): Add flags argument.
588 (ada_print_typedef): Update.
589 * c-exp.y (OPERATOR conversion_type_id): Update.
590 * c-lang.h (c_print_type, c_type_print_base): Update.
591 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
592 c_type_print_modifier, c_type_print_args,
593 c_type_print_varspec_suffix, c_type_print_base): Add flags
594 argument.
595 * cp-valprint.c (cp_print_class_member): Update.
596 * dwarf2read.c (dwarf2_compute_name): Update.
597 * f-lang.h (f_print_type): Add argument.
598 * f-typeprint.c (f_print_type): Add flags argument.
599 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
600 * go-lang.h (go_print_type): Add argument.
601 * go-typeprint.c (go_print_type): Add flags argument.
602 * jv-lang.h (java_print_type): Add argument.
603 * jv-typeprint.c (java_type_print_base, java_print_type): Add
604 flags argument.
605 * language.c (unk_lang_print_type): Add flags argument.
606 * language.h (struct language_defn) <la_print_type>: Add flags
607 argument.
608 (LA_PRINT_TYPE): Likewise.
609 * m2-lang.h (m2_print_type): Add argument.
610 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
611 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
612 m2_unbounded_array, m2_record_fields): Add flags argument.
613 * p-lang.h (pascal_print_type, pascal_type_print_base,
614 pascal_type_print_varspec_prefix): Add argument.
615 * p-typeprint.c (pascal_print_type,
616 pascal_type_print_varspec_prefix, pascal_print_func_args,
617 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
618 flags argument.
619 * symmisc.c (print_symbol): Update.
620 * typeprint.c (type_print_raw_options, default_ptype_flags):
621 New globals.
622 (type_print): Update.
623 * typeprint.h (struct type_print_options): New.
624 (type_print_raw_options): Declare.
625 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
626
627 2012-11-10 Keith Seitz <keiths@redhat.com>
628
629 * breakpoint.c (clear_command): Add cleanup for
630 sals.sals if an argument is given.
631
632 * linespec.c (parse_linespec): Do cleanups after
633 parsing a convenience variable.
634
635 2012-11-10 Keith Seitz <keiths@redhat.com>
636
637 PR gdb/14288
638 * c-valprint.c (c_val_print): For character arrays
639 with "print null" option on, print ellipses if
640 the output is truncated and the next character is not \000.
641 * valprint.c (MAX_WCHARS): Define.
642 (WCHAR_BUFLEN): Likewise.
643 (WCHAR_BUFLEN_MAX): Likewise.
644 (struct converted_character): New structure.
645 (count_next_character): New function.
646 (print_converted_chars_to_obstack): New function.
647 (generic_printstr): Rewrite using count_next_character
648 and print_converted_chars_to_obstack.
649
650 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
651
652 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
653 while executing the gdb command.
654 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
655 are called from prompt_for_continue.
656 * tui/tui-io.c (tui_redisplay_readline): Likewise.
657
658 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
659
660 PR tui/9584
661
662 * tui/tui.c (tui_rl_command_key): Do not call execute_command
663 but insert the command to execute in readline's buffer.
664
665 2012-11-09 Tom Tromey <tromey@redhat.com>
666
667 * gdbarch.sh (target_gdbarch): Remove macro.
668 (get_target_gdbarch): Rename to target_gdbarch.
669 * gdbarch.c, gdbarch.h: Rebuild.
670 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
671 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
672 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
673 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
674 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
675 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
676 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
677 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
678 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
679 procfs.c, progspace.c, ravenscar-thread.c, record.c,
680 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
681 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
682 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
683 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
684 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
685 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
686 target-descriptions.c, target.c, target.h, tracepoint.c,
687 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
688 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
689 python/py-inferior.c, python/python.c: Update.
690
691 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
692
693 * source.c (print_source_lines_base): Add fullname field giving
694 full path to file in mi output.
695 * NEWS: Mention the new fullname field.
696
697 2012-11-09 Yao Qi <yao@codesourcery.com>
698
699 * NEWS: Mention the fix to the ambiguity of 'fo' command.
700
701 2012-11-09 Pedro Alves <palves@redhat.com>
702
703 PR gdb/14306
704
705 * infrun.c: Include target-descriptions.h.
706 (follow_exec): Fetch new target description.
707
708 2012-11-09 Yao Qi <yao@codesourcery.com>
709
710 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
711 0x8d (lea).
712
713 2012-11-09 Yao Qi <yao@codesourcery.com>
714
715 * breakpoint.c: Declare set_tracepoint_count.
716 (install_breakpoint): Call set_tracepoint_count if B is a
717 tracepoint.
718 (trace_command): Don't call set_tracepoint_count. Re-indent.
719 (strace_command, ftrace_command):
720 (create_tracepoint_from_upload): Likewise.
721
722 2012-11-09 Pedro Alves <palves@redhat.com>
723
724 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
725 (get_target_gdbarch) <gdbarch.h>: New function.
726 (startup_gdbarch) <gdbarch.h>: Declare.
727 <gdbarch.c> (target_gdbarch): Delete.
728 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
729 current inferior's gdbarch.
730 <gdbarch.c> (get_target_gdbarch): New function.
731 * inferior.c: Include target-descriptions.h.
732 (free_inferior): Free target description info.
733 (add_inferior_with_spaces): Set the inferior's initial
734 architecture.
735 (clone_inferior_command): Copy the original inferior's target
736 description if it was user specified.
737 (initialize_inferiors): Add comment.
738 * inferior.h (struct target_desc_info): Forward declare.
739 (struct inferior) <gdbarch>: New field.
740 * linux-nat.c: Include target-descriptions.h.
741 (linux_child_follow_fork): Copy the parent's architecture and
742 target description to the child.
743 * target-descriptions.c: Include inferior.h.
744 (struct target_desc_info): New structure, holding the equivalents
745 of ...
746 (target_desc_fetched, current_target_desc)
747 (target_description_filename): ... these removed globals.
748 (get_tdesc_info, target_desc_info_from_user_p)
749 (copy_inferior_target_desc_info, target_desc_info_free): New.
750 (target_desc_fetched, current_target_desc)
751 (target_description_filename): Reimplemented as convenience
752 macros.
753 (tdesc_filename_cmd_string): New global.
754 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
755 tdescs filename ..." commands to the per-inferior equivalent.
756 (show_tdesc_filename_cmd): Get the value to show from the
757 per-inferior description filename.
758 (_initilize_target_descriptions): Change the "set/show tdesc
759 filename" commands' variable.
760 * target-descriptions.h (struct target_desc, struct target_desc_info)
761 (struct inferior): Forward declare.
762 (target_find_description, target_clear_description)
763 (target_current_description): Adjust comments.
764 (copy_inferior_target_desc_info, target_desc_info_free)
765 (target_desc_info_from_user_p). Declare.
766
767 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
768
769 * tui/tui-hooks.c (tui_about_to_proceed): New function.
770 (tui_target_wait_hook): Remove.
771 (tui_install_hooks): Install the about_to_proceed observer.
772 (tui_remove_hooks): And remove it here.
773
774 2012-11-08 Tom Tromey <tromey@redhat.com>
775
776 * linux-tdep.c (linux_make_siginfo_note): New function.
777 (linux_make_corefile_notes): Use it.
778 * corelow.c (get_core_siginfo): New function.
779 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
780
781 2012-11-08 Tom Tromey <tromey@redhat.com>
782
783 PR gdb/14704:
784 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
785 (zlib_decompress_section): Remove.
786 (gdb_bfd_map_section): Only check for compressed section
787 in mmap case. Use bfd_get_full_section_contents.
788 * osabi.c (check_note): Add 'sectsize' argument. Read
789 section data.
790 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
791 section data. Update for check_note change.
792 * xcoffread.c (xcoff_initial_scan): Use
793 bfd_get_full_section_contents.
794 * py-auto-load.c (auto_load_section_scripts): Use
795 bfd_get_full_section_contents.
796 * contrib/cc-with-tweaks.sh: Add -Z option.
797
798 2012-11-08 Tom Tromey <tromey@redhat.com>
799
800 * python/py-bpevent.c: Include defs.h.
801 * python/py-continueevent.c: Include defs.h.
802 * python/py-event.c: Include defs.h.
803 * python/py-event.h: Don't include defs.h.
804 * python/py-events.h: Don't include defs.h.
805 * python/py-evts.c: Include defs.h.
806 * python/py-exitedevent.c: Include defs.h.
807 * python/py-newobjfileevent.c: Include defs.h.
808 * python/py-signalevent.c: Include defs.h.
809 * python/py-stopevent.c: Include defs.h.
810 * python/py-threadevent.c: Include defs.h.
811
812 2012-11-08 Pierre Muller <muller@sourceware.org>
813
814 * update-web-ari.sh (print_heading): Add number of files
815 checked.
816 (nb_files): New variable counting the number of sources
817 files found by gdb_find.sh script.
818 (debug_awk): New variable to allow extra debug output.
819 (indexes): Add more information if DEBUG_AWK is set.
820
821 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
822
823 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
824 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
825 following the change in PLT call stubs on linker.
826
827 2012-11-08 Pierre Muller <muller@sourceware.org>
828
829 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
830 as default language.
831 (AWK): Use = instead of == for sh test to avoid warning.
832 (Linux rule): Correct [:digit] into [[:digit:]].
833 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
834 (vasprintf rule): Adapt to common subdirectory moves.
835 (xasprintf rule): Idem.
836 (xvasprintf rule): Idem.
837 (var_boolean rule): Accept occurence in == or != test.
838
839 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
840
841 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
842
843 * tui/tui-hooks.c (tui_inferior_exit): New function.
844 (tui_detach_hook): Remove.
845 (tui_install_hooks): Install the inferior exit observer.
846 (tui_remove_hooks): Remove it.
847
848 2012-11-08 Yao Qi <yao@codesourcery.com>
849
850 PR gdb/14777.
851 * source.c (_initialize_source): Call add_com_alias to abbreviate
852 'forward-search' as 'fo'.
853
854 2012-11-07 Pedro Alves <palves@redhat.com>
855
856 * arm-tdep.c: Make defs.h be the first include.
857 * coff-pe-read.c: Ditto.
858 * gnu-nat.c: Ditto.
859 * go32-nat.c: Ditto.
860 * i386-nat.c: Ditto.
861 * ppcnbsd-nat.c: Ditto.
862 * ada-varobj.h: Don't include defs.h.
863 * i386-darwin-tdep.h: Ditto.
864 * i386-nat.h: Ditto.
865
866 2012-11-07 Pedro Alves <palves@redhat.com>
867
868 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
869 Committee.
870
871 2012-11-07 Pierre Muller <muller@sourceware.org>
872
873 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
874 File already uses "gdb_dirent.h" header.
875
876 2012-11-07 Yao Qi <yao@codesourcery.com>
877
878 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
879 tracepoint_count'.
880
881 2012-11-06 Tom Tromey <tromey@redhat.com>
882
883 * target.h (inferior_has_forked, inferior_has_vforked)
884 (inferior_has_execd, inferior_has_called_syscall): Remove
885 declarations.
886
887 2012-11-06 Pierre Muller <muller@sourceware.org>
888
889 * remote.c (remote_insert_hw_breakpoint): ARI fix,
890 add missing internalization markup.
891
892 2012-11-06 Pedro Alves <palves@redhat.com>
893
894 PR gdb/14810
895
896 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
897
898 2012-11-06 Pierre Muller <muller@sourceware.org>
899
900 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
901 is not executable.
902
903 2012-11-05 Joel Brobecker <brobecker@adacore.com>
904
905 * gnulib/update-gnulib.sh: New script.
906
907 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
908
909 * MAINTAINERS: Update my email address.
910
911 2012-11-05 Tom Tromey <tromey@redhat.com>
912
913 * frame.c (put_frame_register): Don't use temporary buffer.
914
915 2012-11-05 Pedro Alves <palves@redhat.com>
916
917 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
918 child. Clear 'pending_detach'.
919 * infrun.c (handle_vfork_child_exec_or_exit): Clear
920 'pending_detach' in the vfork parent.
921
922 2012-11-05 Doug Evans <dje@google.com>
923
924 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
925 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
926 * dwarf2read.c: #include "elf-bfd.h".
927 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
928 (dwop_section_names): Renamed from dwo_section names. All uses
929 updated. Add entries for .debug_cu_index, .debug_tu_index.
930 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
931 All uses updated.
932 (struct dwp_sections): New type.
933 (struct virtual_dwo_sections): New type.
934 (struct dwp_hash_table): New type.
935 (struct dwp_file): New type.
936 (init_cutu_and_read_dies): Ensure DWO info/types section has been
937 read in. Handle DWOs coming from DWP files.
938 (lookup_dwo_file_slot): New function.
939 (dwarf2_locate_dwo_sections): Move definition closer to use.
940 (create_dwo_debug_info_hash_table_reader): Renamed from
941 create_debug_info_hash_table_reader. All callers updated.
942 (create_dwo_debug_info_hash_table): Renamed from
943 create_debug_info_hash_table. All callers updated.
944 (create_dwp_hash_table): New function.
945 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
946 (lookup_dwo_in_dwp): New function.
947 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
948 is_dwp. All callers updated.
949 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
950 (open_and_init_dwo_file): Renamed from init_dwo_file.
951 All callers updated.
952 (lookup_dwo_file): Delete.
953 (dwarf2_locate_dwp_sections): New function.
954 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
955 (allocate_dwp_loaded_cutus_table): New function.
956 (open_and_init_dwp_file): New function.
957 (lookup_dwo_cutu): New function.
958 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
959
960 2012-11-03 Yao Qi <yao@codesourcery.com>
961
962 Fix PR gdb/14617.
963 * breakpoint.c (trace_pass_set_count): Call
964 observer_notify_breakpoint_modified instead of
965 observer_notify_tracepoint_modified.
966 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
967
968 2012-11-02 Tom Tromey <tromey@redhat.com>
969
970 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
971 argument to complete_on_enum.
972
973 2012-11-02 Tom Tromey <tromey@redhat.com>
974
975 * configure: Rebuild.
976 * configure.ac (build_warnings): Add -Wempty-body.
977 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
978 * remote.c (handle_notification): Use braces for empty 'else' body.
979 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
980 'else' body.
981 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
982 'else' body.
983 * solib-som.c (som_relocate_section_addresses): Use braces
984 for empty 'else' body.
985 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
986 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
987
988 2012-11-02 Pedro Alves <palves@redhat.com>
989
990 PR gdb/14766
991
992 * infrun.c (handle_inferior_event)
993 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
994 null_ptid before handling a vfork child exec or exit. Switch to
995 the event ptid afterwards.
996
997 2012-11-02 Yao Qi <yao@codesourcery.com>
998
999 * std-operator.def: Remove OP_LABELED.
1000 * eval.c: Remove the declaration of 'get_label'.
1001 (get_label): Remove.
1002 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1003 Update comment.
1004 Remove local variable 'variantno' and related code.
1005 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1006 with 'fieldno'.
1007 * expprint.c (print_subexp_standard): Likewise.
1008 (dump_subexp_body_standard): Likewise.
1009 * parse.c (operator_length_standard): Likewise.
1010
1011 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1012
1013 Incorporate ARI web page generator into GDB sources.
1014 * contrib/ari/create-web-ari-in-src.sh: New file.
1015 * contrib/ari/gdb_ari.sh: New file.
1016 * contrib/ari/gdb_find.sh: New file.
1017 * contrib/ari/update-web-ari.sh: New file.
1018
1019 2012-10-31 Tom Tromey <tromey@redhat.com>
1020
1021 * gdbarch.c: Rebuild.
1022 * gdbarch.sh: Remove references to gdbarch_swap.
1023 * corelow.c (core_open): Remove obsolete comment.
1024
1025 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
1026
1027 PR cli/14772
1028 * c-typeprint.c (c_print_type): Don't print a space for vector
1029 types, this is handled within the suffix.
1030 (c_type_print_varspec_suffix): Add a space to vector suffix.
1031
1032 2012-10-26 Pedro Alves <palves@redhat.com>
1033
1034 * amd64-tdep.c (amd64_relocate_instruction): Use
1035 store_unsigned_integer instead of memcpy.
1036 * i386-tdep.c (i386_relocate_instruction): Ditto.
1037
1038 2012-10-26 Pedro Alves <palves@redhat.com>
1039
1040 * infrun.c (handle_inferior_event): Merge handling of
1041 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1042 switch case.
1043
1044 2012-10-26 Pedro Alves <palves@redhat.com>
1045
1046 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1047 Remove comment.
1048
1049 2012-10-26 Pedro Alves <palves@redhat.com>
1050
1051 * target.c (target_waitstatus_to_string): Handle
1052 TARGET_WAITKIND_VFORK_DONE.
1053
1054 2012-10-26 Pedro Alves <palves@redhat.com>
1055
1056 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1057 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1058
1059 2012-10-24 Tristan Gingold <gingold@adacore.com>
1060
1061 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1062 Add comments.
1063
1064 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1065
1066 * ravenscar-thread.c (ravenscar_wait): Only update the list
1067 of threads and inferior_ptid if the inferior is still alive.
1068
1069 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1070
1071 * ada-lang.c (is_known_support_routine): Use lbasename when
1072 matching the symtab's filename against
1073 known_runtime_file_name_patterns.
1074
1075 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1076
1077 * ada-lang.c (ada_same_array_size_p): New function.
1078 (ada_promote_array_of_integrals): New function.
1079 (coerce_for_assign): Add handling of arrays where the elements
1080 are integrals of a smaller size than the size of the target
1081 array element type.
1082
1083 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1084
1085 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1086 against maximum exponent value.
1087
1088 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1089
1090 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1091 "unwind-seh.c".
1092
1093 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1094
1095 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1096 strip typedef layer when computing the fixed type's field type,
1097 only when computing its size.
1098
1099 2012-10-24 Mark Kettenis <kettenis@gnu.org>
1100
1101 PR gdb/12783
1102 * i386-tdep.c (i386_return_value): Handle complex double and long
1103 double.
1104
1105 2012-10-24 Joel Brobecker <brobecker@adacore.com>
1106
1107 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1108 New local variable args_len.
1109 Quote the name of the executable when computing the command line.
1110
1111 2012-10-23 Mark Kettenis <kettenis@gnu.org>
1112
1113 PR gdb/12796
1114 PR gdb/12798
1115 PR gdb/12800
1116 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1117 AMD64_FTAG_REGNUM.
1118 * amd64-tdep.c (amd64_classify): Classify complex types.
1119 (amd64_return_value): Handle the COMPLEX_X87 class.
1120
1121 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1122
1123 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1124 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1125
1126 2012-10-23 Joel Brobecker <brobecker@adacore.com>
1127
1128 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1129 function.
1130 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1131 to amd64_windows_auto_wide_charset.
1132
1133 2012-10-23 Yao Qi <yao@codesourcery.com>
1134
1135 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1136 * event-top.h: Remove its declaration.
1137 (async_request_quit): Call mark_async_signal_handler instead of
1138 mark_async_signal_handler_wrapper.
1139 (async_do_nothing, async_disconnect): Likewise.
1140 (async_stop_sig): Likewise.
1141 * remote.c (handle_remote_sigint): Likewise.
1142 (handle_remote_sigint_twice): Likewise.
1143
1144 2012-10-23 Yao Qi <yao@codesourcery.com>
1145
1146 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1147 with 'static struct async_signal_handler *'.
1148 (sighup_token, sigquit_token, sigstp_token): Likewise.
1149
1150 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1151
1152 * gdbarch.sh (function_list): Use 'pstring' when printing
1153 a variable which could return NULL.
1154 * gdbarch.c: Regenerate.
1155
1156 2012-10-10 Joel Brobecker <brobecker@adacore.com>
1157 Tom Tromey <tromey@redhat.com>
1158
1159 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1160 inneffective if condition by gdb assertion. Add function
1161 description comment.
1162
1163 2012-10-19 Joel Brobecker <brobecker@adacore.com>
1164
1165 * parser-defs.h (struct exp_descriptor): Document constraint
1166 on return value for "op_name" callbacks.
1167
1168 2012-10-18 Tom Tromey <tromey@redhat.com>
1169
1170 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1171 * symtab.c (iterate_over_some_symtabs): Constify.
1172 * source.h (symtab_to_fullname): Return 'const char *'.
1173 * source.c (symtab_to_fullname): Return 'const char *'.
1174 * python/py-symtab.c (stpy_fullname): Constify.
1175 * cli/cli-cmds.c (edit_command): Constify.
1176 * breakpoint.c (print_breakpoint_location)
1177 (update_static_tracepoint): Constify.
1178
1179 2012-10-18 Tom Tromey <tromey@redhat.com>
1180
1181 * breakpoint.c (compare_breakpoints): Fix comparison.
1182
1183 2012-10-18 Tom Tromey <tromey@redhat.com>
1184
1185 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1186 gdb_wchar_t to convert_between_encodings.
1187
1188 2012-10-17 Yao Qi <yao@codesourcery.com>
1189
1190 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1191 more parameter 'inferior'.
1192 * corefile.c (write_memory_with_notification): Caller update.
1193
1194 * mi/mi-cmd-var.c: Include "mi-main.h".
1195 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1196 to 1 and restore it later.
1197 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1198 and "data-write-memory-bytes.
1199 * mi/mi-interp.c: Include objfiles.h.
1200 (mi_interpreter_init): Call observer_attach_memory_changed.
1201 (mi_memory_changed): New.
1202 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1203 New field.
1204
1205 * NEWS: Mention new MI notification "memory-changed".
1206
1207 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1210
1211 2012-10-15 Doug Evans <dje@google.com>
1212
1213 New option -nh: inhibit loading of ~/.gdbinit.
1214 * NEWS: Mention -nh.
1215 * main.c (captured_main): Recognize and process -nh.
1216 (print_gdb_help): Mention -nh.
1217 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1218
1219 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1220
1221 PR backtrace/14646
1222 PR gdb/14647
1223 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1224 pc_regnum_from_eax.
1225 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1226 nor pc_regnum_from_eax.
1227 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1228 nor pc_regnum_from_eax.
1229
1230 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1231
1232 Fix entry values resolving in inlined frames.
1233 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1234 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1235 entries of FRAME.
1236
1237 2012-10-15 Joel Brobecker <brobecker@adacore.com>
1238
1239 * configure.ac: Build with -DMS_WIN64 if building with Python
1240 enabled using GCC on amd64-windows.
1241 * configure: Regenerate.
1242
1243 2012-10-15 Tom Tromey <tromey@redhat.com>
1244
1245 PR python/14635:
1246 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1247 to Py_None.
1248
1249 2012-10-15 Tom Tromey <tromey@redhat.com>
1250
1251 PR python/14634:
1252 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1253
1254 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1255
1256 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1257 reset thread numbering back to 1.
1258
1259 2012-10-11 Doug Evans <dje@google.com>
1260
1261 PR breakpoints/14643.
1262 * linespec.c (struct ls_parser): New member keyword_ok.
1263 (linespec_lexer_lex_string): Add comment.
1264 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1265 for one.
1266 (parse_linespec): Set keyword_ok.
1267
1268 2012-10-10 Doug Evans <dje@google.com>
1269
1270 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1271 "0x" prefix on address in log message.
1272
1273 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1274 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1275 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1276 (lookup_dwo_file): Add const to dwo_name parameter.
1277 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1278
1279 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1280
1281 Fix crash during stepping on ppc32.
1282 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1283 SYM.
1284
1285 2012-10-03 Doug Evans <dje@google.com>
1286
1287 PR symtab/14601
1288 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1289
1290 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1291
1292 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1293 output and use uint32_t not long to ensure 4 byte size.
1294
1295 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1296
1297 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1298 unref'ed it.
1299
1300 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1301
1302 * target.c (simple_search_memory): Include access length in
1303 warning message.
1304
1305 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1306 Edjunior Machado <emachado@linux.vnet.ibm.com>
1307
1308 PR gdb/13989
1309 * solib.c (solib_find): Prevent GDB from loading native libraries when
1310 debugging a cross-target corefile.
1311
1312 2012-09-28 selven <pcthegreat@gmail.com>
1313
1314 Make definition match declaration.
1315
1316 * regcache.c (regcache_register_status): Change return type to
1317 enum register_status.
1318
1319 2012-09-28 Yao Qi <yao@codesourcery.com>
1320
1321 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1322 write_memory_with_notification instead of write_memory.
1323 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1324 instead of target_write_memory.
1325
1326 2012-09-28 Yao Qi <yao@codesourcery.com>
1327
1328 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1329 when the length of content is not an even number.
1330
1331 2012-09-27 Tom Tromey <tromey@redhat.com>
1332
1333 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1334 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1335
1336 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1337
1338 * sol-thread.c (sol_thread_fetch_registers)
1339 (sol_thread_store_registers): Delete commented out code.
1340
1341 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1342
1343 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1344 Move these functions to sparc-sol-thread.c.
1345 * sparc-sol-thread.c: New file.
1346 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1347 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1348 configurations.
1349 * configure: Regenerate.
1350
1351 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1352
1353 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1354 Remove commented-out code.
1355
1356 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1357
1358 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1359 Enable this code for sparc hosts only.
1360
1361 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1362
1363 * procfs.h (procfs_find_LDT_entry): Add declaration.
1364 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1365 function procfs_find_LDT_entry.
1366
1367 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1368
1369 * procfs.c (proc_get_LDT_entry): Make static.
1370
1371 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1372
1373 * procfs.c (proc_find_memory_regions): Fix declaration.
1374
1375 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1376
1377 * amd64-tdep.c (amd64_return_value): Revert previous change
1378 that used TYPE_LENGTH directly.
1379 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1380 (bfin_store_return_value): Likewise.
1381 * cris-tdep.c (cris_store_return_value): Likewise.
1382 (cris_extract_return_value): Likewise.
1383 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1384 * hppa-tdep.c (hppa64_return_value): Likewise.
1385 * lm32-tdep.c (lm32_store_return_value): Likewise.
1386 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1387 * spu-tdep.c (spu_value_from_register): Likewise.
1388 * vax-tdep.c (vax_return_value): Likewise.
1389
1390 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1391
1392 * gdbtypes.c (lookup_array_range_type): Expand parameters
1393 LOW_BOUND and HIGH_BOUND to LONGEST.
1394 (lookup_string_range_type): Likewise.
1395 * gdbtypes.h (lookup_array_range_type): Likewise.
1396 (lookup_string_range_type): Likewise.
1397 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1398 Expand HIGHBOUND to ssize_t.
1399 (value_string): Likewise.
1400 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1401 (value_string): Likewise.
1402
1403 2012-09-27 Yao Qi <yao@codesourcery.com>
1404
1405 PR breakpoints/13898
1406 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1407 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1408 per breakpoint type.
1409
1410 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1411
1412 * procfs.c: Add gdb_bfd header.
1413 * rs6000-nat.c: Likewise.
1414 * solib-pa64.c: Likewise.
1415 * spu-linux-nat.c: Likewise.
1416 * windows-nat.c: Likewise.
1417
1418 2012-09-26 Tom Tromey <tromey@redhat.com>
1419
1420 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1421
1422 2012-09-26 Tom Tromey <tromey@redhat.com>
1423
1424 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1425 (read_common_block): Handle child DIEs with
1426 DW_AT_data_member_location.
1427 (new_symbol_full): Add special case for common blocks.
1428
1429 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1430 Tom Tromey <tromey@redhat.com>
1431
1432 * dwarf2read.c (read_common_block): Rewrite.
1433 (new_symbol_full): Handle DW_TAG_common_block.
1434 * f-lang.c (head_common_list, find_common_for_function):
1435 Remove.
1436 * f-lang.h (struct common_entry, struct saved_f77_common,
1437 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1438 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1439 BLANK_COMMON_NAME_LOCAL): Remove.
1440 (struct common_block): New.
1441 * f-valprint.c (list_all_visible_commons): Remove.
1442 (info_common_command_for_block): New function.
1443 (info_common_command): Use it.
1444 * stack.c (iterate_over_block_locals): Special case for
1445 COMMON_BLOCK_DOMAIN.
1446 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1447 constant.
1448 (struct general_symbol_info) <value.common_block>: New field.
1449 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1450
1451 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1452 Tom Tromey <tromey@redhat.com>
1453
1454 * f-lang.c (allocate_saved_bf_node,
1455 allocate_saved_function_node, allocate_saved_f77_common_node,
1456 allocate_common_entry_node, tail_common_list, current_common,
1457 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1458 tmp_bf_ptr, add_common_block, add_common_entry,
1459 find_first_common_named, patch_common_entries,
1460 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1461 global_remote_debug, get_bf_for_fcn, saved_function_list,
1462 saved_function_list_end, clear_function_list, struct saved_fcn,
1463 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1464 SAVED_BF, SAVED_BF_PTR): Remove.
1465 * f-lang.h (tail_common_list, current_common,
1466 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1467 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1468 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1469 real_main_c_value): Remove.
1470 * f-valprint.c (there_is_a_visible_common_named): Remove.
1471
1472 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1473
1474 * breakpoint.c (update_global_location_list): Ignore previous
1475 duplicate status of a breakpoint when starting a new scan for
1476 duplicate breakpoints.
1477
1478 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1479 PR breakpoints/14419
1480 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1481 support LLVM compiler.
1482
1483 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1484
1485 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1486 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1487 (bfin_store_return_value): Likewise.
1488 * cris-tdep.c (cris_store_return_value): Likewise.
1489 (cris_extract_return_value): Likewise.
1490 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1491 * hppa-tdep.c (hppa64_return_value): Likewise.
1492 * lm32-tdep.c (lm32_store_return_value): Likewise.
1493 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1494 * spu-tdep.c (spu_value_from_register): Likewise.
1495 * vax-tdep.c (vax_return_value): Likewise.
1496
1497 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1498
1499 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1500 parameter LEN to ssize_t.
1501
1502 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1503
1504 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1505 variable LEN.
1506 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1507 directly.
1508 (alpha_store_return_value): Likewise.
1509 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1510 (amd64_push_arguments): Likewise.
1511 * ax-gdb.c (gen_trace_static_fields): Likewise.
1512 (gen_traced_pop): Likewise.
1513 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1514 * breakpoint.c (update_watchpoint): Likewise.
1515 * findcmd.c (parse_find_args): Use local variable for type
1516 instead of length.
1517 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1518 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1519 (h8300_store_return_value): Likewise.
1520 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1521 Use i386_darwin_arg_type_alignment directly.
1522 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1523 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1524 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1525 (m68hc11_extract_return_value): Likewise.
1526 * mep-tdep.c (mep_push_dummy_call): Likewise.
1527 * printcmd.c (float_type_from_length): Likewise.
1528 * s390-tdep.c (s390_value_from_register): Likewise.
1529 * stack.c (read_frame_arg): Likewise.
1530 * tracepoint.c (encode_actions_1): Likewise.
1531 * valops.c (value_fetch_lazy): Use local variable for type
1532 instead of length. Use TYPE_LENGTH directly.
1533 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1534
1535 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1536
1537 * symtab.c (skip_prologue_sal): Fix typo in comment.
1538
1539 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1540
1541 * linespec.c (create_sals_line_offset): Fix typo in comment.
1542
1543 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1544
1545 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1546 use plongest to print the array size.
1547
1548 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1549
1550 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1551 * p-valprint.c (pascal_type_print_base): Likewise.
1552
1553 2012-09-22 Yao Qi <yao@codesourcery.com>
1554
1555 * remote.c (remote_get_trace_status): Remove setting default
1556 values of fields of 'ts'.
1557
1558 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 Fix internal error on canonicalization of clang types.
1561 * cp-name-parser.y (operator): New comment at make_operator call for
1562 new, delete, new[] and delete[].
1563 (exp): Use "sizeof ". Add new comment at make_operator call.
1564
1565 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 Fix disassemble without parameters in tailcall frame.
1568 * cli/cli-cmds.c (disassemble_current_function): Use
1569 get_frame_address_in_block.
1570
1571 2012-09-21 Tom Tromey <tromey@redhat.com>
1572
1573 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1574 TYPE_CODE_UNION>: Unify, removing a goto.
1575
1576 2012-09-21 Tom Tromey <tromey@redhat.com>
1577
1578 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1579
1580 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1581
1582 * findvar.c (read_frame_register_value): Mark the result value as
1583 optimized out if any of the input registers have been optimized out.
1584
1585 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1586
1587 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1588
1589 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1590
1591 * eval.c (evaluate_subexp_standard): Eliminate single-use
1592 variable LOWER.
1593
1594 2012-09-21 Yao Qi <yao@codesourcery.com>
1595
1596 * mi/mi-interp.c: Declare mi_record_changed.
1597 (mi_interpreter_init): Call observer_attach_record_changed.
1598 (mi_record_changed): New.
1599 * record.c (record_open): Call observer_notify_record_changed.
1600 (cmd_record_stop): Call observer_notify_record_changed.
1601 * NEWS: Mention it.
1602
1603 2012-09-20 Tom Tromey <tromey@redhat.com>
1604
1605 * NEWS: Update.
1606 * python/python.c (finalize_python): New function.
1607 (_initialize_python): Make a final cleanup.
1608
1609 2012-09-19 Doug Evans <dje@google.com>
1610
1611 * buildsym.h (param_symbols): Delete, unused.
1612 (context_stack): Delete member "params", unused.
1613 * buildsym.c (push_context): Update.
1614 * dwarf2read.c (read_func_scope): Update.
1615
1616 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1617
1618 * sh-tdep.c (sh_register_convert_to_virtual)
1619 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1620 all callers. Just do a memcpy if not the little-endian case.
1621
1622 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1623 set_gdbarch_double_format and set_gdbarch_long_double_format.
1624 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1625 set_gdbarch_double_format.
1626 * sh-tdep.c (sh_gdbarch_init): Likewise.
1627
1628 * NEWS: Document the removal of SH's 'regs' command.
1629 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1630 command.
1631
1632 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1633
1634 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1635 `jump'.
1636
1637 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1638
1639 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1640 language when iterating over symbols.
1641
1642 2012-09-18 Yao Qi <yao@codesourcery.com>
1643
1644 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1645 (mi_interpreter_init): Call observer_attach_tsv_created and
1646 observer_attach_tsv_deleted.
1647 (mi_tsv_created, mi_tsv_deleted): New.
1648 * tracepoint.c (delete_trace_state_variable): Call
1649 observer_notify_tsv_deleted.
1650 (trace_variable_command): Call observer_notify_tsv_created.
1651 (delete_trace_variable_command): Call
1652 observer_notify_tsv_deleted.
1653 (create_tsv_from_upload): Call observer_notify_tsv_created.
1654 * NEWS: Mention it.
1655
1656 2012-09-18 Yao Qi <yao@codesourcery.com>
1657
1658 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1659 if traceframe changed.
1660 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1661 "trace-find".
1662 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1663 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1664 'traceframe_changed'.
1665 (mi_traceframe_changed): New.
1666 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1667 New field.
1668 * NEWS: Mention the new MI notification.
1669
1670 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1671
1672 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1673
1674 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1675
1676 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1677 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1678 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1679 Extend code also for PaX support. Convert all gdb_assert to warning
1680 calls.
1681
1682 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1683
1684 Implement auto-load user conveniences suggested by Doug Evans.
1685 * auto-load.c: Include top.h.
1686 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1687 (_initialize_auto_load): New variable scripts_directory_help. Mention
1688 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1689 scripts-directory. Document in online help one can use also files for
1690 set auto-load safe-path.
1691 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1692 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1693
1694 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1695
1696 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1697 of LEN.
1698
1699 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1700
1701 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1702 ELTLEN and use TYPE_LENGTH directly.
1703 (m2_val_print): Likewise.
1704 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1705 variable LEN and use TYPE_LENGTH directly.
1706 (m68k_svr4_store_return_value): Likewise.
1707 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1708 ARGLEN and use TYPE_LENGTH directly.
1709 (mips_o64_push_dummy_call): Likewise.
1710 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1711 variable LENGTH and use TYPE_LENGTH directly.
1712 (s390_function_arg_float): Likewise.
1713 (s390_function_arg_integer): Likewise.
1714 (s390_push_dummy_call): Likewise.
1715 (s390_return_value_convention): Likewise.
1716 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1717 TYPE_LENGTH directly.
1718
1719 2012-09-17 Yao Qi <yao@codesourcery.com>
1720
1721 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1722 Update comment to add_setshow_integer_cmd.
1723 * cli/cli-setshow.c (do_set_command): Handle case
1724 'var_zuinteger_unlimited'.
1725 (do_show_command): Likewise.
1726 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1727 for command 'remotetimeout'.
1728 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1729 to var_integer.
1730 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1731 for command 'set listsize'.
1732
1733 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1734
1735 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1736 variable LEN.
1737
1738 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1739
1740 PR 14119
1741 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1742 (frame_pop): Drop also TAILCALL_FRAME frames.
1743 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1744
1745 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1746 Pedro Alves <palves@redhat.com>
1747
1748 PR 14548
1749 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1750 function start if we are already at function start. Both for
1751 reverse-next and for reverse-step into function without line number
1752 info.
1753
1754 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1755
1756 Code cleanup - rename 'inline' depth to 'artificial' depth.
1757 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1758 frame_id_artificial_p, extend the comment.
1759 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1760 * frame.c (fprint_frame_id): Rename at a user, change debug output
1761 text to "artificial=".
1762 (skip_inlined_frames): Rename to ...
1763 (skip_artificial_frames): ... here. Extend the comment.
1764 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1765 (frame_id_inlined_p): Rename to ...
1766 (frame_id_artificial_p): ... here. Rename at a user.
1767 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1768 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1769 at a user.
1770 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1771 Extend the comment.
1772 (frame_id_inlined_p): Rename to ...
1773 (frame_id_artificial_p): ... here.
1774 * inline-frame.c (inline_frame_this_id): Rename at a user.
1775
1776 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1777
1778 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1779 vector variables using vector_size syntax rather than array
1780 syntax.
1781
1782 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1783
1784 * valarith.c (value_concat): Replace unsafe ALLOCA with
1785 XMALLOC/XFREE.
1786
1787 2012-09-14 Pedro Alves <palves@redhat.com>
1788
1789 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1790
1791 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1792
1793 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1794 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1795 data-directory as appropriate.
1796
1797 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1798
1799 * printcmd.c (ui_printf): Eliminate single-use variable
1800 PARAM_LEN.
1801
1802 2012-09-14 Yao Qi <yao@codesourcery.com>
1803 Pedro Alves <palves@redhat.com>
1804
1805 * valops.c (value_assign): Move observer_notify_target_changed
1806 below to replace reinit_frame_cache.
1807
1808 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1809
1810 Refactor Python "gdb" module into a proper Python package, by
1811 introducing a new "_gdb" module for code implemented in C, and
1812 using reload/__import__ instead of exec.
1813 * python/lib/gdb/__init__.py: Import * from _gdb.
1814 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1815 prompt_hook, sys.argv): Moved from finish_python_initialization.
1816 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1817 (packages, auto_load_packages): New list and function replacing
1818 module_dict and auto-loading code, using __file__ instead of
1819 gdb.PYTHONDIR and reload/__import__ instead of exec.
1820 (GdbSetPythonDirectory): Replacing function of the same name
1821 from finish_python_initialization, using reload/__import__ instead
1822 of exec, as well as call auto_load_packages.
1823 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1824 gdb_python_module and not gdb_module.
1825 * python/python-internal.h (gdb_python_module): Declare.
1826 * python/python.c (gdb_python_module): New global.
1827 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1828 (_initialize_python): Rename gdb module to _gdb.
1829 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1830 (finish_python_initialization): Move Python code to
1831 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1832 __main__.
1833
1834 2012-09-13 Pedro Alves <palves@redhat.com>
1835
1836 * Makefile.in (COMMON_OBS): Add registry.o.
1837 * registry.c: New file.
1838 * registry.h (struct registry_container): Declare.
1839 (registry_data_callback): New typedef.
1840 (struct registry_data, struct registry_data_registration, struct
1841 registry_data_registry): New type.
1842 (register_data_with_cleanup, registry_alloc_data)
1843 (registry_callback_adaptor, registry_clear_data)
1844 (registry_container_free_data, registry_set_data, registry_data):
1845 Declare.
1846 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1847 the new common structures and functions.
1848 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1849 callback typedefs.
1850
1851 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1852
1853 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1854 there is an error inserting hardware breakpoints and use the
1855 error message from the target.
1856
1857 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1858 Catch this exception and print the error message contained within. Do not
1859 print the default hardware error breakpoint message in this case.
1860
1861 2012-09-12 Doug Evans <dje@google.com>
1862
1863 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1864 cu == NULL.
1865
1866 2012-09-11 Doug Evans <dje@google.com>
1867
1868 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1869 .gdb_index symbol attributes if there are none.
1870
1871 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1872
1873 * symtab.h (struct minimal_symbol) [has_size]: New field.
1874 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1875 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1876 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1877 minimal symbols if the symbol's size is actually known.
1878 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1879 of msymbol's size field. Add comment.
1880 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1881 SET_MSYMBOL_SIZE to set the minimal symbol size.
1882
1883 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1884
1885 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1886 minimal_symbol struct object, rather than setting some of its
1887 fields one by one.
1888
1889 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1890
1891 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1892 passed_a_ptr flag when displaying typedef types.
1893
1894 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1895
1896 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1897 the optimized_out flag is preserved.
1898
1899 2012-09-10 Anthony Green <green@moxielogic.com>
1900
1901 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1902 prologue changes in GCC.
1903
1904 2012-09-10 Keith Seitz <keiths@redhat.com>
1905
1906 PR gdb/13483
1907 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1908 (BOOL_CONVERSION_BADNESS): ... this.
1909 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1910 (rank_one_type): Allow all boolean conversions
1911 permitted by the standard.
1912
1913 2012-09-06 Tom Tromey <tromey@redhat.com>
1914
1915 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1916 Don't decref py_objfile.
1917
1918 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1919
1920 Do not enable -lmcheck by default when Python is enabled with
1921 threading support.
1922 * configure.ac: (python_has_threads) New variable, by testing
1923 if WITH_THREAD is defined in Python.h.
1924 Move --enable-lmcheck after --with-python.
1925 Do not enable -lmcheck by default if python_has_threads=yes.
1926 Warn if --enable-lmcheck and python_has_threads=yes.
1927 * configure: Regenerate.
1928
1929 2012-08-31 Yao Qi <yao@codesourcery.com>
1930
1931 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1932 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1933 Update some commands.
1934 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1935 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1936 to 1.
1937
1938 2012-08-31 Yao Qi <yao@codesourcery.com>
1939
1940 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1941
1942 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1943
1944 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1945
1946 2012-08-29 Doug Evans <dje@google.com>
1947
1948 * main.c (print_gdb_help): Remove reference to
1949 --use-deprecated-index-sections.
1950
1951 2012-08-28 Yao Qi <yao@codesourcery.com>
1952
1953 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1954 (init_cmds): Call add_setshow_uinteger_cmd for command
1955 'max-user-call-depth'.
1956 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1957 declaration of 'max_user_call_depth'.
1958 * frame.c (backtrace_limit): Add 'unsigned'.
1959 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1960 'limit'.
1961 * remote.c (remoteaddresssize): Add 'unsigned'.
1962 (remote_address_masked): Change local var 'address_size' to
1963 'unsigned'.
1964 (_initialize_remote): Call add_setshow_uinteger_cmd for
1965 'remoteaddresssize'.
1966 * top.c (history_size): Add 'unsigned'.
1967 (show_commands): Change local variables to 'unsigned'.
1968 (set_history_size_command): Don't check history_size is negative.
1969 Adjust the condition to call unstifle_history and set history_size
1970 to UNIT_MAX.
1971
1972 2012-08-28 Pedro Alves <palves@redhat.com>
1973
1974 PR gdb/14428
1975
1976 * infcmd.c (default_print_one_register_info): New, factored out
1977 from default_print_registers_info.
1978 (default_print_registers_info): Use it. Mark value unavailable if
1979 necessary.
1980 (registers_info): Print user registers with
1981 default_print_one_register_info.
1982
1983 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1984
1985 PR tui/14486
1986 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1987 is not NULL before referencing it.
1988
1989 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1992 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1993 original PC for it.
1994
1995 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1996 Jan Kratochvil <jan.kratochvil@redhat.com>
1997
1998 * auto-load.c (auto_load_objfile_script): Rename to ...
1999 (auto_load_objfile_script_1): ... here, change variable realname to
2000 parameter realname, document it, add return value, add variable retval.
2001 (auto_load_objfile_script): New function.
2002
2003 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2004
2005 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2006 followed by a whitespace.
2007
2008 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2009
2010 PR gdb/14494.
2011 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2012 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2013 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2014 here.
2015
2016 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
2017
2018 * memattr.c (create_mem_region): Fix memory region overlapping
2019 checking.
2020
2021 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2022
2023 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2024 with xmalloc/cleanup.
2025 * mt-tdep.c (mt_push_dummy_call): Likewise.
2026 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2027 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2028
2029 2012-08-24 Yao Qi <yao@codesourcery.com>
2030
2031 * jv-exp.y (push_expression_name): Add "." at the end of error
2032 message.
2033
2034 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2035
2036 Document how to return from "python-interactive" to GDB.
2037 * python/python.c (_initialize_python): Update documentation.
2038
2039 2012-08-23 Pedro Alves <palves@redhat.com>
2040
2041 * infrun.c (_initialize_infrun) <handle command help text>:
2042 Mention that multiple signals are supported.
2043
2044 2012-08-23 Pedro Alves <palves@redhat.com>
2045
2046 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2047 string.
2048
2049 2012-08-23 Yao Qi <yao@codesourcery.com>
2050
2051 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2052 (tfind_1): Don't call registers_changed, set_traceframe_num,
2053 and clear_traceframe_info.
2054 Call set_current_traceframe.
2055 (set_current_traceframe): call set_traceframe_num.
2056
2057 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2058
2059 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2060 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2061
2062 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2063
2064 Enable readline in Python in a GDB-specific way and block the
2065 standard Python readline module to prevent conflicts with GDB.
2066 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2067 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2068 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2069 * python/py-gdb-readline.c: New file.
2070 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2071 prototype.
2072 * python/python.c (_initialize_python): Call
2073 gdbpy_initialize_gdb_readline.
2074
2075 2012-08-22 Keith Seitz <keiths@redhat.com>
2076
2077 * defs.h: Include build-gnulib/config.h
2078
2079 2012-08-22 Joseph Myers <joseph@codesourcery.com>
2080
2081 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2082 and blx pc.
2083
2084 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2085
2086 Add a new "python-interactive" command that starts a standard
2087 Python interactive prompt with "pi" as alias, and add "py" as
2088 an alias to "python".
2089 * NEWS: Mention the new commands.
2090 * python/python.c (eval_python_command): New function.
2091 (python_interactive_command): For "python-interactive" with
2092 arguments, call eval_python_command. For "python-interactive"
2093 without arguments, call PyRun_InteractiveLoop.
2094 (_initialize_python): Add "python-interactive" command with
2095 "pi" as alias, and add "py" as an alias to "python".
2096
2097 2012-08-22 Tom Tromey <tromey@redhat.com>
2098
2099 * defs.h (quit_flag): Don't declare.
2100 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2101 (QUIT): Use new functions.
2102 * event-top.c (command_handler): Use clear_quit_flag.
2103 (handle_sigint): Use set_quit_flag.
2104 (async_request_quit): Use check_quit_flag. Don't check
2105 immediate_quit.
2106 * exceptions.c (throw_exception): Use clear_quit_flag.
2107 * main.c (captured_main): Use clear_quit_flag.
2108 * python/python.c (clear_quit_flag, set_quit_flag)
2109 (check_quit_flag): New functions.
2110 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2111 clear_quit_flag.
2112 * remote.c (remote_wait_as): Use check_quit_flag,
2113 clear_quit_flag.
2114 (remote_start_remote): Call QUIT.
2115 * symfile.c (load_progress): Use check_quit_flag.
2116 * top.c (command_loop): Use clear_quit_flag.
2117 (command_line_input): Call QUIT.
2118 * utils.c (quit_flag): Conditionally define.
2119 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2120 functions.
2121 (prompt_for_continue): Call QUIT. Use quit, not
2122 async_request_quit.
2123 * remote-mips.c (mips_expect_timeout): Call QUIT.
2124 * monitor.c (monitor_expect): Call QUIT.
2125
2126 2012-08-22 Tom Tromey <tromey@redhat.com>
2127
2128 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2129 (async_init_signals): Update.
2130 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2131 (SIGWINCH_HANDLER_BODY): Remove.
2132
2133 2012-08-22 Tom Tromey <tromey@redhat.com>
2134
2135 * jit.c (jit_object_close_impl): Don't malloc the objfile
2136 name.
2137 * objfiles.c (allocate_objfile): Don't malloc the objfile
2138 name.
2139 (free_objfile): Don't free the objfile name.
2140 * objfiles.h (struct objfile) <name>: Update comment.
2141 * symfile.c (reread_symbols): Fix reference counting. Don't
2142 malloc objfile name.
2143
2144 2012-08-22 Tom Tromey <tromey@redhat.com>
2145
2146 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2147 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2148 (symfile_bfd_open): Likewise.
2149 (generic_load): Likewise.
2150 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2151 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2152 gdb_bfd_open.
2153 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2154 Use gdb_bfd_open.
2155 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2156 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2157 (pmon_load_fast): Likewise.
2158 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2159 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2160 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2161 (macho_check_dsym): Likewise.
2162 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2163 (m32r_upload_command): Likewise.
2164 * gdb_bfd.h (gdb_bfd_cache): Declare.
2165 * gdb_bfd.c (struct gdb_bfd_data): New.
2166 (gdb_bfd_cache): New global.
2167 (struct gdb_bfd_cache_search): New.
2168 (hash_bfd): New function.
2169 (eq_bfd): Likewise.
2170 (gdb_bfd_open): Likewise.
2171 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2172 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2173 gdb_bfd_data.
2174 * exec.c (exec_file_attach): Use gdb_bfd_open.
2175 * dsrec.c (load_srec): Use gdb_bfd_open.
2176
2177 2012-08-22 Tom Tromey <tromey@redhat.com>
2178
2179 * dwarf2read.c (macro_start_file): Update.
2180 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2181 (free_objfile_per_bfd_storage): Destroy macro_cache.
2182 (allocate_objfile, free_objfile): Update.
2183 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2184 New field.
2185 (struct objfile) <macro_cache>: Remove.
2186 * symfile.c (reread_symbols): Update.
2187 * symmisc.c (print_symbol_bcache_statistics): Update.
2188 (print_objfile_statistics): Update.
2189
2190 2012-08-22 Tom Tromey <tromey@redhat.com>
2191
2192 * elfread.c (elf_symtab_read): Update.
2193 * objfiles.c (objfiles_bfd_data): New global.
2194 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2195 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2196 (allocate_objfile, free_objfile): Update.
2197 (_initialize_objfiles): Initialize objfiles_bfd_data.
2198 * objfiles.h (struct objfile_per_bfd_storage): New.
2199 (struct objfile) <per_bfd>: New field.
2200 <filename_cache>: Remove.
2201 (set_objfile_per_bfd): Declare.
2202 * symfile.c (reread_symbols): Update. Call
2203 set_objfile_per_bfd.
2204 (allocate_symtab): Update.
2205 * symmisc.c (print_symbol_bcache_statistics): Update.
2206 (print_objfile_statistics): Print the size of the BFD obstack.
2207
2208 2012-08-22 Tom Tromey <tromey@redhat.com>
2209
2210 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2211 * gdb_bfd.c: Use DEFINE_REGISTRY.
2212 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2213 (gdb_bfd_ref): Call bfd_alloc_data.
2214 (gdb_bfd_unref): Call bfd_free_data.
2215
2216 2012-08-22 Tom Tromey <tromey@redhat.com>
2217
2218 * registry.h (struct registry_fields): New.
2219 (REGISTRY_FIELDS): Redefine.
2220 (REGISTRY_ACCESS_FIELD): New macro.
2221 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2222 functions.
2223
2224 2012-08-22 Tom Tromey <tromey@redhat.com>
2225
2226 * auto-load.c (_initialize_auto_load): Update.
2227 * solib-svr4.c (_initialize_svr4_solib): Update
2228 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2229 * solib-darwin.c (_initialize_darwin_solib): Update.
2230 * registry.h: New file.
2231 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2232 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2233 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2234 (register_program_space_data_with_cleanup)
2235 (register_program_space_data, program_space_alloc_data)
2236 (clear_program_space_data, set_program_space_data)
2237 (program_space_data): Don't declare.
2238 * progspace.c: Use DEFINE_REGISTRY.
2239 (struct program_space_data, struct
2240 program_space_data_registration, struct
2241 program_space_data_registry, program_space_data_registry)
2242 (register_program_space_data_with_cleanup)
2243 (register_program_space_data, program_space_alloc_data)
2244 (program_space_free_data, clear_program_space_data)
2245 (set_program_space_data, program_space_data): Remove.
2246 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2247 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2248 (register_objfile_data_with_cleanup, register_objfile_data)
2249 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2250 declare.
2251 * objfiles.c: Use DEFINE_REGISTRY.
2252 (struct objfile_data, struct objfile_data_registration, struct
2253 objfile_data_registry, objfile_data_registry)
2254 (register_objfile_data_with_cleanup, register_objfile_data)
2255 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2256 (set_objfile_data, objfile_data): Remove.
2257 (_initialize_objfiles): Update.
2258 * jit.c (_initialize_jit): Update.
2259 * inflow.c (_initialize_inflow): Update.
2260 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2261 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2262 (register_inferior_data_with_cleanup, register_inferior_data)
2263 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2264 declare.
2265 * inferior.c: Use DEFINE_REGISTRY.
2266 (struct inferior_data, struct inferior_data_registration, struct
2267 inferior_data_registry, inferior_data_registry)
2268 (register_inferior_data_with_cleanup, register_inferior_data)
2269 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2270 (set_inferior_data, inferior_data): Remove.
2271 * auxv.c (_initialize_auxv): Update.
2272 * ada-lang.c (_initialize_ada_language): Update.
2273 * breakpoint.c (_initialize_breakpoint): Update.
2274 * i386-nat.c (i386_use_watchpoints): Update.
2275
2276 2012-08-22 Tom Tromey <tromey@redhat.com>
2277
2278 * exec.c (exec_close, exec_file_attach): Update.
2279 (add_to_section_table): Initialize 'key' field.
2280 (add_target_sections, remove_target_sections): Add 'key' argument.
2281 * exec.h (add_target_sections, remove_target_sections): Add
2282 'key' argument.
2283 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2284 (reload_shared_libraries_1): Update.
2285 * target.h (struct target_section) <key>: New field.
2286
2287 2012-08-22 Tom Tromey <tromey@redhat.com>
2288
2289 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2290
2291 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2292
2293 * symfile.c (allocate_symtab): Use host_address_to_string
2294 function instead of cast of pointer to long which is not
2295 compatible with x86_64-w64-mingw32 build.
2296
2297 2012-08-19 Andrew Pinski <apinski@cavium.com>
2298
2299 * mips-tdep.c (is_octeon): New function.
2300 (is_octeon_bbit_op): New function.
2301 (mips32_next_pc): Handle Octeon's bbit instructions.
2302 (mips32_instruction_has_delay_slot): Likewise.
2303
2304 2012-08-19 Andrew Pinski <apinski@cavium.com>
2305
2306 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2307 before the function.
2308
2309 2012-08-19 Andrew Pinski <apinski@cavium.com>
2310
2311 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2312
2313 2012-08-19 Keith Seitz <keiths@redhat.com>
2314
2315 PR c++/14365
2316 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2317 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2318
2319 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2320
2321 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2322 The typo broke "make TAGS".
2323
2324 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2325
2326 GDB 7.5 released.
2327
2328 2012-08-17 Keith Seitz <keiths@redhat.com>
2329
2330 PR c++/13356
2331 * gdbtypes.c (strict_type_checking): New variable.
2332 (show_strict_type_checking): New function.
2333 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2334 if strict type checking is disabled.
2335 (_initialize_gdbtypes): Add "check type" subcommand.
2336 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2337
2338 2012-08-17 Keith Seitz <keiths@redhat.com>
2339
2340 * language.h (type_mode): Remove.
2341 (type_check): Remove.
2342 (struct language_defn): Remove la_type_check.
2343 (STRICT_TYPE): Remove unused macro.
2344 (type_error): Remove.
2345 * language.c (set_type_range_case): Renamed to ...
2346 (set_range_case): ... this. Update all callers.
2347 Remove type_mode/type_check.
2348 (type_mode): Remove.
2349 (type_check): Remove.
2350 (show_type_command): Remove.
2351 (set_type_command): Remove.
2352 (language_info): Remove type checking output.
2353 (type_error): Remove unused function.
2354 (range_error): Update comment.
2355 (unknown_language_defn): Remove la_type_check.
2356 (auto_language_defn): Likewise.
2357 (local_language_defn): Likewise.
2358 (_initialize_language): Remove "check type" subcommand.
2359 * ada-lang.c (ada_language_defn): Remove la_type_check.
2360 * c-lang.c (c_language_defn): Likewise.
2361 (cplus_language_defn): Likewise.
2362 (asm_language_defn): Likewise.
2363 (minimal_language_defn): Likewise.
2364 * d-lang.c (d_language_defn): Likewise.
2365 * f-lang.c (f_language_defn): Likewise.
2366 * go-lang.c (go_language_defn): Likewise.
2367 * jv-lang.c (java_language_defn): Likewise.
2368 * m2-lang.c (m2_language_defn): Likewise.
2369 * objc-lang.c (objc_language_defn): Likewise.
2370 * opencl-lang.c (opencl_language_defn): Likewise.
2371 * p-lang.c (pascal_language_defn): Likewise.
2372
2373 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2374
2375 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2376
2377 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2378
2379 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2380 New function.
2381 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2382 using the regache. Use ia64_hpux_get_register_from_save_state_t
2383 to access the bsp and bspstore registers if not.
2384
2385 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2386
2387 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2388 * breakpoint.c (detach_breakpoints): Change pid parameter into
2389 a ptid. Adjust code accordingly.
2390 * infrun.c (handle_inferior_event): Delete variable child_pid.
2391 Update call to detach_breakpoints to pass the child ptid for
2392 fork events.
2393 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2394 assert that inferior_ptid's lwp is zero.
2395 (linux_handle_extended_wait): Update call to detach_breakpoints.
2396 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2397 detach_breakpoints.
2398
2399 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2400
2401 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2402 parent, only call detach_breakpoints if tts.tts_event ==
2403 TTEVT_VFORK.
2404
2405 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2406
2407 * dwarf2-frame.c (dwarf2_frame_cache): Use
2408 get_frame_address_in_block instead of get_frame_pc as
2409 the bound for executing the frame's FDE.
2410
2411 2012-08-16 Yao Qi <yao@codesourcery.com>
2412
2413 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2414 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2415 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2416 (c_type_print_varspec_suffix): Likewise.
2417 * eval.c (evaluate_subexp_standard): Likewise.
2418 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2419 (f_type_print_varspec_suffix): Likewise.
2420 * gdbtypes.c (is_scalar_type): Likewise.
2421 (recursive_dump_type): Likewise.
2422 * infcall.c (value_arg_coerce): Likewise.
2423 * m2-valprint.c (m2_val_print): Likewise.
2424 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2425 (pascal_type_print_varspec_suffix): Likewise.
2426 (pascal_type_print_base): Likewise.
2427 * p-valprint.c (pascal_val_print): Likewise.
2428 (pascal_val_print): Likewise.
2429 * valops.c (value_slice): Likewise.
2430 * valprint.c (scalar_type_p): Likewise.
2431 * valarith.c (value_bitstring_subscript): Remove.
2432 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2433 Remove comment on TYPE_CODE_BITSTRING.
2434
2435 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2436 TYPE_CODE_BITSTRING.
2437
2438 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2439 slot 0.
2440
2441 2012-08-16 Yao Qi <yao@codesourcery.com>
2442
2443 * tracepoint.c (trace_find_none_command): Remove.
2444 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2445
2446 2012-08-16 Yao Qi <yao@codesourcery.com>
2447
2448 * remote.c (handle_notification): Remove parameter 'length'.
2449 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2450
2451 2012-08-15 Keith Seitz <keiths@redhat.com>
2452
2453 * gdbtypes.c (opaque_type_resolution): Make static.
2454 Add missing comment.
2455 (overload_debug): Add missing comment.
2456 (show_opaque_type_resolution): Likewise.
2457 (show_overload_debug): Likewise.
2458 (print_bit_vector): Remove unnecessary forward declaration.
2459 (print_arg_types): Likewise.
2460 (dump_fn_fieldlists): Likewise.
2461 (print_cplus_stuff): Likewise.
2462
2463 2012-08-15 Tom Tromey <tromey@redhat.com>
2464
2465 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2466 (gdb_bfd_ref): Initialize new field.
2467 (gdb_bfd_unref): Unref the archive BFD.
2468 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2469 parent archive.
2470
2471 2012-08-15 Tom Tromey <tromey@redhat.com>
2472
2473 PR python/14387:
2474 * python/py-bpevent.c (create_breakpoint_event_object): Update
2475 comment.
2476 * python/py-event.c (evpy_add_attribute): Update comment.
2477 * python/py-exitedevent.c (create_exited_event_object): Fix
2478 reference counting and error handling.
2479 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2480 Fix reference counting.
2481 * python/py-signalevent.c (create_signal_event_object): Fix
2482 reference counting and error handling.
2483 * python/py-stopevent.c (emit_stop_event): Fix reference
2484 counting.
2485 * python/py-threadevent.c (get_event_thread): Return a
2486 borrowed reference.
2487 * python/py-type.c (convert_field): Fix reference counting.
2488
2489 2012-08-15 Tom Tromey <tromey@redhat.com>
2490
2491 * dwarf2read.c (dwarf_decode_macro_bytes)
2492 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2493 as hash key.
2494
2495 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2496
2497 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2498 stepi, nexti, finish, next, step, jump, and continue commands.
2499 * infrun.c (_initialize_infrun): Update help text for the handle
2500 command.
2501
2502 2012-08-14 Doug Evans <dje@google.com>
2503
2504 * gdbtypes.c (struct extra): Delete, unused.
2505
2506 * gdbtypes.c: Whitespace cleanup.
2507 (address_space_name_to_int): Remove "extern" from definition.
2508 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2509
2510 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2511 TYPE_POINTER_TYPE (type).
2512
2513 2012-08-14 Gary Benson <gbenson@redhat.com>
2514
2515 * solib-svr4.c (svr4_free_library_list): Use free_so.
2516
2517 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2518
2519 * .gitignore: Add go-exp.c.
2520
2521 2012-08-13 Doug Evans <dje@google.com>
2522
2523 * value.c (show_convenience): Tweak comment.
2524 (_initialize_values): Mention convenience functions in the help text
2525 for "show convenience".
2526
2527 2012-08-13 Yao Qi <yao@codesourcery.com>
2528
2529 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2530 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2531 TERNOP_SLICE_COUNT.
2532 * eval.c (evaluate_subexp_standard): Likewise.
2533 * expprint.c (print_subexp_standard): Likewise.
2534 (dump_subexp_body_standard): Likewise.
2535 * parse.c (operator_length_standard): Likewise.
2536
2537 2012-08-13 Yao Qi <yao@codesourcery.com>
2538
2539 * std-operator.def: Remove OP_BITSTRING.
2540 * breakpoint.c (watchpoint_exp_is_const): Update.
2541 * eval.c (evaluate_subexp_standard): Remove handling to
2542 OP_BITSTRING.
2543 * expprint.c (print_subexp_standard): Likewise.
2544 (dump_subexp_body_standard): Likewise.
2545 * parse.c (operator_length_standard): Likewise.
2546 * valops.c (value_bitstring): Remove.
2547 * value.h: Remove the declaration of 'value_bitstring'.
2548
2549 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2550
2551 * linespec.c (find_methods): Remove unused variables `i1' and
2552 `name_len'.
2553 (decode_line_full): Likewise for `arg_start'.
2554
2555 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2556
2557 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2558 (zlib_decompress_section): Likewise for `section_data'.
2559 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2560
2561 2012-08-10 Doug Evans <dje@google.com>
2562
2563 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2564 * NEWS: Document them.
2565 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2566 function/strfns.py.
2567 * python/py-type.c (typy_array_1): New function.
2568 (typy_array): Call it.
2569 (typy_vector): New function.
2570 (type_object_methods): Add "vector".
2571 * python/lib/gdb/function/__init__.py: New file.
2572 * python/lib/gdb/function/strfns.py: New file.
2573
2574 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2575
2576 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2577 for TYPE_FIELD_BITPOS.
2578 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2579
2580 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2581
2582 PR cli/10436:
2583 * common/vec.h (VEC_merge): Define.
2584 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2585 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2586 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2587 * completer.c: Include gdb_signals.h.
2588 (signal_completer): Define.
2589 * completer.h (signal_completer): Add prototype.
2590 * infcmd.c (_initialize_infcmd): Assign the command
2591 completer for "signal" to handle_completer.
2592 * infrun.c: Include completer.h.
2593 (handle_completer): Define.
2594 (_initialize_infrun): Declare a new local variable c. Store the
2595 result of add_com("handle") to it. Assign the command
2596 completer for "handle" to handle_completer.
2597
2598 2012-08-09 Yao Qi <yao@codesourcery.com>
2599
2600 * cli/cli-decode.c (set_cmd_prefix): New.
2601 (lookup_cmd_for_prefixlist): New.
2602 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2603 of each cmd_list_element in *prefixlist.
2604 (add_setshow_cmd_full): set_cmd_prefix.
2605 (add_alias_cmd): Likewise.
2606 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2607 Declare 'auto_boolean_enums'.
2608 * cli/cli-setshow.c: Include "observer.h".
2609 (notify_command_param_changed_p): New.
2610 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2611 Remove 'static'.
2612 (do_setshow_command): Split it to ...
2613 (do_set_command, do_show_command): ... them. New.
2614 (do_set_command): Call observer_notify_command_param_changed if
2615 notify_command_param_changed_p returns true.
2616 (cmd_show_list): Caller update.
2617 * auto-load.c (set_auto_load_cmd): Likewise.
2618 * remote.c (show_remote_cmd): Likewise.
2619 * cli/cli-setshow.h: Update declarations.
2620 * top.c (execute_command): Call do_set_command and do_show_command.
2621
2622 * NEWS: Mention new MI notification.
2623 * mi/mi-interp.c: Declare mi_command_param_changed.
2624 (mi_interpreter_init): Attach mi_command_param_changed to
2625 observer command_param_changed.
2626 (mi_command_param_changed): New.
2627 Remove mi_suppress_breakpoint_notifications.
2628 Define global variable mi_suppress_notification.
2629 (mi_breakpoint_created): Update.
2630 (mi_breakpoint_deleted): Likewise.
2631 (mi_breakpoint_modified): Likewise.
2632 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2633 'gdb-set' and set mi_suppress_notification.
2634 * mi/mi-main.h: (mi_suppress_notification): New struct.
2635
2636 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2637 Jan Kratochvil <jan.kratochvil@redhat.com>
2638
2639 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2640
2641 2012-08-09 Yao Qi <yao@codesourcery.com>
2642
2643 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2644 (skiplist): Move it to skip.c.
2645 (init_cmd_lists): Remove code setting enablebreaklist and
2646 skiplist to NULL.
2647 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2648 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2649 skiplist.
2650 * gdbcmd.h: Likewise.
2651 * skip.c (_initialize_step_skip): Move 'skiplist' from
2652 cli/cli-cmds.c.
2653
2654 2012-08-09 Yao Qi <yao@codesourcery.com>
2655
2656 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2657 * gnu-nat.c, symfile.c: Likewise.
2658
2659 2012-08-08 Aaron Gamble <agamble@google.com>
2660
2661 * utils.c (prompt_for_continue_wait_time): New static global.
2662 (make_command_stats_cleanup): Initialize it.
2663 (report_command_stats): Subtract time waiting for user.
2664 (prompt_for_continue): Track time waiting for user.
2665 (defaulted_query): Track time waiting for user.
2666
2667 2012-08-08 Doug Evans <dje@google.com>
2668
2669 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2670 UNOP_MEMVAL_TYPE.
2671 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2672 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2673 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2674 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2675 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2676 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2677 elt.
2678 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2679 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2680 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2681 (dump_prefix_expression): Handle OP_TYPE.
2682
2683 2012-08-08 Keith Seitz <keiths@redhat.com>
2684
2685 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2686 addr_start.
2687
2688 2012-08-08 Doug Evans <dje@google.com>
2689
2690 * linux-thread-db.c: #include "gdb_vecs.h".
2691 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2692 updated.
2693 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2694 (thread_db_load_search): Use a vector to iterate over path elements.
2695 Handle text appearing after "$pdir".
2696
2697 * gdb_string.h: Moved to ...
2698 * common/gdb_string.h: ... here.
2699 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2700 gdb_string.h and gdb_assert.h.
2701
2702 2012-08-08 Yao Qi <yao@codesourcery.com>
2703
2704 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2705 (tic6x_value_to_register): Likewise.
2706 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2707 and set_gdbarch_value_to_register.
2708
2709 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2710 Jean-Marc Saffroy <saffroy@gmail.com>
2711
2712 PR 11804
2713 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2714 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2715 * gcore.c (gcore_create_callback): New function comment. Add modified
2716 parameter. Only write modified regions. Set SEC_READONLY exactly
2717 according to MODIFIED.
2718 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2719 the passed modified value to FUNC.
2720 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2721 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2722 first. New variables modified and has_anonymous. Parse the lines of
2723 smaps file. Add the passed MODIFIED value to FUNC.
2724 * procfs.c (find_memory_regions_callback): Add the passed modified
2725 value.
2726
2727 2012-08-06 Tom Tromey <tromey@redhat.com>
2728
2729 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2730 (dwarf2_frame_cache): Use it.
2731 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2732 cache initialization constraint.
2733
2734 2012-08-06 Tom Tromey <tromey@redhat.com>
2735
2736 PR python/14386:
2737 * varobj.c (update_dynamic_varobj_children): Don't call
2738 PyIter_Check.
2739
2740 2012-08-06 Tom Tromey <tromey@redhat.com>
2741
2742 PR cli/14392:
2743 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2744
2745 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2746
2747 * NEWS: New entry for 'cd' default parameters.
2748 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2749
2750 2012-08-03 Tom Tromey <tromey@redhat.com>
2751
2752 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2753 return.
2754
2755 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2756
2757 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2758 to attempting lseek/write.
2759 (inf_child_fileio_pread): Likewise for pread.
2760
2761 2012-08-02 Yao Qi <yao@codesourcery.com>
2762
2763 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2764 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2765 add_setshow_zinteger_cmd.
2766 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2767 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2768 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2769 instead of add_setshow_zinteger_cmd.
2770 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2771 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2772 instead of add_setshow_zinteger_cmd.
2773 * frame.c (frame_debug): Add 'unsigned'.
2774 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2775 add_setshow_zinteger_cmd.
2776 * frame.h: Update the declaration of 'frame_debug'.
2777 * gdbtypes.c (overload_debug): Add 'unsigned'.
2778 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2779 add_setshow_zinteger_cmd.
2780 * inferior.h: Update declaration of 'debug_infrun'.
2781 * infrun.c (debug_infrun): Add 'unsigned'.
2782 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2783 add_setshow_zinteger_cmd.
2784 * jit.c (jit_debug): Add 'unsigned'.
2785 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2786 add_setshow_zinteger_cmd.
2787 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2788 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2789 instead of add_setshow_zinteger_cmd.
2790 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2791 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2792 add_setshow_zinteger_cmd.
2793 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2794 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2795 instead of add_setshow_zinteger_cmd.
2796 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2797 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2798 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2799 intead of add_setshow_zinteger_cmd.
2800 * mips-tdep.c (mips_debug): Add 'unsigned'.
2801 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2802 instead of add_setshow_zinteger_cmd.
2803 * monitor.c (monitor_debug): Add 'unsigned'.
2804 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2805 add_setshow_zinteger_cmd.
2806 * observer.c (observer_debug): Add 'unsigned'.
2807 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2808 add_setshow_zinteger_cmd.
2809 * parse.c (expressiondebug): Add 'unsigned'.
2810 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2811 add_setshow_zinteger_cmd.
2812 * record.c (record_debug): Add 'unsigned'.
2813 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2814 add_setshow_zinteger_cmd.
2815 * record.h: Update the declaration of 'record_debug'.
2816 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2817 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2818 add_setshow_zinteger_cmd.
2819 * serial.c (global_serial_debug_p): Add 'unsigned'.
2820 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2821 add_setshow_zinteger_cmd.
2822 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2823 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2824 add_setshow_zinteger_cmd.
2825 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2826 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2827 add_setshow_zinteger_cmd.
2828 * target.c (targetdebug): Add 'unsigned'.
2829 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2830 add_setshow_zinteger_cmd.
2831 * valops.c (overload_debug): Add 'unsigned'.
2832 * varobj.c (varobjdebug): Add 'unsigned'.
2833 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2834 add_setshow_zinteger_cmd.
2835 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2836 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2837 instead of add_setshow_zinteger_cmd.
2838
2839 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2840 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2841 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2842 instead of add_setshow_zinteger_cmd.
2843 * gdbarch.c, gdbarch.h: Re-generated.
2844
2845 2012-08-02 Yao Qi <yao@codesourcery.com>
2846
2847 * nto-tdep.c: Don't include cli/cli-decode.h and
2848 cli/cli-cmds.h.
2849 (_initialize_nto_tdep): Remove.
2850 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2851 Remove field.
2852 Remove macro nto_internal_debugging.
2853
2854 2012-08-01 Richard Henderson <rth@redhat.com>
2855
2856 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2857 (mep-*-*) [gdb_target_obs]: Likewise.
2858
2859 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2860
2861 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2862 linux_get_siginfo_type.
2863
2864 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2867 AT_ENTRY_POINT.
2868 (call_function_by_hand) <ON_STACK>: Call write_memory with
2869 gdbarch_breakpoint_from_pc, if possible.
2870 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2871 here.
2872
2873 2012-07-31 Yao Qi <yao@codesourcery.com>
2874
2875 * tracepoint.c: Add 'static' for some variables.
2876
2877 2012-07-31 Yao Qi <yao@codesourcery.com>
2878
2879 * go32-nat.c: Declare _initialize_go32_nat.
2880 * ser-go32.c: Declare _initialize_ser_dos.
2881 * top.c (do_chdir_cleanup): Add 'static'.
2882
2883 2012-07-30 Keith Seitz <keiths@redhat.com>
2884
2885 * linespec.c (linespec_lex_number): A number followed
2886 by quotes is a valid number, too.
2887
2888 2012-07-30 Tom Tromey <tromey@redhat.com>
2889
2890 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2891
2892 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2893
2894 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2895 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2896
2897 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2898
2899 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2900 invalid or reevaluated to prevent prevent references to possibly
2901 delete'd type objects being left in the varobj.
2902
2903 2012-07-27 Tom Tromey <tromey@redhat.com>
2904 Jan Kratochvil <jan.kratochvil@redhat.com>
2905
2906 * copying.awk: Print buffer-read-only and vi ro markers.
2907 * copying.c: Rebuild.
2908 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2909 * gdbarch.c, gdbarch.h: Rebuild.
2910 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2911 buffer-read-only and vi ro markers.
2912 * features/arm-with-iwmmxt.c: Rebuild.
2913 * features/arm-with-m-fpa-layout.c: Rebuild.
2914 * features/arm-with-m-vfp-d16.c: Rebuild.
2915 * features/arm-with-m.c: Rebuild.
2916 * features/arm-with-neon.c: Rebuild.
2917 * features/arm-with-vfpv2.c: Rebuild.
2918 * features/arm-with-vfpv3.c: Rebuild.
2919 * features/i386/amd64-avx-linux.c: Rebuild.
2920 * features/i386/amd64-avx.c: Rebuild.
2921 * features/i386/amd64-linux.c: Rebuild.
2922 * features/i386/amd64.c: Rebuild.
2923 * features/i386/i386-avx-linux.c: Rebuild.
2924 * features/i386/i386-avx.c: Rebuild.
2925 * features/i386/i386-linux.c: Rebuild.
2926 * features/i386/i386-mmx-linux.c: Rebuild.
2927 * features/i386/i386-mmx.c: Rebuild.
2928 * features/i386/i386.c: Rebuild.
2929 * features/i386/x32-avx-linux.c: Rebuild.
2930 * features/i386/x32-avx.c: Rebuild.
2931 * features/i386/x32-linux.c: Rebuild.
2932 * features/i386/x32.c: Rebuild.
2933 * features/mips-dsp-linux.c: Rebuild.
2934 * features/mips-linux.c: Rebuild.
2935 * features/mips64-dsp-linux.c: Rebuild.
2936 * features/mips64-linux.c: Rebuild.
2937 * features/rs6000/powerpc-32.c: Rebuild.
2938 * features/rs6000/powerpc-32l.c: Rebuild.
2939 * features/rs6000/powerpc-403.c: Rebuild.
2940 * features/rs6000/powerpc-403gc.c: Rebuild.
2941 * features/rs6000/powerpc-405.c: Rebuild.
2942 * features/rs6000/powerpc-505.c: Rebuild.
2943 * features/rs6000/powerpc-601.c: Rebuild.
2944 * features/rs6000/powerpc-602.c: Rebuild.
2945 * features/rs6000/powerpc-603.c: Rebuild.
2946 * features/rs6000/powerpc-604.c: Rebuild.
2947 * features/rs6000/powerpc-64.c: Rebuild.
2948 * features/rs6000/powerpc-64l.c: Rebuild.
2949 * features/rs6000/powerpc-7400.c: Rebuild.
2950 * features/rs6000/powerpc-750.c: Rebuild.
2951 * features/rs6000/powerpc-860.c: Rebuild.
2952 * features/rs6000/powerpc-altivec32.c: Rebuild.
2953 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2954 * features/rs6000/powerpc-altivec64.c: Rebuild.
2955 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2956 * features/rs6000/powerpc-cell32l.c: Rebuild.
2957 * features/rs6000/powerpc-cell64l.c: Rebuild.
2958 * features/rs6000/powerpc-e500.c: Rebuild.
2959 * features/rs6000/powerpc-e500l.c: Rebuild.
2960 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2961 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2962 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2963 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2964 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2965 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2966 * features/rs6000/powerpc-vsx32.c: Rebuild.
2967 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2968 * features/rs6000/powerpc-vsx64.c: Rebuild.
2969 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2970 * features/rs6000/rs6000.c: Rebuild.
2971 * features/s390-linux32.c: Rebuild.
2972 * features/s390-linux32v1.c: Rebuild.
2973 * features/s390-linux32v2.c: Rebuild.
2974 * features/s390-linux64.c: Rebuild.
2975 * features/s390-linux64v1.c: Rebuild.
2976 * features/s390-linux64v2.c: Rebuild.
2977 * features/s390x-linux64.c: Rebuild.
2978 * features/s390x-linux64v1.c: Rebuild.
2979 * features/s390x-linux64v2.c: Rebuild.
2980 * features/tic6x-c62x-linux.c: Rebuild.
2981 * features/tic6x-c62x.c: Rebuild.
2982 * features/tic6x-c64x-linux.c: Rebuild.
2983 * features/tic6x-c64x.c: Rebuild.
2984 * features/tic6x-c64xp-linux.c: Rebuild.
2985 * features/tic6x-c64xp.c: Rebuild.
2986
2987 2012-07-27 Tom Tromey <tromey@redhat.com>
2988
2989 * c-exp.y (classify_name): Avoid assignment in condition.
2990
2991 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2992
2993 * amd64-windows-tdep.c: Include "frame.h".
2994 (amd64_windows_skip_trampoline_code): New function.
2995 (amd64_windows_init_abi): Add trampoline registration.
2996
2997 2012-07-27 Yao Qi <yao@codesourcery.com>
2998
2999 * tracepoint.c (cur_traceframe_number): Remove.
3000 (set_tfile_traceframe): Remove.
3001 (tfile_trace_find, tfile_fetch_registers): Update callers.
3002 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3003 (tfile_open, tfile_trace_find): Likewise.
3004
3005 2012-07-27 Yao Qi <yao@codesourcery.com>
3006
3007 * thread.c (switch_to_thread): Don't call registers_changed.
3008
3009 2012-07-26 Tom Tromey <tromey@redhat.com>
3010
3011 * Makefile.in (SFILES): Remove objc-exp.y.
3012 (YYFILES): Remove objc-exp.c.
3013 (YYOBJ): Remove objc-exp.o.
3014 (local-maintainer-clean): Don't mention objc-exp.c.
3015 * c-exp.y: Include objc-lang.h.
3016 (%union) <class>: New field.
3017 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3018 (exp): Clone subscript production for OBJC_LBRAC. Add various
3019 Objective C productions.
3020 (msglist, msgarglist, msgarg): New productions.
3021 (array_mod, func_mod, operator): Clone productions for
3022 OBJC_LBRAC.
3023 (parse_string_or_char): Handle '@' strings.
3024 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3025 (classify_name): Check la_name_of_this. Recognize ObjC class
3026 names.
3027 * objc-exp.y: Remove.
3028 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3029 * objc-lang.h (objc_parse, objc_error): Don't declare.
3030
3031 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3032
3033 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3034
3035 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3038 and decrement.
3039
3040 2012-07-26 Tom Tromey <tromey@redhat.com>
3041
3042 * copying.c: Rebuild.
3043 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3044 'no_class'.
3045
3046 2012-07-26 Tom Tromey <tromey@redhat.com>
3047
3048 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3049 immediate_quit.
3050 (print_objfile_statistics): Likewise.
3051 (maintenance_print_symbols): Likewise.
3052 (maintenance_print_msymbols): Likewise.
3053 (maintenance_print_objfiles): Likewise.
3054 * psymtab.c (print_partial_symbols): Call QUIT.
3055 (maintenance_print_psymbols): Likewise. Don't modify
3056 immediate_quit.
3057 * copying.c (show_copying_command): Don't modify immediate_quit.
3058 (show_warranty_command): Likewise.
3059 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3060
3061 2012-07-26 Keith Seitz <keiths@redhat.com>
3062
3063 * linespec.c (linespec_lexer_lex_number): The input
3064 is also a valid number if the next character is a comma
3065 or colon.
3066
3067 2012-07-26 Joel Brobecker <brobecker@adacore.com>
3068
3069 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3070 configure options.
3071
3072 2012-07-26 Tristan Gingold <gingold@adacore.com>
3073
3074 * machoread.c: Include gdb_bfd.h.
3075
3076 2012-07-26 Tristan Gingold <gingold@adacore.com>
3077
3078 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3079 offset.
3080
3081 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3082
3083 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3084 SIZE to size_t.
3085 (dwarf2_evaluate_loc_desc): Likewise.
3086 (dwarf2_loc_desc_needs_frame): Likewise.
3087 (locexpr_describe_location_1): Likewise.
3088 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3089 size_t.
3090 (struct dwarf2_loclist_baton): Likewise.
3091 * dwarf2read.c (struct dwarf_block): Likewise.
3092 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3093 (decode_locdesc): Expand SIZE and I to size_t.
3094
3095 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3096
3097 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3098
3099 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3100
3101 * doublest.c (convert_doublest_to_floatformat): If the exponent
3102 is too small, treat the value as zero. If the exponent is too
3103 large, treat the value as infinity.
3104
3105 2012-07-25 Joel Brobecker <brobecker@adacore.com>
3106
3107 * configure.ac: Add --enable-lmcheck configure option.
3108 * configure: Regenerate.
3109
3110 2012-07-25 Tom Tromey <tromey@redhat.com>
3111
3112 * NEWS: Mention maint info bfds.
3113 * gdb_bfd.c (all_bfds): New global.
3114 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3115 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3116 New functions.
3117
3118 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3119
3120 * configure.tgt: Add v850*-*-rtems*.
3121
3122 2012-07-25 Tom Tromey <tromey@redhat.com>
3123
3124 * macrotab.c (macro_bcache_str): Remove cast.
3125
3126 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
3127
3128 * linespec.c (linespec_lexer_lex_number): Update comments,
3129 change the return and add check to make sure the input is
3130 the decimal numbers.
3131 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3132 false, call linespec_lexer_lex_string.
3133
3134 2012-07-24 Tom Tromey <tromey@redhat.com>
3135
3136 * symfile.c (symbol_file_add): Don't open BFD twice.
3137
3138 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
3139
3140 * breakpoint.c (create_breakpoint): Store condition for pending
3141 breakpoints.
3142
3143 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3144
3145 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3146 (m68k_return_value): Handle complex types like structures.
3147 (m68k_svr4_return_value): Likewise.
3148
3149 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3150
3151 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3152 parameters to bfd_get_section_name.
3153
3154 2012-07-24 Yao Qi <yao@codesourcery.com>
3155
3156 * cli/cli-setshow.c: Handle case 'var_uinteger'
3157 and 'var_zuninteger' together. Handle case 'var_integer' and
3158 'var_zinteger' together.
3159
3160 2012-07-23 Keith Seitz <keiths@redhat.com>
3161
3162 * linespec.c (convert_linespec_to_sal): Don't add
3163 any symbols to the result vector if symbol_to_sal
3164 returns zero.
3165
3166 2012-07-23 Keith Seitz <keiths@redhat.com>
3167
3168 * linespec.c (decode_objc): Record the function name
3169 in the linespec.
3170
3171 2012-07-23 Tom Tromey <tromey@redhat.com>
3172
3173 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3174 counting.
3175 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3176 (map_vmap): Acquire a reference to the BFD.
3177
3178 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3179
3180 * p-valprint.c (pascal_object_print_value): Replace potentially
3181 unsafe alloca with xmalloc/xfree.
3182 * valops.c (search_struct_method): Likewise.
3183
3184 2012-07-23 Tom Tromey <tromey@redhat.com>
3185
3186 * solib-svr4.c (enable_break): Update.
3187 * bfd-target.h (target_bfd_reopen): Update documentation.
3188
3189 2012-07-23 Tom Tromey <tromey@redhat.com>
3190
3191 * symfile.c (separate_debug_file_exists): Update.
3192 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3193 (reread_symbols): Update.
3194 * elfread.c (build_id_verify): Update.
3195 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3196 bfd_open_maybe_remote.
3197
3198 2012-07-23 Tom Tromey <tromey@redhat.com>
3199
3200 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3201
3202 2012-07-23 Tom Tromey <tromey@redhat.com>
3203
3204 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3205 and 'abfd'.
3206 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3207 and 'abfd'.
3208 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3209 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3210 'abfd'.
3211 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3212 * objfiles.c (allocate_objfile): Acquire a new reference.
3213 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3214 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3215 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3216 a cleanup for 'nbfd'.
3217 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3218 for 'nbfd'.
3219 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3220 make a cleanup for 'abfd'.
3221 (symbol_file_add): Make a BFD cleanup.
3222
3223 2012-07-23 Tom Tromey <tromey@redhat.com>
3224
3225 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3226 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3227 * corelow.c (core_open): Use gdb_bfd_fopen.
3228 * dsrec.c (load_srec): Use gdb_bfd_openr.
3229 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3230 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3231 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3232 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3233 (gdb_bfd_fdopenr): New functions.
3234 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3235 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3236 (gdb_bfd_fdopenr): Declare.
3237 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3238 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3239 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3240 gdb_bfd_openr_next_archived_file.
3241 (macho_check_dsym): Use gdb_bfd_openr.
3242 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3243 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3244 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3245 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3246 gdb_bfd_openr.
3247 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3248 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3249 gdb_bfd_openr_next_archived_file.
3250 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3251 Use gdb_bfd_openr.
3252 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3253 gdb_bfd_openr.
3254 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3255 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3256 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3257 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3258 (symfile_bfd_open): Use gdb_bfd_fopen.
3259 (generic_load): Use gdb_bfd_openr.
3260 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3261
3262 2012-07-23 Tom Tromey <tromey@redhat.com>
3263
3264 * bfd-target.c (target_bfd_reopen): Update.
3265 * cli/cli-dump.c (bfd_openr_with_cleanup)
3266 (bfd_openw_with_cleanup): Update.
3267 * corelow.c (core_open): Update.
3268 * dsrec.c (load_srec): Update.
3269 * exec.c (exec_file_attach): Update.
3270 * gcore.c (create_gcore_bfd): Update.
3271 * gdb_bfd.c (gdb_bfd_ref): Return void.
3272 (gdb_bfd_open): Update.
3273 * gdb_bfd.h (gdb_bfd_ref): Return void.
3274 Update comments.
3275 * jit.c (jit_bfd_try_read_symtab): Update.
3276 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3277 * machoread.c (macho_symfile_read_all_oso): Update.
3278 (macho_check_dsym): Update.
3279 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3280 * remote-m32r-sdi.c (m32r_load): Update.
3281 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3282 * rs6000-nat.c (add_vmap): Update.
3283 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3284 Update.
3285 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3286 * solib-spu.c (spu_bfd_open): Update.
3287 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3288 * spu-linux-nat.c (spu_bfd_open): Update.
3289 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3290 (generic_load): Update.
3291 * windows-nat.c (windows_make_so): Update.
3292
3293 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3294
3295 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3296
3297 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3298
3299 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3300 SIGTRAMP_FRAME unwinding.
3301
3302 2012-07-20 Doug Evans <dje@google.com>
3303
3304 * NEWS: Document new options "set/show use-deprecated-index-sections",
3305 and delete reference to --use-deprecated-index-sections.
3306 * symfile.h (use_deprecated_index_sections): Delete.
3307 * dwarf2read.c (use_deprecated_index_sections): Make static.
3308 (read_index_from_section): Update wording of how to load
3309 deprecated index sections.
3310 (_initialize_dwarf2_read): New options
3311 "set/show use-deprecated-index-sections".
3312 * main.c (captured_main): Delete --use-deprecated-index-sections.
3313
3314 2012-07-20 Pedro Alves <palves@redhat.com>
3315
3316 PR threads/11692
3317 PR gdb/12203
3318
3319 * infrun.c (handle_inferior_event) <new thread>: Don't special
3320 case minus_one_ptid.
3321 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3322 * linux-thread-db.c (thread_get_info_callback): Don't return early
3323 if the thread is zombie.
3324 (thread_from_lwp): Change return type to void. Rewrite stale
3325 comment.
3326 (attach_thread): Don't return early if the thread is zombie,
3327 instead set its "dying" flag.
3328 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3329 (find_new_threads_callback): Don't return early if the thread is
3330 zombie.
3331
3332 2012-07-20 Pedro Alves <palves@redhat.com>
3333
3334 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3335 * target.c (target_wait): Likewise.
3336 (str_comma_list_concat_elem, do_option, target_options_to_string):
3337 New functions.
3338 * target.h (target_options_to_string): Declare.
3339
3340 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3341 Tom Tromey <tromey@redhat.com>
3342
3343 * dwarf2read.c (dwarf_decode_macros)
3344 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3345 DW_MACRO_GNU_transparent_include_alt>: New cases.
3346 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3347 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3348
3349 2012-07-20 Tom Tromey <tromey@redhat.com>
3350
3351 * dwarf2read.c (try_open_dwo_file): Don't call
3352 gdb_bfd_stash_filename.
3353
3354 2012-07-20 Pedro Alves <palves@redhat.com>
3355
3356 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3357 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3358 (i386_process_record): Tweak description comments.
3359
3360 2012-07-20 Pedro Alves <palves@redhat.com>
3361
3362 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3363 (i386_process_record): Use record_read_memory.
3364 * record.c (record_read_memory): New function.
3365 (record_arch_list_add_mem, record_exec_insn): Use
3366 record_read_memory.
3367 * record.h (record_read_memory): Declare.
3368
3369 2012-07-20 Yao Qi <yao@codesourcery.com>
3370
3371 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3372 NULL for xfree.
3373
3374 2012-07-19 Pedro Alves <palves@redhat.com>
3375
3376 * record.c (record_resume): Ask the target beneath to report all
3377 signals.
3378
3379 2012-07-19 Doug Evans <dje@google.com>
3380
3381 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3382 there's no section at address zero.
3383 (dwarf2_record_block_ranges): Ditto.
3384
3385 2012-07-19 Yao Qi <yao@codesourcery.com>
3386
3387 * command.h, remote.c: Fix a typo in comment.
3388
3389 2012-07-19 Tom Tromey <tromey@redhat.com>
3390
3391 PR exp/13206:
3392 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3393 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3394 OP_DECLTYPE>: New cases.
3395 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3396 (type_exp): Add new productions.
3397 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3398 and decltype.
3399 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3400 New case.
3401 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3402 OP_DECLTYPE>: New case.
3403 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3404 New case.
3405 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3406 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3407
3408 2012-07-19 Tom Tromey <tromey@redhat.com>
3409
3410 * c-exp.y (enum token_flags): New.
3411 (struct token) <cxx_only>: Remove.
3412 <flags>: New field.
3413 (tokentab3, tokentab2, ident_tokens): Update.
3414 (lex_one_token): Update. Handle FLAG_SHADOW.
3415
3416 2012-07-19 Tom Tromey <tromey@redhat.com>
3417
3418 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3419 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3420 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3421 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3422 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3423 type_exp production where appropriate.
3424 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3425 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3426 <UNOP_MEMVAL_TYPE>: New case.
3427 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3428 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3429 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3430 <UNOP_MEMVAL_TYPE>: New case.
3431 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3432 UNOP_REINTERPRET_CAST>: Update.
3433 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3434 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3435 UNOP_REINTERPRET_CAST>: Update.
3436 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3437 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3438 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3439 constants.
3440
3441 2012-07-19 Yao Qi <yao@codesourcery.com>
3442 Jan Kratochvil <jan.kratochvil@redhat.com>
3443
3444 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3445 and case 'var_optional_filename' together.
3446 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3447 instead of add_setshow_optional_filename_cmd for setshow command
3448 'args'. Set completer for 'set args'.
3449
3450 2012-07-18 Doug Evans <dje@google.com>
3451
3452 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3453 * common/gdb_vecs.c: New file, contents from utils.c.
3454 * common/host-defs.h: New file, contents from defs.h.
3455 * utils.h: New file, contents from defs.h.
3456 * defs.h: Move all declarations of objects defined in utils.c
3457 to utils.h (except QUIT() and related).
3458 #include "utils.h", "host-defs.h".
3459 * probe.h (probe_p): Move here from gdb_vecs.h.
3460 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3461 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3462 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3463 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3464 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3465 (COMMON_OBS): Add gdb_vecs.o.
3466 (gdb_vecs.o): New rule.
3467
3468 2012-07-18 Keith Seitz <keiths@redhat.com>
3469
3470 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3471 parameter. If non-zero, use SYMNAME as the canonical name
3472 for the SaL.
3473 Update all callers.
3474 (convert_linespec_to_sals): Use add_sal_to_sals for
3475 expressions, too.
3476 (decode_line_full): No need to "fill in missing canonical names"
3477 anymore. Simply make cleanups for the allocated names.
3478
3479 2012-07-18 Keith Seitz <keiths@redhat.com>
3480
3481 * linespec.c (struct linespec): Constify expression,
3482 source_filename, function_name, and label_name.
3483 (symbol_not_found_error): Make all parameters const.
3484 (linespec_parser_delete): No need to check for NULL
3485 when using xfree. Cast const char * to char * for xfree.
3486
3487 2012-07-18 Keith Seitz <keiths@redhat.com>
3488
3489 * breakpoint.c (invalid_thread_id_error): New function.
3490 (find_condition_and_thread): Use invalid_thread_id_error.
3491 (watch_command_1): Likewise.
3492
3493 2012-07-18 Tom Tromey <tromey@redhat.com>
3494
3495 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3496 * contrib/cc-with-tweaks.sh: New file.
3497
3498 2012-07-18 Tom Tromey <tromey@redhat.com>
3499
3500 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3501 (locate_dwz_sections): Recognize .gdb_index.
3502 (create_cus_from_index_list): New function.
3503 (create_cus_from_index): Use it. Handle .dwz data.
3504 (read_index_from_section): New function, extracted from
3505 dwarf2_read_index.
3506 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3507 if needed.
3508
3509 2012-07-18 Tom Tromey <tromey@redhat.com>
3510
3511 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3512 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3513 <is_dwz>: New field.
3514 (struct dwz_file): New.
3515 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3516 (locate_dwz_sections, dwarf2_get_dwz_file)
3517 (get_abbrev_section_for_cu): New functions.
3518 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3519 (read_and_check_type_unit_head): Add abbrev_section argument.
3520 (create_debug_types_hash_table): Update.
3521 (init_cutu_and_read_dies): Use proper abbrev section.
3522 (init_cutu_and_read_dies_no_follow): Likewise.
3523 (set_partial_user): Do nothing if PST==NULL.
3524 (read_comp_units_from_section): New function.
3525 (create_all_comp_units): Use it.
3526 (scan_partial_symbols, partial_die_parent_scope): Update.
3527 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3528 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3529 (find_partial_die): Add offset_in_dwz argument. Update.
3530 (guess_partial_die_structure_name, fixup_partial_die): Update.
3531 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3532 DW_FORM_GNU_strp_alt.
3533 (read_indirect_string_from_dwz): New function.
3534 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3535 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3536 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3537 (follow_die_offset): Add offset_in_dwz argument.
3538 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3539 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3540 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3541 Handle new macro forms.
3542 (dwarf_decode_macros): Update.
3543 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3544 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3545 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3546 (create_debug_types_hash_table): Use correct abbrev section.
3547 (get_debug_line_section): New function.
3548 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3549 (process_full_comp_unit): Pass 'required' argument to
3550 end_symtab_get_static_block.
3551 * buildsym.h (end_symtab_get_static_block): Update.
3552 * buildsym.c (end_symtab_get_static_block): Add 'required'
3553 argument.
3554 (end_symtab, end_expandable_symtab): Update.
3555
3556 2012-07-18 Tom Tromey <tromey@redhat.com>
3557
3558 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3559 (pagesize): Remove.
3560 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3561 (zlib_decompress_section): Remove.
3562 (dwarf2_read_section): Use gdb_bfd_map_section.
3563 (munmap_section_buffer): Remove.
3564 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3565 munmap_section_buffer.
3566 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3567 (struct gdb_bfd_section_data): New.
3568 (free_one_bfd_section): New function.
3569 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3570 (get_section_descriptor, zlib_decompress_section)
3571 (gdb_bfd_map_section): New functions.
3572 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3573
3574 2012-07-18 Tom Tromey <tromey@redhat.com>
3575
3576 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3577
3578 2012-07-18 Tom Tromey <tromey@redhat.com>
3579
3580 * gdb_bfd.c (struct gdb_bfd_data): New.
3581 (gdb_bfd_cache): New global.
3582 (struct gdb_bfd_cache_search): New.
3583 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3584 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3585 * gdb_bfd.h (gdb_bfd_open): Declare.
3586
3587 2012-07-18 Tom Tromey <tromey@redhat.com>
3588
3589 * utils.c (make_cleanup_bfd_unref): Rename from
3590 make_cleanup_bfd_close.
3591 * defs.h (make_cleanup_bfd_unref): Rename from
3592 make_cleanup_bfd_close.
3593 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3594 (bfd_openw_with_cleanup): Update.
3595 * corelow.c (core_open): Update.
3596 * dsrec.c (load_srec): Update.
3597 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3598 * remote-m32r-sdi.c (m32r_load): Update.
3599 * remote-mips.c (mips_load_srec): Update.
3600 (pmon_load_fast): Update.
3601 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3602 Update.
3603 (darwin_bfd_open): Update.
3604 * solib.c (solib_bfd_fopen): Update.
3605 * symfile-mem.c (symbol_file_add_from_memory): Update.
3606 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3607 (symfile_bfd_open): Update.
3608 (generic_load): Update.
3609
3610 2012-07-18 Tom Tromey <tromey@redhat.com>
3611
3612 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3613 (pmon_load_fast): Likewise.
3614 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3615 (m32r_upload_command): Likewise.
3616 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3617 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3618 Use make_cleanup_bfd_close.
3619
3620 2012-07-18 Tom Tromey <tromey@redhat.com>
3621
3622 * symfile.c (symfile_bfd_open): Don't copy name. Call
3623 gdb_bfd_stash_filename.
3624 (load_command): Open the new BFD before freeing the old.
3625 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3626 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3627 Call gdb_bfd_stash_filename.
3628 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3629 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3630 gdb_bfd_stash_filename.
3631 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3632 Free found_pathname.
3633 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3634 gdb_bfd_stash_filename.
3635 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3636 * machoread.c (macho_add_oso_symfile): Call
3637 gdb_bfd_stash_filename.
3638 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3639 gdb_bfd_stash_filename.
3640 (macho_check_dsym): Don't copy filename. Call
3641 gdb_bfd_stash_filename.
3642 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3643 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3644 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3645 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3646 * exec.c (exec_close): Don't free the BFD's filename.
3647 (exec_file_attach): Don't copy the filename. Call
3648 gdb_bfd_stash_filename.
3649 * corelow.c (core_close): Don't free the BFD's filename.
3650 (core_open): Call gdb_bfd_stash_filename.
3651 * corefile.c (reopen_exec_file): Remove #if 0 code.
3652 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3653 pathname.
3654 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3655
3656 2012-07-18 Tom Tromey <tromey@redhat.com>
3657
3658 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3659 gdb_bfd_unref.
3660 (free_dwo_file): Use gdb_bfd_unref.
3661 * cli/cli-dump.c: Include gdb_bfd.h.
3662 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3663 (bfd_openr_with_cleanup): Likewise.
3664 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3665 gdb_bfd_unref.
3666 * utils.c: Include gdb_bfd.h.
3667 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3668 * symfile.c: Include gdb_bfd.h.
3669 (separate_debug_file_exists): Use gdb_bfd_unref.
3670 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3671 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3672 (generic_load): Use gdb_bfd_ref.
3673 (reread_symbols): Use gdb_bfd_unref.
3674 * symfile-mem.c: Include gdb_bfd.h.
3675 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3676 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3677 * solib.c: Include gdb_bfd.h.
3678 (solib_bfd_fopen): Use gdb_bfd_ref.
3679 (solib_bfd_open): Use gdb_bfd_unref.
3680 (free_so_symbols): Use gdb_bfd_unref.
3681 (reload_shared_libraries_1): Use gdb_bfd_unref.
3682 * solib-spu.c: Include gdb_bfd.h.
3683 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3684 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3685 gdb_bfd_unref.
3686 * solib-frv.c: Include gdb_bfd.h.
3687 (enable_break2): Use gdb_bfd_unref.
3688 * solib-dsbt.c: Include gdb_bfd.h.
3689 (enable_break2): Use gdb_bfd_unref.
3690 * solib-darwin.c: Include gdb_bfd.h.
3691 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3692 gdb_bfd_unref.
3693 (darwin_bfd_open): Use gdb_bfd_unref.
3694 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3695 * remote-mips.c: Include gdb_bfd.h.
3696 (mips_load_srec): Use gdb_bfd_ref.
3697 (pmon_load_fast): Use gdb_bfd_ref.
3698 * remote-m32r-sdi.c: Include gdb_bfd.h.
3699 (m32r_load): Use gdb_bfd_ref.
3700 * record.c: Include gdb_bfd.h.
3701 (record_save_cleanups): Use gdb_bfd_unref.
3702 (cmd_record_save): Use gdb_bfd_unref.
3703 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3704 gdb_bfd_unref.
3705 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3706 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3707 * objfiles.c: Include gdb_bfd.h.
3708 (free_objfile): Use gdb_bfd_unref.
3709 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3710 gdb_bfd.c.
3711 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3712 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3713 (macho_check_dsym): Likewise.
3714 * m32r-rom.c: Include gdb_bfd.h.
3715 (m32r_load): Use gdb_bfd_ref.
3716 (m32r_upload_command): Use gdb_bfd_ref.
3717 * jit.c: Include gdb_bfd.h.
3718 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3719 * gdb_bfd.h: New file.
3720 * gdb_bfd.c: New file.
3721 * gcore.c: Include gdb_bfd.h.
3722 (create_gcore_bfd): Use gdb_bfd_ref.
3723 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3724 (gcore_command): Use gdb_bfd_unref.
3725 * exec.c: Include gdb_bfd.h.
3726 (exec_close): Use gdb_bfd_unref.
3727 (exec_close_1): Use gdb_bfd_unref.
3728 (exec_file_attach): Use gdb_bfd_ref.
3729 * elfread.c: Include gdb_bfd.h.
3730 (build_id_verify): Use gdb_bfd_unref.
3731 * dsrec.c: Include gdb_bfd.h.
3732 (load_srec): Use gdb_bfd_ref.
3733 * corelow.c: Include gdb_bfd.h.
3734 (core_close): Use gdb_bfd_unref.
3735 (core_open): Use gdb_bfd_ref.
3736 * bfd-target.c: Include gdb_bfd.h.
3737 (target_bfd_xclose): Use gdb_bfd_unref.
3738 (target_bfd_reopen): Use gdb_bfd_ref.
3739 * Makefile.in (SFILES): Add gdb_bfd.c.
3740 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3741 (COMMON_OBS): Add gdb_bfd.o.
3742
3743 2012-07-18 Keith Seitz <keiths@redhat.com>
3744
3745 * breakpoint.c (find_condition_and_thread): Initialize
3746 TASK and REST.
3747 (create_breakpiont): find_condition_and_thread will now
3748 initialize COND_STRING, THREAD, and REST (and TASK).
3749 (addr_string_to_sals): Likewise.
3750
3751 2012-07-18 Pedro Alves <palves@redhat.com>
3752
3753 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3754 Pull the single step breakpoints out of the target.
3755
3756 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3757
3758 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3759 * stap-probe.c (compile_probe_arg): Likewise.
3760
3761 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3762
3763 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3764 (elf_compile_to_ax): Likewise.
3765 * infrun.c (insert_exception_resume_from_probe): Likewise.
3766 (check_exception_resume): Remove `objfile' variable.
3767 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3768 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3769 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3770 (compare_entries): Rename to...
3771 (compare_probes): ...this. Adjust function to work with
3772 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3773 respectively.
3774 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3775 `VEC (probe_p) *'.
3776 (print_ui_out_info): Adjust argument to be `struct probe *'.
3777 (info_probes_for_ops): Adjust internal computations to use
3778 `VEC (probe_p) *'.
3779 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3780 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3781 gen_info_probes_table_values>: Remove `objfile' argument.
3782 (struct probe) <objfile>: New field.
3783 (find_probe_by_pc): Remove `objfile' argument.
3784 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3785 (stap_get_probe_argument_count): Likewise.
3786 (stap_get_arg): Likewise.
3787 (stap_evaluate_probe_argument): Likewise.
3788 (stap_compile_to_ax): Likewise.
3789 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3790 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3791 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3792 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3793 sym_compile_to_ax>: Likewise.
3794
3795 2012-07-18 Terry Guo <terry.guo@arm.com>
3796
3797 PR 14329
3798 * defs.h (GDB_MI_MSG_WIDTH): New.
3799 * ser_base (ser_base_read_error_fd): New function.
3800 (do_ser_base_readchar): Poll error file descriptor as well as
3801 standard output.
3802 (generic_readchar): Refactor error handling.
3803
3804 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3805
3806 * NEWS: Create a new section for the next release branch.
3807 Rename the section of the current branch, now that it has
3808 been cut.
3809
3810 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3811
3812 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3813 * version.in: Bump version to 7.5.50.20120718-cvs.
3814
3815 2012-07-17 Keith Seitz <keiths@redhat.com>
3816
3817 * linespec.c (linespec_parse_line_offset): Make parameter
3818 const.
3819
3820 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3821
3822 PR 11914
3823 * f-valprint.c (info_common_command): New variable frame_id.
3824 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3825 * printcmd.c (print_variable_and_value): Extend function comment.
3826 Add comment for invalidated FRAME.
3827 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3828 FI form FRAME_ID after each print_frame_local_vars.
3829 (struct print_variable_and_value_data): Change frame to frame_id.
3830 (do_print_variable_and_value): New variable frame, initialize it from
3831 p->frame_id. Add comment for invalidated FRAME.
3832 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3833 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3834 for invalidated FRAME.
3835
3836 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3837 Pedro Alves <palves@redhat.com>
3838
3839 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3840 loop.
3841
3842 2012-07-16 Tom Tromey <tromey@redhat.com>
3843
3844 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3845
3846 2012-07-15 Doug Evans <dje@google.com>
3847
3848 * dwarf2read.c (stmt_list_hash): New struct.
3849 (type_unit_group): Embed "per_cu" member, remove pointer.
3850 New union member "t", move member "tus" into it, all uses updated.
3851 New member "hash", replaces member "line_offset, all uses updated.
3852 (quick_file_names): Replace member "offset" with "hash", all uses
3853 updated.
3854 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3855 (hash_file_name_entry, eq_file_name_entry): Call them.
3856 (hash_type_unit_group, eq_type_unit_group): Ditto.
3857 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3858 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3859 (dw2_get_file_names): Update.
3860 (create_type_unit_group): Replace "per_cu" arg with "cu".
3861 All callers updated. Fix "quick" (.gdb_index) handling.
3862 (get_type_unit_group): Replace "per_cu" arg with "cu".
3863 All callers updated.
3864 (build_type_unit_groups): Don't reset tu_stats.
3865
3866 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3867 "tab_cur_size". Change member "tab" to be a htab_t.
3868 (create_filename_seen_cache): Update.
3869 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3870 (filename_seen): Update.
3871
3872 2012-07-13 Doug Evans <dje@google.com>
3873
3874 * symtab.c (filename_seen): Update comment.
3875
3876 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3877 Doug Evans <dje@google.com>
3878
3879 * buildsym.c (end_symtab_1): Split it to ...
3880 (end_symtab_get_static_block): ... this ...
3881 (end_symtab_from_static_block): ... and this function.
3882 (end_symtab, end_expandable_symtab): Call them.
3883 * buildsym.h (end_symtab_get_static_block)
3884 (end_symtab_from_static_block): New declarations.
3885 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3886 Set its valid CU ranges.
3887
3888 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3889
3890 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3891 DW_OP_GNU_parameter_ref.
3892
3893 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3894
3895 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3896 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3897
3898 2012-07-13 Doug Evans <dje@google.com>
3899
3900 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3901 (filename_seen_cache): New struct.
3902 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3903 (create_filename_seen_cache): New function.
3904 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3905 (filename_seen): Delete arg "first". New arg "cache". All callers
3906 updated.
3907 (output_source_filename_data): New struct.
3908 (output_source_filename): Delete arg "first". New arg "data".
3909 All callers updated.
3910 (sources_info): Delete local "first". New locals "data", "cleanups".
3911 Rewrite to use filename_seen_cache.
3912 (add_partial_filename_data): Delete member "first". New member
3913 "filename_seen_cache". All uses updated.
3914 (make_source_files_completion_list): Rewrite to use
3915 filename_seen_cache.
3916
3917 2012-07-12 Doug Evans <dje@google.com>
3918
3919 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3920
3921 2012-07-10 Doug Evans <dje@google.com>
3922
3923 PR gdb/13498
3924 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3925 all_type_unit_groups, type_unit_groups, tu_stats.
3926 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3927 All uses updated. Add type_unit_group to union "s".
3928 (type_unit_group): New struct.
3929 (IS_TYPE_UNIT_GROUP): New macro.
3930 (abbrev_table): Delete unused member "section".
3931 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3932 (dw2_get_cu): Assert not used with type_unit_group.
3933 (dw2_get_primary_cu): New function.
3934 (dw2_build_type_unit_groups_reader): New function.
3935 (dw2_build_type_unit_groups): New function.
3936 (dw2_get_file_names): Assert not called on type units.
3937 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3938 Redo loop to iterate over type unit groups instead of type units.
3939 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3940 (read_abbrev_offset): New function.
3941 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3942 updated.
3943 (create_partial_symtab): New function.
3944 (process_psymtab_comp_unit_reader): Assert not used with type units.
3945 Call create_partial_symtab.
3946 (process_psymtab_type_unit): Delete.
3947 (hash_type_unit_group, eq_type_unit_group): New functions.
3948 (allocate_type_unit_groups_table): New function.
3949 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3950 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3951 (create_type_unit_group, get_type_unit_group): New functions.
3952 (tu_abbrev_offset): New struct.
3953 (sort_tu_by_abbrev_offset): New function.
3954 (add_type_unit_group_to_table): New function.
3955 (build_type_unit_groups): New function.
3956 (build_type_psymtabs_reader): New function.
3957 (build_type_psymtab_dependencies): New function.
3958 (build_type_psymtabs): Rewrite.
3959 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3960 is seen in a type unit.
3961 (process_queue): Move symtab expansion debugging printfs here.
3962 Call process_full_type_unit for type units.
3963 (compute_symtab_includes): Assert not called for type units.
3964 (process_cu_includes): Don't call compute_symtab_includes for
3965 type units.
3966 (process_full_type_unit): New function.
3967 (process_imported_unit_die): Flag an error if called for type units.
3968 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3969 updated. Assert not called for type units.
3970 (read_file_scope): Call dwarf2_start_symtab.
3971 (setup_type_unit_groups): New function.
3972 (read_type_unit_scope): Rewrite.
3973 (abbrev_table_read_table): Initialize abbrev_table->offset.
3974 (abbrev_table_free_cleanup): New function.
3975 (dwarf2_start_symtab): New function.
3976 (load_full_type_unit): Assert not called for type unit groups.
3977 * buildsym.c (finish_block_internal): New arg "expandable".
3978 All callers updated.
3979 (start_symtab): Move most contents to ...
3980 (restart_symtab): ... here. New function.
3981 (reset_symtab_globals): New function.
3982 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3983 Call reset_symtab_globals.
3984 (end_symtab, end_expandable_symtab): New functions.
3985 (set_missing_symtab, augment_type_symtab): New functions.
3986 * buildsym.h (end_expandable_symtab): Declare.
3987 (augment_type_symtab, restart_symtab): Declare.
3988 * psympriv.h (struct partial_symtab): New member "anonymous".
3989 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3990 anonymous psymtabs.
3991 (read_psymtabs_with_filename): Ditto.
3992 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3993 (expand_symtabs_matching_via_partial): Ditto.
3994 (dump_psymtab): Update.
3995 * dictionary.c (dict_add_pending): New function.
3996 * dictionary.h (dict_add_pending): Declare.
3997
3998 2012-07-09 Doug Evans <dje@google.com>
3999
4000 * buildsym.c (start_subfile): Remove unnecessary check for
4001 name == NULL.
4002
4003 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4004
4005 * dwarf2read.c (load_full_type_unit): Simplify.
4006
4007 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4008 to struct signatured_type **. All uses updated.
4009
4010 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4011 All callers updated.
4012
4013 2012-07-09 Tom Tromey <tromey@redhat.com>
4014
4015 * c-exp.y (check_parameter_typelist): New function.
4016 (parameter_typelist): Call it.
4017 * eval.c (make_params): Handle '(void)' case.
4018 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4019 '(void)' case.
4020
4021 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4022
4023 * common/linux-ptrace.c: Include gdb_assert.h.
4024 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4025 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4026 stdint.h.
4027 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4028 functions.
4029 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4030 * linux-nat.c (linux_child_post_attach)
4031 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4032
4033 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4034
4035 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4036 nptl <2.7 bug workaround for core files.
4037
4038 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4041 clearing.
4042 (save_siginfo): Remove.
4043 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4044 call.
4045 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4046 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4047 * linux-nat.h (struct lwp_info): Remove field siginfo.
4048
4049 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4050
4051 Code cleanup for the next patch.
4052 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4053 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4054 call for it.
4055 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4056 (ia64_linux_stopped_data_address):
4057 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4058 the return value.
4059 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4060 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4061 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4062 call for it.
4063
4064 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4065
4066 PR 14321
4067 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4068 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4069
4070 2012-07-06 Tom Tromey <tromey@redhat.com>
4071
4072 * c-exp.y (DOTDOTDOT): New token.
4073 (func_mod, exp): Use parameter_typelist.
4074 (parameter_typelist): New production.
4075 (tokentab3): Add "..." token.
4076 * eval.c (make_params): Handle varargs.
4077 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4078 varargs.
4079
4080 2012-07-06 Tom Tromey <tromey@redhat.com>
4081
4082 PR exp/9608:
4083 * c-exp.y (%union) <tvec>: Change type.
4084 (func_mod): Now uses <tvec> type.
4085 (exp): Update for tvec change.
4086 (direct_abs_decl): Push the typelist.
4087 (func_mod): Return a typelist.
4088 (nonempty_typelist): Update for tvec change.
4089 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4090 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4091 * parse.c (pop_type_list): New function.
4092 (push_typelist): New function.
4093 (follow_types): Handle tp_function_with_arguments.
4094 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4095 (enum type_pieces) <tp_function_with_arguments>: New constant.
4096 (union type_stack_elt) <typelist_val>: New field.
4097 (push_typelist): Declare.
4098
4099 2012-07-06 Tom Tromey <tromey@redhat.com>
4100
4101 * c-exp.y (%union) <type_stack>: New field.
4102 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4103 (ptr_operator_ts): New production.
4104 (ptype): Update.
4105 * parse.c (type_stack_reserve): New function.
4106 (check_type_stack_depth): Use it.
4107 (pop_type_stack, append_type_stack, push_type_stack)
4108 (get_type_stack, type_stack_cleanup): New functions.
4109 (follow_types): Handle tp_type_stack.
4110 (_initialize_parse): Simplify initialization.
4111 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4112 constant.
4113 (union type_stack_elt) <stack_val>: New field.
4114 (get_type_stack, append_type_stack, push_type_stack)
4115 (type_stack_cleanup): Declare.
4116
4117 2012-07-06 Tom Tromey <tromey@redhat.com>
4118
4119 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4120 Remove.
4121 (struct type_stack): New.
4122 * parse.c (type_stack, type_stack_size, type_stack_depth):
4123 Remove.
4124 (type_stack): New global.
4125 (parse_exp_in_context, check_type_stack_depth)
4126 (insert_into_type_stack, insert_type, push_type, push_type_int)
4127 (insert_type_address_space, pop_type, pop_type_int)
4128 (_initialize_parse): Update.
4129
4130 2012-07-06 Tom Tromey <tromey@redhat.com>
4131
4132 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4133 Remove %type.
4134
4135 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4136
4137 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4138
4139 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4140 Jan Kratochvil <jan.kratochvil@redhat.com>
4141
4142 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4143 alloca with xmalloc/xfree.
4144
4145 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4146
4147 * MAINTAINERS (Write After Approval): Add myself to the list.
4148
4149 2012-07-05 Doug Evans <dje@google.com>
4150
4151 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4152
4153 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4154
4155 * ax-gdb.c (cli/cli-utils.h): New include.
4156 (linespec.h): Ditto.
4157 (agent_eval_command_one): New function.
4158 (agent_command_1): Ditto.
4159 (agent_command): Call function agent_command_1.
4160 (agent_eval_command): Ditto.
4161 (_initialize_ax_gdb): Change help for "maint agent"
4162 and "maint agent-eval".
4163
4164 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
4165
4166 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4167 * cli/cli-utils.c (check_for_argument): New function.
4168 * cli/cli-utils.h (check_for_argument): Ditto.
4169
4170 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4171
4172 * NEWS: Mention x32 ABI support.
4173
4174 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4175
4176 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4177 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4178
4179 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4180 and pc_regnum_from_eax to -1. Update SP regnum from
4181 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4182 needed.
4183
4184 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4185 pc_regnum_from_eax.
4186
4187 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4188
4189 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4190 * dwarf2expr.h: Include gdbtypes.h.
4191 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4192 these forward declarations.
4193 (cu_offset, sect_offset): Move these ...
4194 * gdbtypes.h: Remove include dwarf2expr.h.
4195 (cu_offset, sect_offset): ... here.
4196
4197 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4198
4199 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4200 (amd64_linux_sigtramp_code): This.
4201 (amd64_x32_linux_sigtramp_code): New.
4202 (LINUX_SIGTRAMP_LEN): Updated.
4203 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4204
4205 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4206
4207 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4208
4209 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4210
4211 * config.in: Regenerate.
4212 * configure: Regenerate.
4213 * configure.ac: Remove check for gnu/libc-version.h.
4214 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4215 gnu/libc-version.h.
4216 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4217 variables libc_version, libc_major and libc_minor. Replace sscanf by
4218 inferior_has_bug. Extend the comment.
4219
4220 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 * linux-thread-db.c (inferior_has_bug): New function.
4223 (thread_db_find_new_threads_silently): Return boolean as checked by
4224 inferior_has_bug, describe it in the comments.
4225 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4226 earlier. Abort the initialization if it returned non-zero.
4227 (thread_db_new_objfile): Exclude debug files.
4228 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4229 if UNTIL_NO_NEW,
4230
4231 2012-07-02 Doug Evans <dje@google.com>
4232
4233 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4234 related to queue management.
4235
4236 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4237 instead of "debug dwarf2-die" in debugging printfs.
4238 (create_debug_info_hash_table_reader): Ditto.
4239 (create_debug_info_hash_table): Ditto.
4240 (init_dwo_file): Ditto.
4241 (init_cutu_and_read_dies): Add debugging printf.
4242 (init_cutu_and_read_dies_no_follow): Ditto.
4243 (process_psymtab_comp_unit_reader): Ditto.
4244
4245 2012-07-02 Stan Shebs <stan@codesourcery.com>
4246
4247 Add target-side support for dynamic printf.
4248 * NEWS: Mention the additional style.
4249 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4250 (struct bp_location): New field cmd_bytecode.
4251 * breakpoint.c: Include format.h.
4252 (disconnected_dprintf): New global.
4253 (parse_cmd_to_aexpr): New function.
4254 (build_target_command_list): New function.
4255 (insert_bp_location): Call it.
4256 (remove_breakpoints_pid): Skip dprintf breakpoints.
4257 (print_one_breakpoint_location): Ditto.
4258 (dprintf_style_agent): New global.
4259 (dprintf_style_enums): Add dprintf_style_agent.
4260 (update_dprintf_command_list): Add agent case.
4261 (agent_printf_command): New function.
4262 (_initialize_breakpoint): Add new commands.
4263 * common/ax.def (printf): New bytecode.
4264 * ax.h (ax_string): Declare.
4265 * ax-gdb.h (gen_printf): Declare.
4266 * ax-gdb.c: Include cli-utils.h, format.h.
4267 (gen_printf): New function.
4268 (maint_agent_print_command): New function.
4269 (_initialize_ax_gdb): Add maint agent-printf command.
4270 * ax-general.c (ax_string): New function.
4271 (ax_print): Add printf disassembly.
4272 * Makefile.in (SFILES): Add format.c
4273 (COMMON_OBS): Add format.o.
4274 * common/format.h: New file.
4275 * common/format.c: New file.
4276 * printcmd.c: Include format.h.
4277 (ui_printf): Call parse_format_string.
4278 * remote.c (remote_state): New field breakpoint_commands.
4279 (PACKET_BreakpointCommands): New enum.
4280 (remote_breakpoint_commands_feature): New function.
4281 (remote_protocol_features): Add new BreakpointCommands entry.
4282 (remote_can_run_breakpoint_commands): New function.
4283 (remote_add_target_side_commands): New function.
4284 (remote_insert_breakpoint): Call it.
4285 (remote_insert_hw_breakpoint): Ditto.
4286 (_initialize_remote): Add new packet configuration for
4287 target-side breakpoint commands.
4288 * target.h (struct target_ops): New field
4289 to_can_run_breakpoint_commands.
4290 (target_can_run_breakpoint_commands): New macro.
4291 * target.c (update_current_target): Handle
4292 to_can_run_breakpoint_commands.
4293
4294 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4295
4296 Execute -ix and -iex only after system and user gdbinit files.
4297 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4298 processing down after gdbinit files.
4299
4300 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4301
4302 Add fnmatch-gnu module.
4303 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4304 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4305 * gnulib/aclocal.m4: Regenerate.
4306 * gnulib/config.in: Regenerate.
4307 * gnulib/configure: Regenerate.
4308 * gnulib/import/dummy.c: Remove.
4309 * gnulib/import/Makefile.am: Regenerate.
4310 * gnulib/import/Makefile.in: Likewise.
4311 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4312 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4313 * gnulib/import/alloca.c: New file.
4314 * gnulib/import/alloca.in.h: Likewise.
4315 * gnulib/import/config.charset: Likewise.
4316 * gnulib/import/fnmatch.c: Likewise.
4317 * gnulib/import/fnmatch.in.h: Likewise.
4318 * gnulib/import/fnmatch_loop.c: Likewise.
4319 * gnulib/import/localcharset.c: Likewise.
4320 * gnulib/import/localcharset.h: Likewise.
4321 * gnulib/import/m4/alloca.m4: Likewise.
4322 * gnulib/import/m4/codeset.m4: Likewise.
4323 * gnulib/import/m4/configmake.m4: Likewise.
4324 * gnulib/import/m4/fcntl-o.m4: Likewise.
4325 * gnulib/import/m4/fnmatch.m4: Likewise.
4326 * gnulib/import/m4/glibc21.m4: Likewise.
4327 * gnulib/import/m4/localcharset.m4: Likewise.
4328 * gnulib/import/m4/locale-fr.m4: Likewise.
4329 * gnulib/import/m4/locale-ja.m4: Likewise.
4330 * gnulib/import/m4/locale-zh.m4: Likewise.
4331 * gnulib/import/m4/mbrtowc.m4: Likewise.
4332 * gnulib/import/m4/mbsinit.m4: Likewise.
4333 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4334 * gnulib/import/m4/mbstate_t.m4: Likewise.
4335 * gnulib/import/m4/stdbool.m4: Likewise.
4336 * gnulib/import/m4/wchar_h.m4: Likewise.
4337 * gnulib/import/m4/wctype_h.m4: Likewise.
4338 * gnulib/import/m4/wint_t.m4: Likewise.
4339 * gnulib/import/mbrtowc.c: Likewise.
4340 * gnulib/import/mbsinit.c: Likewise.
4341 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4342 * gnulib/import/mbsrtowcs-state.c: Likewise.
4343 * gnulib/import/mbsrtowcs.c: Likewise.
4344 * gnulib/import/ref-add.sin: Likewise.
4345 * gnulib/import/ref-del.sin: Likewise.
4346 * gnulib/import/stdbool.in.h: Likewise.
4347 * gnulib/import/streq.h: Likewise.
4348 * gnulib/import/strnlen1.c: Likewise.
4349 * gnulib/import/strnlen1.h: Likewise.
4350 * gnulib/import/verify.h: Likewise.
4351 * gnulib/import/wchar.in.h: Likewise.
4352 * gnulib/import/wctype.in.h: Likewise.
4353
4354 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4355
4356 Support shell wildcards for 'set auto-load safe-path'.
4357 * auto-load.c: Include fnmatch.h.
4358 (filename_is_in_dir): Rename to ...
4359 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4360 it. Update function comment. Rename dir_len to pattern_len. New
4361 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4362 messages. Use gdb_filename_fnmatch.
4363 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4364 pattern.
4365 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4366 * defs.h (gdb_filename_fnmatch): New declaration.
4367 * utils.c: Include fnmatch.h.
4368 (gdb_filename_fnmatch): New function.
4369
4370 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4371
4372 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4373 `-probe' and `-probe-stap' options.
4374
4375 2012-07-01 Yao Qi <yao@codesourcery.com>
4376
4377 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4378 always_inserted_off, and always_inserted_enums.
4379 Change always_inserted_mode's type to 'enum auto_boolean'.
4380 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4381 callers.
4382 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4383 of add_setshow_enum_cmd.
4384 * infrun.c: Remove can_use_displaced_stepping_auto,
4385 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4386 can_use_displaced_stepping_enum.
4387 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4388 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4389 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4390 add_setshow_enum_cmd.
4391
4392 2012-06-30 Doug Evans <dje@google.com>
4393
4394 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4395 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4396 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4397
4398 2012-06-29 Doug Evans <dje@google.com>
4399
4400 * linespec.c: #include "stack.h".
4401 (decode_line_with_current_source): Moved here from symtab.c and
4402 renamed from decode_line_spec. All callers updated.
4403 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4404 renamed from decode_line_spec_1. All callers updated.
4405 * linespec.h (decode_line_with_current_source): Move declaration here
4406 from symtab.h and renamed from decode_line_spec.
4407 (decode_line_with_last_displayed): Move declaration here from symtab.h
4408 and renamed from decode_line_spec_1.
4409 * macrocmd.c: #include "linespec.h".
4410 * symtab.c: Remove #include "linespec.h".
4411
4412 2012-06-28 Doug Evans <dje@google.com>
4413
4414 * dwarf2read.c (get_cu_length): New function.
4415 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4416 (create_debug_types_hash_table): Ditto.
4417 (init_cutu_and_read_dies): Ditto.
4418 (init_cutu_and_read_dies_no_follow): Ditto.
4419
4420 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4421
4422 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4423 (struct abbrev_table): Define.
4424 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4425 abbrev_table.
4426 (init_cutu_and_read_dies): Update.
4427 (abbrev_table_alloc_abbrev): New function. Replaces
4428 dwarf_alloc_abbrev. All callers updated.
4429 (abbrev_table_add_abbrev): New function.
4430 (abbrev_table_lookup_abbrev): New function. Replaces
4431 dwarf2_lookup_abbrev. All callers updated.
4432 (abbrev_table_read_table): New function. Contents moved here from
4433 dwarf2_read_abbrevs.
4434 (dwarf2_read_abbrevs): Call it.
4435 (abbrev_table_free): New function.
4436 (dwarf2_free_abbrev_table): Call it.
4437
4438 2012-06-28 Stan Shebs <stan@codesourcery.com>
4439
4440 * osdata.c (info_osdata_command): Filter out "Title" columns
4441 from non-MI uses.
4442 * common/linux-osdata.c (struct osdata_type): Add title field.
4443 (osdata_table): Add titles to each entry.
4444 (linux_command_xfer_osdata): Add a column for title data.
4445
4446 2012-06-28 Stan Shebs <stan@codesourcery.com>
4447
4448 Make logging work for MI.
4449 * NEWS: Mention it.
4450 * interps.h (interp_set_logging_ftype): New typedef.
4451 (struct interp_procs): New field set_logging_proc.
4452 (current_interp_set_logging): Declare.
4453 * interps.c (current_interp_set_logging): New function.
4454 * cli/cli-logging.c: Include interps.h.
4455 (set_logging_redirect): Call current_interp_set_logging.
4456 (pop_output_files): Ditto.
4457 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4458 * mi/mi-console.h (mi_console_set_raw): Declare.
4459 * mi/mi-console.c (mi_console_set_raw): New function.
4460 * mi/mi-interp.c (saved_raw_stdout): New global.
4461 (mi_set_logging): New function.
4462 (_initialize_mi_interp): Add it to interp procs.
4463
4464 2012-06-28 Doug Evans <dje@google.com>
4465
4466 * symtab.c (lookup_symbol_aux_objfile): Use
4467 ALL_OBJFILE_PRIMARY_SYMTABS.
4468
4469 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4470
4471 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4472
4473 * common/buffer.c: Include inttypes.h and stdint.h.
4474 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4475
4476 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4477 Pedro Alves <palves@redhat.com>
4478
4479 * gdbthread.h (ALL_THREADS): New macro.
4480 (thread_list): Declare.
4481 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4482 going, but instead fall through to the stepping handling.
4483 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4484 the passed in signal. Adjust debug output.
4485 (resume_callback): Rename to ...
4486 (linux_nat_resume_callback): ... this. Pass the thread's last
4487 stop signal, if in "pass" state.
4488 (linux_nat_resume): Adjust to rename.
4489 (stop_wait_callback): New assertion. Don't respawn signals;
4490 instead let the LWP remain with SIGNALLED set.
4491 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4492 * remote.c (append_pending_thread_resumptions): New.
4493 (remote_vcont_resume): Call it.
4494 * target.h (target_resume): Extend comment.
4495
4496 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4497
4498 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4499
4500 2012-06-27 Doug Evans <dje@google.com>
4501
4502 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4503 Delete have_addr_base, unused. All uses updated.
4504 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4505 (dwarf2_get_pc_bounds): Add ranges_base.
4506 (dwarf2_record_block_ranges): Ditto.
4507
4508 2012-06-27 Tom Tromey <tromey@redhat.com>
4509
4510 PR macros/7961:
4511 * varobj.c (varobj_create): Update.
4512 (varobj_set_value): Update.
4513 * tracepoint.c (validate_actionline): Update.
4514 (encode_actions_1): Update.
4515 * parse.c (parse_exp_1): Add 'pc' argument.
4516 (parse_exp_in_context): Add 'pc' argument. Change how
4517 expression_context_pc is set.
4518 (parse_expression): Update.
4519 (parse_field_expression): Update.
4520 * expression.h (parse_exp_1): Update.
4521 * eval.c (parse_to_comma_and_eval): Update.
4522 * breakpoint.c (set_breakpoint_condition): Update.
4523 (update_watchpoint): Update.
4524 (init_breakpoint_sal): Update
4525 (find_condition_and_thread): Update.
4526 (watch_command_1): Update.
4527 (update_breakpoint_locations): Update.
4528 * ada-lang.c (ada_read_renaming_var_value): Update.
4529 (create_excep_cond_exprs): Update.
4530
4531 2012-06-27 Doug Evans <dje@google.com>
4532
4533 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4534 type units.
4535
4536 2012-06-26 Doug Evans <dje@google.com>
4537
4538 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4539 prototype.
4540 (error_check_comp_unit_head): New arg abbrev_section. All callers
4541 updated.
4542 (read_and_check_comp_unit_head): Ditto.
4543 (read_and_check_type_unit_head): Ditto.
4544
4545 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4546
4547 New attribute 'last' for gdb.Symtab_and_line.
4548 * NEWS (Python Scripting): Add entry about the new attribute.
4549 * python/py-symtab.c (salpy_get_last): New function which
4550 implements the get method for the 'last' attribute of
4551 gdb.Symtab_and_line.
4552 (sal_object_getset): Add entry for the 'last' attribute.
4553
4554 2012-06-26 Doug Evans <dje@google.com>
4555
4556 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4557 (dwo_sections): Add macinfo, macro.
4558 (dwarf2_locate_dwo_sections): Watch for macro sections.
4559 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4560 All callers updated. Handle DWO files.
4561
4562 * NEWS: Mention new options "set debug dwarf2-read" and
4563 "set debug symtab-create".
4564 * dwarf2read.c (dwarf2_read_debug): New static global.
4565 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4566 (process_queue): Ditto.
4567 (process_full_comp_unit): Ditto.
4568 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4569 * elfread.c (elf_symfile_read): Add debugging printf.
4570 * minsyms.c (install_minimal_symbols): Ditto.
4571 * psymtab.c (allocate_psymtab): Ditto.
4572 * symfile.c (allocate_symtab): Ditto.
4573 * symtab.c (symtab_create_debug): New global.
4574 (_initialize_symtab): Add new option "set debug symtab-create".
4575 * symtab.h (symtab_create_debug): Declare.
4576
4577 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4578 (lookup_dwo_type_unit): Ditto.
4579
4580 2012-06-26 Roland McGrath <roland@hack.frob.com>
4581 H.J. Lu <hongjiu.lu@intel.com>
4582
4583 * amd64-linux-nat.c: Include <sys/user.h>.
4584 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4585 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4586 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4587
4588 * configure.ac: Check if the fs_base and gs_base members of
4589 `struct user_regs_struct' exist.
4590 * config.in: Regenerated.
4591 * configure: Likewise.
4592
4593 2012-06-25 Michael Eager <eager@eagercon.com>
4594
4595 PR python/14291
4596 * python/python.c (gdbpy_write): Check for interrupted output.
4597
4598 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4599
4600 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4601 register as a stack alignment in ARM mode.
4602
4603 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4604
4605 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4606 * gnulib/config.in: Regenerate.
4607 * gnulib/configure: Likewise.
4608 * gnulib/import/m4/extensions.m4: Update it.
4609 * gnulib/import/m4/gnulib-common.m4: Likewise.
4610 * gnulib/import/m4/memmem.m4: Likewise.
4611 * gnulib/import/m4/mmap-anon.m4: Likewise.
4612 * gnulib/import/m4/multiarch.m4: Likewise.
4613 * gnulib/import/stdint.in.h: Likewise.
4614
4615 2012-06-24 Yao Qi <yao@codesourcery.com>
4616
4617 * corefile.c (write_memory_with_notification): New.
4618 * gdbcore.h: Declare write_memory_with_notification.
4619 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4620 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4621 * valops.c (value_assign): Likewise.
4622 * python/py-inferior.c (infpy_write_memory): Call
4623 'write_memory_with_notification'.
4624
4625 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4626
4627 * cc-with-index.sh: Use also -ex "set auto-load no".
4628
4629 2012-06-23 Doug Evans <dje@google.com>
4630
4631 PR 14125
4632 * NEWS: Document additions to .gdb_index.
4633 * dwarf2read.c: #include "gdb/gdb-index.h".
4634 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4635 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4636 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4637 (dwarf2_read_index): Recognize version 7.
4638 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4639 block_kind, domain): All callers updated.
4640 (dw2_find_symbol_file): Handle new index CU values.
4641 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4642 (add_index_entry): New args is_static, kind. All callers updated.
4643 (offset_type_compare, uniquify_cu_indices): New functions
4644 (symbol_kind): New function.
4645 (write_psymtabs_to_index): Remove duplicate CU values.
4646 (write_psymtabs_to_index): Write .gdb_index version 7.
4647
4648 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4649
4650 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4651 * configure: Regenerate.
4652
4653 2012-06-20 Yao Qi <yao@codesourcery.com>
4654
4655 * python/py-inferior.c: Update comments of infpy_read_memory
4656 and infpy_write_memory.
4657
4658 2012-06-19 Tom Tromey <tromey@redhat.com>
4659
4660 PR exp/9514:
4661 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4662 (push_type_address_space): Remove.
4663 * parse.c (insert_into_type_stack): New function.
4664 (insert_type): Likewise.
4665 (insert_type_address_space): Rename from push_type_address_space.
4666 Insert tp_space_identifier.
4667 * c-exp.y (ptr_operator): New production.
4668 (abs_decl): Use ptr_operator.
4669 (space_identifier): Call insert_type_address_space.
4670 (ptype): Don't use const_or_volatile_or_space_identifier.
4671 (const_or_volatile_noopt): Call insert_type.
4672 (conversion_type_id, conversion_declarator): New productions.
4673 (operator): Use conversion_type_id.
4674
4675 2012-06-18 Doug Evans <dje@google.com>
4676
4677 * symtab.h (minimal_symbol): New member created_by_gdb.
4678 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4679 created by gdb.
4680 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4681 (search_symbols): Call it instead of lookup_symbol.
4682 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4683
4684 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4685 Adjust address for DW_OP_GNU_addr_index.
4686 * dwarf2expr.h (dwarf_expr_context): Update comment.
4687 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4688 all callers updated. Handle TLS vars described with
4689 DW_OP_GNU_const_index.
4690 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4691 and DW_OP_GNU_const_index.
4692 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4693
4694 * block.c (find_block_in_blockvector): Make explicit the fact that we
4695 ignore GLOBAL_BLOCK.
4696
4697 2012-06-18 Tom Tromey <tromey@redhat.com>
4698
4699 * c-exp.y (operator): Remove trailing space after "delete" and
4700 "delete[]".
4701
4702 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4703 Jan Kratochvil <jan.kratochvil@redhat.com>
4704
4705 Switch i386 and derived targets to ON_STACK.
4706 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4707 (amd64_dicos_init_abi): Remove its installment.
4708 * dicos-tdep.c (dicos_init_abi): Remove the
4709 set_gdbarch_call_dummy_location call. Update the comment here.
4710 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4711 (i386_dicos_init_abi): Remove its installment.
4712 * i386-tdep.c (i386_push_dummy_code): New function.
4713 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4714 i386_push_dummy_code.
4715
4716 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4717
4718 Remove stale dummy frames.
4719 * breakpoint.c: Include dummy-frame.h.
4720 (longjmp_breakpoint_ops): New variable.
4721 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4722 bp_longjmp_call_dummy.
4723 (bpstat_what, bptype_string, print_one_breakpoint_location)
4724 (init_bp_location): Support bp_longjmp_call_dummy.
4725 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4726 (set_longjmp_breakpoint_for_call_dummy)
4727 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4728 functions.
4729 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4730 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4731 FIXME comment and extend the other comment for bp_call_dummy.
4732 (set_longjmp_breakpoint_for_call_dummy)
4733 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4734 * dummy-frame.c: Include gdbthread.h.
4735 (pop_dummy_frame_bpt): New function.
4736 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4737 (dummy_frame_discard): New function.
4738 (cleanup_dummy_frames): Update the comment about longjmps.
4739 * dummy-frame.h (dummy_frame_discard): New declaration.
4740 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4741 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4742 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4743 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4744 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4745 keep_going if IS_LONGJMP and there is no other reason to stop.
4746
4747 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4748
4749 * remote-sim.c (sim_command_completer): Initialize
4750 variable 'result'.
4751
4752 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4753
4754 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4755 * dwarf2loc.c (call_site_parameter_matches): Support
4756 CALL_SITE_PARAMETER_PARAM_OFFSET.
4757 (needs_dwarf_reg_entry_value): Push stub value.
4758 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4759 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4760 * gdbtypes.h (enum call_site_parameter_kind): New item
4761 CALL_SITE_PARAMETER_PARAM_OFFSET.
4762 (struct call_site.parameter.u): New field param_offset.
4763
4764 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4765
4766 Code cleanup: Generalize call_site.parameter key.
4767 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4768 variable dwarf_reg. New variable kind_u. Update parameters to
4769 push_dwarf_reg_entry_value.
4770 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4771 * dwarf2expr.h (enum call_site_parameter_kind)
4772 (union call_site_parameter_u): Forward declarations.
4773 (struct dwarf_expr_context_funcs): Update parameters and their
4774 description for push_dwarf_reg_entry_value.
4775 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4776 * dwarf2loc.c (call_site_parameter_matches): New function.
4777 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4778 description. Use call_site_parameter_matches.
4779 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4780 Update parameters and their description.
4781 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4782 New variable kind_u. Adjust the caller for updated parameters.
4783 (needs_dwarf_reg_entry_value): Update parameters.
4784 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4785 instead of attr. Update for the changed fields of struct
4786 call_site_parameter.
4787 * gdbtypes.h: Include dwarf2expr.h.
4788 (enum call_site_parameter_kind): New.
4789 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4790 fb_offset into new union u.
4791
4792 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4793
4794 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4795 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4796 for x32.
4797
4798 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4799
4800 * amd64-linux-nat.c (compat_x32_clock_t): New.
4801 (compat_x32_siginfo_t): Likewise.
4802 (compat_x32_siginfo_from_siginfo): Likewise.
4803 (siginfo_from_compat_x32_siginfo): Likewise.
4804 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4805 and siginfo_from_compat_x32_siginfo for x32.
4806
4807 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4808
4809 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4810
4811 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4812
4813 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4814 instead of gdbarch_ptr_bit.
4815 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4816 (amd64_supply_native_gregset): Likewise.
4817 (amd64_collect_native_gregset): Likewise.
4818 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4819 (amd64_supply_xsave): Likewise.
4820 (amd64_collect_fxsave): Likewise.
4821 (amd64_collect_xsave): Likewise.
4822
4823 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4824
4825 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4826 (amd64_linux_read_description): Check DS segment register for
4827 x32 process.
4828
4829 2012-06-15 Tom Tromey <tromey@redhat.com>
4830
4831 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4832 init_cutu_and_read_dies.
4833
4834 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4835
4836 * MAINTAINERS (Write After Approval): Add myself to the list.
4837
4838 2012-06-15 Tom Tromey <tromey@redhat.com>
4839
4840 * valops.c (value_find_oload_method_list): Now static.
4841 * value.h (value_find_oload_method_list): Don't declare.
4842
4843 2012-06-15 Tom Tromey <tromey@redhat.com>
4844
4845 * valops.c (find_overload_match): Use value_ind.
4846
4847 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4848
4849 * infrun.c (handle_inferior_event): Correct indentation.
4850
4851 2012-06-14 Doug Evans <dje@google.com>
4852
4853 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4854 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4855 All uses updated.
4856 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4857 updated. Handle DEBUG_LOC_START_LENGTH.
4858 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4859 (loclist_describe_location): Ditto.
4860
4861 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4862
4863 PR backtrace/13866
4864 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4865 after hiding inline functions.
4866
4867 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4868
4869 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4870 _initialize_inf_ttrace.
4871
4872 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4873
4874 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4875 _initialize_hppa_hpux_nat.
4876
4877 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4878
4879 * remote-sim.c (sim_command_completer): Change type of return
4880 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4881
4882 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4883 Jan Kratochvil <jan.kratochvil@redhat.com>
4884
4885 PR tdep/14222
4886 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4887 stack on a 16-byte boundary.
4888
4889 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4890
4891 * jit.c (finalize_symtab): Set function's return type to 'void' by
4892 default.
4893
4894 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4895 H.J. Lu <hongjiu.lu@intel.com>
4896
4897 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4898 Move bits common to both the classic LP64 and the new x32 ILP32
4899 ABI here.
4900 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4901 (amd64_x32_linux_init_abi): New function.
4902 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4903 subtype.
4904
4905 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4906 * i386-tdep.c (i386_pseudo_register_name): Make public.
4907 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4908 * amd64-tdep.c (amd64_dword_names): Add "eip".
4909 (amd64_x32_pseudo_register_type): New function
4910 (amd64_x32_init_abi): New function.
4911
4912 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4913
4914 PR build/14003
4915 * inferior.h (struct inferior_suspend_state): Comment out.
4916 (struct inferior): Comment out the field suspend.
4917 * infrun.c (struct infcall_suspend_state): Comment out the field
4918 inferior_suspend.
4919 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4920 out its assignment.
4921
4922 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4923
4924 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4925 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4926 function comment. Return ERROR for unresolved cases. Implement
4927 returning proper NAME.
4928 (yylex): Accept also NAME from classify_inner_name.
4929 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4930 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4931 LOC_TYPEDEF type.
4932 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4933
4934 2012-06-13 Tom Tromey <tromey@redhat.com>
4935
4936 * breakpoint.c (condition_completer): New function.
4937 (_initialize_breakpoint): Use it.
4938 * value.c (complete_internalvar): New function.
4939 * value.h (complete_internalvar): Declare.
4940
4941 2012-06-13 Tom Tromey <tromey@redhat.com>
4942
4943 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4944 * breakpoint.c (catch_syscall_completer): Return a VEC.
4945 * cli/cli-cmds.c (complete_command): Update.
4946 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4947 (complete_on_enum): Likewise.
4948 * command.h: Include gdb_vecs.h.
4949 (completer_ftype): Change return type.
4950 (complete_on_cmdlist, complete_on_enum): Likewise.
4951 * completer.c (noop_completer, filename_completer)
4952 (location_completer): Return a VEC.
4953 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4954 to a VEC.
4955 (expression_completer, complete_line_internal, complete_line)
4956 (command_completer): Return a VEC.
4957 (gdb_completion_word_break_characters, line_completion_function):
4958 Update.
4959 * completer.h: Include gdb_vecs.h.
4960 (complete_line, noop_completer, filename_completer)
4961 (expression_completer, location_completer, command_completer):
4962 Update.
4963 * f-lang.c (f_word_break_characters): Return a VEC.
4964 * interps.c (interpreter_completer): Return a VEC.
4965 * language.h (struct language_defn)
4966 <la_make_symbol_completion_list>: Return a VEC.
4967 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4968 * symtab.c (free_completion_list): Take a VEC.
4969 (return_val_size, return_val_index): Remove.
4970 (return_val): Now a VEC.
4971 (completion_list_add_name): Update.
4972 (default_make_symbol_completion_list_break_on)
4973 (default_make_symbol_completion_list, make_symbol_completion_list)
4974 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4975 Return a VEC.
4976 (add_filename_to_list): Update.
4977 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4978 <list>: Now a VEC.
4979 (maybe_add_partial_symtab_filename): Update.
4980 (make_source_files_completion_list): Return a VEC.
4981 * symtab.h (default_make_symbol_completion_list_break_on)
4982 (default_make_symbol_completion_list, make_symbol_completion_list)
4983 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4984 (make_source_files_completion_list): Update.
4985
4986 2012-06-13 Tom Tromey <tromey@redhat.com>
4987
4988 * breakpoint.c (add_catch_command): Use completer_ftype.
4989 * breakpoint.h: Include command.h.
4990 (add_catch_command): Use completer_ftype.
4991 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4992 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4993 Use completer_ftype.
4994 * command.h (completer_ftype): New typedef.
4995 (set_cmd_completer): Use it.
4996 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4997 completer_ftype.
4998
4999 2012-06-13 Pedro Alves <palves@redhat.com>
5000
5001 Partial revert of previous change.
5002
5003 * serial.c (scb_base): New global.
5004 (serial_for_fd): New.
5005 (serial_open, serial_fdopen_ops): Link new serial in open serials
5006 chain.
5007 (do_serial_close): Unlink serial from the open serials chain.
5008
5009 2012-06-12 Pedro Alves <palves@redhat.com>
5010
5011 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5012 threads here.
5013 (prepare_for_detach): No longer context switch here in non-stop
5014 mode.
5015 (fetch_inferior_event): Ditto.
5016 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5017 to the event thread before removing breakpoints. Switch to the
5018 event thread before inserting breakpoints and resuming.
5019 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5020 event thread before resuming.
5021 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5022 Switch to the event thread before removing breakpoints.
5023
5024 2012-06-12 Eli Zaretskii <eliz@gnu.org>
5025
5026 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5027 special characters correctly for the Windows shells. See
5028 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5029 report.
5030 [!__MINGW32__]: Remove extra double quote character from special
5031 characters.
5032
5033 2012-06-11 Stan Shebs <stan@codesourcery.com>
5034
5035 * ui-out.h: Remove #if 0 declarations.
5036 * ui-out.c: Remove #if 0 functions.
5037
5038 2012-06-11 Pedro Alves <palves@redhat.com>
5039
5040 * ser-base.c (run_async_handler_and_reschedule): New.
5041 (fd_event, push_event): Use it.
5042 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5043 reference count to 1.
5044 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5045 instead of xfree.
5046 (serial_is_open, serial_ref, serial_unref): New.
5047 * serial.h (serial_open): Adjust comment.
5048 (serial_is_open): Declare.
5049 (serial_close): Adjust comment.
5050 (serial_ref, serial_unref) Declare.
5051 (struct serial): New field 'refcnt'.
5052
5053 2012-06-11 Pedro Alves <palves@redhat.com>
5054
5055 Remove #if 0'd "connect" command, and unnecessary associated
5056 refcounting and serial reuse bits.
5057
5058 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5059 * serial.c (last_serial_opened): Delete.
5060 (scb_base): Delete.
5061 (serial_open): Adjust.
5062 (serial_for_fd): Delete.
5063 (serial_fdopen_ops, do_serial_close): Adjust.
5064 (serial_fdopen_ops): Adjust.
5065
5066 2012-06-11 Pedro Alves <palves@redhat.com>
5067
5068 * serial.c (do_serial_close): Remove early return when SCB is
5069 null.
5070
5071 2012-06-11 Tom Tromey <tromey@redhat.com>
5072
5073 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5074
5075 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5076
5077 Fix regression by the "ambiguous linespec" series.
5078 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5079 get_last_displayed_symtab and get_last_displayed_line and depending
5080 on CURSAL.
5081
5082 2012-06-11 Tom Tromey <tromey@redhat.com>
5083
5084 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5085 (dw2_find_symbol_file): Use it.
5086
5087 2012-06-11 Michael Eager <eager@eagercon.com>
5088
5089 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5090 * mips-linux-tdep.h (mips_signals): New
5091
5092 2012-06-11 Tom Tromey <tromey@redhat.com>
5093
5094 * infrun.c (handle_inferior_event)
5095 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5096 breakpoint.
5097 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5098 exception logic in all cases. Update comments.
5099 (insert_longjmp_resume_breakpoint): Set the exception resume
5100 breakpoint.
5101
5102 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5103
5104 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5105
5106 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5107
5108 * valarith.c (binop_types_user_defined_p): Fix a typo.
5109
5110 2012-06-08 Yao Qi <yao@codesourcery.com>
5111 Chung-Lin Tang <cltang@codesourcery.com>
5112
5113 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5114 * arch-utils.h: Declare.
5115 * gdbarch.sh: Add return_in_first_hidden_param_p.
5116 * gdbarch.c, gdbarch.h: Regenerated.
5117 * infcall.c (call_function_by_hand): Call
5118 gdbarch_return_in_first_hidden_param_p instead of
5119 language_pass_by_reference.
5120
5121 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5122 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5123 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5124 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5125 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5126 `cplus_return_struct_by_reference'.
5127 (tic6x_return_value): Handle language cplusplus.
5128 (tic6x_return_in_first_hidden_param_p): New.
5129 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5130
5131 2012-06-07 Doug Evans <dje@google.com>
5132
5133 * dwarf2read.c (dwarf2_cu): Add comment.
5134
5135 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5136
5137 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5138 variable.
5139 (mips_eabi_push_dummy_call): Likewise.
5140 (mips_n32n64_push_dummy_call): Likewise.
5141 (mips_o32_push_dummy_call): Likewise.
5142 (mips_o64_push_dummy_call): Likewise.
5143
5144 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5145
5146 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5147
5148 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5149
5150 * mips-tdep.c (mips_pseudo_register_type): Use
5151 mips_float_register_p.
5152
5153 2012-06-06 Pedro Alves <palves@redhat.com>
5154
5155 * infrun.c (handle_inferior_event): Remove calls to
5156 reinit_frame_cache that follow a context_switch call.
5157
5158 2012-06-06 Pedro Alves <palves@redhat.com>
5159
5160 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5161 context_switch and remove stale comment.
5162
5163 2012-06-06 Pedro Alves <palves@redhat.com>
5164
5165 * infrun.c (struct execution_control_state): Remove
5166 `new_thread_event' field.
5167 (handle_inferior_event): Simplify new threads handling; don't
5168 resume the inferior if we find a new thread.
5169
5170 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5171
5172 * NEWS: Document the deprecation of SH's 'regs' command.
5173 * inferior.h (all_registers_info): Add function declaration.
5174 * sh-tdep.c (sh_show_regs): Remove variable.
5175 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5176 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5177 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5178 (sh_show_regs_command): Remove functions.
5179 (sh_gdbarch_init): Don't set sh_show_regs.
5180 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5181 'info all-registers'.
5182 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5183 (sh64_show_regs): Remove functions.
5184 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5185
5186 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5187
5188 * configure.ac: Move development=true below AC_INIT.
5189 * configure: Regenerate.
5190
5191 2012-06-05 Stan Shebs <stan@codesourcery.com>
5192
5193 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5194 gdb_stdout.
5195
5196 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5197
5198 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5199 argument as ssize_t.
5200 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5201 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5202 * target.c (target_read_stack, target_write_memory)
5203 (target_write_raw_memory): Likewise.
5204 * target.h (target_read_stack, target_write_memory)
5205 (target_write_raw_memory): Likewise.
5206
5207 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5208
5209 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5210 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5211 * target.c (target_read_memory): Change LEN to ssize_t.
5212 * target.h (target_read_memory): Change LEN to ssize_t.
5213
5214 2012-06-05 Pedro Alves <palves@redhat.com>
5215
5216 PR backtrace/13866
5217
5218 * breakpoint.c (until_break_command): Only fetch the selected
5219 frame after decode_line_1.
5220
5221 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5222
5223 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5224 event breakpoint at _start, __start or main if a program
5225 interpreter is not found.
5226
5227 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5228
5229 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5230 Add declaration.
5231 * windows-tdep.c: #include "objfiles.h".
5232 (windows_iterate_over_objfiles_in_search_order): New function.
5233 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5234 iterate_over_objfiles_in_search_order gdbarch method to
5235 windows_iterate_over_objfiles_in_search_order.
5236 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5237
5238 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5239
5240 * gdbarch.sh: Add generation of
5241 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5242 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5243 (iterate_over_objfiles_in_search_order): New gdbarch method.
5244 * gdbarch.h, gdbarch.c: Regenerate.
5245 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5246 Add declaration.
5247 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5248 New function.
5249 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5250 out of lookup_symbol_aux_symtabs.
5251 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5252 call to lookup_symbol_aux_objfile.
5253 (struct global_sym_lookup_data): New type.
5254 (lookup_symbol_global_iterator_cb): New function.
5255 (lookup_symbol_global): Search for symbol using
5256 gdbarch_iterate_over_objfiles_in_search_order and
5257 lookup_symbol_global_iterator_cb.
5258 * findvar.c (struct minsym_lookup_data): New type.
5259 (minsym_lookup_iterator_cb): New function.
5260 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5261 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5262 and minsym_lookup_iterator_cb.
5263
5264 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5265
5266 Revert the following patch:
5267 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5268 try locating the symbol in the symbol's own objfile first, before
5269 extending the search to all objfiles.
5270 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5271 out of lookup_symbol_aux_symtabs.
5272 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5273 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5274 Do not search EXCLUDE_OBJFILE.
5275 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5276 (lookup_symbol_global): Search for matches in the block's objfile
5277 first, before searching all other objfiles.
5278
5279 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5280
5281 * breakpoint.c (find_condition_and_thread): Stop parsing
5282 as soon as the first invalid keyword is found.
5283
5284 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5285
5286 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5287
5288 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5289
5290 * config/djgpp/djcheck.sh: Add copyright header.
5291
5292 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5293
5294 * copyright.py (update_files, main): Fix path to update-copyright
5295 script.
5296
5297 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5298
5299 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5300 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5301 for which a reminder to update by hand is printed.
5302
5303 2012-06-04 Doug Evans <dje@google.com>
5304
5305 * buildsym.c (make_blockvector): Add comment.
5306
5307 2012-06-04 Pedro Alves <palves@redhat.com>
5308
5309 * arch-utils.c (default_gdb_signal_from_target): Delete.
5310 * arch-utils.h (default_gdb_signal_from_target): Delete.
5311 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5312 gdbarch_gdb_signal_from_target_p.
5313 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5314 predicate).
5315 * gdbarch.h: Regenerate.
5316 * gdbarch.c: Regenerate.
5317
5318 2012-06-04 Pedro Alves <palves@redhat.com>
5319
5320 * gdbarch.sh (gdb_signal_from_target): Mention that the
5321 implementation of the method must be host independent.
5322 * gdbarch.h: Regenerate.
5323
5324 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5325
5326 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5327 parameters.
5328 (target_read_memory_bfd): New function.
5329 (symbol_file_add_from_memory): Use it.
5330
5331 2012-06-03 Doug Evans <dje@google.com>
5332
5333 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5334 of primary symtab.
5335 (basic_lookup_transparent_type): Ditto.
5336
5337 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5338 (ALL_PRIMARY_SYMTABS): Use it.
5339 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5340 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5341 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5342 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5343 (basic_lookup_transparent_type): Ditto.
5344
5345 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5346
5347 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5348 it to optimize resolution of demangled name.
5349
5350 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5351
5352 * configure.ac (development): Define new variable.
5353 Call AC_CHECK_LIB for mcheck if $development.
5354 (ERROR_ON_WARNING): Enable it by default only if $development.
5355 * config.in: Regenerate.
5356 * configure: Regenerate.
5357
5358 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5359
5360 * target.c (target_read_memory): Make LEN argument as size_t.
5361 * target.h (target_read_memory): Likewise.
5362
5363 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5364
5365 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5366
5367 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5368
5369 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5370 BookE interface for PowerPC server processors if not available
5371 in the Linux Kernel.
5372
5373 2012-05-31 Keith Seitz <keiths@redhat.com>
5374
5375 * linespec.c (decode_objc): Add cleanup to free
5376 INFO.FILE_SYMTABS.
5377 (find_linespec_symbols): Add cleanup to free CLASSES.
5378 * symfile.c (find_separate_debug_file_by_debuglink): Add
5379 cleanup to free DEBUGLINK.
5380 * ui-out.c (clear_header_list): No need to check if
5381 HEADER_NEXT.COLHDR is NULL.
5382 Free HEADER_NEXT.COL_NAME.
5383
5384 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5385
5386 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5387 warning.
5388
5389 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5390
5391 * configure.host (gdb_host_cpu): Handle tilegx*.
5392 (gdb_host): Handle tilegx-*-linux*.
5393 * tilegx-linux-nat.c: New file.
5394 * config/tilegx/linux.mh: New file.
5395
5396 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5397
5398 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5399 tilegx-linux-tdep.o.
5400 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5401 tilegx-linux-tdep.c.
5402 * configure.tgt: Handle tilegx-*-linux*.
5403 * tilegx-tdep.h: New file.
5404 * tilegx-tdep.c: New file.
5405 * tilegx-linux-tdep.c: New file.
5406 * regformats/reg-tilegx.dat: New file.
5407
5408 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5409
5410 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5411 accounting of hw watchpoints on ppc.
5412
5413 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5414
5415 * source.c (openp): Expand tilde in path entries.
5416
5417 2012-05-29 Doug Evans <dje@google.com>
5418
5419 * buildsym.c (block_compar): Fix comment.
5420 (end_symtab): Fix and clarify some comments.
5421
5422 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5423 cleanup_undefined_types.
5424 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5425 All callers updated.
5426
5427 2012-05-29 Tom Tromey <tromey@redhat.com>
5428
5429 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5430 fails.
5431 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5432 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5433 fails.
5434 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5435 fails.
5436
5437 2012-05-29 Tristan Gingold <gingold@adacore.com>
5438
5439 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5440 (struct darwin_info): ... New struct.
5441 (solib_darwin_pspace_data): New variable.
5442 (darwin_pspace_data_cleanup): New function.
5443 (get_darwin_info): Likewise.
5444 (darwin_dyld_version_ok, darwin_load_image_infos)
5445 (darwin_solib_get_all_image_info_addr_at_init)
5446 (darwin_solib_read_all_image_info_addr): Add info argument.
5447 Adjust code.
5448 (darwin_current_sos): Use per pspace structure.
5449 (darwin_solib_create_inferior_hook): Likewise.
5450 (darwin_clear_solib): Likewise.
5451 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5452
5453 2012-05-28 Pedro Alves <palves@redhat.com>
5454
5455 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5456 block that uses them. Clear ecss before handling each event.
5457
5458 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5459
5460 * solib-svr4.c (svr4_current_sos): New comment on
5461 svr4_current_sos_via_xfer_libraries fall back.
5462
5463 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5464
5465 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5466 it as a fallback for TYPE_IS_OPAQUE.
5467 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5468 symbols for lookup_symbol.
5469
5470 2012-05-24 John Steele Scott <toojays@toojays.net>
5471
5472 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5473 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5474 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5475 (check_producer): ... this new function, which also checks for ICC
5476 and caches the result.
5477 (producer_is_icc): New function.
5478 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5479 producer was ICC.
5480
5481 2012-05-24 Pedro Alves <palves@redhat.com>
5482
5483 PR gdb/7205
5484
5485 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5486 (default_gdb_signal_to_target): ... this. Add comment.
5487 (default_gdb_signal_from_host): Rename to ...
5488 (default_gdb_signal_from_target): ... this. Add comment.
5489 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5490 (default_gdb_signal_to_target): ... this.
5491 (default_gdb_signal_from_host): Rename to ...
5492 (default_gdb_signal_from_target): ... this.
5493 * corelow.c (core_open): Adjust to naming change. Replace comment.
5494 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5495 (gdb_signal_from_target): ... this. Adjust to
5496 default_gdb_signal_from_host naming change. Extend comment.
5497 (gdb_signal_to_host): Rename to ...
5498 (gdb_signal_to_target): ... this. Adjust to
5499 default_gdb_signal_to_host naming change.
5500 * gdbarch.h, gdbarch.c: Renegerate.
5501
5502 2012-05-24 Pedro Alves <palves@redhat.com>
5503
5504 PR gdb/7205
5505
5506 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5507
5508 2012-05-24 Pedro Alves <palves@redhat.com>
5509
5510 PR gdb/7205
5511
5512 Replace target_signal with gdb_signal throughout.
5513
5514 2012-05-24 Pedro Alves <palves@redhat.com>
5515
5516 PR tui/14159
5517
5518 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5519 string, instead of reusing the va_list argument.
5520
5521 2012-05-24 Tom Tromey <tromey@redhat.com>
5522
5523 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5524 Remove.
5525
5526 2012-05-23 Doug Evans <dje@google.com>
5527
5528 * symtab.c (search_symbols): Formatting fixes.
5529 (print_symbol_info): Formatting fixes.
5530
5531 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5532 int64_t change to leb128 API.
5533 (read_encoded_value, decode_frame_entry_1): Ditto.
5534 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5535 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5536 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5537 (execute_stack_op): Ditto.
5538 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5539 (safe_read_uleb128, safe_read_sleb128): Ditto.
5540 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5541 (dwarf2_compile_expr_to_ax): Ditto.
5542 (locexpr_describe_location_piece): Ditto.
5543 (disassemble_dwarf_expression): Ditto.
5544 (locexpr_describe_location_1): Ditto.
5545
5546 2012-05-23 Stan Shebs <stan@codesourcery.com>
5547 Kwok Cheung Yeung <kcy@codesourcery.com>
5548
5549 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5550 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5551 (mi-cmd-info.o): New rule.
5552 * osdata.h (info_osdata_command): New declaration.
5553 * osdata.c (info_osdata_command): Change to non-static.
5554 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5555 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5556 * mi/mi-cmd-info.c: New file.
5557
5558 2012-05-23 Doug Evans <dje@google.com>
5559
5560 * symtab.c (search_symbols): Pass NULL for file_matcher to
5561 expand_symtabs_matching if there are no files to match.
5562
5563 * gdbtypes.c (lookup_typename): Simplify.
5564
5565 2012-05-23 Pedro Alves <palves@redhat.com>
5566
5567 * arch-utils.h (default_target_signal_to_host): Delete.
5568 * arch-utils.c (default_target_signal_to_host): Delete.
5569 * gdbarch.sh (target_signal_to_host): Remove.
5570 * gdbarch.h, gdbarch.c: Regenerate.
5571
5572 2012-05-22 Doug Evans <dje@google.com>
5573
5574 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5575 "const gdb_byte *".
5576 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5577 (execute_cfa_program): Update to match API of leb128 functions.
5578 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5579 "const gdb_byte *".
5580 (read_unsigned_leb128, read_signed_leb128): Delete.
5581 (read_initial_length): Change type of buf argument to
5582 "const gdb_byte *".
5583 (read_encoded_value): Update to match API of leb128 functions.
5584 (decode_frame_entry): Change result to "const gdb_byte *", and
5585 similarly for "start" parameter.
5586 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5587 (dwarf2_build_frame_info): Change local frame_ptr to
5588 "const gdb_byte *".
5589 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5590 read_uleb128, read_sleb128. All callers updated.
5591 (safe_skip_leb128): New function.
5592 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5593 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5594 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5595 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5596 read_uleb128, read_sleb128.
5597 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5598 (execute_stack_op): Update to match API of leb128 functions.
5599 * dwarf2expr.h: #include "leb128.h".
5600 (read_uleb128, read_sleb128): Delete.
5601 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5602 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5603 * dwarf2loc.c (debug_loc_kind): New enum.
5604 (decode_debug_loc_addresses): New function.
5605 (decode_debug_loc_dwo_addresses): New function.
5606 (dwarf2_find_location_expression): Rewrite.
5607 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5608 (locexpr_describe_location_piece): Ditto.
5609 (disassemble_dwarf_expression): Ditto.
5610 (locexpr_describe_location_1): Ditto.
5611 (loclist_describe_location): Rewrite.
5612 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5613 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5614 (dwarf2_section_buffer_overflow_complaint): Renamed from
5615 dwarf2_macros_too_long_complaint. All callers updated.
5616 (skip_leb128): Delete.
5617 (init_cu_die_reader): Initialize reader->buffer_end.
5618 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5619 (skip_form_bytes): New arg buffer_end. All callers updated.
5620 Replace call to skip_leb128 with gdb_skip_leb128.
5621 (skip_unknown_opcode): New arg mac_end. All callers updated.
5622 (fill_in_loclist_baton): Initialize baton->from_dwo.
5623
5624 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5625
5626 * mips-linux-nat.c (mips_linux_read_description): Use a more
5627 verbose error message.
5628
5629 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5630
5631 * NEWS: Add MIPS/Linux DSP support.
5632 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5633 (SIGCONTEXT_DSPCTL): New macro.
5634 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5635 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5636 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5637 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5638 (N64_SIGCONTEXT_HI3): Likewise.
5639 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5640 (N64_SIGCONTEXT_LO3): Likewise.
5641 (N64_SIGCONTEXT_DSPCTL): Likewise.
5642 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5643 (mips_linux_o32_sigframe_init): Handle DSP registers.
5644 (mips_linux_n32n64_sigframe_init): Likewise.
5645
5646 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5647
5648 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5649 call to abort.
5650
5651 2012-05-22 Pedro Alves <palves@redhat.com>
5652
5653 * target.h (store_waitstatus): Move declaration ...
5654 * inf-child.h (store_waitstatus): ... here.
5655 * target.c: Move inclusion of gdb_wait.h, and ...
5656 (store_waitstatus): ... this ...
5657 * inf-child.c: ... here.
5658 * linux-nat.c: Include inf-child.h.
5659 * rs6000-nat.c: Include inf-child.h.
5660 * spu-linux-nat.c: Include inf-child.h.
5661
5662 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5663
5664 * tracepoint.c (start_tracing): Add missing i18n markup.
5665 (stop_tracing, set_trace_user): Ditto.
5666 (set_trace_notes, set_trace_stop_notes): Ditto.
5667
5668 2012-05-21 Tom Tromey <tromey@redhat.com>
5669
5670 PR c++/7173:
5671 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5672 types.
5673 * value.h (value_cast_pointers): Update.
5674 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5675 (value_cast): Update.
5676 (update_search_result): New function.
5677 (do_search_struct_field): New, from search_struct_field. Check
5678 for ambiguous results.
5679 (search_struct_field): Rewrite.
5680 * infcall.c (value_arg_coerce): Update.
5681 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5682 value_cast_pointers.
5683 * ada-lang.c (ada_convert_actual): Update.
5684
5685 2012-05-21 Tom Tromey <tromey@redhat.com>
5686
5687 * macroexp.c (macro_stringify): Terminate the string.
5688
5689 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5690
5691 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5692 Describe it.
5693 * auto-load.c (auto_load_expand_dir_vars): New function.
5694 (auto_load_safe_path_vec_update): Use it, remove the
5695 substitute_path_component call thanks to it.
5696 (auto_load_objfile_script): Remove the debug_file_directory processing.
5697 Use auto_load_expand_dir_vars, remove the substitute_path_component
5698 call thanks to it.
5699 * configure: Regenerate.
5700 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5701 path. Escape $ also for $debugdir.
5702 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5703 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5704
5705 2012-05-20 Doug Evans <dje@google.com>
5706
5707 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5708 before use. Check for symtab->includes == NULL before scanning it.
5709
5710 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5711
5712 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5713
5714 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5715
5716 * NEWS: Add microMIPS support and "set mips compression",
5717 "show mips compression" commands.
5718 * mips-tdep.h (mips_isa): New enum.
5719 (gdbarch_tdep): Add mips_isa.
5720 (mips_pc_is_mips16): Update prototype.
5721 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5722 * mips-tdep.c (mips_compression_mips16): New variable.
5723 (mips_compression_micromips): Likewise.
5724 (mips_compression_strings): Likewise.
5725 (mips_compression_string): Likewise.
5726 (is_mips16_isa, is_micromips_isa): New functions.
5727 (is_mips16_addr): Rename to...
5728 (is_compact_addr): ... this.
5729 (unmake_mips16_addr): Likewise to...
5730 (unmake_compact_addr): ... this.
5731 (make_mips16_addr): Likewise to...
5732 (make_compact_addr): ... this.
5733 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5734 functions.
5735 (mips_elf_make_msymbol_special): Handle microMIPS code.
5736 (msymbol_is_special): Rename to...
5737 (msymbol_is_mips16): ... this.
5738 (mips_make_symbol_special, mips_pc_is_mips16): Update
5739 accordingly.
5740 (msymbol_is_mips, msymbol_is_micromips): New functions.
5741 (mips16_to_32_reg): Rename to...
5742 (mips_reg3_to_reg): ... this.
5743 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5744 (mips_pc_isa): Likewise.
5745 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5746 code.
5747 (mips_fetch_instruction): Pass return status instead of printing
5748 an error message if requested. Handle microMIPS code. Bail out
5749 on an invalid ISA.
5750 (micromips_op): New macro.
5751 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5752 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5753 (b6s4_op, b7s3_reg): Likewise.
5754 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5755 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5756 (mips_insn_size): New function.
5757 (mips32_next_pc): Update mips_fetch_instruction call.
5758 (micromips_relative_offset7): New function.
5759 (micromips_relative_offset10): Likewise.
5760 (micromips_relative_offset16): Likewise.
5761 (micromips_pc_insn_size): Likewise.
5762 (micromips_bc1_pc): Likewise.
5763 (micromips_next_pc): Likewise.
5764 (unpack_mips16): Update mips_fetch_instruction call.
5765 (extended_mips16_next_pc): Update according to change to
5766 mips16_to_32_reg.
5767 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5768 code.
5769 (mips16_scan_prologue): Update mips_fetch_instruction call.
5770 Update according to change to mips16_to_32_reg.
5771 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5772 (mips_insn16_frame_base_sniffer): Likewise.
5773 (micromips_decode_imm9): New function.
5774 (micromips_scan_prologue): Likewise.
5775 (mips_micro_frame_cache): Likewise.
5776 (mips_micro_frame_this_id): Likewise.
5777 (mips_micro_frame_prev_register): Likewise.
5778 (mips_micro_frame_sniffer): Likewise.
5779 (mips_micro_frame_unwind): New variable.
5780 (mips_micro_frame_base_address): New function.
5781 (mips_micro_frame_base): New variable.
5782 (mips_micro_frame_base_sniffer): New function.
5783 (mips32_scan_prologue): Update mips_fetch_instruction call.
5784 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5785 rather than for MIPS16.
5786 (mips_insn32_frame_base_sniffer): Likewise.
5787 (mips_addr_bits_remove): Handle microMIPS code.
5788 (deal_with_atomic_sequence): Rename to...
5789 (mips_deal_with_atomic_sequence): ... this. Update the type
5790 of the variable used to hold an instruction. Remove the ISA bit
5791 check. Update mips_fetch_instruction call.
5792 (micromips_deal_with_atomic_sequence): New function.
5793 (deal_with_atomic_sequence): Likewise.
5794 (mips_about_to_return): Handle microMIPS code. Update
5795 mips_fetch_instruction call.
5796 (heuristic_proc_start): Check for the standard MIPS ISA rather
5797 than for MIPS16. Update mips_pc_is_mips16 and
5798 mips_fetch_instruction calls. Handle microMIPS code.
5799 (mips_push_dummy_code): Handle microMIPS code.
5800 (mips_eabi_push_dummy_call): Likewise.
5801 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5802 (mips_o64_push_dummy_call): Handle microMIPS code.
5803 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5804 (is_delayed): Remove function.
5805 (mips_single_step_through_delay): Replace the call to is_delayed
5806 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5807 Handle microMIPS code.
5808 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5809 microMIPS code.
5810 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5811 call.
5812 (micromips_in_function_epilogue_p): New function.
5813 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5814 call.
5815 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5816 Handle microMIPS.
5817 (gdb_print_insn_mips): Likewise.
5818 (mips_breakpoint_from_pc): Likewise.
5819 (mips_remote_breakpoint_from_pc): New function.
5820 (mips32_instruction_has_delay_slot): Simplify making use of the
5821 updated mips_fetch_instruction interface.
5822 (micromips_instruction_has_delay_slot): New function.
5823 (mips16_instruction_has_delay_slot): Simplify making use of the
5824 updated mips_fetch_instruction interface.
5825 (mips_adjust_breakpoint_address): Check for the standard MIPS
5826 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5827 calls. Handle microMIPS code.
5828 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5829 (mips_skip_trampoline_code): Handle microMIPS code.
5830 (global_mips_compression): New function.
5831 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5832 file flags. Register the microMIPS remote breakpoint handler
5833 and heuristic frame unwinder.
5834 (show_mips_compression): New function.
5835 (_initialize_mips_tdep): Add the "set mips compression" and
5836 "show mips compression" commands.
5837
5838 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5839
5840 * ada-lang.c:
5841 * ada-tasks.c:
5842 * ada-varobj.c:
5843 * amd64-darwin-tdep.c:
5844 * arm-symbian-tdep.c:
5845 * arm-tdep.c:
5846 * avr-tdep.c:
5847 * ax-gdb.c:
5848 * bfin-linux-tdep.c:
5849 * breakpoint.c:
5850 * c-valprint.c:
5851 * cli/cli-cmds.c:
5852 * coffread.c:
5853 * cp-support.c:
5854 * cris-tdep.c:
5855 * dwarf2-frame-tailcall.c:
5856 * dwarf2-frame.c:
5857 * dwarf2expr.c:
5858 * dwarf2loc.c:
5859 * dwarf2read.c:
5860 * elfread.c:
5861 * eval.c:
5862 * expprint.c:
5863 * f-valprint.c:
5864 * frv-tdep.c:
5865 * h8300-tdep.c:
5866 * hppa-hpux-tdep.c:
5867 * hppa-tdep.c:
5868 * hppanbsd-tdep.c:
5869 * i386-nto-tdep.c:
5870 * i386-tdep.c:
5871 * i387-tdep.c:
5872 * ia64-tdep.c:
5873 * jit.c:
5874 * linespec.c:
5875 * linux-tdep.c:
5876 * lm32-tdep.c:
5877 * m2-valprint.c:
5878 * m32c-tdep.c:
5879 * m32r-rom.c:
5880 * m32r-tdep.c:
5881 * m68k-tdep.c:
5882 * m68klinux-tdep.c:
5883 * mi/mi-main.c:
5884 * microblaze-tdep.c:
5885 * mips-linux-tdep.c:
5886 * mips-tdep.c:
5887 * mn10300-tdep.c:
5888 * p-valprint.c:
5889 * parse.c:
5890 * ppc-linux-tdep.c:
5891 * ppc-sysv-tdep.c:
5892 * printcmd.c:
5893 * python/py-finishbreakpoint.c:
5894 * python/py-inferior.c:
5895 * python/py-infthread.c:
5896 * python/py-type.c:
5897 * python/python.c:
5898 * remote-fileio.c:
5899 * remote-m32r-sdi.c:
5900 * remote-mips.c:
5901 * reverse.c:
5902 * rl78-tdep.c:
5903 * rs6000-aix-tdep.c:
5904 * rs6000-tdep.c:
5905 * s390-tdep.c:
5906 * score-tdep.c:
5907 * sh64-tdep.c:
5908 * skip.c:
5909 * solib-darwin.c:
5910 * solib-dsbt.c:
5911 * solib-frv.c:
5912 * sparc-tdep.c:
5913 * spu-multiarch.c:
5914 * spu-tdep.c:
5915 * stack.c:
5916 * symfile.c:
5917 * symtab.c:
5918 * tic6x-tdep.c:
5919 * tracepoint.c:
5920 * v850-tdep.c:
5921 * valarith.c:
5922 * valprint.c:
5923 * value.c:
5924 * xcoffread.c:
5925 * xtensa-tdep.c:
5926 * ada-lang.c:
5927 * ada-tasks.c:
5928 * ada-varobj.c:
5929 * amd64-darwin-tdep.c:
5930 * arm-symbian-tdep.c:
5931 * arm-tdep.c: Delete unused variables.
5932
5933 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5934
5935 Rename $ddir to $datadir.
5936 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5937 * auto-load.c (auto_load_safe_path_vec_update)
5938 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5939 * configure: Regenerate.
5940 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5941 Likewise. Remove the 'use $ddir' help string.
5942
5943 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5944
5945 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5946 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5947
5948 2012-05-18 Tom Tromey <tromey@redhat.com>
5949
5950 PR exp/13907:
5951 * valprint.h (struct value_print_options) <symbol_print>: New
5952 field.
5953 * valprint.c (user_print_options): Add default for symbol_print.
5954 (show_symbol_print): New function.
5955 (generic_val_print): Respect symbol_print.
5956 (_initialize_valprint): Add "print symbol" setting.
5957 * f-valprint.c (f_val_print): Respect symbol_print.
5958 * c-valprint.c (c_val_print): Respect symbol_print.
5959 * NEWS: Update.
5960 * printcmd.c (print_address_symbolic): Return int. Ignore some
5961 zero-size symbols.
5962 (print_address_demangle): Return int.
5963 * defs.h: (print_address_symbolic): Return int.
5964 * value.h (print_address_demangle): Return int.
5965
5966 2012-05-18 Tom Tromey <tromey@redhat.com>
5967
5968 * valprint.c (val_print_string): Don't print leading space.
5969 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5970 print space before string or vtbl.
5971 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5972 before string.
5973 * jv-valprint.c (java_value_print): Print space before string.
5974 * go-valprint.c (print_go_string): Print space before string.
5975 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5976 space before string.
5977 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5978 space before string or vtbl.
5979 * auxv.c (fprint_target_auxv): Print space after address.
5980
5981 2012-05-18 Tom Tromey <tromey@redhat.com>
5982
5983 * printcmd.c (print_address_demangle): Remove special case for 0.
5984
5985 2012-05-18 Tom Tromey <tromey@redhat.com>
5986
5987 * printcmd.c (print_address_demangle): Add 'opts' argument.
5988 * p-valprint.c (pascal_val_print): Update.
5989 * jv-valprint.c (java_val_print): Update.
5990 * value.h: Update.
5991 * valprint.c (generic_val_print): Update.
5992 (print_function_pointer_address): Add 'options' argument. Remove
5993 'addressprint' argument. Update.
5994 * m2-valprint.c (print_unpacked_pointer): Update.
5995 * gnu-v3-abi.c (print_one_vtable): Update.
5996 (gnuv3_print_method_ptr): Update.
5997 * f-valprint.c (f_val_print): Update.
5998 * cp-valprint.c (cp_print_value_fields): Update.
5999 * valprint.h (print_function_pointer_address): Update.
6000 * c-valprint.c (c_val_print): Update.
6001
6002 2012-05-18 Tom Tromey <tromey@redhat.com>
6003
6004 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6005 directly corresponding to the found psymtab.
6006 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6007 (dw2_find_pc_sect_symtab): Use it.
6008 * block.h (blockvector_contains_pc): Declare.
6009 * block.c (find_block_in_blockvector): New function.
6010 (blockvector_for_pc_sect): Use it.
6011 (blockvector_contains_pc): New function.
6012
6013 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6014
6015 * mips-tdep.h (mips_write_pc): New prototype.
6016 * mips-tdep.c (mips_write_pc): Make external, add description.
6017 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6018 add description.
6019
6020 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6021
6022 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6023 mips_regnum->pc.
6024 (mips_unwind_pc, mips_write_pc): Likewise.
6025 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6026 gdbarch_read_pc.
6027
6028 2012-05-17 Joel Brobecker <brobecker@adacore.com>
6029
6030 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6031 proc_warn, proc_error, proc_get_status, proc_flags,
6032 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6033 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6034 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6035 proc_stop_process, proc_wait_for_stop, proc_run_process,
6036 proc_set_traced_signals, proc_set_traced_faults,
6037 proc_set_traced_sysentry, proc_set_traced_sysexit,
6038 proc_set_held_signals, proc_get_held_signals,
6039 proc_get_traced_signals, proc_get_traced_faults,
6040 proc_get_traced_sysentry, proc_get_traced_sysexit,
6041 proc_clear_current_fault, proc_set_current_signal,
6042 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6043 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6044 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6045 proc_get_current_thread, proc_get_current_thread,
6046 proc_get_current_thread, proc_update_threads,
6047 proc_update_threads, proc_update_threads, proc_update_threads,
6048 proc_iterate_over_threads, procfs_find_new_threads,
6049 procfs_pid_to_str): Make static. Remove advance declaration.
6050 (proc_cursig): Make static. Conditionalized defintion on
6051 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6052 (proc_syscall, proc_set_kill_on_last_close,
6053 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6054 proc_get_pending_signals, proc_get_signal_actions,
6055 proc_trace_signal, proc_ignore_signal): Delete.
6056
6057 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6058
6059 * coffread.c (cs_section_address): Passing proper argument for
6060 `bfd_get_section_vma'.
6061 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6062 `bfd_get_section_flags'.
6063 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6064 `bfd_get_section_vma'.
6065
6066 2012-05-16 Tom Tromey <tromey@redhat.com>
6067
6068 PR macros/13205:
6069 * macrotab.h: (macro_define_special): Declare.
6070 (enum macro_special_kind): New.
6071 (struct macro_definition) <argc, replacement>: Update comments.
6072 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6073 (macro_define_object_internal): New function.
6074 (macro_define_object): Use it.
6075 (macro_define_special): New function.
6076 (fixup_definition): New function.
6077 (macro_lookup_definition, foreach_macro_in_scope)
6078 (foreach_macro): Use fixup_definition.
6079 * macroexp.h (macro_stringify): Declare.
6080 * macroexp.c (free_buffer_return_text): New function.
6081 (stringify): Constify "arg".
6082 (macro_stringify): New function.
6083 * dwarf2read.c (macro_start_file): Call macro_define_special.
6084
6085 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
6086 Maciej W. Rozycki <macro@mips.com>
6087
6088 * breakpoint.h (bp_location): Add related_address member.
6089 * inferior.h (get_return_value): Take a pointer to struct value
6090 instead of struct type for the function requested.
6091 * value.h (using_struct_return): Likewise.
6092 * gdbarch.sh (return_value): Take a pointer to struct value
6093 instead of struct type for the function requested.
6094 * breakpoint.c (set_breakpoint_location_function): Initialize
6095 related_address for bp_gnu_ifunc_resolver breakpoints.
6096 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6097 requested function's address to gdbarch_return_value.
6098 * eval.c (evaluate_subexp_standard): Pass the requested
6099 function's address to using_struct_return.
6100 * infcall.c (call_function_by_hand): Pass the requested
6101 function's address to using_struct_return and
6102 gdbarch_return_value.
6103 * infcmd.c (get_return_value): Take a pointer to struct value
6104 instead of struct type for the function requested.
6105 (print_return_value): Update accordingly.
6106 (finish_command_continuation): Likewise.
6107 * stack.c (return_command): Pass the requested function's
6108 address to using_struct_return and gdbarch_return_value.
6109 * value.c (using_struct_return): Take a pointer to struct value
6110 instead of struct type for the function requested. Pass the
6111 requested function's address to gdbarch_return_value.
6112 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6113 New function_value member, replacing function_type.
6114 (bpfinishpy_dealloc): Update accordingly.
6115 (bpfinishpy_pre_stop_hook): Likewise.
6116 (bpfinishpy_init): Likewise. Record the requested function's
6117 address.
6118 * mips-tdep.c (mips_fval_reg): New enum.
6119 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6120 words put in GP registers.
6121 (mips_o64_push_dummy_call): Update a comment.
6122 (mips_o32_return_value): Take a pointer to struct value instead
6123 of struct type for the function requested and use it to check if
6124 using the MIPS16 calling convention. Return the designated
6125 general purpose registers for floating-point values returned in
6126 MIPS16 mode.
6127 (mips_o64_return_value): Likewise.
6128 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6129 (ppc_sysv_abi_broken_return_value): Likewise.
6130 (ppc64_sysv_abi_return_value): Likewise.
6131 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6132 value instead of struct type for the function requested.
6133 * amd64-tdep.c (amd64_return_value): Likewise.
6134 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6135 * arm-tdep.c (arm_return_value): Likewise.
6136 * avr-tdep.c (avr_return_value): Likewise.
6137 * bfin-tdep.c (bfin_return_value): Likewise.
6138 * cris-tdep.c (cris_return_value): Likewise.
6139 * frv-tdep.c (frv_return_value): Likewise.
6140 * h8300-tdep.c (h8300_return_value): Likewise.
6141 (h8300h_return_value): Likewise.
6142 * hppa-tdep.c (hppa32_return_value): Likewise.
6143 (hppa64_return_value): Likewise.
6144 * i386-tdep.c (i386_return_value): Likewise.
6145 * ia64-tdep.c (ia64_return_value): Likewise.
6146 * iq2000-tdep.c (iq2000_return_value): Likewise.
6147 * lm32-tdep.c (lm32_return_value): Likewise.
6148 * m32c-tdep.c (m32c_return_value): Likewise.
6149 * m32r-tdep.c (m32r_return_value): Likewise.
6150 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6151 * m68k-tdep.c (m68k_return_value): Likewise.
6152 (m68k_svr4_return_value): Likewise.
6153 * m88k-tdep.c (m88k_return_value): Likewise.
6154 * mep-tdep.c (mep_return_value): Likewise.
6155 * microblaze-tdep.c (microblaze_return_value): Likewise.
6156 * mn10300-tdep.c (mn10300_return_value): Likewise.
6157 * moxie-tdep.c (moxie_return_value): Likewise.
6158 * mt-tdep.c (mt_return_value): Likewise.
6159 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6160 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6161 (ppc_sysv_abi_broken_return_value): Likewise.
6162 (ppc64_sysv_abi_return_value): Likewise.
6163 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6164 * rl78-tdep.c (rl78_return_value): Likewise.
6165 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6166 * rx-tdep.c (rx_return_value): Likewise.
6167 * s390-tdep.c (s390_return_value): Likewise.
6168 * score-tdep.c (score_return_value): Likewise.
6169 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6170 (sh_return_value_fpu): Likewise.
6171 * sh64-tdep.c (sh64_return_value): Likewise.
6172 * sparc-tdep.c (sparc32_return_value): Likewise.
6173 * sparc64-tdep.c (sparc64_return_value): Likewise.
6174 * spu-tdep.c (spu_return_value): Likewise.
6175 * tic6x-tdep.c (tic6x_return_value): Likewise.
6176 * v850-tdep.c (v850_return_value): Likewise.
6177 * vax-tdep.c (vax_return_value): Likewise.
6178 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6179 * xtensa-tdep.c (xtensa_return_value): Likewise.
6180 * gdbarch.c: Regenerate.
6181 * gdbarch.h: Regenerate.
6182
6183 2012-05-15 Tom Tromey <tromey@redhat.com>
6184
6185 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6186
6187 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6188
6189 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6190 of command in two error message.
6191
6192 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6193
6194 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6195
6196 2012-05-15 Joel Brobecker <brobecker@adacore.com>
6197
6198 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6199
6200 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6201
6202 * NEWS (show auto-load scripts-directory): Add forgotten command.
6203
6204 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6205
6206 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6207 parameters.
6208
6209 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6210
6211 * amd64-tdep.c: Include features/i386/x32.c and
6212 features/i386/x32-avx.c.
6213 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6214 initialize_tdesc_x32_avx.
6215
6216 2012-05-14 Stan Shebs <stan@codesourcery.com>
6217
6218 Add dynamic printf.
6219 * breakpoint.h (enum bptype): New type bp_dprintf.
6220 (struct breakpoint): New field extra_string.
6221 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6222 (create_breakpoint): Add extra_string arg.
6223 * breakpoint.c (dprintf_breakpoint_ops): New.
6224 (is_breakpoint): Add bp_dprintf.
6225 (bpstat_what): Add dprintf case.
6226 (bptype_string): Ditto.
6227 (print_one_breakpoint_location): Ditto.
6228 (init_bp_location): Ditto.
6229 (bkpt_print_mention): Ditto.
6230 (dprintf_style_enums): New array.
6231 (dprintf_style): New global.
6232 (dprintf_function): New global.
6233 (dprintf_channel): New global.
6234 (update_dprintf_command_list): New function.
6235 (update_dprintf_commands): New function.
6236 (init_breakpoint_sal): Add extra_string argument, handle it.
6237 (create_breakpoint_sal): Add extra_string argument.
6238 (create_breakpoints_sal): Add extra_string argument, update callers.
6239 (find_condition_and_thread): Add extra argument.
6240 (create_breakpoint): Add extra_string argument, record it.
6241 (dprintf_command): New function.
6242 (break_command_1): Add arg to create_breakpoint call.
6243 (handle_gnu_v3_exceptions): Ditto.
6244 (trace_command): Ditto.
6245 (ftrace_command): Ditto.
6246 (strace_command): Ditto.
6247 (bkpt_print_mention): Add dprintf case.
6248 (create_breakpoint_sal_default): Add extra_string argument.
6249 (_initialize_breakpoint): Add new commands.
6250 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6251 * python/py-breakpoint.c (bppy_init): Ditto.
6252 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6253
6254 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6255
6256 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6257
6258 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6259
6260 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6261 unsigned long long.
6262
6263 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6264
6265 Add a new function gdb.find_pc_line to the Python API.
6266 * NEWS (Python Scripting): Add entry about the new function.
6267 * python/python.c (gdbpy_find_pc_line): New function which
6268 implements gdb.find_pc_line.
6269 (GdbMethods): Add entry for the new function.
6270
6271 2012-05-12 Pedro Alves <palves@redhat.com>
6272
6273 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6274 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6275
6276 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6277
6278 * inferior.c: Include completer.h
6279 (initialize_inferiors): Set completer of add-inferior to
6280 filename_completer.
6281
6282 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6283
6284 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6285 gdbarch_ptr_bit for x32 core dump.
6286
6287 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6288
6289 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6290 and features/i386/x32-avx-linux.c.
6291
6292 2012-05-11 Stan Shebs <stan@codesourcery.com>
6293 Kwok Cheung Yeung <kcy@codesourcery.com>
6294
6295 * NEWS: Describe new info os commands.
6296 * common/linux-osdata.c (PID_T, TIME_T): Define.
6297 (MAX_PID_T_STRLEN): New.
6298 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6299 MAX_PID_T_STRLEN.
6300 (command_from_pid): Add comment. Change to use PID_T.
6301 (commandline_from_pid): Change to use PID_T.
6302 (user_from_pid): Add comment.
6303 (get_process_owner): Add comment. Change to use PID_T and
6304 MAX_PID_T_STRLEN.
6305 (get_number_of_cpu_cores): Add comment.
6306 (get_cores_used_by_process): Add comment. Change to use PID_T and
6307 MAX_PID_T_STRLEN.
6308 (linux_xfer_osdata_processes): Change to use PID_T and
6309 MAX_PID_T_STRLEN.
6310 (compare_processes): New function.
6311 (linux_xfer_osdata_processgroups): New function.
6312 (linux_xfer_osdata_threads): Change to use PID_T.
6313 (linux_xfer_osdata_fds): New function.
6314 (format_socket_state, print_sockets): New functions.
6315 (union socket_addr): New union.
6316 (linux_xfer_osdata_isockets): New function.
6317 (time_from_time_t, group_from_gid): New functions.
6318 (linux_xfer_osdata_shm): New function.
6319 (linux_xfer_osdata_sem): New function.
6320 (linux_xfer_osdata_msg): New function.
6321 (linux_xfer_osdata_modules): New function.
6322 (osdata_table): Add new entries.
6323 * common/buffer.c (buffer_xml_printf): Add support for long and
6324 long long format specifiers.
6325
6326 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6327
6328 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6329 (tdesc_x32_avx_linux): Likewise.
6330
6331 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6332
6333 Implement multi-component --with-auto-load-dir.
6334 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6335 entries.
6336 (--with-auto-load-safe-path): Update the default value description.
6337 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6338 New.
6339 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6340 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6341 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6342 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6343 "set auto-load scripts-directory".
6344 * config.in: Regenerate.
6345 * configure: Regenerate.
6346 * configure.ac (--with-auto-load-dir): New configure option.
6347 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6348
6349 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6350
6351 Provide $ddir substitution for --with-auto-load-safe-path.
6352 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6353 entries.
6354 * auto-load.c: Include observer.h.
6355 (auto_load_safe_path_vec_update): Call substitute_path_component for
6356 each component. New variable ddir_subst.
6357 (auto_load_gdb_datadir_changed): New function.
6358 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6359 AUTO_LOAD_SAFE_PATH. New comment.
6360 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6361 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6362 * config.in: Regenerate.
6363 * configure: Regenerate.
6364 * configure.ac (--auto-load-safe-path): Rename
6365 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6366 GDB_DATADIR/auto-load.
6367 * defs.h (substitute_path_component): New declaration.
6368 * top.c: Include observer.h.
6369 (set_gdb_datadir): New function.
6370 (init_main): Install it for "set data-directory".
6371 * utils.c (substitute_path_component): New function.
6372
6373 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6374
6375 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6376 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6377 DEBUG_FILE_DIRECTORY. Handle multiple components of
6378 DEBUG_FILE_DIRECTORY.
6379
6380 2012-05-10 Tom Tromey <tromey@redhat.com>
6381
6382 * dwarf2read.c (recursively_write_psymbols): New function.
6383 (write_psymtabs_to_index): Use it.
6384
6385 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6386 field.
6387 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6388 (load_partial_comp_unit): Update.
6389 (queue_comp_unit): Add argument 'pretend_language'.
6390 (process_queue): Update.
6391 (psymtab_to_symtab_1): Skip dependencies that have a user.
6392 (load_partial_comp_unit_reader): Give meaning to the 'data'
6393 argument.
6394 (load_full_comp_unit): Add 'pretend_language' argument.
6395 (process_full_comp_unit): Add 'pretend_language' argument. Set
6396 language on CU.
6397 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6398 Update.
6399 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6400 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6401 Update.
6402 (prepare_one_comp_unit): Add 'pretend_language' argument.
6403
6404 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6405 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6406 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6407 (dw2_do_instantiate_symtab): Check whether symtab was read in
6408 before queueing.
6409 (dw2_instantiate_symtab): Add assertion. Call
6410 process_cu_includes.
6411 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6412 (partial_symtab_p): New typedef.
6413 (set_partial_user): New function.
6414 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6415 (scan_partial_symbols): Add imported CU to imported_symtabs.
6416 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6417 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6418 (get_symtab, recursively_compute_inclusions)
6419 (compute_symtab_includes, process_cu_includes)
6420 (process_imported_unit_die): New functions.
6421 (process_die) <DW_TAG_imported_unit>: New case.
6422 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6423
6424 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6425 comment.
6426 (struct partial_die_info) <locdesc>: Remove.
6427 <d>: New field.
6428 (process_psymtab_comp_unit): Add 'read_partial' argument.
6429 Update.
6430 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6431 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6432 (add_partial_symbol): Update.
6433 (process_die): Handle DW_TAG_partial_unit.
6434 (read_file_scope): Update comment.
6435 (load_partial_dies): Handle DW_TAG_imported_unit.
6436 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6437 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6438
6439 2012-05-10 Tom Tromey <tromey@redhat.com>
6440
6441 * cc-with-dwz.sh: New file.
6442
6443 2012-05-10 Tom Tromey <tromey@redhat.com>
6444
6445 * symtab.h (struct symtab) <includes, user>: New fields.
6446 * block.h (struct block_iterator) <d, idx, which>: New fields.
6447 * block.c (initialize_block_iterator, find_iterator_symtab)
6448 (block_iterator_step, block_iter_name_step)
6449 (block_iter_match_step): New functions.
6450 (block_iterator_first, block_iterator_next)
6451 (block_iter_name_first, block_iter_name_next)
6452 (block_iter_match_first, block_iter_match_next): Rewrite.
6453 (get_block_symtab): New function.
6454
6455 2012-05-10 Tom Tromey <tromey@redhat.com>
6456
6457 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6458 set_block_symtab.
6459 * jit.c (finalize_symtab): Use allocate_global_block,
6460 set_block_symtab.
6461 * buildsym.c (finish_block_internal): New function, from old
6462 finish_block.
6463 (finish_block): Rewrite.
6464 (end_symtab): Use finish_block_internal, set_block_symtab.
6465 * block.h (struct global_block): New.
6466 (allocate_global_block, set_block_symtab): Declare.
6467 * block.c (allocate_global_block, set_block_symtab): New
6468 functions.
6469
6470 2012-05-10 Tom Tromey <tromey@redhat.com>
6471
6472 * psymtab.c (partial_map_expand_apply): Add assertion.
6473 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6474 (psymtab_to_symtab): Find unshared psymtab.
6475 (dump_psymtab): Print including psymtabs.
6476 (recursively_search_psymtabs): New function.
6477 (expand_symtabs_matching_via_partial): Use it.
6478 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6479 fields.
6480 (enum psymtab_search_status): New.
6481
6482 2012-05-10 Tom Tromey <tromey@redhat.com>
6483
6484 * tracepoint.c (scope_info): Update.
6485 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6486 (find_pc_sect_symtab, search_symbols)
6487 (default_make_symbol_completion_list_break_on)
6488 (make_file_symbol_completion_list): Update.
6489 * symmisc.c (dump_symtab_1): Update.
6490 * stack.c (print_frame_args, iterate_over_block_locals)
6491 (print_frame_labels, iterate_over_block_arg_vars): Update.
6492 * python/py-block.c (block_object) <dict>: Remove.
6493 <block>: New field.
6494 <iter>: Change type.
6495 (blpy_iter): Update.
6496 (blpy_block_syms_iternext): Update.
6497 * psymtab.c (map_block): Use block iterators.
6498 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6499 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6500 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6501 * infrun.c (check_exception_resume): Update.
6502 * cp-support.c (make_symbol_overload_list_block): Update.
6503 * coffread.c (patch_opaque_types): Update.
6504 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6505 * block.h (struct block_iterator): New.
6506 (block_iterator_first, block_iterator_next, block_iter_name_first)
6507 (block_iter_name_next, block_iter_match_first)
6508 (block_iter_match_next): Declare.
6509 (ALL_BLOCK_SYMBOLS): Redefine.
6510 * block.c (block_iterator_first, block_iterator_next)
6511 (block_iter_name_first, block_iter_name_next)
6512 (block_iter_match_first, block_iter_match_next): New functions.
6513 * ada-lang.c (ada_add_block_symbols)
6514 (ada_make_symbol_completion_list): Use block iterator.
6515
6516 2012-05-10 Tom Tromey <tromey@redhat.com>
6517
6518 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6519 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6520 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6521 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6522 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6523 Update.
6524
6525 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6526
6527 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6528 print-file-var-lib2.c, print-file-var-main.c and
6529 print-file-var.exp (located in gdb/testsuite/gdb.base).
6530
6531 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6532
6533 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6534 try locating the symbol in the symbol's own objfile first, before
6535 extending the search to all objfiles.
6536 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6537 out of lookup_symbol_aux_symtabs.
6538 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6539 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6540 Do not search EXCLUDE_OBJFILE.
6541 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6542 (lookup_symbol_global): Search for matches in the block's objfile
6543 first, before searching all other objfiles.
6544
6545 2012-05-10 Tristan Gingold <gingold@adacore.com>
6546
6547 * printcmd.c (set_command): Add pre/post inc/dec.
6548
6549 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6550
6551 * gdb.1: Document -ex option.
6552
6553 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6554
6555 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6556 * inferior.h (AT_SYMBOL): Delete.
6557
6558 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6559
6560 * mips-tdep.c (mips_push_dummy_code): New function.
6561 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6562 ON_STACK and install mips_push_dummy_code as our gdbarch
6563 push_dummy_code routine.
6564
6565 2012-05-09 Pedro Alves <palves@redhat.com>
6566
6567 * target.c (set_maintenance_target_async_permitted): Rename to ...
6568 (set_target_async_command): ... this.
6569 (show_maintenance_target_async_permitted): Rename to ...
6570 (show_target_async_command): ... this.
6571 (initialize_targets): Adjust.
6572
6573 2012-05-08 Doug Evans <dje@google.com>
6574
6575 * go-exp.y (classify_name): Add missing assignment of fields of
6576 yylval.ssym.
6577
6578 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6579
6580 Display the ">" prompt in interactive mode while reading canned
6581 commands, even when the current interpreter is MI.
6582
6583 * interps.c (interp_set_temp): New function.
6584
6585 * interps.h (interp_set_temp): Add prototype.
6586
6587 * cli/cli-script.c (restore_interp): New cleanup function.
6588 (read_command_lines): Temporarily override the current interpreter
6589 with CLI and arrange for restoring the original one.
6590
6591 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6592
6593 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6594
6595 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6596
6597 * probe.c (parse_probes): Move conditional to check for
6598 debuginfo files from here...
6599 * stap-probe.c (stap_get_probes): ... to here.
6600
6601 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6602 H.J. Lu <hongjiu.lu@intel.com>
6603
6604 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6605 `movl %esp, %ebp' for the X32 ABI.
6606
6607 2012-05-07 Tom Tromey <tromey@redhat.com>
6608
6609 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6610 get_DW_TAG_name.
6611 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6612 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6613 (dwarf_stack_op_name): Remove.
6614 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6615 (decode_locdesc): Use get_DW_OP_name.
6616 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6617 (dwarf2_compile_expr_to_ax): Likewise.
6618 (disassemble_dwarf_expression): Likewise.
6619 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6620
6621 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6622
6623 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6624 (sh_linux_sigtramp_cache): New function.
6625 (sh_linux_sigreturn_init): New function.
6626 (sh_linux_rt_sigreturn_init): New function.
6627 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6628 patterns.
6629 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6630 syscall codes.
6631 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6632 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6633 (sh_linux_init_abi): Add init calls to register new tramp_frame
6634 definitions under 32-bit SH, update comments.
6635
6636 2012-05-07 Pedro Alves <palves@redhat.com>
6637
6638 PR gdb/10952
6639
6640 * amd64-linux-tdep.c: Include glibc-tdep.h.
6641 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6642 gdbarch_skip_solib_resolver callback.
6643
6644 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6645
6646 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6647 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6648 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6649 (add_auto_load_safe_path): Change the error message.
6650 (_initialize_auto_load): Change the "safe-path" help text.
6651 * configure: Regenerate
6652 * configure.ac (--without-auto-load-safe-path): Set
6653 WITH_AUTO_LOAD_SAFE_PATH to /.
6654
6655 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6656
6657 * stap-probe.h: Do not include unecessary `probe.h'.
6658
6659 2012-05-05 Alan Modra <amodra@gmail.com>
6660
6661 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6662 bfd_und_section_ptr.
6663 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6664 and bfd_com_section_ptr.
6665
6666 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6667
6668 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6669
6670 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6671
6672 * windows-nat.h (segment_register_p_ftype): New typedef.
6673 (windows_set_segment_register_p): Add declaration.
6674 * windows-nat.c (segment_register_p): New static global.
6675 (windows_set_segment_register_p): New function.
6676 (do_windows_fetch_inferior_registers): Add special handling
6677 for segment registers.
6678 * amd64-windows-nat.c: #include "amd64-tdep.h".
6679 (amd64_windows_segment_register_p): New function.
6680 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6681 * i386-windows-nat.c: #include "i386-tdep.h".
6682 (i386_windows_segment_register_p): New function.
6683 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6684
6685 2012-05-04 Tristan Gingold <gingold@adacore.com>
6686
6687 * printcmd.c (set_command): Emit a warning if the expression is not
6688 an assignment.
6689
6690 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6691
6692 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6693 Make static.
6694
6695 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6696
6697 * stap-probe.c (stap_is_operator): Change declaration.
6698 (stap_get_opcode): Change return value.
6699 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6700 `stap_parse_argument_1'.
6701
6702 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6703
6704 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6705 debug log.
6706
6707 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6708
6709 Add two new methods global_block and static_block to gdb.Symtab
6710 objects.
6711 * NEWS (Python scripting): Add entry about the new methods.
6712 * python/py-symtab.c (stpy_global_block): New function which
6713 implements the gdb.Symtab.global_block() method.
6714 (stpy_static_block): New function which implements the
6715 gdb.Symtab.static_block() method.
6716 (symtab_object_methods): Add entries for the two new methods.
6717
6718 2012-05-03 Doug Evans <dje@google.com>
6719
6720 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6721 files.
6722
6723 2012-05-03 Yao Qi <yao@codesourcery.com>
6724
6725 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6726 space.
6727 (i386_process_record): Ditto.
6728
6729 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6730
6731 * infcall.c (unwind_on_signal_p): Make static.
6732
6733 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6734
6735 * sol-thread.c (solaris_pid_to_str): Make static.
6736 (_initialize_sol_thread): Add prototype.
6737
6738 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6739
6740 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6741
6742 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6743
6744 * MAINTAINERS: Remove myself.
6745
6746 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6747
6748 Fix --without-auto-load-safe-path for MS-Windows host platform.
6749 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6750
6751 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6752
6753 * gdb_curses.h: Undefine KEY_EVENT before including curses
6754 headers. Move "#undef MOUSE_MOVED" before any curses header
6755 inclusion.
6756
6757 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6758
6759 * features/i386/i386-mmx-linux.c: Regenerate.
6760 * features/rs6000/powerpc-32.c: Likewise.
6761 * features/rs6000/powerpc-32l.c: Likewise.
6762 * features/rs6000/powerpc-403.c: Likewise.
6763 * features/rs6000/powerpc-403gc.c: Likewise.
6764 * features/rs6000/powerpc-405.c: Likewise.
6765 * features/rs6000/powerpc-505.c: Likewise.
6766 * features/rs6000/powerpc-601.c: Likewise.
6767 * features/rs6000/powerpc-602.c: Likewise.
6768 * features/rs6000/powerpc-603.c: Likewise.
6769 * features/rs6000/powerpc-604.c: Likewise.
6770 * features/rs6000/powerpc-64.c: Likewise.
6771 * features/rs6000/powerpc-64l.c: Likewise.
6772 * features/rs6000/powerpc-750.c: Likewise.
6773 * features/rs6000/powerpc-860.c: Likewise.
6774 * features/rs6000/powerpc-e500.c: Likewise.
6775 * features/rs6000/powerpc-e500l.c: Likewise.
6776 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6777 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6778 * features/rs6000/rs6000.c: Likewise.
6779
6780 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6781
6782 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6783 variable.
6784 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6785 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6786 (stap_parse_argument) <e>: Likewise.
6787 (handle_stap_probe) <byte_order>: Likewise.
6788
6789 2012-04-30 Doug Evans <dje@google.com>
6790
6791 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6792 init_and_read_dies_worker. All callers updated.
6793 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6794 replaced with init_cutu_and_read_dies.
6795 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6796 (find_partial_die): Remove FIXME. Don't free current CU.
6797
6798 2012-04-30 Sterling Augustine <saugustine@google.com>
6799
6800 * contrib: New directory.
6801 * contrib/test_pubnames_and_indexes.py: New file.
6802
6803 2012-04-30 Doug Evans <dje@google.com>
6804
6805 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6806 All callers updated.
6807 (init_cu_die_reader): Verify the section is non-empty.
6808 (dwarf_decode_line_header): Don't dereference section->asection
6809 until we know the section is present.
6810
6811 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6812
6813 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6814 probes.
6815
6816 2012-04-29 Yao Qi <yao@codesourcery.com>
6817
6818 * gdb-code-style.el: New hook gdb-markup-hook
6819 and gdb-comment-hook.
6820
6821 2012-04-28 Doug Evans <dje@google.com>
6822
6823 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6824 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6825 objfile->obfd.
6826 * symfile.h (dwarf2_debug_sections): New member addr.
6827 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6828 (ctx_no_get_addr_index): New function.
6829 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6830 (ctx_no_get_addr_index): Declare.
6831 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6832 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6833 (dwarf_expr_ctx_funcs): Update.
6834 (needs_get_addr_index): New function.
6835 (needs_frame_ctx_funcs): Update.
6836 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6837 * dwarf2read.c: #include "gdbcore.h".
6838 (dwarf2_per_objfile): New members addr, dwo_files.
6839 (dwarf2_elf_names): Add entry for addr.
6840 (struct dwo_section_names): New type.
6841 (dwo_section_names): New static global.
6842 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6843 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6844 old debug_types_section member updated to use this.
6845 Rename member debug_types_section to info_or_types_section,
6846 all uses updated.
6847 (signatured_type): Rename member type_offset to type_offset_in_tu,
6848 all uses updated. New member type_offset_in_section.
6849 (struct dwo_sections): New type.
6850 (struct dwo_unit): New type.
6851 (struct dwo_file): New type.
6852 (die_reader_specs): New member dwo_file.
6853 (dwarf2_locate_sections): Watch for .debug_addr.
6854 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6855 (dwarf2_read_section): Get bfd of section from bfd's asection,
6856 instead of objfile.
6857 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6858 (create_signatured_type_table_from_index): Initialize
6859 sig_type->info_or_types_section.
6860 (dw2_get_file_names): Statement lists for type units with DWO files
6861 live in the DWO file.
6862 (create_debug_types_hash_table): New function.
6863 (create_all_type_units): Rewrite.
6864 (init_cu_die_reader): New arg dwo_file, all callers updated.
6865 (init_and_read_dies_worker): Get section from
6866 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6867 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6868 continue reading the CU/TU from there.
6869 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6870 updated. Get section from this_cu->info_or_types_section.
6871 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6872 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6873 DW_FORM_GNU_str_index.
6874 (hash_dwo_file, eq_dwo_file): New functions.
6875 (allocate_dwo_file_hash_table): New function.
6876 (hash_dwo_unit, eq_dwo_unit): New functions.
6877 (allocate_dwo_unit_table): New function.
6878 (dwarf2_locate_dwo_sections): New function.
6879 (struct create_dwo_info_table_data): New type.
6880 (create_debug_info_hash_table_reader): New function.
6881 (create_debug_info_hash_table): New function.
6882 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6883 (lookup_dwo_file): New function.
6884 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6885 (free_dwo_file, free_dwo_file_cleanup): New functions.
6886 (free_dwo_file_from_slot, free_dwo_files): New functions.
6887 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6888 (dwarf2_record_block_ranges): Ditto.
6889 (read_partial_die): Ditto.
6890 (process_enumeration_scope): Update to use type_offset_in_section.
6891 (read_full_die_1): New function.
6892 (read_full_die): Rewrite.
6893 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6894 DW_FORM_GNU_str_index.
6895 (read_addr_index_1, read_addr_index): New functions.
6896 (read_addr_index_from_leb128): New function.
6897 (struct dwarf2_read_addr_index_data): New type.
6898 (dwarf2_read_addr_index_reader): New function.
6899 (dwarf2_read_addr_index): New function.
6900 (read_str_index): New function.
6901 (leb128_size): New function.
6902 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6903 If processing a type unit from a DWO file, get the line section
6904 from the DWO file.
6905 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6906 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6907 DW_FORM_GNU_str_index.
6908 (lookup_die_type): Check whether section offset of type's die is
6909 known before looking it up. Remove assert. Condition can
6910 legimately happen for inter-cu type references.
6911 (dwarf_attr_name): Handle Fission attributes.
6912 (dwarf_form_name): Handle Fission forms.
6913 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6914 DW_FORM_GNU_str_index.
6915 (follow_die_sig): Update to use type_offset_in_section.
6916 (decode_locdesc): New case DW_OP_GNU_addr_index.
6917 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6918 DW_FORM_GNU_str_index.
6919 (cu_debug_loc_section): New function.
6920 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6921 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6922 Free DWO files if present.
6923 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6924
6925 Refactor DIE reading.
6926 * dwarf2read.c (dwarf2_per_objfile): Replace members
6927 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6928 (die_reader_specs): New member "die_section". Temporarily make
6929 member "buffer" non-const, pending constifying all info_ptr uses.
6930 (die_reader_func_ftype): New typedef.
6931 (dw2_get_file_names_reader): New function.
6932 (dw2_get_file_names): Rewrite.
6933 (read_and_check_type_unit_head): Rename arg type_offset to
6934 type_offset_in_tu.
6935 (create_all_type_units): Improve debugging message.
6936 Improve dummy type unit check.
6937 (init_cu_die_reader): New arg "section". All callers updated.
6938 (init_and_read_dies_worker): New function.
6939 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6940 (init_cutu_and_read_dies_no_follow): New function.
6941 (init_cutu_and_read_dies_simple): New function.
6942 (process_psymtab_comp_unit_reader): New function.
6943 (process_psymtab_comp_unit): Delete args section,
6944 is_debug_types_section. Rewrite. All callers updated.
6945 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6946 All callers updated. Rewrite.
6947 (load_partial_comp_unit_reader): New function.
6948 (load_partial_comp_unit): Rewrite.
6949 (skip_children): New arg reader. Delete args buffer, cu.
6950 All callers updated.
6951 (skip_one_die): New arg reader. Delete args buffer, cu.
6952 All callers updated.
6953 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6954 All callers updated.
6955 (load_full_comp_unit_reader): New function.
6956 (load_full_comp_unit): Rewrite.
6957 (read_comp_unit): Delete.
6958 (read_die_and_children_1): Delete, contents moved ...
6959 (read_die_and_children): ... here.
6960 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6961 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6962 All callers updated.
6963 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6964 All callers updated.
6965 (find_partial_die): Rewrite load_all_dies support.
6966 (read_attribute_value): New arg reader. Delete args abfd, cu.
6967 All callers updated.
6968 (read_attribute): New arg reader. Delete args abfd, cu.
6969 All callers updated.
6970 (load_full_type_unit): Add assert.
6971 (read_signatured_type_reader): New function.
6972 (read_signatured_type): Rewrite.
6973 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6974 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6975 All callers updated. Set per_cu->cu = NULL after freeing it.
6976 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6977 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6978 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6979 (set_die_type): Update.
6980 (get_die_type_at_offset): Update.
6981 (read_file_scope): Call prepare_one_comp_unit.
6982 (read_type_unit_scope): Ditto.
6983 (prepare_one_comp_unit): Set producer if present.
6984
6985 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6986
6987 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6988 gettext function on `error'.
6989
6990 2012-04-27 Doug Evans <dje@google.com>
6991
6992 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6993 is empty.
6994
6995 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6996 Tom Tromey <tromey@redhat.com>
6997
6998 * breakpoint.c (struct breakpoint_objfile_data)
6999 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7000 <exception_probes>: New fields.
7001 (free_breakpoint_probes): New function.
7002 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7003 `_Unwind_DebugHook'.
7004 (create_exception_master_breakpoint): Likewise.
7005 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7006 * infrun.c: Including necessary header files for handling SystemTap
7007 probes.
7008 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7009 via SystemTap probes.
7010 (check_exception_resume): Remove `func' argument. Handle exception
7011 unwinding breakpoint set via a SystemTap probe.
7012 (insert_exception_resume_from_probe): New function.
7013
7014 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7015 Tom Tromey <tromey@redhat.com>
7016 Jan Kratochvil <jan.kratochvil@redhat.com>
7017
7018 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7019 (COMMON_OBS): Likewise.
7020 (HFILES_NO_SRCDIR): Add `probe'.
7021 * NEWS: Mention support for static and SystemTap probes.
7022 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7023 SystemTap probes' arguments parser.
7024 * arm-linux-tdep.c: Including headers needed to perform the parsing
7025 of SystemTap probes' arguments.
7026 (arm_stap_is_single_operand): New function.
7027 (arm_stap_parse_special_token): Likewise.
7028 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7029 probes' arguments parser.
7030 * ax-gdb.c (require_rvalue): Removing static declaration.
7031 (gen_expr): Likewise.
7032 * ax-gdb.h (gen_expr): Declaring function.
7033 (require_rvalue): Likewise.
7034 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7035 (bkpt_probe_breakpoint_ops): New variable.
7036 (momentary_breakpoint_from_master): Set the `probe' value.
7037 (add_location_to_breakpoint): Likewise.
7038 (break_command_1): Using proper breakpoint_ops according to the
7039 argument passed by the user in the command line.
7040 (bkpt_probe_insert_location): New function.
7041 (bkpt_probe_remove_location): Likewise.
7042 (bkpt_probe_create_sals_from_address): Likewise.
7043 (bkpt_probe_decode_linespec): Likewise.
7044 (tracepoint_probe_create_sals_from_address): Likewise.
7045 (tracepoint_probe_decode_linespec): Likewise.
7046 (tracepoint_probe_breakpoint_ops): New variable.
7047 (trace_command): Using proper breakpoint_ops according to the
7048 argument passed by the user in the command line.
7049 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7050 static probes on breakpoints and tracepoints.
7051 * breakpoint.h (struct bp_location) <probe>: New field.
7052 * cli-utils.c (skip_spaces_const): New function.
7053 (extract_arg): Likewise.
7054 * cli-utils.h (skip_spaces_const): Likewise.
7055 (extract_arg): Likewise.
7056 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7057 * configure.ac: Append `stap-probe.o' to be generated when ELF
7058 support is present.
7059 * configure: Regenerate.
7060 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7061 * elfread.c: Include `probe.h' and `arch-utils.h'.
7062 (probe_key): New variable.
7063 (elf_get_probes): New function.
7064 (elf_get_probe_argument_count): Likewise.
7065 (elf_evaluate_probe_argument): Likewise.
7066 (elf_compile_to_ax): Likewise.
7067 (elf_symfile_relocate_probe): Likewise.
7068 (stap_probe_key_free): Likewise.
7069 (elf_probe_fns): New variable.
7070 (elf_sym_fns): Add `sym_probe_fns' value.
7071 (elf_sym_fns_lazy_psyms): Likewise.
7072 (elf_sym_fns_gdb_index): Likewise.
7073 (_initialize_elfread): Initialize objfile cache for static
7074 probes.
7075 * gdb_vecs.h (struct probe): New forward declaration.
7076 (probe_p): New VEC declaration.
7077 * gdbarch.c: Regenerate.
7078 * gdbarch.h: Regenerate.
7079 * gdbarch.sh (stap_integer_prefix): New variable.
7080 (stap_integer_suffix): Likewise.
7081 (stap_register_prefix): Likewise.
7082 (stap_register_suffix): Likewise.
7083 (stap_register_indirection_prefix): Likewise.
7084 (stap_register_indirection_suffix): Likewise.
7085 (stap_gdb_register_prefix): Likewise.
7086 (stap_gdb_register_suffix): Likewise.
7087 (stap_is_single_operand): New function.
7088 (stap_parse_special_token): Likewise.
7089 (struct stap_parse_info): Forward declaration.
7090 * i386-tdep.c: Including headers needed to perform the parsing
7091 of SystemTap probes' arguments.
7092 (i386_stap_is_single_operand): New function.
7093 (i386_stap_parse_special_token): Likewise.
7094 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7095 probes' arguments parser.
7096 * i386-tdep.h (i386_stap_is_single_operand): New function.
7097 (i386_stap_parse_special_token): Likewise.
7098 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7099 * mipsread.c (ecoff_sym_fns): Likewise.
7100 * objfiles.c (objfile_relocate1): Support relocation for static
7101 probes.
7102 * parse.c (prefixify_expression): Remove static declaration.
7103 (initialize_expout): Likewise.
7104 (reallocate_expout): Likewise.
7105 * parser-defs.h (initialize_expout): Declare function.
7106 (reallocate_expout): Likewise.
7107 (prefixify_expression): Likewise.
7108 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7109 of SystemTap probes' arguments.
7110 (ppc_stap_is_single_operand): New function.
7111 (ppc_stap_parse_special_token): Likewise.
7112 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7113 probes' arguments parser.
7114 * probe.c: New file, for generic statically defined probe support.
7115 * probe.h: Likewise.
7116 * s390-tdep.c: Including headers needed to perform the parsing of
7117 SystemTap probes' arguments.
7118 (s390_stap_is_single_operand): New function.
7119 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7120 probes' arguments parser.
7121 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7122 * stap-probe.c: New file, for SystemTap probe support.
7123 * stap-probe.h: Likewise.
7124 * symfile.h: Include `gdb_vecs.h'.
7125 (struct sym_probe_fns): New struct.
7126 (struct sym_fns) <sym_probe_fns>: New field.
7127 * symtab.c (init_sal): Initialize `probe' field.
7128 * symtab.h (struct probe): Forward declaration.
7129 (struct symtab_and_line) <probe>: New field.
7130 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7131 locations.
7132 (stop_tracing): Likewise.
7133 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7134
7135 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7136 Tom Tromey <tromey@redhat.com>
7137
7138 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7139 and to compile agent expressions.
7140 * infrun.c (siginfo_make_value): New argument `ignore'.
7141 (siginfo_funcs): New struct.
7142 (_initialize_infrun): New argument when calling
7143 `create_internalvar_type_lazy'.
7144 * thread.c (thread_id_make_value): New argument `ignore'.
7145 (thread_funcs): New struct.
7146 (_initialize_thread): New argument when calling
7147 `create_internalvar_type_lazy'.
7148 * tracepoint.c (sdata_make_value): New argument `ignore'.
7149 (sdata_funcs): New struct.
7150 (_initialize_tracepoint): New argument when calling
7151 `create_internalvar_type_lazy'.
7152 * value.c (make_value): New struct.
7153 (create_internalvar_type_lazy): New argument `data'.
7154 (compile_internalvar_to_ax): New function.
7155 (value_of_internalvar): Properly handling `make_value' case.
7156 (clear_internalvar): Likewise.
7157 (show_convenience): Adding `TRY_CATCH' block.
7158 * value.h (internalvar_make_value): Delete, replace by...
7159 (struct internalvar_funcs): ... this.
7160 (create_internalvar_type_lazy) <fun>: Delete argument.
7161 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7162 (compile_internalvar_to_ax): New function.
7163 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7164 (tlb_funcs): New struct.
7165 (_initialize_windows_tdep): New argument when calling
7166 `create_internalvar_type_lazy'.
7167
7168 2012-04-27 Mark Wielaard <mjw@redhat.com>
7169
7170 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7171 see whether it is an address or a constant offset from DW_AT_low_pc.
7172 (dwarf2_record_block_ranges): Likewise.
7173 (read_partial_die): Likewise.
7174
7175 2012-04-26 Mark Wielaard <mjw@redhat.com>
7176
7177 * MAINTAINERS (Write After Approval): Add myself to the list.
7178
7179 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7180
7181 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7182 (proc_prettyprint_signal): Likewise.
7183 (proc_prettyprint_faultset): Likewise.
7184 (proc_prettyprint_fault): Likewise.
7185 (proc_prettyprint_actionset): Likewise.
7186 (proc_prettyprint_flags): Move to new proc-flags.c section.
7187 (proc_prettyfprint_flags): New prototype.
7188 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7189 (proc_syscall, proc_cursig): Likewise.
7190 (proc_set_kill_on_last_close): Likewise.
7191 (proc_unset_kill_on_last_close): Likewise.
7192 (proc_set_watchpoint): Make static.
7193 (proc_delete_dead_threads): Likewise.
7194 (procfs_set_watchpoint): Likewise.
7195 (_initialize_procfs): Add prototype.
7196 * proc-events.c: Include proc-utils.h.
7197 (init_syscall_table): Make static.
7198 * proc-api.c (_initialize_proc_api): Add prototype.
7199 * proc-flags.c: Include proc-utils.h.
7200
7201 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7202
7203 * configure.ac: Add AC_ARG_PROGRAM.
7204 * configure: Regenerate.
7205
7206 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7207
7208 Fix DW_AT_lower_bound defaults for DWARF-4+.
7209 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7210 high. New variable low_default_is_valid. Implement DWARF-4+
7211 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7212 no default by the DWARF standard.
7213
7214 2012-04-26 Maciej W. Rozycki <macro@mips.com>
7215 Maciej W. Rozycki <macro@codesourcery.com>
7216
7217 * infrun.c (handle_inferior_event): Move the check for return
7218 trampolines ahead of the check for function trampolines.
7219 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7220 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7221 (mips_str_mips16_ret_stub): Likewise.
7222 (mips_str_call_fp_stub): Likewise.
7223 (mips_str_call_stub): Likewise.
7224 (mips_str_fn_stub): Likewise.
7225 (mips_str_pic): Likewise.
7226 (mips_in_frame_stub): New function.
7227 (mips_unwind_pc): Return the return address rather than the PC
7228 if the PC of an intermediate frame is inside a call thunk.
7229 (mips_is_stub_suffix): New function.
7230 (mips_is_stub_mode): Likewise.
7231 (mips_get_mips16_fn_stub_pc): Likewise.
7232 (mips_skip_mips16_trampoline_code): Update to handle all the
7233 currently generated stub types. Don't recurse into __fn_stub
7234 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7235 Use cooked register accesses.
7236 (mips_in_return_stub): Reintroduce function.
7237 (mips_skip_trampoline_code): Traverse trampolines recursively.
7238 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7239
7240 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7241
7242 GDB 7.4.1 released.
7243
7244 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7245
7246 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7247 * features/arm-with-m-vfp-d16.xml: New file. Describes
7248 Cortex-M with VFPv4-sp-d16 FPU register layout.
7249 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7250 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7251 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7252 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7253 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7254
7255 2012-04-25 Doug Evans <dje@google.com>
7256
7257 * cli/cli-decode.c (print_doc_line): Use stream instead of
7258 current_uiout.
7259
7260 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7261
7262 * features/arm-with-iwmmxt.c: Regenerate.
7263 * features/arm-with-m-fpa-layout.c: Likewise.
7264 * features/arm-with-m.c: Likewise.
7265 * features/arm-with-neon.c: Likewise.
7266 * features/arm-with-vfpv2.c: Likewise.
7267 * features/arm-with-vfpv3.c: Likewise.
7268 * features/mips-dsp-linux.c: Likewise.
7269 * features/mips-linux.c: Likewise.
7270 * features/mips64-dsp-linux.c: Likewise.
7271 * features/mips64-linux.c: Likewise.
7272 * features/s390-linux32.c: Likewise.
7273 * features/s390-linux32v1.c: Likewise.
7274 * features/s390-linux32v2.c: Likewise.
7275 * features/s390-linux64.c: Likewise.
7276 * features/s390-linux64v1.c: Likewise.
7277 * features/s390-linux64v2.c: Likewise.
7278 * features/s390x-linux64.c: Likewise.
7279 * features/s390x-linux64v1.c: Likewise.
7280 * features/s390x-linux64v2.c: Likewise.
7281 * features/tic6x-c62x-linux.c: Likewise.
7282 * features/tic6x-c62x.c: Likewise.
7283 * features/tic6x-c64x-linux.c: Likewise.
7284 * features/tic6x-c64x.c: Likewise.
7285 * features/tic6x-c64xp-linux.c: Likewise.
7286 * features/tic6x-c64xp.c: Likewise.
7287 * target-descriptions.c: Only generate `field_type' and `type'
7288 variables when needed.
7289
7290 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7291
7292 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7293
7294 2012-04-25 Doug Evans <dje@google.com>
7295
7296 Initial pass at Go language support.
7297 * NEWS: Mention Go.
7298 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7299 go-valprint.c.
7300 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7301 (YYFILES): Add go-exp.c.
7302 (YYOBJ): Add go-exp.o.
7303 (local-maintainer-clean): Delete go-exp.c.
7304 * defs.h (enum language): Add language_go.
7305 * dwarf2read.c: #include "go-lang.h".
7306 (fixup_go_packaging): New function.
7307 (process_full_comp_unit): Call it when processing Go CUs.
7308 (dwarf2_physname): Add Go support.
7309 (read_file_scope): Handle missing language spec for GNU Go.
7310 (set_cu_language): Handle DW_LANG_Go.
7311 * go-exp.y: New file.
7312 * go-lang.h: New file.
7313 * go-lang.c: New file.
7314 * go-typeprint.c: New file.
7315 * go-valprint.c: New file.
7316 * symtab.c: #include "go-lang.h".
7317 (symbol_set_language): Handle language_go.
7318 (symbol_find_demangled_name, symbol_set_names): Ditto.
7319 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7320
7321 2012-04-24 Jim Meyering <meyering@redhat.com>
7322
7323 avoid a few strncpy-induced buffer overruns
7324 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7325 fname and psargs before trying to concatenate.
7326 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7327 "name" before applying strchr.
7328
7329 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7330
7331 * CONTRIBUTE: Use unified diff instead of context diff when
7332 generating patches.
7333
7334 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7335
7336 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7337 code. Handle JR.HB correctly.
7338
7339 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7340
7341 * mips-tdep.c
7342 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7343 with the other MIPS16 helpers.
7344
7345 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7346
7347 * observer.sh: Conditionally declare `args', thus cleaning up
7348 unused instances of this variable.
7349
7350 2012-04-24 Yao Qi <yao@codesourcery.com>
7351
7352 Revert this patch to allow breakpoint always-inserted
7353 in record target.
7354 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7355 * breakpoint.c: Include record.h.
7356 (breakpoints_always_inserted_mode): Return false when the record
7357 target is in use.
7358
7359 * breakpoint.c (iterate_over_bp_locations): New.
7360 * breakpoint.h: Declare.
7361 New typedef walk_bp_location_callback.
7362 * record.c (record_open): Call record_init_record_breakpoints.
7363 (record_sync_record_breakpoints): New.
7364 (record_init_record_breakpoints): New.
7365 * NEWS: Mention supporting breakpoint always-inserted mode in
7366 record target.
7367
7368 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7369
7370 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7371 any thread.
7372
7373 2012-04-24 Yao Qi <yao@codesourcery.com>
7374
7375 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7376 (is_catchpoint): ... it.
7377 (print_one_breakpoint_location): Caller update.
7378 * breakpoint.h: Update declaration.
7379
7380 2012-04-23 David S. Miller <davem@davemloft.net>
7381
7382 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7383
7384 2012-04-23 Tom Tromey <tromey@redhat.com>
7385
7386 * buildsym.c (add_free_pendings): Remove.
7387 * buildsym.h (add_free_pendings): Remove.
7388
7389 2012-04-23 Doug Evans <dje@google.com>
7390
7391 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7392 attr.u.unsnd instead of attr.u.addr.
7393 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7394 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7395 DW_FORM_ref_udata.
7396 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7397 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7398 DW_FORM_ref_udata.
7399 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7400
7401 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7402
7403 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7404 (mips_o32_return_value): Likewise.
7405 (mips_o64_return_value): Likewise.
7406
7407 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7408
7409 * ada-lang.c (ada_evaluate_subexp): Add cases for
7410 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7411 their treatment in eval.c.
7412
7413 2012-04-21 David S. Miller <davem@davemloft.net>
7414
7415 * sparc-tdep.c (X_DISP10): Define.
7416 (sparc_analyze_control_transfer): Handle compare-and-branch.
7417
7418 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7419
7420 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7421 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7422
7423 2012-04-20 Nigel Stephens <nigel@mips.com>
7424 Maciej W. Rozycki <macro@codesourcery.com>
7425
7426 * mips-tdep.c (mips_float_register_p): New function.
7427 (mips_convert_register_float_case_p): Use mips_float_register_p.
7428 (mips_register_type): Likewise.
7429 (mips_print_register): Likewise.
7430 (print_gp_register_row): Likewise.
7431 (mips_print_registers_info): Likewise.
7432
7433 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7434
7435 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7436 of mips16 symbols.
7437
7438 2012-04-20 Andrew Pinski <apinski@cavium.com>
7439
7440 * MAINTAINERS (Write After Approval): Add myself to the list.
7441
7442 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7443
7444 * MAINTAINERS: Update my e-mail address.
7445
7446 2012-04-20 Pedro Alves <palves@redhat.com>
7447
7448 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7449 $srcdir.
7450 * configure: Regenerate.
7451
7452 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7453
7454 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7455 declaration.
7456 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7457
7458 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7459
7460 Fix compilation compatibility with python-2.4
7461 * python/py-type.c (convert_field): Cast ADDRSTRING for
7462 PyObject_SetAttrString as non-const. New comment.
7463
7464 2012-04-19 Tom Tromey <tromey@redhat.com>
7465
7466 * top.c (quit_target): Use all_cleanups.
7467 * main.c (captured_command_loop): Use all_cleanups.
7468 * exceptions.c (throw_exception): Use all_cleanups.
7469
7470 2012-04-19 Pedro Alves <palves@redhat.com>
7471
7472 * Makefile.in (GNULIB_BUILDDIR): New.
7473 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7474 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7475 (CLEANDIRS). Remove gnulib/import.
7476 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7477 (all-lib): Ditto.
7478 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7479 (gnulib/import/Makefile): Replace gnulib/import with
7480 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7481 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7482 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7483 acx_configure_dir.m4.
7484 * acinclude.m4: Include acx_configure_dir.m4.
7485 * acx_configure_dir.m4: New file.
7486 * aclocal.m4: Regenerate.
7487 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7488 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7489 (GNULIB): New variable.
7490 (GNULIB_STDINT_H): Adjust.
7491 (AC_OUTPUT): Don't output gnulib/Makefile.
7492 * gdb/defs.h: Include build-gnulib/config.h.
7493 * aclocal.m4: Regenerate.
7494 * config.in: Regenerate.
7495 * configure: Regenerate.
7496
7497 * gnulib/Makefile.in: New file.
7498 * gnulib/configure.ac: New file.
7499 * gnulib/aclocal.m4: New file.
7500 * gnulib/config.in: New file.
7501 * gnulib/configure: New file.
7502 * gnulib/: Re-run gnulib-tool to adjust.
7503
7504 2012-04-19 Doug Evans <dje@google.com>
7505
7506 * cleanups.h (struct cleanup): Move to cleanups.c.
7507 (make_cleanup_dtor_ftype): New typedef.
7508 (make_cleanup_dtor): Use it.
7509 (ALL_CLEANUPS): Replace with ...
7510 (all_cleanups): ... this. Declare. All uses updated.
7511 * cleanups.c: #include "gdb_assert.h".
7512 (sentinel_cleanup): New static global.
7513 (SENTINEL_CLEANUP): Define.
7514 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7515 (make_my_cleanup2): Assert result is non-NULL.
7516 (all_cleanups): New function.
7517 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7518 of NULL.
7519
7520 2012-04-19 Pedro Alves <palves@redhat.com>
7521
7522 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7523 Adjust paths to gnulib imported files.
7524
7525 2012-04-19 Pedro Alves <palves@redhat.com>
7526
7527 * gnulib/: Move whole directory ...
7528 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7529 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7530 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7531 (aclocal_m4_deps): Adjust.
7532 * aclocal.m4: Regenerate.
7533 * configure: Regenerate.
7534 * configure.ac: Adjust AC_OUTPUT output.
7535
7536 2012-04-19 Yao Qi <yao@codesourcery.com>
7537
7538 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7539 (vec.o): New rule.
7540 * vec.c: Move it ...
7541 * common/vec.c: ... here.
7542 * vec.h: Move it ...
7543 * common/vec.h: ... here.
7544
7545 2012-04-19 Yao Qi <yao@codesourcery.com>
7546
7547 * gdb-code-style.el: New.
7548
7549 2012-04-18 Pedro Alves <palves@redhat.com>
7550
7551 Update gnulib from latest git.
7552 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7553
7554 * gnulib/Makefile.am: Update.
7555 * gnulib/dummy.c: Update.
7556 * gnulib/extra/arg-nonnull.h: Update.
7557 * gnulib/extra/c++defs.h: Update.
7558 * gnulib/extra/update-copyright: Update.
7559 * gnulib/extra/warn-on-use.h: Update.
7560 * gnulib/inttypes.in.h: Update.
7561 * gnulib/m4/00gnulib.m4: Update.
7562 * gnulib/m4/extensions.m4: Update.
7563 * gnulib/m4/gnulib-cache.m4: Update.
7564 * gnulib/m4/gnulib-common.m4: Update.
7565 * gnulib/m4/gnulib-comp.m4: Update.
7566 * gnulib/m4/gnulib-tool.m4: Update.
7567 * gnulib/m4/include_next.m4: Update.
7568 * gnulib/m4/inttypes-pri.m4: Update.
7569 * gnulib/m4/inttypes.m4: Update.
7570 * gnulib/m4/longlong.m4: Update.
7571 * gnulib/m4/memchr.m4: Update.
7572 * gnulib/m4/memmem.m4: Update.
7573 * gnulib/m4/mmap-anon.m4: Update.
7574 * gnulib/m4/multiarch.m4: Update.
7575 * gnulib/m4/onceonly.m4: Update.
7576 * gnulib/m4/stddef_h.m4: Update.
7577 * gnulib/m4/stdint.m4: Update.
7578 * gnulib/m4/string_h.m4: Update.
7579 * gnulib/m4/warn-on-use.m4: Update.
7580 * gnulib/m4/wchar_h.m4: Update.
7581 * gnulib/m4/wchar_t.m4: Update.
7582 * gnulib/m4/wint_t.m4: Update.
7583 * gnulib/memchr.c: Update.
7584 * gnulib/memmem.c: Update.
7585 * gnulib/stddef.in.h: Update.
7586 * gnulib/stdint.in.h: Update.
7587 * gnulib/str-two-way.h: Update.
7588 * gnulib/string.in.h: Update.
7589 * gnulib/wchar.in.h: Update.
7590
7591 * gnulib/extra/arg-nonnull.h: Delete.
7592 * gnulib/extra/c++defs.h: Delete.
7593 * gnulib/extra/warn-on-use.h: Delete.
7594 * gnulib/m4/wchar_h.m4: Delete.
7595 * gnulib/m4/wint_t.m4: Delete.
7596 * gnulib/wchar.in.h: Delete.
7597
7598 * gnulib/extra/snippets/arg-nonnull.h: New.
7599 * gnulib/extra/snippets/c++defs.h: New.
7600 * gnulib/extra/snippets/warn-on-use.h: New.
7601
7602 * aclocal.m4: Regenerate.
7603 * config.in: Regenerate.
7604 * configure: Regenerate.
7605 * gnulib/Makefile.in: Regenerate.
7606
7607 2012-04-18 Pedro Alves <palves@redhat.com>
7608
7609 Reimport the update-copyright module from gnulib
7610 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7611
7612 * configure: Regenerate.
7613 * gnulib/Makefile.am: Update.
7614 * gnulib/Makefile.in: Regenerate.
7615 * gnulib/extra/update-copyright: Update.
7616 * gnulib/m4/gnulib-cache.m4: Update.
7617 * gnulib/m4/gnulib-comp.m4: Update.
7618
7619 2012-04-18 Tristan Gingold <gingold@adacore.com>
7620
7621 * configure.ac (aix): Put -lpthread into libs.
7622 * configure: Regenerate.
7623
7624 2012-04-18 Tom Tromey <tromey@redhat.com>
7625
7626 * linespec.c (convert_linespec_to_sals): Don't use
7627 SYMBOL_OBJ_SECTION.
7628 (compare_msymbols): Arguments are minsym_and_objfile, not
7629 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7630
7631 2012-04-18 Pedro Alves <palves@redhat.com>
7632
7633 Revert gnulib/ part of:
7634 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7635 Copyright year update in most files (performed by copyright.sh).
7636
7637 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7638
7639 Fix 64-bit constants on 32-bit hosts.
7640 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7641 from unsigned long to ULONGEST.
7642 (read_signed_leb128): Change declaration return type from long to
7643 LONGEST.
7644 (dwarf2_const_value_attr): Change declaration parameter value from long
7645 to LONGEST.
7646 (dwarf2_compute_name): Change variable value from long to LONGEST.
7647 (read_unsigned_leb128): Change return type, variable result and some
7648 casts from unsigned long to ULONGEST.
7649 (read_signed_leb128): Change return type, variable result and some
7650 casts from long to LONGEST.
7651 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7652 value from long to LONGEST.
7653 (dwarf2_const_value): Change variable value from long to LONGEST.
7654 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7655 plongest and hex_string.
7656 * symtab.h (struct general_symbol_info): Change ivalue from long to
7657 LONGEST, remove the comment.
7658 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7659 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7660
7661 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7662
7663 PR symtab/7259:
7664 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7665 * ada-lang.c (ada_discrete_type_high_bound)
7666 (ada_discrete_type_low_bound): Fix function comment. Use
7667 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7668 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7669 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7670 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7671 Use TYPE_FIELD_ENUMVAL.
7672 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7673 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7674 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7675 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7676 TYPE_CODE_ENUM.
7677 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7678 * dwarf2read.c (process_enumeration_scope): Likewise.
7679 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7680 field.bitpos.
7681 (class StructMainTypePrettyPrinter): Support also
7682 FIELD_LOC_KIND_ENUMVAL.
7683 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7684 TYPE_CODE_ENUM.
7685 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7686 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7687 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7688 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7689 field enumval.
7690 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7691 accommodate enumval.
7692 (struct call_site): Adjust loc_kind to accommodate enumval.
7693 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7694 (TYPE_FIELD_ENUMVAL): New macros.
7695 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7696 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7697 TYPE_CODE_ENUM.
7698 * p-typeprint.c (pascal_type_print_base): Likewise.
7699 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7700 enumval.
7701 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7702 * python/py-type.c (convert_field): New variable addrstring. Use
7703 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7704 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7705 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7706 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7707 TYPE_CODE_ENUM.
7708 * valprint.c (generic_val_print): Likewise.
7709
7710 2012-04-17 Doug Evans <dje@google.com>
7711
7712 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7713
7714 * dwarf2read.c: Whitespace fixes.
7715 (lookup_signatured_type): Tweak comment.
7716 (get_die_type_at_offset): Fix comment.
7717
7718 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7719
7720 * xcoffread.c (xcoff_secnum_to_sections): New function.
7721 (secnum_to_section, secnum_to_bfd_section): Reimplement
7722 using xcoff_secnum_to_sections. Rename "secnum" parameter
7723 into "n_scnum".
7724 (RECORD_MINIMAL_SYMBOL): Delete.
7725 (record_minimal_symbol): New function.
7726 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7727 by call to record_minimal_symbol and set misc_func_recorded
7728 to 1. Set last_csect_sec to the XCOFF section index instead
7729 of GDB's section_offset index. Update calls to
7730 prim_record_minimal_symbol_and_info to pass the BFD section
7731 as well.
7732
7733 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7734
7735 * xcoffread.c (read_xcoff_symtab): Delete variables
7736 last_csect_val and last_csect_sec and associated code.
7737
7738 2012-04-17 Doug Evans <dje@google.com>
7739
7740 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7741 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7742 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7743 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7744
7745 * cleanups.h: New file.
7746 * cleanups.c: New file.
7747 * Makefile.in (SFILES): Add cleanups.c.
7748 (HFILES_NO_SRCDIR): Add cleanups.h.
7749 (COMMON_OBS): Add cleanups.o.
7750 * defs.h (struct cleanup): Moved to cleanups.h.
7751 (do_cleanups,do_final_cleanups): Ditto.
7752 (discard_cleanups,discard_final_cleanups): Ditto
7753 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7754 (save_cleanups,save_final_cleanups): Ditto.
7755 (restore_cleanups,restore_final_cleanups): Ditto.
7756 (null_cleanup): Ditto.
7757 (make_my_cleanup,make_my_cleanup2): Ditto.
7758 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7759 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7760 (do_cleanups,do_final_cleanups): Ditto.
7761 (discard_cleanups,discard_final_cleanups): Ditto
7762 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7763 (save_cleanups,save_final_cleanups): Ditto.
7764 (restore_cleanups,restore_final_cleanups): Ditto.
7765 (null_cleanup): Ditto.
7766 (make_my_cleanup,make_my_cleanup2): Ditto.
7767 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7768
7769 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7770 make_my_cleanup.
7771 (make_cleanup_dyn_string_delete): Ditto.
7772 (make_cleanup_ui_file_delete): Ditto.
7773 (make_cleanup_ui_out_redirect_pop): Ditto.
7774 (make_cleanup_free_section_addr_info): Ditto.
7775 (make_cleanup_restore_integer): Ditto.
7776 (make_cleanup_unpush_target): Ditto.
7777 (make_cleanup_value_free_to_mark): Ditto.
7778 (make_cleanup_value_free): Ditto.
7779 (make_cleanup_free_so): Ditto.
7780
7781 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7782
7783 New option "set debug auto-load".
7784 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7785 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7786 (auto_load_safe_path_vec_update)
7787 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7788 if DEBUG_AUTO_LOAD.
7789 (file_is_auto_load_safe): New parameters debug_fmt and ....
7790 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7791 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7792 caller by explanatory string.
7793 (_initialize_auto_load): Register "set debug auto-load".
7794 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7795 and ....
7796 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7797 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7798 by explanatory string.
7799 * main.c (captured_main): Likewise.
7800 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7801 (source_section_scripts): Likewise.
7802
7803 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7804
7805 New option "set auto-load safe-path".
7806 * NEWS: New commands "set auto-load safe-path"
7807 and "show auto-load safe-path".
7808 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7809 (auto_load_safe_path, auto_load_safe_path_vec)
7810 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7811 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7812 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7813 (source_gdb_script_for_objfile): New variable is_safe. Call
7814 file_is_auto_load_safe. Return if it is not.
7815 (struct loaded_script): New field loaded.
7816 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7817 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7818 output "Missing" to "No".
7819 (_initialize_auto_load): New variable cmd. Initialize
7820 auto_load_safe_path. Register "set auto-load safe-path",
7821 "show auto-load safe-path" and "add-auto-load-safe-path".
7822 * auto-load.h (maybe_add_script): Add parameter loaded.
7823 (file_is_auto_load_safe): New declaration.
7824 * config.in: Regenerate.
7825 * configure: Regenerate.
7826 * configure.ac: New parameters --with-auto-load-safe-path
7827 and --without-auto-load-safe-path.
7828 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7829 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7830 * main.c (captured_main): Check file_is_auto_load_safe for
7831 LOCAL_GDBINIT.
7832 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7833 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7834 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7835 not.
7836
7837 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7838
7839 auto-load: Implementation.
7840 * NEWS: New descriptions for "info auto-load",
7841 "info auto-load gdb-scripts", "info auto-load python-scripts",
7842 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7843 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7844 and "show auto-load-scripts". New description for "set auto-load",
7845 "show auto-load", "set auto-load gdb-scripts",
7846 "show auto-load gdb-scripts", "set auto-load python-scripts",
7847 "show auto-load python-scripts", "set auto-load local-gdbinit",
7848 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7849 "show auto-load libthread-db".
7850 * auto-load.c: Remove include python/python-internal.h. Add includes
7851 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7852 cli/cli-setshow.h.
7853 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7854 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): 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, show_auto_load_local_gdbinit)
7859 (script_language_gdb, source_gdb_script_for_objfile): New.
7860 (struct loaded_script): New field language.
7861 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7862 LANGUAGE.
7863 (maybe_add_script): Add parameter language. Drop redundant
7864 entry.full_path initialization. Initialize entry.language and
7865 (*slot)->language.
7866 (auto_load_objfile_script): Change parameter suffix to language.
7867 Remove the call of maybe_add_script.
7868 Call language->source_script_for_objfile.
7869 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7870 New.
7871 (collect_matching_scripts): Adjust it for
7872 struct collect_matching_scripts_data.
7873 (auto_load_info_scripts_pattern_nl): New variable.
7874 (info_auto_load_scripts): Rename to ...
7875 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7876 for struct collect_matching_scripts_data.
7877 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7878 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7879 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7880 (auto_load_info_cmdlist_get): New.
7881 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7882 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7883 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7884 "info auto-load local-gdbinit".
7885 * auto-load.h (struct script_language): New.
7886 (gdbpy_global_auto_load): Rename to ...
7887 (global_auto_load): ... here.
7888 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7889 (auto_load_local_gdbinit_loaded): New declarations.
7890 (maybe_add_script): New parameter language.
7891 (auto_load_objfile_script): Change parameter suffix to language.
7892 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7893 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7894 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7895 declarations.
7896 * linux-thread-db.c: Include auto-load.h and ctype.h.
7897 (auto_load_thread_db, show_auto_load_thread_db): New.
7898 (struct thread_db_info): New field filename.
7899 (delete_thread_db_info): Call xfree for FILENAME.
7900 (try_thread_db_load): Initialize FILENAME.
7901 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7902 if !AUTO_LOAD_THREAD_DB.
7903 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7904 (_initialize_thread_db): Install auto_load_thread_db
7905 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7906 as "info auto-load libthread-db".
7907 * main.c (captured_main): Rename gdbpy_global_auto_load to
7908 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7909 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7910 (print_gdb_help): Extend the help for 'local init file'.
7911 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7912 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7913 (auto_load_scripts): Rename to ...
7914 (auto_load_python_scripts): ... here, update the comment.
7915 (gdbpy_load_auto_script_for_objfile): New declaration.
7916 (show_auto_load_python_scripts, script_language_python)
7917 (gdbpy_load_auto_script_for_objfile): New.
7918 (source_section_scripts): Refactor the code.
7919 (load_auto_scripts_for_objfile): Rename to ...
7920 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7921 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7922 (info_auto_load_python_scripts): New.
7923 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7924 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7925 Register "set auto-load-scripts" as its deprecated alias. Register
7926 "info auto-load python-scripts". Register "info auto-load-scripts" as
7927 its deprecated alias.
7928 (load_auto_scripts_for_objfile): Rename to ...
7929 (gdbpy_load_auto_scripts_for_objfile): ... here.
7930 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7931 (gdbpy_load_auto_scripts_for_objfile): ... here.
7932
7933 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7934
7935 auto-load: Move files.
7936 * Makefile.in (SFILES): Add auto-load.c.
7937 (HFILES_NO_SRCDIR): Add auto-load.h.
7938 (COMMON_OBS): Add auto-load.o.
7939 (distclean): Change .gdbinit for gdb-gdb.gdb.
7940 * auto-load.c: New file, with parts from python/py-auto-load.c.
7941 * auto-load.h: New file, with parts from python/python.h.
7942 * configure: Regenerate.
7943 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7944 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7945 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7946 * main.c: Include auto-load.h.
7947 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7948 command.h, observer.h and progspace.h to auto-load.c. Add include
7949 auto-load.h.
7950 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7951 (struct loaded_script, auto_load_pspace_data)
7952 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7953 (hash_loaded_script_entry, eq_loaded_script_entry)
7954 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7955 (maybe_add_script): Move to auto-load.c.
7956 (source_section_scripts): Change maybe_add_script parameters passing,
7957 use script_not_found_warning_print.
7958 (clear_section_scripts, auto_load_objfile_script)
7959 (auto_load_new_objfile, loaded_script_ptr)
7960 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7961 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7962 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7963 auto_load_new_objfile and info_auto_load_scripts initizations to
7964 auto-load.c.
7965 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7966
7967 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7968
7969 Code cleanup.
7970 * charset.c (find_charset_names): Remove variables ix and elt.
7971 Use free_char_ptr_vec.
7972 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7973 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7974 debugdir_end. New variable debugdir_len.
7975 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7976 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7977 declarations.
7978 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7979 and elt. Use free_char_ptr_vec.
7980 * source.c (add_path): Remove variables argv, arg and argv_index.
7981 New variables dir_vec, back_to, ix and name.
7982 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7983 make_cleanup_freeargv. Remove variable separator. Simplify the code
7984 no longer expecting DIRNAME_SEPARATOR.
7985 (openp): Remove variable p, p1 and len. New variables dir_vec,
7986 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7987 no longer expecting DIRNAME_SEPARATOR.
7988 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7989 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7990 debugdir_end.
7991 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7992 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7993 (dirnames_to_char_ptr_vec): New functions.
7994
7995 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7996
7997 Code cleanup.
7998 * source.c (add_path): Remove always true conditional 'p == 0' and
7999 unindent its code block.
8000
8001 2012-04-17 Pedro Alves <palves@redhat.com>
8002
8003 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8004 (FIELD_BITPOS_LVAL): ... this.
8005 (FIELD_BITPOS): New.
8006 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8007 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8008 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8009 SET_FIELD_BITPOS.
8010 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8011 SET_FIELD_BITPOS.
8012 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8013 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8014 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8015 SET_FIELD_BITPOS.
8016
8017 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8018
8019 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8020 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8021 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8022 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8023 * jv-lang.c (java_link_class_type): Likewise, once.
8024 * stabsread.c (read_enum_type): Likewise.
8025
8026 2012-04-16 Yao Qi <yao@codesourcery.com>
8027
8028 * common/agent.c (agent_run_command): Add one more parameter `len'.
8029 Update callers.
8030 * common/agent.h: Update declaration.
8031 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8032 Update.
8033 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8034
8035 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8036
8037 PR mi/13393
8038 * value.c (value_actual_type): New function.
8039 * value.h (value_actual_type): New declaration.
8040 * varobj.c (update_type_if_necessary): New function.
8041 (varobj_create): Call value_actual_type instead of
8042 value_type.
8043 (install_dynamic_child): distinct changed and type changed MI variable
8044 objects.
8045 (update_dynamic_varobj_children): Updated for install_dynamic_child
8046 change. All callers updated.
8047 (varobj_update): Support for MI variable object type change if
8048 the value changed and RTTI is used to determine the type.
8049 (create_child_with_value): Call value_actual_type instead of
8050 value_type.
8051 (adjust_value_for_child_access): Extended with a new parameter which
8052 specify whether the given value should be casted to enclosing type.
8053 All callers updated.
8054
8055 2012-04-14 Yao Qi <yao@codesourcery.com>
8056
8057 Import gnulib module inttypes from git
8058 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8059 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
8060 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8061 gnulib/m4/inttypes-pri.m4
8062 * aclocal.m4, config.in, configure: Regenerated.
8063 * gnulib/Makefile.am: Update.
8064 * gnulib/Makefile.in: Update.
8065 * gnulib/m4/gnulib-cache.m4: Update.
8066 * gnulib/m4/gnulib-comp.m4: Update.
8067 * gnulib/inttypes.in.h: New.
8068 * gnulib/m4/inttypes-pri.m4: New.
8069 * gnulib/m4/inttypes.m4: New.
8070
8071 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
8072
8073 * infrun.c (resume): Update PC address to the real PC after
8074 preparing to do displaced stepping.
8075
8076 2012-04-12 Doug Evans <dje@google.com>
8077
8078 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8079 All callers updated.
8080
8081 2012-04-12 Mark Kettenis <kettenis@gnu.org>
8082
8083 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8084
8085 2012-04-12 Doug Evans <dje@google.com>
8086
8087 * dwarf2read.c (create_all_type_units): Renamed from
8088 create_debug_types_hash_table. All callers updated.
8089
8090 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8091 local type_sig to sig_type, type_offset to type_offset_in_tu.
8092 (hash_signatured_type): Renamed from hash_type_signature,
8093 all callers updated.
8094 (eq_signatured_type): Renamed from eq_type_signature,
8095 all callers updated.
8096 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8097 (process_enumeration_scope): Ditto.
8098 (lookup_signatured_type_at_offset): Ditto.
8099 (load_full_type_unit, read_signatured_type): Ditto.
8100
8101 2012-04-12 Yao Qi <yao@codesourcery.com>
8102
8103 * remote.c (async_remote_interrupt): Correct function name in
8104 debug message.
8105 (async_remote_interrupt_twice): Ditto.
8106
8107 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8108
8109 * source.c (find_and_open_source): Consistently pass resulting
8110 full path through xfullpath.
8111
8112 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8113
8114 Provide more specific displaced-stepping memory error message.
8115 * infrun.c (displaced_step_prepare): New variable status. Call
8116 target_read_memory instead of read_memory, provide more specific
8117 error message.
8118
8119 2012-04-11 Tristan Gingold <gingold@adacore.com>
8120
8121 PR gdb/13901
8122 * darwin-nat.c (darwin_execvp): Revert previous patch.
8123
8124 2012-04-11 Tristan Gingold <gingold@adacore.com>
8125
8126 PR gdb/13901
8127 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8128 in case of change.
8129
8130 2012-04-11 Tristan Gingold <gingold@adacore.com>
8131
8132 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8133 warning.
8134
8135 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8136
8137 New command 'explore' which helps explore values and types in
8138 scope.
8139 * NEWS: Add an entry about the new 'explore' command.
8140 * data-directory/Makefile.in: Add gdb/command/explore.py
8141 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
8142 command using the GDB Python API.
8143
8144 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8145
8146 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8147 extension in jump target calculation.
8148
8149 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
8150
8151 * mips-tdep.c (mips32_next_pc): Handle JALX.
8152
8153 2012-04-10 Yao Qi <yao@codesourcery.com>
8154
8155 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8156
8157 2012-04-10 Yao Qi <yao@codesourcery.com>
8158
8159 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8160 and gnulib/m4/gnulib-tool.m4.
8161
8162 2012-04-10 Doug Evans <dje@google.com>
8163
8164 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8165 (load_partial_dies): Clarify comment.
8166 (find_partial_die): Support rereading type units.
8167 Clarify CU handling, if we know offset is in CU, don't search for the
8168 containing CU. Add comment regarding memory waste.
8169
8170 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8171
8172 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8173 i386/x32-avx and i386/x32-avx-linux.
8174 (i386/x32-expedite): New.
8175 (i386/x32-linux-expedite): Likewise.
8176 (i386/x32-avx-expedite): Likewise.
8177 (i386/x32-avx-linux-expedite): Likewise.
8178 ($(outdir)/i386/x32.dat): Likewise.
8179 ($(outdir)/i386/x32-linux.dat): Likewise.
8180 ($(outdir)/i386/x32-avx.dat): Likewise.
8181 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8182
8183 * features/i386/x32-avx-linux.xml: New file.
8184 * features/i386/x32-avx.xml: Likewise.
8185 * features/i386/x32-core.xml: Likewise.
8186 * features/i386/x32-linux.xml: Likewise.
8187 * features/i386/x32.xml: Likewise.
8188
8189 * features/i386/x32-avx-linux.c: New. Generated.
8190 * features/i386/x32-avx.c: Likewise.
8191 * features/i386/x32-linux.c: Likewise.
8192 * features/i386/x32.c: Likewise.
8193 * regformats/i386/x32-avx-linux.dat: Likewise.
8194 * regformats/i386/x32-avx.dat: Likewise.
8195 * regformats/i386/x32-linux.dat: Likewise.
8196 * regformats/i386/x32.dat: Likewise.
8197
8198 2012-04-10 Tristan Gingold <gingold@adacore.com>
8199
8200 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8201 code to kill the inferior.
8202
8203 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8204
8205 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8206 defines.
8207 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8208 defines.
8209 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
8210 (yyvsp): New defines.
8211 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8212 defines.
8213 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8214 defines.
8215 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8216 defines.
8217 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8218 defines.
8219 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8220 defines.
8221
8222 2012-04-09 Mark Kettenis <kettenis@gnu.org>
8223
8224 * sparc64-tdep.c (sparc64_store_arguments)
8225 (sparc64_store_arguments): Fix coding style.
8226
8227 2012-04-07 Mark Kettenis <kettenis@gnu.org>
8228
8229 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8230 complex floats, adjust some related comments and tighten a related
8231 assertion.
8232 (sparc64_extract_return_value): Handle complex floats.
8233
8234 2012-04-07 Doug Evans <dje@google.com>
8235
8236 * dwarf2read.c (load_partial_dies): Change condition to assert.
8237
8238 2012-04-06 Doug Evans <dje@google.com>
8239
8240 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8241 "mov %rsp,%rbp".
8242
8243 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8244
8245 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8246 fencepost error.
8247 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8248 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8249 architecture.
8250
8251 2012-04-05 Keith Seitz <keiths@redhat.com>
8252
8253 * linespec.c (decode_compound): Remove.
8254 (enum offset_relative_sign): New enum.
8255 (struct line_offset): New struct.
8256 (struct linespec): New struct.
8257 (struct linespec_state): Move file_symtabs,
8258 user_filename, and user_function into struct linespec.
8259 Make result an anonymous struct holding vectors of
8260 symbolp and minsym_and_objfile_d.
8261 Add language member.
8262 (enum ls_token_type): New enum.
8263 (linespec_keywords): New array.
8264 (struct ls_token): New struct.
8265 (struct ls_parser): New struct.
8266 (linespec_lexer_lex_number): New function.
8267 (linespec_lexer_lex_keyword): New function.
8268 (is_ada_operator): New function.
8269 (skip_quote_char): New function.
8270 (copy_token_string): New function.
8271 (is_closing_quote_enclosed): New function.
8272 (find_parameter_list_end): New function.
8273 (linespec_lexer_lex_string): New function.
8274 (linespec_lexer_lex_one): New function.
8275 (linespec_lexer_consume_token): New function.
8276 (linespec_lexer_peek_token): New function.
8277 (cplusplus_error): Remove unused function.
8278 (find_methods): Update comment.
8279 (find_toplevel_char): Return const.
8280 (is_objc_method_format): Remove unused function.
8281 (find_toplevel_string): New function.
8282 (is_linespec_boundary): Remove.
8283 (symbol_not_found_error): New function.
8284 (find_method_overload_end): Remove function.
8285 (unexpected_linespec_error): New function.
8286 (keep_name_info): Remove.
8287 (linespec_parse_line_offset): New function.
8288 (linespec_parse_basic): New function.
8289 (canonicalize_linespec): New function.
8290 (decode_line_internal): Remove.
8291 (create_sals_line_offset): New function adapted from
8292 decode_all_digits.
8293 (convert_linespec_to_sals): New function.
8294 (parse_linespec): New function.
8295 (linespec_parser_new): New function.
8296 (linespec_state_destructor): Change parameter type to
8297 struct linespec_state *.
8298 Add language parameter.
8299 Remove freeing of moved members.
8300 (linespec_parser_delete): New function.
8301 (decode_line_full): Use parse_linespec and linespec_parser_new.
8302 (decode_line_1): Likewise.
8303 (decode_indirect): Rename to ...
8304 (linespec_expression_to_pc): ... this and rewrite
8305 to simply find CORE_ADDR, storing this result for later
8306 conversion to SALs.
8307 (locate_first_half): Remove.
8308 (deocde_objc): Add parameter LS.
8309 Initialize new struct collect_info members.
8310 Handle minimal symbols, too.
8311 (decode_compound): Delete.
8312 (lookup_prefix_sym): Rewrite.
8313 (compare_msymbols): New function.
8314 (find_method): Rewrite.
8315 Do not call cplusplus_error.
8316 (symtabs_from_filename): Rewrite.
8317 (collect_function_symbols): Delete.
8318 (find_function_symbols): Rewrite without ARGPTR-style
8319 processing.
8320 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8321 (decode_dollar): Adapted and renamed to ...
8322 (linespec_parse_variable): ... this.
8323 (find_linespec_symbols): New function.
8324 (decode_label): Adapted and renamed to ...
8325 (find_label_symbols): ... this.
8326 (decode_digits_list_mode): Add and use LS argument.
8327 (decode_digits_ordinary): Likewise.
8328 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8329 If in list mode, allow any symbol class. Otherwise, only
8330 permit LOC_BLOCK symbols.
8331 (minsym_found): Update comments.
8332 (search_minsyms_for_name): Do not convert the matching symbol
8333 into a SAL. Simply push the symbol and objfile into the
8334 result vector.
8335 (decode_variable): Delete. Contents adapted into
8336 find_linespec_symbols.
8337
8338 * cp-support.c (SKIP_SPACE): Remove.
8339 (operator_tokens): Remove unused global.
8340 (cp_validate_operator): Remove.
8341 * cp-support.h (cp_validate_operator): Remove declaration.
8342
8343 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8344
8345 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8346 for TYPE_VPTR_FIELDNO.
8347 * valprint.c (valprint_check_validity): Make it global, move the
8348 function comment ...
8349 * value.h (valprint_check_validity): ... to this new declaration.
8350
8351 2012-04-02 Tristan Gingold <gingold@adacore.com>
8352
8353 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8354 the STATE32 api for i386 state.
8355 (i386_darwin_store_inferior_registers): Likewise.
8356
8357 2012-04-02 Tristan Gingold <gingold@adacore.com>
8358
8359 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8360 SS offset.
8361 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8362 format_string.
8363
8364 2012-04-02 Tristan Gingold <gingold@adacore.com>
8365
8366 PR gdb/13901
8367 * darwin-nat.c (darwin_execvp): Set binary preference.
8368
8369 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8370
8371 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8372
8373 2012-03-30 Tom Tromey <tromey@redhat.com>
8374
8375 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8376 of TRY_CATCH. Fix error handling.
8377 * python/py-value.c (convert_value_from_python): Move 'old'
8378 declaration to innermost scope.
8379
8380 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8381 Andrey Smirnov <andrew.smirnov@gmail.com>
8382
8383 -Wshadow warning fix.
8384 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8385 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8386 Adjust code accordingly.
8387
8388 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8389
8390 * ada-lang.c (symbol_completion_add): Rename parameter
8391 "encoded" into "encoded_p". Ajust code and documentation
8392 accordingly.
8393
8394 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8395 Andrey Smirnov <andrew.smirnov@gmail.com>
8396
8397 -Wshadow warning fix.
8398 * ada-lang.c (symbol_completion_add): Rename parameter
8399 "wild_match" into wild_match_p. Update code and documentation
8400 accordingly.
8401
8402 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8403
8404 * ada-lang.c (symbol_completion_match): Rename parameter
8405 "encoded" into "encoded_p". Ajust code and documentation
8406 accordingly.
8407
8408 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8409 Andrey Smirnov <andrew.smirnov@gmail.com>
8410
8411 -Wshadow warning fix.
8412 * ada-lang.c (symbol_completion_match): Rename parameter
8413 "wild_match" into "wild_match_p". Adjust code and function
8414 documentation accordingly.
8415
8416 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8417 Andrey Smirnov <andrew.smirnov@gmail.com>
8418
8419 -Wshadow warning fix.
8420 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8421 "symbol_info" into "info". Adjust code accordingly.
8422 (ada_lookup_symbol): Likewise.
8423
8424 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8425
8426 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8427 of this function's documentation.
8428
8429 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8430 Andrey Smirnov <andrew.smirnov@gmail.com>
8431
8432 -Wshadow warning fix.
8433 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8434 variable into "wild_match_p". Adjust code accordingly.
8435
8436 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8437 Andrey Smirnov <andrew.smirnov@gmail.com>
8438
8439 -Wshadow warning fix.
8440 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8441 parameter into "wild_match_p". Adjust code accordingly.
8442 Document this parameter in the function description.
8443
8444 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8445 Andrey Smirnov <andrew.smirnov@gmail.com>
8446
8447 -Wshadow warning fix.
8448 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8449 "wild_match" parameter to "wild_match_p" (-Wshadow).
8450
8451 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8452
8453 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8454 in function documentation.
8455
8456 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8457 Andrey Smirnov <andrew.smirnov@gmail.com>
8458
8459 -Wshadow warning fix.
8460 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8461 variable into wild_match_p. Adjust code accordingly.
8462
8463 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8464 Andrey Smirnov <andrew.smirnov@gmail.com>
8465
8466 * ada-valprint.c (ada_val_print_1): Move the code handling
8467 TYPE_CODE_ENUM inside its own lexical block. Declare
8468 variables len and val there, instead of in the function's
8469 top level block. Avoid declaring deref_val again in a way
8470 that shadows another variable of the same name declared
8471 in one of the up-level blocks. Just re-use the up-level
8472 variable instead.
8473
8474 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8475
8476 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8477 Replace block_found argument by symbol_info. Adjust
8478 implementation accordingly. Add function documentation.
8479 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8480 Fix documentation.
8481 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8482 * ada-exp.y (write_object_renaming): Adjust to new
8483 ada_lookup_encoded_symbol API.
8484
8485 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8486
8487 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8488 documentation.
8489
8490 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8491
8492 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8493 (v850_register_name): Add the mpu and fpu register names.
8494 (v850e_register_name): Add the mpu and fpu register names.
8495 (v850e2_register_name): New function.
8496 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8497 bfd_mach_v850e2v3.
8498
8499 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8500
8501 * NEWS: Add entry for Ada varobj support.
8502
8503 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8504
8505 * varobj.c (default_value_is_changeable_p): New function,
8506 extracted from varobj_value_is_changeable_p. Add declaration.
8507 (ada_value_is_changeable_p): New function, extracted from
8508 varobj_value_is_changeable_p. Add declaration.
8509 (struct language_specific): New field "value_is_changeable_p".
8510 (languages): Add entries for new field.
8511 (varobj_create): Set language before calling install_new_value.
8512 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8513 "value_is_changeable_p" language callback.
8514
8515 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8516
8517 * ada-varobj.h, ada-varobj.c: New files.
8518 * Makefile.in (SFILES): Add ada-varobj.c.
8519 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8520 (COMMON_OBS): Add ada-varobj.o.
8521
8522 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8523
8524 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8525 (struct language_specific): New field "value_has_mutated".
8526 (languages): Set field "value_has_mutated" in each entry of array.
8527 (varobj_value_has_mutated): New function.
8528 (varobj_udpdate): Add handling of type mutation.
8529 (value_of_root): Add handling of type mutation.
8530 (ada_value_has_mutated): New function.
8531
8532 2012-03-28 Pedro Alves <palves@redhat.com>
8533
8534 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8535 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8536
8537 2012-03-28 Tom Tromey <tromey@redhat.com>
8538
8539 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8540 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8541 before returning.
8542
8543 2012-03-28 Tom Tromey <tromey@redhat.com>
8544
8545 * .dir-locals.el: New file.
8546
8547 2012-03-28 Pedro Alves <palves@redhat.com>
8548
8549 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8550
8551 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8552
8553 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8554 handling for r0.
8555
8556 2012-03-27 Pedro Alves <palves@redhat.com>
8557
8558 Eliminate struct ui_stream.
8559
8560 * ui-out.h (struct ui_stream): Delete.
8561 (ui_out_field_stream): Adjust prototype.
8562 (ui_out_stream_new, ui_out_stream_delete)
8563 (make_cleanup_ui_out_stream_delete): Delete declarations.
8564 * ui-out.c (ui_out_field_stream): Change prototype to take a
8565 ui_file instead of a ui_stream. Adjust.
8566 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8567 (make_cleanup_ui_out_stream_delete): Delete.
8568 * breakpoint.c (print_breakpoint_location)
8569 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8570 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8571 * disasm.c (dump_insns): Ditto.
8572 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8573 prototype.
8574 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8575 ui_stream/ui_out_stream_new.
8576 * infcmd.c (print_return_value): Ditto.
8577 * osdata.c (info_osdata_command): Don't allocate a local
8578 ui_stream.
8579 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8580 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8581 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8582 allocate a local ui_stream.
8583 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8584 instead of ui_stream/ui_out_stream_new.
8585 (list_args_or_locals): Don't allocate a local ui_stream.
8586 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8587 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8588 ui_stream/ui_out_stream_new.
8589 * cli/cli-setshow.c (do_setshow_command): Ditto.
8590
8591 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8592
8593 * arm-linux-tdep.c (arm_linux_init_abi): Call
8594 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8595 * arm-tdep.c (arm_process_record): New function.
8596 (deallocate_reg_mem): New function.
8597 (decode_insn): New function.
8598 (thumb_record_branch): New function.
8599 (thumb_record_ldm_stm_swi(): New function.
8600 (thumb_record_misc): New function.
8601 (thumb_record_ld_st_stack): New function.
8602 (thumb_record_ld_st_imm_offset): New function.
8603 (thumb_record_ld_st_reg_offset(): New function.
8604 (thumb_record_add_sub_cmp_mov): New function.
8605 (thumb_record_shift_add_sub): New function.
8606 (arm_record_coproc_data_proc): New function.
8607 (arm_record_coproc): New function.
8608 (arm_record_b_bl): New function.
8609 (arm_record_ld_st_multiple): New function.
8610 (arm_record_ld_st_reg_offset): New function.
8611 (arm_record_ld_st_imm_offset): New function.
8612 (arm_record_data_proc_imm): New function.
8613 (arm_record_data_proc_misc_ld_str): New function.
8614 (arm_record_extension_space): New function.
8615 (arm_record_strx): New function.
8616 (sbo_sbz): New function.
8617 (struct insn_decode_record): New structure for arm insn record.
8618 (REG_ALLOC): New macro for reg allocations.
8619 (MEM_ALLOC): New macro for memory allocations.
8620 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8621
8622 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8623
8624 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8625 (store_register): Likewise.
8626
8627 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8628
8629 * MAINTAINERS (Write After Approval): Add myself to the list.
8630
8631 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8632
8633 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8634 Describe also the option "auto".
8635
8636 2012-03-22 Richard Henderson <rth@redhat.com>
8637
8638 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8639 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8640
8641 2012-03-22 Richard Henderson <rth@redhat.com>
8642
8643 * jit.c (jit_read_code_entry): Compute alignment and offset of
8644 int64_t member before computing entry_size.
8645
8646 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8647
8648 Python scripting: Add new method Value.referenced_value to
8649 gdb.Value which can dereference pointer as well as reference
8650 values.
8651 * NEWS: Add entry under 'Python scripting' about the new method
8652 Value.referenced_value on gdb.Value objects.
8653 * python/py-value.c (valpy_referenced_value): New function
8654 defining a new method on gdb.Value objects which can dereference
8655 pointer and reference values.
8656
8657 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8658
8659 * MAINTAINERS (Write After Approval): Add myself to the list.
8660
8661 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8662
8663 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8664 in addition to "main".
8665
8666 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8667
8668 * expression.h (op_name): Add declaration.
8669 * expprint.c (op_name): Remove declaration. Make non-static.
8670 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8671
8672 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8673
8674 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8675 of struct siginfo.
8676 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8677 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8678 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8679 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8680 (linux_nat_get_siginfo): Likewise.
8681 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8682 (linux_nat_get_siginfo): Likewise.
8683 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8684 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8685 * procfs.c (gdb_siginfo_t): Likewise.
8686
8687 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8688
8689 * .gitignore: Ignore more files.
8690
8691 2012-03-20 Pedro Alves <palves@redhat.com>
8692
8693 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8694 returns.
8695
8696 2012-03-20 Yao Qi <yao@codesourcery.com>
8697
8698 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8699 comment.
8700
8701 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8702
8703 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8704 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8705 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8706 sect_offset.
8707 * dwarf2expr.h (cu_offset, sect_offset): New types.
8708 (struct dwarf_expr_context_funcs) <dwarf_call>
8709 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8710 sect_offset.
8711 (struct dwarf_expr_context) <len>: Improve the comment.
8712 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8713 cu_offset and sect_offset.
8714 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8715 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8716 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8717 * dwarf2loc.h: Include dwarf2expr.h.
8718 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8719 and sect_offset.
8720 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8721 Improve the comment.
8722 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8723 (struct signatured_type, struct line_header, struct partial_die_info)
8724 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8725 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8726 (get_die_type_at_offset, create_cus_from_index)
8727 (create_signatured_type_table_from_index, dw2_get_file_names)
8728 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8729 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8730 (create_debug_types_hash_table, process_psymtab_comp_unit)
8731 (load_partial_comp_unit, create_all_comp_units)
8732 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8733 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8734 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8735 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8736 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8737 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8738 (find_partial_die, read_attribute_value, lookup_die_type)
8739 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8740 (is_ref_attr): New function comment.
8741 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8742 Use cu_offset and sect_offset.
8743 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8744 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8745 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8746 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8747 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8748 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8749 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8750 sect_offset.
8751
8752 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8753
8754 Code cleanup.
8755 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8756 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8757 with xfree.
8758 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8759
8760 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8761
8762 * NEWS: Describe new options --init-command=FILE, -ix and
8763 --init-eval-command=COMMAND, -iex.
8764 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8765 CMDARG_INIT_COMMAND.
8766 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8767 "init-command", "init-eval-command", "ix" and "iex" to the variable
8768 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8769 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8770 (print_gdb_help): Describe --init-command=FILE, -ix and
8771 --init-eval-command=COMMAND, -iex.
8772
8773 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8774
8775 Code cleanup.
8776 * main.c (struct cmdarg): Move it here from main. Add more comments.
8777 (cmdarg_s, VEC (cmdarg_s)): New.
8778 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8779 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8780 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8781 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8782 of CMDARG.
8783
8784 2012-03-19 Tom Tromey <tromey@redhat.com>
8785
8786 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8787
8788 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8789
8790 PR symtab/13777
8791 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8792 GCC >=4.5.
8793
8794 2012-03-16 Chris January <chris.january@allinea.com>
8795
8796 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8797 of clear.
8798
8799 2012-03-16 Chris January <chris.january@allinea.com>
8800
8801 * source.c (add_path): Use memmove instead of strcpy because the
8802 strings overlap.
8803
8804 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8805
8806 * value.h (set_value_parent): Add declaration.
8807 * value.c (set_value_parent): New function.
8808 (value_address): If VALUE->PARENT is not NULL, then use it as
8809 the base address instead of VALUE->LOCATION.address.
8810 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8811 the same as OBJ's address. Adjust V's offset accordingly.
8812 Set V's parent.
8813
8814 2012-03-16 Gary Benson <gbenson@redhat.com>
8815
8816 PR breakpoints/10738
8817 * dwarf2read.c (use_deprecated_index_sections): New global.
8818 (struct partial_die_info): New member may_be_inlined.
8819 (read_partial_die): Set may_be_inlined where appropriate.
8820 (add_partial_subprogram): Add partial symbols for partial
8821 DIEs that may be inlined.
8822 (new_symbol_full): Add inlined subroutines to the current
8823 scope.
8824 (write_psymtabs_to_index): Bump version number.
8825 (dwarf2_read_index): Read only version 6 indices unless
8826 use_deprecated_index_sections is set.
8827 * linespec.c (symbol_and_data_callback): New structure.
8828 (iterate_inline_only): New function.
8829 (iterate_over_all_matching_symtabs): New argument
8830 "include_inline". If nonzero, also call the callback for
8831 symbols representing inlined subroutines.
8832 (lookup_prefix_sym): Pass extra argument to the above.
8833 (find_function_symbols): Likewise.
8834 (add_matching_symbols_to_info): Likewise.
8835 * NEWS: Mention that GDB can now set breakpoints on inlined
8836 functions.
8837
8838 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8839
8840 * p-typeprint.c (pascal_type_print_method_args):
8841 Fix display of parameter of methods.
8842
8843 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8844
8845 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8846 Add missing prototype.
8847
8848 2012-03-16 Yao Qi <yao@codesourcery.com>
8849 Jan Kratochvil <jan.kratochvil@redhat.com>
8850
8851 Fix false compilation warning.
8852 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8853
8854 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8855 Pedro Alves <pedro@codesourcery.com>
8856
8857 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8858 (arm_register_g_packet_guesses): New function.
8859 (arm_gdbarch_init): Don't force a target description with
8860 registers when the executable is detected as M-profile. Instead
8861 set gdbarch->tdep->is_m. Register `g' packet guesses.
8862 (_initialize_arm_tdep): Initialize the new target description.
8863 * features/arm-with-m-fpa-layout.xml: New description.
8864 * features/arm-with-m-fpa-layout.c: New, generated.
8865
8866 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8867
8868 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8869 Update function description.
8870 (insert_bp_location): Do not wipe bl->target_info out.
8871 * mem-break.c: #include "gdb_string.h".
8872 (default_memory_insert_breakpoint): Do not call target_read_memory
8873 with a pointer to the breakpoint's shadow_contents buffer. Use
8874 a local buffer instead.
8875 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8876
8877 2012-03-15 Tom Tromey <tromey@redhat.com>
8878
8879 * NEWS: Mention "info vtbl", not "info vtable".
8880 * cp-support.c (info_vtbl_command): Fix comment.
8881 (_initialize_cp_support): Fix text.
8882
8883 2012-03-15 Tom Tromey <tromey@redhat.com>
8884
8885 * cp-valprint.c (cp_print_value_fields): Use
8886 print_function_pointer_address for vtable slot.
8887
8888 2012-03-15 Tom Tromey <tromey@redhat.com>
8889
8890 * gnu-v3-abi.c (struct value_and_voffset): New.
8891 (hash_value_and_voffset, eq_value_and_voffset)
8892 (compare_value_and_voffset, compute_vtable_size)
8893 (print_one_vtable, gnuv3_print_vtable): New functions.
8894 (init_gnuv3_ops): Initialize 'print_vtable' field.
8895 * cp-support.c (info_vtbl_command): New function.
8896 (_initialize_cp_support): Add "info vtbl".
8897 * cp-abi.h (cplus_print_vtable): Declare.
8898 (struct cp_abi_ops) <print_vtable>: New field.
8899 * cp-abi.c (cplus_print_vtable): New function.
8900 * NEWS: Update.
8901
8902 2012-03-15 Tom Tromey <tromey@redhat.com>
8903
8904 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8905 iterate_over_symbols.
8906
8907 2012-03-14 Doug Evans <dje@google.com>
8908
8909 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8910 DW_OP_GNU_parameter_ref.
8911
8912 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8913
8914 Fix double prompt of 'interpreter-exec mi'.
8915 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8916 (mi_interpreter_resume): use it.
8917 (mi_execute_command_input_handler): New function.
8918 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8919 mi_execute_command_input_handler.
8920
8921 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8922
8923 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8924 prototype.
8925 (darwin_debug_port_info): Make static.
8926 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8927 * machoread.c (_initialize_machoread): Add prototype.
8928 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8929 (i386_darwin_set_control, i386_darwin_get_control)
8930 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8931 i386_darwin_get_status, i386_darwin_get_control):
8932 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8933
8934 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8935
8936 * ax-gdb.c (gen_usual_unary): Remove special handling of
8937 enum and bool types.
8938
8939 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8940
8941 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8942
8943 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8944
8945 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8946
8947 2012-03-13 Chris January <chris.january@allinea.com>
8948
8949 * aix-thread.c (fill_sprs): Store the floating point registers
8950 at the correct offsets into vals.
8951
8952 2012-03-13 Doug Evans <dje@google.com>
8953
8954 * NEWS: Mention symbol-reloading has been deleted.
8955 * symfile.c (symbol_reloading): Delete.
8956 (show_symbol_reloading): Delete.
8957 (_initialize_symfile): Delete set/show symbol-reloading.
8958
8959 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8960 read_in_chain until we have successfully read it in.
8961 (load_full_comp_unit): Ditto.
8962 (read_signatured_type): Add comment.
8963
8964 2012-03-13 Chris January <chris.january@allinea.com>
8965
8966 * stabsread.c (fix_common_block): Change type of valu argument
8967 to CORE_ADDR.
8968
8969 2012-03-13 Chris January <chris.january@allinea.com>
8970
8971 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8972 instruction.
8973
8974 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8975
8976 * common/linux-procfs.c (linux_proc_get_int): New, from
8977 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8978 field.
8979 (linux_proc_get_tgid): Only call linux_proc_get_int.
8980 (linux_proc_get_tracerpid): New.
8981 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8982 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8983 linux_proc_pid_has_state.
8984 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8985 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8986 (linux_ptrace_attach_warnings): New.
8987 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8988 New declaration.
8989 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8990 (linux_nat_attach): New variables ex, buffer, message and message_s.
8991 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8992
8993 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8994
8995 * Makefile.in (linux-ptrace.o): New.
8996 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8997 from linux-nat.c.
8998 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8999 * common/linux-ptrace.c: New file.
9000 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9001 * config/arm/linux.mh: Likewise.
9002 * config/i386/linux.mh: Likewise.
9003 * config/i386/linux64.mh: Likewise.
9004 * config/ia64/linux.mh: Likewise.
9005 * config/m32r/linux.mh: Likewise.
9006 * config/m68k/linux.mh: Likewise.
9007 * config/mips/linux.mh: Likewise.
9008 * config/pa/linux.mh: Likewise.
9009 * config/powerpc/linux.mh: Likewise.
9010 * config/powerpc/ppc64-linux.mh: Likewise.
9011 * config/powerpc/spu-linux.mh: Likewise.
9012 * config/s390/s390.mh: Likewise.
9013 * config/sparc/linux.mh: Likewise.
9014 * config/sparc/linux64.mh: Likewise.
9015 * config/xtensa/linux.mh: Likewise.
9016 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9017 common/linux-procfs.c.
9018 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9019
9020 2012-03-13 Hui Zhu <teawater@gmail.com>
9021 Pedro Alves <palves@redhat.com>
9022
9023 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9024 CREATE_BREAKPOINT_FLAGS_INSERTED.
9025 (create_breakpoint_sal, create_breakpoints_sal)
9026 (base_breakpoint_create_breakpoints_sal)
9027 (tracepoint_create_breakpoints_sal)
9028 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9029 down.
9030 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9031 (ftrace_command, strace_command): Adjust.
9032 (create_tracepoint_from_upload): Pass
9033 CREATE_BREAKPOINT_FLAGS_INSERTED.
9034 * breakpoint.h (enum breakpoint_create_flags): New.
9035 (create_breakpoint): New flags parameter.
9036 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9037 * python/py-breakpoint.c (bppy_init): Adjust.
9038 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9039 * spu-tdep.c (spu_catch_start): Adjust.
9040
9041 2012-03-13 Pedro Alves <palves@redhat.com>
9042 Hui Zhu <teawater@gmail.com>
9043 Yao Qi <yao@codesourcery.com>
9044
9045 * remote.c (struct remote_state): New field `starting_up'.
9046 (remote_start_remote): Set and clear it.
9047 (remote_can_download_tracepoint): If starting up, return false.
9048
9049 2012-03-13 Yao Qi <yao@codesourcery.com>
9050
9051 * inferior.h (struct inferior): Remove fields any_syscall_count,
9052 syscalls_counts and total_syscalls_count. Move them to new
9053 struct catch_syscall_inferior_data in breakpoint.c.
9054 * breakpoint.c: Call DEF_VEC_I(int).
9055 (struct catch_syscall_inferior_data): New.
9056 (get_catch_syscall_inferior_data): New.
9057 (catch_syscall_inferior_data_cleanup): New.
9058 (insert_catch_syscall): Update to access data in
9059 struct catch_syscall_inferior_data.
9060 (insert_catch_syscall): Likewise.
9061 (remove_catch_syscall): Likewise.
9062 (remove_catch_syscall): Likewise.
9063 (is_syscall_catchpoint_enabled): Likewise.
9064 (add_catch_command): Likewise.
9065 (_initialize_breakpoint): Register cleanup.
9066 * breakpoint.h: Removed DEF_VEC_I(int).
9067 * dwarf2loc.c: Call DEF_VEC_I(int).
9068 * mi/mi-main.c: Likewise.
9069
9070 2012-03-12 Mark Kettenis <kettenis@gnu.org>
9071
9072 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9073
9074 2012-03-12 Chris January <chris.january@allinea.com>
9075
9076 * aix-thread.c (_initialize_aix_thread): Add prototype.
9077 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9078 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9079
9080 2012-03-12 Joel Brobecker <brobecker@adacore.com>
9081
9082 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9083 include of "amd64-nat.h".
9084
9085 2012-03-12 Tom Tromey <tromey@redhat.com>
9086
9087 * buildsym.c (record_pending_block): Now static.
9088 * buildsym.h: (record_pending_block): Remove.
9089
9090 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
9091
9092 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9093
9094 2012-03-09 Tom Tromey <tromey@redhat.com>
9095
9096 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9097 producer_is_gxx_lt_4_6>: New fields.
9098 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9099
9100 2012-03-09 Tom Tromey <tromey@redhat.com>
9101
9102 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9103
9104 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9105
9106 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9107 prototype.
9108
9109 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9110
9111 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9112
9113 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9114
9115 Fix -Wmissing-prototypes build.
9116 * arm-linux-nat.c (get_thread_id): Make it static.
9117 * xtensa-linux-nat.c (get_thread_id): Likewise.
9118
9119 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9120
9121 * server.c (process_point_options): If a conditional expression
9122 is found, only print a message if remote_debug is nonzero.
9123
9124 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
9125
9126 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9127 of internal error for unknown/unsupported types.
9128
9129 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9130
9131 Fix CU relative vs. absolute DIE offsets.
9132 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9133 offset to offset_in_cu.
9134 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9135 TYPE_OFFSET.
9136 (dwarf2_fetch_die_location_block): Rename parameter offset to
9137 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9138
9139 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9140
9141 * libunwind-frame.c: Rename to ...
9142 * ia64-libunwind-tdep.c: ... here.
9143 * libunwind-frame.h: Rename to ...
9144 * ia64-libunwind-tdep.h: ... here.
9145 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9146 ia64-libunwind-tdep.h.
9147 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9148 * README (--with-libunwind): Rename to ...
9149 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9150 * config.in: Regenerate.
9151 * configure: Regenerate.
9152 * configure.ac: New option --with-libunwind-ia64, make the
9153 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9154 Remove AC_DEFINE for HAVE_LIBUNWIND.
9155 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9156 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9157 Rename libunwind-frame in the general comment.
9158 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9159 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9160 Move forward declarations inside #ifndef. Rename libunwind-frame in
9161 the general comment.
9162 * ia64-tdep.c: Rename libunwind-frame.h #include to
9163 ia64-libunwind-tdep.h.
9164 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9165 (ia64_libunwind_descr): Rename libunwind-frame to
9166 ia64-libunwind-tdep in these function comments.
9167 * ia64-tdep.h: Rename libunwind-frame.h #include to
9168 ia64-libunwind-tdep.h.
9169 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9170 ia64-libunwind-tdep in that data comment.
9171
9172 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9173
9174 * libunwind-frame.h (struct frame_unwind): New declaration.
9175
9176 2012-03-08 Joel Brobecker <brobecker@adacore.com>
9177
9178 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9179 "set breakpoint condition-evaluation" command.
9180
9181 2012-03-08 Tristan Gingold <gingold@adacore.com>
9182
9183 * sparc-stub.c: Move to stubs/
9184 * sh-stub.c: Likewise.
9185 * m68k-stub.c: Likewise.
9186 * m32r-stub.c: Likewise.
9187 * i386-stub.c: Likewise.
9188
9189 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9190
9191 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9192 linux_get_siginfo_type.
9193
9194 * m68klinux-nat.c: Include "gdb_proc_service.h".
9195 (PTRACE_GET_THREAD_AREA): Define.
9196 (ps_get_thread_area): New function.
9197
9198 2012-03-08 Yao Qi <yao@codesourcery.com>
9199
9200 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9201 `xsnprintf'.
9202 (remote_query_attached): Likewise.
9203 (remote_static_tracepoint_marker_at): Likewise.
9204 (remote_set_permissions): Likewise.
9205 (remote_detach_1, extended_remote_attach_1): Likewise.
9206 (send_g_packet, remote_vkill): Likewise.
9207 (extended_remote_disable_randomization): Likewise.
9208 (remote_add_target_side_condition): Likewise.
9209 (remote_insert_breakpoint): Likewise.
9210 (remote_remove_breakpoint): Likewise.
9211 (remote_insert_watchpoint): Likewise.
9212 (remote_remove_watchpoint): Likewise.
9213 (remote_insert_hw_breakpoint): Likewise.
9214 (remote_insert_hw_breakpoint): Likewise.
9215 (remote_remove_hw_breakpoint): Likewise.
9216 (remote_download_command_source): Likewise.
9217 (remote_download_tracepoint): Likewise.
9218 (remote_download_trace_state_variable): Likewise.
9219 (remote_disable_tracepoint): Likewise.
9220 (remote_trace_set_readonly_regions): Likewise.
9221 (remote_get_tracepoint_status): Likewise.
9222 (remote_trace_find): Likewise.
9223 (remote_get_trace_state_variable_value): Likewise.
9224 (remote_set_disconnected_tracing): Likewise.
9225 (remote_set_circular_trace_buffer): Likewise.
9226 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9227 (remote_use_agent): Likewise.
9228 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9229 Update callers.
9230
9231 2012-03-07 Pedro Alves <palves@redhat.com>
9232
9233 * NEWS: Mention QProgramSignals.
9234 * inferior.h (update_signals_program_target): Declare.
9235 * infrun.c: (update_signals_program_target): New.
9236 (handle_command): Update the target of the new program signals
9237 array changes.
9238 * remote.c (PACKET_QProgramSignals): New enum.
9239 (last_program_signals_packet): New global.
9240 (remote_program_signals): New.
9241 (remote_start_remote): Update the target with the program signals
9242 list.
9243 (remote_protocol_features): Add entry for QPassSignals.
9244 (remote_open_1): Free anc clear last_program_signals_packet.
9245 (init_remote_ops): Install remote_program_signals.
9246 * target.c (update_current_target): Adjust.
9247 (target_program_signals): New.
9248 * target.h (struct target_ops) <to_program_signals>: New field.
9249 (target_program_signals): Declare.
9250
9251 2012-03-07 Pedro Alves <palves@redhat.com>
9252
9253 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9254 extensions.
9255
9256 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9257
9258 * m68klinux-nat.c (getregs_supplies): Make static.
9259 (getfpregs_supplies): Likewise.
9260 (have_ptrace_getregs): Likewise.
9261
9262 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9263
9264 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9265 in call to get_die_type_at_offset.
9266
9267 2012-03-06 Stan Shebs <stan@codesourcery.com>
9268
9269 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9270 * mi/mi-cmd-disas.c: Ditto.
9271 * mi/mi-cmd-env.c: Ditto.
9272 * mi/mi-cmd-file.c: Ditto.
9273 * mi/mi-cmd-stack.c: Ditto.
9274 * mi/mi-cmd-target.c: Ditto.
9275 * mi/mi-cmd-var.c: Ditto.
9276 * mi/mi-cmds.c: Ditto.
9277 * mi/mi-cmds.h: Ditto.
9278 * mi/mi-console.c: Ditto.
9279 * mi/mi-getopt.c: Ditto.
9280 * mi/mi-getopt.h: Ditto.
9281 * mi/mi-interp.c: Ditto.
9282 * mi/mi-main.c: Ditto.
9283 * mi/mi-out.c: Ditto.
9284 * mi/mi-parse.c: Ditto.
9285 * mi/mi-parse.h: Ditto.
9286 * mi/mi-symbol-cmds.c: Ditto.
9287
9288 * mi/mi-getopt.h: Move mi_opt struct up.
9289 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9290 return.
9291 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9292
9293 2012-03-06 Tom Tromey <tromey@redhat.com>
9294
9295 * proc-service.c (ps_pglobal_lookup): Set the current program
9296 space.
9297
9298 2012-03-06 Pedro Alves <palves@redhat.com>
9299
9300 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9301
9302 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9303
9304 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9305
9306 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9307
9308 Code cleanup.
9309 * common/linux-osdata.c (linux_common_core_of_thread): New function
9310 comment.
9311 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9312 call by linux_common_core_of_thread.
9313 (linux_nat_core_of_thread_1): Remove.
9314 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9315 * linux-thread-db.c: Include linux-osdata.h.
9316 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9317 linux_common_core_of_thread.
9318
9319 2012-03-05 Tom Tromey <tromey@redhat.com>
9320
9321 * value.c (value_primitive_field): Don't fetch contents for
9322 non-virtual bases.
9323
9324 2012-03-05 Tom Tromey <tromey@redhat.com>
9325
9326 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9327
9328 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9329
9330 * s390-nat.c: Include "gregset.h".
9331
9332 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9333
9334 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9335 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9336 (libunwind_load): New variable so_error, use it for dlerror. Try to
9337 load also LIBUNWIND_SO_7.
9338
9339 2012-03-05 Pedro Alves <palves@redhat.com>
9340
9341 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9342 is not NULL, and remove resulting dead code.
9343
9344 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9345
9346 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9347 prologue to sh_analyze_prologue.
9348 (sh_analyze_prologue): Make better use of such an upper limit, and
9349 generally be more cautious about accessing memory.
9350
9351 2012-03-05 Tom Tromey <tromey@redhat.com>
9352
9353 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9354 _initialize_ia64_hpux_tdep.
9355
9356 2012-03-05 Pedro Alves <palves@redhat.com>
9357
9358 PR gdb/13766
9359
9360 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9361 the register state is clear, supply explicit zero, instead of
9362 marking the register unavailable.
9363
9364 2012-03-05 Tristan Gingold <gingold@adacore.com>
9365
9366 * NEWS: Mention OpenVMS ia64 new target.
9367
9368 2012-03-05 Tristan Gingold <gingold@adacore.com>
9369
9370 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9371 (ia64_unw_accessors, ia64_unw_rse_accessors)
9372 (ia64_libunwind_descr): Declare.
9373 * ia64-vms-tdep.c: New file.
9374 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9375 (ia64_libunwind_descr): Make them public.
9376 * configure.tgt: Add ia64-*-*vms*.
9377 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9378 (ALLDEPFILES): Add ia64-vms-tdep.c
9379
9380 2012-03-05 Tristan Gingold <gingold@adacore.com>
9381
9382 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9383 * remote.c (PACKET_qXfer_uib): New enum value.
9384 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9385 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9386 (_initialize_remote): Call add_packet_config_cmd for
9387 xfer:uib packet.
9388
9389 2012-03-05 Tristan Gingold <gingold@adacore.com>
9390
9391 * osabi.c (gdb_osabi_names): Add OpenVMS.
9392 (generic_elf_osabi_sniffer): Likewise.
9393 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9394
9395 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9396
9397 Removed unused code.
9398 * libunwind-frame.c (libunwind_frame_unwind)
9399 (libunwind_frame_base_address): Remove.
9400 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9401
9402 2012-03-04 Yao Qi <yao@codesourcery.com>
9403
9404 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9405 remove trailing new line.
9406 (agent_run_command, agent_run_command): Add _ markup.
9407 (agent_capability_check): Likewise.
9408
9409 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9410
9411 * breakpoint.c (set_condition_evaluation_mode): Set
9412 CONDITION_EVALUATION_MODE unconditionally.
9413
9414 2012-03-03 Yao Qi <yao@codesourcery.com>
9415
9416 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9417 * common/agent.h: Update declaration.
9418 * inf-child.c (inf_child_use_agent): New.
9419 (inf_child_can_use_agent): New.
9420 (inf_child_target): Initialize fields `to_use_agent'
9421 and `to_can_use_agent'.
9422 * agent.c (agent_new_objfile): New.
9423 (_initialize_agent): Add agent_new_objfile to new_objfile
9424 observer.
9425
9426 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9427 New.
9428 (linux_target_install_ops): Initialize field
9429 `to_static_tracepoint_markers_by_strid'.
9430 * remote.c (free_current_marker): Move it to ...
9431 * tracepoint.c (free_current_marker): ... here. New.
9432 (cleanup_target_stop): New.
9433 * tracepoint.h: Declare free_current_marker.
9434 * NEWS: Add one entry about `info static-tracepoint-marker'.
9435
9436 2012-03-03 Yao Qi <yao@codesourcery.com>
9437
9438 * common/agent.c (agent_loaded_p): New.
9439 (agent_look_up_symbols): New global.
9440 * common/agent.h: Declare agent_loaded_p.
9441
9442 2012-03-03 Yao Qi <yao@codesourcery.com>
9443
9444 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9445 (agent_capability_check, agent_capability_invalidate): New.
9446 (symbol_list): New array element.
9447 * common/agent.h (enum agent_capa): New.
9448 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9449
9450 2012-03-03 Yao Qi <yao@codesourcery.com>
9451
9452 * target.h (struct target_ops) <to_use_agent>: New field.
9453 (struct target_ops) <to_can_use_agent>: New field.
9454 (target_use_agent, target_can_use_agent): New macro.
9455 * target.c (update_current_target): Update.
9456 * remote.c: New enum `PACKET_QAgent'.
9457 (remote_protocol_features): Add a new element.
9458 (remote_use_agent, remote_can_use_agent): New.
9459 (init_remote_ops): Initialize field `can_use_agent' with
9460 remote_can_use_agent. Intiailize field `use_agent' with
9461 remote_use_agent.
9462 * common/agent.c (use_agent): New global.
9463 * common/agent.h: Declare it.
9464 * tracepoint.c (info_static_tracepoint_markers_command): Add
9465 comment.
9466 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9467 (COMMON_OBS): Add common/agent.o and agent.o
9468 (common-agent.o): New rule.
9469 * agent.c: New.
9470
9471 2012-03-03 Yao Qi <yao@codesourcery.com>
9472
9473 * common/agent.c: New.
9474 * common/agent.h: New.
9475 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9476 AC_CHECK_HEADERS.
9477 * configure, configh.in: Regenerated.
9478
9479 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9480
9481 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9482 unless it exists for this architecture.
9483
9484 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9485
9486 * language.h (struct language_defn): New "method" la_read_var_value.
9487 * findvar.c: #include "language.h".
9488 (default_read_var_value): Renames read_var_value. Rewrite
9489 function description.
9490 (read_var_value): New function.
9491 * value.h (default_read_var_value): Add prototype.
9492 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9493 New functions.
9494 (ada_language_defn): Add entry for la_read_var_value.
9495 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9496 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9497 language_defn structures to add entry for new la_read_var_value
9498 field.
9499
9500 2012-03-02 Tom Tromey <tromey@redhat.com>
9501 Pedro Alves <palves@redhat.com>
9502
9503 PR breakpoints/13776:
9504 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9505 breakpoints.
9506 (delete_longjmp_breakpoint_at_next_stop): New.
9507 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9508 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9509 before deleting the inferior. Add comments.
9510 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9511 breakpoints immediately, but only on next stop. Move that code
9512 next to where we mark other breakpoints for deletion.
9513
9514 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9515
9516 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9517 marker.
9518 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9519 violation.
9520
9521 2012-03-02 Pedro Alves <palves@redhat.com>
9522
9523 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9524
9525 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9526
9527 Fix -Wmissing-prototypes build.
9528 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9529 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9530 (gdbsim_has_memory): Likewise.
9531
9532 2012-03-02 Yao Qi <yao@codesourcery.com>
9533
9534 Fix -Wmissing-prototypes build.
9535 * charset.c (phony_iconv_open): Make static.
9536 (phony_iconv_close, phony_iconv): Likewise.
9537 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9538 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9539 prototype.
9540 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9541 * ser-mingw.c (create_select_thread): Make static.
9542 * windows-termcap.c (tgetent): New prototype.
9543 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9544
9545 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9546
9547 Fix -Wmissing-prototypes build.
9548 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9549 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9550 (_initialize_loadable): New prototypes.
9551
9552 2012-03-02 Doug Evans <dje@google.com>
9553
9554 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9555 abbrev table, read_comp_unit will do it.
9556
9557 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9558
9559 Fix -Wmissing-prototypes build.
9560 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9561 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9562 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9563 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9564 (_initialize_arm_symbian_tdep): New prototype.
9565 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9566 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9567 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9568 static.
9569 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9570 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9571 prototype.
9572 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9573 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9574 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9575 static.
9576 * moxie-tdep.c (moxie_process_record): Likewise.
9577 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9578 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9579 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9580 (_initialize_rl78_tdep): New prototype.
9581 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9582 (_initialize_rx_tdep): New prototype.
9583 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9584 (_initialize_darwin_solib): New prototype.
9585 * solib-spu.c: Include solib-spu.h.
9586 (_initialize_spu_solib): New prototype.
9587 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9588 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9589 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9590 (tic6x_software_single_step): Make it static.
9591 (_initialize_tic6x_tdep): New prototype.
9592
9593 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9594
9595 Fix -Wmissing-prototypes build.
9596 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9597 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9598
9599 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9600
9601 Fix -Wmissing-prototypes build.
9602 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9603 (frv_have_stopped_data_address): Remove.
9604
9605 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9606
9607 Fix -Wmissing-prototypes build.
9608 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9609 * sh-tdep.c: Include sh64-tdep.h.
9610 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9611 * sh64-tdep.c: Include sh64-tdep.h.
9612 * sh64-tdep.h: New file.
9613
9614 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9615
9616 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9617
9618 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9619
9620 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9621 sp_regnum once the gdbarch_init_osabi hook has been called.
9622
9623 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9624
9625 * mips-tdep.c (mips32_bc1_pc): New function.
9626 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9627 BPOSGE32 and BPOSGE64 instructions.
9628 (deal_with_atomic_sequence): Likewise.
9629 (mips32_instruction_has_delay_slot): Likewise.
9630
9631 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9632 Chris Dearman <chris@mips.com>
9633 Maciej W. Rozycki <macro@codesourcery.com>
9634 Joseph Myers <joseph@codesourcery.com>
9635
9636 * features/mips-dsp.xml: New file.
9637 * features/mips64-dsp.xml: New file.
9638 * features/mips-dsp-linux.xml: New file.
9639 * features/mips64-dsp-linux.xml: New file.
9640 * features/Makefile (WHICH): Add mips-dsp-linux and
9641 mips64-dsp-linux.
9642 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9643 * features/mips-dsp-linux.c: New file.
9644 * features/mips64-dsp-linux.c: New file.
9645 * regformats/mips-dsp-linux.dat: New file.
9646 * regformats/mips64-dsp-linux.dat: New file.
9647 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9648 registers.
9649 (mips64_linux_register_addr): Likewise.
9650 (mips64_linux_regsets_fetch_registers): Likewise.
9651 (mips64_linux_regsets_store_registers): Likewise.
9652 (mips64_linux_fetch_registers): Update call to
9653 mips64_linux_regsets_fetch_registers.
9654 (mips64_linux_store_registers): Update call to
9655 mips64_linux_regsets_store_registers.
9656 (mips_linux_read_description): Probe for DSP registers.
9657 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9658 and initialize_tdesc_mips64_dsp_linux.
9659 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9660 Remove padding of no longer used embedded register slots.
9661 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9662 (MIPS_RESTART_REGNUM): Redefine enum value.
9663 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9664 strings.
9665 (mips_tx39_reg_names): Likewise.
9666 (mips_linux_reg_names): New array of register names for Linux
9667 targets.
9668 (mips_register_name): Check for a null pointer in
9669 mips_processor_reg_names and return an empty string.
9670 (mips_register_type): Exclude embedded registers for the IRIX
9671 and Linux ABIs.
9672 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9673 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9674 DSP registers.
9675 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9676 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9677 (mips_gdbarch_init): Likewise. Initialize internal register
9678 indices for the Linux ABI. Use dynamic numbers to refer to
9679 registers, as applicable, while parsing the target description.
9680 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9681
9682 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9683
9684 * frame.h (read_frame_register_unsigned): Fix typo in function
9685 description.
9686
9687 2012-03-01 Pedro Alves <palves@redhat.com>
9688
9689 * jit-reader.in [!__cplusplus]
9690 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9691
9692 2012-03-01 Pedro Alves <palves@redhat.com>
9693
9694 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9695 * configure: Regenerate.
9696
9697 2012-03-01 Pedro Alves <palves@redhat.com>
9698
9699 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9700 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9701 (ftrace_command, strace_command): Make static.
9702 * d-lang.c (_initialize_d_language): Declare.
9703 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9704 * dwarf2loc.c (_initialize_dwarf2loc):
9705 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9706 * exec.c (exec_get_section_table): Make static.
9707 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9708 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9709 * inferior.c (remove_inferior_command, add_inferior_command)
9710 (clone_inferior_command): Make static.
9711 * linux-nat.c (linux_nat_thread_address_space)
9712 (linux_nat_core_of_thread): Make static.
9713 * linux-tdep.c (_initialize_linux_tdep): Declare.
9714 * objc-lang.c (_initialize_objc_lang): Declare.
9715 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9716 Make static.
9717 (_initialize_opencl_language): Declare.
9718 * record.c (_initialize_record): Declare.
9719 * remote.c (demand_private_info, remote_get_tib_address)
9720 (remote_supports_cond_tracepoints)
9721 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9722 Make static.
9723 * skip.c (_initialize_step_skip): Declare.
9724 * symtab.c (skip_prologue_using_lineinfo): Make static.
9725 * tracepoint.c (delete_trace_state_variable)
9726 (trace_variable_command, delete_trace_variable_command)
9727 (get_uploaded_tsv, find_matching_tracepoint_location)
9728 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9729 Make static.
9730 * value.c (pack_unsigned_long): Make static.
9731 * varobj.c (varobj_ensure_python_env): Make static.
9732 * windows-tdep.c (_initialize_windows_tdep): Declare.
9733 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9734
9735 2012-03-01 Pedro Alves <palves@redhat.com>
9736
9737 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9738 gdbarch parameter.
9739 (linux_init_abi): Install it as has_shared_address_space gdbarch
9740 callback.
9741
9742 2012-03-01 Pedro Alves <palves@redhat.com>
9743
9744 * observer.c (observer_test_first_notification_function)
9745 (observer_test_second_notification_function)
9746 (observer_test_third_notification_function): Add declarations.
9747
9748 2012-03-01 Pedro Alves <palves@redhat.com>
9749
9750 * common/signals.c (default_target_signal_to_host)
9751 (default_target_signal_from_host): Move ...
9752 * arch-utils.c: ... here.
9753 * arch-utils.h (default_target_signal_to_host)
9754 (default_target_signal_from_host): Declare.
9755
9756 * common/signals.c (target_signal_from_command): Move ...
9757 * infrun.c: ... here.
9758 * inferior.h (target_signal_from_command): Declare.
9759 * target.h (target_signal_from_command)
9760 (default_target_signal_from_host, default_target_signal_to_host):
9761 Delete declarations.
9762
9763 * common/signals.c (_initialize_signals): Delete.
9764
9765 2012-03-01 Pedro Alves <palves@redhat.com>
9766
9767 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9768 both __cplusplus and !__cplusplus.
9769
9770 2012-03-01 Pedro Alves <palves@redhat.com>
9771
9772 * psymtab.c (find_and_open_source): Delete declaration.
9773 * source.c (find_and_open_source): Move comment ...
9774 * source.h (find_and_open_source): ... to this new declaration.
9775
9776 2012-03-01 Pedro Alves <palves@redhat.com>
9777
9778 * inline-frame.c: Include inline-frame.h.
9779
9780 2012-03-01 Pedro Alves <palves@redhat.com>
9781
9782 * tui/tui-data.c (set_gen_win_origin): Delete.
9783 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9784 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9785
9786 2012-03-01 Pedro Alves <palves@redhat.com>
9787
9788 * remote.c (encode_actions): Delete declaration.
9789 * tracepoint.c (encode_actions): Make extern.
9790 * tracepoint.h (encode_actions): Declare.
9791
9792 2012-03-01 Pedro Alves <palves@redhat.com>
9793
9794 * python/py-breakpoint.c: Include python.h.
9795 * python/py-continueevent.c (create_continue_event_object): Make
9796 static.
9797 * python/py-lazy-string.c (stpy_get_type): Make static.
9798 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9799 Make static.
9800 * python/py-utils.c (unicode_to_target_python_string): Make
9801 static.
9802 * python/py-value.c: Include python.h.
9803
9804 2012-03-01 Pedro Alves <palves@redhat.com>
9805
9806 * inferior.c (delete_threads_of_inferior): Delete.
9807
9808 2012-03-01 Pedro Alves <palves@redhat.com>
9809
9810 Import fallback definitions from glibc.
9811
9812 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9813 ps_prochandle): Forward declare.
9814 (ps_err_e): Use glibc's comments.
9815 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9816 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9817 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9818 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9819 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9820 (struct ps_prochandle): Adjust comment.
9821
9822 2012-03-01 Pedro Alves <palves@redhat.com>
9823
9824 * ada-lang.c (ada_modulus_from_name): Delete.
9825 * ada-lex.l (lexer_init): Make static.
9826
9827 2012-03-01 Pedro Alves <palves@redhat.com>
9828
9829 PR gdb/13767
9830
9831 * frame.c (read_frame_register_unsigned): New.
9832 * frame.h (read_frame_register_unsigned): Declare.
9833 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9834 Handle it.
9835 (print_i387_control_word): New parameter `control_p'. Handle it.
9836 (i387_print_float_info): Handle unavailable float registers.
9837
9838 2012-03-01 Keith Seitz <keiths@redhat.com>
9839
9840 * linespec.c (decode_line_2): Sort the list of methods
9841 alphabetically before presenting the user with a selection
9842 menu.
9843
9844 2012-03-01 Doug Evans <dje@google.com>
9845
9846 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9847 has_namespace_info.
9848 (dwarf2_read_abbrevs): Remove corresponding initialization.
9849
9850 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9851
9852 * NEWS: Mention new python command class gdb.COMMAND_USER.
9853 * cli/cli-cmds.c (show_user): Print error when used on a python
9854 command.
9855 (init_cli_cmds): Update documentation strings for "show user" and
9856 "set/show max-user-call-depth" to clarify that it does not apply to
9857 python commands.
9858 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9859 error check.
9860 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9861 gdb python api.
9862 * top.c (execute_command): Only execute a user-defined command as a
9863 legacy macro if c->user_commands is set.
9864
9865 2012-03-01 Tom Tromey <tromey@redhat.com>
9866
9867 * valprint.h (struct generic_val_print_decorations): New.
9868 (generic_val_print): Declare.
9869 * valprint.c (generic_val_print): New function.
9870 * p-valprint.c (p_decorations): New global.
9871 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9872 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9873 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9874 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9875 * m2-valprint.c (m2_decorations): New global.
9876 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9877 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9878 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9879 TYPE_CODE_ERROR>: Call generic_val_print.
9880 * f-valprint.c (f_decorations): New global.
9881 (f_val_print): Use print_function_pointer_address.
9882 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9883 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9884 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9885 generic_val_print.
9886 * c-valprint.c (c_decorations): New global.
9887 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9888 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9889 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9890 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9891 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9892 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9893 case.
9894
9895 2012-03-01 Tom Tromey <tromey@redhat.com>
9896
9897 * valprint.c (val_print): Update.
9898 * p-valprint (pascal_val_print): Return void.
9899 * p-lang.h (pascal_val_print): Return void.
9900 * m2-valprint.c (m2_val_print): Return void.
9901 * m2-lang.h (m2_val_print): Return void.
9902 * language.h (struct language_defn) <la_val_print>: Return void.
9903 * language.c (unk_lang_val_print): Return void.
9904 * jv-valprint.c (java_val_print): Return void.
9905 * jv-lang.h (java_val_print): Return void.
9906 * f-valprint.c (f_val_print): Return void.
9907 * f-lang.h (f_val_print): Return void.
9908 * d-valprint.c (d_val_print): Return void.
9909 (dynamic_array_type): Update.
9910 * d-lang.h (d_val_print): Return void.
9911 * c-valprint.c (c_val_print): Return void.
9912 * c-lang.h (c_val_print): Return void.
9913 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9914 void.
9915 * ada-lang.h (ada_val_print): Return void.
9916
9917 2012-03-01 Tom Tromey <tromey@redhat.com>
9918
9919 * value.h (val_print): Return void.
9920 * valprint.c (val_print): Return void.
9921
9922 2012-03-01 Tom Tromey <tromey@redhat.com>
9923
9924 * value.h (common_val_print): Return void.
9925 * valprint.c (common_val_print): Return void.
9926
9927 2012-03-01 Tom Tromey <tromey@redhat.com>
9928
9929 * value.h (value_print): Return void.
9930 * valprint.c (value_print): Return void.
9931 * p-valprint.c (pascal_value_print): Return void.
9932 * p-lang.h (pascal_value_print): Return void.
9933 * language.h (struct language_defn) <la_value_print>: Return
9934 void.
9935 * language.c (unk_lang_value_print): Return void.
9936 * jv-valprint.c (java_value_print): Return void.
9937 * jv-lang.h (java_value_print): Return void.
9938 * f-valprint.c (c_value_print): Don't declare.
9939 Include c-lang.h.
9940 * c-valprint.c (c_value_print): Return void.
9941 * c-lang.h (c_value_print): Return void.
9942 * ada-valprint.c (ada_value_print): Return void.
9943 * ada-lang.h (ada_value_print): Return void.
9944
9945 2012-03-01 Tom Tromey <tromey@redhat.com>
9946
9947 * value.c (value_primitive_field): Handle virtual base classes.
9948
9949 2012-03-01 Tom Tromey <tromey@redhat.com>
9950
9951 * gdbtypes.h (struct vbase): Remove.
9952
9953 2012-03-01 Tom Tromey <tromey@redhat.com>
9954
9955 * c-valprint.c (print_function_pointer_address): Move...
9956 * valprint.c: ... here. Make non-static.
9957 * m2-valprint.c (print_function_pointer_address): Remove.
9958 * valprint.h (print_function_pointer_address): Declare.
9959
9960 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9961
9962 * NEWS: Document the fact that one can provide a condition when
9963 creating an Ada exception catchpoint.
9964
9965 2012-03-01 Tom Tromey <tromey@redhat.com>
9966
9967 * valprint.c (val_print_type_code_flags): Fix placement of
9968 trailing brace.
9969
9970 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9971
9972 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9973 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9974 environment variable before calling update-copyright.
9975
9976 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9977
9978 * gnulib/extra/update-copyright: Update to the latest from
9979 gnulib's git repository.
9980 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9981 variable to 2 instead of 1.
9982
9983 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9984
9985 * varobj.c (c_value_of_variable): Remove dead code.
9986
9987 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9988
9989 * ada-lex.p (processId): Do not modify already encoded IDs.
9990 Update function documentation.
9991
9992 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9993
9994 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9995 "name" with "struct symbol *name_sym".
9996 * ada-exp.y (write_var_or_type): Update call to
9997 ada_find_renaming_symbol.
9998 "name" with "struct symbol *name_sym". Adjust Implementation
9999 accordingly. Adjust the function documentation.
10000
10001 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10002
10003 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10004 * ada-lang.c (ada_find_any_type): Add advance declaration.
10005 Make static. Replace ada_find_any_symbol by
10006 ada_find_any_type_symbol.
10007 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10008 Improve function description. Make static.
10009 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10010 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10011
10012 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10013
10014 * ada-lang.c (struct tag_args): Delete.
10015 (ada_get_tsd_type): Function body moved up in source file.
10016 (ada_tag_name_1, ada_tag_name_2): Delete.
10017 (ada_get_tsd_from_tag): New function.
10018 (ada_tag_name_from_tsd): New function.
10019 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10020 to determine the tag name.
10021
10022 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10023
10024 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10025 declaration.
10026 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10027 function.
10028
10029 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10030
10031 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10032
10033 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10034
10035 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10036 full searches.
10037
10038 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10039
10040 * ada-lang.c (constrained_packed_array_type): If there is a
10041 parallel XA type, use it to determine the array index type.
10042
10043 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10044
10045 * ada-valprint.c (ada_val_print_1): If our value is a reference
10046 to an array descriptor, dereference it before converting it
10047 to a simple array.
10048
10049 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10050
10051 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10052 creating fixed value.
10053 (ada_value_ind, ada_coerce_ref, assign_component)
10054 (ada_evaluate_subexp): Remove call to unwrap_value before
10055 call to ada_to_fixed_value.
10056
10057 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10058
10059 * ada-lang.c (to_fixed_array_type): Set result's type name.
10060
10061 2012-02-29 Joel Brobecker <brobecker@adacore.com>
10062
10063 * ada-lang.c (catch_ada_exception_command_split): Add new
10064 argument cond_string. Add support for condition at end of
10065 "catch exception" commands.
10066 (ada_decode_exception_location): Add new argument cond_string.
10067 Update call to catch_ada_exception_command_split.
10068 (create_ada_exception_catchpoint): Add new argument cond_string.
10069 Set the breakpoint condition if needed.
10070 (catch_ada_exception_command): Update call to
10071 ada_decode_exception_location.
10072 (ada_decode_assert_location): Add function documentation.
10073 Add support for condition at end of "catch assert" command.
10074 (catch_assert_command): Update calls to ada_decode_assert_location
10075 and create_ada_exception_catchpoint.
10076
10077 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10078
10079 Fix disp-step-syscall.exp: fork: single step over fork.
10080 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10081 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10082 comment, change parameters gdbarch and ptid to regcache. Remove
10083 parameter regcache, initialize gdbarch from regcache here.
10084 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10085 New functions.
10086 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10087 instead.
10088 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10089 'syscall'. Make the 'int' check more strict.
10090
10091 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10092
10093 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10094 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10095 (i386_linux_intx80_sysenter_syscall_record): ... here.
10096 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10097 Use the renamed function name.
10098
10099 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10100
10101 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10102 * breakpoint.c (until_break_command): Likewise.
10103 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10104 * infcall.c (call_function_by_hand): Likewise.
10105 * infcmd.c (finish_forward): Likewise.
10106 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10107
10108 2012-02-28 Tristan Gingold <gingold@adacore.com>
10109
10110 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10111 avoid variable assignments inside condition.
10112
10113 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10114
10115 Fix static analysis issue found by cppcheck.
10116 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10117 uninitialized BUF for size 2.
10118
10119 2012-02-27 Chris Dearman <chris@mips.com>
10120 Nathan Froyd <froydnj@codesourcery.com>
10121 Maciej W. Rozycki <macro@codesourcery.com>
10122
10123 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10124 (mips16_instruction_has_delay_slot): Likewise.
10125 (mips_segment_boundary): Likewise.
10126 (mips_adjust_breakpoint_address): Likewise.
10127 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10128
10129 2012-02-27 Maciej W. Rozycki <macro@mips.com>
10130 Maciej W. Rozycki <macro@codesourcery.com>
10131
10132 * infrun.c (handle_inferior_event): Don't proceed through
10133 shared library trampolines if stepping at the machine
10134 instruction level.
10135
10136 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10137
10138 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10139 too.
10140
10141 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10142
10143 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10144 (sh_stub_unwind_sniffer): New functions.
10145 (sh_stub_unwind): New variable.
10146 (sh_gdbarch_init): Wire everything.
10147
10148 2012-02-27 Pedro Alves <palves@redhat.com>
10149
10150 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10151 (linux_nat_post_attach_wait): Adjust to use
10152 linux_proc_pid_is_stopped.
10153 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10154 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10155 based on pid_is_stopped from both linux-nat.c and
10156 gdbserver/linux-low.c, and renamed.
10157
10158 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10159
10160 * remote.c (remote_watchpoint_addr_within_range): New function.
10161 (init_remote_ops): Use it.
10162
10163 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10164
10165 * target.h (target_watchpoint_addr_within_range): Document macro.
10166
10167 2012-02-24 Pedro Alves <palves@redhat.com>
10168
10169 * stack.c (set_last_displayed_sal): Issue internal_error instead
10170 of warning, and issue it after clearing the last displayed sal.
10171
10172 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10173 Pedro Alves <palves@redhat.com>
10174
10175 * breakpoint.c (until_break_command): Install breakpoints after
10176 all frame manipulations.
10177
10178 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10179
10180 * remote.c (remote_supports_cond_breakpoints): New forward
10181 declaration.
10182 (remote_add_target_side_condition): New function.
10183 (remote_insert_breakpoint): Add target-side breakpoint
10184 conditional if supported.
10185 (remote_insert_hw_breakpoint): Likewise.
10186 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10187 hook.
10188
10189 * target.c (update_current_target): Inherit
10190 to_supports_evaluation_of_breakpoint_conditions.
10191 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10192
10193 * target.h (struct target_ops)
10194 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10195 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10196
10197 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10198 (condition_evaluation_both, condition_evaluation_auto,
10199 condition_evaluation_host, condition_evaluation_target,
10200 condition_evaluation_enums, condition_evaluation_mode_1,
10201 condition_evaluation_mode): New static globals.
10202 (translate_condition_evaluation_mode): New function.
10203 (breakpoint_condition_evaluation_mode): New function.
10204 (gdb_evaluates_breakpoint_condition_p): New function.
10205 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10206 (mark_breakpoint_modified): New function.
10207 (mark_breakpoint_location_modified): New function.
10208 (set_condition_evaluation_mode): New function.
10209 (show_condition_evaluation_mode): New function.
10210 (bp_location_compare_addrs): New function.
10211 (get_first_location_gte_addr): New helper function.
10212 (set_breakpoint_condition): Free condition bytecode if locations
10213 has become unconditional. Call mark_breakpoint_modified (...).
10214 (condition_command): Call update_global_location_list (1) for
10215 breakpoints.
10216 (breakpoint_xfer_memory): Use is_breakpoint (...).
10217 (is_breakpoint): New function.
10218 (parse_cond_to_aexpr): New function.
10219 (build_target_condition_list): New function.
10220 (insert_bp_location): Handle target-side conditional
10221 breakpoints and call build_target_condition_list (...).
10222 (update_inserted_breakpoint_locations): New function.
10223 (insert_breakpoint_locations): Handle target-side conditional
10224 breakpoints.
10225 (bpstat_check_breakpoint_conditions): Add comment.
10226 (bp_condition_evaluator): New function.
10227 (bp_location_condition_evaluator): New function.
10228 (print_breakpoint_location): Print information on where the condition
10229 will be evaluated.
10230 (print_one_breakpoint_location): Likewise.
10231 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10232 breakpoint location.
10233 (force_breakpoint_reinsertion): New functions.
10234 (update_global_location_list): Handle target-side breakpoint
10235 conditions.
10236 Reinsert locations that are already inserted if conditions have
10237 changed.
10238 (bp_location_dtor): Free agent expression bytecode.
10239 (disable_breakpoint): Call mark_breakpoint_modified (...).
10240 Call update_global_location_list (...) with parameter 1 for breakpoints.
10241 (disable_command): Call mark_breakpoint_location_modified (...).
10242 Call update_global_location_list (...) with parameter 1 for breakpoints.
10243 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10244 (enable_command): mark_breakpoint_location_modified (...).
10245 (_initialize_breakpoint): Update documentation and add
10246 condition-evaluation breakpoint subcommand.
10247
10248 * breakpoint.h: Include ax.h.
10249 (condition_list): New data structure.
10250 (condition_status): New enum.
10251 (bp_target_info) <cond_list>: New field.
10252 (bp_location) <condition_changed, cond_bytecode>: New fields.
10253 (is_breakpoint): New prototype.
10254
10255 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10256
10257 * remote.c (remote_state) <cond_breakpoints>: New field.
10258 (PACKET_ConditionalBreakpoints): New enum.
10259 (remote_cond_breakpoint_feature): New function.
10260 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10261 (remote_supports_cond_breakpoints): New function.
10262 (_initialize_remote): Add new packet configuration for
10263 target-side conditional breakpoints.
10264
10265 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10266
10267 * NEWS: Mention target-side conditional breakpoint support,
10268 new condition-evaluation breakpoint subcommand and remote
10269 packet extensions.
10270
10271 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10272
10273 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10274 number.
10275
10276 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10277
10278 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10279 (after_prologue): Remove.
10280
10281 2012-02-23 Tom Tromey <tromey@redhat.com>
10282
10283 * jv-valprint.c (java_val_print): Remove dead code.
10284
10285 2012-02-23 Tristan Gingold <gingold@adacore.com>
10286
10287 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10288 known_tasks_element and known_tasks_length fields.
10289 (read_known_tasks_array): Change argument type. Use pointer type
10290 and number of elements from DATA. Adjust.
10291 (read_known_tasks_list): Likewise.
10292 (get_known_tasks_addr): Remove.
10293 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10294 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10295 type and array length. Merge former get_known_tasks_addr code.
10296
10297 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10298
10299 PR backtrace/13716
10300 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10301 it after set_momentary_breakpoint.
10302
10303 2012-02-22 Sterling Augustine <saugustine@google.com>
10304
10305 PR 13689:
10306 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10307
10308 2012-02-22 Gary Benson <gbenson@redhat.com>
10309
10310 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10311 (find_slot_in_mapped_hash): Likewise.
10312
10313 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10314
10315 PR build/13638
10316 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10317 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10318 * configure: Regenerate.
10319
10320 2012-02-21 Tristan Gingold <gingold@adacore.com>
10321 Pedro Alves <palves@redhat.com>
10322
10323 * ia64-tdep.c: Do not include libunwind-ia64.h.
10324 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10325 Include libunwind-ia64.h instead of libunwind.h.
10326 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10327 for libunwind.h existence.
10328 * configure, config.in: Regenerate.
10329
10330 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10331
10332 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10333 instead of value_rtti_target_type.
10334 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10335 instead of value_rtti_target_type.
10336 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10337 value_rtti_target_type.
10338 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10339 (value_rtti_target_type): Rename to ...
10340 (value_rtti_indirect_type): ... here and make it indirect. Update
10341 function comment.
10342 * value.c (readjust_indirect_value_type): New function.
10343 (coerce_ref): Support for enclosing type setting for references
10344 with readjust_indirect_value_type.
10345 * value.h (readjust_value_type): New declaration.
10346 (value_rtti_target_type): Rename to ...
10347 (value_rtti_indirect_type): ... here.
10348
10349 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10350
10351 * MAINTAINERS (Write After Approval): Add myself to the list.
10352
10353 2012-02-20 Doug Evans <dje@google.com>
10354
10355 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10356 Rename objfile_p_char parameter to objfilep.
10357 (build_objfile_section_table): Result is now void. All callers
10358 updated.
10359 * objfiles.h (struct objfile): Tweak comments, whitespace.
10360 (build_objfile_section_table): Update.
10361
10362 * elfread.c (elf_symfile_segments): Fix warning text.
10363
10364 2012-02-20 Tom Tromey <tromey@redhat.com>
10365
10366 PR gdb/13498:
10367 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10368 particular set of file names once.
10369 (dw2_map_symbol_filenames): Likewise.
10370
10371 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10372
10373 Code cleanup.
10374 * main.c (write_files): Remove the declaration.
10375 (external_editor_command): Move the declaration ...
10376 [GDBTK] (external_editor_command): ... here. Fix the comment.
10377
10378 2012-02-20 Tom Tromey <tromey@redhat.com>
10379
10380 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10381 extraneous block.
10382
10383 2012-02-20 Tristan Gingold <gingold@adacore.com>
10384
10385 * darwin-nat.h (enum darwin_msg_state): Add comments.
10386
10387 2012-02-20 Tristan Gingold <gingold@adacore.com>
10388
10389 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10390 value.
10391
10392 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10393
10394 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10395 between function description and implementation.
10396
10397 2012-02-17 Tom Tromey <tromey@redhat.com>
10398
10399 PR python/12070:
10400 * python/py-event.c (event_object_getset): New global.
10401 (event_object_type): Reference it.
10402 * python/py-type.c (field_object_getset): New global.
10403 (field_object_type): Reference it.
10404 * python/python-internal.h (gdb_py_generic_dict): Declare.
10405 * python/py-utils.c (gdb_py_generic_dict): New function.
10406
10407 2012-02-17 Tristan Gingold <gingold@adacore.com>
10408
10409 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10410
10411 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10412
10413 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10414 TYPE_CALLING_CONVENTION annotation.
10415
10416 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10417
10418 * MAINTAINERS: Add rx to target ISA section.
10419 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10420 (ALLDEPFILES): Add rx-tdep.c.
10421
10422 2012-02-16 Tom Tromey <tromey@redhat.com>
10423
10424 * symfile.c (symbol_file_add_main_1): Use inferior's
10425 symfile_flags.
10426 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10427 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10428 inferior.
10429 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10430 inferior.
10431 (follow_exec): Use inferior's symfile_flags.
10432 * inferior.h (struct inferior) <symfile_flags>: New field.
10433
10434 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10435
10436 PR gdb/9734:
10437 * remote-sim.c (gdbsim_create_inferior): Call error() when
10438 sim_create_inferior() fails.
10439
10440 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10441
10442 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10443
10444 2012-02-16 Tom Tromey <tromey@redhat.com>
10445
10446 PR c++/13653:
10447 * thread.c (struct current_thread_cleanup) <was_removable>: New
10448 field.
10449 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10450 (make_cleanup_restore_current_thread): Initialize new field.
10451
10452 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10453
10454 * MAINTAINERS: Add rl78 to target ISA section.
10455 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10456 (ALLDEPFILES): Add rl78-tdep.c.
10457 * NEWS: Mention rl78 as a new target.
10458
10459 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10460
10461 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10462 data.
10463 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10464
10465 2012-02-15 Tom Tromey <tromey@redhat.com>
10466
10467 PR gdb/12659:
10468 * infcmd.c (registers_info): Print just the current register's
10469 name.
10470
10471 2012-02-15 Tom Tromey <tromey@redhat.com>
10472
10473 * python/py-symbol.c (sympy_value): Use _().
10474
10475 2012-02-15 Pedro Alves <palves@redhat.com>
10476
10477 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10478 output to be like native targets'.
10479 (remote_pid_to_str): Special case the null ptid.
10480
10481 2012-02-14 Stan Shebs <stan@codesourcery.com>
10482
10483 * NEWS: Mention enable count command.
10484 * breakpoint.h (struct breakpoint): New field enable_count.
10485 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10486 (enable_breakpoint): Add arg to call.
10487 (struct disp_data): New struct.
10488 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10489 (do_map_enable_once_breakpoint): Create a struct and pass it.
10490 (do_map_enable_delete_breakpoint): Ditto.
10491 (do_map_enable_count_breakpoint): New function.
10492 (enable_count_command): New function.
10493 (bpstat_stop_status): Decrement enable_count.
10494 (print_one_breakpoint_location): Report enable count.
10495 (_initialize_breakpoint): Add enable count command.
10496
10497 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10498
10499 * rl78-tdep.c (reggroups.h): Include.
10500 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10501 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10502 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10503 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10504 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10505 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10506 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10507 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10508 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10509 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10510 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10511 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10512 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10513 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10514 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10515 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10516 beginning of register list.
10517 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10518 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10519 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10520 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10521 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10522 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10523 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10524 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10525 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10526 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10527 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10528 the pseudo registers. Rearrange other pseudo registers too so
10529 that the bank registers appear at the end.
10530 (rl78_register_type): Account for the fact that the byte sized
10531 bank registers are now pseudo-registers.
10532 (rl78_register_name): Rearrange the register name array. Make
10533 initial set of raw banked registers inaccessible.
10534 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10535 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10536 case for copying bytes back and forth between raw and pseudo
10537 versions of the banked registers. Update other cases to reflect
10538 the changed names.
10539 (rl78_return_value): Update to account for changed names of
10540 raw registers.
10541 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10542 rl78_register_sim_regno().
10543
10544 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10545
10546 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10547 the name parameter being passed to find_pc_partial_function().
10548
10549 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10550
10551 * MAINTAINERS: Step down from being ia64 target maintainer.
10552
10553 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10554
10555 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10556 compilation warning.
10557
10558 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10559
10560 Fix crash on loaded shlibs without loaded exec_bfd.
10561 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10562 (set_section_command): Replace exec_bfd by p->bfd.
10563
10564 2012-02-10 Tom Tromey <tromey@redhat.com>
10565
10566 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10567 when we have a C++ qualified name.
10568
10569 2012-02-10 Pedro Alves <palves@redhat.com>
10570
10571 * inferior.c (inferior_pid_to_str): New.
10572 (print_inferior, inferior_command): Use it.
10573
10574 2012-02-10 Pedro Alves <palves@redhat.com>
10575
10576 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10577 the test CFLAGS.
10578 * configure: Regenerate.
10579
10580 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10581
10582 * linespec.c (decode_line_internal): Fix comment correctness.
10583
10584 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10585
10586 PR gdb/12953
10587 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10588 * amd64bsd-nat.c: Add support for debug registers (adapted from
10589 i386bsd-nat.c).
10590 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10591 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10592 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10593 (amd64bsd_dr_get_control): New functions.
10594 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10595 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10596 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10597 watchpoints initialization.
10598 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10599
10600 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10601
10602 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10603 flds_bnds.fields.
10604 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10605
10606 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10607
10608 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10609
10610 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10611
10612 * language.h (symbol_name_cmp_ftype): Renames
10613 symbol_name_match_p_ftype.
10614 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10615 la_get_symbol_name_match_p.
10616 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10617 ada_get_symbol_name_match_p. Update comment.
10618 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10619 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10620 Renames symbol_name_match_p. Update field type.
10621 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10622 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10623 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10624 "la_get_symbol_name_cmp" in comments.
10625 * language.c: Likewise.
10626
10627 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10628
10629 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10630 %eflags offset.
10631 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10632 (amd64_sol2_gregset32_reg_offs): Likewise.
10633
10634 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10635
10636 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10637 of the returned BFD is allocated by GDB.
10638
10639 2012-02-07 Tom Tromey <tromey@redhat.com>
10640
10641 PR python/12027:
10642 * python/python-internal.h (frame_object_type): Declare.
10643 * python/py-symbol.c (sympy_needs_frame): New function.
10644 (sympy_value): New function.
10645 (symbol_object_getset): Add "needs_frame".
10646 (symbol_object_methods): Add "value".
10647 * python/py-frame.c (frame_object_type): No longer static.
10648
10649 2012-02-07 Tom Tromey <tromey@redhat.com>
10650
10651 PR python/13599:
10652 * python/py-symbol.c (sympy_line): New function.
10653 (symbol_object_getset): Add "line".
10654
10655 2012-02-07 Tom Tromey <tromey@redhat.com>
10656
10657 * charset.c (find_charset_names): Check 'in' against NULL.
10658
10659 2012-02-06 Doug Evans <dje@google.com>
10660
10661 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10662 and fields.name members from char * to const char *. All uses updated.
10663 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10664 from char * to const char *. All uses updated.
10665 (type_name_no_tag): Update.
10666 (lookup_unsigned_typename, lookup_signed_typename): Update.
10667 * gdbtypes.c (type_name_no_tag): Change result type
10668 from char * to const char *. All callers updated.
10669 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10670 name parameter from char * to const char *.
10671 * symtab.h (struct cplus_specific): Change type of demangled_name
10672 member from char * to const char *. All uses updated.
10673 (struct general_symbol_info): Change type of name and
10674 mangled_lang.demangled_name members from char * to const char *.
10675 All uses updated.
10676 (symbol_get_demangled_name, symbol_natural_name): Update.
10677 (symbol_demangled_name, symbol_search_name): Update.
10678 * symtab.c (symbol_get_demangled_name): Change result type
10679 from char * to const char *. All callers updated.
10680 (symbol_natural_name, symbol_demangled_name): Ditto.
10681 (symbol_search_name): Ditto.
10682 (completion_list_add_name): Change type of symname,sym_text,
10683 text,word parameters from char * to const char *.
10684 (completion_list_objc_symbol): Change type of sym_text,
10685 text,word parameters from char * to const char *.
10686 * ada-lang.c (find_struct_field): Change type of name parameter
10687 from char * to const char *.
10688 (encoded_ordered_before): Similarly for N0,N1 parameters.
10689 (old_renaming_is_invisible): Similarly for function_name parameter.
10690 (ada_type_name): Change result type from char * to const char *.
10691 All callers updated.
10692 * ada-lang.h (ada_type_name): Update.
10693 * buildsym.c (hashname): Change type of name parameter
10694 from char * to const char *.
10695 * buildsym.h (hashname): Update.
10696 * dbxread.c (end_psymtab): Change type of include_list parameter
10697 from char ** to const char **.
10698 * dwarf2read.c (determine_prefix): Change result type
10699 from char * to const char *. All callers updated.
10700 * f-lang.c (find_common_for_function): Change type of name, funcname
10701 parameters from char * to const char *.
10702 * f-lang.c (find_common_for_function): Update.
10703 * f-valprint.c (list_all_visible_commons): Change type of funcname
10704 parameters from char * to const char *.
10705 * gdbarch.sh (static_transform_name): Change type of name parameter
10706 and result from char * to const char *.
10707 * gdbarch.c: Regenerate.
10708 * gdbarch.h: Regenerate.
10709 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10710 of name parameter from char * to const char *.
10711 * jv-lang.c (java_primitive_type_from_name): Ditto.
10712 (java_demangled_signature_length): Similarly for signature parameter.
10713 (java_demangled_signature_copy): Ditto.
10714 (java_demangle_type_signature): Ditto.
10715 * jv-lang.h (java_primitive_type_from_name): Update.
10716 (java_demangle_type_signature): Update.
10717 * objc-lang.c (specialcmp): Change type of a,b parameters
10718 from char * to const char *.
10719 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10720 from char * to const char *. All callers updated.
10721 * p-lang.h (is_pascal_string_type): Update.
10722 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10723 of name parameter from char * to const char *.
10724 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10725 * utils.c (fprintf_symbol_filtered): Ditto.
10726 * defs.h (fprintf_symbol_filtered): Update.
10727 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10728 * stabsread.h (end_psymtab): Update.
10729 * stack.c (find_frame_funname): Change type of funname parameter
10730 from char ** to const char **.
10731 * stack.h (find_frame_funname): Update.
10732 * typeprint.c (type_print): Change type of varstring parameter
10733 from char * to const char *.
10734 * value.h (type_print): Update.
10735 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10736 from char * to const char *. All callers updated.
10737 (xcoff_end_psymtab): Change type of include_list parameter
10738 from char ** to const char **. All callers updated.
10739 (swap_sym): Similarly for name parameter. All callers updated.
10740 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10741 Use xstrdup.
10742 (process_coff_symbol): Use xstrdup.
10743 * stabsread.c (stabs_method_name_from_physname): Renamed from
10744 update_method_name_from_physname. Change result type from void
10745 to char *. All callers updated.
10746 (read_member_functions): In has_destructor case, store name in objfile
10747 obstack instead of malloc space. In !has_stub case, fix mem leak.
10748
10749 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10750
10751 * configure: Rebuild.
10752 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10753 LDFLAGS.
10754
10755 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10756
10757 * configure.tgt (rl78-*-elf): New target.
10758 * rl78-tdep.c: New file.
10759
10760 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10761
10762 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10763 and continue the loop. Add QUIT statement.
10764
10765 2012-02-03 Tom Tromey <tromey@redhat.com>
10766
10767 PR gdb/13596:
10768 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10769 bfd_lookup_symbol_from_symtab.
10770 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10771 gdb_bfd_lookup_symbol_from_symtab.
10772
10773 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10774
10775 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10776 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10777 symbol. Add assertion that sym2 is never NULL.
10778
10779 2012-02-02 Doug Evans <dje@google.com>
10780
10781 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10782 "name" parameter to const char ** from char **. All callers updated.
10783 (find_pc_partial_function): Ditto.
10784 (cache_pc_function_name): Change type to const char * from char *.
10785 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10786 (find_pc_partial_function): Update.
10787 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10788 type of "name" parameter to const char * from char *.
10789 All uses updated.
10790 * arch-utils.c (generic_in_solib_return_trampoline): Change
10791 type of "name" parameter to const char * from char *.
10792 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10793 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10794 type of "name" parameter to const char * from char *.
10795 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10796 * gdbarch.c: Regenerate.
10797 * gdbarch.h: Regenerate.
10798 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10799 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10800 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10801 type of "name" parameter to const char * from char *.
10802 * skip.c (skip_function_pc): Ditto.
10803 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10804 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10805 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10806 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10807 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10808 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10809 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10810 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10811 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10812
10813 2012-02-02 Pedro Alves <palves@redhat.com>
10814
10815 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10816 the current inferior has no execution. Make sure the current
10817 remote process matches gdb's current inferior.
10818
10819 2012-02-02 Tom Tromey <tromey@redhat.com>
10820
10821 PR gdb/13405:
10822 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10823 read-only memory.
10824
10825 2012-02-02 Tom Tromey <tromey@redhat.com>
10826
10827 PR gdb/9307:
10828 * symtab.c (lookup_language_this): Set block_found.
10829
10830 2012-02-01 Tom Tromey <tromey@redhat.com>
10831
10832 PR gdb/13431:
10833 * jit.c (struct jit_inferior_data): Rewrite.
10834 (struct jit_objfile_data): New.
10835 (get_jit_objfile_data): New function.
10836 (add_objfile_entry): Update.
10837 (jit_read_descriptor): Return int. Replace descriptor_addr
10838 argument with inf_data. Update. Don't call error.
10839 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10840 descriptor here.
10841 (jit_inferior_init): Don't look up descriptor. Don't call error.
10842 (jit_reset_inferior_data_and_breakpoints)
10843 (jit_inferior_created_observer): Remove.
10844 (jit_inferior_exit_hook): Update.
10845 (jit_executable_changed_observer): Remove.
10846 (jit_event_handler): Update.
10847 (free_objfile_data): Reset inferior data if needed.
10848 (_initialize_jit): Update.
10849
10850 2012-02-01 Tom Tromey <tromey@redhat.com>
10851
10852 * jit.c (bfd_open_from_target_memory): Move higher in file.
10853
10854 2012-02-01 Tristan Gingold <gingold@adacore.com>
10855
10856 * libunwind-frame.c (libunwind_load): Display message if dlopen
10857 failed.
10858
10859 2012-02-01 Gary Benson <gbenson@redhat.com>
10860
10861 * symtab.h (symbol_found_callback_ftype): New typedef.
10862 (iterate_over_symbols): Use the above.
10863 * symtab.c (iterate_over_symbols): Likewise.
10864 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10865 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10866 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10867 (iterate_name_matcher): Document return values.
10868 (collect_one_symbol): Likewise.
10869 (collect_function_symbols): Likewise.
10870 (collect_symbols): Likewise.
10871
10872 2012-02-01 Tom Tromey <tromey@redhat.com>
10873
10874 * ada-lang.c (resolve_subexp): Update.
10875 (ada_lookup_symbol_list): Add 'full_search' argument.
10876 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10877 ada_lookup_symbol_list.
10878 (ada_lookup_encoded_symbol): Update.
10879 (get_var_value): Update.
10880 * ada-exp.y (block_lookup): Update.
10881 (write_var_or_type): Update.
10882 (write_name_assoc): Update.
10883 * ada-lang.h (ada_lookup_symbol_list): Update.
10884
10885 2012-01-31 Tom Tromey <tromey@redhat.com>
10886
10887 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10888 comment.
10889
10890 2012-01-31 Doug Evans <dje@google.com>
10891
10892 * symtab.h: Remove outdated comment.
10893 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10894
10895 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10896
10897 Fix build error in Darwin port.
10898 * i386-darwin-nat.c: Include i386-nat.h.
10899
10900 2012-01-30 Tom Tromey <tromey@redhat.com>
10901
10902 PR breakpoints/13568:
10903 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10904 argument. Check for recursive includes.
10905 (dwarf_decode_macros): Create an include hash.
10906
10907 2012-01-30 Michael Eager <eager@eagercon.com>
10908
10909 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10910 * ppc-linux-tdep.c: Include glibc-tdep.h.
10911 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10912 (powerpc_linux_in_plt_stub): New function.
10913 (powerpc_linux_in_dynsym_resolve_code): New function.
10914 (ppc_skip_trampoline_code): New function.
10915 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10916 Use glibc_skip_solib_resolver.
10917
10918 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10919
10920 Code cleanup: Make 1440 bytes of data segment read-only.
10921 * arch-utils.c (endian_enum): Make it const char *const [].
10922 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10923 Likewise.
10924 * breakpoint.c (always_inserted_enums): Likewise.
10925 * cli/cli-cmds.c (script_ext_enums): Likewise.
10926 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10927 enumlist parameter const char *const *.
10928 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10929 const char *const *.
10930 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10931 parameter const char *const *.
10932 * cris-tdep.c (cris_modes): Make it const char *const [].
10933 * filesystem.c (target_file_system_kinds): Likewise.
10934 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10935 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10936 (can_use_displaced_stepping_enum, scheduler_enums)
10937 (exec_direction_names): Likewise.
10938 * language.c (_initialize_language): Make the type_or_range_names and
10939 case_sensitive_names variables const char *const [].
10940 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10941 * python/python.c (python_excp_enums): Likewise.
10942 * remote.c (interrupt_sequence_modes): Likewise.
10943 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10944 * serial.c (logbase_enums): Likewise.
10945 * sh-tdep.c (sh_cc_enum): Likewise.
10946 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10947 Likewise.
10948 * symtab.c (multiple_symbols_modes): Likewise.
10949 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10950 Likewise.
10951 * utils.c (internal_problem_modes): Likewise.
10952
10953 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10954
10955 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10956 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10957 result.
10958
10959 2012-01-27 Doug Evans <dje@google.com>
10960
10961 * configure.ac (with_python): Fix absolute path handling for win32.
10962 * configure: Regenerate.
10963
10964 2012-01-26 Doug Evans <dje@google.com>
10965
10966 * symtab.c: Whitespace cleanup, no code changes.
10967
10968 * symtab.c (lookup_symbol_in_language): Improve comment.
10969 (lookup_symbol_aux): Fix comment.
10970
10971 * psymtab.c (add_psymbol_to_list): Result is now "void".
10972 * psympriv.h (add_psymbol_to_list): Update.
10973
10974 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10975
10976 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10977
10978 Do not open script filenames twice.
10979 * cli/cli-cmds.c (source_script_from_stream): Pass to
10980 source_python_script also STREAM.
10981 * python/py-auto-load.c (source_section_scripts): Pass to
10982 source_python_script_for_objfile also STREAM.
10983 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10984 also INPUT.
10985 * python/python-internal.h (source_python_script_for_objfile): New
10986 parameter file, rename parameter file to filename.
10987 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10988 instead if !_WIN32. Update the function comment.
10989 (source_python_script, source_python_script_for_objfile)
10990 (source_python_script): New parameter file, rename parameter file to
10991 filename. Pass FILENAME to python_run_simple_file.
10992 * python/python.h (source_python_script): New parameter file, rename
10993 parameter file to filename.
10994
10995 2012-01-26 Pedro Alves <palves@redhat.com>
10996
10997 * corelow.c (core_has_fake_pid): Delete.
10998 (core_close): Delete references to `core_has_fake_pid'.
10999 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11000 (core_open): Delete references to `core_has_fake_pid'.
11001 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11002 the removed global.
11003
11004 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11005
11006 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11007 Remove language parameter from name_matcher. Adjust the comment.
11008 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11009 Remove language parameter.
11010 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11011 * linespec.c (iterate_name_matcher): Likewise.
11012 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11013 name_matcher. Adjust call accordingly.
11014 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11015 (maintenance_check_symtabs): Adjust type of parameter "fun".
11016 * psymtab.h (maintenance_check_symtabs): Likewise.
11017
11018 2012-01-26 Joel Brobecker <brobecker@adacore.com>
11019
11020 * language.h (symbol_name_match_p_ftype): New typedef.
11021 (struct language_defn): Replace field la_symbol_name_compare
11022 by la_get_symbol_name_match_p.
11023 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11024 (ada_language_defn): Use it.
11025 * linespec.c (struct symbol_matcher_data): New type.
11026 (iterate_name_matcher): Rewrite.
11027 (iterate_over_all_matching_symtabs): Pass a pointer to
11028 a symbol_matcher_data struct to expand_symtabs_matching
11029 instead of just the lookup name.
11030 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11031 opencl-lang.c, p-lang.c, language.c: Delete field
11032 la_symbol_name_compare, and replace by NULL for new field
11033 la_get_symbol_name_match_p.
11034 * symfile.h (struct quick_symbol_functions): Update comment.
11035
11036 2012-01-25 Tom Tromey <tromey@redhat.com>
11037
11038 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11039 dereferencing.
11040
11041 2012-01-24 Tom Tromey <tromey@redhat.com>
11042
11043 PR symtab/12406:
11044 * solib.c (update_solib_list): Update the program space's
11045 added_solibs and deleted_solibs fields.
11046 * progspace.h (struct program_space) <added_solibs,
11047 deleted_solibs>: New fields.
11048 (clear_program_space_solib_cache): Declare.
11049 * progspace.c (release_program_space): Call
11050 clear_program_space_solib_cache.
11051 (clear_program_space_solib_cache): New function.
11052 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11053 bpstat_stop_status. Use handle_solib_event.
11054 * breakpoint.c: Include gdb_regex.h.
11055 (print_solib_event): New function.
11056 (bpstat_print): Use print_solib_event.
11057 (bpstat_stop_status): Add special case for bp_shlib_event.
11058 (handle_solib_event): New function.
11059 (bpstat_what): Use handle_solib_event.
11060 (struct solib_catchpoint): New.
11061 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11062 (breakpoint_hit_catch_solib, check_status_catch_solib)
11063 (print_it_catch_solib, print_one_catch_solib)
11064 (print_mention_catch_solib, print_recreate_catch_solib): New
11065 functions.
11066 (catch_solib_breakpoint_ops): New global.
11067 (catch_load_or_unload, catch_load_command_1)
11068 (catch_unload_command_1): New functions.
11069 (internal_bkpt_check_status): Add special case for
11070 bp_shlib_event.
11071 (internal_bkpt_print_it): Use print_solib_event.
11072 (initialize_breakpoint_ops): Initialize
11073 catch_solib_breakpoint_ops.
11074 (_initialize_breakpoint): Register "catch load" and "catch
11075 unload".
11076 * breakpoint.h (handle_solib_event): Declare.
11077 * NEWS: Add entry for "catch load" and "catch unload".
11078
11079 2012-01-24 Tom Tromey <tromey@redhat.com>
11080
11081 * ada-lang.c: Include gdb_vecs.h.
11082 * charset.c: Include gdb_vecs.h.
11083 * tracepoint.h: Include gdb_vecs.h.
11084 * gdb_vecs.h: New file.
11085
11086 2012-01-24 Pedro Alves <pedro@codesourcery.com>
11087
11088 * breakpoint.c (breakpoint_hit_catch_fork)
11089 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11090 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11091 * infrun.c (inferior_has_forked, inferior_has_vforked)
11092 (inferior_has_execd, inferior_has_called_syscall): Delete.
11093 (handle_syscall_event): Get syscall_number from the execution
11094 control state's wait status.
11095 (wait_for_inferior): Don't clear syscall_number.
11096
11097 2012-01-24 Pedro Alves <palves@redhat.com>
11098
11099 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11100 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11101 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11102 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11103 `ws' parameter.
11104 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11105 false for events other than TARGET_SIGNAL_TRAP.
11106 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11107 Add `ws' parameter.
11108 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11109 events other than TARGET_SIGNAL_TRAP.
11110 (tracepoint_breakpoint_hit): Add `ws' parameter.
11111 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11112 parameter.
11113 (bpstat_stop_status): Same.
11114 (pc_at_non_inline_function): Same.
11115 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11116 to pass the current event's waitstatus to bpstat_stop_status
11117 and pc_at_non_inline_function.
11118
11119 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11120
11121 Code cleanup.
11122 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11123 Update the function comment for it.
11124 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11125 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11126 for STREAM.
11127
11128 2012-01-24 Pedro Alves <palves@redhat.com>
11129
11130 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11131 outside `bs->stop' block.
11132 (bpstat_what): Rework bp_shlib_event handling.
11133 (internal_bkpt_check_status): If the breakpoint is a
11134 bp_shlib_event, then set bs->stop and bs->print if
11135 stop_on_solib_events is set.
11136
11137 2012-01-24 Gary Benson <gbenson@redhat.com>
11138
11139 Delete #if 0'd out code.
11140 * stack.c (print_frame_label_vars): Remove.
11141 (catch_info): Likewise.
11142 (_initialize_stack): Remove "info catch" command.
11143 * NEWS: Mention the above.
11144
11145 2012-01-24 Pedro Alves <palves@redhat.com>
11146
11147 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11148 it.
11149 (remote_notice_new_inferior): If the remote end doesn't support
11150 the multiprocess extensions, then the PID is fake.
11151 (add_current_inferior_and_thread): New.
11152 (remote_start_remote): Use it.
11153 (extended_remote_attach_1): Adjust.
11154 (extended_remote_create_inferior_1): Use
11155 add_current_inferior_and_thread.
11156
11157 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11158
11159 Fix watchpoints to be specific for each inferior.
11160 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11161 current_program_space.
11162 * i386-nat.c (i386_inferior_data_cleanup): New.
11163 (i386_inferior_data_get): Replace variable inf_data_local by an
11164 inferior_data call.
11165 (i386_use_watchpoints): Initialize i386_inferior_data.
11166 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11167 specific iterate_over_lwps.
11168
11169 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11170
11171 Fix watchpoints across inferior fork.
11172 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11173 comment for linux_nat_iterate_watchpoint_lwps.
11174 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11175 linux_nat_iterate_watchpoint_lwps.
11176 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11177 * i386-linux-nat.c (update_debug_registers_callback): Update the
11178 comment for linux_nat_iterate_watchpoint_lwps.
11179 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11180 linux_nat_iterate_watchpoint_lwps.
11181 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11182 * i386-nat.c: Include inferior.h.
11183 (dr_mirror): Remove.
11184 (i386_inferior_data, struct i386_inferior_data)
11185 (i386_inferior_data_get): New.
11186 (i386_debug_reg_state): Use i386_inferior_data_get.
11187 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11188 (i386_insert_watchpoint, i386_remove_watchpoint)
11189 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11190 (i386_remove_hw_breakpoint): New variable state, use
11191 i386_debug_reg_state instead of DR_MIRROR.
11192 * linux-nat.c (delete_lwp): New declaration.
11193 (num_lwps): Move here from downwards.
11194 (delete_lwp_cleanup): New.
11195 (linux_child_follow_fork): Create new child_lp, call
11196 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11197 PTRACE_DETACH.
11198 (num_lwps): Move upwards.
11199 (linux_nat_iterate_watchpoint_lwps): New.
11200 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11201 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11202
11203 2012-01-24 Joel Brobecker <brobecker@adacore.com>
11204
11205 GDB 7.4 released.
11206
11207 2012-01-23 Pedro Alves <palves@redhat.com>
11208
11209 * top.c (caution): Rename to ...
11210 (confirm): ... this.
11211 (show_caution): Rename to ...
11212 (show_confirm): ... this.
11213 (quit_cover): Adjust.
11214 (init_main): Adjust.
11215 * top.h (caution): Rename to ...
11216 (confirm): ... this.
11217 * utils.c (internal_vproblem, defaulted_query): Adjust.
11218
11219 2012-01-23 Pedro Alves <palves@redhat.com>
11220
11221 * top.c (caution): Update comment.
11222 (execute_command): Don't consider the current value of `caution'.
11223
11224 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11225
11226 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11227
11228 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11229
11230 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11231 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11232 * target.c (target_fileio_pwrite): Remove buffer address from
11233 debug output.
11234 (target_fileio_pread): Likewise.
11235
11236 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11237
11238 * NEWS: Document remote "info proc" and "generate-core-file".
11239
11240 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11241
11242 * gdbarch.sh (find_memory_regions): New callback.
11243 * gdbarch.c, gdbarch.h: Regenerate.
11244
11245 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11246 callback before falling back to target method.
11247
11248 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11249 (linux_target_install_ops): No longer install it.
11250
11251 * linux-tdep.c (linux_find_memory_regions): New function.
11252 (linux_init_abi): Install it.
11253
11254 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11255
11256 * gdbarch.sh (make_corefile_notes): New architecture callback.
11257 * gdbarch.c: Regenerate.
11258 * gdbarch.h: Likewise.
11259
11260 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11261 before target_make_corefile_notes. If NULL is returned, the
11262 target does not support core file generation.
11263
11264 * linux-nat.c: Include "linux-tdep.h".
11265 (find_signalled_thread, find_stop_signal): Remove.
11266 (linux_nat_do_thread_registers): Likewise.
11267 (struct linux_nat_corefile_thread_data): Likewise.
11268 (linux_nat_corefile_thread_callback): Likewise.
11269 (iterate_over_spus): Likewise.
11270 (struct linux_spu_corefile_data): Likewise.
11271 (linux_spu_corefile_callback): Likewise.
11272 (linux_spu_make_corefile_notes): Likewise.
11273 (linux_nat_collect_thread_registers): New function.
11274 (linux_nat_make_corefile_notes): Replace contents by call to
11275 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11276 as native-only callback.
11277
11278 * linux-tdep.h: Include "bfd.h".
11279 (struct regcache): Add forward declaration.
11280 (linux_collect_thread_registers_ftype): New typedef.
11281 (linux_make_corefile_notes): Add prototype.
11282 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11283 "regset.h", and "elf-bfd.h".
11284 (find_signalled_thread, find_stop_signal): New functions.
11285 (linux_spu_make_corefile_notes): Likewise.
11286 (linux_collect_thread_registers): Likewise.
11287 (struct linux_corefile_thread_data): New data structure.
11288 (linux_corefile_thread_callback): New funcion.
11289 (linux_make_corefile_notes): Likewise.
11290 (linux_make_corefile_notes_1): Likewise.
11291 (linux_init_abi): Install it.
11292
11293 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11294
11295 * gdbarch.sh (info_proc): New callback.
11296 * gdbarch.c, gdbarch.h: Regenerate.
11297
11298 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11299 before falling back to the target info_proc callback.
11300
11301 * linux-nat.c: Do not include "cli/cli-utils.h".
11302 (linux_nat_info_proc): Remove.
11303 (linux_target_install_ops): No longer install it.
11304
11305 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11306 (read_mapping): New function.
11307 (linux_info_proc): Likewise.
11308 (linux_init_abi): Install it.
11309
11310 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11311
11312 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11313 * infcmd.c: (info_proc_cmd_1): New function.
11314 (info_proc_cmd): New function, moved here from equivalent routine
11315 orignally in linux-nat.c.
11316 (info_proc_cmd_mappings): Likewise.
11317 (info_proc_cmd_stat): Likewise.
11318 (info_proc_cmd_status): Likewise.
11319 (info_proc_cmd_cwd): Likewise.
11320 (info_proc_cmd_cmdline): Likewise.
11321 (info_proc_cmd_exe): Likewise.
11322 (info_proc_cmd_all): Likewise.
11323 (_initialize_infcmd): Install "info proc" command and subcommands.
11324
11325 * target.h (struct target_ops): Add to_info_proc.
11326 (target_info_proc): Add prototype.
11327 * target.c (target_info_proc): New function.
11328
11329 * procfs.c (procfs_info_proc): Add prototype.
11330 (info_proc_cmd): Rename into ...
11331 (procfs_info_proc): ... this. Update argument types as appropriate
11332 for a to_info_proc implementation. Handle "what" argument.
11333 (procfs_target): Install procfs_info_proc.
11334 (_initialize_procfs): No longer install "info proc" command.
11335
11336 * linux-nat.c: (enum info_proc_what): Remove.
11337 (linux_nat_info_proc_cmd_1): Rename into ...
11338 (linux_nat_info_proc): ... this. Update argument types as appropriate
11339 for a to_info_proc implementation.
11340 (linux_nat_info_proc_cmd): Remove.
11341 (linux_nat_info_proc_cmd_mappings): Likewise.
11342 (linux_nat_info_proc_cmd_stat): Likewise.
11343 (linux_nat_info_proc_cmd_status): Likewise.
11344 (linux_nat_info_proc_cmd_cwd): Likewise.
11345 (linux_nat_info_proc_cmd_cmdline): Likewise.
11346 (linux_nat_info_proc_cmd_exe): Likewise.
11347 (linux_nat_info_proc_cmd_all): Likewise.
11348 (linux_target_install_ops): Install linux_nat_info_proc.
11349 (_initialize_linux_nat): No longer install "info proc" command
11350 and subcommands.
11351
11352 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11353
11354 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11355 * config.in, configure: Regenerate.
11356
11357 * target.h (struct target_ops): Add to_fileio_readlink.
11358 (target_fileio_readlink): Add prototype.
11359 * target.c (target_fileio_readlink): New function.
11360
11361 * inf-child.c: Conditionally include <sys/param.h>.
11362 (inf_child_fileio_readlink): New function.
11363 (inf_child_target): Install it.
11364
11365 * remote.c (PACKET_vFile_readlink): New enum value.
11366 (remote_hostio_readlink): New function.
11367 (init_remote_ops): Install it.
11368 (_initialize_remote): Handle vFile:readlink packet type.
11369
11370 2012-01-20 Pedro Alves <palves@redhat.com>
11371 Ulrich Weigand <ulrich.weigand@linaro.org>
11372
11373 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11374 * config.in, configure: Regenerate.
11375
11376 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11377 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11378 (target_fileio_open): Add prototype.
11379 (target_fileio_pwrite): Likewise.
11380 (target_fileio_pread): Likewise.
11381 (target_fileio_close): Likewise.
11382 (target_fileio_unlink): Likewise.
11383 (target_fileio_read_alloc): Likewise.
11384 (target_fileio_read_stralloc): Likewise.
11385
11386 * target.c: Include "gdb/fileio.h".
11387 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11388 (default_fileio_target): New function.
11389 (target_fileio_open): Likewise.
11390 (target_fileio_pwrite): Likewise.
11391 (target_fileio_pread): Likewise.
11392 (target_fileio_close): Likewise.
11393 (target_fileio_unlink): Likewise.
11394 (target_fileio_close_cleanup): Likewise.
11395 (target_fileio_read_alloc_1): Likewise.
11396 (target_fileio_read_alloc): Likewise.
11397 (target_fileio_read_stralloc): Likewise.
11398
11399 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11400 <fcntl.h>, and <unistd.h>.
11401 (inf_child_fileio_open_flags_to_host): New function.
11402 (inf_child_errno_to_fileio_error): Likewise.
11403 (inf_child_fileio_open): Likewise.
11404 (inf_child_fileio_pwrite): Likewise.
11405 (inf_child_fileio_pread): Likewise.
11406 (inf_child_fileio_close): Likewise.
11407 (inf_child_fileio_unlink): Likewise.
11408 (inf_child_target): Install to_fileio routines.
11409
11410 * remote.c (init_remote_ops): Install to_fileio routines.
11411
11412 2012-01-20 Pedro Alves <palves@redhat.com>
11413 Ulrich Weigand <ulrich.weigand@linaro.org>
11414
11415 * remote.c (remote_multi_process_p): Only check for multi-process
11416 protocol feature, do not check for extended protocol.
11417 (remote_supports_multi_process): Check for extended protocol here.
11418 (set_general_process): Likewise.
11419 (extended_remote_kill): Likewise.
11420 (remote_pid_to_str): Likewise.
11421 (remote_query_supported): Always query multiprocess mode.
11422
11423 2012-01-20 Pedro Alves <palves@redhat.com>
11424 Ulrich Weigand <ulrich.weigand@linaro.org>
11425
11426 * inferior.h (struct inferior): Add fake_pid_p.
11427 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11428 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11429 magic_null_ptid since the remote side doesn't provide a real PID.
11430
11431 2012-01-19 Tom Tromey <tromey@redhat.com>
11432
11433 * NEWS: Combine the two Python sections.
11434
11435 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11436
11437 * target.h (target_close): Update comment on the target's unpush state.
11438
11439 2012-01-19 Pedro Alves <palves@redhat.com>
11440
11441 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11442 linux_nat_async directly instead of going through the target
11443 vector.
11444 * target.c (unpush_target): Close target after unpushing it, not
11445 before.
11446
11447 2012-01-19 Gary Benson <gbenson@redhat.com>
11448
11449 * mdebugread.c (sort_blocks): Replace integer constants with ones
11450 derived from FIRST_LOCAL_BLOCK.
11451
11452 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11453 Jan Kratochvil <jan.kratochvil@redhat.com>
11454
11455 PR gdb/9538
11456 * symfile.c (find_separate_debug_file): New function.
11457 (terminate_after_last_dir_separator): Likewise.
11458 (find_separate_debug_file_by_debuglink): Also try realpath.
11459 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11460 * configure: Regenerate.
11461 * config.in: Regenerate.
11462
11463 2012-01-18 Doug Evans <dje@google.com>
11464
11465 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11466 (main.o): Remove rule.
11467 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11468 (--with-sysroot): Rewrite.
11469 * configure: Regenerate.
11470 * config.in: Regenerate.
11471
11472 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11473
11474 * parse.c (initialize_expout): New function.
11475 (reallocate_expout): Likewise.
11476 (parse_exp_in_context): Use `initialize_expout' and
11477 `reallocate_expout' when appropriate.
11478
11479 2012-01-18 Pedro Alves <palves@redhat.com>
11480
11481 * record.c (struct record_breakpoint, record_breakpoint_p)
11482 (record_breakpoints): New.
11483 (record_insert_breakpoint, record_remove_breakpoint): Manage
11484 record breakpoints list. Only remove breakpoints from the
11485 inferior if they had been inserted there in the first place.
11486
11487 2012-01-17 Doug Evans <dje@google.com>
11488
11489 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11490 if we know we don't have a file name to look for.
11491
11492 2012-01-17 Pedro Alves <palves@redhat.com>
11493
11494 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11495 the frame's stop reason is UNWIND_UNAVAILABLE.
11496
11497 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11498
11499 Fix compilation error.
11500 * m2-exp.y (yyerror): Use ANSI C prototype.
11501
11502 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11503
11504 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11505 (growbuf_by_size): Likewise.
11506 (yyerror): Likewise.
11507 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11508 (modblock): Remove variable (was #if 0'ed).
11509 (parse_number): Convert prototype from K&R to ANSI C.
11510 (yyerror): Likewise.
11511 * objc-exp.y (parse_number): Likewise.
11512 (yyerror): Likewise.
11513 (yylex): Remove #if 0'ed code.
11514 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11515 (yyerror): Likewise.
11516
11517 2012-01-16 Tom Tromey <tromey@redhat.com>
11518
11519 * NEWS: Add item.
11520 * symtab.h (compare_filenames_for_search): Declare.
11521 * symtab.c (compare_filenames_for_search): New function.
11522 (iterate_over_some_symtabs): Use it.
11523 * symfile.h (struct quick_symbol_functions)
11524 <map_symtabs_matching_filename>: Change spec.
11525 * psymtab.c (partial_map_symtabs_matching_filename): Use
11526 compare_filenames_for_search. Update for new spec.
11527 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11528 compare_filenames_for_search. Update for new spec.
11529 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11530
11531 2012-01-16 Tom Tromey <tromey@redhat.com>
11532
11533 PR python/13281:
11534 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11535 (struct main_type) <flag_flag_enum>: New field.
11536 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11537 * NEWS: Add entries.
11538 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11539 enums.
11540 * python/lib/gdb/printing.py (_EnumInstance): New class.
11541 (FlagEnumerationPrinter): Likewise.
11542
11543 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11544
11545 * breakpoint.c (create_sals_from_address_default): New function.
11546 (create_breakpoints_sal_default): Likewise.
11547 (decode_linespec_default): Likewise.
11548 (is_marker_spec): Removed.
11549 (strace_marker_p): New function.
11550 (init_breakpoint_sal): Using `strace_marker_p' instead of
11551 `is_marker_spec'.
11552 (create_breakpoint): Call method `create_sals_from_address' from
11553 breakpoint_ops, replacing code that created SALs conditionally
11554 on the type of the breakpoint. Call method `create_breakpoints_sal',
11555 replacing code that created breakpoints conditionally on the type
11556 wanted.
11557 (base_breakpoint_create_sals_from_address): New function.
11558 (base_breakpoint_create_breakpoints_sal): Likewise.
11559 (base_breakpoint_decode_linespec): Likewise.
11560 (base_breakpoint_ops): Add methods
11561 `base_breakpoint_create_sals_from_address',
11562 `base_breakpoint_create_breakpoints_sal' and
11563 `base_breakpoint_decode_linespec'.
11564 (bkpt_create_sals_from_address): New function.
11565 (bkpt_create_breakpoints_sal): Likewise.
11566 (bkpt_decode_linespec): Likewise.
11567 (tracepoint_create_sals_from_address): Likewise.
11568 (tracepoint_create_breakpoints_sal): Likewise.
11569 (tracepoint_decode_linespec): Likewise.
11570 (strace_marker_create_sals_from_address): Likewise.
11571 (strace_marker_create_breakpoints_sal): Likewise.
11572 (strace_marker_decode_linespec): Likewise.
11573 (strace_marker_breakpoint_ops): New variable.
11574 (addr_string_to_sals): Remove `marker_spec'. Call method
11575 `decode_linespec' from breakpoint_ops, replacing code that decoded
11576 an address string into a SAL. Use `strace_marker_p' instead of
11577 `marker_spec'.
11578 (strace_command): Decide whether we are dealing with a static
11579 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11580 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11581 * breakpoint.h (linespec_result, linespec_sals): New forward
11582 declarations.
11583 (breakpoint_ops) <create_sals_from_address>,
11584 <create_breakpoints_sal>, <decode_linespec>: New methods.
11585
11586 2012-01-14 Doug Evans <dje@google.com>
11587
11588 * NEWS: Update text for "maint set python print-stack".
11589 It is deprecated in gdb 7.4 and deleted in 7.5.
11590
11591 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11592
11593 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11594 including curses.h.
11595
11596 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11597
11598 * configure: Regenerate.
11599 * config.in: Regenerate.
11600
11601 2012-01-12 Keith Seitz <keiths@redhat.com>
11602
11603 PR mi/10586
11604 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11605 (ANONYMOUS_UNION_NAME): Define.
11606 (is_path_expr_parent): New function.
11607 (get_path_expr_parent): New function.
11608 (is_anonymous_child): New function.
11609 (create_child_with_value): If the child is anonymous and without
11610 a name, assign an object name to it.
11611 (c_describe_child): Use get_path_expr_parent to determine
11612 the parent expression.
11613 If there field represents an anonymous struct or union and
11614 has no name, set an appropriate display name and expression.
11615 (cplus_describe_child): Likewise.
11616
11617 2012-01-12 Pedro Alves <palves@redhat.com>
11618
11619 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11620 available when %ebp is found to be zero (outermost).
11621
11622 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11623
11624 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11625 an internal gdb_static_assert.
11626 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11627
11628 2012-01-11 Tom Tromey <tromey@redhat.com>
11629
11630 PR gdb/9598:
11631 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11632 catch" and "catch throw".
11633
11634 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11635
11636 * blockframe.c (block_innermost_frame): Start search from selected
11637 frame, if present, or otherwise the current frame.
11638
11639 * c-exp.y (variable): Update innermost_block for
11640 'block COLONCOLON NAME' clause.
11641 * m2-exp.y (variable): Ditto.
11642 * objc-exp.y (variable): Ditto.
11643
11644 2012-01-10 Tom Tromey <tromey@redhat.com>
11645
11646 PR python/13199:
11647 * python/python.c (finish_python_initialization): Set sys.argv.
11648
11649 2012-01-10 Doug Evans <dje@google.com>
11650
11651 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11652 "want_line_info". All callers updated.
11653 (dwarf_decode_lines_1): New function.
11654 (handle_DW_AT_stmt_list): Add function comment.
11655 New arg "want_line_info". All callers updated.
11656 (read_file_scope,read_type_unit_scope): Move comment from
11657 handle_DW_AT_stmt_list to here.
11658
11659 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11660
11661 Fix regression after libiberty/ update for GCC PR 6057 and others.
11662 * c-exp.y (operator) <OPERATOR DELETE>
11663 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11664 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11665 (make_builtin_type, make_name): New variable i, add gdb_assert.
11666 (operator) <OPERATOR NEW>: Update ARGS to 3.
11667 (operator) <OPERATOR DELETE>: Add trailing space.
11668 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11669 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11670 * cp-support.c (cp_canonicalize_string): Check NULL from
11671 cp_comp_to_string, call warning and return.
11672
11673 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11674
11675 Fix duplicate .o files after omitting libbfd.a.
11676 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11677 (SFILES): Add corelow.c.
11678 (COMMON_OBS): Add corelow.o.
11679 (ALLDEPFILES): Remove corelow.c.
11680 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11681 * config/alpha/alpha-osf3.mh: Likewise.
11682 * config/alpha/fbsd.mh: Likewise.
11683 * config/arm/nbsdaout.mh: Likewise.
11684 * config/arm/nbsdelf.mh: Likewise.
11685 * config/i386/i386gnu.mh: Likewise.
11686 * config/ia64/hpux.mh: Likewise.
11687 * config/ia64/linux.mh: Likewise.
11688 * config/m32r/linux.mh: Likewise.
11689 * config/m68k/linux.mh: Likewise.
11690 * config/mips/irix5.mh: Likewise.
11691 * config/mips/irix6.mh: Likewise.
11692 * config/pa/hpux.mh: Likewise.
11693 * config/pa/linux.mh: Likewise.
11694 * config/powerpc/aix.mh: Likewise.
11695 * config/sparc/linux.mh: Likewise.
11696 * config/sparc/linux64.mh: Likewise.
11697 * config/sparc/sol2.mh: Likewise.
11698 * config/vax/vax.mh: Likewise.
11699 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11700 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11701 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11702 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11703 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11704 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11705 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11706 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11707 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11708 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11709 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11710 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11711 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11712 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11713 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11714 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11715 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11716 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11717 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11718 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11719 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11720 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11721 corelow.o from gdb_target_obs.
11722 * corefile.c (core_target): Update the comment on NULL value.
11723 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11724 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11725 MATCHES. Drop YUMMY set on NULL.
11726 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11727 reclaim CORE_DATA if it is already NULL.
11728
11729 2012-01-09 Doug Evans <dje@google.com>
11730
11731 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11732 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11733
11734 2012-01-09 Keith Seitz <keiths@redhat.com>
11735
11736 * breakpoint.c (wrapper.h): Don't include.
11737
11738 2012-01-09 Keith Seitz <keiths@redhat.com>
11739
11740 * Makefile.in (SFILES): Remove wrapper.c.
11741 (HFILES_NO_SRCDIR): Remove wrapper.h.
11742 (COMMON_OBS): Remove wrapper.o.
11743 * cli/cli-interp.c: Don't inlude wrapper.h.
11744 * corelow.c: Likewise.
11745 (core_open): Replace gdb_target_find_new_threads with
11746 TRY_CATCH around target_find_new_threads.
11747 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11748 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11749 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11750 evaluate_expression.
11751 (varobj_set_value): Likewise for evaluate_expression and
11752 value_assign.
11753 (install_new_variable): Likewise for value_fetch_lazy.
11754 (adjust_value_for_child_access): Likewise for value_ind.
11755 (c_describe_child): Likewise for value_subscript and
11756 value_ind.
11757 (c_value_of_root): Likewise for evaluate_expression.
11758 * wrapper.c: Remove.
11759 * wrapper.h: Remove.
11760
11761 2012-01-09 Doug Evans <dje@google.com>
11762
11763 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11764 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11765 "abfd" args with "section". All callers updated.
11766 Error checking code moved ...
11767 (error_check_comp_unit_head): ... here. New function.
11768 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11769 Delete arg "abfd". New arg "type_offset". All callers updated.
11770 (create_debug_types_hash_table): Simplify by using
11771 read_and_check_type_unit_head.
11772
11773 * parser-defs.h (namecopy): Delete.
11774 * parse.c (namecopy, namecopy_size): Move into copy_name.
11775
11776 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11777
11778 Partially fix duplicate .o files after omitting libbfd.a.
11779 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11780 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11781 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11782 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11783 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11784 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11785 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11786
11787 2012-01-09 Pedro Alves <palves@redhat.com>
11788
11789 * MAINTAINERS: Update my email address.
11790
11791 2012-01-08 Doug Evans <dje@google.com>
11792
11793 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11794 n_type_units. Rename type_comp_units to all_type_units.
11795 All uses updated.
11796 (add_signatured_type_cu_to_table): Renamed from
11797 add_signatured_type_cu_to_list. All callers updated.
11798
11799 * gdbtypes.h (struct cplus_struct_type): Delete member
11800 nfn_fields_total. All uses removed.
11801
11802 2012-01-06 Doug Evans <dje@google.com>
11803
11804 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11805 to top of file.
11806 (dwarf2_find_comp_unit): Delete.
11807 (process_psymtab_comp_unit): Make result "void".
11808 Delete args buffer, info_ptr, buffer_size, and replace with
11809 "section". All callers updated.
11810 (dwarf2_build_psymtabs_hard): Simplify.
11811
11812 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11813 Thiago Jung Bauermann <bauerman@br.ibm.com>
11814
11815 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11816 before `struct gdb_exception'.
11817 * breakpoint.c (update_global_location_list_nothrow)
11818 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11819 * cp-abi.c (value_rtti_type): Likewise.
11820 * cp-support.c (cp_validate_operator): Likewise.
11821 * infrun.c (insert_exception_resume_breakpoint)
11822 (check_exception_resume, keep_going): Likewise.
11823 * mi-interp.c (mi_breakpoint_created)
11824 (mi_breakpoint_modified): Likewise.
11825 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11826 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11827 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11828
11829 2012-01-05 Doug Evans <dje@google.com>
11830
11831 * dwarf2read.c (statement_prologue): Delete, unused.
11832
11833 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11834 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11835
11836 * dwarf2read.c (comp_unit_header): Delete, unused.
11837
11838 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11839
11840 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11841 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11842
11843 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11844
11845 * infrun.c (normal_stop): Don't skip calling the normal_stop
11846 observers if the thread was doing a multi-step, but stopped for
11847 some reason other than stepping.
11848
11849 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11850
11851 * cli/cli-decode.h: Add comments.
11852 (CMD_LIST_AMBIGUOUS): Moved to command.h
11853 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11854 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11855 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11856 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11857 (add_com, add_com_alias, add_info, add_info_alias)
11858 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11859 declarations.
11860 * command.h: Add and adjust comments.
11861 (CMD_LIST_AMBIGUOUS): Moved here.
11862 (help_cmd, help_cmd_list): Delete declarations.
11863
11864 2012-01-04 Doug Evans <dje@google.com>
11865
11866 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11867 All callers updated.
11868 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11869 Replace all arguments with "per_cu". All callers updated.
11870
11871 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11872
11873 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11874 New arg "per_cu". All callers updated.
11875
11876 Delete #if 0'd out code.
11877 * language.c (binop_result_type): Delete.
11878 (simple_type, ordered_type, same_type, integral_type): Delete.
11879 (numeric_type, character_type, string_type, boolean_type): Delete.
11880 (float_type, structured_type): Delete.
11881 * language.h: Update.
11882
11883 2012-01-04 Tom Tromey <tromey@redhat.com>
11884
11885 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11886
11887 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11888
11889 * corefile.c (close_exec_file): Delete.
11890 (reopen_exec_file): Remove commented out code that seems related
11891 to close_exec_file, which is being deleted here.
11892 * inferior.h (close_exec_file): Delete.
11893 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11894
11895 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11896
11897 * ada-lang.c: #include "cli/cli-utils.h".
11898 (get_selections): Use skip_spaces.
11899 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11900 (catch_ada_exception_command_split): Use skip_spaces.
11901 (ada_decode_assert_location): Likewise.
11902
11903 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11904
11905 * linespec.c (decode_line_internal): Check for C++ or Java
11906 compound constructs only if the current language is C, C++
11907 or Java.
11908
11909 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11910
11911 Revert:
11912 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11913 Joel Brobecker <brobecker@adacore.com>
11914 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11915 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11916 3 times.
11917 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11918 fall through into AT_ENTRY_POINT.
11919 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11920 DUMMY_ADDR with it.
11921 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11922 PPC_INSN_SIZE skip to 3 times.
11923
11924 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11925
11926 * linespec.c (add_minsym): Preserve function descriptors.
11927
11928 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11929
11930 * breakpoint.c (all_locations_are_pending): Consider locations
11931 in program spaces executing during startup pending as well.
11932
11933 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11934
11935 Copyright year update in most files of the GDB Project.
11936
11937 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11938
11939 * copyright.sh: Delete.
11940 * copyright.py: Rewrite.
11941
11942 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11943
11944 * gnulib/extra/update-copyright: New file, imported from gnulib.
11945
11946 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11947
11948 * README (Copyright and License Notices): New section.
11949
11950 2012-01-03 Tom Tromey <tromey@redhat.com>
11951
11952 PR python/12533:
11953 * python/py-value.c (valpy_dereference, valpy_get_address
11954 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11955 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11956 (valpy_absolute, valpy_richcompare): Free intermediate values.
11957
11958 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11959
11960 * ada-lang.c: Reformat the copyright notice.
11961
11962 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11963
11964 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11965 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11966 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11967 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11968 Revert this part of:
11969 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11970 Build gdb directly from *.o files not using libgdb.a.
11971 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11972
11973 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11974
11975 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11976 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11977 Reformat the copyright header.
11978
11979 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11980
11981 Revert this part of:
11982 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11983 Remove the gdbtui binary.
11984 * gdb.c (main): Remove args.interpreter_p initialization.
11985 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11986 * main.h (struct captured_main_args): Remove interpreter_p.
11987
11988 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11989
11990 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11991
11992 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11993
11994 * top.c (print_gdb_version): Update copyright year.
11995
11996 2012-01-02 Yao Qi <yao@codesourcery.com>
11997
11998 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11999
12000 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12001 Joel Brobecker <brobecker@adacore.com>
12002
12003 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12004 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12005 3 times.
12006 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12007 fall through into AT_ENTRY_POINT.
12008 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12009 DUMMY_ADDR with it.
12010 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12011 PPC_INSN_SIZE skip to 3 times.
12012
12013 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12014
12015 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12016 the return value.
12017 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12018
12019 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12020
12021 Build gdb directly from *.o files not using libgdb.a.
12022 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12023 (COMMON_OBS): Remove solib-target.o.
12024 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12025 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12026 (LIBGDB_OBS, libgdb.a): Move it above.
12027 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12028 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12029 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12030 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12031 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12032 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12033 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12034 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12035 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12036 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12037 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12038 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12039 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12040 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12041 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12042 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12043 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12044 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12045 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12046 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12047 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12048 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12049 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12050 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12051 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12052 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12053 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12054
12055 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12056
12057 Remove the gdbtui binary.
12058 * .gitignore (/gdbtui): Remove.
12059 * Makefile.in (TUI): Remove.
12060 (SUBDIR_TUI_OBS): Remove tui-main.o.
12061 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12062 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12063 (tui-main.o): Remove.
12064 (all_object_files): Remove tui-main.o.
12065 * NEWS: New note for the gdbtui removal.
12066 * configure: Rebuilt.
12067 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12068 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12069 CONFIG_UNINSTALL respectively.
12070 * gdb.c (main): Remove args.interpreter_p initialization.
12071 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12072 * main.h (struct captured_main_args): Remove interpreter_p.
12073 * tui/tui-main.c: Remove.
12074
12075 2012-01-01 Doug Evans <dje@google.com>
12076
12077 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12078 (dwarf2_physname, read_import_statement): Ditto.
12079 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12080 (process_structure_scope read_subroutine_type): Ditto.
12081 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12082 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12083 (dwarf2_fetch_die_location_block): Ditto.
12084 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12085
12086 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12087 All callers updated.
12088 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12089 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12090 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12091
12092 * dwarf2read.c (load_cu): Move assert to more useful location.
12093
12094 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12095 All callers updated.
12096
12097 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12098 (dwarf2_elf_names): Minor reformat.
12099 (dwarf2_per_cu_data): Tweak comment.
12100 (dwarf2_read_section): Fix comment.
12101 (create_all_comp_units): Fix comment.
12102 (load_full_comp_unit): Fix comment.
12103 (process_full_comp_unit): Fix comment.
12104 (read_signatured_type): Fix comment.
12105
12106 For older changes see ChangeLog-2011.
12107 \f
12108 Local Variables:
12109 mode: change-log
12110 left-margin: 8
12111 fill-column: 74
12112 version-control: never
12113 coding: utf-8
12114 End:
This page took 0.360561 seconds and 5 git commands to generate.