New testcase for interface type printing.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
ac4a2da4
JG
12012-11-29 Jerome Guitton <guitton@adacore.com>
2
3 * ada-lang.c (ada_is_interface_tag): New function.
4 (ada_is_ignored_field): Add interface tags to the list
5 of ignored fields.
6
b50d69b5
JG
72012-11-29 Jerome Guitton <guitton@adacore.com>
8
9 * ada-lang.h (ada_tag_value_at_base_address): New function
10 declaration.
11 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
12 New functions.
13 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
14 relocate the class-wide value if need be.
15 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
16 Let ada_tag_value_at_base_address relocate the class-wide access/ref
17 before dereferencing it.
18 * ada-valprint.c (ada_val_print_1): Relocate to base address
19 before displaying the content of an interface-wide ref.
20
ca1f964d
JG
212012-11-29 Jerome Guitton <guitton@adacore.com>
22
23 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
24
38d03cf1 252012-11-29 Joel Brobecker <brobecker@adacore.com>
26
27 GDB 7.5.1 released.
28
f5682501
YQ
292012-11-29 Yao Qi <yao@codesourcery.com>
30 Tom Tromey <tromey@redhat.com>
31
32 * eval.c (evaluate_subexp_standard): Get the correct pointer
33 type for TYPE_CODE_MEMBERPTR.
34
f359d716
EBM
352012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
36
37 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
38 since now it is being done by binutils' powerpc_init_dialect().
39
0cd61f44
TT
402012-11-28 Tom Tromey <tromey@redhat.com>
41
42 PR gdb/14290:
43 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
44 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
45 Use it.
46 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
47 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
48 (gdb_bfd_openr_next_archived_file): Use it.
49
945bf713
MM
502012-11-28 Markus Metzger <markus.t.metzger@intel.com>
51
52 * configure.ac: Check for linux/perf_event.h.
53 * config.in: Regenerated.
54 * configure: Regenerated.
55
7e20dfcd
YQ
562012-11-28 Yao Qi <yao@codesourcery.com>
57
58 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
59 abbreviate 'delete tracepoints' to 'delete tr'.
60 * corefile.c (_initialize_core): Call add_alias_cmd to
61 abbreviate 'set gnutarget' to 'set g'.
62 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
63 'show convenience' to 'show conv'.
64
b8293cc8
JB
652012-11-27 Joel Brobecker <brobecker@adacore.com>
66
67 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
68 call to sparc_supply_fpregset.
69 (fill_fpregset): Fix first parameter in call to
70 sparc_collect_fpregset.
71
8c2b9656
YQ
722012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
73 Kazu Hirata <kazu@codesourcery.com>
74 Yao Qi <yao@codesourcery.com>
75
76 * objfiles.c (init_entry_point_info): Call
77 gdbarch_convert_from_func_ptr_addr and
78 gdbarch_addr_bits_remove here ...
79 (entry_point_address_query): ... instead of here.
80 * solib-svr4.c (exec_entry_point): Call
81 gdbarch_addr_bits_remove.
82 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
83 the entry address.
84
5edf51fe
YQ
852012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
86 Yao Qi <yao@codesourcery.com>
87
88 * eval.c (evaluate_subexp_standard): Add handling of
89 TYPE_CODE_MEMBERPTR when calling functions. Correct the
90 result of ptype for calling a TYPE_CODE_METHODPTR.
91
ca242aad
YQ
922012-11-27 Yao Qi <yao@codesourcery.com>
93
94 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
95 warning.
96 Add i18n markup.
97
608e2dbb
TT
982012-11-26 Alexander Larsson <alexl@redhat.com>
99 Jan Kratochvil <jan.kratochvil@redhat.com>
100 Tom Tromey <tromey@redhat.com>
101
102 * NEWS: Mention mini debuginfo feature.
103 * minidebug.c: New file.
104 * configure.ac: Check for lzma.
105 * configure, config.in: Rebuild.
106 * Makefile.in (LIBLZMA): New variable.
107 (CLIBS): Include LIBLZMA.
108 (SFILES): Mention minidebug.c.
109 (COMMON_OBS): Mention minidebug.o.
110 * symfile.c (read_symbols): New function.
111 (syms_from_objfile, reread_symbols): Call it.
112 * symfile.h (find_separate_debug_file_in_section): Declare.
113
17d6efc4
JB
1142012-11-26 Keith Seitz <keiths@redhat.com>
115
116 * exec.c (exec_file_attach): Move cleanup after verifying that
117 memory has in fact been allocated.
118
210bbc17
TT
1192012-11-26 Tom Tromey <tromey@redhat.com>
120
121 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
122 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
123 SYMBOL_SYMTAB.
124 * skip.c (skip_info): Use SYMBOL_SYMTAB.
125
0270a750
PA
1262012-11-26 Maxime Villard <rustyBSD@gmx.fr>
127 Pedro Alves <palves@redhat.com>
128
129 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
130 size parameter passed to readlink by one byte.
131 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
132 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
133 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
134 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
135 size by one byte.
136
9c16be9a
YQ
1372012-11-26 Yao Qi <yao@codesourcery.com>
138
139 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
140 extraneous parentheses.
141
e6f3fa52
YQ
1422012-11-26 Yao Qi <yao@codesourcery.com>
143
144 * remote.c (remote_start_remote): Typo fix.
145
db75c717
DM
1462012-11-23 David S. Miller <davem@davemloft.net>
147
148 * sparc-tdep.h (struct sparc_fpregset): New data structure.
149 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
150 sparc32_sol2_fpregset): Declare new globals.
151 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
152 'fpregset' argument.
153 * sparc64-tdep.h (sparc64_supply_fpregset,
154 sparc64_collect_fpregset): Likewise.
155 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
156 globals.
157 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
158 (sparc_fpregset): Declare new global.
159 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
160 'fpregset' argument.
161 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
162 into handler.
163 (fill_fpregset): Likewise.
164 (_initialize_sparc_linux_nat): Set sparc_fpregset to
165 sparc32_bsd_fpregset.
166 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
167 sparc32_bsd_fpregset down into handler.
168 (sparc32_linux_collect_core_fpregset): Likewise.
169 * sparc-nat.c (sparc_fpregset): Define.
170 (sparc_supply_fpregset): Add 'fpregset' argument.
171 (sparc_collect_fpregset): Likewise.
172 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
173 into fpregset handler.
174 (sparc_store_inferior_registers): Likewise.
175 (_initialize_sparc_nat): Set sparc_fpregset to
176 sparc32_sunos4_fpregset if NULL.
177 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
178 down into handler.
179 (fill_fpregset): Likewise.
180 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
181 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
182 use it to compute offsets.
183 (sparc32_collect_fpregset): Likewise.
184 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
185 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
186 down into handler.
187 (fill_fpregset): Likewise.
188 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
189 Likewise.
190 (sparc64_linux_collect_core_fpregset): Likewise.
191 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
192 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
193 use it to compute offsets.
194 (sparc64_collect_fpregset): Likewise.
195 (sparc64_bsd_fpregset): Define.
196 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
197 sparc64_bsd_fpregset down into handler.
198 (sparc64fbsd_collect_fpregset): Likewise.
199 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
200 and pass sparc{32,64}_bsd_fpregset down into handler.
201 (sparc64nbsd_collect_fpregset): Likewise.
202 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
203 sparc64_bsd_fpregset down into handler.
204 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
205 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
206 to sparc32_bsd_fpregset.
207 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
208 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
209 (sparc32nbsd_supply_fpregset): Likewise.
210
cfcad218
TT
2112012-11-21 Tom Tromey <tromey@redhat.com>
212
213 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
214 field.
215 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
216 Remove.
217 * c-typeprint.c (c_type_print_base): Update.
218
85ddcc70
YQ
2192012-11-21 Yao Qi <yao@codesourcery.com>
220
221 PR tdep/7438
222 * gdbarch.sh (smash_text_address): Remove.
223 * gdbarch.c, gdbarch.h: Regenerate.
224 * arm-tdep.c (arm_smash_text_address): Remove.
225 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
226 * hppa-tdep.c (hppa_smash_text_address): Remove.
227 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
228 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
229 Caller update.
230 * coffread.c (coff_symtab_read): Caller update.
231 * dbxread.c (process_one_symbol): Likewise.
232 * elfread.c (record_minimal_symbol): Likewise.
233 * somread.c (som_symtab_read): Likewise.
234
11522069
PM
2352012-11-20 Pierre Muller <muller@sourceware.org>
236
237 ARI fixes: sprintf rule.
238 Replace sprintf function calls for char arrays by
239 calls to xsnprintf calls.
240 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
241 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
242 (arm_neon_quad_read, arm_pseudo_read): Ditto.
243 (arm_neon_quad_write, arm_pseudo_write): Ditto.
244 * breakpoint.c (condition_completer): Ditto.
245 (create_tracepoint_from_upload): Ditto.
246 * dwarf2read.c (file_full_name): Ditto.
247 * gcore.c (gcore_command): Ditto.
248 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
249 * go32-nat.c (go32_sysinfo): Ditto.
250 * interps.c (interp_set): Ditto.
251 * m32c-tdep.c (make_types): Ditto.
252 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
253 * remote-m32r-sdi.c (m32r_open): Ditto.
254 * sol-thread.c (td_err_string): Ditto.
255 (td_state_string, solaris_pid_to_str): Ditto.
256 * symtab.c (gdb_mangle_name): Ditto.
257 * cli/cli-script.c (execute_control_command): Ditto.
258 (define_command, document_command): Ditto.
259 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
260 * tui/tui-stack.c (tui_make_status_line): Ditto.
261 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
262
ace21957
MF
2632012-11-20 Mike Frysinger <vapier@gentoo.org>
264
265 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
266 it when looking at ptr->func.
267 * command.h (complete_on_cmdlist): Add a fourth arg.
268 * completer.c (complete_line_internal): Add local ignore_help_classes,
269 and set it to 1 when reason is not handle_help. Pass this down to
270 lookup_cmd_1 and complete_on_cmdlist.
271
ec6632d7
TT
2722012-11-20 Tom Tromey <tromey@redhat.com>
273
274 * completer.c (count_struct_fields): Remove.
275 (expression_completer): Don't call count_struct_fields.
276
ef37bb07
PA
2772012-11-20 Pedro Alves <palves@redhat.com>
278
279 * annotate.c (breakpoints_changed): Rename to ...
280 (annotate_breakpoints_changed): ... this.
281 (annotate_stopped, breakpoint_changed): Adjust caller.
282 * annotate.h (breakpoints_changed): Rename to ...
283 (annotate_breakpoints_changed): ... this.
284 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
285 (do_map_commands_command, init_raw_breakpoint, clear_command)
286 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
287
b245bdfc
DM
2882012-11-20 David S. Miller <davem@davemloft.net>
289
290 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
291 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
292 sysconf.
293 (get_cores_used_by_process): Update comment.
294
bd0cfc4d
YQ
2952012-11-20 Yao Qi <yao@codesourcery.com>
296
297 * objfiles.c (init_entry_point_info): Remove trailing spaces.
298
de9f1b68
YQ
2992012-11-20 Yao Qi <yao@codesourcery.com>
300
301 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
302 to deprecated_context_hook.
303
8870954f
YQ
3042012-11-19 Yao Qi <yao@codesourcery.com>
305
306 * infrun.c (infwait_state): Add static.
307
8dea366b
KS
3082012-11-16 Keith Seitz <keiths@redhat.com>
309
310 PR c++/13615
311 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
312 parameter and pass it to lookup_symbol_file.
313 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
314 to search base classes.
315 (cp_lookup_symbol_namespace): Likewise.
316 (lookup_namespace_scope): Likewise.
317 (lookup_symbol_file): Add SEARCH parameter.
318 If SEARCH is non-zero and no symbol is found, lookup the class
319 and call cp_lookup_nested_symbol.
320 (find_symbol_in_baseclass): New function.
321 (cp_lookup_nested_symbol): Do not let
322 cp_lookup_symbol_in_namespace search through base classes.
323 Do that later when there is no global symbol match.
324
e64e0392
DE
3252012-11-16 Doug Evans <dje@google.com>
326
327 * main.c (gdb_datadir_provided): New static global.
328 (get_init_files): If --data-directory is provided,
329 and SYSTEM_GDBINIT lives in data-directory, look for it there.
330 * NEWS: Mention it.
331
8bdce1ff
PM
3322012-11-15 Pierre Muller <muller@sourceware.org>
333
334 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
335 * gdb_stat.h: Delete. Moved to common directory.
336 * common/gdb_stat.h: New file.
337 * gdb_wait.h: Delete. Moved to common directory.
338 * common/gdb_wait.h: New file.
339 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
340 location.
341 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
342 location.
343 (stat.h rule): Adapt to new gdb_stat.h location.
344 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
345 <sys/stat.h> header.
346 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
347 <sys/wait.h> header.
348
3a731e0f
PM
3492012-11-15 Pierre Muller <muller@sourceware.org>
350
351 * configure.ac (AC_HEADER_STAT): Remove.
352 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
353 and corresponding code.
354 * configure: Regenerate.
355 * config.in: Regenerate.
356
2792b94d
PM
3572012-11-15 Pierre Muller <muller@sourceware.org>
358
359 ARI xasprintf rule fixes.
360 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
361 instead of xasprintf.
362 (open_and_init_dwp_file): Ditto.
363
5e34c6c3
LM
3642012-11-14 Luis Machado <lgustavo@codesourcery.com>
365
366 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
367 target types.
368
e68227b9
TT
3692012-11-14 Tom Tromey <tromey@redhat.com>
370
371 * configure, config.in: Rebuild.
372 * configure.ac: Don't check for ctype.h, time.h.
373 * expprint.c: Don't use HAVE_CTYPE_H.
374
aff68abb
TT
3752012-11-13 Tom Tromey <tromey@redhat.com>
376
377 * gdbarch.h, gdbarch.c: Rebuild.
378 * gdbarch.sh (set_target_gdbarch): Rename from
379 deprecated_target_gdbarch_select_hack.
380 * arch-utils.c (gdbarch_update_p): Update.
381 (set_gdbarch_from_file): Update.
382
84277139 3832012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
384
385 * MAINTAINERS (Responsible Maintainers/misc): Add myself
386 as responsible of contrib/ari directory.
387
2ae28aa9
YQ
3882012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
389 Yao Qi <yao@codesourcery.com>
390
391 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
392 bit of EXC_RETURN.
393 (arm_m_exception_cache, arm_m_exception_this_id)
394 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
395 (arm_m_exception_unwind): New.
396 (arm_gdbarch_init): Register arm_m_exception_unwind.
397
62747a60
TT
3982012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
399
400 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
401 parameter COUNT, for pattern filling of memory regions.
402 * NEWS: Mention it.
403
4cd29721
MM
4042012-11-13 Markus Metzger <markus.t.metzger@intel.com>
405
406 * disasm.h (DISASSEMBLY_FILENAME): New macro.
407 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
408 to print_source_lines ().
409 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
410 flag.
411 * source.c (print_source_lines_base): Prefix source line with
412 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
413
dfaae886
MM
4142012-11-13 Markus Metzger <markus.t.metzger@intel.com>
415
416 * symtab.h (print_source_lines_flags): New enum.
417 * source.c (print_source_lines_base): Change noerror to flags.
418 (print_source_lines): Change noerror to flags.
419
08850b56
PM
4202012-11-13 Pierre Muller <muller@sourceware.org>
421
422 ARI fixes: Avoid sprintf function use rule.
423 * charset.c (convert_between_encodings): Use xsnprintf.
424 * cli-out.c (cli_field_int): Likewise.
425 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
426 * expprint.c (op_name_standard): Likewise.
427 * frv-tdep.c (set_variant_num_gprs): Likewise.
428 (set_variant_num_fprs): Likewise.
429 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
430 * nto-tdep.c (nto_find_and_open_solib): Likewise.
431 (nto_init_solib_absolute_prefix): Likewise.
432 * source.c (init_source_path): Likewise.
433 (print_source_lines_base): Likewise.
434 * valprint.c (print_wchar): Likewise.
435 * mi/mi-out.c (mi_field_int): Likewise.
436 windows-nat.c (windows_pid_to_exec_file): Likewise.
437 (windows_create_inferior): Likewise.
438 (_initialize_check_for_gdb_ini): Likewise.
439
ca9d61b9
JB
4402012-11-12 Joel Brobecker <brobecker@adacore.com>
441
442 * frame.h (deprecated_frame_register_read): Renames
443 frame_register_read.
444 * frame.c (deprecated_frame_register_read): Renames
445 frame_register_read. Update all callers.
446 * i386-tdep.c: Update all callers of frame_register_read.
447 * infcmd.c: Likewise.
448 * jit.c: Likewise.
449 * mips-tdep.c: Likewise.
450 * mt-tdep.c: Likewise.
451 * sh64-tdep.c: Likewise.
452
b2c7d45a
JB
4532012-11-12 Joel Brobecker <brobecker@adacore.com>
454
455 * frame.h (frame_register_read): Remove FIXME comment.
456 * frame.c (frame_register_read): Add suggestion explaining
457 which function to use in place of this one.
458
31594462
TT
4592012-11-12 Tom Tromey <tromey@redhat.com>
460
461 * python/python.c (start_type_printers): Initialize 'result_obj'.
462
18a9fc12
TT
4632012-11-12 Tom Tromey <tromey@redhat.com>
464
465 * NEWS: Update.
466 * data-directory/Makefile.in (PYTHON_FILES): Add
467 type_printers.py.
468 * python/lib/gdb/command/type_printers.py: New file.
469 * python/lib/gdb/command/types.py (TypePrinter): New class.
470 (_get_some_type_recognizers, get_type_recognizers,
471 apply_type_recognizers, register_type_printer): New
472 functions.
473 * python/py-objfile.c (objfile_object) <type_printers>: New
474 field.
475 (objfpy_dealloc): Decref new field.
476 (objfpy_new): Set new field.
477 (objfpy_get_type_printers, objfpy_set_type_printers): New
478 functions.
479 (objfile_to_objfile_object): Set new field.
480 (objfile_getset): Add "type_printers".
481 * python/py-progspace.c (pspace_object) <type_printers>: New
482 field.
483 (pspy_dealloc): Decref new field.
484 (pspy_new): Set new field.
485 (pspy_get_type_printers, pspy_set_type_printers): New functions.
486 (pspace_to_pspace_object): Set new field.
487 (pspace_getset): Add "type_printers".
488 * python/python.c (start_type_printers, apply_type_printers,
489 free_type_printers): New functions.
490 (_initialize_python): Set gdb.type_printers.
491 * python/python.h (start_type_printers, apply_type_printers,
492 free_type_printers): Declare.
493 * typeprint.c (type_print_raw_options, default_ptype_flags):
494 Update for new fields.
495 (do_free_global_table, create_global_typedef_table,
496 find_global_typedef): New functions.
497 (find_typedef_in_hash): Use find_global_typedef.
498 (whatis_exp): Use create_global_typedef_table. Change cleanup
499 handling.
500 * typeprint.h (struct type_print_options) <global_typedefs,
501 global_printers>: New fields.
502
bd69fc68
TT
5032012-11-12 Tom Tromey <tromey@redhat.com>
504
505 * c-typeprint.c (find_typedef_for_canonicalize,
506 print_name_maybe_canonical): New functions.
507 (c_print_type): Look up type name.
508 (cp_type_print_derivation_info): Add flags argument. Use
509 print_name_maybe_canonical.
510 (cp_type_print_method_args): Add wrapping.
511 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
512 (c_type_print_template_args): New function.
513 (c_type_print_base): Change wrapping. Use
514 print_name_maybe_canonical.
515 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
516 type name lookups.
517 * gdbtypes.c (types_equal): No longer static.
518 * gdbtypes.h (types_equal): Declare.
519 * typeprint.c (type_print_raw_options, default_ptype_flags):
520 Update.
521 (struct typedef_hash_table): New.
522 (hash_typedef_field, eq_typedef_field,
523 recursively_update_typedef_hash, add_template_parameters,
524 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
525 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
526 copy_typedef_hash, find_typedef_in_hash): New functions.
527 * typeprint.h (struct type_print_options) <local_typedefs>:
528 New field.
529 (recursively_update_typedef_hash, add_template_parameters,
530 create_typedef_hash, free_typedef_hash,
531 make_cleanup_free_typedef_hash, copy_typedef_hash,
532 find_typedef_in_hash): Declare.
533
2621e0fd
TT
5342012-11-12 Tom Tromey <tromey@redhat.com>
535
536 * cp-support.c (inspect_type,
537 replace_typedefs_qualified_name, replace_typedefs): Add
538 finder, data arguments. Call as needed.
539 (cp_canonicalize_string_full): New function.
540 (cp_canonicalize_string_no_typedefs): Rewrite.
541 * cp-support.h (canonicalization_ftype): New typedef.
542 (cp_canonicalize_string_full): Declare.
543
53342f27
TT
5442012-11-12 Tom Tromey <tromey@redhat.com>
545
546 * NEWS: Update.
547 * c-typeprint.c (c_type_print_base): Handle print_method and
548 print_typedefs flags.
549 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
550 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
551 options.
552 * typeprint.c (type_print_raw_options, default_ptype_flags):
553 Update for new field.s
554 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
555 (setprinttypelist, showprinttypelist, print_methods,
556 print_typedefs): New globals.
557 (set_print_type, show_print_type, set_print_type_methods,
558 show_print_type_methods, set_print_type_typedefs,
559 show_print_type_typedefs): New functions.
560 (_initialize_typeprint): Update documentation. Add "print
561 type methods" and "print type typedefs" parameters.
562 * typeprint.h (struct type_print_options) <print_methods,
563 print_typedefs>: New fields.
564
6c8702eb
TT
5652012-11-12 Tom Tromey <tromey@redhat.com>
566
567 * c-typeprint.c (cp_type_print_method_args): Add flags
568 argument. Call c_print_type, not type_print.
569 (c_type_print_base): Call c_print_type, not type_print.
570 Update.
571
79d43c61
TT
5722012-11-12 Tom Tromey <tromey@redhat.com>
573
574 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
575 to type-printing functions.
576 * ada-lang.h (ada_print_type): Add argument.
577 * ada-typeprint.c (print_array_type, print_variant_clauses,
578 print_variant_part, print_selected_record_field_types,
579 print_record_field_types, print_unchecked_union_type,
580 print_func_type, ada_print_type): Add flags argument.
581 (ada_print_typedef): Update.
582 * c-exp.y (OPERATOR conversion_type_id): Update.
583 * c-lang.h (c_print_type, c_type_print_base): Update.
584 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
585 c_type_print_modifier, c_type_print_args,
586 c_type_print_varspec_suffix, c_type_print_base): Add flags
587 argument.
588 * cp-valprint.c (cp_print_class_member): Update.
589 * dwarf2read.c (dwarf2_compute_name): Update.
590 * f-lang.h (f_print_type): Add argument.
591 * f-typeprint.c (f_print_type): Add flags argument.
592 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
593 * go-lang.h (go_print_type): Add argument.
594 * go-typeprint.c (go_print_type): Add flags argument.
595 * jv-lang.h (java_print_type): Add argument.
596 * jv-typeprint.c (java_type_print_base, java_print_type): Add
597 flags argument.
598 * language.c (unk_lang_print_type): Add flags argument.
599 * language.h (struct language_defn) <la_print_type>: Add flags
600 argument.
601 (LA_PRINT_TYPE): Likewise.
602 * m2-lang.h (m2_print_type): Add argument.
603 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
604 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
605 m2_unbounded_array, m2_record_fields): Add flags argument.
606 * p-lang.h (pascal_print_type, pascal_type_print_base,
607 pascal_type_print_varspec_prefix): Add argument.
608 * p-typeprint.c (pascal_print_type,
609 pascal_type_print_varspec_prefix, pascal_print_func_args,
610 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
611 flags argument.
612 * symmisc.c (print_symbol): Update.
613 * typeprint.c (type_print_raw_options, default_ptype_flags):
614 New globals.
615 (type_print): Update.
616 * typeprint.h (struct type_print_options): New.
617 (type_print_raw_options): Declare.
618 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
619
cf4ded82
KS
6202012-11-10 Keith Seitz <keiths@redhat.com>
621
622 * breakpoint.c (clear_command): Add cleanup for
623 sals.sals if an argument is given.
624
625 * linespec.c (parse_linespec): Do cleanups after
626 parsing a convenience variable.
627
0d63ecda
KS
6282012-11-10 Keith Seitz <keiths@redhat.com>
629
630 PR gdb/14288
631 * c-valprint.c (c_val_print): For character arrays
632 with "print null" option on, print ellipses if
633 the output is truncated and the next character is not \000.
634 * valprint.c (MAX_WCHARS): Define.
635 (WCHAR_BUFLEN): Likewise.
636 (WCHAR_BUFLEN_MAX): Likewise.
637 (struct converted_character): New structure.
638 (count_next_character): New function.
639 (print_converted_chars_to_obstack): New function.
640 (generic_printstr): Rewrite using count_next_character
641 and print_converted_chars_to_obstack.
642
9b8d6827
SC
6432012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
644
645 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
646 while executing the gdb command.
647 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
648 are called from prompt_for_continue.
649 * tui/tui-io.c (tui_redisplay_readline): Likewise.
650
e840f632
SC
6512012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
652
653 PR tui/9584
654
655 * tui/tui.c (tui_rl_command_key): Do not call execute_command
656 but insert the command to execute in readline's buffer.
657
f5656ead
TT
6582012-11-09 Tom Tromey <tromey@redhat.com>
659
660 * gdbarch.sh (target_gdbarch): Remove macro.
661 (get_target_gdbarch): Rename to target_gdbarch.
662 * gdbarch.c, gdbarch.h: Rebuild.
663 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
664 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
665 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
666 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
667 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
668 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
669 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
670 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
671 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
672 procfs.c, progspace.c, ravenscar-thread.c, record.c,
673 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
674 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
675 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
676 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
677 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
678 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
679 target-descriptions.c, target.c, target.h, tracepoint.c,
680 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
681 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
682 python/py-inferior.c, python/python.c: Update.
683
ed8a1c2d
AB
6842012-11-09 Andrew Burgess <aburgess@broadcom.com>
685
686 * source.c (print_source_lines_base): Add fullname field giving
687 full path to file in mi output.
688 * NEWS: Mention the new fullname field.
689
504b36fd
YQ
6902012-11-09 Yao Qi <yao@codesourcery.com>
691
692 * NEWS: Mention the fix to the ambiguity of 'fo' command.
693
9107fc8d
PA
6942012-11-09 Pedro Alves <palves@redhat.com>
695
696 PR gdb/14306
697
698 * infrun.c: Include target-descriptions.h.
699 (follow_exec): Fetch new target description.
700
30f8135b
YQ
7012012-11-09 Yao Qi <yao@codesourcery.com>
702
703 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
704 0x8d (lea).
705
558a9d82
YQ
7062012-11-09 Yao Qi <yao@codesourcery.com>
707
708 * breakpoint.c: Declare set_tracepoint_count.
709 (install_breakpoint): Call set_tracepoint_count if B is a
710 tracepoint.
711 (trace_command): Don't call set_tracepoint_count. Re-indent.
712 (strace_command, ftrace_command):
713 (create_tracepoint_from_upload): Likewise.
714
6ecd4729
PA
7152012-11-09 Pedro Alves <palves@redhat.com>
716
717 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
718 (get_target_gdbarch) <gdbarch.h>: New function.
719 (startup_gdbarch) <gdbarch.h>: Declare.
720 <gdbarch.c> (target_gdbarch): Delete.
721 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
722 current inferior's gdbarch.
723 <gdbarch.c> (get_target_gdbarch): New function.
724 * inferior.c: Include target-descriptions.h.
725 (free_inferior): Free target description info.
726 (add_inferior_with_spaces): Set the inferior's initial
727 architecture.
728 (clone_inferior_command): Copy the original inferior's target
729 description if it was user specified.
730 (initialize_inferiors): Add comment.
731 * inferior.h (struct target_desc_info): Forward declare.
732 (struct inferior) <gdbarch>: New field.
733 * linux-nat.c: Include target-descriptions.h.
734 (linux_child_follow_fork): Copy the parent's architecture and
735 target description to the child.
736 * target-descriptions.c: Include inferior.h.
737 (struct target_desc_info): New structure, holding the equivalents
738 of ...
739 (target_desc_fetched, current_target_desc)
740 (target_description_filename): ... these removed globals.
741 (get_tdesc_info, target_desc_info_from_user_p)
742 (copy_inferior_target_desc_info, target_desc_info_free): New.
743 (target_desc_fetched, current_target_desc)
744 (target_description_filename): Reimplemented as convenience
745 macros.
746 (tdesc_filename_cmd_string): New global.
747 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
748 tdescs filename ..." commands to the per-inferior equivalent.
749 (show_tdesc_filename_cmd): Get the value to show from the
750 per-inferior description filename.
751 (_initilize_target_descriptions): Change the "set/show tdesc
752 filename" commands' variable.
753 * target-descriptions.h (struct target_desc, struct target_desc_info)
754 (struct inferior): Forward declare.
755 (target_find_description, target_clear_description)
756 (target_current_description): Adjust comments.
757 (copy_inferior_target_desc_info, target_desc_info_free)
758 (target_desc_info_from_user_p). Declare.
759
4ca4d161
SC
7602012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
761
762 * tui/tui-hooks.c (tui_about_to_proceed): New function.
763 (tui_target_wait_hook): Remove.
764 (tui_install_hooks): Install the about_to_proceed observer.
765 (tui_remove_hooks): And remove it here.
766
9015683b
TT
7672012-11-08 Tom Tromey <tromey@redhat.com>
768
769 * linux-tdep.c (linux_make_siginfo_note): New function.
770 (linux_make_corefile_notes): Use it.
771 * corelow.c (get_core_siginfo): New function.
772 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
773
ea9f10bb
TT
7742012-11-08 Tom Tromey <tromey@redhat.com>
775
776 PR gdb/14704:
777 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
778 (zlib_decompress_section): Remove.
779 (gdb_bfd_map_section): Only check for compressed section
780 in mmap case. Use bfd_get_full_section_contents.
781 * osabi.c (check_note): Add 'sectsize' argument. Read
782 section data.
783 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
784 section data. Update for check_note change.
785 * xcoffread.c (xcoff_initial_scan): Use
786 bfd_get_full_section_contents.
787 * py-auto-load.c (auto_load_section_scripts): Use
788 bfd_get_full_section_contents.
789 * contrib/cc-with-tweaks.sh: Add -Z option.
790
d071a26b
TT
7912012-11-08 Tom Tromey <tromey@redhat.com>
792
793 * python/py-bpevent.c: Include defs.h.
794 * python/py-continueevent.c: Include defs.h.
795 * python/py-event.c: Include defs.h.
796 * python/py-event.h: Don't include defs.h.
797 * python/py-events.h: Don't include defs.h.
798 * python/py-evts.c: Include defs.h.
799 * python/py-exitedevent.c: Include defs.h.
800 * python/py-newobjfileevent.c: Include defs.h.
801 * python/py-signalevent.c: Include defs.h.
802 * python/py-stopevent.c: Include defs.h.
803 * python/py-threadevent.c: Include defs.h.
804
4574b35a
PM
8052012-11-08 Pierre Muller <muller@sourceware.org>
806
807 * update-web-ari.sh (print_heading): Add number of files
808 checked.
809 (nb_files): New variable counting the number of sources
810 files found by gdb_find.sh script.
811 (debug_awk): New variable to allow extra debug output.
812 (indexes): Add more information if DEBUG_AWK is set.
813
2834ab42
EBM
8142012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
815
816 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
817 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
818 following the change in PLT call stubs on linker.
819
84f13595
PM
8202012-11-08 Pierre Muller <muller@sourceware.org>
821
822 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
823 as default language.
824 (AWK): Use = instead of == for sh test to avoid warning.
825 (Linux rule): Correct [:digit] into [[:digit:]].
826 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
827 (vasprintf rule): Adapt to common subdirectory moves.
828 (xasprintf rule): Idem.
829 (xvasprintf rule): Idem.
830 (var_boolean rule): Accept occurence in == or != test.
831
832 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
833
d69e6a33
SC
8342012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
835
836 * tui/tui-hooks.c (tui_inferior_exit): New function.
837 (tui_detach_hook): Remove.
838 (tui_install_hooks): Install the inferior exit observer.
839 (tui_remove_hooks): Remove it.
840
1e96de83
YQ
8412012-11-08 Yao Qi <yao@codesourcery.com>
842
843 PR gdb/14777.
844 * source.c (_initialize_source): Call add_com_alias to abbreviate
845 'forward-search' as 'fo'.
846
0baeab03
PA
8472012-11-07 Pedro Alves <palves@redhat.com>
848
849 * arm-tdep.c: Make defs.h be the first include.
850 * coff-pe-read.c: Ditto.
851 * gnu-nat.c: Ditto.
852 * go32-nat.c: Ditto.
853 * i386-nat.c: Ditto.
854 * ppcnbsd-nat.c: Ditto.
855 * ada-varobj.h: Don't include defs.h.
856 * i386-darwin-tdep.h: Ditto.
857 * i386-nat.h: Ditto.
858
892a8570
PA
8592012-11-07 Pedro Alves <palves@redhat.com>
860
861 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
862 Committee.
863
719502e9
PM
8642012-11-07 Pierre Muller <muller@sourceware.org>
865
866 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
867 File already uses "gdb_dirent.h" header.
868
ed86b350
YQ
8692012-11-07 Yao Qi <yao@codesourcery.com>
870
871 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
872 tracepoint_count'.
873
9a4f1e4f
TT
8742012-11-06 Tom Tromey <tromey@redhat.com>
875
876 * target.h (inferior_has_forked, inferior_has_vforked)
877 (inferior_has_execd, inferior_has_called_syscall): Remove
878 declarations.
879
0316657e
PM
8802012-11-06 Pierre Muller <muller@sourceware.org>
881
882 * remote.c (remote_insert_hw_breakpoint): ARI fix,
883 add missing internalization markup.
884
f6592439
PA
8852012-11-06 Pedro Alves <palves@redhat.com>
886
887 PR gdb/14810
888
889 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
890
01f2564a
PM
8912012-11-06 Pierre Muller <muller@sourceware.org>
892
893 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
894 is not executable.
895
f37c4431
JB
8962012-11-05 Joel Brobecker <brobecker@adacore.com>
897
898 * gnulib/update-gnulib.sh: New script.
899
550889c3
JB
9002012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
901
902 * MAINTAINERS: Update my email address.
903
954b50b3
TT
9042012-11-05 Tom Tromey <tromey@redhat.com>
905
906 * frame.c (put_frame_register): Don't use temporary buffer.
907
68c9da30
PA
9082012-11-05 Pedro Alves <palves@redhat.com>
909
910 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
911 child. Clear 'pending_detach'.
912 * infrun.c (handle_vfork_child_exec_or_exit): Clear
913 'pending_detach' in the vfork parent.
914
80626a55
DE
9152012-11-05 Doug Evans <dje@google.com>
916
917 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
918 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
919 * dwarf2read.c: #include "elf-bfd.h".
920 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
921 (dwop_section_names): Renamed from dwo_section names. All uses
922 updated. Add entries for .debug_cu_index, .debug_tu_index.
923 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
924 All uses updated.
925 (struct dwp_sections): New type.
926 (struct virtual_dwo_sections): New type.
927 (struct dwp_hash_table): New type.
928 (struct dwp_file): New type.
929 (init_cutu_and_read_dies): Ensure DWO info/types section has been
930 read in. Handle DWOs coming from DWP files.
931 (lookup_dwo_file_slot): New function.
932 (dwarf2_locate_dwo_sections): Move definition closer to use.
933 (create_dwo_debug_info_hash_table_reader): Renamed from
934 create_debug_info_hash_table_reader. All callers updated.
935 (create_dwo_debug_info_hash_table): Renamed from
936 create_debug_info_hash_table. All callers updated.
937 (create_dwp_hash_table): New function.
938 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
939 (lookup_dwo_in_dwp): New function.
940 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
941 is_dwp. All callers updated.
942 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
943 (open_and_init_dwo_file): Renamed from init_dwo_file.
944 All callers updated.
945 (lookup_dwo_file): Delete.
946 (dwarf2_locate_dwp_sections): New function.
947 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
948 (allocate_dwp_loaded_cutus_table): New function.
949 (open_and_init_dwp_file): New function.
950 (lookup_dwo_cutu): New function.
951 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
952
6f6484cd
YQ
9532012-11-03 Yao Qi <yao@codesourcery.com>
954
955 Fix PR gdb/14617.
956 * breakpoint.c (trace_pass_set_count): Call
957 observer_notify_breakpoint_modified instead of
958 observer_notify_tracepoint_modified.
959 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
960
b45627a0
TT
9612012-11-02 Tom Tromey <tromey@redhat.com>
962
963 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
964 argument to complete_on_enum.
965
d4fb63e1
TT
9662012-11-02 Tom Tromey <tromey@redhat.com>
967
968 * configure: Rebuild.
969 * configure.ac (build_warnings): Add -Wempty-body.
970 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
971 * remote.c (handle_notification): Use braces for empty 'else' body.
972 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
973 'else' body.
974 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
975 'else' body.
976 * solib-som.c (som_relocate_section_addresses): Use braces
977 for empty 'else' body.
978 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
979 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
980
f50f4e56
PA
9812012-11-02 Pedro Alves <palves@redhat.com>
982
983 PR gdb/14766
984
985 * infrun.c (handle_inferior_event)
986 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
987 null_ptid before handling a vfork child exec or exit. Switch to
988 the event ptid afterwards.
989
f0559fff
YQ
9902012-11-02 Yao Qi <yao@codesourcery.com>
991
992 * std-operator.def: Remove OP_LABELED.
993 * eval.c: Remove the declaration of 'get_label'.
994 (get_label): Remove.
995 (evaluate_struct_tuple): Remove code handling OP_LABELED.
996 Update comment.
997 Remove local variable 'variantno' and related code.
998 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
999 with 'fieldno'.
1000 * expprint.c (print_subexp_standard): Likewise.
1001 (dump_subexp_body_standard): Likewise.
1002 * parse.c (operator_length_standard): Likewise.
1003
e5496e3e
PM
10042012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1005
1006 Incorporate ARI web page generator into GDB sources.
1007 * contrib/ari/create-web-ari-in-src.sh: New file.
1008 * contrib/ari/gdb_ari.sh: New file.
1009 * contrib/ari/gdb_find.sh: New file.
1010 * contrib/ari/update-web-ari.sh: New file.
1011
c66fb220
TT
10122012-10-31 Tom Tromey <tromey@redhat.com>
1013
1014 * gdbarch.c: Rebuild.
1015 * gdbarch.sh: Remove references to gdbarch_swap.
1016 * corelow.c (core_open): Remove obsolete comment.
1017
2f27adfe
AB
10182012-10-31 Andrew Burgess <aburgess@broadcom.com>
1019
1020 PR cli/14772
1021 * c-typeprint.c (c_print_type): Don't print a space for vector
1022 types, this is handled within the suffix.
1023 (c_type_print_varspec_suffix): Add a space to vector suffix.
1024
144db827
PA
10252012-10-26 Pedro Alves <palves@redhat.com>
1026
1027 * amd64-tdep.c (amd64_relocate_instruction): Use
1028 store_unsigned_integer instead of memcpy.
1029 * i386-tdep.c (i386_relocate_instruction): Ditto.
1030
940c3c06
PA
10312012-10-26 Pedro Alves <palves@redhat.com>
1032
1033 * infrun.c (handle_inferior_event): Merge handling of
1034 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1035 switch case.
1036
47b19065
PA
10372012-10-26 Pedro Alves <palves@redhat.com>
1038
1039 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1040 Remove comment.
1041
87d2d2a4
PA
10422012-10-26 Pedro Alves <palves@redhat.com>
1043
1044 * target.c (target_waitstatus_to_string): Handle
1045 TARGET_WAITKIND_VFORK_DONE.
1046
fed708ed
PA
10472012-10-26 Pedro Alves <palves@redhat.com>
1048
1049 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1050 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1051
2590b645
JB
10522012-10-24 Tristan Gingold <gingold@adacore.com>
1053
1054 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1055 Add comments.
1056
bed0c243
JB
10572012-10-24 Joel Brobecker <brobecker@adacore.com>
1058
1059 * ravenscar-thread.c (ravenscar_wait): Only update the list
1060 of threads and inferior_ptid if the inferior is still alive.
1061
f69c91ad
JB
10622012-10-24 Joel Brobecker <brobecker@adacore.com>
1063
1064 * ada-lang.c (is_known_support_routine): Use lbasename when
1065 matching the symtab's filename against
1066 known_runtime_file_name_patterns.
1067
d99dcf51
JB
10682012-10-24 Joel Brobecker <brobecker@adacore.com>
1069
1070 * ada-lang.c (ada_same_array_size_p): New function.
1071 (ada_promote_array_of_integrals): New function.
1072 (coerce_for_assign): Add handling of arrays where the elements
1073 are integrals of a smaller size than the size of the target
1074 array element type.
1075
32560274
JB
10762012-10-24 Joel Brobecker <brobecker@adacore.com>
1077
1078 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1079 against maximum exponent value.
1080
5a04cc98
JB
10812012-10-24 Joel Brobecker <brobecker@adacore.com>
1082
1083 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1084 "unwind-seh.c".
1085
5ded5331
JB
10862012-10-24 Joel Brobecker <brobecker@adacore.com>
1087
1088 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1089 strip typedef layer when computing the fixed type's field type,
1090 only when computing its size.
1091
2445fd7b
MK
10922012-10-24 Mark Kettenis <kettenis@gnu.org>
1093
1094 PR gdb/12783
1095 * i386-tdep.c (i386_return_value): Handle complex double and long
1096 double.
1097
8f205f9c
JB
10982012-10-24 Joel Brobecker <brobecker@adacore.com>
1099
1100 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1101 New local variable args_len.
1102 Quote the name of the executable when computing the command line.
1103
7f7930dd
MK
11042012-10-23 Mark Kettenis <kettenis@gnu.org>
1105
1106 PR gdb/12796
1107 PR gdb/12798
1108 PR gdb/12800
1109 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1110 AMD64_FTAG_REGNUM.
1111 * amd64-tdep.c (amd64_classify): Classify complex types.
1112 (amd64_return_value): Handle the COMPLEX_X87 class.
1113
38a69d0a
JB
11142012-10-23 Joel Brobecker <brobecker@adacore.com>
1115
1116 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1117 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1118
83ab93c6
JB
11192012-10-23 Joel Brobecker <brobecker@adacore.com>
1120
1121 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1122 function.
1123 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1124 to amd64_windows_auto_wide_charset.
1125
f6fbab7d
YQ
11262012-10-23 Yao Qi <yao@codesourcery.com>
1127
1128 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1129 * event-top.h: Remove its declaration.
1130 (async_request_quit): Call mark_async_signal_handler instead of
1131 mark_async_signal_handler_wrapper.
1132 (async_do_nothing, async_disconnect): Likewise.
1133 (async_stop_sig): Likewise.
1134 * remote.c (handle_remote_sigint): Likewise.
1135 (handle_remote_sigint_twice): Likewise.
1136
05fa9251
YQ
11372012-10-23 Yao Qi <yao@codesourcery.com>
1138
1139 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1140 with 'static struct async_signal_handler *'.
1141 (sighup_token, sigquit_token, sigstp_token): Likewise.
1142
08af7a40
AA
11432012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1144
1145 * gdbarch.sh (function_list): Use 'pstring' when printing
1146 a variable which could return NULL.
1147 * gdbarch.c: Regenerate.
1148
beb4b03c
JB
11492012-10-10 Joel Brobecker <brobecker@adacore.com>
1150 Tom Tromey <tromey@redhat.com>
1151
1152 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1153 inneffective if condition by gdb assertion. Add function
1154 description comment.
1155
a5b12627
JB
11562012-10-19 Joel Brobecker <brobecker@adacore.com>
1157
1158 * parser-defs.h (struct exp_descriptor): Document constraint
1159 on return value for "op_name" callbacks.
1160
0b0865da
TT
11612012-10-18 Tom Tromey <tromey@redhat.com>
1162
1163 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1164 * symtab.c (iterate_over_some_symtabs): Constify.
1165 * source.h (symtab_to_fullname): Return 'const char *'.
1166 * source.c (symtab_to_fullname): Return 'const char *'.
1167 * python/py-symtab.c (stpy_fullname): Constify.
1168 * cli/cli-cmds.c (edit_command): Constify.
1169 * breakpoint.c (print_breakpoint_location)
1170 (update_static_tracepoint): Constify.
1171
94b0e70d
TT
11722012-10-18 Tom Tromey <tromey@redhat.com>
1173
1174 * breakpoint.c (compare_breakpoints): Fix comparison.
1175
fff10684
TT
11762012-10-18 Tom Tromey <tromey@redhat.com>
1177
1178 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1179 gdb_wchar_t to convert_between_encodings.
1180
8de0566d
YQ
11812012-10-17 Yao Qi <yao@codesourcery.com>
1182
1183 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1184 more parameter 'inferior'.
1185 * corefile.c (write_memory_with_notification): Caller update.
1186
1187 * mi/mi-cmd-var.c: Include "mi-main.h".
1188 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1189 to 1 and restore it later.
1190 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1191 and "data-write-memory-bytes.
1192 * mi/mi-interp.c: Include objfiles.h.
1193 (mi_interpreter_init): Call observer_attach_memory_changed.
1194 (mi_memory_changed): New.
1195 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1196 New field.
1197
1198 * NEWS: Mention new MI notification "memory-changed".
1199
6235cdd1
JK
12002012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1201
1202 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1203
07540c15
DE
12042012-10-15 Doug Evans <dje@google.com>
1205
1206 New option -nh: inhibit loading of ~/.gdbinit.
1207 * NEWS: Mention -nh.
1208 * main.c (captured_main): Recognize and process -nh.
1209 (print_gdb_help): Mention -nh.
1210 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1211
eab09350
L
12122012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1213
1214 PR backtrace/14646
1215 PR gdb/14647
1216 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1217 pc_regnum_from_eax.
1218 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1219 nor pc_regnum_from_eax.
1220 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1221 nor pc_regnum_from_eax.
1222
9e3a7d65
JK
12232012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1224
1225 Fix entry values resolving in inlined frames.
1226 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1227 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1228 entries of FRAME.
1229
c83393b9
JB
12302012-10-15 Joel Brobecker <brobecker@adacore.com>
1231
1232 * configure.ac: Build with -DMS_WIN64 if building with Python
1233 enabled using GCC on amd64-windows.
1234 * configure: Regenerate.
1235
801e4185
TT
12362012-10-15 Tom Tromey <tromey@redhat.com>
1237
1238 PR python/14635:
1239 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1240 to Py_None.
1241
74f910c8
TT
12422012-10-15 Tom Tromey <tromey@redhat.com>
1243
1244 PR python/14634:
1245 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1246
2a7c8fd5
AB
12472012-10-11 Andrew Burgess <aburgess@broadcom.com>
1248
1249 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1250 reset thread numbering back to 1.
1251
7c09e5a0
DE
12522012-10-11 Doug Evans <dje@google.com>
1253
1254 PR breakpoints/14643.
1255 * linespec.c (struct ls_parser): New member keyword_ok.
1256 (linespec_lexer_lex_string): Add comment.
1257 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1258 for one.
1259 (parse_linespec): Set keyword_ok.
1260
a1855c1d
DE
12612012-10-10 Doug Evans <dje@google.com>
1262
844226d6
DE
1263 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1264 "0x" prefix on address in log message.
1265
a1855c1d
DE
1266 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1267 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1268 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1269 (lookup_dwo_file): Add const to dwo_name parameter.
1270 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1271
2e24f4aa
JK
12722012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1273
1274 Fix crash during stepping on ppc32.
1275 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1276 SYM.
1277
aa14df25
DE
12782012-10-03 Doug Evans <dje@google.com>
1279
1280 PR symtab/14601
1281 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1282
3d468296
AB
12832012-10-02 Andrew Burgess <aburgess@broadcom.com>
1284
1285 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1286 output and use uint32_t not long to ensure 4 byte size.
1287
8f0ee2eb
JB
12882012-10-02 Joel Brobecker <brobecker@adacore.com>
1289
1290 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1291 unref'ed it.
1292
b3dc46ff
AB
12932012-10-01 Andrew Burgess <aburgess@broadcom.com>
1294
1295 * target.c (simple_search_memory): Include access length in
1296 warning message.
1297
f712f01f
EBM
12982012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1299 Edjunior Machado <emachado@linux.vnet.ibm.com>
1300
1301 PR gdb/13989
1302 * solib.c (solib_find): Prevent GDB from loading native libraries when
1303 debugging a cross-target corefile.
1304
39181896
PA
13052012-09-28 selven <pcthegreat@gmail.com>
1306
1307 Make definition match declaration.
1308
1309 * regcache.c (regcache_register_status): Change return type to
1310 enum register_status.
1311
4c2786ba
YQ
13122012-09-28 Yao Qi <yao@codesourcery.com>
1313
1314 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1315 write_memory_with_notification instead of write_memory.
1316 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1317 instead of target_write_memory.
1318
1ae0c35e
YQ
13192012-09-28 Yao Qi <yao@codesourcery.com>
1320
1321 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1322 when the length of content is not an even number.
1323
7977e5d2
TT
13242012-09-27 Tom Tromey <tromey@redhat.com>
1325
1326 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1327 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1328
807160da
JB
13292012-09-27 Joel Brobecker <brobecker@adacore.com>
1330
1331 * sol-thread.c (sol_thread_fetch_registers)
1332 (sol_thread_store_registers): Delete commented out code.
1333
43c75337
JB
13342012-09-27 Joel Brobecker <brobecker@adacore.com>
1335
1336 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1337 Move these functions to sparc-sol-thread.c.
1338 * sparc-sol-thread.c: New file.
1339 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1340 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1341 configurations.
1342 * configure: Regenerate.
1343
d292a972
JB
13442012-09-27 Joel Brobecker <brobecker@adacore.com>
1345
1346 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1347 Remove commented-out code.
1348
8c3da003
JB
13492012-09-27 Joel Brobecker <brobecker@adacore.com>
1350
1351 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1352 Enable this code for sparc hosts only.
1353
f00482b6
JB
13542012-09-27 Joel Brobecker <brobecker@adacore.com>
1355
1356 * procfs.h (procfs_find_LDT_entry): Add declaration.
1357 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1358 function procfs_find_LDT_entry.
1359
337c776f
JB
13602012-09-27 Joel Brobecker <brobecker@adacore.com>
1361
1362 * procfs.c (proc_get_LDT_entry): Make static.
1363
1a04d88f
JB
13642012-09-27 Joel Brobecker <brobecker@adacore.com>
1365
1366 * procfs.c (proc_find_memory_regions): Fix declaration.
1367
bad43aa5
SP
13682012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1369
1370 * amd64-tdep.c (amd64_return_value): Revert previous change
1371 that used TYPE_LENGTH directly.
1372 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1373 (bfin_store_return_value): Likewise.
1374 * cris-tdep.c (cris_store_return_value): Likewise.
1375 (cris_extract_return_value): Likewise.
1376 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1377 * hppa-tdep.c (hppa64_return_value): Likewise.
1378 * lm32-tdep.c (lm32_store_return_value): Likewise.
1379 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1380 * spu-tdep.c (spu_value_from_register): Likewise.
1381 * vax-tdep.c (vax_return_value): Likewise.
1382
63375b74
SP
13832012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1384
1385 * gdbtypes.c (lookup_array_range_type): Expand parameters
1386 LOW_BOUND and HIGH_BOUND to LONGEST.
1387 (lookup_string_range_type): Likewise.
1388 * gdbtypes.h (lookup_array_range_type): Likewise.
1389 (lookup_string_range_type): Likewise.
1390 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1391 Expand HIGHBOUND to ssize_t.
1392 (value_string): Likewise.
1393 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1394 (value_string): Likewise.
1395
19ca11c5
YQ
13962012-09-27 Yao Qi <yao@codesourcery.com>
1397
1398 PR breakpoints/13898
1399 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1400 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1401 per breakpoint type.
1402
92107356
PM
14032012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1404
1405 * procfs.c: Add gdb_bfd header.
1406 * rs6000-nat.c: Likewise.
1407 * solib-pa64.c: Likewise.
1408 * spu-linux-nat.c: Likewise.
1409 * windows-nat.c: Likewise.
1410
9742094a
TT
14112012-09-26 Tom Tromey <tromey@redhat.com>
1412
1413 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1414
0971de02
TT
14152012-09-26 Tom Tromey <tromey@redhat.com>
1416
1417 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1418 (read_common_block): Handle child DIEs with
1419 DW_AT_data_member_location.
1420 (new_symbol_full): Add special case for common blocks.
1421
4357ac6c
TT
14222012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1423 Tom Tromey <tromey@redhat.com>
1424
1425 * dwarf2read.c (read_common_block): Rewrite.
1426 (new_symbol_full): Handle DW_TAG_common_block.
1427 * f-lang.c (head_common_list, find_common_for_function):
1428 Remove.
1429 * f-lang.h (struct common_entry, struct saved_f77_common,
1430 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1431 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1432 BLANK_COMMON_NAME_LOCAL): Remove.
1433 (struct common_block): New.
1434 * f-valprint.c (list_all_visible_commons): Remove.
1435 (info_common_command_for_block): New function.
1436 (info_common_command): Use it.
1437 * stack.c (iterate_over_block_locals): Special case for
1438 COMMON_BLOCK_DOMAIN.
1439 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1440 constant.
1441 (struct general_symbol_info) <value.common_block>: New field.
1442 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1443
965f07a8
TT
14442012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1445 Tom Tromey <tromey@redhat.com>
1446
1447 * f-lang.c (allocate_saved_bf_node,
1448 allocate_saved_function_node, allocate_saved_f77_common_node,
1449 allocate_common_entry_node, tail_common_list, current_common,
1450 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1451 tmp_bf_ptr, add_common_block, add_common_entry,
1452 find_first_common_named, patch_common_entries,
1453 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1454 global_remote_debug, get_bf_for_fcn, saved_function_list,
1455 saved_function_list_end, clear_function_list, struct saved_fcn,
1456 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1457 SAVED_BF, SAVED_BF_PTR): Remove.
1458 * f-lang.h (tail_common_list, current_common,
1459 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1460 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1461 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1462 real_main_c_value): Remove.
1463 * f-valprint.c (there_is_a_visible_common_named): Remove.
1464
6f380991
AB
14652012-09-26 Andrew Burgess <aburgess@broadcom.com>
1466
1467 * breakpoint.c (update_global_location_list): Ignore previous
1468 duplicate status of a breakpoint when starting a new scan for
1469 duplicate breakpoints.
1470
9ead7ae4 14712012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1472 PR breakpoints/14419
2536b51c
YQ
1473 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1474 support LLVM compiler.
9ead7ae4 1475
8f8a23a2
SP
14762012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1477
1478 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1479 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1480 (bfin_store_return_value): Likewise.
1481 * cris-tdep.c (cris_store_return_value): Likewise.
1482 (cris_extract_return_value): Likewise.
1483 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1484 * hppa-tdep.c (hppa64_return_value): Likewise.
1485 * lm32-tdep.c (lm32_store_return_value): Likewise.
1486 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1487 * spu-tdep.c (spu_value_from_register): Likewise.
1488 * vax-tdep.c (vax_return_value): Likewise.
1489
d7019589
SP
14902012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1491
1492 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1493 parameter LEN to ssize_t.
1494
744a8059
SP
14952012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1496
1497 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1498 variable LEN.
1499 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1500 directly.
1501 (alpha_store_return_value): Likewise.
1502 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1503 (amd64_push_arguments): Likewise.
1504 * ax-gdb.c (gen_trace_static_fields): Likewise.
1505 (gen_traced_pop): Likewise.
1506 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1507 * breakpoint.c (update_watchpoint): Likewise.
1508 * findcmd.c (parse_find_args): Use local variable for type
1509 instead of length.
1510 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1511 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1512 (h8300_store_return_value): Likewise.
1513 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1514 Use i386_darwin_arg_type_alignment directly.
1515 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1516 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1517 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1518 (m68hc11_extract_return_value): Likewise.
1519 * mep-tdep.c (mep_push_dummy_call): Likewise.
1520 * printcmd.c (float_type_from_length): Likewise.
1521 * s390-tdep.c (s390_value_from_register): Likewise.
1522 * stack.c (read_frame_arg): Likewise.
1523 * tracepoint.c (encode_actions_1): Likewise.
1524 * valops.c (value_fetch_lazy): Use local variable for type
1525 instead of length. Use TYPE_LENGTH directly.
1526 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1527
a4b411d6
JB
15282012-09-25 Joel Brobecker <brobecker@adacore.com>
1529
1530 * symtab.c (skip_prologue_sal): Fix typo in comment.
1531
11dba07a
JB
15322012-09-25 Joel Brobecker <brobecker@adacore.com>
1533
1534 * linespec.c (create_sals_line_offset): Fix typo in comment.
1535
318102b9
SP
15362012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1537
1538 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1539 use plongest to print the array size.
1540
b4aa388a
SP
15412012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1542
1543 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1544 * p-valprint.c (pascal_type_print_base): Likewise.
1545
84cebc4a
YQ
15462012-09-22 Yao Qi <yao@codesourcery.com>
1547
1548 * remote.c (remote_get_trace_status): Remove setting default
1549 values of fields of 'ts'.
1550
04e7407c
JK
15512012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1552
1553 Fix internal error on canonicalization of clang types.
1554 * cp-name-parser.y (operator): New comment at make_operator call for
1555 new, delete, new[] and delete[].
1556 (exp): Use "sizeof ". Add new comment at make_operator call.
1557
9bf4bce9
JK
15582012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1559
1560 Fix disassemble without parameters in tailcall frame.
1561 * cli/cli-cmds.c (disassemble_current_function): Use
1562 get_frame_address_in_block.
1563
1c5b7826
TT
15642012-09-21 Tom Tromey <tromey@redhat.com>
1565
1566 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1567 TYPE_CODE_UNION>: Unify, removing a goto.
1568
62a49610
TT
15692012-09-21 Tom Tromey <tromey@redhat.com>
1570
1571 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1572
2603f7ee
AB
15732012-09-21 Andrew Burgess <aburgess@broadcom.com>
1574
1575 * findvar.c (read_frame_register_value): Mark the result value as
1576 optimized out if any of the input registers have been optimized out.
1577
810849a3
AS
15782012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1579
1580 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1581
0953dec1
SP
15822012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1583
1584 * eval.c (evaluate_subexp_standard): Eliminate single-use
1585 variable LOWER.
1586
82a90ccf
YQ
15872012-09-21 Yao Qi <yao@codesourcery.com>
1588
1589 * mi/mi-interp.c: Declare mi_record_changed.
1590 (mi_interpreter_init): Call observer_attach_record_changed.
1591 (mi_record_changed): New.
1592 * record.c (record_open): Call observer_notify_record_changed.
1593 (cmd_record_stop): Call observer_notify_record_changed.
1594 * NEWS: Mention it.
1595
d7de8e3c
TT
15962012-09-20 Tom Tromey <tromey@redhat.com>
1597
1598 * NEWS: Update.
1599 * python/python.c (finalize_python): New function.
1600 (_initialize_python): Make a final cleanup.
1601
43c7c83d
DE
16022012-09-19 Doug Evans <dje@google.com>
1603
1604 * buildsym.h (param_symbols): Delete, unused.
1605 (context_stack): Delete member "params", unused.
1606 * buildsym.c (push_context): Update.
1607 * dwarf2read.c (read_func_scope): Update.
1608
aa9259cc
TS
16092012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1610
a6521d9a
TS
1611 * sh-tdep.c (sh_register_convert_to_virtual)
1612 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1613 all callers. Just do a memcpy if not the little-endian case.
1614
f92589cb
TS
1615 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1616 set_gdbarch_double_format and set_gdbarch_long_double_format.
1617 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1618 set_gdbarch_double_format.
1619 * sh-tdep.c (sh_gdbarch_init): Likewise.
1620
aa9259cc
TS
1621 * NEWS: Document the removal of SH's 'regs' command.
1622 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1623 command.
1624
c1d780c2
SDJ
16252012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1626
1627 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1628 `jump'.
1629
4ae24af0
JB
16302012-09-18 Joel Brobecker <brobecker@adacore.com>
1631
1632 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1633 language when iterating over symbols.
1634
bb25a15c
YQ
16352012-09-18 Yao Qi <yao@codesourcery.com>
1636
1637 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1638 (mi_interpreter_init): Call observer_attach_tsv_created and
1639 observer_attach_tsv_deleted.
1640 (mi_tsv_created, mi_tsv_deleted): New.
1641 * tracepoint.c (delete_trace_state_variable): Call
1642 observer_notify_tsv_deleted.
1643 (trace_variable_command): Call observer_notify_tsv_created.
1644 (delete_trace_variable_command): Call
1645 observer_notify_tsv_deleted.
1646 (create_tsv_from_upload): Call observer_notify_tsv_created.
1647 * NEWS: Mention it.
1648
201b4506
YQ
16492012-09-18 Yao Qi <yao@codesourcery.com>
1650
1651 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1652 if traceframe changed.
1653 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1654 "trace-find".
1655 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1656 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1657 'traceframe_changed'.
1658 (mi_traceframe_changed): New.
1659 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1660 New field.
1661 * NEWS: Mention the new MI notification.
1662
eaeb12db
MW
16632012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1664
1665 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1666
6e3c039e
JK
16672012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1668
1669 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1670 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1671 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1672 Extend code also for PaX support. Convert all gdb_assert to warning
1673 calls.
1674
9a950c7c
JK
16752012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1676
1677 Implement auto-load user conveniences suggested by Doug Evans.
1678 * auto-load.c: Include top.h.
1679 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1680 (_initialize_auto_load): New variable scripts_directory_help. Mention
1681 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1682 scripts-directory. Document in online help one can use also files for
1683 set auto-load safe-path.
1684 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1685 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1686
deec9a9d
SP
16872012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1688
1689 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1690 of LEN.
1691
354ecfd5
SP
16922012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1693
1694 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1695 ELTLEN and use TYPE_LENGTH directly.
1696 (m2_val_print): Likewise.
1697 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1698 variable LEN and use TYPE_LENGTH directly.
1699 (m68k_svr4_store_return_value): Likewise.
1700 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1701 ARGLEN and use TYPE_LENGTH directly.
1702 (mips_o64_push_dummy_call): Likewise.
1703 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1704 variable LENGTH and use TYPE_LENGTH directly.
1705 (s390_function_arg_float): Likewise.
1706 (s390_function_arg_integer): Likewise.
1707 (s390_push_dummy_call): Likewise.
1708 (s390_return_value_convention): Likewise.
1709 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1710 TYPE_LENGTH directly.
1711
6fc1c773
YQ
17122012-09-17 Yao Qi <yao@codesourcery.com>
1713
1714 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1715 Update comment to add_setshow_integer_cmd.
1716 * cli/cli-setshow.c (do_set_command): Handle case
1717 'var_zuinteger_unlimited'.
1718 (do_show_command): Likewise.
1719 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1720 for command 'remotetimeout'.
1721 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1722 to var_integer.
1723 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1724 for command 'set listsize'.
1725
6acef6cd
SP
17262012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1727
1728 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1729 variable LEN.
1730
1ab3b62c
JK
17312012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1732
1733 PR 14119
1734 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1735 (frame_pop): Drop also TAILCALL_FRAME frames.
1736 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1737
acf9414f
JK
17382012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1739 Pedro Alves <palves@redhat.com>
1740
1741 PR 14548
1742 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1743 function start if we are already at function start. Both for
1744 reverse-next and for reverse-step into function without line number
1745 info.
1746
193facb3
JK
17472012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1748
1749 Code cleanup - rename 'inline' depth to 'artificial' depth.
1750 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1751 frame_id_artificial_p, extend the comment.
1752 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1753 * frame.c (fprint_frame_id): Rename at a user, change debug output
1754 text to "artificial=".
1755 (skip_inlined_frames): Rename to ...
1756 (skip_artificial_frames): ... here. Extend the comment.
1757 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1758 (frame_id_inlined_p): Rename to ...
1759 (frame_id_artificial_p): ... here. Rename at a user.
1760 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1761 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1762 at a user.
1763 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1764 Extend the comment.
1765 (frame_id_inlined_p): Rename to ...
1766 (frame_id_artificial_p): ... here.
1767 * inline-frame.c (inline_frame_this_id): Rename at a user.
1768
42056501
AB
17692012-09-14 Andrew Burgess <aburgess@broadcom.com>
1770
1771 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1772 vector variables using vector_size syntax rather than array
1773 syntax.
1774
84c47588
SP
17752012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1776
1777 * valarith.c (value_concat): Replace unsafe ALLOCA with
1778 XMALLOC/XFREE.
1779
f4045bcb
PA
17802012-09-14 Pedro Alves <palves@redhat.com>
1781
1782 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1783
63b46266
YPK
17842012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1785
1786 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1787 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1788 data-directory as appropriate.
1789
ddd7a8e7
SP
17902012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1791
1792 * printcmd.c (ui_printf): Eliminate single-use variable
1793 PARAM_LEN.
1794
d649a38e
YQ
17952012-09-14 Yao Qi <yao@codesourcery.com>
1796 Pedro Alves <palves@redhat.com>
1797
1798 * valops.c (value_assign): Move observer_notify_target_changed
1799 below to replace reinit_frame_cache.
1800
b9516fa1
YPK
18012012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1802
1803 Refactor Python "gdb" module into a proper Python package, by
1804 introducing a new "_gdb" module for code implemented in C, and
1805 using reload/__import__ instead of exec.
1806 * python/lib/gdb/__init__.py: Import * from _gdb.
1807 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1808 prompt_hook, sys.argv): Moved from finish_python_initialization.
1809 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1810 (packages, auto_load_packages): New list and function replacing
1811 module_dict and auto-loading code, using __file__ instead of
1812 gdb.PYTHONDIR and reload/__import__ instead of exec.
1813 (GdbSetPythonDirectory): Replacing function of the same name
1814 from finish_python_initialization, using reload/__import__ instead
1815 of exec, as well as call auto_load_packages.
1816 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1817 gdb_python_module and not gdb_module.
1818 * python/python-internal.h (gdb_python_module): Declare.
1819 * python/python.c (gdb_python_module): New global.
1820 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1821 (_initialize_python): Rename gdb module to _gdb.
1822 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1823 (finish_python_initialization): Move Python code to
1824 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1825 __main__.
1826
aa0fbdd8
PA
18272012-09-13 Pedro Alves <palves@redhat.com>
1828
1829 * Makefile.in (COMMON_OBS): Add registry.o.
1830 * registry.c: New file.
1831 * registry.h (struct registry_container): Declare.
1832 (registry_data_callback): New typedef.
1833 (struct registry_data, struct registry_data_registration, struct
1834 registry_data_registry): New type.
1835 (register_data_with_cleanup, registry_alloc_data)
1836 (registry_callback_adaptor, registry_clear_data)
1837 (registry_container_free_data, registry_set_data, registry_data):
1838 Declare.
1839 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1840 the new common structures and functions.
1841 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1842 callback typedefs.
1843
42b5c53d
MW
18442012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1845
1846 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1847 there is an error inserting hardware breakpoints and use the
1848 error message from the target.
1849
1850 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1851 Catch this exception and print the error message contained within. Do not
1852 print the default hardware error breakpoint message in this case.
1853
a1b64ce1
DE
18542012-09-12 Doug Evans <dje@google.com>
1855
1856 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1857 cu == NULL.
1858
83a788b8
DE
18592012-09-11 Doug Evans <dje@google.com>
1860
1861 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1862 .gdb_index symbol attributes if there are none.
1863
d9eaeb59
JB
18642012-09-11 Joel Brobecker <brobecker@adacore.com>
1865
1866 * symtab.h (struct minimal_symbol) [has_size]: New field.
1867 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1868 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1869 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1870 minimal symbols if the symbol's size is actually known.
1871 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1872 of msymbol's size field. Add comment.
1873 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1874 SET_MSYMBOL_SIZE to set the minimal symbol size.
1875
a83e9154
JB
18762012-09-11 Joel Brobecker <brobecker@adacore.com>
1877
1878 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1879 minimal_symbol struct object, rather than setting some of its
1880 fields one by one.
1881
350b1b26
AB
18822012-09-11 Andrew Burgess <aburgess@broadcom.com>
1883
1884 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1885 passed_a_ptr flag when displaying typedef types.
1886
2fa15f23
JB
18872012-09-10 Joel Brobecker <brobecker@adacore.com>
1888
1889 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1890 the optimized_out flag is preserved.
1891
5152ff90
AG
18922012-09-10 Anthony Green <green@moxielogic.com>
1893
1894 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1895 prologue changes in GCC.
1896
5b4f6e25
KS
18972012-09-10 Keith Seitz <keiths@redhat.com>
1898
1899 PR gdb/13483
1900 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1901 (BOOL_CONVERSION_BADNESS): ... this.
1902 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1903 (rank_one_type): Allow all boolean conversions
1904 permitted by the standard.
1905
f1070426
TT
19062012-09-06 Tom Tromey <tromey@redhat.com>
1907
1908 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1909 Don't decref py_objfile.
1910
a8db4212
YPK
19112012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1912
1913 Do not enable -lmcheck by default when Python is enabled with
1914 threading support.
1915 * configure.ac: (python_has_threads) New variable, by testing
1916 if WITH_THREAD is defined in Python.h.
1917 Move --enable-lmcheck after --with-python.
1918 Do not enable -lmcheck by default if python_has_threads=yes.
1919 Warn if --enable-lmcheck and python_has_threads=yes.
1920 * configure: Regenerate.
1921
648beb2b
YQ
19222012-08-31 Yao Qi <yao@codesourcery.com>
1923
1924 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1925 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1926 Update some commands.
1927 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1928 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1929 to 1.
1930
ef07a9f7
YQ
19312012-08-31 Yao Qi <yao@codesourcery.com>
1932
1933 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1934
fda395cf
YPK
19352012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1936
1937 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1938
8efd8e78
DE
19392012-08-29 Doug Evans <dje@google.com>
1940
1941 * main.c (print_gdb_help): Remove reference to
1942 --use-deprecated-index-sections.
1943
883b9c6c
YQ
19442012-08-28 Yao Qi <yao@codesourcery.com>
1945
1946 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1947 (init_cmds): Call add_setshow_uinteger_cmd for command
1948 'max-user-call-depth'.
1949 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1950 declaration of 'max_user_call_depth'.
1951 * frame.c (backtrace_limit): Add 'unsigned'.
1952 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1953 'limit'.
1954 * remote.c (remoteaddresssize): Add 'unsigned'.
1955 (remote_address_masked): Change local var 'address_size' to
1956 'unsigned'.
1957 (_initialize_remote): Call add_setshow_uinteger_cmd for
1958 'remoteaddresssize'.
1959 * top.c (history_size): Add 'unsigned'.
1960 (show_commands): Change local variables to 'unsigned'.
1961 (set_history_size_command): Don't check history_size is negative.
1962 Adjust the condition to call unstifle_history and set history_size
1963 to UNIT_MAX.
1964
1292279a
PA
19652012-08-28 Pedro Alves <palves@redhat.com>
1966
1967 PR gdb/14428
1968
1969 * infcmd.c (default_print_one_register_info): New, factored out
1970 from default_print_registers_info.
1971 (default_print_registers_info): Use it. Mark value unavailable if
1972 necessary.
1973 (registers_info): Print user registers with
1974 default_print_one_register_info.
1975
f629cd75
L
19762010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1977
1978 PR tui/14486
1979 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1980 is not NULL before referencing it.
1981
1c8cdcb1
JK
19822012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1983
1984 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1985 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1986 original PC for it.
1987
e9687799
JK
19882012-08-27 Eli Zaretskii <eliz@gnu.org>
1989 Jan Kratochvil <jan.kratochvil@redhat.com>
1990
1991 * auto-load.c (auto_load_objfile_script): Rename to ...
1992 (auto_load_objfile_script_1): ... here, change variable realname to
1993 parameter realname, document it, add return value, add variable retval.
1994 (auto_load_objfile_script): New function.
1995
7afa1642
JK
19962012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1997
1998 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1999 followed by a whitespace.
2000
dc7650b8
JK
20012012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2002
28e66c70 2003 PR gdb/14494.
dc7650b8
JK
2004 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2005 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2006 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2007 here.
2008
1591a1e8
PA
20092012-08-27 Wei-cheng Wang <cole945@gmail.com>
2010
2011 * memattr.c (create_mem_region): Fix memory region overlapping
2012 checking.
2013
ecfb0d68
SP
20142012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2015
2016 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2017 with xmalloc/cleanup.
2018 * mt-tdep.c (mt_push_dummy_call): Likewise.
2019 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2020 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2021
8c56c1b9
YQ
20222012-08-24 Yao Qi <yao@codesourcery.com>
2023
2024 * jv-exp.y (push_expression_name): Add "." at the end of error
2025 message.
2026
e3480f4a
YPK
20272012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2028
2029 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2030 * python/python.c (_initialize_python): Update documentation.
2031
dfbd5e7b
PA
20322012-08-23 Pedro Alves <palves@redhat.com>
2033
2034 * infrun.c (_initialize_infrun) <handle command help text>:
2035 Mention that multiple signals are supported.
2036
2edda2ff
PA
20372012-08-23 Pedro Alves <palves@redhat.com>
2038
2039 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2040 string.
2041
8d735b87
YQ
20422012-08-23 Yao Qi <yao@codesourcery.com>
2043
2044 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2045 (tfind_1): Don't call registers_changed, set_traceframe_num,
2046 and clear_traceframe_info.
2047 Call set_current_traceframe.
2048 (set_current_traceframe): call set_traceframe_num.
2049
c5d9b215
SDJ
20502012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2051
2052 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2053 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2054
037bbc8e
YPK
20552012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2056
2057 Enable readline in Python in a GDB-specific way and block the
2058 standard Python readline module to prevent conflicts with GDB.
2059 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2060 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2061 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2062 * python/py-gdb-readline.c: New file.
2063 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2064 prototype.
2065 * python/python.c (_initialize_python): Call
2066 gdbpy_initialize_gdb_readline.
2067
406b1477
KS
20682012-08-22 Keith Seitz <keiths@redhat.com>
2069
2070 * defs.h: Include build-gnulib/config.h
2071
6ca1b147
JM
20722012-08-22 Joseph Myers <joseph@codesourcery.com>
2073
2074 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2075 and blx pc.
2076
8315665e
YPK
20772012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2078
2079 Add a new "python-interactive" command that starts a standard
2080 Python interactive prompt with "pi" as alias, and add "py" as
2081 an alias to "python".
2082 * NEWS: Mention the new commands.
8315665e
YPK
2083 * python/python.c (eval_python_command): New function.
2084 (python_interactive_command): For "python-interactive" with
2085 arguments, call eval_python_command. For "python-interactive"
2086 without arguments, call PyRun_InteractiveLoop.
2087 (_initialize_python): Add "python-interactive" command with
2088 "pi" as alias, and add "py" as an alias to "python".
2089
522002f9
TT
20902012-08-22 Tom Tromey <tromey@redhat.com>
2091
2092 * defs.h (quit_flag): Don't declare.
2093 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2094 (QUIT): Use new functions.
2095 * event-top.c (command_handler): Use clear_quit_flag.
2096 (handle_sigint): Use set_quit_flag.
2097 (async_request_quit): Use check_quit_flag. Don't check
2098 immediate_quit.
2099 * exceptions.c (throw_exception): Use clear_quit_flag.
2100 * main.c (captured_main): Use clear_quit_flag.
2101 * python/python.c (clear_quit_flag, set_quit_flag)
2102 (check_quit_flag): New functions.
2103 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2104 clear_quit_flag.
2105 * remote.c (remote_wait_as): Use check_quit_flag,
2106 clear_quit_flag.
2107 (remote_start_remote): Call QUIT.
2108 * symfile.c (load_progress): Use check_quit_flag.
2109 * top.c (command_loop): Use clear_quit_flag.
2110 (command_line_input): Call QUIT.
2111 * utils.c (quit_flag): Conditionally define.
2112 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2113 functions.
2114 (prompt_for_continue): Call QUIT. Use quit, not
2115 async_request_quit.
2116 * remote-mips.c (mips_expect_timeout): Call QUIT.
2117 * monitor.c (monitor_expect): Call QUIT.
2118
b583003e
TT
21192012-08-22 Tom Tromey <tromey@redhat.com>
2120
2121 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2122 (async_init_signals): Update.
2123 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2124 (SIGWINCH_HANDLER_BODY): Remove.
2125
e1507e95
TT
21262012-08-22 Tom Tromey <tromey@redhat.com>
2127
2128 * jit.c (jit_object_close_impl): Don't malloc the objfile
2129 name.
2130 * objfiles.c (allocate_objfile): Don't malloc the objfile
2131 name.
2132 (free_objfile): Don't free the objfile name.
2133 * objfiles.h (struct objfile) <name>: Update comment.
2134 * symfile.c (reread_symbols): Fix reference counting. Don't
2135 malloc objfile name.
2136
1c00ec6b
TT
21372012-08-22 Tom Tromey <tromey@redhat.com>
2138
2139 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2140 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2141 (symfile_bfd_open): Likewise.
2142 (generic_load): Likewise.
2143 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2144 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2145 gdb_bfd_open.
2146 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2147 Use gdb_bfd_open.
2148 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2149 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2150 (pmon_load_fast): Likewise.
2151 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2152 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2153 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2154 (macho_check_dsym): Likewise.
2155 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2156 (m32r_upload_command): Likewise.
2157 * gdb_bfd.h (gdb_bfd_cache): Declare.
2158 * gdb_bfd.c (struct gdb_bfd_data): New.
2159 (gdb_bfd_cache): New global.
2160 (struct gdb_bfd_cache_search): New.
2161 (hash_bfd): New function.
2162 (eq_bfd): Likewise.
2163 (gdb_bfd_open): Likewise.
2164 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2165 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2166 gdb_bfd_data.
2167 * exec.c (exec_file_attach): Use gdb_bfd_open.
2168 * dsrec.c (load_srec): Use gdb_bfd_open.
2169
6532ff36
TT
21702012-08-22 Tom Tromey <tromey@redhat.com>
2171
2172 * dwarf2read.c (macro_start_file): Update.
2173 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2174 (free_objfile_per_bfd_storage): Destroy macro_cache.
2175 (allocate_objfile, free_objfile): Update.
2176 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2177 New field.
2178 (struct objfile) <macro_cache>: Remove.
2179 * symfile.c (reread_symbols): Update.
2180 * symmisc.c (print_symbol_bcache_statistics): Update.
2181 (print_objfile_statistics): Update.
2182
706e3705
TT
21832012-08-22 Tom Tromey <tromey@redhat.com>
2184
2185 * elfread.c (elf_symtab_read): Update.
2186 * objfiles.c (objfiles_bfd_data): New global.
2187 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2188 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2189 (allocate_objfile, free_objfile): Update.
2190 (_initialize_objfiles): Initialize objfiles_bfd_data.
2191 * objfiles.h (struct objfile_per_bfd_storage): New.
2192 (struct objfile) <per_bfd>: New field.
2193 <filename_cache>: Remove.
2194 (set_objfile_per_bfd): Declare.
2195 * symfile.c (reread_symbols): Update. Call
2196 set_objfile_per_bfd.
2197 (allocate_symtab): Update.
2198 * symmisc.c (print_symbol_bcache_statistics): Update.
2199 (print_objfile_statistics): Print the size of the BFD obstack.
2200
e992eda4
TT
22012012-08-22 Tom Tromey <tromey@redhat.com>
2202
2203 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2204 * gdb_bfd.c: Use DEFINE_REGISTRY.
2205 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2206 (gdb_bfd_ref): Call bfd_alloc_data.
2207 (gdb_bfd_unref): Call bfd_free_data.
2208
6b81941e
TT
22092012-08-22 Tom Tromey <tromey@redhat.com>
2210
2211 * registry.h (struct registry_fields): New.
2212 (REGISTRY_FIELDS): Redefine.
2213 (REGISTRY_ACCESS_FIELD): New macro.
2214 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2215 functions.
2216
8e260fc0
TT
22172012-08-22 Tom Tromey <tromey@redhat.com>
2218
2219 * auto-load.c (_initialize_auto_load): Update.
2220 * solib-svr4.c (_initialize_svr4_solib): Update
2221 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2222 * solib-darwin.c (_initialize_darwin_solib): Update.
2223 * registry.h: New file.
2224 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2225 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2226 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2227 (register_program_space_data_with_cleanup)
2228 (register_program_space_data, program_space_alloc_data)
2229 (clear_program_space_data, set_program_space_data)
2230 (program_space_data): Don't declare.
2231 * progspace.c: Use DEFINE_REGISTRY.
2232 (struct program_space_data, struct
2233 program_space_data_registration, struct
2234 program_space_data_registry, program_space_data_registry)
2235 (register_program_space_data_with_cleanup)
2236 (register_program_space_data, program_space_alloc_data)
2237 (program_space_free_data, clear_program_space_data)
2238 (set_program_space_data, program_space_data): Remove.
2239 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2240 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2241 (register_objfile_data_with_cleanup, register_objfile_data)
2242 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2243 declare.
2244 * objfiles.c: Use DEFINE_REGISTRY.
2245 (struct objfile_data, struct objfile_data_registration, struct
2246 objfile_data_registry, objfile_data_registry)
2247 (register_objfile_data_with_cleanup, register_objfile_data)
2248 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2249 (set_objfile_data, objfile_data): Remove.
2250 (_initialize_objfiles): Update.
2251 * jit.c (_initialize_jit): Update.
2252 * inflow.c (_initialize_inflow): Update.
2253 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2254 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2255 (register_inferior_data_with_cleanup, register_inferior_data)
2256 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2257 declare.
2258 * inferior.c: Use DEFINE_REGISTRY.
2259 (struct inferior_data, struct inferior_data_registration, struct
2260 inferior_data_registry, inferior_data_registry)
2261 (register_inferior_data_with_cleanup, register_inferior_data)
2262 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2263 (set_inferior_data, inferior_data): Remove.
2264 * auxv.c (_initialize_auxv): Update.
2265 * ada-lang.c (_initialize_ada_language): Update.
2266 * breakpoint.c (_initialize_breakpoint): Update.
2267 * i386-nat.c (i386_use_watchpoints): Update.
2268
ed9eebaf
TT
22692012-08-22 Tom Tromey <tromey@redhat.com>
2270
2271 * exec.c (exec_close, exec_file_attach): Update.
2272 (add_to_section_table): Initialize 'key' field.
2273 (add_target_sections, remove_target_sections): Add 'key' argument.
2274 * exec.h (add_target_sections, remove_target_sections): Add
2275 'key' argument.
2276 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2277 (reload_shared_libraries_1): Update.
2278 * target.h (struct target_section) <key>: New field.
2279
2f2e97fa
TT
22802012-08-22 Tom Tromey <tromey@redhat.com>
2281
2282 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2283
b3dbbd6f
PM
22842012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2285
2286 * symfile.c (allocate_symtab): Use host_address_to_string
2287 function instead of cast of pointer to long which is not
2288 compatible with x86_64-w64-mingw32 build.
2289
f94363d7
AP
22902012-08-19 Andrew Pinski <apinski@cavium.com>
2291
2292 * mips-tdep.c (is_octeon): New function.
2293 (is_octeon_bbit_op): New function.
2294 (mips32_next_pc): Handle Octeon's bbit instructions.
2295 (mips32_instruction_has_delay_slot): Likewise.
2296
78a59c2f
AP
22972012-08-19 Andrew Pinski <apinski@cavium.com>
2298
2299 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2300 before the function.
2301
4f5bcb50
AP
23022012-08-19 Andrew Pinski <apinski@cavium.com>
2303
2304 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2305
e5afdbd7
KS
23062012-08-19 Keith Seitz <keiths@redhat.com>
2307
2308 PR c++/14365
2309 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2310 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2311
13c9750e
EZ
23122012-08-18 Eli Zaretskii <eliz@gnu.org>
2313
2314 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2315 The typo broke "make TAGS".
2316
db761810 23172012-08-17 Joel Brobecker <brobecker@adacore.com>
2318
2319 GDB 7.5 released.
2320
a451cb65
KS
23212012-08-17 Keith Seitz <keiths@redhat.com>
2322
2323 PR c++/13356
2324 * gdbtypes.c (strict_type_checking): New variable.
2325 (show_strict_type_checking): New function.
2326 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2327 if strict type checking is disabled.
2328 (_initialize_gdbtypes): Add "check type" subcommand.
2329 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2330
23312012-08-17 Keith Seitz <keiths@redhat.com>
2332
2333 * language.h (type_mode): Remove.
2334 (type_check): Remove.
2335 (struct language_defn): Remove la_type_check.
2336 (STRICT_TYPE): Remove unused macro.
2337 (type_error): Remove.
2338 * language.c (set_type_range_case): Renamed to ...
2339 (set_range_case): ... this. Update all callers.
2340 Remove type_mode/type_check.
2341 (type_mode): Remove.
2342 (type_check): Remove.
2343 (show_type_command): Remove.
2344 (set_type_command): Remove.
2345 (language_info): Remove type checking output.
2346 (type_error): Remove unused function.
2347 (range_error): Update comment.
2348 (unknown_language_defn): Remove la_type_check.
2349 (auto_language_defn): Likewise.
2350 (local_language_defn): Likewise.
2351 (_initialize_language): Remove "check type" subcommand.
2352 * ada-lang.c (ada_language_defn): Remove la_type_check.
2353 * c-lang.c (c_language_defn): Likewise.
2354 (cplus_language_defn): Likewise.
2355 (asm_language_defn): Likewise.
2356 (minimal_language_defn): Likewise.
2357 * d-lang.c (d_language_defn): Likewise.
2358 * f-lang.c (f_language_defn): Likewise.
2359 * go-lang.c (go_language_defn): Likewise.
2360 * jv-lang.c (java_language_defn): Likewise.
2361 * m2-lang.c (m2_language_defn): Likewise.
2362 * objc-lang.c (objc_language_defn): Likewise.
2363 * opencl-lang.c (opencl_language_defn): Likewise.
2364 * p-lang.c (pascal_language_defn): Likewise.
2365
dbf6a605
MF
23662012-08-16 Mike Frysinger <vapier@gentoo.org>
2367
2368 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2369
973e3cf7
JB
23702012-08-16 Joel Brobecker <brobecker@adacore.com>
2371
2372 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2373 New function.
2374 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2375 using the regache. Use ia64_hpux_get_register_from_save_state_t
2376 to access the bsp and bspstore registers if not.
2377
d80ee84f
JB
23782012-08-16 Joel Brobecker <brobecker@adacore.com>
2379
2380 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2381 * breakpoint.c (detach_breakpoints): Change pid parameter into
2382 a ptid. Adjust code accordingly.
2383 * infrun.c (handle_inferior_event): Delete variable child_pid.
2384 Update call to detach_breakpoints to pass the child ptid for
2385 fork events.
2386 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2387 assert that inferior_ptid's lwp is zero.
2388 (linux_handle_extended_wait): Update call to detach_breakpoints.
2389 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2390 detach_breakpoints.
2391
2dcc6086
JB
23922012-08-16 Joel Brobecker <brobecker@adacore.com>
2393
2394 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2395 parent, only call detach_breakpoints if tts.tts_event ==
2396 TTEVT_VFORK.
2397
0c92d8c1
JB
23982012-08-16 Joel Brobecker <brobecker@adacore.com>
2399
2400 * dwarf2-frame.c (dwarf2_frame_cache): Use
2401 get_frame_address_in_block instead of get_frame_pc as
2402 the bound for executing the frame's FDE.
2403
6b1755ce
YQ
24042012-08-16 Yao Qi <yao@codesourcery.com>
2405
2406 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2407 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2408 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2409 (c_type_print_varspec_suffix): Likewise.
2410 * eval.c (evaluate_subexp_standard): Likewise.
2411 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2412 (f_type_print_varspec_suffix): Likewise.
2413 * gdbtypes.c (is_scalar_type): Likewise.
2414 (recursive_dump_type): Likewise.
2415 * infcall.c (value_arg_coerce): Likewise.
2416 * m2-valprint.c (m2_val_print): Likewise.
2417 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2418 (pascal_type_print_varspec_suffix): Likewise.
2419 (pascal_type_print_base): Likewise.
2420 * p-valprint.c (pascal_val_print): Likewise.
2421 (pascal_val_print): Likewise.
2422 * valops.c (value_slice): Likewise.
2423 * valprint.c (scalar_type_p): Likewise.
2424 * valarith.c (value_bitstring_subscript): Remove.
2425 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2426 Remove comment on TYPE_CODE_BITSTRING.
2427
2428 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2429 TYPE_CODE_BITSTRING.
2430
2431 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2432 slot 0.
2433
8acc4065
YQ
24342012-08-16 Yao Qi <yao@codesourcery.com>
2435
2436 * tracepoint.c (trace_find_none_command): Remove.
2437 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2438
8128fd8e
YQ
24392012-08-16 Yao Qi <yao@codesourcery.com>
2440
2441 * remote.c (handle_notification): Remove parameter 'length'.
2442 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2443
2873700e
KS
24442012-08-15 Keith Seitz <keiths@redhat.com>
2445
2446 * gdbtypes.c (opaque_type_resolution): Make static.
2447 Add missing comment.
2448 (overload_debug): Add missing comment.
2449 (show_opaque_type_resolution): Likewise.
2450 (show_overload_debug): Likewise.
2451 (print_bit_vector): Remove unnecessary forward declaration.
2452 (print_arg_types): Likewise.
2453 (dump_fn_fieldlists): Likewise.
2454 (print_cplus_stuff): Likewise.
2455
b82d08cd
TT
24562012-08-15 Tom Tromey <tromey@redhat.com>
2457
2458 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2459 (gdb_bfd_ref): Initialize new field.
2460 (gdb_bfd_unref): Unref the archive BFD.
2461 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2462 parent archive.
2463
db6573d6
TT
24642012-08-15 Tom Tromey <tromey@redhat.com>
2465
2466 PR python/14387:
2467 * python/py-bpevent.c (create_breakpoint_event_object): Update
2468 comment.
2469 * python/py-event.c (evpy_add_attribute): Update comment.
2470 * python/py-exitedevent.c (create_exited_event_object): Fix
2471 reference counting and error handling.
2472 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2473 Fix reference counting.
2474 * python/py-signalevent.c (create_signal_event_object): Fix
2475 reference counting and error handling.
2476 * python/py-stopevent.c (emit_stop_event): Fix reference
2477 counting.
2478 * python/py-threadevent.c (get_event_thread): Return a
2479 borrowed reference.
2480 * python/py-type.c (convert_field): Fix reference counting.
2481
a036ba48
TT
24822012-08-15 Tom Tromey <tromey@redhat.com>
2483
2484 * dwarf2read.c (dwarf_decode_macro_bytes)
2485 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2486 as hash key.
2487
486c7739
MF
24882012-08-14 Mike Frysinger <vapier@gentoo.org>
2489
2490 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2491 stepi, nexti, finish, next, step, jump, and continue commands.
2492 * infrun.c (_initialize_infrun): Update help text for the handle
2493 command.
2494
4cf93a03
DE
24952012-08-14 Doug Evans <dje@google.com>
2496
70b099cf
DE
2497 * gdbtypes.c (struct extra): Delete, unused.
2498
5212577a
DE
2499 * gdbtypes.c: Whitespace cleanup.
2500 (address_space_name_to_int): Remove "extern" from definition.
2501 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2502
4cf93a03
DE
2503 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2504 TYPE_POINTER_TYPE (type).
2505
3756ef7e
GB
25062012-08-14 Gary Benson <gbenson@redhat.com>
2507
2508 * solib-svr4.c (svr4_free_library_list): Use free_so.
2509
40d72643
MF
25102012-08-13 Mike Frysinger <vapier@gentoo.org>
2511
2512 * .gitignore: Add go-exp.c.
2513
f47f77df
DE
25142012-08-13 Doug Evans <dje@google.com>
2515
2516 * value.c (show_convenience): Tweak comment.
2517 (_initialize_values): Mention convenience functions in the help text
2518 for "show convenience".
2519
7507c54a
YQ
25202012-08-13 Yao Qi <yao@codesourcery.com>
2521
2522 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2523 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2524 TERNOP_SLICE_COUNT.
2525 * eval.c (evaluate_subexp_standard): Likewise.
2526 * expprint.c (print_subexp_standard): Likewise.
2527 (dump_subexp_body_standard): Likewise.
2528 * parse.c (operator_length_standard): Likewise.
2529
5cad9736
YQ
25302012-08-13 Yao Qi <yao@codesourcery.com>
2531
2532 * std-operator.def: Remove OP_BITSTRING.
2533 * breakpoint.c (watchpoint_exp_is_const): Update.
2534 * eval.c (evaluate_subexp_standard): Remove handling to
2535 OP_BITSTRING.
2536 * expprint.c (print_subexp_standard): Likewise.
2537 (dump_subexp_body_standard): Likewise.
2538 * parse.c (operator_length_standard): Likewise.
2539 * valops.c (value_bitstring): Remove.
2540 * value.h: Remove the declaration of 'value_bitstring'.
2541
bad7670a
SDJ
25422012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2543
2544 * linespec.c (find_methods): Remove unused variables `i1' and
2545 `name_len'.
2546 (decode_line_full): Likewise for `arg_start'.
2547
d9dce7fa
SDJ
25482012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2549
2550 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2551 (zlib_decompress_section): Likewise for `section_data'.
2552 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2553
a72c3253
DE
25542012-08-10 Doug Evans <dje@google.com>
2555
2556 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2557 * NEWS: Document them.
2558 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2559 function/strfns.py.
2560 * python/py-type.c (typy_array_1): New function.
2561 (typy_array): Call it.
2562 (typy_vector): New function.
2563 (type_object_methods): Add "vector".
2564 * python/lib/gdb/function/__init__.py: New file.
2565 * python/lib/gdb/function/strfns.py: New file.
2566
200bc880
SP
25672012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2568
2569 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2570 for TYPE_FIELD_BITPOS.
2571 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2572
de0bea00
MF
25732012-08-10 Mike Frysinger <vapier@gentoo.org>
2574
2575 PR cli/10436:
2576 * common/vec.h (VEC_merge): Define.
2577 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2578 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2579 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2580 * completer.c: Include gdb_signals.h.
2581 (signal_completer): Define.
2582 * completer.h (signal_completer): Add prototype.
2583 * infcmd.c (_initialize_infcmd): Assign the command
2584 completer for "signal" to handle_completer.
2585 * infrun.c: Include completer.h.
2586 (handle_completer): Define.
2587 (_initialize_infrun): Declare a new local variable c. Store the
2588 result of add_com("handle") to it. Assign the command
2589 completer for "handle" to handle_completer.
2590
5b9afe8a
YQ
25912012-08-09 Yao Qi <yao@codesourcery.com>
2592
2593 * cli/cli-decode.c (set_cmd_prefix): New.
2594 (lookup_cmd_for_prefixlist): New.
2595 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2596 of each cmd_list_element in *prefixlist.
2597 (add_setshow_cmd_full): set_cmd_prefix.
2598 (add_alias_cmd): Likewise.
2599 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2600 Declare 'auto_boolean_enums'.
2601 * cli/cli-setshow.c: Include "observer.h".
2602 (notify_command_param_changed_p): New.
2603 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2604 Remove 'static'.
2605 (do_setshow_command): Split it to ...
2606 (do_set_command, do_show_command): ... them. New.
2607 (do_set_command): Call observer_notify_command_param_changed if
2608 notify_command_param_changed_p returns true.
2609 (cmd_show_list): Caller update.
2610 * auto-load.c (set_auto_load_cmd): Likewise.
2611 * remote.c (show_remote_cmd): Likewise.
2612 * cli/cli-setshow.h: Update declarations.
2613 * top.c (execute_command): Call do_set_command and do_show_command.
2614
2615 * NEWS: Mention new MI notification.
2616 * mi/mi-interp.c: Declare mi_command_param_changed.
2617 (mi_interpreter_init): Attach mi_command_param_changed to
2618 observer command_param_changed.
2619 (mi_command_param_changed): New.
2620 Remove mi_suppress_breakpoint_notifications.
2621 Define global variable mi_suppress_notification.
2622 (mi_breakpoint_created): Update.
2623 (mi_breakpoint_deleted): Likewise.
2624 (mi_breakpoint_modified): Likewise.
2625 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2626 'gdb-set' and set mi_suppress_notification.
2627 * mi/mi-main.h: (mi_suppress_notification): New struct.
2628
1969df89
JK
26292012-08-09 Andreas Tobler <andreast@fgznet.ch>
2630 Jan Kratochvil <jan.kratochvil@redhat.com>
2631
2632 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2633
8bfd80db
YQ
26342012-08-09 Yao Qi <yao@codesourcery.com>
2635
2636 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2637 (skiplist): Move it to skip.c.
2638 (init_cmd_lists): Remove code setting enablebreaklist and
2639 skiplist to NULL.
2640 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2641 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2642 skiplist.
2643 * gdbcmd.h: Likewise.
2644 * skip.c (_initialize_step_skip): Move 'skiplist' from
2645 cli/cli-cmds.c.
2646
28578e6b
YQ
26472012-08-09 Yao Qi <yao@codesourcery.com>
2648
2649 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2650 * gnu-nat.c, symfile.c: Likewise.
2651
260c0b2a
DE
26522012-08-08 Aaron Gamble <agamble@google.com>
2653
2654 * utils.c (prompt_for_continue_wait_time): New static global.
2655 (make_command_stats_cleanup): Initialize it.
2656 (report_command_stats): Subtract time waiting for user.
2657 (prompt_for_continue): Track time waiting for user.
2658 (defaulted_query): Track time waiting for user.
2659
4f485ebc
DE
26602012-08-08 Doug Evans <dje@google.com>
2661
2662 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2663 UNOP_MEMVAL_TYPE.
2664 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2665 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2666 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2667 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2668 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2669 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2670 elt.
2671 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2672 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2673 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2674 (dump_prefix_expression): Handle OP_TYPE.
2675
2acf2b39
KS
26762012-08-08 Keith Seitz <keiths@redhat.com>
2677
2678 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2679 addr_start.
2680
e6712ff1
DE
26812012-08-08 Doug Evans <dje@google.com>
2682
2683 * linux-thread-db.c: #include "gdb_vecs.h".
2684 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2685 updated.
2686 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2687 (thread_db_load_search): Use a vector to iterate over path elements.
2688 Handle text appearing after "$pdir".
2689
2690 * gdb_string.h: Moved to ...
2691 * common/gdb_string.h: ... here.
2692 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2693 gdb_string.h and gdb_assert.h.
2694
ab854e54
YQ
26952012-08-08 Yao Qi <yao@codesourcery.com>
2696
2697 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2698 (tic6x_value_to_register): Likewise.
2699 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2700 and set_gdbarch_value_to_register.
2701
4f69f4c2
JK
27022012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2703 Jean-Marc Saffroy <saffroy@gmail.com>
2704
2705 PR 11804
2706 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2707 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2708 * gcore.c (gcore_create_callback): New function comment. Add modified
2709 parameter. Only write modified regions. Set SEC_READONLY exactly
2710 according to MODIFIED.
2711 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2712 the passed modified value to FUNC.
2713 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2714 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2715 first. New variables modified and has_anonymous. Parse the lines of
2716 smaps file. Add the passed MODIFIED value to FUNC.
2717 * procfs.c (find_memory_regions_callback): Add the passed modified
2718 value.
2719
78ac5f83
TT
27202012-08-06 Tom Tromey <tromey@redhat.com>
2721
2722 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2723 (dwarf2_frame_cache): Use it.
2724 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2725 cache initialization constraint.
2726
2c12abee
TT
27272012-08-06 Tom Tromey <tromey@redhat.com>
2728
2729 PR python/14386:
2730 * varobj.c (update_dynamic_varobj_children): Don't call
2731 PyIter_Check.
2732
4979d7f0
TT
27332012-08-06 Tom Tromey <tromey@redhat.com>
2734
2735 PR cli/14392:
2736 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2737
f3c8a52a
JK
27382012-08-06 Nathaniel Flath <flat0103@gmail.com>
2739
2740 * NEWS: New entry for 'cd' default parameters.
2741 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2742
5a1cf4d6
TT
27432012-08-03 Tom Tromey <tromey@redhat.com>
2744
2745 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2746 return.
2747
7c3270ae
UW
27482012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2749
2750 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2751 to attempting lseek/write.
2752 (inf_child_fileio_pread): Likewise for pread.
2753
ccce17b0
YQ
27542012-08-02 Yao Qi <yao@codesourcery.com>
2755
2756 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2757 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2758 add_setshow_zinteger_cmd.
2759 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2760 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2761 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2762 instead of add_setshow_zinteger_cmd.
2763 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2764 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2765 instead of add_setshow_zinteger_cmd.
2766 * frame.c (frame_debug): Add 'unsigned'.
2767 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2768 add_setshow_zinteger_cmd.
2769 * frame.h: Update the declaration of 'frame_debug'.
2770 * gdbtypes.c (overload_debug): Add 'unsigned'.
2771 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2772 add_setshow_zinteger_cmd.
2773 * inferior.h: Update declaration of 'debug_infrun'.
2774 * infrun.c (debug_infrun): Add 'unsigned'.
2775 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2776 add_setshow_zinteger_cmd.
2777 * jit.c (jit_debug): Add 'unsigned'.
2778 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2779 add_setshow_zinteger_cmd.
2780 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2781 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2782 instead of add_setshow_zinteger_cmd.
2783 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2784 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2785 add_setshow_zinteger_cmd.
2786 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2787 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2788 instead of add_setshow_zinteger_cmd.
2789 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2790 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2791 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2792 intead of add_setshow_zinteger_cmd.
2793 * mips-tdep.c (mips_debug): Add 'unsigned'.
2794 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2795 instead of add_setshow_zinteger_cmd.
2796 * monitor.c (monitor_debug): Add 'unsigned'.
2797 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2798 add_setshow_zinteger_cmd.
2799 * observer.c (observer_debug): Add 'unsigned'.
2800 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2801 add_setshow_zinteger_cmd.
2802 * parse.c (expressiondebug): Add 'unsigned'.
2803 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2804 add_setshow_zinteger_cmd.
2805 * record.c (record_debug): Add 'unsigned'.
2806 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2807 add_setshow_zinteger_cmd.
2808 * record.h: Update the declaration of 'record_debug'.
2809 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2810 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2811 add_setshow_zinteger_cmd.
2812 * serial.c (global_serial_debug_p): Add 'unsigned'.
2813 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2814 add_setshow_zinteger_cmd.
2815 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2816 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2817 add_setshow_zinteger_cmd.
2818 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2819 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2820 add_setshow_zinteger_cmd.
2821 * target.c (targetdebug): Add 'unsigned'.
2822 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2823 add_setshow_zinteger_cmd.
2824 * valops.c (overload_debug): Add 'unsigned'.
2825 * varobj.c (varobjdebug): Add 'unsigned'.
2826 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2827 add_setshow_zinteger_cmd.
2828 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2829 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2830 instead of add_setshow_zinteger_cmd.
2831
2832 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2833 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2834 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2835 instead of add_setshow_zinteger_cmd.
2836 * gdbarch.c, gdbarch.h: Re-generated.
2837
95b07c96
YQ
28382012-08-02 Yao Qi <yao@codesourcery.com>
2839
2840 * nto-tdep.c: Don't include cli/cli-decode.h and
2841 cli/cli-cmds.h.
2842 (_initialize_nto_tdep): Remove.
2843 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2844 Remove field.
2845 Remove macro nto_internal_debugging.
2846
57295b0b
RH
28472012-08-01 Richard Henderson <rth@redhat.com>
2848
2849 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2850 (mep-*-*) [gdb_target_obs]: Likewise.
2851
f782ad9b
AS
28522012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2853
2854 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2855 linux_get_siginfo_type.
2856
a14dd77e
JK
28572012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2858
2859 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2860 AT_ENTRY_POINT.
2861 (call_function_by_hand) <ON_STACK>: Call write_memory with
2862 gdbarch_breakpoint_from_pc, if possible.
2863 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2864 here.
2865
1467929f
YQ
28662012-07-31 Yao Qi <yao@codesourcery.com>
2867
2868 * tracepoint.c: Add 'static' for some variables.
2869
70976b65
YQ
28702012-07-31 Yao Qi <yao@codesourcery.com>
2871
2872 * go32-nat.c: Declare _initialize_go32_nat.
2873 * ser-go32.c: Declare _initialize_ser_dos.
2874 * top.c (do_chdir_cleanup): Add 'static'.
2875
eff9c3e6
KS
28762012-07-30 Keith Seitz <keiths@redhat.com>
2877
2878 * linespec.c (linespec_lex_number): A number followed
2879 by quotes is a valid number, too.
2880
728400d7
TT
28812012-07-30 Tom Tromey <tromey@redhat.com>
2882
2883 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2884
fcf303ab
UW
28852012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2886
2887 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2888 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2889
4e969b4f
AB
28902012-07-30 Andrew Burgess <aburgess@broadcom.com>
2891
2892 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2893 invalid or reevaluated to prevent prevent references to possibly
2894 delete'd type objects being left in the varobj.
2895
c4bfde41
JK
28962012-07-27 Tom Tromey <tromey@redhat.com>
2897 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 * copying.awk: Print buffer-read-only and vi ro markers.
2900 * copying.c: Rebuild.
2901 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2902 * gdbarch.c, gdbarch.h: Rebuild.
2903 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2904 buffer-read-only and vi ro markers.
2905 * features/arm-with-iwmmxt.c: Rebuild.
2906 * features/arm-with-m-fpa-layout.c: Rebuild.
2907 * features/arm-with-m-vfp-d16.c: Rebuild.
2908 * features/arm-with-m.c: Rebuild.
2909 * features/arm-with-neon.c: Rebuild.
2910 * features/arm-with-vfpv2.c: Rebuild.
2911 * features/arm-with-vfpv3.c: Rebuild.
2912 * features/i386/amd64-avx-linux.c: Rebuild.
2913 * features/i386/amd64-avx.c: Rebuild.
2914 * features/i386/amd64-linux.c: Rebuild.
2915 * features/i386/amd64.c: Rebuild.
2916 * features/i386/i386-avx-linux.c: Rebuild.
2917 * features/i386/i386-avx.c: Rebuild.
2918 * features/i386/i386-linux.c: Rebuild.
2919 * features/i386/i386-mmx-linux.c: Rebuild.
2920 * features/i386/i386-mmx.c: Rebuild.
2921 * features/i386/i386.c: Rebuild.
2922 * features/i386/x32-avx-linux.c: Rebuild.
2923 * features/i386/x32-avx.c: Rebuild.
2924 * features/i386/x32-linux.c: Rebuild.
2925 * features/i386/x32.c: Rebuild.
2926 * features/mips-dsp-linux.c: Rebuild.
2927 * features/mips-linux.c: Rebuild.
2928 * features/mips64-dsp-linux.c: Rebuild.
2929 * features/mips64-linux.c: Rebuild.
2930 * features/rs6000/powerpc-32.c: Rebuild.
2931 * features/rs6000/powerpc-32l.c: Rebuild.
2932 * features/rs6000/powerpc-403.c: Rebuild.
2933 * features/rs6000/powerpc-403gc.c: Rebuild.
2934 * features/rs6000/powerpc-405.c: Rebuild.
2935 * features/rs6000/powerpc-505.c: Rebuild.
2936 * features/rs6000/powerpc-601.c: Rebuild.
2937 * features/rs6000/powerpc-602.c: Rebuild.
2938 * features/rs6000/powerpc-603.c: Rebuild.
2939 * features/rs6000/powerpc-604.c: Rebuild.
2940 * features/rs6000/powerpc-64.c: Rebuild.
2941 * features/rs6000/powerpc-64l.c: Rebuild.
2942 * features/rs6000/powerpc-7400.c: Rebuild.
2943 * features/rs6000/powerpc-750.c: Rebuild.
2944 * features/rs6000/powerpc-860.c: Rebuild.
2945 * features/rs6000/powerpc-altivec32.c: Rebuild.
2946 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2947 * features/rs6000/powerpc-altivec64.c: Rebuild.
2948 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2949 * features/rs6000/powerpc-cell32l.c: Rebuild.
2950 * features/rs6000/powerpc-cell64l.c: Rebuild.
2951 * features/rs6000/powerpc-e500.c: Rebuild.
2952 * features/rs6000/powerpc-e500l.c: Rebuild.
2953 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2954 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2955 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2956 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2957 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2958 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2959 * features/rs6000/powerpc-vsx32.c: Rebuild.
2960 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2961 * features/rs6000/powerpc-vsx64.c: Rebuild.
2962 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2963 * features/rs6000/rs6000.c: Rebuild.
2964 * features/s390-linux32.c: Rebuild.
2965 * features/s390-linux32v1.c: Rebuild.
2966 * features/s390-linux32v2.c: Rebuild.
2967 * features/s390-linux64.c: Rebuild.
2968 * features/s390-linux64v1.c: Rebuild.
2969 * features/s390-linux64v2.c: Rebuild.
2970 * features/s390x-linux64.c: Rebuild.
2971 * features/s390x-linux64v1.c: Rebuild.
2972 * features/s390x-linux64v2.c: Rebuild.
2973 * features/tic6x-c62x-linux.c: Rebuild.
2974 * features/tic6x-c62x.c: Rebuild.
2975 * features/tic6x-c64x-linux.c: Rebuild.
2976 * features/tic6x-c64x.c: Rebuild.
2977 * features/tic6x-c64xp-linux.c: Rebuild.
2978 * features/tic6x-c64xp.c: Rebuild.
2979
826f0041
TT
29802012-07-27 Tom Tromey <tromey@redhat.com>
2981
2982 * c-exp.y (classify_name): Avoid assignment in condition.
2983
84552b16
PA
29842012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2985
2986 * amd64-windows-tdep.c: Include "frame.h".
2987 (amd64_windows_skip_trampoline_code): New function.
2988 (amd64_windows_init_abi): Add trampoline registration.
2989
a8a64aa8
YQ
29902012-07-27 Yao Qi <yao@codesourcery.com>
2991
2992 * tracepoint.c (cur_traceframe_number): Remove.
2993 (set_tfile_traceframe): Remove.
2994 (tfile_trace_find, tfile_fetch_registers): Update callers.
2995 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2996 (tfile_open, tfile_trace_find): Likewise.
2997
d99067cb
YQ
29982012-07-27 Yao Qi <yao@codesourcery.com>
2999
3000 * thread.c (switch_to_thread): Don't call registers_changed.
3001
f2e8016f
TT
30022012-07-26 Tom Tromey <tromey@redhat.com>
3003
f782ad9b
AS
3004 * Makefile.in (SFILES): Remove objc-exp.y.
3005 (YYFILES): Remove objc-exp.c.
3006 (YYOBJ): Remove objc-exp.o.
3007 (local-maintainer-clean): Don't mention objc-exp.c.
3008 * c-exp.y: Include objc-lang.h.
3009 (%union) <class>: New field.
3010 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3011 (exp): Clone subscript production for OBJC_LBRAC. Add various
3012 Objective C productions.
3013 (msglist, msgarglist, msgarg): New productions.
3014 (array_mod, func_mod, operator): Clone productions for
3015 OBJC_LBRAC.
3016 (parse_string_or_char): Handle '@' strings.
3017 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3018 (classify_name): Check la_name_of_this. Recognize ObjC class
3019 names.
3020 * objc-exp.y: Remove.
3021 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3022 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3023
f66713d2
JK
30242012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3025
3026 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3027
7cfe01b4
JK
30282012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3029
3030 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3031 and decrement.
3032
5ba19b4c
TT
30332012-07-26 Tom Tromey <tromey@redhat.com>
3034
3035 * copying.c: Rebuild.
3036 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3037 'no_class'.
3038
27618ce4
TT
30392012-07-26 Tom Tromey <tromey@redhat.com>
3040
3041 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3042 immediate_quit.
3043 (print_objfile_statistics): Likewise.
3044 (maintenance_print_symbols): Likewise.
3045 (maintenance_print_msymbols): Likewise.
3046 (maintenance_print_objfiles): Likewise.
3047 * psymtab.c (print_partial_symbols): Call QUIT.
3048 (maintenance_print_psymbols): Likewise. Don't modify
3049 immediate_quit.
3050 * copying.c (show_copying_command): Don't modify immediate_quit.
3051 (show_warranty_command): Likewise.
3052 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3053
dd3818c8
KS
30542012-07-26 Keith Seitz <keiths@redhat.com>
3055
3056 * linespec.c (linespec_lexer_lex_number): The input
3057 is also a valid number if the next character is a comma
3058 or colon.
3059
23a80689
JB
30602012-07-26 Joel Brobecker <brobecker@adacore.com>
3061
3062 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3063 configure options.
3064
29f77997
TG
30652012-07-26 Tristan Gingold <gingold@adacore.com>
3066
3067 * machoread.c: Include gdb_bfd.h.
3068
a55c1f32
TG
30692012-07-26 Tristan Gingold <gingold@adacore.com>
3070
3071 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3072 offset.
3073
56eb65bd
SP
30742012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3075
3076 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3077 SIZE to size_t.
3078 (dwarf2_evaluate_loc_desc): Likewise.
3079 (dwarf2_loc_desc_needs_frame): Likewise.
3080 (locexpr_describe_location_1): Likewise.
3081 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3082 size_t.
3083 (struct dwarf2_loclist_baton): Likewise.
3084 * dwarf2read.c (struct dwarf_block): Likewise.
3085 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3086 (decode_locdesc): Expand SIZE and I to size_t.
3087
aec8845c
JK
30882012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3089
3090 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3091
33d7655b
JB
30922012-07-25 Joel Brobecker <brobecker@adacore.com>
3093
3094 * doublest.c (convert_doublest_to_floatformat): If the exponent
3095 is too small, treat the value as zero. If the exponent is too
3096 large, treat the value as infinity.
3097
a22d44ff
JB
30982012-07-25 Joel Brobecker <brobecker@adacore.com>
3099
3100 * configure.ac: Add --enable-lmcheck configure option.
3101 * configure: Regenerate.
3102
d6b28940
TT
31032012-07-25 Tom Tromey <tromey@redhat.com>
3104
f782ad9b
AS
3105 * NEWS: Mention maint info bfds.
3106 * gdb_bfd.c (all_bfds): New global.
3107 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3108 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3109 New functions.
d6b28940 3110
6e73ba20
RC
31112012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3112
3113 * configure.tgt: Add v850*-*-rtems*.
3114
d560eebd
TT
31152012-07-25 Tom Tromey <tromey@redhat.com>
3116
3117 * macrotab.c (macro_bcache_str): Remove cast.
3118
d7cbec71
HZ
31192012-07-25 Hui Zhu <hui_zhu@mentor.com>
3120
3121 * linespec.c (linespec_lexer_lex_number): Update comments,
3122 change the return and add check to make sure the input is
3123 the decimal numbers.
3124 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3125 false, call linespec_lexer_lex_string.
3126
882f447f
TT
31272012-07-24 Tom Tromey <tromey@redhat.com>
3128
3129 * symfile.c (symbol_file_add): Don't open BFD twice.
3130
53ab4066 31312012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3132
3133 * breakpoint.c (create_breakpoint): Store condition for pending
3134 breakpoints.
3135
108fb0f7
AS
31362012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3137
3138 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3139 (m68k_return_value): Handle complex types like structures.
3140 (m68k_svr4_return_value): Likewise.
3141
1634dcbe
JK
31422012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3143
3144 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3145 parameters to bfd_get_section_name.
3146
e2d12c21
YQ
31472012-07-24 Yao Qi <yao@codesourcery.com>
3148
3149 * cli/cli-setshow.c: Handle case 'var_uinteger'
3150 and 'var_zuninteger' together. Handle case 'var_integer' and
3151 'var_zinteger' together.
3152
64b92e45
KS
31532012-07-23 Keith Seitz <keiths@redhat.com>
3154
3155 * linespec.c (convert_linespec_to_sal): Don't add
3156 any symbols to the result vector if symbol_to_sal
3157 returns zero.
3158
0f5f4ffe
KS
31592012-07-23 Keith Seitz <keiths@redhat.com>
3160
3161 * linespec.c (decode_objc): Record the function name
3162 in the linespec.
3163
da1cc82f
TT
31642012-07-23 Tom Tromey <tromey@redhat.com>
3165
3166 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3167 counting.
3168 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3169 (map_vmap): Acquire a reference to the BFD.
3170
6c18f3e0
SP
31712012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3172
3173 * p-valprint.c (pascal_object_print_value): Replace potentially
3174 unsafe alloca with xmalloc/xfree.
3175 * valops.c (search_struct_method): Likewise.
3176
695c3173
TT
31772012-07-23 Tom Tromey <tromey@redhat.com>
3178
3179 * solib-svr4.c (enable_break): Update.
3180 * bfd-target.h (target_bfd_reopen): Update documentation.
3181
08d2cd74
TT
31822012-07-23 Tom Tromey <tromey@redhat.com>
3183
3184 * symfile.c (separate_debug_file_exists): Update.
3185 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3186 (reread_symbols): Update.
3187 * elfread.c (build_id_verify): Update.
3188 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3189 bfd_open_maybe_remote.
3190
596f7d67
TT
31912012-07-23 Tom Tromey <tromey@redhat.com>
3192
3193 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3194
8ac244b4
TT
31952012-07-23 Tom Tromey <tromey@redhat.com>
3196
3197 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3198 and 'abfd'.
3199 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3200 and 'abfd'.
3201 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3202 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3203 'abfd'.
3204 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3205 * objfiles.c (allocate_objfile): Acquire a new reference.
3206 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3207 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3208 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3209 a cleanup for 'nbfd'.
3210 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3211 for 'nbfd'.
3212 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3213 make a cleanup for 'abfd'.
3214 (symbol_file_add): Make a BFD cleanup.
3215
64c31149
TT
32162012-07-23 Tom Tromey <tromey@redhat.com>
3217
3218 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3219 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3220 * corelow.c (core_open): Use gdb_bfd_fopen.
3221 * dsrec.c (load_srec): Use gdb_bfd_openr.
3222 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3223 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3224 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3225 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3226 (gdb_bfd_fdopenr): New functions.
3227 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3228 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3229 (gdb_bfd_fdopenr): Declare.
3230 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3231 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3232 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3233 gdb_bfd_openr_next_archived_file.
3234 (macho_check_dsym): Use gdb_bfd_openr.
3235 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3236 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3237 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3238 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3239 gdb_bfd_openr.
3240 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3241 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3242 gdb_bfd_openr_next_archived_file.
3243 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3244 Use gdb_bfd_openr.
3245 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3246 gdb_bfd_openr.
3247 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3248 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3249 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3250 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3251 (symfile_bfd_open): Use gdb_bfd_fopen.
3252 (generic_load): Use gdb_bfd_openr.
3253 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3254
520b0001
TT
32552012-07-23 Tom Tromey <tromey@redhat.com>
3256
3257 * bfd-target.c (target_bfd_reopen): Update.
3258 * cli/cli-dump.c (bfd_openr_with_cleanup)
3259 (bfd_openw_with_cleanup): Update.
3260 * corelow.c (core_open): Update.
3261 * dsrec.c (load_srec): Update.
3262 * exec.c (exec_file_attach): Update.
3263 * gcore.c (create_gcore_bfd): Update.
3264 * gdb_bfd.c (gdb_bfd_ref): Return void.
3265 (gdb_bfd_open): Update.
3266 * gdb_bfd.h (gdb_bfd_ref): Return void.
3267 Update comments.
3268 * jit.c (jit_bfd_try_read_symtab): Update.
3269 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3270 * machoread.c (macho_symfile_read_all_oso): Update.
3271 (macho_check_dsym): Update.
3272 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3273 * remote-m32r-sdi.c (m32r_load): Update.
3274 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3275 * rs6000-nat.c (add_vmap): Update.
3276 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3277 Update.
3278 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3279 * solib-spu.c (spu_bfd_open): Update.
3280 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3281 * spu-linux-nat.c (spu_bfd_open): Update.
3282 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3283 (generic_load): Update.
3284 * windows-nat.c (windows_make_so): Update.
3285
2322ff16
SP
32862012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3287
3288 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3289
3def0b36
PA
32902012-07-20 Jeff Kenton <jkenton@tilera.com>
3291
3292 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3293 SIGTRAMP_FRAME unwinding.
3294
e615022a
DE
32952012-07-20 Doug Evans <dje@google.com>
3296
3297 * NEWS: Document new options "set/show use-deprecated-index-sections",
3298 and delete reference to --use-deprecated-index-sections.
3299 * symfile.h (use_deprecated_index_sections): Delete.
3300 * dwarf2read.c (use_deprecated_index_sections): Make static.
3301 (read_index_from_section): Update wording of how to load
3302 deprecated index sections.
3303 (_initialize_dwarf2_read): New options
3304 "set/show use-deprecated-index-sections".
3305 * main.c (captured_main): Delete --use-deprecated-index-sections.
3306
64776a0b
PA
33072012-07-20 Pedro Alves <palves@redhat.com>
3308
3309 PR threads/11692
3310 PR gdb/12203
3311
3312 * infrun.c (handle_inferior_event) <new thread>: Don't special
3313 case minus_one_ptid.
3314 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3315 * linux-thread-db.c (thread_get_info_callback): Don't return early
3316 if the thread is zombie.
3317 (thread_from_lwp): Change return type to void. Rewrite stale
3318 comment.
3319 (attach_thread): Don't return early if the thread is zombie,
3320 instead set its "dying" flag.
3321 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3322 (find_new_threads_callback): Don't return early if the thread is
3323 zombie.
3324
09826ec5
PA
33252012-07-20 Pedro Alves <palves@redhat.com>
3326
3327 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3328 * target.c (target_wait): Likewise.
3329 (str_comma_list_concat_elem, do_option, target_options_to_string):
3330 New functions.
3331 * target.h (target_options_to_string): Declare.
3332
f7a35f02
TT
33332012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3334 Tom Tromey <tromey@redhat.com>
3335
3336 * dwarf2read.c (dwarf_decode_macros)
3337 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3338 DW_MACRO_GNU_transparent_include_alt>: New cases.
3339 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3340 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3341
b81e1ee0
TT
33422012-07-20 Tom Tromey <tromey@redhat.com>
3343
3344 * dwarf2read.c (try_open_dwo_file): Don't call
3345 gdb_bfd_stash_filename.
3346
99c1624c
PA
33472012-07-20 Pedro Alves <palves@redhat.com>
3348
3349 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3350 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3351 (i386_process_record): Tweak description comments.
3352
4ffa4fc7
PA
33532012-07-20 Pedro Alves <palves@redhat.com>
3354
3355 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3356 (i386_process_record): Use record_read_memory.
3357 * record.c (record_read_memory): New function.
3358 (record_arch_list_add_mem, record_exec_insn): Use
3359 record_read_memory.
3360 * record.h (record_read_memory): Declare.
3361
c24343e2
YQ
33622012-07-20 Yao Qi <yao@codesourcery.com>
3363
3364 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3365 NULL for xfree.
3366
90f47860
PA
33672012-07-19 Pedro Alves <palves@redhat.com>
3368
3369 * record.c (record_resume): Ask the target beneath to report all
3370 signals.
3371
01093045
DE
33722012-07-19 Doug Evans <dje@google.com>
3373
3374 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3375 there's no section at address zero.
3376 (dwarf2_record_block_ranges): Ditto.
3377
a7c3d162
YQ
33782012-07-19 Yao Qi <yao@codesourcery.com>
3379
3380 * command.h, remote.c: Fix a typo in comment.
3381
608b4967
TT
33822012-07-19 Tom Tromey <tromey@redhat.com>
3383
3384 PR exp/13206:
3385 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3386 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3387 OP_DECLTYPE>: New cases.
3388 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3389 (type_exp): Add new productions.
3390 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3391 and decltype.
3392 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3393 New case.
3394 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3395 OP_DECLTYPE>: New case.
3396 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3397 New case.
3398 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3399 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3400
274b54d7
TT
34012012-07-19 Tom Tromey <tromey@redhat.com>
3402
3403 * c-exp.y (enum token_flags): New.
3404 (struct token) <cxx_only>: Remove.
3405 <flags>: New field.
3406 (tokentab3, tokentab2, ident_tokens): Update.
3407 (lex_one_token): Update. Handle FLAG_SHADOW.
3408
9eaf6705
TT
34092012-07-19 Tom Tromey <tromey@redhat.com>
3410
3411 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3412 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3413 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3414 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3415 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3416 type_exp production where appropriate.
3417 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3418 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3419 <UNOP_MEMVAL_TYPE>: New case.
3420 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3421 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3422 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3423 <UNOP_MEMVAL_TYPE>: New case.
3424 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3425 UNOP_REINTERPRET_CAST>: Update.
3426 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3427 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3428 UNOP_REINTERPRET_CAST>: Update.
3429 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3430 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3431 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3432 constants.
3433
6ace3df1
YQ
34342012-07-19 Yao Qi <yao@codesourcery.com>
3435 Jan Kratochvil <jan.kratochvil@redhat.com>
3436
3437 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3438 and case 'var_optional_filename' together.
3439 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3440 instead of add_setshow_optional_filename_cmd for setshow command
3441 'args'. Set completer for 'set args'.
3442
48faced0
DE
34432012-07-18 Doug Evans <dje@google.com>
3444
3445 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3446 * common/gdb_vecs.c: New file, contents from utils.c.
3447 * common/host-defs.h: New file, contents from defs.h.
3448 * utils.h: New file, contents from defs.h.
3449 * defs.h: Move all declarations of objects defined in utils.c
3450 to utils.h (except QUIT() and related).
3451 #include "utils.h", "host-defs.h".
3452 * probe.h (probe_p): Move here from gdb_vecs.h.
3453 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3454 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3455 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3456 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3457 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3458 (COMMON_OBS): Add gdb_vecs.o.
3459 (gdb_vecs.o): New rule.
3460
66f1999b
KS
34612012-07-18 Keith Seitz <keiths@redhat.com>
3462
3463 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3464 parameter. If non-zero, use SYMNAME as the canonical name
3465 for the SaL.
3466 Update all callers.
3467 (convert_linespec_to_sals): Use add_sal_to_sals for
3468 expressions, too.
3469 (decode_line_full): No need to "fill in missing canonical names"
3470 anymore. Simply make cleanups for the allocated names.
3471
5d94e27b
KS
34722012-07-18 Keith Seitz <keiths@redhat.com>
3473
3474 * linespec.c (struct linespec): Constify expression,
3475 source_filename, function_name, and label_name.
3476 (symbol_not_found_error): Make all parameters const.
3477 (linespec_parser_delete): No need to check for NULL
3478 when using xfree. Cast const char * to char * for xfree.
3479
af4908ba
KS
34802012-07-18 Keith Seitz <keiths@redhat.com>
3481
3482 * breakpoint.c (invalid_thread_id_error): New function.
3483 (find_condition_and_thread): Use invalid_thread_id_error.
3484 (watch_command_1): Likewise.
3485
853254db
TT
34862012-07-18 Tom Tromey <tromey@redhat.com>
3487
3488 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3489 * contrib/cc-with-tweaks.sh: New file.
3490
2ec9a5e0
TT
34912012-07-18 Tom Tromey <tromey@redhat.com>
3492
3493 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3494 (locate_dwz_sections): Recognize .gdb_index.
3495 (create_cus_from_index_list): New function.
3496 (create_cus_from_index): Use it. Handle .dwz data.
3497 (read_index_from_section): New function, extracted from
3498 dwarf2_read_index.
3499 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3500 if needed.
3501
36586728
TT
35022012-07-18 Tom Tromey <tromey@redhat.com>
3503
3504 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3505 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3506 <is_dwz>: New field.
3507 (struct dwz_file): New.
3508 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3509 (locate_dwz_sections, dwarf2_get_dwz_file)
3510 (get_abbrev_section_for_cu): New functions.
3511 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3512 (read_and_check_type_unit_head): Add abbrev_section argument.
3513 (create_debug_types_hash_table): Update.
3514 (init_cutu_and_read_dies): Use proper abbrev section.
3515 (init_cutu_and_read_dies_no_follow): Likewise.
3516 (set_partial_user): Do nothing if PST==NULL.
3517 (read_comp_units_from_section): New function.
3518 (create_all_comp_units): Use it.
3519 (scan_partial_symbols, partial_die_parent_scope): Update.
3520 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3521 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3522 (find_partial_die): Add offset_in_dwz argument. Update.
3523 (guess_partial_die_structure_name, fixup_partial_die): Update.
3524 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3525 DW_FORM_GNU_strp_alt.
3526 (read_indirect_string_from_dwz): New function.
3527 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3528 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3529 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3530 (follow_die_offset): Add offset_in_dwz argument.
3531 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3532 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3533 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3534 Handle new macro forms.
3535 (dwarf_decode_macros): Update.
3536 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3537 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3538 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3539 (create_debug_types_hash_table): Use correct abbrev section.
3540 (get_debug_line_section): New function.
3541 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3542 (process_full_comp_unit): Pass 'required' argument to
3543 end_symtab_get_static_block.
3544 * buildsym.h (end_symtab_get_static_block): Update.
3545 * buildsym.c (end_symtab_get_static_block): Add 'required'
3546 argument.
3547 (end_symtab, end_expandable_symtab): Update.
3548
4bf44c1c
TT
35492012-07-18 Tom Tromey <tromey@redhat.com>
3550
3551 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3552 (pagesize): Remove.
3553 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3554 (zlib_decompress_section): Remove.
3555 (dwarf2_read_section): Use gdb_bfd_map_section.
3556 (munmap_section_buffer): Remove.
3557 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3558 munmap_section_buffer.
3559 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3560 (struct gdb_bfd_section_data): New.
3561 (free_one_bfd_section): New function.
3562 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3563 (get_section_descriptor, zlib_decompress_section)
3564 (gdb_bfd_map_section): New functions.
3565 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3566
bb397797
TT
35672012-07-18 Tom Tromey <tromey@redhat.com>
3568
3569 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3570
6ec53d05
TT
35712012-07-18 Tom Tromey <tromey@redhat.com>
3572
3573 * gdb_bfd.c (struct gdb_bfd_data): New.
3574 (gdb_bfd_cache): New global.
3575 (struct gdb_bfd_cache_search): New.
3576 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3577 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3578 * gdb_bfd.h (gdb_bfd_open): Declare.
3579
f9a062ff
TT
35802012-07-18 Tom Tromey <tromey@redhat.com>
3581
3582 * utils.c (make_cleanup_bfd_unref): Rename from
3583 make_cleanup_bfd_close.
3584 * defs.h (make_cleanup_bfd_unref): Rename from
3585 make_cleanup_bfd_close.
3586 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3587 (bfd_openw_with_cleanup): Update.
3588 * corelow.c (core_open): Update.
3589 * dsrec.c (load_srec): Update.
3590 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3591 * remote-m32r-sdi.c (m32r_load): Update.
3592 * remote-mips.c (mips_load_srec): Update.
3593 (pmon_load_fast): Update.
3594 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3595 Update.
3596 (darwin_bfd_open): Update.
3597 * solib.c (solib_bfd_fopen): Update.
3598 * symfile-mem.c (symbol_file_add_from_memory): Update.
3599 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3600 (symfile_bfd_open): Update.
3601 (generic_load): Update.
3602
d6ad71ba
TT
36032012-07-18 Tom Tromey <tromey@redhat.com>
3604
3605 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3606 (pmon_load_fast): Likewise.
3607 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3608 (m32r_upload_command): Likewise.
3609 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3610 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3611 Use make_cleanup_bfd_close.
3612
a4453b7e
TT
36132012-07-18 Tom Tromey <tromey@redhat.com>
3614
3615 * symfile.c (symfile_bfd_open): Don't copy name. Call
3616 gdb_bfd_stash_filename.
3617 (load_command): Open the new BFD before freeing the old.
3618 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3619 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3620 Call gdb_bfd_stash_filename.
3621 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3622 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3623 gdb_bfd_stash_filename.
3624 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3625 Free found_pathname.
3626 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3627 gdb_bfd_stash_filename.
3628 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3629 * machoread.c (macho_add_oso_symfile): Call
3630 gdb_bfd_stash_filename.
3631 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3632 gdb_bfd_stash_filename.
3633 (macho_check_dsym): Don't copy filename. Call
3634 gdb_bfd_stash_filename.
3635 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3636 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3637 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3638 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3639 * exec.c (exec_close): Don't free the BFD's filename.
3640 (exec_file_attach): Don't copy the filename. Call
3641 gdb_bfd_stash_filename.
3642 * corelow.c (core_close): Don't free the BFD's filename.
3643 (core_open): Call gdb_bfd_stash_filename.
3644 * corefile.c (reopen_exec_file): Remove #if 0 code.
3645 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3646 pathname.
3647 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3648
cbb099e8
TT
36492012-07-18 Tom Tromey <tromey@redhat.com>
3650
3651 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3652 gdb_bfd_unref.
3653 (free_dwo_file): Use gdb_bfd_unref.
3654 * cli/cli-dump.c: Include gdb_bfd.h.
3655 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3656 (bfd_openr_with_cleanup): Likewise.
3657 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3658 gdb_bfd_unref.
3659 * utils.c: Include gdb_bfd.h.
3660 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3661 * symfile.c: Include gdb_bfd.h.
3662 (separate_debug_file_exists): Use gdb_bfd_unref.
3663 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3664 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3665 (generic_load): Use gdb_bfd_ref.
3666 (reread_symbols): Use gdb_bfd_unref.
3667 * symfile-mem.c: Include gdb_bfd.h.
3668 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3669 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3670 * solib.c: Include gdb_bfd.h.
3671 (solib_bfd_fopen): Use gdb_bfd_ref.
3672 (solib_bfd_open): Use gdb_bfd_unref.
3673 (free_so_symbols): Use gdb_bfd_unref.
3674 (reload_shared_libraries_1): Use gdb_bfd_unref.
3675 * solib-spu.c: Include gdb_bfd.h.
3676 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3677 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3678 gdb_bfd_unref.
3679 * solib-frv.c: Include gdb_bfd.h.
3680 (enable_break2): Use gdb_bfd_unref.
3681 * solib-dsbt.c: Include gdb_bfd.h.
3682 (enable_break2): Use gdb_bfd_unref.
3683 * solib-darwin.c: Include gdb_bfd.h.
3684 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3685 gdb_bfd_unref.
3686 (darwin_bfd_open): Use gdb_bfd_unref.
3687 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3688 * remote-mips.c: Include gdb_bfd.h.
3689 (mips_load_srec): Use gdb_bfd_ref.
3690 (pmon_load_fast): Use gdb_bfd_ref.
3691 * remote-m32r-sdi.c: Include gdb_bfd.h.
3692 (m32r_load): Use gdb_bfd_ref.
3693 * record.c: Include gdb_bfd.h.
3694 (record_save_cleanups): Use gdb_bfd_unref.
3695 (cmd_record_save): Use gdb_bfd_unref.
3696 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3697 gdb_bfd_unref.
3698 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3699 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3700 * objfiles.c: Include gdb_bfd.h.
3701 (free_objfile): Use gdb_bfd_unref.
3702 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3703 gdb_bfd.c.
3704 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3705 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3706 (macho_check_dsym): Likewise.
3707 * m32r-rom.c: Include gdb_bfd.h.
3708 (m32r_load): Use gdb_bfd_ref.
3709 (m32r_upload_command): Use gdb_bfd_ref.
3710 * jit.c: Include gdb_bfd.h.
3711 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3712 * gdb_bfd.h: New file.
3713 * gdb_bfd.c: New file.
3714 * gcore.c: Include gdb_bfd.h.
3715 (create_gcore_bfd): Use gdb_bfd_ref.
3716 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3717 (gcore_command): Use gdb_bfd_unref.
3718 * exec.c: Include gdb_bfd.h.
3719 (exec_close): Use gdb_bfd_unref.
3720 (exec_close_1): Use gdb_bfd_unref.
3721 (exec_file_attach): Use gdb_bfd_ref.
3722 * elfread.c: Include gdb_bfd.h.
3723 (build_id_verify): Use gdb_bfd_unref.
3724 * dsrec.c: Include gdb_bfd.h.
3725 (load_srec): Use gdb_bfd_ref.
3726 * corelow.c: Include gdb_bfd.h.
3727 (core_close): Use gdb_bfd_unref.
3728 (core_open): Use gdb_bfd_ref.
3729 * bfd-target.c: Include gdb_bfd.h.
3730 (target_bfd_xclose): Use gdb_bfd_unref.
3731 (target_bfd_reopen): Use gdb_bfd_ref.
3732 * Makefile.in (SFILES): Add gdb_bfd.c.
3733 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3734 (COMMON_OBS): Add gdb_bfd.o.
3735
ed1d1739
KS
37362012-07-18 Keith Seitz <keiths@redhat.com>
3737
3738 * breakpoint.c (find_condition_and_thread): Initialize
3739 TASK and REST.
3740 (create_breakpiont): find_condition_and_thread will now
3741 initialize COND_STRING, THREAD, and REST (and TASK).
3742 (addr_string_to_sals): Likewise.
3743
eab402df
PA
37442012-07-18 Pedro Alves <palves@redhat.com>
3745
3746 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3747 Pull the single step breakpoints out of the target.
3748
2b963b68
SDJ
37492012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3750
3751 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3752 * stap-probe.c (compile_probe_arg): Likewise.
3753
6bac7473
SDJ
37542012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3755
3756 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3757 (elf_compile_to_ax): Likewise.
3758 * infrun.c (insert_exception_resume_from_probe): Likewise.
3759 (check_exception_resume): Remove `objfile' variable.
3760 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3761 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3762 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3763 (compare_entries): Rename to...
3764 (compare_probes): ...this. Adjust function to work with
3765 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3766 respectively.
3767 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3768 `VEC (probe_p) *'.
3769 (print_ui_out_info): Adjust argument to be `struct probe *'.
3770 (info_probes_for_ops): Adjust internal computations to use
3771 `VEC (probe_p) *'.
3772 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3773 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3774 gen_info_probes_table_values>: Remove `objfile' argument.
3775 (struct probe) <objfile>: New field.
3776 (find_probe_by_pc): Remove `objfile' argument.
3777 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3778 (stap_get_probe_argument_count): Likewise.
3779 (stap_get_arg): Likewise.
3780 (stap_evaluate_probe_argument): Likewise.
3781 (stap_compile_to_ax): Likewise.
3782 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3783 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3784 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3785 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3786 sym_compile_to_ax>: Likewise.
3787
3347eb1a 37882012-07-18 Terry Guo <terry.guo@arm.com>
3789
3790 PR 14329
3791 * defs.h (GDB_MI_MSG_WIDTH): New.
3792 * ser_base (ser_base_read_error_fd): New function.
3793 (do_ser_base_readchar): Poll error file descriptor as well as
3794 standard output.
f782ad9b 3795 (generic_readchar): Refactor error handling.
3347eb1a 3796
80c8d323
JB
37972012-07-18 Joel Brobecker <brobecker@adacore.com>
3798
3799 * NEWS: Create a new section for the next release branch.
3800 Rename the section of the current branch, now that it has
3801 been cut.
3802
b45a0664 38032012-07-18 Joel Brobecker <brobecker@adacore.com>
3804
3805 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3806 * version.in: Bump version to 7.5.50.20120718-cvs.
3807
09cf2b22
KS
38082012-07-17 Keith Seitz <keiths@redhat.com>
3809
3810 * linespec.c (linespec_parse_line_offset): Make parameter
3811 const.
3812
8f043999
JK
38132012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3814
3815 PR 11914
3816 * f-valprint.c (info_common_command): New variable frame_id.
3817 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3818 * printcmd.c (print_variable_and_value): Extend function comment.
3819 Add comment for invalidated FRAME.
3820 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3821 FI form FRAME_ID after each print_frame_local_vars.
3822 (struct print_variable_and_value_data): Change frame to frame_id.
3823 (do_print_variable_and_value): New variable frame, initialize it from
3824 p->frame_id. Add comment for invalidated FRAME.
3825 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3826 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3827 for invalidated FRAME.
3828
ae5e0686
MK
38292012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3830 Pedro Alves <palves@redhat.com>
3831
3832 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3833 loop.
3834
5049c5be
TT
38352012-07-16 Tom Tromey <tromey@redhat.com>
3836
3837 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3838
2908cac6
DE
38392012-07-15 Doug Evans <dje@google.com>
3840
094b34ac
DE
3841 * dwarf2read.c (stmt_list_hash): New struct.
3842 (type_unit_group): Embed "per_cu" member, remove pointer.
3843 New union member "t", move member "tus" into it, all uses updated.
3844 New member "hash", replaces member "line_offset, all uses updated.
3845 (quick_file_names): Replace member "offset" with "hash", all uses
3846 updated.
3847 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3848 (hash_file_name_entry, eq_file_name_entry): Call them.
3849 (hash_type_unit_group, eq_type_unit_group): Ditto.
3850 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3851 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3852 (dw2_get_file_names): Update.
3853 (create_type_unit_group): Replace "per_cu" arg with "cu".
3854 All callers updated. Fix "quick" (.gdb_index) handling.
3855 (get_type_unit_group): Replace "per_cu" arg with "cu".
3856 All callers updated.
3857 (build_type_unit_groups): Don't reset tu_stats.
3858
2908cac6
DE
3859 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3860 "tab_cur_size". Change member "tab" to be a htab_t.
3861 (create_filename_seen_cache): Update.
3862 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3863 (filename_seen): Update.
3864
a2b6eff5
DE
38652012-07-13 Doug Evans <dje@google.com>
3866
3867 * symtab.c (filename_seen): Update comment.
3868
4359dff1
JK
38692012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3870 Doug Evans <dje@google.com>
3871
3872 * buildsym.c (end_symtab_1): Split it to ...
3873 (end_symtab_get_static_block): ... this ...
3874 (end_symtab_from_static_block): ... and this function.
3875 (end_symtab, end_expandable_symtab): Call them.
3876 * buildsym.h (end_symtab_get_static_block)
3877 (end_symtab_from_static_block): New declarations.
3878 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3879 Set its valid CU ranges.
3880
a24f71ab
JK
38812012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3882
3883 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3884 DW_OP_GNU_parameter_ref.
3885
d76b7dbc
JK
38862012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3887
3888 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3889 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3890
9fdc877b
DE
38912012-07-13 Doug Evans <dje@google.com>
3892
3893 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3894 (filename_seen_cache): New struct.
3895 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3896 (create_filename_seen_cache): New function.
3897 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3898 (filename_seen): Delete arg "first". New arg "cache". All callers
3899 updated.
3900 (output_source_filename_data): New struct.
3901 (output_source_filename): Delete arg "first". New arg "data".
3902 All callers updated.
3903 (sources_info): Delete local "first". New locals "data", "cleanups".
3904 Rewrite to use filename_seen_cache.
3905 (add_partial_filename_data): Delete member "first". New member
3906 "filename_seen_cache". All uses updated.
3907 (make_source_files_completion_list): Rewrite to use
3908 filename_seen_cache.
3909
f80c6f3f
DE
39102012-07-12 Doug Evans <dje@google.com>
3911
3912 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3913
0bfa869d
DE
39142012-07-10 Doug Evans <dje@google.com>
3915
f4dc4d17
DE
3916 PR gdb/13498
3917 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3918 all_type_unit_groups, type_unit_groups, tu_stats.
3919 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3920 All uses updated. Add type_unit_group to union "s".
3921 (type_unit_group): New struct.
3922 (IS_TYPE_UNIT_GROUP): New macro.
3923 (abbrev_table): Delete unused member "section".
3924 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3925 (dw2_get_cu): Assert not used with type_unit_group.
3926 (dw2_get_primary_cu): New function.
3927 (dw2_build_type_unit_groups_reader): New function.
3928 (dw2_build_type_unit_groups): New function.
3929 (dw2_get_file_names): Assert not called on type units.
3930 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3931 Redo loop to iterate over type unit groups instead of type units.
3932 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3933 (read_abbrev_offset): New function.
3934 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3935 updated.
3936 (create_partial_symtab): New function.
3937 (process_psymtab_comp_unit_reader): Assert not used with type units.
3938 Call create_partial_symtab.
3939 (process_psymtab_type_unit): Delete.
3940 (hash_type_unit_group, eq_type_unit_group): New functions.
3941 (allocate_type_unit_groups_table): New function.
3942 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3943 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3944 (create_type_unit_group, get_type_unit_group): New functions.
3945 (tu_abbrev_offset): New struct.
3946 (sort_tu_by_abbrev_offset): New function.
3947 (add_type_unit_group_to_table): New function.
3948 (build_type_unit_groups): New function.
3949 (build_type_psymtabs_reader): New function.
3950 (build_type_psymtab_dependencies): New function.
3951 (build_type_psymtabs): Rewrite.
3952 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3953 is seen in a type unit.
3954 (process_queue): Move symtab expansion debugging printfs here.
3955 Call process_full_type_unit for type units.
3956 (compute_symtab_includes): Assert not called for type units.
3957 (process_cu_includes): Don't call compute_symtab_includes for
3958 type units.
3959 (process_full_type_unit): New function.
3960 (process_imported_unit_die): Flag an error if called for type units.
3961 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3962 updated. Assert not called for type units.
3963 (read_file_scope): Call dwarf2_start_symtab.
3964 (setup_type_unit_groups): New function.
3965 (read_type_unit_scope): Rewrite.
3966 (abbrev_table_read_table): Initialize abbrev_table->offset.
3967 (abbrev_table_free_cleanup): New function.
3968 (dwarf2_start_symtab): New function.
3969 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3970 * buildsym.c (finish_block_internal): New arg "expandable".
3971 All callers updated.
3972 (start_symtab): Move most contents to ...
3973 (restart_symtab): ... here. New function.
3974 (reset_symtab_globals): New function.
3975 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3976 Call reset_symtab_globals.
3977 (end_symtab, end_expandable_symtab): New functions.
3978 (set_missing_symtab, augment_type_symtab): New functions.
3979 * buildsym.h (end_expandable_symtab): Declare.
3980 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3981 * psympriv.h (struct partial_symtab): New member "anonymous".
3982 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3983 anonymous psymtabs.
3984 (read_psymtabs_with_filename): Ditto.
3985 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3986 (expand_symtabs_matching_via_partial): Ditto.
3987 (dump_psymtab): Update.
0bfa869d
DE
3988 * dictionary.c (dict_add_pending): New function.
3989 * dictionary.h (dict_add_pending): Declare.
3990
45e58e77
DE
39912012-07-09 Doug Evans <dje@google.com>
3992
b74db436
DE
3993 * buildsym.c (start_subfile): Remove unnecessary check for
3994 name == NULL.
3995
fd55216c
DE
3996 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3997
6721b2ec
DE
3998 * dwarf2read.c (load_full_type_unit): Simplify.
3999
b4dd5633
DE
4000 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4001 to struct signatured_type **. All uses updated.
4002
45e58e77
DE
4003 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4004 All callers updated.
4005
e314d629
TT
40062012-07-09 Tom Tromey <tromey@redhat.com>
4007
4008 * c-exp.y (check_parameter_typelist): New function.
4009 (parameter_typelist): Call it.
4010 * eval.c (make_params): Handle '(void)' case.
4011 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4012 '(void)' case.
4013
aa7c7447
JK
40142012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4015
4016 * common/linux-ptrace.c: Include gdb_assert.h.
4017 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4018 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4019 stdint.h.
4020 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4021 functions.
4022 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4023 * linux-nat.c (linux_child_post_attach)
4024 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4025
889003ed
JK
40262012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4027
4028 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4029 nptl <2.7 bug workaround for core files.
4030
da559b09
JK
40312012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4034 clearing.
4035 (save_siginfo): Remove.
4036 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4037 call.
4038 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4039 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4040 * linux-nat.h (struct lwp_info): Remove field siginfo.
4041
f865ee35
JK
40422012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 Code cleanup for the next patch.
4045 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4046 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4047 call for it.
4048 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4049 (ia64_linux_stopped_data_address):
4050 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4051 the return value.
4052 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4053 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4054 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4055 call for it.
4056
76b83c51
JK
40572012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 PR 14321
4060 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4061 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4062
a6fb9c08
TT
40632012-07-06 Tom Tromey <tromey@redhat.com>
4064
4065 * c-exp.y (DOTDOTDOT): New token.
4066 (func_mod, exp): Use parameter_typelist.
4067 (parameter_typelist): New production.
4068 (tokentab3): Add "..." token.
4069 * eval.c (make_params): Handle varargs.
4070 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4071 varargs.
4072
71918a86
TT
40732012-07-06 Tom Tromey <tromey@redhat.com>
4074
4075 PR exp/9608:
4076 * c-exp.y (%union) <tvec>: Change type.
4077 (func_mod): Now uses <tvec> type.
4078 (exp): Update for tvec change.
4079 (direct_abs_decl): Push the typelist.
4080 (func_mod): Return a typelist.
4081 (nonempty_typelist): Update for tvec change.
4082 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4083 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4084 * parse.c (pop_type_list): New function.
4085 (push_typelist): New function.
4086 (follow_types): Handle tp_function_with_arguments.
4087 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4088 (enum type_pieces) <tp_function_with_arguments>: New constant.
4089 (union type_stack_elt) <typelist_val>: New field.
4090 (push_typelist): Declare.
4091
fcde5961
TT
40922012-07-06 Tom Tromey <tromey@redhat.com>
4093
4094 * c-exp.y (%union) <type_stack>: New field.
4095 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4096 (ptr_operator_ts): New production.
4097 (ptype): Update.
4098 * parse.c (type_stack_reserve): New function.
4099 (check_type_stack_depth): Use it.
4100 (pop_type_stack, append_type_stack, push_type_stack)
4101 (get_type_stack, type_stack_cleanup): New functions.
4102 (follow_types): Handle tp_type_stack.
4103 (_initialize_parse): Simplify initialization.
4104 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4105 constant.
4106 (union type_stack_elt) <stack_val>: New field.
4107 (get_type_stack, append_type_stack, push_type_stack)
4108 (type_stack_cleanup): Declare.
4109
1a7d0ce4
TT
41102012-07-06 Tom Tromey <tromey@redhat.com>
4111
4112 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4113 Remove.
4114 (struct type_stack): New.
4115 * parse.c (type_stack, type_stack_size, type_stack_depth):
4116 Remove.
4117 (type_stack): New global.
4118 (parse_exp_in_context, check_type_stack_depth)
4119 (insert_into_type_stack, insert_type, push_type, push_type_int)
4120 (insert_type_address_space, pop_type, pop_type_int)
4121 (_initialize_parse): Update.
4122
16d01384
TT
41232012-07-06 Tom Tromey <tromey@redhat.com>
4124
4125 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4126 Remove %type.
4127
9bfc60bf
SP
41282012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4129
4130 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4131
d5161074
SP
41322012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4133 Jan Kratochvil <jan.kratochvil@redhat.com>
4134
4135 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4136 alloca with xmalloc/xfree.
4137
a74bc576
SP
41382012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4139
4140 * MAINTAINERS (Write After Approval): Add myself to the list.
4141
667e0a4b
DE
41422012-07-05 Doug Evans <dje@google.com>
4143
4144 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4145
34b536a8
HZ
41462012-07-05 Hui Zhu <hui_zhu@mentor.com>
4147
4148 * ax-gdb.c (cli/cli-utils.h): New include.
4149 (linespec.h): Ditto.
4150 (agent_eval_command_one): New function.
4151 (agent_command_1): Ditto.
4152 (agent_command): Call function agent_command_1.
4153 (agent_eval_command): Ditto.
4154 (_initialize_ax_gdb): Change help for "maint agent"
4155 and "maint agent-eval".
4156
e6f0bce7
HZ
41572012-07-05 Hui Zhu <hui_zhu@mentor.com>
4158
4159 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4160 * cli/cli-utils.c (check_for_argument): New function.
4161 * cli/cli-utils.h (check_for_argument): Ditto.
4162
1b3371b1
L
41632012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4164
4165 * NEWS: Mention x32 ABI support.
4166
23e2d720
L
41672012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4168
4169 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4170 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4171
4172 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4173 and pc_regnum_from_eax to -1. Update SP regnum from
4174 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4175 needed.
4176
4177 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4178 pc_regnum_from_eax.
4179
836bf454
JK
41802012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4181
4182 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4183 * dwarf2expr.h: Include gdbtypes.h.
4184 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4185 these forward declarations.
4186 (cu_offset, sect_offset): Move these ...
4187 * gdbtypes.h: Remove include dwarf2expr.h.
4188 (cu_offset, sect_offset): ... here.
4189
1e55e04f
L
41902012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4191
4192 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4193 (amd64_linux_sigtramp_code): This.
4194 (amd64_x32_linux_sigtramp_code): New.
4195 (LINUX_SIGTRAMP_LEN): Updated.
4196 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4197
7d0e21ad
JK
41982012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4201
8775fd2d
JK
42022012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4203
4204 * config.in: Regenerate.
4205 * configure: Regenerate.
4206 * configure.ac: Remove check for gnu/libc-version.h.
4207 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4208 gnu/libc-version.h.
4209 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4210 variables libc_version, libc_major and libc_minor. Replace sscanf by
4211 inferior_has_bug. Extend the comment.
4212
fcb44371
JK
42132012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4214
4215 * linux-thread-db.c (inferior_has_bug): New function.
4216 (thread_db_find_new_threads_silently): Return boolean as checked by
4217 inferior_has_bug, describe it in the comments.
4218 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4219 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4220 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4221 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4222 if UNTIL_NO_NEW,
4223
09406207
DE
42242012-07-02 Doug Evans <dje@google.com>
4225
0907af0c
DE
4226 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4227 related to queue management.
4228
09406207
DE
4229 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4230 instead of "debug dwarf2-die" in debugging printfs.
4231 (create_debug_info_hash_table_reader): Ditto.
4232 (create_debug_info_hash_table): Ditto.
4233 (init_dwo_file): Ditto.
4234 (init_cutu_and_read_dies): Add debugging printf.
4235 (init_cutu_and_read_dies_no_follow): Ditto.
4236 (process_psymtab_comp_unit_reader): Ditto.
4237
d3ce09f5
SS
42382012-07-02 Stan Shebs <stan@codesourcery.com>
4239
4240 Add target-side support for dynamic printf.
4241 * NEWS: Mention the additional style.
4242 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4243 (struct bp_location): New field cmd_bytecode.
4244 * breakpoint.c: Include format.h.
4245 (disconnected_dprintf): New global.
4246 (parse_cmd_to_aexpr): New function.
4247 (build_target_command_list): New function.
4248 (insert_bp_location): Call it.
4249 (remove_breakpoints_pid): Skip dprintf breakpoints.
4250 (print_one_breakpoint_location): Ditto.
4251 (dprintf_style_agent): New global.
4252 (dprintf_style_enums): Add dprintf_style_agent.
4253 (update_dprintf_command_list): Add agent case.
4254 (agent_printf_command): New function.
4255 (_initialize_breakpoint): Add new commands.
4256 * common/ax.def (printf): New bytecode.
4257 * ax.h (ax_string): Declare.
4258 * ax-gdb.h (gen_printf): Declare.
4259 * ax-gdb.c: Include cli-utils.h, format.h.
4260 (gen_printf): New function.
4261 (maint_agent_print_command): New function.
4262 (_initialize_ax_gdb): Add maint agent-printf command.
4263 * ax-general.c (ax_string): New function.
4264 (ax_print): Add printf disassembly.
4265 * Makefile.in (SFILES): Add format.c
4266 (COMMON_OBS): Add format.o.
4267 * common/format.h: New file.
4268 * common/format.c: New file.
4269 * printcmd.c: Include format.h.
4270 (ui_printf): Call parse_format_string.
4271 * remote.c (remote_state): New field breakpoint_commands.
4272 (PACKET_BreakpointCommands): New enum.
4273 (remote_breakpoint_commands_feature): New function.
4274 (remote_protocol_features): Add new BreakpointCommands entry.
4275 (remote_can_run_breakpoint_commands): New function.
4276 (remote_add_target_side_commands): New function.
4277 (remote_insert_breakpoint): Call it.
4278 (remote_insert_hw_breakpoint): Ditto.
4279 (_initialize_remote): Add new packet configuration for
4280 target-side breakpoint commands.
4281 * target.h (struct target_ops): New field
4282 to_can_run_breakpoint_commands.
4283 (target_can_run_breakpoint_commands): New macro.
4284 * target.c (update_current_target): Handle
4285 to_can_run_breakpoint_commands.
4286
2d7b58e8
JK
42872012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4288
4289 Execute -ix and -iex only after system and user gdbinit files.
4290 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4291 processing down after gdbinit files.
4292
8690e634
JK
42932012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4294
4295 Add fnmatch-gnu module.
4296 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4297 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4298 * gnulib/aclocal.m4: Regenerate.
4299 * gnulib/config.in: Regenerate.
4300 * gnulib/configure: Regenerate.
4301 * gnulib/import/dummy.c: Remove.
4302 * gnulib/import/Makefile.am: Regenerate.
4303 * gnulib/import/Makefile.in: Likewise.
4304 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4305 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4306 * gnulib/import/alloca.c: New file.
4307 * gnulib/import/alloca.in.h: Likewise.
4308 * gnulib/import/config.charset: Likewise.
4309 * gnulib/import/fnmatch.c: Likewise.
4310 * gnulib/import/fnmatch.in.h: Likewise.
4311 * gnulib/import/fnmatch_loop.c: Likewise.
4312 * gnulib/import/localcharset.c: Likewise.
4313 * gnulib/import/localcharset.h: Likewise.
4314 * gnulib/import/m4/alloca.m4: Likewise.
4315 * gnulib/import/m4/codeset.m4: Likewise.
4316 * gnulib/import/m4/configmake.m4: Likewise.
4317 * gnulib/import/m4/fcntl-o.m4: Likewise.
4318 * gnulib/import/m4/fnmatch.m4: Likewise.
4319 * gnulib/import/m4/glibc21.m4: Likewise.
4320 * gnulib/import/m4/localcharset.m4: Likewise.
4321 * gnulib/import/m4/locale-fr.m4: Likewise.
4322 * gnulib/import/m4/locale-ja.m4: Likewise.
4323 * gnulib/import/m4/locale-zh.m4: Likewise.
4324 * gnulib/import/m4/mbrtowc.m4: Likewise.
4325 * gnulib/import/m4/mbsinit.m4: Likewise.
4326 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4327 * gnulib/import/m4/mbstate_t.m4: Likewise.
4328 * gnulib/import/m4/stdbool.m4: Likewise.
4329 * gnulib/import/m4/wchar_h.m4: Likewise.
4330 * gnulib/import/m4/wctype_h.m4: Likewise.
4331 * gnulib/import/m4/wint_t.m4: Likewise.
4332 * gnulib/import/mbrtowc.c: Likewise.
4333 * gnulib/import/mbsinit.c: Likewise.
4334 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4335 * gnulib/import/mbsrtowcs-state.c: Likewise.
4336 * gnulib/import/mbsrtowcs.c: Likewise.
4337 * gnulib/import/ref-add.sin: Likewise.
4338 * gnulib/import/ref-del.sin: Likewise.
4339 * gnulib/import/stdbool.in.h: Likewise.
4340 * gnulib/import/streq.h: Likewise.
4341 * gnulib/import/strnlen1.c: Likewise.
4342 * gnulib/import/strnlen1.h: Likewise.
4343 * gnulib/import/verify.h: Likewise.
4344 * gnulib/import/wchar.in.h: Likewise.
4345 * gnulib/import/wctype.in.h: Likewise.
4346
202cbf1c
JK
43472012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4348
4349 Support shell wildcards for 'set auto-load safe-path'.
4350 * auto-load.c: Include fnmatch.h.
4351 (filename_is_in_dir): Rename to ...
4352 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4353 it. Update function comment. Rename dir_len to pattern_len. New
4354 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4355 messages. Use gdb_filename_fnmatch.
4356 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4357 pattern.
4358 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4359 * defs.h (gdb_filename_fnmatch): New declaration.
4360 * utils.c: Include fnmatch.h.
4361 (gdb_filename_fnmatch): New function.
4362
fb7b5af4
SDJ
43632012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4364
4365 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4366 `-probe' and `-probe-stap' options.
4367
72d0e2c5
YQ
43682012-07-01 Yao Qi <yao@codesourcery.com>
4369
4370 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4371 always_inserted_off, and always_inserted_enums.
4372 Change always_inserted_mode's type to 'enum auto_boolean'.
4373 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4374 callers.
4375 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4376 of add_setshow_enum_cmd.
4377 * infrun.c: Remove can_use_displaced_stepping_auto,
4378 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4379 can_use_displaced_stepping_enum.
4380 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4381 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4382 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4383 add_setshow_enum_cmd.
4384
42e7ad6c
DE
43852012-06-30 Doug Evans <dje@google.com>
4386
4387 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4388 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4389 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4390
39cf75f7
DE
43912012-06-29 Doug Evans <dje@google.com>
4392
4393 * linespec.c: #include "stack.h".
4394 (decode_line_with_current_source): Moved here from symtab.c and
4395 renamed from decode_line_spec. All callers updated.
4396 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4397 renamed from decode_line_spec_1. All callers updated.
4398 * linespec.h (decode_line_with_current_source): Move declaration here
4399 from symtab.h and renamed from decode_line_spec.
4400 (decode_line_with_last_displayed): Move declaration here from symtab.h
4401 and renamed from decode_line_spec_1.
4402 * macrocmd.c: #include "linespec.h".
4403 * symtab.c: Remove #include "linespec.h".
4404
433df2d4
DE
44052012-06-28 Doug Evans <dje@google.com>
4406
1ce1cefd
DE
4407 * dwarf2read.c (get_cu_length): New function.
4408 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4409 (create_debug_types_hash_table): Ditto.
4410 (init_cutu_and_read_dies): Ditto.
4411 (init_cutu_and_read_dies_no_follow): Ditto.
4412
3b80fe9b
DE
4413 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4414
433df2d4
DE
4415 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4416 (struct abbrev_table): Define.
4417 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4418 abbrev_table.
4419 (init_cutu_and_read_dies): Update.
4420 (abbrev_table_alloc_abbrev): New function. Replaces
4421 dwarf_alloc_abbrev. All callers updated.
4422 (abbrev_table_add_abbrev): New function.
4423 (abbrev_table_lookup_abbrev): New function. Replaces
4424 dwarf2_lookup_abbrev. All callers updated.
4425 (abbrev_table_read_table): New function. Contents moved here from
4426 dwarf2_read_abbrevs.
4427 (dwarf2_read_abbrevs): Call it.
4428 (abbrev_table_free): New function.
4429 (dwarf2_free_abbrev_table): Call it.
4430
71caed83
SS
44312012-06-28 Stan Shebs <stan@codesourcery.com>
4432
4433 * osdata.c (info_osdata_command): Filter out "Title" columns
4434 from non-MI uses.
4435 * common/linux-osdata.c (struct osdata_type): Add title field.
4436 (osdata_table): Add titles to each entry.
4437 (linux_command_xfer_osdata): Add a column for title data.
4438
37ce89eb
SS
44392012-06-28 Stan Shebs <stan@codesourcery.com>
4440
4441 Make logging work for MI.
4442 * NEWS: Mention it.
4443 * interps.h (interp_set_logging_ftype): New typedef.
4444 (struct interp_procs): New field set_logging_proc.
4445 (current_interp_set_logging): Declare.
4446 * interps.c (current_interp_set_logging): New function.
4447 * cli/cli-logging.c: Include interps.h.
4448 (set_logging_redirect): Call current_interp_set_logging.
4449 (pop_output_files): Ditto.
4450 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4451 * mi/mi-console.h (mi_console_set_raw): Declare.
4452 * mi/mi-console.c (mi_console_set_raw): New function.
4453 * mi/mi-interp.c (saved_raw_stdout): New global.
4454 (mi_set_logging): New function.
4455 (_initialize_mi_interp): Add it to interp procs.
4456
659c9f3a
DE
44572012-06-28 Doug Evans <dje@google.com>
4458
a743abeb
DE
4459 * symtab.c (lookup_symbol_aux_objfile): Use
4460 ALL_OBJFILE_PRIMARY_SYMTABS.
4461
659c9f3a
DE
4462 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4463
da2d6d3d
JK
44642012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4465
4466 * common/buffer.c: Include inttypes.h and stdint.h.
4467 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4468
e5ef252a
PA
44692012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4470 Pedro Alves <palves@redhat.com>
4471
4472 * gdbthread.h (ALL_THREADS): New macro.
4473 (thread_list): Declare.
4474 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4475 going, but instead fall through to the stepping handling.
4476 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4477 the passed in signal. Adjust debug output.
4478 (resume_callback): Rename to ...
4479 (linux_nat_resume_callback): ... this. Pass the thread's last
4480 stop signal, if in "pass" state.
4481 (linux_nat_resume): Adjust to rename.
4482 (stop_wait_callback): New assertion. Don't respawn signals;
4483 instead let the LWP remain with SIGNALLED set.
4484 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4485 * remote.c (append_pending_thread_resumptions): New.
4486 (remote_vcont_resume): Call it.
4487 * target.h (target_resume): Extend comment.
4488
1d7975eb
IS
44892012-06-28 Iain Sandoe <iain@codesourcery.com>
4490
4491 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4492
2e3cf129
DE
44932012-06-27 Doug Evans <dje@google.com>
4494
4495 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4496 Delete have_addr_base, unused. All uses updated.
4497 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4498 (dwarf2_get_pc_bounds): Add ranges_base.
4499 (dwarf2_record_block_ranges): Ditto.
4500
1bb9788d
TT
45012012-06-27 Tom Tromey <tromey@redhat.com>
4502
4503 PR macros/7961:
4504 * varobj.c (varobj_create): Update.
4505 (varobj_set_value): Update.
4506 * tracepoint.c (validate_actionline): Update.
4507 (encode_actions_1): Update.
4508 * parse.c (parse_exp_1): Add 'pc' argument.
4509 (parse_exp_in_context): Add 'pc' argument. Change how
4510 expression_context_pc is set.
4511 (parse_expression): Update.
4512 (parse_field_expression): Update.
4513 * expression.h (parse_exp_1): Update.
4514 * eval.c (parse_to_comma_and_eval): Update.
4515 * breakpoint.c (set_breakpoint_condition): Update.
4516 (update_watchpoint): Update.
4517 (init_breakpoint_sal): Update
4518 (find_condition_and_thread): Update.
4519 (watch_command_1): Update.
4520 (update_breakpoint_locations): Update.
4521 * ada-lang.c (ada_read_renaming_var_value): Update.
4522 (create_excep_cond_exprs): Update.
4523
0bc3a05c
DE
45242012-06-27 Doug Evans <dje@google.com>
4525
4526 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4527 type units.
4528
4bdcc0c1
DE
45292012-06-26 Doug Evans <dje@google.com>
4530
4531 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4532 prototype.
4533 (error_check_comp_unit_head): New arg abbrev_section. All callers
4534 updated.
4535 (read_and_check_comp_unit_head): Ditto.
4536 (read_and_check_type_unit_head): Ditto.
4537
ee0bf529
SCR
45382012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4539
4540 New attribute 'last' for gdb.Symtab_and_line.
4541 * NEWS (Python Scripting): Add entry about the new attribute.
4542 * python/py-symtab.c (salpy_get_last): New function which
4543 implements the get method for the 'last' attribute of
4544 gdb.Symtab_and_line.
4545 (sal_object_getset): Add entry for the 'last' attribute.
4546
1c658ad5
DE
45472012-06-26 Doug Evans <dje@google.com>
4548
09262596
DE
4549 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4550 (dwo_sections): Add macinfo, macro.
4551 (dwarf2_locate_dwo_sections): Watch for macro sections.
4552 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4553 All callers updated. Handle DWO files.
4554
45cfd468
DE
4555 * NEWS: Mention new options "set debug dwarf2-read" and
4556 "set debug symtab-create".
4557 * dwarf2read.c (dwarf2_read_debug): New static global.
4558 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4559 (process_queue): Ditto.
4560 (process_full_comp_unit): Ditto.
4561 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4562 * elfread.c (elf_symfile_read): Add debugging printf.
4563 * minsyms.c (install_minimal_symbols): Ditto.
4564 * psymtab.c (allocate_psymtab): Ditto.
4565 * symfile.c (allocate_symtab): Ditto.
4566 * symtab.c (symtab_create_debug): New global.
4567 (_initialize_symtab): Add new option "set debug symtab-create".
4568 * symtab.h (symtab_create_debug): Declare.
4569
1c658ad5
DE
4570 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4571 (lookup_dwo_type_unit): Ditto.
4572
6fea9e18
L
45732012-06-26 Roland McGrath <roland@hack.frob.com>
4574 H.J. Lu <hongjiu.lu@intel.com>
4575
4576 * amd64-linux-nat.c: Include <sys/user.h>.
4577 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4578 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4579 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4580
4581 * configure.ac: Check if the fs_base and gs_base members of
4582 `struct user_regs_struct' exist.
4583 * config.in: Regenerated.
4584 * configure: Likewise.
4585
adb4fe3b
ME
45862012-06-25 Michael Eager <eager@eagercon.com>
4587
4588 PR python/14291
f782ad9b 4589 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4590
fc51cce1
MGD
45912012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4592
4593 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4594 register as a stack alignment in ARM mode.
4595
40a73391
JK
45962012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4597
4598 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4599 * gnulib/config.in: Regenerate.
4600 * gnulib/configure: Likewise.
4601 * gnulib/import/m4/extensions.m4: Update it.
4602 * gnulib/import/m4/gnulib-common.m4: Likewise.
4603 * gnulib/import/m4/memmem.m4: Likewise.
4604 * gnulib/import/m4/mmap-anon.m4: Likewise.
4605 * gnulib/import/m4/multiarch.m4: Likewise.
4606 * gnulib/import/stdint.in.h: Likewise.
4607
972daa01
YQ
46082012-06-24 Yao Qi <yao@codesourcery.com>
4609
4610 * corefile.c (write_memory_with_notification): New.
4611 * gdbcore.h: Declare write_memory_with_notification.
4612 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4613 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4614 * valops.c (value_assign): Likewise.
4615 * python/py-inferior.c (infpy_write_memory): Call
4616 'write_memory_with_notification'.
4617
8d6e0714
JK
46182012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4619
4620 * cc-with-index.sh: Use also -ex "set auto-load no".
4621
156942c7
DE
46222012-06-23 Doug Evans <dje@google.com>
4623
4624 PR 14125
4625 * NEWS: Document additions to .gdb_index.
4626 * dwarf2read.c: #include "gdb/gdb-index.h".
4627 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4628 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4629 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4630 (dwarf2_read_index): Recognize version 7.
4631 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4632 block_kind, domain): All callers updated.
4633 (dw2_find_symbol_file): Handle new index CU values.
4634 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4635 (add_index_entry): New args is_static, kind. All callers updated.
4636 (offset_type_compare, uniquify_cu_indices): New functions
4637 (symbol_kind): New function.
4638 (write_psymtabs_to_index): Remove duplicate CU values.
4639 (write_psymtabs_to_index): Write .gdb_index version 7.
4640
352b3eda
JB
46412012-06-22 Joel Brobecker <brobecker@adacore.com>
4642
4643 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4644 * configure: Regenerate.
4645
2678e2af
YQ
46462012-06-20 Yao Qi <yao@codesourcery.com>
4647
4648 * python/py-inferior.c: Update comments of infpy_read_memory
4649 and infpy_write_memory.
4650
95c391b6
TT
46512012-06-19 Tom Tromey <tromey@redhat.com>
4652
4653 PR exp/9514:
4654 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4655 (push_type_address_space): Remove.
4656 * parse.c (insert_into_type_stack): New function.
4657 (insert_type): Likewise.
4658 (insert_type_address_space): Rename from push_type_address_space.
4659 Insert tp_space_identifier.
4660 * c-exp.y (ptr_operator): New production.
4661 (abs_decl): Use ptr_operator.
4662 (space_identifier): Call insert_type_address_space.
4663 (ptype): Don't use const_or_volatile_or_space_identifier.
4664 (const_or_volatile_noopt): Call insert_type.
4665 (conversion_type_id, conversion_declarator): New productions.
4666 (operator): Use conversion_type_id.
4667
6ac9ef80
DE
46682012-06-18 Doug Evans <dje@google.com>
4669
422d65e7
DE
4670 * symtab.h (minimal_symbol): New member created_by_gdb.
4671 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4672 created by gdb.
4673 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4674 (search_symbols): Call it instead of lookup_symbol.
4675 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4676
49f6c839
DE
4677 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4678 Adjust address for DW_OP_GNU_addr_index.
4679 * dwarf2expr.h (dwarf_expr_context): Update comment.
4680 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4681 all callers updated. Handle TLS vars described with
4682 DW_OP_GNU_const_index.
4683 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4684 and DW_OP_GNU_const_index.
4685 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4686
6ac9ef80
DE
4687 * block.c (find_block_in_blockvector): Make explicit the fact that we
4688 ignore GLOBAL_BLOCK.
4689
4cd18215
TT
46902012-06-18 Tom Tromey <tromey@redhat.com>
4691
4692 * c-exp.y (operator): Remove trailing space after "delete" and
4693 "delete[]".
4694
a9b8d892
JK
46952012-06-18 Mark Kettenis <kettenis@gnu.org>
4696 Jan Kratochvil <jan.kratochvil@redhat.com>
4697
4698 Switch i386 and derived targets to ON_STACK.
4699 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4700 (amd64_dicos_init_abi): Remove its installment.
4701 * dicos-tdep.c (dicos_init_abi): Remove the
4702 set_gdbarch_call_dummy_location call. Update the comment here.
4703 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4704 (i386_dicos_init_abi): Remove its installment.
4705 * i386-tdep.c (i386_push_dummy_code): New function.
4706 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4707 i386_push_dummy_code.
4708
e2e4d78b
JK
47092012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4710
4711 Remove stale dummy frames.
4712 * breakpoint.c: Include dummy-frame.h.
4713 (longjmp_breakpoint_ops): New variable.
4714 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4715 bp_longjmp_call_dummy.
4716 (bpstat_what, bptype_string, print_one_breakpoint_location)
4717 (init_bp_location): Support bp_longjmp_call_dummy.
4718 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4719 (set_longjmp_breakpoint_for_call_dummy)
4720 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4721 functions.
4722 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4723 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4724 FIXME comment and extend the other comment for bp_call_dummy.
4725 (set_longjmp_breakpoint_for_call_dummy)
4726 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4727 * dummy-frame.c: Include gdbthread.h.
4728 (pop_dummy_frame_bpt): New function.
4729 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4730 (dummy_frame_discard): New function.
4731 (cleanup_dummy_frames): Update the comment about longjmps.
4732 * dummy-frame.h (dummy_frame_discard): New declaration.
4733 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4734 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4735 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4736 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4737 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4738 keep_going if IS_LONGJMP and there is no other reason to stop.
4739
09d5912c
TT
47402012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4741
4742 * remote-sim.c (sim_command_completer): Initialize
4743 variable 'result'.
4744
1788b2d3
JK
47452012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4746
4747 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4748 * dwarf2loc.c (call_site_parameter_matches): Support
4749 CALL_SITE_PARAMETER_PARAM_OFFSET.
4750 (needs_dwarf_reg_entry_value): Push stub value.
4751 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4752 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4753 * gdbtypes.h (enum call_site_parameter_kind): New item
4754 CALL_SITE_PARAMETER_PARAM_OFFSET.
4755 (struct call_site.parameter.u): New field param_offset.
4756
24c5c679
JK
47572012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4758
4759 Code cleanup: Generalize call_site.parameter key.
4760 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4761 variable dwarf_reg. New variable kind_u. Update parameters to
4762 push_dwarf_reg_entry_value.
4763 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4764 * dwarf2expr.h (enum call_site_parameter_kind)
4765 (union call_site_parameter_u): Forward declarations.
4766 (struct dwarf_expr_context_funcs): Update parameters and their
4767 description for push_dwarf_reg_entry_value.
4768 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4769 * dwarf2loc.c (call_site_parameter_matches): New function.
4770 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4771 description. Use call_site_parameter_matches.
4772 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4773 Update parameters and their description.
4774 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4775 New variable kind_u. Adjust the caller for updated parameters.
4776 (needs_dwarf_reg_entry_value): Update parameters.
4777 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4778 instead of attr. Update for the changed fields of struct
4779 call_site_parameter.
4780 * gdbtypes.h: Include dwarf2expr.h.
4781 (enum call_site_parameter_kind): New.
4782 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4783 fb_offset into new union u.
4784
ac142d96
L
47852012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4786
4787 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4788 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4789 for x32.
4790
ba224c70
L
47912012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4792
4793 * amd64-linux-nat.c (compat_x32_clock_t): New.
4794 (compat_x32_siginfo_t): Likewise.
4795 (compat_x32_siginfo_from_siginfo): Likewise.
4796 (siginfo_from_compat_x32_siginfo): Likewise.
4797 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4798 and siginfo_from_compat_x32_siginfo for x32.
4799
7ecbc825
HZ
48002012-06-15 Hui Zhu <hui_zhu@mentor.com>
4801
4802 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4803
233dfcf0
L
48042012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4805
4806 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4807 instead of gdbarch_ptr_bit.
4808 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4809 (amd64_supply_native_gregset): Likewise.
4810 (amd64_collect_native_gregset): Likewise.
4811 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4812 (amd64_supply_xsave): Likewise.
4813 (amd64_collect_fxsave): Likewise.
4814 (amd64_collect_xsave): Likewise.
4815
6da38f42
L
48162012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4817
4818 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4819 (amd64_linux_read_description): Check DS segment register for
4820 x32 process.
4821
663b969e
TT
48222012-06-15 Tom Tromey <tromey@redhat.com>
4823
4824 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4825 init_cutu_and_read_dies.
4826
d6f05027
IS
48272012-06-15 Iain Sandoe <iain@codesourcery.com>
4828
4829 * MAINTAINERS (Write After Approval): Add myself to the list.
4830
6598ed07
TT
48312012-06-15 Tom Tromey <tromey@redhat.com>
4832
4833 * valops.c (value_find_oload_method_list): Now static.
4834 * value.h (value_find_oload_method_list): Don't declare.
4835
2b214ea6
TT
48362012-06-15 Tom Tromey <tromey@redhat.com>
4837
4838 * valops.c (find_overload_match): Use value_ind.
4839
a210c238
MR
48402012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4841
4842 * infrun.c (handle_inferior_event): Correct indentation.
4843
3771a44c
DE
48442012-06-14 Doug Evans <dje@google.com>
4845
4846 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4847 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4848 All uses updated.
4849 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4850 updated. Handle DEBUG_LOC_START_LENGTH.
4851 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4852 (loclist_describe_location): Ditto.
4853
1c5a993e
MR
48542012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4855
4856 PR backtrace/13866
4857 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4858 after hiding inline functions.
4859
0b155465
JB
48602012-06-13 Joel Brobecker <brobecker@adacore.com>
4861
4862 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4863 _initialize_inf_ttrace.
4864
45717bac
JB
48652012-06-13 Joel Brobecker <brobecker@adacore.com>
4866
4867 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4868 _initialize_hppa_hpux_nat.
4869
34370865
JB
48702012-06-13 Joel Brobecker <brobecker@adacore.com>
4871
4872 * remote-sim.c (sim_command_completer): Change type of return
4873 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4874
284c5a60
MK
48752012-06-13 Mark Kettenis <kettenis@gnu.org>
4876 Jan Kratochvil <jan.kratochvil@redhat.com>
4877
4878 PR tdep/14222
4879 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4880 stack on a 16-byte boundary.
4881
2535757a
TT
48822012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4883
4884 * jit.c (finalize_symtab): Set function's return type to 'void' by
4885 default.
4886
fff4548b
MK
48872012-06-13 Mark Kettenis <kettenis@gnu.org>
4888 H.J. Lu <hongjiu.lu@intel.com>
4889
5a83521a
MK
4890 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4891 Move bits common to both the classic LP64 and the new x32 ILP32
4892 ABI here.
4893 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4894 (amd64_x32_linux_init_abi): New function.
4895 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4896 subtype.
4897
fff4548b
MK
4898 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4899 * i386-tdep.c (i386_pseudo_register_name): Make public.
4900 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4901 * amd64-tdep.c (amd64_dword_names): Add "eip".
4902 (amd64_x32_pseudo_register_type): New function
4903 (amd64_x32_init_abi): New function.
4904
dd80ea3c
JK
49052012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4906
4907 PR build/14003
4908 * inferior.h (struct inferior_suspend_state): Comment out.
4909 (struct inferior): Comment out the field suspend.
4910 * infrun.c (struct infcall_suspend_state): Comment out the field
4911 inferior_suspend.
4912 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4913 out its assignment.
4914
50af5481
JK
49152012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4916
4917 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4918 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4919 function comment. Return ERROR for unresolved cases. Implement
4920 returning proper NAME.
4921 (yylex): Accept also NAME from classify_inner_name.
4922 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4923 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4924 LOC_TYPEDEF type.
4925 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4926
d55637df
TT
49272012-06-13 Tom Tromey <tromey@redhat.com>
4928
4929 * breakpoint.c (condition_completer): New function.
4930 (_initialize_breakpoint): Use it.
4931 * value.c (complete_internalvar): New function.
4932 * value.h (complete_internalvar): Declare.
4933
49c4e619
TT
49342012-06-13 Tom Tromey <tromey@redhat.com>
4935
4936 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4937 * breakpoint.c (catch_syscall_completer): Return a VEC.
4938 * cli/cli-cmds.c (complete_command): Update.
4939 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4940 (complete_on_enum): Likewise.
4941 * command.h: Include gdb_vecs.h.
4942 (completer_ftype): Change return type.
4943 (complete_on_cmdlist, complete_on_enum): Likewise.
4944 * completer.c (noop_completer, filename_completer)
4945 (location_completer): Return a VEC.
4946 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4947 to a VEC.
4948 (expression_completer, complete_line_internal, complete_line)
4949 (command_completer): Return a VEC.
4950 (gdb_completion_word_break_characters, line_completion_function):
4951 Update.
4952 * completer.h: Include gdb_vecs.h.
4953 (complete_line, noop_completer, filename_completer)
4954 (expression_completer, location_completer, command_completer):
4955 Update.
4956 * f-lang.c (f_word_break_characters): Return a VEC.
4957 * interps.c (interpreter_completer): Return a VEC.
4958 * language.h (struct language_defn)
4959 <la_make_symbol_completion_list>: Return a VEC.
4960 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4961 * symtab.c (free_completion_list): Take a VEC.
4962 (return_val_size, return_val_index): Remove.
4963 (return_val): Now a VEC.
4964 (completion_list_add_name): Update.
4965 (default_make_symbol_completion_list_break_on)
4966 (default_make_symbol_completion_list, make_symbol_completion_list)
4967 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4968 Return a VEC.
4969 (add_filename_to_list): Update.
4970 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4971 <list>: Now a VEC.
4972 (maybe_add_partial_symtab_filename): Update.
4973 (make_source_files_completion_list): Return a VEC.
4974 * symtab.h (default_make_symbol_completion_list_break_on)
4975 (default_make_symbol_completion_list, make_symbol_completion_list)
4976 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4977 (make_source_files_completion_list): Update.
4978
625e8578
TT
49792012-06-13 Tom Tromey <tromey@redhat.com>
4980
4981 * breakpoint.c (add_catch_command): Use completer_ftype.
4982 * breakpoint.h: Include command.h.
4983 (add_catch_command): Use completer_ftype.
4984 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4985 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4986 Use completer_ftype.
4987 * command.h (completer_ftype): New typedef.
4988 (set_cmd_completer): Use it.
4989 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4990 completer_ftype.
4991
5eb3b062
PA
49922012-06-13 Pedro Alves <palves@redhat.com>
4993
4994 Partial revert of previous change.
4995
4996 * serial.c (scb_base): New global.
4997 (serial_for_fd): New.
4998 (serial_open, serial_fdopen_ops): Link new serial in open serials
4999 chain.
5000 (do_serial_close): Unlink serial from the open serials chain.
5001
8b3ee56d
PA
50022012-06-12 Pedro Alves <palves@redhat.com>
5003
5004 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5005 threads here.
5006 (prepare_for_detach): No longer context switch here in non-stop
5007 mode.
5008 (fetch_inferior_event): Ditto.
5009 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5010 to the event thread before removing breakpoints. Switch to the
5011 event thread before inserting breakpoints and resuming.
5012 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5013 event thread before resuming.
5014 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5015 Switch to the event thread before removing breakpoints.
5016
5d60742e
EZ
50172012-06-12 Eli Zaretskii <eliz@gnu.org>
5018
5019 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5020 special characters correctly for the Windows shells. See
5021 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5022 report.
5023 [!__MINGW32__]: Remove extra double quote character from special
5024 characters.
5025
a6feecf7
SS
50262012-06-11 Stan Shebs <stan@codesourcery.com>
5027
5028 * ui-out.h: Remove #if 0 declarations.
5029 * ui-out.c: Remove #if 0 functions.
5030
ddefb60f
PA
50312012-06-11 Pedro Alves <palves@redhat.com>
5032
5033 * ser-base.c (run_async_handler_and_reschedule): New.
5034 (fd_event, push_event): Use it.
5035 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5036 reference count to 1.
5037 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5038 instead of xfree.
5039 (serial_is_open, serial_ref, serial_unref): New.
5040 * serial.h (serial_open): Adjust comment.
5041 (serial_is_open): Declare.
5042 (serial_close): Adjust comment.
5043 (serial_ref, serial_unref) Declare.
5044 (struct serial): New field 'refcnt'.
5045
d5ad6aa5
PA
50462012-06-11 Pedro Alves <palves@redhat.com>
5047
5048 Remove #if 0'd "connect" command, and unnecessary associated
5049 refcounting and serial reuse bits.
5050
5051 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5052 * serial.c (last_serial_opened): Delete.
5053 (scb_base): Delete.
5054 (serial_open): Adjust.
5055 (serial_for_fd): Delete.
5056 (serial_fdopen_ops, do_serial_close): Adjust.
5057 (serial_fdopen_ops): Adjust.
5058
318aa544
PA
50592012-06-11 Pedro Alves <palves@redhat.com>
5060
5061 * serial.c (do_serial_close): Remove early return when SCB is
5062 null.
5063
07261596
TT
50642012-06-11 Tom Tromey <tromey@redhat.com>
5065
5066 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5067
cc80f267
JK
50682012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5069
5070 Fix regression by the "ambiguous linespec" series.
5071 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5072 get_last_displayed_symtab and get_last_displayed_line and depending
5073 on CURSAL.
5074
356d9f9d
TT
50752012-06-11 Tom Tromey <tromey@redhat.com>
5076
5077 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5078 (dw2_find_symbol_file): Use it.
5079
232b8704
ME
50802012-06-11 Michael Eager <eager@eagercon.com>
5081
5082 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5083 * mips-linux-tdep.h (mips_signals): New
5084
e81a37f7
TT
50852012-06-11 Tom Tromey <tromey@redhat.com>
5086
5087 * infrun.c (handle_inferior_event)
5088 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5089 breakpoint.
5090 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5091 exception logic in all cases. Update comments.
5092 (insert_longjmp_resume_breakpoint): Set the exception resume
5093 breakpoint.
5094
2e81047f
MR
50952012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5096
5097 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5098
4e32eda7
SCR
50992012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5100
5101 * valarith.c (binop_types_user_defined_p): Fix a typo.
5102
18648a37 51032012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5104 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5105
5106 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5107 * arch-utils.h: Declare.
5108 * gdbarch.sh: Add return_in_first_hidden_param_p.
5109 * gdbarch.c, gdbarch.h: Regenerated.
5110 * infcall.c (call_function_by_hand): Call
5111 gdbarch_return_in_first_hidden_param_p instead of
5112 language_pass_by_reference.
5113
5114 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5115 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5116 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5117 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5118 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5119 `cplus_return_struct_by_reference'.
5120 (tic6x_return_value): Handle language cplusplus.
5121 (tic6x_return_in_first_hidden_param_p): New.
5122 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5123
034e5797
DE
51242012-06-07 Doug Evans <dje@google.com>
5125
5126 * dwarf2read.c (dwarf2_cu): Add comment.
5127
6a00aa1e
MR
51282012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5129
5130 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5131 variable.
5132 (mips_eabi_push_dummy_call): Likewise.
5133 (mips_n32n64_push_dummy_call): Likewise.
5134 (mips_o32_push_dummy_call): Likewise.
5135 (mips_o64_push_dummy_call): Likewise.
5136
eaa05d59
MR
51372012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5138
5139 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5140
de13fcf2
MR
51412012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5142
5143 * mips-tdep.c (mips_pseudo_register_type): Use
5144 mips_float_register_p.
5145
c3a01a22
PA
51462012-06-06 Pedro Alves <palves@redhat.com>
5147
5148 * infrun.c (handle_inferior_event): Remove calls to
5149 reinit_frame_cache that follow a context_switch call.
5150
d25f45d9
PA
51512012-06-06 Pedro Alves <palves@redhat.com>
5152
5153 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5154 context_switch and remove stale comment.
5155
359f5fe6
PA
51562012-06-06 Pedro Alves <palves@redhat.com>
5157
5158 * infrun.c (struct execution_control_state): Remove
5159 `new_thread_event' field.
5160 (handle_inferior_event): Simplify new threads handling; don't
5161 resume the inferior if we find a new thread.
5162
2d4c29c5
TS
51632012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5164
5165 * NEWS: Document the deprecation of SH's 'regs' command.
5166 * inferior.h (all_registers_info): Add function declaration.
5167 * sh-tdep.c (sh_show_regs): Remove variable.
5168 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5169 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5170 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5171 (sh_show_regs_command): Remove functions.
5172 (sh_gdbarch_init): Don't set sh_show_regs.
5173 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5174 'info all-registers'.
5175 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5176 (sh64_show_regs): Remove functions.
5177 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5178
f5f1cdb6
JK
51792012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 * configure.ac: Move development=true below AC_INIT.
5182 * configure: Regenerate.
5183
bf6309af
SS
51842012-06-05 Stan Shebs <stan@codesourcery.com>
5185
5186 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5187 gdb_stdout.
5188
45aa4659
JK
51892012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5190
5191 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5192 argument as ssize_t.
5193 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5194 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5195 * target.c (target_read_stack, target_write_memory)
5196 (target_write_raw_memory): Likewise.
5197 * target.h (target_read_stack, target_write_memory)
5198 (target_write_raw_memory): Likewise.
5199
1b162304
JK
52002012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5201
5202 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5203 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5204 * target.c (target_read_memory): Change LEN to ssize_t.
5205 * target.h (target_read_memory): Change LEN to ssize_t.
5206
8556afb4
PA
52072012-06-05 Pedro Alves <palves@redhat.com>
5208
5209 PR backtrace/13866
5210
5211 * breakpoint.c (until_break_command): Only fetch the selected
5212 frame after decode_line_1.
5213
fb139f32
PA
52142012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5215
5216 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5217 event breakpoint at _start, __start or main if a program
5218 interpreter is not found.
5219
a8e1bb34
JB
52202012-06-05 Joel Brobecker <brobecker@adacore.com>
5221
5222 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5223 Add declaration.
5224 * windows-tdep.c: #include "objfiles.h".
5225 (windows_iterate_over_objfiles_in_search_order): New function.
5226 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5227 iterate_over_objfiles_in_search_order gdbarch method to
5228 windows_iterate_over_objfiles_in_search_order.
5229 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5230
19630284
JB
52312012-06-05 Joel Brobecker <brobecker@adacore.com>
5232
5233 * gdbarch.sh: Add generation of
5234 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5235 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5236 (iterate_over_objfiles_in_search_order): New gdbarch method.
5237 * gdbarch.h, gdbarch.c: Regenerate.
5238 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5239 Add declaration.
5240 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5241 New function.
5242 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5243 out of lookup_symbol_aux_symtabs.
5244 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5245 call to lookup_symbol_aux_objfile.
5246 (struct global_sym_lookup_data): New type.
5247 (lookup_symbol_global_iterator_cb): New function.
5248 (lookup_symbol_global): Search for symbol using
5249 gdbarch_iterate_over_objfiles_in_search_order and
5250 lookup_symbol_global_iterator_cb.
5251 * findvar.c (struct minsym_lookup_data): New type.
5252 (minsym_lookup_iterator_cb): New function.
5253 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5254 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5255 and minsym_lookup_iterator_cb.
5256
67ff19f7
JB
52572012-06-05 Joel Brobecker <brobecker@adacore.com>
5258
5259 Revert the following patch:
5260 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5261 try locating the symbol in the symbol's own objfile first, before
5262 extending the search to all objfiles.
5263 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5264 out of lookup_symbol_aux_symtabs.
5265 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5266 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5267 Do not search EXCLUDE_OBJFILE.
5268 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5269 (lookup_symbol_global): Search for matches in the block's objfile
5270 first, before searching all other objfiles.
5271
ccab2054
JB
52722012-06-05 Joel Brobecker <brobecker@adacore.com>
5273
5274 * breakpoint.c (find_condition_and_thread): Stop parsing
5275 as soon as the first invalid keyword is found.
5276
e23d4a9c
JB
52772012-06-05 Joel Brobecker <brobecker@adacore.com>
5278
5279 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5280
70160166
JB
52812012-06-05 Joel Brobecker <brobecker@adacore.com>
5282
5283 * config/djgpp/djcheck.sh: Add copyright header.
5284
399501a5
JB
52852012-06-05 Joel Brobecker <brobecker@adacore.com>
5286
5287 * copyright.py (update_files, main): Fix path to update-copyright
5288 script.
5289
3770a159
JB
52902012-06-05 Joel Brobecker <brobecker@adacore.com>
5291
5292 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5293 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5294 for which a reminder to update by hand is printed.
5295
4aad0dfc
DE
52962012-06-04 Doug Evans <dje@google.com>
5297
5298 * buildsym.c (make_blockvector): Add comment.
5299
1f8cf220
PA
53002012-06-04 Pedro Alves <palves@redhat.com>
5301
5302 * arch-utils.c (default_gdb_signal_from_target): Delete.
5303 * arch-utils.h (default_gdb_signal_from_target): Delete.
5304 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5305 gdbarch_gdb_signal_from_target_p.
5306 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5307 predicate).
5308 * gdbarch.h: Regenerate.
5309 * gdbarch.c: Regenerate.
5310
86b49880
PA
53112012-06-04 Pedro Alves <palves@redhat.com>
5312
5313 * gdbarch.sh (gdb_signal_from_target): Mention that the
5314 implementation of the method must be host independent.
5315 * gdbarch.h: Regenerate.
5316
fe78531d
JK
53172012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5318
5319 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5320 parameters.
5321 (target_read_memory_bfd): New function.
5322 (symbol_file_add_from_memory): Use it.
5323
d790cf0a
DE
53242012-06-03 Doug Evans <dje@google.com>
5325
78e5175a
DE
5326 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5327 of primary symtab.
5328 (basic_lookup_transparent_type): Ditto.
5329
d790cf0a
DE
5330 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5331 (ALL_PRIMARY_SYMTABS): Use it.
5332 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5333 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5334 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5335 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5336 (basic_lookup_transparent_type): Ditto.
5337
c6e5ee5e
SDJ
53382012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5339
5340 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5341 it to optimize resolution of demangled name.
5342
a68ffae9
JK
53432012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5344
5345 * configure.ac (development): Define new variable.
5346 Call AC_CHECK_LIB for mcheck if $development.
5347 (ERROR_ON_WARNING): Enable it by default only if $development.
5348 * config.in: Regenerate.
5349 * configure: Regenerate.
5350
5299c1c4
JK
53512012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5352
5353 * target.c (target_read_memory): Make LEN argument as size_t.
5354 * target.h (target_read_memory): Likewise.
5355
53562012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5357
5358 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5359
0c56f59b
EBM
53602012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5361
5362 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5363 BookE interface for PowerPC server processors if not available
5364 in the Linux Kernel.
5365
71bdabee
KS
53662012-05-31 Keith Seitz <keiths@redhat.com>
5367
5368 * linespec.c (decode_objc): Add cleanup to free
5369 INFO.FILE_SYMTABS.
5370 (find_linespec_symbols): Add cleanup to free CLASSES.
5371 * symfile.c (find_separate_debug_file_by_debuglink): Add
5372 cleanup to free DEBUGLINK.
5373 * ui-out.c (clear_header_list): No need to check if
5374 HEADER_NEXT.COLHDR is NULL.
5375 Free HEADER_NEXT.COL_NAME.
5376
acbd605d
MGD
53772012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5378
5379 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5380 warning.
5381
65662cde
PA
53822012-05-30 Jeff Kenton <jkenton@tilera.com>
5383
5384 * configure.host (gdb_host_cpu): Handle tilegx*.
5385 (gdb_host): Handle tilegx-*-linux*.
5386 * tilegx-linux-nat.c: New file.
5387 * config/tilegx/linux.mh: New file.
5388
ade64f0e
PA
53892012-05-30 Jeff Kenton <jkenton@tilera.com>
5390
5391 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5392 tilegx-linux-tdep.o.
5393 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5394 tilegx-linux-tdep.c.
5395 * configure.tgt: Handle tilegx-*-linux*.
5396 * tilegx-tdep.h: New file.
5397 * tilegx-tdep.c: New file.
5398 * tilegx-linux-tdep.c: New file.
5399 * regformats/reg-tilegx.dat: New file.
5400
bb08bdbd
EBM
54012012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5402
5403 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5404 accounting of hw watchpoints on ppc.
5405
ebd86fb5
TJB
54062012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5407
5408 * source.c (openp): Expand tilde in path entries.
5409
0a0edcd5
DE
54102012-05-29 Doug Evans <dje@google.com>
5411
98cc87bd
DE
5412 * buildsym.c (block_compar): Fix comment.
5413 (end_symtab): Fix and clarify some comments.
5414
0a0edcd5
DE
5415 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5416 cleanup_undefined_types.
5417 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5418 All callers updated.
5419
6f0c7050
TT
54202012-05-29 Tom Tromey <tromey@redhat.com>
5421
5422 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5423 fails.
5424 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5425 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5426 fails.
5427 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5428 fails.
5429
ec95993c
TG
54302012-05-29 Tristan Gingold <gingold@adacore.com>
5431
5432 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5433 (struct darwin_info): ... New struct.
5434 (solib_darwin_pspace_data): New variable.
5435 (darwin_pspace_data_cleanup): New function.
5436 (get_darwin_info): Likewise.
5437 (darwin_dyld_version_ok, darwin_load_image_infos)
5438 (darwin_solib_get_all_image_info_addr_at_init)
5439 (darwin_solib_read_all_image_info_addr): Add info argument.
5440 Adjust code.
5441 (darwin_current_sos): Use per pspace structure.
5442 (darwin_solib_create_inferior_hook): Likewise.
5443 (darwin_clear_solib): Likewise.
5444 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5445
ae25568b
PA
54462012-05-28 Pedro Alves <palves@redhat.com>
5447
5448 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5449 block that uses them. Clear ecss before handling each event.
5450
0c5bf5a9
JK
54512012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5452
5453 * solib-svr4.c (svr4_current_sos): New comment on
5454 svr4_current_sos_via_xfer_libraries fall back.
5455
bfb05775
JK
54562012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5457
5458 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5459 it as a fallback for TYPE_IS_OPAQUE.
5460 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5461 symbols for lookup_symbol.
5462
685b1105
JK
54632012-05-24 John Steele Scott <toojays@toojays.net>
5464
5465 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5466 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5467 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5468 (check_producer): ... this new function, which also checks for ICC
5469 and caches the result.
5470 (producer_is_icc): New function.
5471 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5472 producer was ICC.
5473
22203bbf
PA
54742012-05-24 Pedro Alves <palves@redhat.com>
5475
5476 PR gdb/7205
5477
5478 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5479 (default_gdb_signal_to_target): ... this. Add comment.
5480 (default_gdb_signal_from_host): Rename to ...
5481 (default_gdb_signal_from_target): ... this. Add comment.
5482 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5483 (default_gdb_signal_to_target): ... this.
5484 (default_gdb_signal_from_host): Rename to ...
5485 (default_gdb_signal_from_target): ... this.
5486 * corelow.c (core_open): Adjust to naming change. Replace comment.
5487 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5488 (gdb_signal_from_target): ... this. Adjust to
5489 default_gdb_signal_from_host naming change. Extend comment.
5490 (gdb_signal_to_host): Rename to ...
5491 (gdb_signal_to_target): ... this. Adjust to
5492 default_gdb_signal_to_host naming change.
5493 * gdbarch.h, gdbarch.c: Renegerate.
5494
a493e3e2
PA
54952012-05-24 Pedro Alves <palves@redhat.com>
5496
5497 PR gdb/7205
5498
f782ad9b 5499 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5500
2ea28649
PA
55012012-05-24 Pedro Alves <palves@redhat.com>
5502
5503 PR gdb/7205
5504
5505 Replace target_signal with gdb_signal throughout.
5506
b09846a9
PA
55072012-05-24 Pedro Alves <palves@redhat.com>
5508
5509 PR tui/14159
5510
5511 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5512 string, instead of reusing the va_list argument.
5513
e77c107e
TT
55142012-05-24 Tom Tromey <tromey@redhat.com>
5515
5516 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5517 Remove.
5518
9fccedf7
DE
55192012-05-23 Doug Evans <dje@google.com>
5520
d50bd42b
DE
5521 * symtab.c (search_symbols): Formatting fixes.
5522 (print_symbol_info): Formatting fixes.
5523
9fccedf7
DE
5524 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5525 int64_t change to leb128 API.
5526 (read_encoded_value, decode_frame_entry_1): Ditto.
5527 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5528 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5529 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5530 (execute_stack_op): Ditto.
5531 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5532 (safe_read_uleb128, safe_read_sleb128): Ditto.
5533 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5534 (dwarf2_compile_expr_to_ax): Ditto.
5535 (locexpr_describe_location_piece): Ditto.
5536 (disassemble_dwarf_expression): Ditto.
5537 (locexpr_describe_location_1): Ditto.
5538
f3e0e960
SS
55392012-05-23 Stan Shebs <stan@codesourcery.com>
5540 Kwok Cheung Yeung <kcy@codesourcery.com>
5541
5542 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5543 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5544 (mi-cmd-info.o): New rule.
5545 * osdata.h (info_osdata_command): New declaration.
5546 * osdata.c (info_osdata_command): Change to non-static.
5547 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5548 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5549 * mi/mi-cmd-info.c: New file.
5550
c51fe631
DE
55512012-05-23 Doug Evans <dje@google.com>
5552
71cddcc1
DE
5553 * symtab.c (search_symbols): Pass NULL for file_matcher to
5554 expand_symtabs_matching if there are no files to match.
5555
c51fe631
DE
5556 * gdbtypes.c (lookup_typename): Simplify.
5557
a79378d4
PA
55582012-05-23 Pedro Alves <palves@redhat.com>
5559
5560 * arch-utils.h (default_target_signal_to_host): Delete.
5561 * arch-utils.c (default_target_signal_to_host): Delete.
5562 * gdbarch.sh (target_signal_to_host): Remove.
5563 * gdbarch.h, gdbarch.c: Regenerate.
5564
f664829e
DE
55652012-05-22 Doug Evans <dje@google.com>
5566
5567 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5568 "const gdb_byte *".
5569 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5570 (execute_cfa_program): Update to match API of leb128 functions.
5571 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5572 "const gdb_byte *".
5573 (read_unsigned_leb128, read_signed_leb128): Delete.
5574 (read_initial_length): Change type of buf argument to
5575 "const gdb_byte *".
5576 (read_encoded_value): Update to match API of leb128 functions.
5577 (decode_frame_entry): Change result to "const gdb_byte *", and
5578 similarly for "start" parameter.
5579 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5580 (dwarf2_build_frame_info): Change local frame_ptr to
5581 "const gdb_byte *".
5582 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5583 read_uleb128, read_sleb128. All callers updated.
5584 (safe_skip_leb128): New function.
5585 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5586 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5587 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5588 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5589 read_uleb128, read_sleb128.
5590 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5591 (execute_stack_op): Update to match API of leb128 functions.
5592 * dwarf2expr.h: #include "leb128.h".
5593 (read_uleb128, read_sleb128): Delete.
5594 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5595 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5596 * dwarf2loc.c (debug_loc_kind): New enum.
5597 (decode_debug_loc_addresses): New function.
5598 (decode_debug_loc_dwo_addresses): New function.
5599 (dwarf2_find_location_expression): Rewrite.
5600 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5601 (locexpr_describe_location_piece): Ditto.
5602 (disassemble_dwarf_expression): Ditto.
5603 (locexpr_describe_location_1): Ditto.
5604 (loclist_describe_location): Rewrite.
5605 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5606 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5607 (dwarf2_section_buffer_overflow_complaint): Renamed from
5608 dwarf2_macros_too_long_complaint. All callers updated.
5609 (skip_leb128): Delete.
5610 (init_cu_die_reader): Initialize reader->buffer_end.
5611 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5612 (skip_form_bytes): New arg buffer_end. All callers updated.
5613 Replace call to skip_leb128 with gdb_skip_leb128.
5614 (skip_unknown_opcode): New arg mac_end. All callers updated.
5615 (fill_in_loclist_baton): Initialize baton->from_dwo.
5616
837a1b32
MR
56172012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5618
5619 * mips-linux-nat.c (mips_linux_read_description): Use a more
5620 verbose error message.
5621
d0e64392
MR
56222012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5623
5624 * NEWS: Add MIPS/Linux DSP support.
5625 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5626 (SIGCONTEXT_DSPCTL): New macro.
5627 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5628 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5629 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5630 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5631 (N64_SIGCONTEXT_HI3): Likewise.
5632 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5633 (N64_SIGCONTEXT_LO3): Likewise.
5634 (N64_SIGCONTEXT_DSPCTL): Likewise.
5635 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5636 (mips_linux_o32_sigframe_init): Handle DSP registers.
5637 (mips_linux_n32n64_sigframe_init): Likewise.
5638
8bea7ed1
PM
56392012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5640
5641 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5642 call to abort.
5643
dab06dbe
PA
56442012-05-22 Pedro Alves <palves@redhat.com>
5645
5646 * target.h (store_waitstatus): Move declaration ...
5647 * inf-child.h (store_waitstatus): ... here.
5648 * target.c: Move inclusion of gdb_wait.h, and ...
5649 (store_waitstatus): ... this ...
5650 * inf-child.c: ... here.
5651 * linux-nat.c: Include inf-child.h.
5652 * rs6000-nat.c: Include inf-child.h.
5653 * spu-linux-nat.c: Include inf-child.h.
5654
43011e52
PM
56552012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5656
5657 * tracepoint.c (start_tracing): Add missing i18n markup.
5658 (stop_tracing, set_trace_user): Ditto.
5659 (set_trace_notes, set_trace_stop_notes): Ditto.
5660
b1af9e97
TT
56612012-05-21 Tom Tromey <tromey@redhat.com>
5662
5663 PR c++/7173:
5664 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5665 types.
5666 * value.h (value_cast_pointers): Update.
5667 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5668 (value_cast): Update.
5669 (update_search_result): New function.
5670 (do_search_struct_field): New, from search_struct_field. Check
5671 for ambiguous results.
5672 (search_struct_field): Rewrite.
5673 * infcall.c (value_arg_coerce): Update.
5674 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5675 value_cast_pointers.
5676 * ada-lang.c (ada_convert_actual): Update.
5677
e9e5e6b3
TT
56782012-05-21 Tom Tromey <tromey@redhat.com>
5679
5680 * macroexp.c (macro_stringify): Terminate the string.
5681
1564a261
JK
56822012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5683
5684 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5685 Describe it.
5686 * auto-load.c (auto_load_expand_dir_vars): New function.
5687 (auto_load_safe_path_vec_update): Use it, remove the
5688 substitute_path_component call thanks to it.
5689 (auto_load_objfile_script): Remove the debug_file_directory processing.
5690 Use auto_load_expand_dir_vars, remove the substitute_path_component
5691 call thanks to it.
5692 * configure: Regenerate.
5693 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5694 path. Escape $ also for $debugdir.
5695 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5696 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5697
a3ec0bb1
DE
56982012-05-20 Doug Evans <dje@google.com>
5699
5700 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5701 before use. Check for symtab->includes == NULL before scanning it.
5702
d467df4e
MR
57032012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5704
5705 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5706
4cc0665f
MR
57072012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5708
5709 * NEWS: Add microMIPS support and "set mips compression",
5710 "show mips compression" commands.
5711 * mips-tdep.h (mips_isa): New enum.
5712 (gdbarch_tdep): Add mips_isa.
5713 (mips_pc_is_mips16): Update prototype.
5714 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5715 * mips-tdep.c (mips_compression_mips16): New variable.
5716 (mips_compression_micromips): Likewise.
5717 (mips_compression_strings): Likewise.
5718 (mips_compression_string): Likewise.
5719 (is_mips16_isa, is_micromips_isa): New functions.
5720 (is_mips16_addr): Rename to...
5721 (is_compact_addr): ... this.
5722 (unmake_mips16_addr): Likewise to...
5723 (unmake_compact_addr): ... this.
5724 (make_mips16_addr): Likewise to...
5725 (make_compact_addr): ... this.
5726 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5727 functions.
5728 (mips_elf_make_msymbol_special): Handle microMIPS code.
5729 (msymbol_is_special): Rename to...
5730 (msymbol_is_mips16): ... this.
5731 (mips_make_symbol_special, mips_pc_is_mips16): Update
5732 accordingly.
5733 (msymbol_is_mips, msymbol_is_micromips): New functions.
5734 (mips16_to_32_reg): Rename to...
5735 (mips_reg3_to_reg): ... this.
5736 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5737 (mips_pc_isa): Likewise.
5738 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5739 code.
5740 (mips_fetch_instruction): Pass return status instead of printing
5741 an error message if requested. Handle microMIPS code. Bail out
5742 on an invalid ISA.
5743 (micromips_op): New macro.
5744 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5745 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5746 (b6s4_op, b7s3_reg): Likewise.
5747 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5748 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5749 (mips_insn_size): New function.
5750 (mips32_next_pc): Update mips_fetch_instruction call.
5751 (micromips_relative_offset7): New function.
5752 (micromips_relative_offset10): Likewise.
5753 (micromips_relative_offset16): Likewise.
5754 (micromips_pc_insn_size): Likewise.
5755 (micromips_bc1_pc): Likewise.
5756 (micromips_next_pc): Likewise.
5757 (unpack_mips16): Update mips_fetch_instruction call.
5758 (extended_mips16_next_pc): Update according to change to
5759 mips16_to_32_reg.
5760 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5761 code.
5762 (mips16_scan_prologue): Update mips_fetch_instruction call.
5763 Update according to change to mips16_to_32_reg.
5764 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5765 (mips_insn16_frame_base_sniffer): Likewise.
5766 (micromips_decode_imm9): New function.
5767 (micromips_scan_prologue): Likewise.
5768 (mips_micro_frame_cache): Likewise.
5769 (mips_micro_frame_this_id): Likewise.
5770 (mips_micro_frame_prev_register): Likewise.
5771 (mips_micro_frame_sniffer): Likewise.
5772 (mips_micro_frame_unwind): New variable.
5773 (mips_micro_frame_base_address): New function.
5774 (mips_micro_frame_base): New variable.
5775 (mips_micro_frame_base_sniffer): New function.
5776 (mips32_scan_prologue): Update mips_fetch_instruction call.
5777 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5778 rather than for MIPS16.
5779 (mips_insn32_frame_base_sniffer): Likewise.
5780 (mips_addr_bits_remove): Handle microMIPS code.
5781 (deal_with_atomic_sequence): Rename to...
5782 (mips_deal_with_atomic_sequence): ... this. Update the type
5783 of the variable used to hold an instruction. Remove the ISA bit
5784 check. Update mips_fetch_instruction call.
5785 (micromips_deal_with_atomic_sequence): New function.
5786 (deal_with_atomic_sequence): Likewise.
5787 (mips_about_to_return): Handle microMIPS code. Update
5788 mips_fetch_instruction call.
5789 (heuristic_proc_start): Check for the standard MIPS ISA rather
5790 than for MIPS16. Update mips_pc_is_mips16 and
5791 mips_fetch_instruction calls. Handle microMIPS code.
5792 (mips_push_dummy_code): Handle microMIPS code.
5793 (mips_eabi_push_dummy_call): Likewise.
5794 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5795 (mips_o64_push_dummy_call): Handle microMIPS code.
5796 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5797 (is_delayed): Remove function.
5798 (mips_single_step_through_delay): Replace the call to is_delayed
5799 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5800 Handle microMIPS code.
5801 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5802 microMIPS code.
5803 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5804 call.
5805 (micromips_in_function_epilogue_p): New function.
5806 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5807 call.
5808 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5809 Handle microMIPS.
5810 (gdb_print_insn_mips): Likewise.
5811 (mips_breakpoint_from_pc): Likewise.
5812 (mips_remote_breakpoint_from_pc): New function.
5813 (mips32_instruction_has_delay_slot): Simplify making use of the
5814 updated mips_fetch_instruction interface.
5815 (micromips_instruction_has_delay_slot): New function.
5816 (mips16_instruction_has_delay_slot): Simplify making use of the
5817 updated mips_fetch_instruction interface.
5818 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5819 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5820 calls. Handle microMIPS code.
5821 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5822 (mips_skip_trampoline_code): Handle microMIPS code.
5823 (global_mips_compression): New function.
5824 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5825 file flags. Register the microMIPS remote breakpoint handler
5826 and heuristic frame unwinder.
5827 (show_mips_compression): New function.
5828 (_initialize_mips_tdep): Add the "set mips compression" and
5829 "show mips compression" commands.
5830
22e048c9
SDJ
58312012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5832
5833 * ada-lang.c:
5834 * ada-tasks.c:
5835 * ada-varobj.c:
5836 * amd64-darwin-tdep.c:
5837 * arm-symbian-tdep.c:
5838 * arm-tdep.c:
5839 * avr-tdep.c:
5840 * ax-gdb.c:
5841 * bfin-linux-tdep.c:
5842 * breakpoint.c:
5843 * c-valprint.c:
5844 * cli/cli-cmds.c:
5845 * coffread.c:
5846 * cp-support.c:
5847 * cris-tdep.c:
5848 * dwarf2-frame-tailcall.c:
5849 * dwarf2-frame.c:
5850 * dwarf2expr.c:
5851 * dwarf2loc.c:
5852 * dwarf2read.c:
5853 * elfread.c:
5854 * eval.c:
5855 * expprint.c:
5856 * f-valprint.c:
5857 * frv-tdep.c:
5858 * h8300-tdep.c:
5859 * hppa-hpux-tdep.c:
5860 * hppa-tdep.c:
5861 * hppanbsd-tdep.c:
5862 * i386-nto-tdep.c:
5863 * i386-tdep.c:
5864 * i387-tdep.c:
5865 * ia64-tdep.c:
5866 * jit.c:
5867 * linespec.c:
5868 * linux-tdep.c:
5869 * lm32-tdep.c:
5870 * m2-valprint.c:
5871 * m32c-tdep.c:
5872 * m32r-rom.c:
5873 * m32r-tdep.c:
5874 * m68k-tdep.c:
5875 * m68klinux-tdep.c:
5876 * mi/mi-main.c:
5877 * microblaze-tdep.c:
5878 * mips-linux-tdep.c:
5879 * mips-tdep.c:
5880 * mn10300-tdep.c:
5881 * p-valprint.c:
5882 * parse.c:
5883 * ppc-linux-tdep.c:
5884 * ppc-sysv-tdep.c:
5885 * printcmd.c:
5886 * python/py-finishbreakpoint.c:
5887 * python/py-inferior.c:
5888 * python/py-infthread.c:
5889 * python/py-type.c:
5890 * python/python.c:
5891 * remote-fileio.c:
5892 * remote-m32r-sdi.c:
5893 * remote-mips.c:
5894 * reverse.c:
5895 * rl78-tdep.c:
5896 * rs6000-aix-tdep.c:
5897 * rs6000-tdep.c:
5898 * s390-tdep.c:
5899 * score-tdep.c:
5900 * sh64-tdep.c:
5901 * skip.c:
5902 * solib-darwin.c:
5903 * solib-dsbt.c:
5904 * solib-frv.c:
5905 * sparc-tdep.c:
5906 * spu-multiarch.c:
5907 * spu-tdep.c:
5908 * stack.c:
5909 * symfile.c:
5910 * symtab.c:
5911 * tic6x-tdep.c:
5912 * tracepoint.c:
5913 * v850-tdep.c:
5914 * valarith.c:
5915 * valprint.c:
5916 * value.c:
5917 * xcoffread.c:
5918 * xtensa-tdep.c:
5919 * ada-lang.c:
5920 * ada-tasks.c:
5921 * ada-varobj.c:
5922 * amd64-darwin-tdep.c:
5923 * arm-symbian-tdep.c:
5924 * arm-tdep.c: Delete unused variables.
5925
aff139ff
JK
59262012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5927
5928 Rename $ddir to $datadir.
5929 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5930 * auto-load.c (auto_load_safe_path_vec_update)
5931 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5932 * configure: Regenerate.
5933 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5934 Likewise. Remove the 'use $ddir' help string.
5935
f7bfa992
JK
59362012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5937
5938 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5939 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5940
9cb709b6
TT
59412012-05-18 Tom Tromey <tromey@redhat.com>
5942
5943 PR exp/13907:
5944 * valprint.h (struct value_print_options) <symbol_print>: New
5945 field.
5946 * valprint.c (user_print_options): Add default for symbol_print.
5947 (show_symbol_print): New function.
5948 (generic_val_print): Respect symbol_print.
5949 (_initialize_valprint): Add "print symbol" setting.
5950 * f-valprint.c (f_val_print): Respect symbol_print.
5951 * c-valprint.c (c_val_print): Respect symbol_print.
5952 * NEWS: Update.
5953 * printcmd.c (print_address_symbolic): Return int. Ignore some
5954 zero-size symbols.
5955 (print_address_demangle): Return int.
5956 * defs.h: (print_address_symbolic): Return int.
5957 * value.h (print_address_demangle): Return int.
5958
b012acdd
TT
59592012-05-18 Tom Tromey <tromey@redhat.com>
5960
5961 * valprint.c (val_print_string): Don't print leading space.
5962 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5963 print space before string or vtbl.
5964 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5965 before string.
5966 * jv-valprint.c (java_value_print): Print space before string.
5967 * go-valprint.c (print_go_string): Print space before string.
5968 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5969 space before string.
5970 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5971 space before string or vtbl.
5972 * auxv.c (fprint_target_auxv): Print space after address.
5973
1d51a733
TT
59742012-05-18 Tom Tromey <tromey@redhat.com>
5975
5976 * printcmd.c (print_address_demangle): Remove special case for 0.
5977
edf0c1b7
TT
59782012-05-18 Tom Tromey <tromey@redhat.com>
5979
5980 * printcmd.c (print_address_demangle): Add 'opts' argument.
5981 * p-valprint.c (pascal_val_print): Update.
5982 * jv-valprint.c (java_val_print): Update.
5983 * value.h: Update.
5984 * valprint.c (generic_val_print): Update.
5985 (print_function_pointer_address): Add 'options' argument. Remove
5986 'addressprint' argument. Update.
5987 * m2-valprint.c (print_unpacked_pointer): Update.
5988 * gnu-v3-abi.c (print_one_vtable): Update.
5989 (gnuv3_print_method_ptr): Update.
5990 * f-valprint.c (f_val_print): Update.
5991 * cp-valprint.c (cp_print_value_fields): Update.
5992 * valprint.h (print_function_pointer_address): Update.
5993 * c-valprint.c (c_val_print): Update.
5994
9703b513
TT
59952012-05-18 Tom Tromey <tromey@redhat.com>
5996
5997 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5998 directly corresponding to the found psymtab.
5999 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6000 (dw2_find_pc_sect_symtab): Use it.
6001 * block.h (blockvector_contains_pc): Declare.
6002 * block.c (find_block_in_blockvector): New function.
6003 (blockvector_for_pc_sect): Use it.
6004 (blockvector_contains_pc): New function.
6005
5a439849
MR
60062012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6007
6008 * mips-tdep.h (mips_write_pc): New prototype.
6009 * mips-tdep.c (mips_write_pc): Make external, add description.
6010 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6011 add description.
6012
8376de04
MR
60132012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6014
6015 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6016 mips_regnum->pc.
6017 (mips_unwind_pc, mips_write_pc): Likewise.
6018 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6019 gdbarch_read_pc.
6020
d3581e61
JB
60212012-05-17 Joel Brobecker <brobecker@adacore.com>
6022
6023 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6024 proc_warn, proc_error, proc_get_status, proc_flags,
6025 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6026 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6027 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6028 proc_stop_process, proc_wait_for_stop, proc_run_process,
6029 proc_set_traced_signals, proc_set_traced_faults,
6030 proc_set_traced_sysentry, proc_set_traced_sysexit,
6031 proc_set_held_signals, proc_get_held_signals,
6032 proc_get_traced_signals, proc_get_traced_faults,
6033 proc_get_traced_sysentry, proc_get_traced_sysexit,
6034 proc_clear_current_fault, proc_set_current_signal,
6035 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6036 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6037 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6038 proc_get_current_thread, proc_get_current_thread,
6039 proc_get_current_thread, proc_update_threads,
6040 proc_update_threads, proc_update_threads, proc_update_threads,
6041 proc_iterate_over_threads, procfs_find_new_threads,
6042 procfs_pid_to_str): Make static. Remove advance declaration.
6043 (proc_cursig): Make static. Conditionalized defintion on
6044 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6045 (proc_syscall, proc_set_kill_on_last_close,
6046 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6047 proc_get_pending_signals, proc_get_signal_actions,
6048 proc_trace_signal, proc_ignore_signal): Delete.
6049
81b9b86e
SDJ
60502012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6051
6052 * coffread.c (cs_section_address): Passing proper argument for
6053 `bfd_get_section_vma'.
6054 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6055 `bfd_get_section_flags'.
6056 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6057 `bfd_get_section_vma'.
6058
abc9d0dc
TT
60592012-05-16 Tom Tromey <tromey@redhat.com>
6060
6061 PR macros/13205:
6062 * macrotab.h: (macro_define_special): Declare.
6063 (enum macro_special_kind): New.
6064 (struct macro_definition) <argc, replacement>: Update comments.
6065 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6066 (macro_define_object_internal): New function.
6067 (macro_define_object): Use it.
6068 (macro_define_special): New function.
6069 (fixup_definition): New function.
6070 (macro_lookup_definition, foreach_macro_in_scope)
6071 (foreach_macro): Use fixup_definition.
6072 * macroexp.h (macro_stringify): Declare.
6073 * macroexp.c (free_buffer_return_text): New function.
6074 (stringify): Constify "arg".
6075 (macro_stringify): New function.
6076 * dwarf2read.c (macro_start_file): Call macro_define_special.
6077
6a3a010b 60782012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6079 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6080
6081 * breakpoint.h (bp_location): Add related_address member.
6082 * inferior.h (get_return_value): Take a pointer to struct value
6083 instead of struct type for the function requested.
6084 * value.h (using_struct_return): Likewise.
6085 * gdbarch.sh (return_value): Take a pointer to struct value
6086 instead of struct type for the function requested.
6087 * breakpoint.c (set_breakpoint_location_function): Initialize
6088 related_address for bp_gnu_ifunc_resolver breakpoints.
6089 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6090 requested function's address to gdbarch_return_value.
6091 * eval.c (evaluate_subexp_standard): Pass the requested
6092 function's address to using_struct_return.
6093 * infcall.c (call_function_by_hand): Pass the requested
6094 function's address to using_struct_return and
6095 gdbarch_return_value.
6096 * infcmd.c (get_return_value): Take a pointer to struct value
6097 instead of struct type for the function requested.
6098 (print_return_value): Update accordingly.
6099 (finish_command_continuation): Likewise.
6100 * stack.c (return_command): Pass the requested function's
6101 address to using_struct_return and gdbarch_return_value.
6102 * value.c (using_struct_return): Take a pointer to struct value
6103 instead of struct type for the function requested. Pass the
6104 requested function's address to gdbarch_return_value.
6105 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6106 New function_value member, replacing function_type.
6107 (bpfinishpy_dealloc): Update accordingly.
6108 (bpfinishpy_pre_stop_hook): Likewise.
6109 (bpfinishpy_init): Likewise. Record the requested function's
6110 address.
6111 * mips-tdep.c (mips_fval_reg): New enum.
6112 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6113 words put in GP registers.
6114 (mips_o64_push_dummy_call): Update a comment.
6115 (mips_o32_return_value): Take a pointer to struct value instead
6116 of struct type for the function requested and use it to check if
6117 using the MIPS16 calling convention. Return the designated
6118 general purpose registers for floating-point values returned in
6119 MIPS16 mode.
6120 (mips_o64_return_value): Likewise.
6121 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6122 (ppc_sysv_abi_broken_return_value): Likewise.
6123 (ppc64_sysv_abi_return_value): Likewise.
6124 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6125 value instead of struct type for the function requested.
6126 * amd64-tdep.c (amd64_return_value): Likewise.
6127 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6128 * arm-tdep.c (arm_return_value): Likewise.
6129 * avr-tdep.c (avr_return_value): Likewise.
6130 * bfin-tdep.c (bfin_return_value): Likewise.
6131 * cris-tdep.c (cris_return_value): Likewise.
6132 * frv-tdep.c (frv_return_value): Likewise.
6133 * h8300-tdep.c (h8300_return_value): Likewise.
6134 (h8300h_return_value): Likewise.
6135 * hppa-tdep.c (hppa32_return_value): Likewise.
6136 (hppa64_return_value): Likewise.
6137 * i386-tdep.c (i386_return_value): Likewise.
6138 * ia64-tdep.c (ia64_return_value): Likewise.
6139 * iq2000-tdep.c (iq2000_return_value): Likewise.
6140 * lm32-tdep.c (lm32_return_value): Likewise.
6141 * m32c-tdep.c (m32c_return_value): Likewise.
6142 * m32r-tdep.c (m32r_return_value): Likewise.
6143 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6144 * m68k-tdep.c (m68k_return_value): Likewise.
6145 (m68k_svr4_return_value): Likewise.
6146 * m88k-tdep.c (m88k_return_value): Likewise.
6147 * mep-tdep.c (mep_return_value): Likewise.
6148 * microblaze-tdep.c (microblaze_return_value): Likewise.
6149 * mn10300-tdep.c (mn10300_return_value): Likewise.
6150 * moxie-tdep.c (moxie_return_value): Likewise.
6151 * mt-tdep.c (mt_return_value): Likewise.
6152 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6153 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6154 (ppc_sysv_abi_broken_return_value): Likewise.
6155 (ppc64_sysv_abi_return_value): Likewise.
6156 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6157 * rl78-tdep.c (rl78_return_value): Likewise.
6158 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6159 * rx-tdep.c (rx_return_value): Likewise.
6160 * s390-tdep.c (s390_return_value): Likewise.
6161 * score-tdep.c (score_return_value): Likewise.
6162 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6163 (sh_return_value_fpu): Likewise.
6164 * sh64-tdep.c (sh64_return_value): Likewise.
6165 * sparc-tdep.c (sparc32_return_value): Likewise.
6166 * sparc64-tdep.c (sparc64_return_value): Likewise.
6167 * spu-tdep.c (spu_return_value): Likewise.
6168 * tic6x-tdep.c (tic6x_return_value): Likewise.
6169 * v850-tdep.c (v850_return_value): Likewise.
6170 * vax-tdep.c (vax_return_value): Likewise.
6171 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6172 * xtensa-tdep.c (xtensa_return_value): Likewise.
6173 * gdbarch.c: Regenerate.
6174 * gdbarch.h: Regenerate.
6175
29ca12b3
TT
61762012-05-15 Tom Tromey <tromey@redhat.com>
6177
6178 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6179
588ae58c
JB
61802012-05-15 Joel Brobecker <brobecker@adacore.com>
6181
6182 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6183 of command in two error message.
6184
855a6e68
JB
61852012-05-15 Joel Brobecker <brobecker@adacore.com>
6186
6187 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6188
d634f2de
JB
61892012-05-15 Joel Brobecker <brobecker@adacore.com>
6190
6191 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6192
9cc815f5
JK
61932012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6194
6195 * NEWS (show auto-load scripts-directory): Add forgotten command.
6196
6a609e58
JK
61972012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6198
6199 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6200 parameters.
6201
ac1438b5
L
62022012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6203
6204 * amd64-tdep.c: Include features/i386/x32.c and
6205 features/i386/x32-avx.c.
6206 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6207 initialize_tdesc_x32_avx.
6208
e7e0cddf
SS
62092012-05-14 Stan Shebs <stan@codesourcery.com>
6210
6211 Add dynamic printf.
6212 * breakpoint.h (enum bptype): New type bp_dprintf.
6213 (struct breakpoint): New field extra_string.
6214 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6215 (create_breakpoint): Add extra_string arg.
6216 * breakpoint.c (dprintf_breakpoint_ops): New.
6217 (is_breakpoint): Add bp_dprintf.
6218 (bpstat_what): Add dprintf case.
6219 (bptype_string): Ditto.
6220 (print_one_breakpoint_location): Ditto.
6221 (init_bp_location): Ditto.
6222 (bkpt_print_mention): Ditto.
6223 (dprintf_style_enums): New array.
6224 (dprintf_style): New global.
6225 (dprintf_function): New global.
6226 (dprintf_channel): New global.
6227 (update_dprintf_command_list): New function.
6228 (update_dprintf_commands): New function.
6229 (init_breakpoint_sal): Add extra_string argument, handle it.
6230 (create_breakpoint_sal): Add extra_string argument.
6231 (create_breakpoints_sal): Add extra_string argument, update callers.
6232 (find_condition_and_thread): Add extra argument.
6233 (create_breakpoint): Add extra_string argument, record it.
6234 (dprintf_command): New function.
6235 (break_command_1): Add arg to create_breakpoint call.
6236 (handle_gnu_v3_exceptions): Ditto.
6237 (trace_command): Ditto.
6238 (ftrace_command): Ditto.
6239 (strace_command): Ditto.
6240 (bkpt_print_mention): Add dprintf case.
6241 (create_breakpoint_sal_default): Add extra_string argument.
6242 (_initialize_breakpoint): Add new commands.
6243 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6244 * python/py-breakpoint.c (bppy_init): Ditto.
6245 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6246
8ae38c14
MR
62472012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6248
6249 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6250
9f676e66
SCR
62512012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6252
6253 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6254 unsigned long long.
6255
7efc75aa
SCR
62562012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6257
6258 Add a new function gdb.find_pc_line to the Python API.
6259 * NEWS (Python Scripting): Add entry about the new function.
6260 * python/python.c (gdbpy_find_pc_line): New function which
6261 implements gdb.find_pc_line.
6262 (GdbMethods): Add entry for the new function.
6263
70af3797
PA
62642012-05-12 Pedro Alves <palves@redhat.com>
6265
6266 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6267 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6268
06da564e
EZ
62692012-05-12 Eli Zaretskii <eliz@gnu.org>
6270
6271 * inferior.c: Include completer.h
6272 (initialize_inferiors): Set completer of add-inferior to
6273 filename_completer.
6274
0288cee2
L
62752012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6276
6277 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6278 gdbarch_ptr_bit for x32 core dump.
6279
f6537a2c
L
62802012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6281
6282 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6283 and features/i386/x32-avx-linux.c.
6284
85d4a676
SS
62852012-05-11 Stan Shebs <stan@codesourcery.com>
6286 Kwok Cheung Yeung <kcy@codesourcery.com>
6287
6288 * NEWS: Describe new info os commands.
6289 * common/linux-osdata.c (PID_T, TIME_T): Define.
6290 (MAX_PID_T_STRLEN): New.
6291 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6292 MAX_PID_T_STRLEN.
6293 (command_from_pid): Add comment. Change to use PID_T.
6294 (commandline_from_pid): Change to use PID_T.
6295 (user_from_pid): Add comment.
6296 (get_process_owner): Add comment. Change to use PID_T and
6297 MAX_PID_T_STRLEN.
6298 (get_number_of_cpu_cores): Add comment.
6299 (get_cores_used_by_process): Add comment. Change to use PID_T and
6300 MAX_PID_T_STRLEN.
6301 (linux_xfer_osdata_processes): Change to use PID_T and
6302 MAX_PID_T_STRLEN.
6303 (compare_processes): New function.
6304 (linux_xfer_osdata_processgroups): New function.
6305 (linux_xfer_osdata_threads): Change to use PID_T.
6306 (linux_xfer_osdata_fds): New function.
6307 (format_socket_state, print_sockets): New functions.
6308 (union socket_addr): New union.
6309 (linux_xfer_osdata_isockets): New function.
6310 (time_from_time_t, group_from_gid): New functions.
6311 (linux_xfer_osdata_shm): New function.
6312 (linux_xfer_osdata_sem): New function.
6313 (linux_xfer_osdata_msg): New function.
6314 (linux_xfer_osdata_modules): New function.
6315 (osdata_table): Add new entries.
6316 * common/buffer.c (buffer_xml_printf): Add support for long and
6317 long long format specifiers.
6318
f24afd6d
L
63192012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6320
6321 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6322 (tdesc_x32_avx_linux): Likewise.
6323
7349ff92
JK
63242012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6325
6326 Implement multi-component --with-auto-load-dir.
6327 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6328 entries.
6329 (--with-auto-load-safe-path): Update the default value description.
6330 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6331 New.
6332 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6333 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6334 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6335 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6336 "set auto-load scripts-directory".
6337 * config.in: Regenerate.
6338 * configure: Regenerate.
6339 * configure.ac (--with-auto-load-dir): New configure option.
6340 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6341
6dea1fbd
JK
63422012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6343
6344 Provide $ddir substitution for --with-auto-load-safe-path.
6345 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6346 entries.
6347 * auto-load.c: Include observer.h.
6348 (auto_load_safe_path_vec_update): Call substitute_path_component for
6349 each component. New variable ddir_subst.
6350 (auto_load_gdb_datadir_changed): New function.
6351 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6352 AUTO_LOAD_SAFE_PATH. New comment.
6353 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6354 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6355 * config.in: Regenerate.
6356 * configure: Regenerate.
6357 * configure.ac (--auto-load-safe-path): Rename
6358 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6359 GDB_DATADIR/auto-load.
6360 * defs.h (substitute_path_component): New declaration.
6361 * top.c: Include observer.h.
6362 (set_gdb_datadir): New function.
6363 (init_main): Install it for "set data-directory".
6364 * utils.c (substitute_path_component): New function.
6365
b09aca3a
JK
63662012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6367
6368 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6369 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6370 DEBUG_FILE_DIRECTORY. Handle multiple components of
6371 DEBUG_FILE_DIRECTORY.
6372
95554aad
TT
63732012-05-10 Tom Tromey <tromey@redhat.com>
6374
6375 * dwarf2read.c (recursively_write_psymbols): New function.
6376 (write_psymtabs_to_index): Use it.
6377
6378 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6379 field.
6380 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6381 (load_partial_comp_unit): Update.
6382 (queue_comp_unit): Add argument 'pretend_language'.
6383 (process_queue): Update.
6384 (psymtab_to_symtab_1): Skip dependencies that have a user.
6385 (load_partial_comp_unit_reader): Give meaning to the 'data'
6386 argument.
6387 (load_full_comp_unit): Add 'pretend_language' argument.
6388 (process_full_comp_unit): Add 'pretend_language' argument. Set
6389 language on CU.
6390 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6391 Update.
6392 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6393 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6394 Update.
6395 (prepare_one_comp_unit): Add 'pretend_language' argument.
6396
6397 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6398 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6399 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6400 (dw2_do_instantiate_symtab): Check whether symtab was read in
6401 before queueing.
6402 (dw2_instantiate_symtab): Add assertion. Call
6403 process_cu_includes.
6404 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6405 (partial_symtab_p): New typedef.
6406 (set_partial_user): New function.
6407 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6408 (scan_partial_symbols): Add imported CU to imported_symtabs.
6409 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6410 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6411 (get_symtab, recursively_compute_inclusions)
6412 (compute_symtab_includes, process_cu_includes)
6413 (process_imported_unit_die): New functions.
6414 (process_die) <DW_TAG_imported_unit>: New case.
6415 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6416
6417 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6418 comment.
6419 (struct partial_die_info) <locdesc>: Remove.
6420 <d>: New field.
6421 (process_psymtab_comp_unit): Add 'read_partial' argument.
6422 Update.
6423 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6424 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6425 (add_partial_symbol): Update.
6426 (process_die): Handle DW_TAG_partial_unit.
6427 (read_file_scope): Update comment.
6428 (load_partial_dies): Handle DW_TAG_imported_unit.
6429 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6430 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6431
e871fbb9
TT
64322012-05-10 Tom Tromey <tromey@redhat.com>
6433
6434 * cc-with-dwz.sh: New file.
6435
b5b04b5b
TT
64362012-05-10 Tom Tromey <tromey@redhat.com>
6437
6438 * symtab.h (struct symtab) <includes, user>: New fields.
6439 * block.h (struct block_iterator) <d, idx, which>: New fields.
6440 * block.c (initialize_block_iterator, find_iterator_symtab)
6441 (block_iterator_step, block_iter_name_step)
6442 (block_iter_match_step): New functions.
6443 (block_iterator_first, block_iterator_next)
6444 (block_iter_name_first, block_iter_name_next)
6445 (block_iter_match_first, block_iter_match_next): Rewrite.
6446 (get_block_symtab): New function.
6447
84a146c9
TT
64482012-05-10 Tom Tromey <tromey@redhat.com>
6449
6450 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6451 set_block_symtab.
6452 * jit.c (finalize_symtab): Use allocate_global_block,
6453 set_block_symtab.
6454 * buildsym.c (finish_block_internal): New function, from old
6455 finish_block.
6456 (finish_block): Rewrite.
6457 (end_symtab): Use finish_block_internal, set_block_symtab.
6458 * block.h (struct global_block): New.
6459 (allocate_global_block, set_block_symtab): Declare.
6460 * block.c (allocate_global_block, set_block_symtab): New
6461 functions.
6462
9439a077
TT
64632012-05-10 Tom Tromey <tromey@redhat.com>
6464
6465 * psymtab.c (partial_map_expand_apply): Add assertion.
6466 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6467 (psymtab_to_symtab): Find unshared psymtab.
6468 (dump_psymtab): Print including psymtabs.
6469 (recursively_search_psymtabs): New function.
6470 (expand_symtabs_matching_via_partial): Use it.
6471 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6472 fields.
6473 (enum psymtab_search_status): New.
6474
8157b174
TT
64752012-05-10 Tom Tromey <tromey@redhat.com>
6476
6477 * tracepoint.c (scope_info): Update.
6478 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6479 (find_pc_sect_symtab, search_symbols)
6480 (default_make_symbol_completion_list_break_on)
6481 (make_file_symbol_completion_list): Update.
6482 * symmisc.c (dump_symtab_1): Update.
6483 * stack.c (print_frame_args, iterate_over_block_locals)
6484 (print_frame_labels, iterate_over_block_arg_vars): Update.
6485 * python/py-block.c (block_object) <dict>: Remove.
6486 <block>: New field.
6487 <iter>: Change type.
6488 (blpy_iter): Update.
6489 (blpy_block_syms_iternext): Update.
6490 * psymtab.c (map_block): Use block iterators.
6491 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6492 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6493 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6494 * infrun.c (check_exception_resume): Update.
6495 * cp-support.c (make_symbol_overload_list_block): Update.
6496 * coffread.c (patch_opaque_types): Update.
6497 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6498 * block.h (struct block_iterator): New.
6499 (block_iterator_first, block_iterator_next, block_iter_name_first)
6500 (block_iter_name_next, block_iter_match_first)
6501 (block_iter_match_next): Declare.
6502 (ALL_BLOCK_SYMBOLS): Redefine.
6503 * block.c (block_iterator_first, block_iterator_next)
6504 (block_iter_name_first, block_iter_name_next)
6505 (block_iter_match_first, block_iter_match_next): New functions.
6506 * ada-lang.c (ada_add_block_symbols)
6507 (ada_make_symbol_completion_list): Use block iterator.
6508
a2ca7a52
TT
65092012-05-10 Tom Tromey <tromey@redhat.com>
6510
6511 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6512 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6513 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6514 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6515 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6516 Update.
6517
64ea88dc
JB
65182012-05-10 Joel Brobecker <brobecker@adacore.com>
6519
6520 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6521 print-file-var-lib2.c, print-file-var-main.c and
6522 print-file-var.exp (located in gdb/testsuite/gdb.base).
6523
99a547d6
JB
65242012-05-10 Joel Brobecker <brobecker@adacore.com>
6525
6526 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6527 try locating the symbol in the symbol's own objfile first, before
6528 extending the search to all objfiles.
6529 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6530 out of lookup_symbol_aux_symtabs.
6531 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6532 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6533 Do not search EXCLUDE_OBJFILE.
6534 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6535 (lookup_symbol_global): Search for matches in the block's objfile
6536 first, before searching all other objfiles.
6537
0ece64fd
TG
65382012-05-10 Tristan Gingold <gingold@adacore.com>
6539
6540 * printcmd.c (set_command): Add pre/post inc/dec.
6541
3d16a105
FCE
65422012-05-09 Frank Ch. Eigler <fche@redhat.com>
6543
6544 * gdb.1: Document -ex option.
6545
2efbc0f7
JB
65462012-05-09 Joel Brobecker <brobecker@adacore.com>
6547
6548 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6549 * inferior.h (AT_SYMBOL): Delete.
6550
2c76a0c7
JB
65512012-05-09 Joel Brobecker <brobecker@adacore.com>
6552
6553 * mips-tdep.c (mips_push_dummy_code): New function.
6554 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6555 ON_STACK and install mips_push_dummy_code as our gdbarch
6556 push_dummy_code routine.
6557
9401a810
PA
65582012-05-09 Pedro Alves <palves@redhat.com>
6559
6560 * target.c (set_maintenance_target_async_permitted): Rename to ...
6561 (set_target_async_command): ... this.
6562 (show_maintenance_target_async_permitted): Rename to ...
6563 (show_target_async_command): ... this.
6564 (initialize_targets): Adjust.
6565
3929b321
DE
65662012-05-08 Doug Evans <dje@google.com>
6567
6568 * go-exp.y (classify_name): Add missing assignment of fields of
6569 yylval.ssym.
6570
c41535fd
EZ
65712012-05-08 Eli Zaretskii <eliz@gnu.org>
6572
6573 Display the ">" prompt in interactive mode while reading canned
6574 commands, even when the current interpreter is MI.
6575
6576 * interps.c (interp_set_temp): New function.
6577
6578 * interps.h (interp_set_temp): Add prototype.
6579
6580 * cli/cli-script.c (restore_interp): New cleanup function.
6581 (read_command_lines): Temporarily override the current interpreter
6582 with CLI and arrange for restoring the original one.
6583
c0749c4d
JS
65842012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6585
6586 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6587
d7333987
SDJ
65882012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6589
6590 * probe.c (parse_probes): Move conditional to check for
6591 debuginfo files from here...
6592 * stap-probe.c (stap_get_probes): ... to here.
6593
649e6d92
MK
65942012-05-07 Mark Kettenis <kettenis@gnu.org>
6595 H.J. Lu <hongjiu.lu@intel.com>
6596
6597 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6598 `movl %esp, %ebp' for the X32 ABI.
6599
f39c6ffd
TT
66002012-05-07 Tom Tromey <tromey@redhat.com>
6601
6602 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6603 get_DW_TAG_name.
6604 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6605 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6606 (dwarf_stack_op_name): Remove.
6607 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6608 (decode_locdesc): Use get_DW_OP_name.
6609 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6610 (dwarf2_compile_expr_to_ax): Likewise.
6611 (disassemble_dwarf_expression): Likewise.
6612 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6613
1e1f6591
CLT
66142012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6615
6616 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6617 (sh_linux_sigtramp_cache): New function.
6618 (sh_linux_sigreturn_init): New function.
6619 (sh_linux_rt_sigreturn_init): New function.
6620 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6621 patterns.
6622 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6623 syscall codes.
6624 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6625 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6626 (sh_linux_init_abi): Add init calls to register new tramp_frame
6627 definitions under 32-bit SH, update comments.
6628
545c08b4
PA
66292012-05-07 Pedro Alves <palves@redhat.com>
6630
daac165e
PA
6631 PR gdb/10952
6632
545c08b4
PA
6633 * amd64-linux-tdep.c: Include glibc-tdep.h.
6634 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6635 gdbarch_skip_solib_resolver callback.
6636
af2c1515
JK
66372012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6638
6639 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6640 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6641 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6642 (add_auto_load_safe_path): Change the error message.
6643 (_initialize_auto_load): Change the "safe-path" help text.
6644 * configure: Regenerate
6645 * configure.ac (--without-auto-load-safe-path): Set
6646 WITH_AUTO_LOAD_SAFE_PATH to /.
6647
1067f998
SDJ
66482012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6649
6650 * stap-probe.h: Do not include unecessary `probe.h'.
6651
45dfa85a
AM
66522012-05-05 Alan Modra <amodra@gmail.com>
6653
6654 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6655 bfd_und_section_ptr.
6656 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6657 and bfd_com_section_ptr.
6658
cf093994
JB
66592012-05-04 Joel Brobecker <brobecker@adacore.com>
6660
762ebb75 6661 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6662
d40dc7a8
JB
66632012-05-04 Joel Brobecker <brobecker@adacore.com>
6664
6665 * windows-nat.h (segment_register_p_ftype): New typedef.
6666 (windows_set_segment_register_p): Add declaration.
6667 * windows-nat.c (segment_register_p): New static global.
6668 (windows_set_segment_register_p): New function.
6669 (do_windows_fetch_inferior_registers): Add special handling
6670 for segment registers.
6671 * amd64-windows-nat.c: #include "amd64-tdep.h".
6672 (amd64_windows_segment_register_p): New function.
6673 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6674 * i386-windows-nat.c: #include "i386-tdep.h".
6675 (i386_windows_segment_register_p): New function.
6676 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6677
52b3699b
TG
66782012-05-04 Tristan Gingold <gingold@adacore.com>
6679
6680 * printcmd.c (set_command): Emit a warning if the expression is not
6681 an assignment.
6682
94c74239
JB
66832012-05-03 Joel Brobecker <brobecker@adacore.com>
6684
6685 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6686 Make static.
6687
fcf57f19
SDJ
66882012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6689
6690 * stap-probe.c (stap_is_operator): Change declaration.
6691 (stap_get_opcode): Change return value.
6692 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6693 `stap_parse_argument_1'.
6694
27d2932e
PA
66952012-05-03 Pedro Alves <pedro@codesourcery.com>
6696
6697 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6698 debug log.
6699
a20ee7a4
SCR
67002012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6701
6702 Add two new methods global_block and static_block to gdb.Symtab
6703 objects.
6704 * NEWS (Python scripting): Add entry about the new methods.
6705 * python/py-symtab.c (stpy_global_block): New function which
6706 implements the gdb.Symtab.global_block() method.
6707 (stpy_static_block): New function which implements the
6708 gdb.Symtab.static_block() method.
6709 (symtab_object_methods): Add entries for the two new methods.
6710
943cb756
DE
67112012-05-03 Doug Evans <dje@google.com>
6712
6713 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6714 files.
6715
f4644a3f
YQ
67162012-05-03 Yao Qi <yao@codesourcery.com>
6717
6718 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6719 space.
6720 (i386_process_record): Ditto.
6721
ef61f180
JB
67222012-05-02 Joel Brobecker <brobecker@adacore.com>
6723
6724 * infcall.c (unwind_on_signal_p): Make static.
6725
02f1df11
JB
67262012-05-02 Joel Brobecker <brobecker@adacore.com>
6727
6728 * sol-thread.c (solaris_pid_to_str): Make static.
6729 (_initialize_sol_thread): Add prototype.
6730
39023530
JB
67312012-05-02 Joel Brobecker <brobecker@adacore.com>
6732
6733 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6734
c6b0c501
CF
67352012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6736
6737 * MAINTAINERS: Remove myself.
6738
1ef71717
JK
67392012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6740
6741 Fix --without-auto-load-safe-path for MS-Windows host platform.
6742 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6743
b31b86a7
EZ
67442012-05-02 Eli Zaretskii <eliz@gnu.org>
6745
6746 * gdb_curses.h: Undefine KEY_EVENT before including curses
6747 headers. Move "#undef MOUSE_MOVED" before any curses header
6748 inclusion.
6749
777532fc
SDJ
67502012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6751
6752 * features/i386/i386-mmx-linux.c: Regenerate.
6753 * features/rs6000/powerpc-32.c: Likewise.
6754 * features/rs6000/powerpc-32l.c: Likewise.
6755 * features/rs6000/powerpc-403.c: Likewise.
6756 * features/rs6000/powerpc-403gc.c: Likewise.
6757 * features/rs6000/powerpc-405.c: Likewise.
6758 * features/rs6000/powerpc-505.c: Likewise.
6759 * features/rs6000/powerpc-601.c: Likewise.
6760 * features/rs6000/powerpc-602.c: Likewise.
6761 * features/rs6000/powerpc-603.c: Likewise.
6762 * features/rs6000/powerpc-604.c: Likewise.
6763 * features/rs6000/powerpc-64.c: Likewise.
6764 * features/rs6000/powerpc-64l.c: Likewise.
6765 * features/rs6000/powerpc-750.c: Likewise.
6766 * features/rs6000/powerpc-860.c: Likewise.
6767 * features/rs6000/powerpc-e500.c: Likewise.
6768 * features/rs6000/powerpc-e500l.c: Likewise.
6769 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6770 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6771 * features/rs6000/rs6000.c: Likewise.
6772
d71871bc
SDJ
67732012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6774
6775 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6776 variable.
6777 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6778 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6779 (stap_parse_argument) <e>: Likewise.
6780 (handle_stap_probe) <byte_order>: Likewise.
6781
fd820528
DE
67822012-04-30 Doug Evans <dje@google.com>
6783
6784 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6785 init_and_read_dies_worker. All callers updated.
6786 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6787 replaced with init_cutu_and_read_dies.
6788 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6789 (find_partial_die): Remove FIXME. Don't free current CU.
6790
ec3f619d 67912012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6792
6793 * contrib: New directory.
6794 * contrib/test_pubnames_and_indexes.py: New file.
6795
fceca515
DE
67962012-04-30 Doug Evans <dje@google.com>
6797
6798 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6799 All callers updated.
6800 (init_cu_die_reader): Verify the section is non-empty.
6801 (dwarf_decode_line_header): Don't dereference section->asection
6802 until we know the section is present.
6803
311fe7e1
SDJ
68042012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6805
6806 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6807 probes.
6808
5977971a
YQ
68092012-04-29 Yao Qi <yao@codesourcery.com>
6810
6811 * gdb-code-style.el: New hook gdb-markup-hook
6812 and gdb-comment-hook.
6813
dee91e82
DE
68142012-04-28 Doug Evans <dje@google.com>
6815
3019eac3
DE
6816 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6817 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6818 objfile->obfd.
6819 * symfile.h (dwarf2_debug_sections): New member addr.
6820 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6821 (ctx_no_get_addr_index): New function.
6822 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6823 (ctx_no_get_addr_index): Declare.
6824 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6825 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6826 (dwarf_expr_ctx_funcs): Update.
6827 (needs_get_addr_index): New function.
6828 (needs_frame_ctx_funcs): Update.
6829 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6830 * dwarf2read.c: #include "gdbcore.h".
6831 (dwarf2_per_objfile): New members addr, dwo_files.
6832 (dwarf2_elf_names): Add entry for addr.
6833 (struct dwo_section_names): New type.
6834 (dwo_section_names): New static global.
6835 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6836 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6837 old debug_types_section member updated to use this.
6838 Rename member debug_types_section to info_or_types_section,
6839 all uses updated.
6840 (signatured_type): Rename member type_offset to type_offset_in_tu,
6841 all uses updated. New member type_offset_in_section.
6842 (struct dwo_sections): New type.
6843 (struct dwo_unit): New type.
6844 (struct dwo_file): New type.
6845 (die_reader_specs): New member dwo_file.
6846 (dwarf2_locate_sections): Watch for .debug_addr.
6847 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6848 (dwarf2_read_section): Get bfd of section from bfd's asection,
6849 instead of objfile.
6850 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6851 (create_signatured_type_table_from_index): Initialize
6852 sig_type->info_or_types_section.
6853 (dw2_get_file_names): Statement lists for type units with DWO files
6854 live in the DWO file.
6855 (create_debug_types_hash_table): New function.
6856 (create_all_type_units): Rewrite.
6857 (init_cu_die_reader): New arg dwo_file, all callers updated.
6858 (init_and_read_dies_worker): Get section from
6859 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6860 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6861 continue reading the CU/TU from there.
6862 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6863 updated. Get section from this_cu->info_or_types_section.
6864 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6865 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6866 DW_FORM_GNU_str_index.
6867 (hash_dwo_file, eq_dwo_file): New functions.
6868 (allocate_dwo_file_hash_table): New function.
6869 (hash_dwo_unit, eq_dwo_unit): New functions.
6870 (allocate_dwo_unit_table): New function.
6871 (dwarf2_locate_dwo_sections): New function.
6872 (struct create_dwo_info_table_data): New type.
6873 (create_debug_info_hash_table_reader): New function.
6874 (create_debug_info_hash_table): New function.
6875 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6876 (lookup_dwo_file): New function.
6877 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6878 (free_dwo_file, free_dwo_file_cleanup): New functions.
6879 (free_dwo_file_from_slot, free_dwo_files): New functions.
6880 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6881 (dwarf2_record_block_ranges): Ditto.
6882 (read_partial_die): Ditto.
6883 (process_enumeration_scope): Update to use type_offset_in_section.
6884 (read_full_die_1): New function.
6885 (read_full_die): Rewrite.
6886 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6887 DW_FORM_GNU_str_index.
6888 (read_addr_index_1, read_addr_index): New functions.
6889 (read_addr_index_from_leb128): New function.
6890 (struct dwarf2_read_addr_index_data): New type.
6891 (dwarf2_read_addr_index_reader): New function.
6892 (dwarf2_read_addr_index): New function.
6893 (read_str_index): New function.
6894 (leb128_size): New function.
6895 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6896 If processing a type unit from a DWO file, get the line section
6897 from the DWO file.
6898 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6899 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6900 DW_FORM_GNU_str_index.
6901 (lookup_die_type): Check whether section offset of type's die is
6902 known before looking it up. Remove assert. Condition can
6903 legimately happen for inter-cu type references.
6904 (dwarf_attr_name): Handle Fission attributes.
6905 (dwarf_form_name): Handle Fission forms.
6906 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6907 DW_FORM_GNU_str_index.
6908 (follow_die_sig): Update to use type_offset_in_section.
6909 (decode_locdesc): New case DW_OP_GNU_addr_index.
6910 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6911 DW_FORM_GNU_str_index.
6912 (cu_debug_loc_section): New function.
6913 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6914 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6915 Free DWO files if present.
6916 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6917
dee91e82
DE
6918 Refactor DIE reading.
6919 * dwarf2read.c (dwarf2_per_objfile): Replace members
6920 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6921 (die_reader_specs): New member "die_section". Temporarily make
6922 member "buffer" non-const, pending constifying all info_ptr uses.
6923 (die_reader_func_ftype): New typedef.
6924 (dw2_get_file_names_reader): New function.
6925 (dw2_get_file_names): Rewrite.
6926 (read_and_check_type_unit_head): Rename arg type_offset to
6927 type_offset_in_tu.
6928 (create_all_type_units): Improve debugging message.
6929 Improve dummy type unit check.
6930 (init_cu_die_reader): New arg "section". All callers updated.
6931 (init_and_read_dies_worker): New function.
6932 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6933 (init_cutu_and_read_dies_no_follow): New function.
6934 (init_cutu_and_read_dies_simple): New function.
6935 (process_psymtab_comp_unit_reader): New function.
6936 (process_psymtab_comp_unit): Delete args section,
6937 is_debug_types_section. Rewrite. All callers updated.
6938 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6939 All callers updated. Rewrite.
6940 (load_partial_comp_unit_reader): New function.
6941 (load_partial_comp_unit): Rewrite.
6942 (skip_children): New arg reader. Delete args buffer, cu.
6943 All callers updated.
6944 (skip_one_die): New arg reader. Delete args buffer, cu.
6945 All callers updated.
6946 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6947 All callers updated.
6948 (load_full_comp_unit_reader): New function.
6949 (load_full_comp_unit): Rewrite.
6950 (read_comp_unit): Delete.
6951 (read_die_and_children_1): Delete, contents moved ...
6952 (read_die_and_children): ... here.
6953 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6954 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6955 All callers updated.
6956 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6957 All callers updated.
6958 (find_partial_die): Rewrite load_all_dies support.
6959 (read_attribute_value): New arg reader. Delete args abfd, cu.
6960 All callers updated.
6961 (read_attribute): New arg reader. Delete args abfd, cu.
6962 All callers updated.
6963 (load_full_type_unit): Add assert.
6964 (read_signatured_type_reader): New function.
6965 (read_signatured_type): Rewrite.
6966 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6967 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6968 All callers updated. Set per_cu->cu = NULL after freeing it.
6969 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6970 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6971 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6972 (set_die_type): Update.
6973 (get_die_type_at_offset): Update.
6974 (read_file_scope): Call prepare_one_comp_unit.
6975 (read_type_unit_scope): Ditto.
6976 (prepare_one_comp_unit): Set producer if present.
6977
72d59e0d
SDJ
69782012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6979
6980 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6981 gettext function on `error'.
6982
0fefef59
DE
69832012-04-27 Doug Evans <dje@google.com>
6984
6985 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6986 is empty.
6987
28106bc2
SDJ
69882012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6989 Tom Tromey <tromey@redhat.com>
6990
6991 * breakpoint.c (struct breakpoint_objfile_data)
6992 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6993 <exception_probes>: New fields.
6994 (free_breakpoint_probes): New function.
6995 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6996 `_Unwind_DebugHook'.
6997 (create_exception_master_breakpoint): Likewise.
6998 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6999 * infrun.c: Including necessary header files for handling SystemTap
7000 probes.
7001 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7002 via SystemTap probes.
7003 (check_exception_resume): Remove `func' argument. Handle exception
7004 unwinding breakpoint set via a SystemTap probe.
7005 (insert_exception_resume_from_probe): New function.
7006
55aa24fb
SDJ
70072012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7008 Tom Tromey <tromey@redhat.com>
7009 Jan Kratochvil <jan.kratochvil@redhat.com>
7010
7011 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7012 (COMMON_OBS): Likewise.
7013 (HFILES_NO_SRCDIR): Add `probe'.
7014 * NEWS: Mention support for static and SystemTap probes.
7015 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7016 SystemTap probes' arguments parser.
7017 * arm-linux-tdep.c: Including headers needed to perform the parsing
7018 of SystemTap probes' arguments.
7019 (arm_stap_is_single_operand): New function.
7020 (arm_stap_parse_special_token): Likewise.
7021 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7022 probes' arguments parser.
7023 * ax-gdb.c (require_rvalue): Removing static declaration.
7024 (gen_expr): Likewise.
7025 * ax-gdb.h (gen_expr): Declaring function.
7026 (require_rvalue): Likewise.
7027 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7028 (bkpt_probe_breakpoint_ops): New variable.
7029 (momentary_breakpoint_from_master): Set the `probe' value.
7030 (add_location_to_breakpoint): Likewise.
7031 (break_command_1): Using proper breakpoint_ops according to the
7032 argument passed by the user in the command line.
7033 (bkpt_probe_insert_location): New function.
7034 (bkpt_probe_remove_location): Likewise.
7035 (bkpt_probe_create_sals_from_address): Likewise.
7036 (bkpt_probe_decode_linespec): Likewise.
7037 (tracepoint_probe_create_sals_from_address): Likewise.
7038 (tracepoint_probe_decode_linespec): Likewise.
7039 (tracepoint_probe_breakpoint_ops): New variable.
7040 (trace_command): Using proper breakpoint_ops according to the
7041 argument passed by the user in the command line.
7042 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7043 static probes on breakpoints and tracepoints.
7044 * breakpoint.h (struct bp_location) <probe>: New field.
7045 * cli-utils.c (skip_spaces_const): New function.
7046 (extract_arg): Likewise.
7047 * cli-utils.h (skip_spaces_const): Likewise.
7048 (extract_arg): Likewise.
7049 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7050 * configure.ac: Append `stap-probe.o' to be generated when ELF
7051 support is present.
7052 * configure: Regenerate.
7053 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7054 * elfread.c: Include `probe.h' and `arch-utils.h'.
7055 (probe_key): New variable.
7056 (elf_get_probes): New function.
7057 (elf_get_probe_argument_count): Likewise.
7058 (elf_evaluate_probe_argument): Likewise.
7059 (elf_compile_to_ax): Likewise.
7060 (elf_symfile_relocate_probe): Likewise.
7061 (stap_probe_key_free): Likewise.
7062 (elf_probe_fns): New variable.
7063 (elf_sym_fns): Add `sym_probe_fns' value.
7064 (elf_sym_fns_lazy_psyms): Likewise.
7065 (elf_sym_fns_gdb_index): Likewise.
7066 (_initialize_elfread): Initialize objfile cache for static
7067 probes.
7068 * gdb_vecs.h (struct probe): New forward declaration.
7069 (probe_p): New VEC declaration.
7070 * gdbarch.c: Regenerate.
7071 * gdbarch.h: Regenerate.
7072 * gdbarch.sh (stap_integer_prefix): New variable.
7073 (stap_integer_suffix): Likewise.
7074 (stap_register_prefix): Likewise.
7075 (stap_register_suffix): Likewise.
7076 (stap_register_indirection_prefix): Likewise.
7077 (stap_register_indirection_suffix): Likewise.
7078 (stap_gdb_register_prefix): Likewise.
7079 (stap_gdb_register_suffix): Likewise.
7080 (stap_is_single_operand): New function.
7081 (stap_parse_special_token): Likewise.
7082 (struct stap_parse_info): Forward declaration.
7083 * i386-tdep.c: Including headers needed to perform the parsing
7084 of SystemTap probes' arguments.
7085 (i386_stap_is_single_operand): New function.
7086 (i386_stap_parse_special_token): Likewise.
7087 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7088 probes' arguments parser.
7089 * i386-tdep.h (i386_stap_is_single_operand): New function.
7090 (i386_stap_parse_special_token): Likewise.
7091 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7092 * mipsread.c (ecoff_sym_fns): Likewise.
7093 * objfiles.c (objfile_relocate1): Support relocation for static
7094 probes.
7095 * parse.c (prefixify_expression): Remove static declaration.
7096 (initialize_expout): Likewise.
7097 (reallocate_expout): Likewise.
7098 * parser-defs.h (initialize_expout): Declare function.
7099 (reallocate_expout): Likewise.
7100 (prefixify_expression): Likewise.
7101 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7102 of SystemTap probes' arguments.
7103 (ppc_stap_is_single_operand): New function.
7104 (ppc_stap_parse_special_token): Likewise.
7105 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7106 probes' arguments parser.
7107 * probe.c: New file, for generic statically defined probe support.
7108 * probe.h: Likewise.
7109 * s390-tdep.c: Including headers needed to perform the parsing of
7110 SystemTap probes' arguments.
7111 (s390_stap_is_single_operand): New function.
7112 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7113 probes' arguments parser.
7114 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7115 * stap-probe.c: New file, for SystemTap probe support.
7116 * stap-probe.h: Likewise.
7117 * symfile.h: Include `gdb_vecs.h'.
7118 (struct sym_probe_fns): New struct.
7119 (struct sym_fns) <sym_probe_fns>: New field.
7120 * symtab.c (init_sal): Initialize `probe' field.
7121 * symtab.h (struct probe): Forward declaration.
7122 (struct symtab_and_line) <probe>: New field.
7123 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7124 locations.
7125 (stop_tracing): Likewise.
7126 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7127
22d2b532
SDJ
71282012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7129 Tom Tromey <tromey@redhat.com>
7130
7131 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7132 and to compile agent expressions.
7133 * infrun.c (siginfo_make_value): New argument `ignore'.
7134 (siginfo_funcs): New struct.
7135 (_initialize_infrun): New argument when calling
7136 `create_internalvar_type_lazy'.
7137 * thread.c (thread_id_make_value): New argument `ignore'.
7138 (thread_funcs): New struct.
7139 (_initialize_thread): New argument when calling
7140 `create_internalvar_type_lazy'.
7141 * tracepoint.c (sdata_make_value): New argument `ignore'.
7142 (sdata_funcs): New struct.
7143 (_initialize_tracepoint): New argument when calling
7144 `create_internalvar_type_lazy'.
7145 * value.c (make_value): New struct.
7146 (create_internalvar_type_lazy): New argument `data'.
7147 (compile_internalvar_to_ax): New function.
7148 (value_of_internalvar): Properly handling `make_value' case.
7149 (clear_internalvar): Likewise.
7150 (show_convenience): Adding `TRY_CATCH' block.
7151 * value.h (internalvar_make_value): Delete, replace by...
7152 (struct internalvar_funcs): ... this.
7153 (create_internalvar_type_lazy) <fun>: Delete argument.
7154 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7155 (compile_internalvar_to_ax): New function.
7156 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7157 (tlb_funcs): New struct.
7158 (_initialize_windows_tdep): New argument when calling
7159 `create_internalvar_type_lazy'.
7160
91da1414
MW
71612012-04-27 Mark Wielaard <mjw@redhat.com>
7162
7163 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7164 see whether it is an address or a constant offset from DW_AT_low_pc.
7165 (dwarf2_record_block_ranges): Likewise.
7166 (read_partial_die): Likewise.
7167
4ab9d8ec
MW
71682012-04-26 Mark Wielaard <mjw@redhat.com>
7169
7170 * MAINTAINERS (Write After Approval): Add myself to the list.
7171
a0911fd0
MR
71722012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7173
7174 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7175 (proc_prettyprint_signal): Likewise.
7176 (proc_prettyprint_faultset): Likewise.
7177 (proc_prettyprint_fault): Likewise.
7178 (proc_prettyprint_actionset): Likewise.
7179 (proc_prettyprint_flags): Move to new proc-flags.c section.
7180 (proc_prettyfprint_flags): New prototype.
7181 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7182 (proc_syscall, proc_cursig): Likewise.
7183 (proc_set_kill_on_last_close): Likewise.
7184 (proc_unset_kill_on_last_close): Likewise.
7185 (proc_set_watchpoint): Make static.
7186 (proc_delete_dead_threads): Likewise.
7187 (procfs_set_watchpoint): Likewise.
7188 (_initialize_procfs): Add prototype.
7189 * proc-events.c: Include proc-utils.h.
7190 (init_syscall_table): Make static.
7191 * proc-api.c (_initialize_proc_api): Add prototype.
7192 * proc-flags.c: Include proc-utils.h.
7193
9009e1ae
MR
71942012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7195
7196 * configure.ac: Add AC_ARG_PROGRAM.
7197 * configure: Regenerate.
7198
4fae6e18
JK
71992012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7200
7201 Fix DW_AT_lower_bound defaults for DWARF-4+.
7202 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7203 high. New variable low_default_is_valid. Implement DWARF-4+
7204 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7205 no default by the DWARF standard.
7206
14132e89 72072012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7208 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7209
7210 * infrun.c (handle_inferior_event): Move the check for return
7211 trampolines ahead of the check for function trampolines.
7212 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7213 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7214 (mips_str_mips16_ret_stub): Likewise.
7215 (mips_str_call_fp_stub): Likewise.
7216 (mips_str_call_stub): Likewise.
7217 (mips_str_fn_stub): Likewise.
7218 (mips_str_pic): Likewise.
7219 (mips_in_frame_stub): New function.
7220 (mips_unwind_pc): Return the return address rather than the PC
7221 if the PC of an intermediate frame is inside a call thunk.
7222 (mips_is_stub_suffix): New function.
7223 (mips_is_stub_mode): Likewise.
7224 (mips_get_mips16_fn_stub_pc): Likewise.
7225 (mips_skip_mips16_trampoline_code): Update to handle all the
7226 currently generated stub types. Don't recurse into __fn_stub
7227 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7228 Use cooked register accesses.
7229 (mips_in_return_stub): Reintroduce function.
7230 (mips_skip_trampoline_code): Traverse trampolines recursively.
7231 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7232
518f0db5 72332012-04-26 Joel Brobecker <brobecker@adacore.com>
7234
7235 GDB 7.4.1 released.
7236
3184d3f9
JL
72372012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7238
7239 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7240 * features/arm-with-m-vfp-d16.xml: New file. Describes
7241 Cortex-M with VFPv4-sp-d16 FPU register layout.
7242 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7243 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7244 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7245 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7246 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7247
b6201d44
DE
72482012-04-25 Doug Evans <dje@google.com>
7249
7250 * cli/cli-decode.c (print_doc_line): Use stream instead of
7251 current_uiout.
7252
4e2f8df6
SDJ
72532012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7254
7255 * features/arm-with-iwmmxt.c: Regenerate.
7256 * features/arm-with-m-fpa-layout.c: Likewise.
7257 * features/arm-with-m.c: Likewise.
7258 * features/arm-with-neon.c: Likewise.
7259 * features/arm-with-vfpv2.c: Likewise.
7260 * features/arm-with-vfpv3.c: Likewise.
7261 * features/mips-dsp-linux.c: Likewise.
7262 * features/mips-linux.c: Likewise.
7263 * features/mips64-dsp-linux.c: Likewise.
7264 * features/mips64-linux.c: Likewise.
7265 * features/s390-linux32.c: Likewise.
7266 * features/s390-linux32v1.c: Likewise.
7267 * features/s390-linux32v2.c: Likewise.
7268 * features/s390-linux64.c: Likewise.
7269 * features/s390-linux64v1.c: Likewise.
7270 * features/s390-linux64v2.c: Likewise.
7271 * features/s390x-linux64.c: Likewise.
7272 * features/s390x-linux64v1.c: Likewise.
7273 * features/s390x-linux64v2.c: Likewise.
7274 * features/tic6x-c62x-linux.c: Likewise.
7275 * features/tic6x-c62x.c: Likewise.
7276 * features/tic6x-c64x-linux.c: Likewise.
7277 * features/tic6x-c64x.c: Likewise.
7278 * features/tic6x-c64xp-linux.c: Likewise.
7279 * features/tic6x-c64xp.c: Likewise.
7280 * target-descriptions.c: Only generate `field_type' and `type'
7281 variables when needed.
7282
2def3e66
JB
72832012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7284
7285 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7286
a766d390
DE
72872012-04-25 Doug Evans <dje@google.com>
7288
7289 Initial pass at Go language support.
7290 * NEWS: Mention Go.
7291 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7292 go-valprint.c.
7293 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7294 (YYFILES): Add go-exp.c.
7295 (YYOBJ): Add go-exp.o.
7296 (local-maintainer-clean): Delete go-exp.c.
7297 * defs.h (enum language): Add language_go.
7298 * dwarf2read.c: #include "go-lang.h".
7299 (fixup_go_packaging): New function.
7300 (process_full_comp_unit): Call it when processing Go CUs.
7301 (dwarf2_physname): Add Go support.
7302 (read_file_scope): Handle missing language spec for GNU Go.
7303 (set_cu_language): Handle DW_LANG_Go.
7304 * go-exp.y: New file.
7305 * go-lang.h: New file.
7306 * go-lang.c: New file.
7307 * go-typeprint.c: New file.
7308 * go-valprint.c: New file.
7309 * symtab.c: #include "go-lang.h".
7310 (symbol_set_language): Handle language_go.
7311 (symbol_find_demangled_name, symbol_set_names): Ditto.
7312 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7313
4e2af517
JM
73142012-04-24 Jim Meyering <meyering@redhat.com>
7315
7316 avoid a few strncpy-induced buffer overruns
7317 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7318 fname and psargs before trying to concatenate.
7319 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7320 "name" before applying strchr.
7321
b77b7f52
SCR
73222012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7323
7324 * CONTRIBUTE: Use unified diff instead of context diff when
7325 generating patches.
7326
6321c22a
MR
73272012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7328
7329 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7330 code. Handle JR.HB correctly.
7331
742c84f6
MR
73322012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7333
7334 * mips-tdep.c
7335 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7336 with the other MIPS16 helpers.
7337
7fc7e0c3
SDJ
73382012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7339
7340 * observer.sh: Conditionally declare `args', thus cleaning up
7341 unused instances of this variable.
7342
20388dd6
YQ
73432012-04-24 Yao Qi <yao@codesourcery.com>
7344
7345 Revert this patch to allow breakpoint always-inserted
7346 in record target.
7347 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7348 * breakpoint.c: Include record.h.
7349 (breakpoints_always_inserted_mode): Return false when the record
7350 target is in use.
20388dd6
YQ
7351
7352 * breakpoint.c (iterate_over_bp_locations): New.
7353 * breakpoint.h: Declare.
7354 New typedef walk_bp_location_callback.
7355 * record.c (record_open): Call record_init_record_breakpoints.
7356 (record_sync_record_breakpoints): New.
7357 (record_init_record_breakpoints): New.
7358 * NEWS: Mention supporting breakpoint always-inserted mode in
7359 record target.
7360
4734f50e
MK
73612012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7362
7363 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7364 any thread.
7365
c326b90e
YQ
73662012-04-24 Yao Qi <yao@codesourcery.com>
7367
7368 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7369 (is_catchpoint): ... it.
7370 (print_one_breakpoint_location): Caller update.
7371 * breakpoint.h: Update declaration.
7372
d8fb5a1e
DM
73732012-04-23 David S. Miller <davem@davemloft.net>
7374
7375 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7376
34431a2a
TT
73772012-04-23 Tom Tromey <tromey@redhat.com>
7378
7379 * buildsym.c (add_free_pendings): Remove.
7380 * buildsym.h (add_free_pendings): Remove.
7381
4568ecf9
DE
73822012-04-23 Doug Evans <dje@google.com>
7383
7384 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7385 attr.u.unsnd instead of attr.u.addr.
7386 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7387 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7388 DW_FORM_ref_udata.
7389 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7390 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7391 DW_FORM_ref_udata.
7392 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7393
dca9aa3a
MR
73942012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7395
7396 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7397 (mips_o32_return_value): Likewise.
7398 (mips_o64_return_value): Likewise.
7399
c8ea1972
PH
74002012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7401
7402 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7403 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7404 their treatment in eval.c.
c8ea1972 7405
8d1b3521
DM
74062012-04-21 David S. Miller <davem@davemloft.net>
7407
7408 * sparc-tdep.c (X_DISP10): Define.
7409 (sparc_analyze_control_transfer): Handle compare-and-branch.
7410
03145bf4
JL
74112012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7412
7413 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7414 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7415
004159a2 74162012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7417 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7418
7419 * mips-tdep.c (mips_float_register_p): New function.
7420 (mips_convert_register_float_case_p): Use mips_float_register_p.
7421 (mips_register_type): Likewise.
7422 (mips_print_register): Likewise.
7423 (print_gp_register_row): Likewise.
7424 (mips_print_registers_info): Likewise.
7425
7f0e6aae
MR
74262012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7427
7428 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7429 of mips16 symbols.
7430
bc17beea
AP
74312012-04-20 Andrew Pinski <apinski@cavium.com>
7432
7433 * MAINTAINERS (Write After Approval): Add myself to the list.
7434
1730a5a5
SDJ
74352012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7436
7437 * MAINTAINERS: Update my e-mail address.
7438
38ea300a
PA
74392012-04-20 Pedro Alves <palves@redhat.com>
7440
7441 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7442 $srcdir.
7443 * configure: Regenerate.
7444
111dfaae
SDJ
74452012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7446
7447 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7448 declaration.
7449 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7450
4fb2c64a
JK
74512012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7452
7453 Fix compilation compatibility with python-2.4
7454 * python/py-type.c (convert_field): Cast ADDRSTRING for
7455 PyObject_SetAttrString as non-const. New comment.
7456
6328eb38
TT
74572012-04-19 Tom Tromey <tromey@redhat.com>
7458
7459 * top.c (quit_target): Use all_cleanups.
7460 * main.c (captured_command_loop): Use all_cleanups.
7461 * exceptions.c (throw_exception): Use all_cleanups.
7462
c971b7fa
PA
74632012-04-19 Pedro Alves <palves@redhat.com>
7464
7465 * Makefile.in (GNULIB_BUILDDIR): New.
7466 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7467 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7468 (CLEANDIRS). Remove gnulib/import.
7469 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7470 (all-lib): Ditto.
7471 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7472 (gnulib/import/Makefile): Replace gnulib/import with
7473 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7474 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7475 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7476 acx_configure_dir.m4.
7477 * acinclude.m4: Include acx_configure_dir.m4.
7478 * acx_configure_dir.m4: New file.
7479 * aclocal.m4: Regenerate.
a09130f9
PA
7480 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7481 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7482 (GNULIB): New variable.
7483 (GNULIB_STDINT_H): Adjust.
7484 (AC_OUTPUT): Don't output gnulib/Makefile.
7485 * gdb/defs.h: Include build-gnulib/config.h.
7486 * aclocal.m4: Regenerate.
7487 * config.in: Regenerate.
7488 * configure: Regenerate.
7489
7490 * gnulib/Makefile.in: New file.
7491 * gnulib/configure.ac: New file.
7492 * gnulib/aclocal.m4: New file.
7493 * gnulib/config.in: New file.
7494 * gnulib/configure: New file.
c971b7fa
PA
7495 * gnulib/: Re-run gnulib-tool to adjust.
7496
b10faa68
DE
74972012-04-19 Doug Evans <dje@google.com>
7498
7499 * cleanups.h (struct cleanup): Move to cleanups.c.
7500 (make_cleanup_dtor_ftype): New typedef.
7501 (make_cleanup_dtor): Use it.
7502 (ALL_CLEANUPS): Replace with ...
7503 (all_cleanups): ... this. Declare. All uses updated.
7504 * cleanups.c: #include "gdb_assert.h".
7505 (sentinel_cleanup): New static global.
7506 (SENTINEL_CLEANUP): Define.
7507 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7508 (make_my_cleanup2): Assert result is non-NULL.
7509 (all_cleanups): New function.
7510 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7511 of NULL.
7512
d8c267cc
PA
75132012-04-19 Pedro Alves <palves@redhat.com>
7514
7515 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7516 Adjust paths to gnulib imported files.
7517
809277f8
PA
75182012-04-19 Pedro Alves <palves@redhat.com>
7519
7520 * gnulib/: Move whole directory ...
7521 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7522 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7523 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7524 (aclocal_m4_deps): Adjust.
7525 * aclocal.m4: Regenerate.
7526 * configure: Regenerate.
7527 * configure.ac: Adjust AC_OUTPUT output.
7528
aad9eab9
YQ
75292012-04-19 Yao Qi <yao@codesourcery.com>
7530
7531 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7532 (vec.o): New rule.
7533 * vec.c: Move it ...
7534 * common/vec.c: ... here.
7535 * vec.h: Move it ...
7536 * common/vec.h: ... here.
7537
48fe4669
YQ
75382012-04-19 Yao Qi <yao@codesourcery.com>
7539
7540 * gdb-code-style.el: New.
7541
770d76d7
PA
75422012-04-18 Pedro Alves <palves@redhat.com>
7543
7544 Update gnulib from latest git.
7545 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7546
7547 * gnulib/Makefile.am: Update.
7548 * gnulib/dummy.c: Update.
7549 * gnulib/extra/arg-nonnull.h: Update.
7550 * gnulib/extra/c++defs.h: Update.
7551 * gnulib/extra/update-copyright: Update.
7552 * gnulib/extra/warn-on-use.h: Update.
7553 * gnulib/inttypes.in.h: Update.
7554 * gnulib/m4/00gnulib.m4: Update.
7555 * gnulib/m4/extensions.m4: Update.
7556 * gnulib/m4/gnulib-cache.m4: Update.
7557 * gnulib/m4/gnulib-common.m4: Update.
7558 * gnulib/m4/gnulib-comp.m4: Update.
7559 * gnulib/m4/gnulib-tool.m4: Update.
7560 * gnulib/m4/include_next.m4: Update.
7561 * gnulib/m4/inttypes-pri.m4: Update.
7562 * gnulib/m4/inttypes.m4: Update.
7563 * gnulib/m4/longlong.m4: Update.
7564 * gnulib/m4/memchr.m4: Update.
7565 * gnulib/m4/memmem.m4: Update.
7566 * gnulib/m4/mmap-anon.m4: Update.
7567 * gnulib/m4/multiarch.m4: Update.
7568 * gnulib/m4/onceonly.m4: Update.
7569 * gnulib/m4/stddef_h.m4: Update.
7570 * gnulib/m4/stdint.m4: Update.
7571 * gnulib/m4/string_h.m4: Update.
7572 * gnulib/m4/warn-on-use.m4: Update.
7573 * gnulib/m4/wchar_h.m4: Update.
7574 * gnulib/m4/wchar_t.m4: Update.
7575 * gnulib/m4/wint_t.m4: Update.
7576 * gnulib/memchr.c: Update.
7577 * gnulib/memmem.c: Update.
7578 * gnulib/stddef.in.h: Update.
7579 * gnulib/stdint.in.h: Update.
7580 * gnulib/str-two-way.h: Update.
7581 * gnulib/string.in.h: Update.
7582 * gnulib/wchar.in.h: Update.
7583
7584 * gnulib/extra/arg-nonnull.h: Delete.
7585 * gnulib/extra/c++defs.h: Delete.
7586 * gnulib/extra/warn-on-use.h: Delete.
7587 * gnulib/m4/wchar_h.m4: Delete.
7588 * gnulib/m4/wint_t.m4: Delete.
7589 * gnulib/wchar.in.h: Delete.
7590
7591 * gnulib/extra/snippets/arg-nonnull.h: New.
7592 * gnulib/extra/snippets/c++defs.h: New.
7593 * gnulib/extra/snippets/warn-on-use.h: New.
7594
7595 * aclocal.m4: Regenerate.
7596 * config.in: Regenerate.
7597 * configure: Regenerate.
7598 * gnulib/Makefile.in: Regenerate.
7599
174e088e
PA
76002012-04-18 Pedro Alves <palves@redhat.com>
7601
7602 Reimport the update-copyright module from gnulib
7603 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7604
7605 * configure: Regenerate.
7606 * gnulib/Makefile.am: Update.
7607 * gnulib/Makefile.in: Regenerate.
7608 * gnulib/extra/update-copyright: Update.
7609 * gnulib/m4/gnulib-cache.m4: Update.
7610 * gnulib/m4/gnulib-comp.m4: Update.
7611
7f533142
JB
76122012-04-18 Tristan Gingold <gingold@adacore.com>
7613
7614 * configure.ac (aix): Put -lpthread into libs.
7615 * configure: Regenerate.
7616
001822aa
TT
76172012-04-18 Tom Tromey <tromey@redhat.com>
7618
7619 * linespec.c (convert_linespec_to_sals): Don't use
7620 SYMBOL_OBJ_SECTION.
7621 (compare_msymbols): Arguments are minsym_and_objfile, not
7622 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7623
db026a31
PA
76242012-04-18 Pedro Alves <palves@redhat.com>
7625
7626 Revert gnulib/ part of:
7627 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7628 Copyright year update in most files (performed by copyright.sh).
7629
12df843f
JK
76302012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7631
7632 Fix 64-bit constants on 32-bit hosts.
7633 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7634 from unsigned long to ULONGEST.
7635 (read_signed_leb128): Change declaration return type from long to
7636 LONGEST.
7637 (dwarf2_const_value_attr): Change declaration parameter value from long
7638 to LONGEST.
7639 (dwarf2_compute_name): Change variable value from long to LONGEST.
7640 (read_unsigned_leb128): Change return type, variable result and some
7641 casts from unsigned long to ULONGEST.
7642 (read_signed_leb128): Change return type, variable result and some
7643 casts from long to LONGEST.
7644 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7645 value from long to LONGEST.
7646 (dwarf2_const_value): Change variable value from long to LONGEST.
7647 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7648 plongest and hex_string.
7649 * symtab.h (struct general_symbol_info): Change ivalue from long to
7650 LONGEST, remove the comment.
7651 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7652 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7653
14e75d8e
JK
76542012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7655
7656 PR symtab/7259:
7657 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7658 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7659 (ada_discrete_type_low_bound): Fix function comment. Use
7660 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7661 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7662 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7663 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7664 Use TYPE_FIELD_ENUMVAL.
7665 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7666 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7667 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7668 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7669 TYPE_CODE_ENUM.
7670 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7671 * dwarf2read.c (process_enumeration_scope): Likewise.
7672 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7673 field.bitpos.
7674 (class StructMainTypePrettyPrinter): Support also
7675 FIELD_LOC_KIND_ENUMVAL.
7676 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7677 TYPE_CODE_ENUM.
7678 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7679 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7680 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7681 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7682 field enumval.
7683 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7684 accommodate enumval.
7685 (struct call_site): Adjust loc_kind to accommodate enumval.
7686 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7687 (TYPE_FIELD_ENUMVAL): New macros.
7688 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7689 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7690 TYPE_CODE_ENUM.
7691 * p-typeprint.c (pascal_type_print_base): Likewise.
7692 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7693 enumval.
7694 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7695 * python/py-type.c (convert_field): New variable addrstring. Use
7696 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7697 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7698 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7699 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7700 TYPE_CODE_ENUM.
7701 * valprint.c (generic_val_print): Likewise.
7702
380bca97
DE
77032012-04-17 Doug Evans <dje@google.com>
7704
dcc07052
DE
7705 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7706
380bca97
DE
7707 * dwarf2read.c: Whitespace fixes.
7708 (lookup_signatured_type): Tweak comment.
7709 (get_die_type_at_offset): Fix comment.
7710
ec92004f
JB
77112012-04-17 Joel Brobecker <brobecker@adacore.com>
7712
7713 * xcoffread.c (xcoff_secnum_to_sections): New function.
7714 (secnum_to_section, secnum_to_bfd_section): Reimplement
7715 using xcoff_secnum_to_sections. Rename "secnum" parameter
7716 into "n_scnum".
7717 (RECORD_MINIMAL_SYMBOL): Delete.
7718 (record_minimal_symbol): New function.
7719 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7720 by call to record_minimal_symbol and set misc_func_recorded
7721 to 1. Set last_csect_sec to the XCOFF section index instead
7722 of GDB's section_offset index. Update calls to
7723 prim_record_minimal_symbol_and_info to pass the BFD section
7724 as well.
7725
40301fb7
JB
77262012-04-17 Joel Brobecker <brobecker@adacore.com>
7727
7728 * xcoffread.c (read_xcoff_symtab): Delete variables
7729 last_csect_val and last_csect_sec and associated code.
7730
e0088cfd
DE
77312012-04-17 Doug Evans <dje@google.com>
7732
58d5e2c3
DE
7733 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7734 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7735 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7736 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7737
c27f5738
DE
7738 * cleanups.h: New file.
7739 * cleanups.c: New file.
7740 * Makefile.in (SFILES): Add cleanups.c.
7741 (HFILES_NO_SRCDIR): Add cleanups.h.
7742 (COMMON_OBS): Add cleanups.o.
7743 * defs.h (struct cleanup): Moved to cleanups.h.
7744 (do_cleanups,do_final_cleanups): Ditto.
7745 (discard_cleanups,discard_final_cleanups): Ditto
7746 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7747 (save_cleanups,save_final_cleanups): Ditto.
7748 (restore_cleanups,restore_final_cleanups): Ditto.
7749 (null_cleanup): Ditto.
7750 (make_my_cleanup,make_my_cleanup2): Ditto.
7751 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7752 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7753 (do_cleanups,do_final_cleanups): Ditto.
7754 (discard_cleanups,discard_final_cleanups): Ditto
7755 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7756 (save_cleanups,save_final_cleanups): Ditto.
7757 (restore_cleanups,restore_final_cleanups): Ditto.
7758 (null_cleanup): Ditto.
7759 (make_my_cleanup,make_my_cleanup2): Ditto.
7760 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7761
e0088cfd
DE
7762 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7763 make_my_cleanup.
7764 (make_cleanup_dyn_string_delete): Ditto.
7765 (make_cleanup_ui_file_delete): Ditto.
7766 (make_cleanup_ui_out_redirect_pop): Ditto.
7767 (make_cleanup_free_section_addr_info): Ditto.
7768 (make_cleanup_restore_integer): Ditto.
7769 (make_cleanup_unpush_target): Ditto.
7770 (make_cleanup_value_free_to_mark): Ditto.
7771 (make_cleanup_value_free): Ditto.
7772 (make_cleanup_free_so): Ditto.
7773
4dc84fd1
JK
77742012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7775
7776 New option "set debug auto-load".
7777 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7778 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7779 (auto_load_safe_path_vec_update)
7780 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7781 if DEBUG_AUTO_LOAD.
7782 (file_is_auto_load_safe): New parameters debug_fmt and ....
7783 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7784 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7785 caller by explanatory string.
7786 (_initialize_auto_load): Register "set debug auto-load".
7787 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7788 and ....
7789 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7790 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7791 by explanatory string.
7792 * main.c (captured_main): Likewise.
7793 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7794 (source_section_scripts): Likewise.
7795
bccbefd2
JK
77962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7797
7798 New option "set auto-load safe-path".
7799 * NEWS: New commands "set auto-load safe-path"
7800 and "show auto-load safe-path".
7801 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7802 (auto_load_safe_path, auto_load_safe_path_vec)
7803 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7804 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7805 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7806 (source_gdb_script_for_objfile): New variable is_safe. Call
7807 file_is_auto_load_safe. Return if it is not.
7808 (struct loaded_script): New field loaded.
7809 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7810 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7811 output "Missing" to "No".
7812 (_initialize_auto_load): New variable cmd. Initialize
7813 auto_load_safe_path. Register "set auto-load safe-path",
7814 "show auto-load safe-path" and "add-auto-load-safe-path".
7815 * auto-load.h (maybe_add_script): Add parameter loaded.
7816 (file_is_auto_load_safe): New declaration.
7817 * config.in: Regenerate.
7818 * configure: Regenerate.
7819 * configure.ac: New parameters --with-auto-load-safe-path
7820 and --without-auto-load-safe-path.
7821 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7822 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7823 * main.c (captured_main): Check file_is_auto_load_safe for
7824 LOCAL_GDBINIT.
7825 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7826 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7827 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7828 not.
7829
bf88dd68
JK
78302012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7831
7832 auto-load: Implementation.
7833 * NEWS: New descriptions for "info auto-load",
7834 "info auto-load gdb-scripts", "info auto-load python-scripts",
7835 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7836 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7837 and "show auto-load-scripts". New description for "set auto-load",
7838 "show auto-load", "set auto-load gdb-scripts",
7839 "show auto-load gdb-scripts", "set auto-load python-scripts",
7840 "show auto-load python-scripts", "set auto-load local-gdbinit",
7841 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7842 "show auto-load libthread-db".
7843 * auto-load.c: Remove include python/python-internal.h. Add includes
7844 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7845 cli/cli-setshow.h.
7846 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7847 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7848 (gdbpy_global_auto_load): Rename to ...
7849 (global_auto_load): ... here.
7850 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7851 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7852 (script_language_gdb, source_gdb_script_for_objfile): New.
7853 (struct loaded_script): New field language.
7854 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7855 LANGUAGE.
7856 (maybe_add_script): Add parameter language. Drop redundant
7857 entry.full_path initialization. Initialize entry.language and
7858 (*slot)->language.
7859 (auto_load_objfile_script): Change parameter suffix to language.
7860 Remove the call of maybe_add_script.
7861 Call language->source_script_for_objfile.
7862 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7863 New.
7864 (collect_matching_scripts): Adjust it for
7865 struct collect_matching_scripts_data.
7866 (auto_load_info_scripts_pattern_nl): New variable.
7867 (info_auto_load_scripts): Rename to ...
7868 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7869 for struct collect_matching_scripts_data.
7870 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7871 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7872 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7873 (auto_load_info_cmdlist_get): New.
7874 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7875 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7876 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7877 "info auto-load local-gdbinit".
7878 * auto-load.h (struct script_language): New.
7879 (gdbpy_global_auto_load): Rename to ...
7880 (global_auto_load): ... here.
7881 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7882 (auto_load_local_gdbinit_loaded): New declarations.
7883 (maybe_add_script): New parameter language.
7884 (auto_load_objfile_script): Change parameter suffix to language.
7885 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7886 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7887 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7888 declarations.
7889 * linux-thread-db.c: Include auto-load.h and ctype.h.
7890 (auto_load_thread_db, show_auto_load_thread_db): New.
7891 (struct thread_db_info): New field filename.
7892 (delete_thread_db_info): Call xfree for FILENAME.
7893 (try_thread_db_load): Initialize FILENAME.
7894 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7895 if !AUTO_LOAD_THREAD_DB.
7896 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7897 (_initialize_thread_db): Install auto_load_thread_db
7898 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7899 as "info auto-load libthread-db".
7900 * main.c (captured_main): Rename gdbpy_global_auto_load to
7901 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7902 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7903 (print_gdb_help): Extend the help for 'local init file'.
7904 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7905 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7906 (auto_load_scripts): Rename to ...
7907 (auto_load_python_scripts): ... here, update the comment.
7908 (gdbpy_load_auto_script_for_objfile): New declaration.
7909 (show_auto_load_python_scripts, script_language_python)
7910 (gdbpy_load_auto_script_for_objfile): New.
7911 (source_section_scripts): Refactor the code.
7912 (load_auto_scripts_for_objfile): Rename to ...
7913 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7914 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7915 (info_auto_load_python_scripts): New.
7916 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7917 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7918 Register "set auto-load-scripts" as its deprecated alias. Register
7919 "info auto-load python-scripts". Register "info auto-load-scripts" as
7920 its deprecated alias.
7921 (load_auto_scripts_for_objfile): Rename to ...
7922 (gdbpy_load_auto_scripts_for_objfile): ... here.
7923 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7924 (gdbpy_load_auto_scripts_for_objfile): ... here.
7925
e2207b9a
JK
79262012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7927
7928 auto-load: Move files.
7929 * Makefile.in (SFILES): Add auto-load.c.
7930 (HFILES_NO_SRCDIR): Add auto-load.h.
7931 (COMMON_OBS): Add auto-load.o.
7932 (distclean): Change .gdbinit for gdb-gdb.gdb.
7933 * auto-load.c: New file, with parts from python/py-auto-load.c.
7934 * auto-load.h: New file, with parts from python/python.h.
7935 * configure: Regenerate.
7936 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7937 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7938 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7939 * main.c: Include auto-load.h.
7940 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7941 command.h, observer.h and progspace.h to auto-load.c. Add include
7942 auto-load.h.
7943 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7944 (struct loaded_script, auto_load_pspace_data)
7945 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7946 (hash_loaded_script_entry, eq_loaded_script_entry)
7947 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7948 (maybe_add_script): Move to auto-load.c.
7949 (source_section_scripts): Change maybe_add_script parameters passing,
7950 use script_not_found_warning_print.
7951 (clear_section_scripts, auto_load_objfile_script)
7952 (auto_load_new_objfile, loaded_script_ptr)
7953 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7954 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7955 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7956 auto_load_new_objfile and info_auto_load_scripts initizations to
7957 auto-load.c.
7958 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7959
e4ab2fad
JK
79602012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7961
7962 Code cleanup.
7963 * charset.c (find_charset_names): Remove variables ix and elt.
7964 Use free_char_ptr_vec.
7965 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7966 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7967 debugdir_end. New variable debugdir_len.
7968 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7969 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7970 declarations.
7971 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7972 and elt. Use free_char_ptr_vec.
7973 * source.c (add_path): Remove variables argv, arg and argv_index.
7974 New variables dir_vec, back_to, ix and name.
7975 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7976 make_cleanup_freeargv. Remove variable separator. Simplify the code
7977 no longer expecting DIRNAME_SEPARATOR.
7978 (openp): Remove variable p, p1 and len. New variables dir_vec,
7979 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7980 no longer expecting DIRNAME_SEPARATOR.
7981 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7982 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7983 debugdir_end.
7984 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7985 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7986 (dirnames_to_char_ptr_vec): New functions.
7987
5ee4ed9f
JK
79882012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7989
7990 Code cleanup.
7991 * source.c (add_path): Remove always true conditional 'p == 0' and
7992 unindent its code block.
7993
f41f5e61
PA
79942012-04-17 Pedro Alves <palves@redhat.com>
7995
7996 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7997 (FIELD_BITPOS_LVAL): ... this.
7998 (FIELD_BITPOS): New.
7999 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8000 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8001 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8002 SET_FIELD_BITPOS.
8003 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8004 SET_FIELD_BITPOS.
8005 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8006 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8007 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8008 SET_FIELD_BITPOS.
8009
945b3a32
JK
80102012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8011
8012 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8013 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8014 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8015 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8016 * jv-lang.c (java_link_class_type): Likewise, once.
8017 * stabsread.c (read_enum_type): Likewise.
8018
42476b70
YQ
80192012-04-16 Yao Qi <yao@codesourcery.com>
8020
8021 * common/agent.c (agent_run_command): Add one more parameter `len'.
8022 Update callers.
8023 * common/agent.h: Update declaration.
8024 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8025 Update.
8026 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8027
8264ba82
AG
80282012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8029
8030 PR mi/13393
8031 * value.c (value_actual_type): New function.
8032 * value.h (value_actual_type): New declaration.
8033 * varobj.c (update_type_if_necessary): New function.
8034 (varobj_create): Call value_actual_type instead of
8035 value_type.
8036 (install_dynamic_child): distinct changed and type changed MI variable
8037 objects.
8038 (update_dynamic_varobj_children): Updated for install_dynamic_child
8039 change. All callers updated.
a09130f9 8040 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8041 the value changed and RTTI is used to determine the type.
8042 (create_child_with_value): Call value_actual_type instead of
8043 value_type.
a09130f9 8044 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8045 specify whether the given value should be casted to enclosing type.
8046 All callers updated.
8047
55a8c076
YQ
80482012-04-14 Yao Qi <yao@codesourcery.com>
8049
8050 Import gnulib module inttypes from git
8051 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8052 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8053 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8054 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8055 * aclocal.m4, config.in, configure: Regenerated.
8056 * gnulib/Makefile.am: Update.
8057 * gnulib/Makefile.in: Update.
8058 * gnulib/m4/gnulib-cache.m4: Update.
8059 * gnulib/m4/gnulib-comp.m4: Update.
8060 * gnulib/inttypes.in.h: New.
8061 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8062 * gnulib/m4/inttypes.m4: New.
55a8c076 8063
ca7781d2
LM
80642012-04-13 Luis Machado <lgustavo@codesourcery.com>
8065
8066 * infrun.c (resume): Update PC address to the real PC after
8067 preparing to do displaced stepping.
8068
e319fa28
DE
80692012-04-12 Doug Evans <dje@google.com>
8070
8071 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8072 All callers updated.
8073
15add3f5
MK
80742012-04-12 Mark Kettenis <kettenis@gnu.org>
8075
8076 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8077
52dc124a
DE
80782012-04-12 Doug Evans <dje@google.com>
8079
0e50663e
DE
8080 * dwarf2read.c (create_all_type_units): Renamed from
8081 create_debug_types_hash_table. All callers updated.
8082
52dc124a
DE
8083 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8084 local type_sig to sig_type, type_offset to type_offset_in_tu.
8085 (hash_signatured_type): Renamed from hash_type_signature,
8086 all callers updated.
8087 (eq_signatured_type): Renamed from eq_type_signature,
8088 all callers updated.
8089 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8090 (process_enumeration_scope): Ditto.
8091 (lookup_signatured_type_at_offset): Ditto.
8092 (load_full_type_unit, read_signatured_type): Ditto.
8093
248fd3bf
YQ
80942012-04-12 Yao Qi <yao@codesourcery.com>
8095
8096 * remote.c (async_remote_interrupt): Correct function name in
8097 debug message.
8098 (async_remote_interrupt_twice): Ditto.
8099
bc3aa6c3
DE
81002012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8101
8102 * source.c (find_and_open_source): Consistently pass resulting
8103 full path through xfullpath.
8104
9e529e1d
JK
81052012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8106
8107 Provide more specific displaced-stepping memory error message.
8108 * infrun.c (displaced_step_prepare): New variable status. Call
8109 target_read_memory instead of read_memory, provide more specific
8110 error message.
8111
82e0cec1
TG
81122012-04-11 Tristan Gingold <gingold@adacore.com>
8113
8114 PR gdb/13901
8115 * darwin-nat.c (darwin_execvp): Revert previous patch.
8116
d987a266
TG
81172012-04-11 Tristan Gingold <gingold@adacore.com>
8118
8119 PR gdb/13901
8120 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8121 in case of change.
8122
016b7430
TG
81232012-04-11 Tristan Gingold <gingold@adacore.com>
8124
8125 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8126 warning.
8127
06fc020f
SCR
81282012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8129
8130 New command 'explore' which helps explore values and types in
8131 scope.
8132 * NEWS: Add an entry about the new 'explore' command.
8133 * data-directory/Makefile.in: Add gdb/command/explore.py
8134 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8135 command using the GDB Python API.
06fc020f 8136
de0919f8 81372012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8138
8139 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8140 extension in jump target calculation.
8141
de0919f8 81422012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8143
8144 * mips-tdep.c (mips32_next_pc): Handle JALX.
8145
2f26ef89
YQ
81462012-04-10 Yao Qi <yao@codesourcery.com>
8147
8148 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8149
2e505b66
YQ
81502012-04-10 Yao Qi <yao@codesourcery.com>
8151
8152 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8153 and gnulib/m4/gnulib-tool.m4.
8154
0d99eb77
DE
81552012-04-10 Doug Evans <dje@google.com>
8156
8157 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8158 (load_partial_dies): Clarify comment.
8159 (find_partial_die): Support rereading type units.
8160 Clarify CU handling, if we know offset is in CU, don't search for the
8161 containing CU. Add comment regarding memory waste.
8162
9a82b8ff
L
81632012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8164
8165 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8166 i386/x32-avx and i386/x32-avx-linux.
8167 (i386/x32-expedite): New.
8168 (i386/x32-linux-expedite): Likewise.
8169 (i386/x32-avx-expedite): Likewise.
8170 (i386/x32-avx-linux-expedite): Likewise.
8171 ($(outdir)/i386/x32.dat): Likewise.
8172 ($(outdir)/i386/x32-linux.dat): Likewise.
8173 ($(outdir)/i386/x32-avx.dat): Likewise.
8174 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8175
8176 * features/i386/x32-avx-linux.xml: New file.
8177 * features/i386/x32-avx.xml: Likewise.
8178 * features/i386/x32-core.xml: Likewise.
8179 * features/i386/x32-linux.xml: Likewise.
8180 * features/i386/x32.xml: Likewise.
8181
8182 * features/i386/x32-avx-linux.c: New. Generated.
8183 * features/i386/x32-avx.c: Likewise.
8184 * features/i386/x32-linux.c: Likewise.
8185 * features/i386/x32.c: Likewise.
8186 * regformats/i386/x32-avx-linux.dat: Likewise.
8187 * regformats/i386/x32-avx.dat: Likewise.
8188 * regformats/i386/x32-linux.dat: Likewise.
8189 * regformats/i386/x32.dat: Likewise.
8190
ee41036f
TG
81912012-04-10 Tristan Gingold <gingold@adacore.com>
8192
8193 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8194 code to kill the inferior.
8195
a7aa5b8a
MK
81962012-04-09 Mark Kettenis <kettenis@gnu.org>
8197
8198 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8199 defines.
8200 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8201 defines.
a09130f9 8202 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8203 (yyvsp): New defines.
8204 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8205 defines.
8206 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8207 defines.
8208 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8209 defines.
8210 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8211 defines.
8212 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8213 defines.
8214
fb57d452
MK
82152012-04-09 Mark Kettenis <kettenis@gnu.org>
8216
a09130f9 8217 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8218 (sparc64_store_arguments): Fix coding style.
8219
cdc7b32f
MK
82202012-04-07 Mark Kettenis <kettenis@gnu.org>
8221
8222 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8223 complex floats, adjust some related comments and tighten a related
8224 assertion.
8225 (sparc64_extract_return_value): Handle complex floats.
8226
7adf1e79
DE
82272012-04-07 Doug Evans <dje@google.com>
8228
8229 * dwarf2read.c (load_partial_dies): Change condition to assert.
8230
50f1ae7b
DE
82312012-04-06 Doug Evans <dje@google.com>
8232
8233 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8234 "mov %rsp,%rbp".
8235
55fa75c3
KB
82362012-04-05 Kevin Buettner <kevinb@redhat.com>
8237
8238 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8239 fencepost error.
8240 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8241 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8242 architecture.
8243
40e084e1
KS
82442012-04-05 Keith Seitz <keiths@redhat.com>
8245
8246 * linespec.c (decode_compound): Remove.
8247 (enum offset_relative_sign): New enum.
8248 (struct line_offset): New struct.
8249 (struct linespec): New struct.
8250 (struct linespec_state): Move file_symtabs,
8251 user_filename, and user_function into struct linespec.
8252 Make result an anonymous struct holding vectors of
8253 symbolp and minsym_and_objfile_d.
8254 Add language member.
8255 (enum ls_token_type): New enum.
8256 (linespec_keywords): New array.
8257 (struct ls_token): New struct.
8258 (struct ls_parser): New struct.
8259 (linespec_lexer_lex_number): New function.
8260 (linespec_lexer_lex_keyword): New function.
8261 (is_ada_operator): New function.
8262 (skip_quote_char): New function.
8263 (copy_token_string): New function.
8264 (is_closing_quote_enclosed): New function.
8265 (find_parameter_list_end): New function.
8266 (linespec_lexer_lex_string): New function.
8267 (linespec_lexer_lex_one): New function.
8268 (linespec_lexer_consume_token): New function.
8269 (linespec_lexer_peek_token): New function.
8270 (cplusplus_error): Remove unused function.
8271 (find_methods): Update comment.
8272 (find_toplevel_char): Return const.
8273 (is_objc_method_format): Remove unused function.
8274 (find_toplevel_string): New function.
8275 (is_linespec_boundary): Remove.
8276 (symbol_not_found_error): New function.
8277 (find_method_overload_end): Remove function.
8278 (unexpected_linespec_error): New function.
8279 (keep_name_info): Remove.
8280 (linespec_parse_line_offset): New function.
8281 (linespec_parse_basic): New function.
8282 (canonicalize_linespec): New function.
8283 (decode_line_internal): Remove.
8284 (create_sals_line_offset): New function adapted from
8285 decode_all_digits.
8286 (convert_linespec_to_sals): New function.
8287 (parse_linespec): New function.
8288 (linespec_parser_new): New function.
8289 (linespec_state_destructor): Change parameter type to
8290 struct linespec_state *.
8291 Add language parameter.
8292 Remove freeing of moved members.
8293 (linespec_parser_delete): New function.
8294 (decode_line_full): Use parse_linespec and linespec_parser_new.
8295 (decode_line_1): Likewise.
8296 (decode_indirect): Rename to ...
8297 (linespec_expression_to_pc): ... this and rewrite
8298 to simply find CORE_ADDR, storing this result for later
8299 conversion to SALs.
8300 (locate_first_half): Remove.
8301 (deocde_objc): Add parameter LS.
8302 Initialize new struct collect_info members.
8303 Handle minimal symbols, too.
8304 (decode_compound): Delete.
8305 (lookup_prefix_sym): Rewrite.
8306 (compare_msymbols): New function.
8307 (find_method): Rewrite.
8308 Do not call cplusplus_error.
8309 (symtabs_from_filename): Rewrite.
8310 (collect_function_symbols): Delete.
8311 (find_function_symbols): Rewrite without ARGPTR-style
8312 processing.
8313 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8314 (decode_dollar): Adapted and renamed to ...
8315 (linespec_parse_variable): ... this.
8316 (find_linespec_symbols): New function.
8317 (decode_label): Adapted and renamed to ...
8318 (find_label_symbols): ... this.
8319 (decode_digits_list_mode): Add and use LS argument.
8320 (decode_digits_ordinary): Likewise.
8321 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8322 If in list mode, allow any symbol class. Otherwise, only
8323 permit LOC_BLOCK symbols.
8324 (minsym_found): Update comments.
8325 (search_minsyms_for_name): Do not convert the matching symbol
8326 into a SAL. Simply push the symbol and objfile into the
8327 result vector.
8328 (decode_variable): Delete. Contents adapted into
8329 find_linespec_symbols.
8330
8331 * cp-support.c (SKIP_SPACE): Remove.
8332 (operator_tokens): Remove unused global.
8333 (cp_validate_operator): Remove.
8334 * cp-support.h (cp_validate_operator): Remove declaration.
8335
a72c8f6a
JK
83362012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8337
8338 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8339 for TYPE_VPTR_FIELDNO.
8340 * valprint.c (valprint_check_validity): Make it global, move the
8341 function comment ...
8342 * value.h (valprint_check_validity): ... to this new declaration.
8343
cf9bb588
TG
83442012-04-02 Tristan Gingold <gingold@adacore.com>
8345
8346 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8347 the STATE32 api for i386 state.
8348 (i386_darwin_store_inferior_registers): Likewise.
8349
17092398
TG
83502012-04-02 Tristan Gingold <gingold@adacore.com>
8351
8352 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8353 SS offset.
8354 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8355 format_string.
8356
ece0061f
TG
83572012-04-02 Tristan Gingold <gingold@adacore.com>
8358
8359 PR gdb/13901
d987a266 8360 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8361
cf65ecd3
JK
83622012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8363
8364 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8365
9bc3523d
TT
83662012-03-30 Tom Tromey <tromey@redhat.com>
8367
8368 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8369 of TRY_CATCH. Fix error handling.
8370 * python/py-value.c (convert_value_from_python): Move 'old'
8371 declaration to innermost scope.
8372
b1ed564a
JB
83732012-03-29 Joel Brobecker <brobecker@adacore.com>
8374 Andrey Smirnov <andrew.smirnov@gmail.com>
8375
8376 -Wshadow warning fix.
8377 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8378 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8379 Adjust code accordingly.
8380
cb8e9b97
JB
83812012-03-29 Joel Brobecker <brobecker@adacore.com>
8382
8383 * ada-lang.c (symbol_completion_add): Rename parameter
8384 "encoded" into "encoded_p". Ajust code and documentation
8385 accordingly.
8386
c0af1706
JB
83872012-03-29 Joel Brobecker <brobecker@adacore.com>
8388 Andrey Smirnov <andrew.smirnov@gmail.com>
8389
8390 -Wshadow warning fix.
8391 * ada-lang.c (symbol_completion_add): Rename parameter
8392 "wild_match" into wild_match_p. Update code and documentation
8393 accordingly.
8394
6ea35997
JB
83952012-03-29 Joel Brobecker <brobecker@adacore.com>
8396
8397 * ada-lang.c (symbol_completion_match): Rename parameter
8398 "encoded" into "encoded_p". Ajust code and documentation
8399 accordingly.
8400
e701b3c0
JB
84012012-03-29 Joel Brobecker <brobecker@adacore.com>
8402 Andrey Smirnov <andrew.smirnov@gmail.com>
8403
8404 -Wshadow warning fix.
8405 * ada-lang.c (symbol_completion_match): Rename parameter
8406 "wild_match" into "wild_match_p". Adjust code and function
8407 documentation accordingly.
8408
5e2336be
JB
84092012-03-29 Joel Brobecker <brobecker@adacore.com>
8410 Andrey Smirnov <andrew.smirnov@gmail.com>
8411
8412 -Wshadow warning fix.
8413 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8414 "symbol_info" into "info". Adjust code accordingly.
8415 (ada_lookup_symbol): Likewise.
8416
9f88c959
JB
84172012-03-29 Joel Brobecker <brobecker@adacore.com>
8418
8419 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8420 of this function's documentation.
8421
82ccd55e
JB
84222012-03-29 Joel Brobecker <brobecker@adacore.com>
8423 Andrey Smirnov <andrew.smirnov@gmail.com>
8424
8425 -Wshadow warning fix.
8426 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8427 variable into "wild_match_p". Adjust code accordingly.
8428
d0a8ab18
JB
84292012-03-29 Joel Brobecker <brobecker@adacore.com>
8430 Andrey Smirnov <andrew.smirnov@gmail.com>
8431
8432 -Wshadow warning fix.
8433 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8434 parameter into "wild_match_p". Adjust code accordingly.
8435 Document this parameter in the function description.
8436
48b78332
JB
84372012-03-29 Joel Brobecker <brobecker@adacore.com>
8438 Andrey Smirnov <andrew.smirnov@gmail.com>
8439
8440 -Wshadow warning fix.
8441 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8442 "wild_match" parameter to "wild_match_p" (-Wshadow).
8443
2e6e0353
JB
84442012-03-29 Joel Brobecker <brobecker@adacore.com>
8445
8446 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8447 in function documentation.
8448
dc4024cd
JB
84492012-03-29 Joel Brobecker <brobecker@adacore.com>
8450 Andrey Smirnov <andrew.smirnov@gmail.com>
8451
8452 -Wshadow warning fix.
8453 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8454 variable into wild_match_p. Adjust code accordingly.
8455
6c88661c
JB
84562012-03-29 Joel Brobecker <brobecker@adacore.com>
8457 Andrey Smirnov <andrew.smirnov@gmail.com>
8458
8459 * ada-valprint.c (ada_val_print_1): Move the code handling
8460 TYPE_CODE_ENUM inside its own lexical block. Declare
8461 variables len and val there, instead of in the function's
8462 top level block. Avoid declaring deref_val again in a way
8463 that shadows another variable of the same name declared
8464 in one of the up-level blocks. Just re-use the up-level
8465 variable instead.
8466
4e5c77fe
JB
84672012-03-29 Joel Brobecker <brobecker@adacore.com>
8468
8469 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8470 Replace block_found argument by symbol_info. Adjust
8471 implementation accordingly. Add function documentation.
8472 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8473 Fix documentation.
8474 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8475 * ada-exp.y (write_object_renaming): Adjust to new
8476 ada_lookup_encoded_symbol API.
8477
1c0ac8c7
JB
84782012-03-29 Joel Brobecker <brobecker@adacore.com>
8479
8480 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8481 documentation.
8482
2aaed979
KB
84832012-03-28 Rathish C <rathish.c@kpitcummins.com>
8484
8485 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8486 (v850_register_name): Add the mpu and fpu register names.
8487 (v850e_register_name): Add the mpu and fpu register names.
8488 (v850e2_register_name): New function.
a09130f9 8489 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8490 bfd_mach_v850e2v3.
8491
927fbba6
JB
84922012-03-28 Joel Brobecker <brobecker@adacore.com>
8493
8494 * NEWS: Add entry for Ada varobj support.
8495
d32cafc7
JB
84962012-03-28 Joel Brobecker <brobecker@adacore.com>
8497
8498 * varobj.c (default_value_is_changeable_p): New function,
8499 extracted from varobj_value_is_changeable_p. Add declaration.
8500 (ada_value_is_changeable_p): New function, extracted from
8501 varobj_value_is_changeable_p. Add declaration.
8502 (struct language_specific): New field "value_is_changeable_p".
8503 (languages): Add entries for new field.
8504 (varobj_create): Set language before calling install_new_value.
8505 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8506 "value_is_changeable_p" language callback.
8507
181875a4
JB
85082012-03-28 Joel Brobecker <brobecker@adacore.com>
8509
8510 * ada-varobj.h, ada-varobj.c: New files.
8511 * Makefile.in (SFILES): Add ada-varobj.c.
8512 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8513 (COMMON_OBS): Add ada-varobj.o.
8514
7a290c40
JB
85152012-03-28 Joel Brobecker <brobecker@adacore.com>
8516
8517 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8518 (struct language_specific): New field "value_has_mutated".
8519 (languages): Set field "value_has_mutated" in each entry of array.
8520 (varobj_value_has_mutated): New function.
8521 (varobj_udpdate): Add handling of type mutation.
8522 (value_of_root): Add handling of type mutation.
8523 (ada_value_has_mutated): New function.
8524
ca9b8b9c
PA
85252012-03-28 Pedro Alves <palves@redhat.com>
8526
8527 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8528 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8529
cc0265cd
TT
85302012-03-28 Tom Tromey <tromey@redhat.com>
8531
8532 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8533 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8534 before returning.
8535
3ad2ec6f
TT
85362012-03-28 Tom Tromey <tromey@redhat.com>
8537
8538 * .dir-locals.el: New file.
8539
4a6510ba
PA
85402012-03-28 Pedro Alves <palves@redhat.com>
8541
8542 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8543
5a75128f
JB
85442012-03-28 Joel Brobecker <brobecker@adacore.com>
8545
8546 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8547 handling for r0.
8548
f99d8bf4
PA
85492012-03-27 Pedro Alves <palves@redhat.com>
8550
8551 Eliminate struct ui_stream.
8552
8553 * ui-out.h (struct ui_stream): Delete.
8554 (ui_out_field_stream): Adjust prototype.
8555 (ui_out_stream_new, ui_out_stream_delete)
8556 (make_cleanup_ui_out_stream_delete): Delete declarations.
8557 * ui-out.c (ui_out_field_stream): Change prototype to take a
8558 ui_file instead of a ui_stream. Adjust.
8559 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8560 (make_cleanup_ui_out_stream_delete): Delete.
8561 * breakpoint.c (print_breakpoint_location)
8562 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8563 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8564 * disasm.c (dump_insns): Ditto.
8565 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8566 prototype.
8567 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8568 ui_stream/ui_out_stream_new.
8569 * infcmd.c (print_return_value): Ditto.
8570 * osdata.c (info_osdata_command): Don't allocate a local
8571 ui_stream.
8572 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8573 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8574 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8575 allocate a local ui_stream.
8576 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8577 instead of ui_stream/ui_out_stream_new.
8578 (list_args_or_locals): Don't allocate a local ui_stream.
8579 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8580 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8581 ui_stream/ui_out_stream_new.
8582 * cli/cli-setshow.c (do_setshow_command): Ditto.
8583
6350a066 85842012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8585
6350a066
PA
8586 * arm-linux-tdep.c (arm_linux_init_abi): Call
8587 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8588 * arm-tdep.c (arm_process_record): New function.
8589 (deallocate_reg_mem): New function.
8590 (decode_insn): New function.
8591 (thumb_record_branch): New function.
8592 (thumb_record_ldm_stm_swi(): New function.
8593 (thumb_record_misc): New function.
8594 (thumb_record_ld_st_stack): New function.
8595 (thumb_record_ld_st_imm_offset): New function.
8596 (thumb_record_ld_st_reg_offset(): New function.
8597 (thumb_record_add_sub_cmp_mov): New function.
8598 (thumb_record_shift_add_sub): New function.
8599 (arm_record_coproc_data_proc): New function.
8600 (arm_record_coproc): New function.
8601 (arm_record_b_bl): New function.
8602 (arm_record_ld_st_multiple): New function.
8603 (arm_record_ld_st_reg_offset): New function.
8604 (arm_record_ld_st_imm_offset): New function.
8605 (arm_record_data_proc_imm): New function.
8606 (arm_record_data_proc_misc_ld_str): New function.
8607 (arm_record_extension_space): New function.
8608 (arm_record_strx): New function.
8609 (sbo_sbz): New function.
8610 (struct insn_decode_record): New structure for arm insn record.
8611 (REG_ALLOC): New macro for reg allocations.
8612 (MEM_ALLOC): New macro for memory allocations.
8613 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8614
89e028e2
AS
86152012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8616
8617 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8618 (store_register): Likewise.
8619
6350a066 86202012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8621
6350a066 8622 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8623
5b43fab2
JK
86242012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8625
8626 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8627 Describe also the option "auto".
8628
b5453b95
RH
86292012-03-22 Richard Henderson <rth@redhat.com>
8630
8631 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8632 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8633
227ee7fc
RH
86342012-03-22 Richard Henderson <rth@redhat.com>
8635
8636 * jit.c (jit_read_code_entry): Compute alignment and offset of
8637 int64_t member before computing entry_size.
8638
7b282c5a
SCR
86392012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8640
8641 Python scripting: Add new method Value.referenced_value to
8642 gdb.Value which can dereference pointer as well as reference
8643 values.
8644 * NEWS: Add entry under 'Python scripting' about the new method
8645 Value.referenced_value on gdb.Value objects.
8646 * python/py-value.c (valpy_referenced_value): New function
8647 defining a new method on gdb.Value objects which can dereference
8648 pointer and reference values.
8649
0c83539f
SCR
86502012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8651
8652 * MAINTAINERS (Write After Approval): Add myself to the list.
8653
7ccffd7c
KB
86542012-03-21 Kevin Buettner <kevinb@redhat.com>
8655
8656 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8657 in addition to "main".
8658
bd0b9f9e
JB
86592012-03-21 Joel Brobecker <brobecker@adacore.com>
8660
8661 * expression.h (op_name): Add declaration.
8662 * expprint.c (op_name): Remove declaration. Make non-static.
8663 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8664
a5362b9a
TS
86652012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8666
8667 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8668 of struct siginfo.
8669 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8670 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8671 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8672 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8673 (linux_nat_get_siginfo): Likewise.
8674 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8675 (linux_nat_get_siginfo): Likewise.
8676 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8677 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8678 * procfs.c (gdb_siginfo_t): Likewise.
8679
adcadaab
MF
86802012-03-21 Mike Frysinger <vapier@gentoo.org>
8681
8682 * .gitignore: Ignore more files.
8683
e278ad5b
PA
86842012-03-20 Pedro Alves <palves@redhat.com>
8685
8686 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8687 returns.
8688
741e63d7
YQ
86892012-03-20 Yao Qi <yao@codesourcery.com>
8690
8691 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8692 comment.
8693
b64f50a1
JK
86942012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8695
8696 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8697 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8698 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8699 sect_offset.
8700 * dwarf2expr.h (cu_offset, sect_offset): New types.
8701 (struct dwarf_expr_context_funcs) <dwarf_call>
8702 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8703 sect_offset.
8704 (struct dwarf_expr_context) <len>: Improve the comment.
8705 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8706 cu_offset and sect_offset.
8707 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8708 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8709 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8710 * dwarf2loc.h: Include dwarf2expr.h.
8711 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8712 and sect_offset.
8713 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8714 Improve the comment.
8715 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8716 (struct signatured_type, struct line_header, struct partial_die_info)
8717 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8718 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8719 (get_die_type_at_offset, create_cus_from_index)
8720 (create_signatured_type_table_from_index, dw2_get_file_names)
8721 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8722 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8723 (create_debug_types_hash_table, process_psymtab_comp_unit)
8724 (load_partial_comp_unit, create_all_comp_units)
8725 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8726 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8727 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8728 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8729 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8730 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8731 (find_partial_die, read_attribute_value, lookup_die_type)
8732 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8733 (is_ref_attr): New function comment.
8734 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8735 Use cu_offset and sect_offset.
8736 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8737 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8738 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8739 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8740 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8741 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8742 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8743 sect_offset.
8744
e97a38f7
JK
87452012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8746
8747 Code cleanup.
8748 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8749 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8750 with xfree.
8751 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8752
8320cc4f
JK
87532012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8754
8755 * NEWS: Describe new options --init-command=FILE, -ix and
8756 --init-eval-command=COMMAND, -iex.
8757 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8758 CMDARG_INIT_COMMAND.
8759 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8760 "init-command", "init-eval-command", "ix" and "iex" to the variable
8761 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8762 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8763 (print_gdb_help): Describe --init-command=FILE, -ix and
8764 --init-eval-command=COMMAND, -iex.
8765
26743505
JK
87662012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8767
8768 Code cleanup.
8769 * main.c (struct cmdarg): Move it here from main. Add more comments.
8770 (cmdarg_s, VEC (cmdarg_s)): New.
8771 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8772 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8773 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8774 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8775 of CMDARG.
8776
5ff5c7b4
TT
87772012-03-19 Tom Tromey <tromey@redhat.com>
8778
8779 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8780
ab260dad
JK
87812012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8782
8783 PR symtab/13777
8784 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8785 GCC >=4.5.
8786
c366c1f0
TT
87872012-03-16 Chris January <chris.january@allinea.com>
8788
8789 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8790 of clear.
8791
e16edb45
TT
87922012-03-16 Chris January <chris.january@allinea.com>
8793
8794 * source.c (add_path): Use memmove instead of strcpy because the
8795 strings overlap.
8796
53ba8333
JB
87972012-03-16 Joel Brobecker <brobecker@adacore.com>
8798
8799 * value.h (set_value_parent): Add declaration.
8800 * value.c (set_value_parent): New function.
8801 (value_address): If VALUE->PARENT is not NULL, then use it as
8802 the base address instead of VALUE->LOCATION.address.
8803 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8804 the same as OBJ's address. Adjust V's offset accordingly.
8805 Set V's parent.
8806
481860b3
GB
88072012-03-16 Gary Benson <gbenson@redhat.com>
8808
8809 PR breakpoints/10738
8810 * dwarf2read.c (use_deprecated_index_sections): New global.
8811 (struct partial_die_info): New member may_be_inlined.
8812 (read_partial_die): Set may_be_inlined where appropriate.
8813 (add_partial_subprogram): Add partial symbols for partial
8814 DIEs that may be inlined.
8815 (new_symbol_full): Add inlined subroutines to the current
8816 scope.
8817 (write_psymtabs_to_index): Bump version number.
8818 (dwarf2_read_index): Read only version 6 indices unless
8819 use_deprecated_index_sections is set.
8820 * linespec.c (symbol_and_data_callback): New structure.
8821 (iterate_inline_only): New function.
8822 (iterate_over_all_matching_symtabs): New argument
8823 "include_inline". If nonzero, also call the callback for
8824 symbols representing inlined subroutines.
8825 (lookup_prefix_sym): Pass extra argument to the above.
8826 (find_function_symbols): Likewise.
8827 (add_matching_symbols_to_info): Likewise.
8828 * NEWS: Mention that GDB can now set breakpoints on inlined
8829 functions.
8830
d0e7e15a
PM
88312012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8832
8833 * p-typeprint.c (pascal_type_print_method_args):
8834 Fix display of parameter of methods.
8835
3d354654
PM
88362012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8837
8838 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8839 Add missing prototype.
8840
cafe75b0
JK
88412012-03-16 Yao Qi <yao@codesourcery.com>
8842 Jan Kratochvil <jan.kratochvil@redhat.com>
8843
8844 Fix false compilation warning.
8845 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8846
25f8c692
JL
88472012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8848 Pedro Alves <pedro@codesourcery.com>
8849
8850 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8851 (arm_register_g_packet_guesses): New function.
8852 (arm_gdbarch_init): Don't force a target description with
8853 registers when the executable is detected as M-profile. Instead
8854 set gdbarch->tdep->is_m. Register `g' packet guesses.
8855 (_initialize_arm_tdep): Initialize the new target description.
8856 * features/arm-with-m-fpa-layout.xml: New description.
8857 * features/arm-with-m-fpa-layout.c: New, generated.
8858
35c63cd8
JB
88592012-03-15 Joel Brobecker <brobecker@adacore.com>
8860
8861 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8862 Update function description.
8863 (insert_bp_location): Do not wipe bl->target_info out.
8864 * mem-break.c: #include "gdb_string.h".
8865 (default_memory_insert_breakpoint): Do not call target_read_memory
8866 with a pointer to the breakpoint's shadow_contents buffer. Use
8867 a local buffer instead.
8868 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8869
57651221
TT
88702012-03-15 Tom Tromey <tromey@redhat.com>
8871
8872 * NEWS: Mention "info vtbl", not "info vtable".
8873 * cp-support.c (info_vtbl_command): Fix comment.
8874 (_initialize_cp_support): Fix text.
8875
410528f0
TT
88762012-03-15 Tom Tromey <tromey@redhat.com>
8877
8878 * cp-valprint.c (cp_print_value_fields): Use
8879 print_function_pointer_address for vtable slot.
8880
c4aeac85
TT
88812012-03-15 Tom Tromey <tromey@redhat.com>
8882
8883 * gnu-v3-abi.c (struct value_and_voffset): New.
8884 (hash_value_and_voffset, eq_value_and_voffset)
8885 (compare_value_and_voffset, compute_vtable_size)
8886 (print_one_vtable, gnuv3_print_vtable): New functions.
8887 (init_gnuv3_ops): Initialize 'print_vtable' field.
8888 * cp-support.c (info_vtbl_command): New function.
8889 (_initialize_cp_support): Add "info vtbl".
8890 * cp-abi.h (cplus_print_vtable): Declare.
8891 (struct cp_abi_ops) <print_vtable>: New field.
8892 * cp-abi.c (cplus_print_vtable): New function.
8893 * NEWS: Update.
8894
95cbceff
TT
88952012-03-15 Tom Tromey <tromey@redhat.com>
8896
8897 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8898 iterate_over_symbols.
8899
589b4a32
DE
89002012-03-14 Doug Evans <dje@google.com>
8901
8902 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8903 DW_OP_GNU_parameter_ref.
8904
e837f12a
JK
89052012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8906
8907 Fix double prompt of 'interpreter-exec mi'.
8908 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8909 (mi_interpreter_resume): use it.
8910 (mi_execute_command_input_handler): New function.
8911 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8912 mi_execute_command_input_handler.
8913
ff1e4526 89142012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8915
8916 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8917 prototype.
8918 (darwin_debug_port_info): Make static.
8919 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8920 * machoread.c (_initialize_machoread): Add prototype.
8921 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8922 (i386_darwin_set_control, i386_darwin_get_control)
8923 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8924 i386_darwin_get_status, i386_darwin_get_control):
8925 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8926
d8a5d6ee
JB
89272012-03-13 Joel Brobecker <brobecker@adacore.com>
8928
8929 * ax-gdb.c (gen_usual_unary): Remove special handling of
8930 enum and bool types.
8931
af381b8c
JB
89322012-03-13 Joel Brobecker <brobecker@adacore.com>
8933
8934 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8935
786c562f
JB
89362012-03-13 Joel Brobecker <brobecker@adacore.com>
8937
8938 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8939
e3ebf1bb
JB
89402012-03-13 Chris January <chris.january@allinea.com>
8941
8942 * aix-thread.c (fill_sprs): Store the floating point registers
8943 at the correct offsets into vals.
8944
c5b7e1cb
DE
89452012-03-13 Doug Evans <dje@google.com>
8946
16899756
DE
8947 * NEWS: Mention symbol-reloading has been deleted.
8948 * symfile.c (symbol_reloading): Delete.
8949 (show_symbol_reloading): Delete.
8950 (_initialize_symfile): Delete set/show symbol-reloading.
8951
c5b7e1cb
DE
8952 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8953 read_in_chain until we have successfully read it in.
8954 (load_full_comp_unit): Ditto.
8955 (read_signatured_type): Add comment.
8956
46cb6474
JB
89572012-03-13 Chris January <chris.january@allinea.com>
8958
8959 * stabsread.c (fix_common_block): Change type of valu argument
8960 to CORE_ADDR.
8961
76219d77
JB
89622012-03-13 Chris January <chris.january@allinea.com>
8963
8964 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8965 instruction.
8966
87b0bb13
JK
89672012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8968
8969 * common/linux-procfs.c (linux_proc_get_int): New, from
8970 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8971 field.
8972 (linux_proc_get_tgid): Only call linux_proc_get_int.
8973 (linux_proc_get_tracerpid): New.
8974 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8975 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8976 linux_proc_pid_has_state.
8977 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8978 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8979 (linux_ptrace_attach_warnings): New.
8980 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8981 New declaration.
8982 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8983 (linux_nat_attach): New variables ex, buffer, message and message_s.
8984 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8985
5f572dec
JK
89862012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8987
8988 * Makefile.in (linux-ptrace.o): New.
8989 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8990 from linux-nat.c.
8991 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8992 * common/linux-ptrace.c: New file.
8993 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8994 * config/arm/linux.mh: Likewise.
8995 * config/i386/linux.mh: Likewise.
8996 * config/i386/linux64.mh: Likewise.
8997 * config/ia64/linux.mh: Likewise.
8998 * config/m32r/linux.mh: Likewise.
8999 * config/m68k/linux.mh: Likewise.
9000 * config/mips/linux.mh: Likewise.
9001 * config/pa/linux.mh: Likewise.
9002 * config/powerpc/linux.mh: Likewise.
9003 * config/powerpc/ppc64-linux.mh: Likewise.
9004 * config/powerpc/spu-linux.mh: Likewise.
9005 * config/s390/s390.mh: Likewise.
9006 * config/sparc/linux.mh: Likewise.
9007 * config/sparc/linux64.mh: Likewise.
9008 * config/xtensa/linux.mh: Likewise.
9009 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9010 common/linux-procfs.c.
9011 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9012
44f238bb
PA
90132012-03-13 Hui Zhu <teawater@gmail.com>
9014 Pedro Alves <palves@redhat.com>
9015
9016 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9017 CREATE_BREAKPOINT_FLAGS_INSERTED.
9018 (create_breakpoint_sal, create_breakpoints_sal)
9019 (base_breakpoint_create_breakpoints_sal)
9020 (tracepoint_create_breakpoints_sal)
9021 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9022 down.
9023 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9024 (ftrace_command, strace_command): Adjust.
9025 (create_tracepoint_from_upload): Pass
9026 CREATE_BREAKPOINT_FLAGS_INSERTED.
9027 * breakpoint.h (enum breakpoint_create_flags): New.
9028 (create_breakpoint): New flags parameter.
9029 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9030 * python/py-breakpoint.c (bppy_init): Adjust.
9031 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9032 * spu-tdep.c (spu_catch_start): Adjust.
9033
1e51243a
PA
90342012-03-13 Pedro Alves <palves@redhat.com>
9035 Hui Zhu <teawater@gmail.com>
9036 Yao Qi <yao@codesourcery.com>
9037
9038 * remote.c (struct remote_state): New field `starting_up'.
9039 (remote_start_remote): Set and clear it.
9040 (remote_can_download_tracepoint): If starting up, return false.
9041
fa3064dd
YQ
90422012-03-13 Yao Qi <yao@codesourcery.com>
9043
9044 * inferior.h (struct inferior): Remove fields any_syscall_count,
9045 syscalls_counts and total_syscalls_count. Move them to new
9046 struct catch_syscall_inferior_data in breakpoint.c.
9047 * breakpoint.c: Call DEF_VEC_I(int).
9048 (struct catch_syscall_inferior_data): New.
9049 (get_catch_syscall_inferior_data): New.
9050 (catch_syscall_inferior_data_cleanup): New.
9051 (insert_catch_syscall): Update to access data in
9052 struct catch_syscall_inferior_data.
9053 (insert_catch_syscall): Likewise.
9054 (remove_catch_syscall): Likewise.
9055 (remove_catch_syscall): Likewise.
9056 (is_syscall_catchpoint_enabled): Likewise.
9057 (add_catch_command): Likewise.
9058 (_initialize_breakpoint): Register cleanup.
9059 * breakpoint.h: Removed DEF_VEC_I(int).
9060 * dwarf2loc.c: Call DEF_VEC_I(int).
9061 * mi/mi-main.c: Likewise.
9062
460fac3c
MK
90632012-03-12 Mark Kettenis <kettenis@gnu.org>
9064
9065 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9066
e1aca11e
JB
90672012-03-12 Chris January <chris.january@allinea.com>
9068
9069 * aix-thread.c (_initialize_aix_thread): Add prototype.
9070 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9071 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9072
649c7061
JB
90732012-03-12 Joel Brobecker <brobecker@adacore.com>
9074
9075 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9076 include of "amd64-nat.h".
9077
0b49e518
TT
90782012-03-12 Tom Tromey <tromey@redhat.com>
9079
9080 * buildsym.c (record_pending_block): Now static.
9081 * buildsym.h: (record_pending_block): Remove.
9082
fd24fa94
AT
90832012-03-12 Andreas Tobler <andreast@fgznet.ch>
9084
9085 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9086
ba919b58
TT
90872012-03-09 Tom Tromey <tromey@redhat.com>
9088
9089 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9090 producer_is_gxx_lt_4_6>: New fields.
9091 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9092
a48e046c
TT
90932012-03-09 Tom Tromey <tromey@redhat.com>
9094
9095 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9096
6f5e9362
JB
90972012-03-08 Joel Brobecker <brobecker@adacore.com>
9098
9099 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9100 prototype.
9101
8d037db9
JB
91022012-03-08 Joel Brobecker <brobecker@adacore.com>
9103
9104 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9105
4e841acf
JK
91062012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9107
9108 Fix -Wmissing-prototypes build.
9109 * arm-linux-nat.c (get_thread_id): Make it static.
9110 * xtensa-linux-nat.c (get_thread_id): Likewise.
9111
c6030312
JB
91122012-03-08 Joel Brobecker <brobecker@adacore.com>
9113
9114 * server.c (process_point_options): If a conditional expression
9115 is found, only print a message if remote_debug is nonzero.
9116
52323be9
LM
91172012-03-08 Luis Machado <lgustavo@codesourcery.com>
9118
9119 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9120 of internal error for unknown/unsupported types.
9121
7fe25d9b
JK
91222012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9123
9124 Fix CU relative vs. absolute DIE offsets.
9125 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9126 offset to offset_in_cu.
9127 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9128 TYPE_OFFSET.
9129 (dwarf2_fetch_die_location_block): Rename parameter offset to
9130 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9131
05e7c244
JK
91322012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9133
9134 * libunwind-frame.c: Rename to ...
9135 * ia64-libunwind-tdep.c: ... here.
9136 * libunwind-frame.h: Rename to ...
9137 * ia64-libunwind-tdep.h: ... here.
9138 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9139 ia64-libunwind-tdep.h.
9140 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9141 * README (--with-libunwind): Rename to ...
9142 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9143 * config.in: Regenerate.
9144 * configure: Regenerate.
9145 * configure.ac: New option --with-libunwind-ia64, make the
9146 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9147 Remove AC_DEFINE for HAVE_LIBUNWIND.
9148 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9149 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9150 Rename libunwind-frame in the general comment.
9151 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9152 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9153 Move forward declarations inside #ifndef. Rename libunwind-frame in
9154 the general comment.
9155 * ia64-tdep.c: Rename libunwind-frame.h #include to
9156 ia64-libunwind-tdep.h.
9157 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9158 (ia64_libunwind_descr): Rename libunwind-frame to
9159 ia64-libunwind-tdep in these function comments.
9160 * ia64-tdep.h: Rename libunwind-frame.h #include to
9161 ia64-libunwind-tdep.h.
9162 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9163 ia64-libunwind-tdep in that data comment.
9164
3755cbfd
JK
91652012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9166
9167 * libunwind-frame.h (struct frame_unwind): New declaration.
9168
d1cda5d9
JB
91692012-03-08 Joel Brobecker <brobecker@adacore.com>
9170
9171 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9172 "set breakpoint condition-evaluation" command.
9173
a0ba0aa2
TG
91742012-03-08 Tristan Gingold <gingold@adacore.com>
9175
9176 * sparc-stub.c: Move to stubs/
9177 * sh-stub.c: Likewise.
9178 * m68k-stub.c: Likewise.
9179 * m32r-stub.c: Likewise.
9180 * i386-stub.c: Likewise.
9181
7b8b6d6d
AS
91822012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9183
007cafee
AS
9184 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9185 linux_get_siginfo_type.
9186
7b8b6d6d
AS
9187 * m68klinux-nat.c: Include "gdb_proc_service.h".
9188 (PTRACE_GET_THREAD_AREA): Define.
9189 (ps_get_thread_area): New function.
9190
bba74b36
YQ
91912012-03-08 Yao Qi <yao@codesourcery.com>
9192
9193 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9194 `xsnprintf'.
9195 (remote_query_attached): Likewise.
9196 (remote_static_tracepoint_marker_at): Likewise.
9197 (remote_set_permissions): Likewise.
9198 (remote_detach_1, extended_remote_attach_1): Likewise.
9199 (send_g_packet, remote_vkill): Likewise.
9200 (extended_remote_disable_randomization): Likewise.
9201 (remote_add_target_side_condition): Likewise.
9202 (remote_insert_breakpoint): Likewise.
9203 (remote_remove_breakpoint): Likewise.
9204 (remote_insert_watchpoint): Likewise.
9205 (remote_remove_watchpoint): Likewise.
9206 (remote_insert_hw_breakpoint): Likewise.
9207 (remote_insert_hw_breakpoint): Likewise.
9208 (remote_remove_hw_breakpoint): Likewise.
9209 (remote_download_command_source): Likewise.
9210 (remote_download_tracepoint): Likewise.
9211 (remote_download_trace_state_variable): Likewise.
9212 (remote_disable_tracepoint): Likewise.
9213 (remote_trace_set_readonly_regions): Likewise.
9214 (remote_get_tracepoint_status): Likewise.
9215 (remote_trace_find): Likewise.
9216 (remote_get_trace_state_variable_value): Likewise.
9217 (remote_set_disconnected_tracing): Likewise.
9218 (remote_set_circular_trace_buffer): Likewise.
9219 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9220 (remote_use_agent): Likewise.
9221 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9222 Update callers.
9223
9b224c5e
PA
92242012-03-07 Pedro Alves <palves@redhat.com>
9225
9226 * NEWS: Mention QProgramSignals.
9227 * inferior.h (update_signals_program_target): Declare.
9228 * infrun.c: (update_signals_program_target): New.
9229 (handle_command): Update the target of the new program signals
9230 array changes.
9231 * remote.c (PACKET_QProgramSignals): New enum.
9232 (last_program_signals_packet): New global.
9233 (remote_program_signals): New.
9234 (remote_start_remote): Update the target with the program signals
9235 list.
9236 (remote_protocol_features): Add entry for QPassSignals.
9237 (remote_open_1): Free anc clear last_program_signals_packet.
9238 (init_remote_ops): Install remote_program_signals.
9239 * target.c (update_current_target): Adjust.
9240 (target_program_signals): New.
9241 * target.h (struct target_ops) <to_program_signals>: New field.
9242 (target_program_signals): Declare.
9243
74c48cbb
PA
92442012-03-07 Pedro Alves <palves@redhat.com>
9245
9246 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9247 extensions.
9248
0c13fc49
AS
92492012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9250
9251 * m68klinux-nat.c (getregs_supplies): Make static.
9252 (getfpregs_supplies): Likewise.
9253 (have_ptrace_getregs): Likewise.
9254
1281d2a3
JB
92552012-03-06 Joel Brobecker <brobecker@adacore.com>
9256
9257 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9258 in call to get_die_type_at_offset.
9259
2b03b41d
SS
92602012-03-06 Stan Shebs <stan@codesourcery.com>
9261
9262 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9263 * mi/mi-cmd-disas.c: Ditto.
9264 * mi/mi-cmd-env.c: Ditto.
9265 * mi/mi-cmd-file.c: Ditto.
9266 * mi/mi-cmd-stack.c: Ditto.
9267 * mi/mi-cmd-target.c: Ditto.
9268 * mi/mi-cmd-var.c: Ditto.
9269 * mi/mi-cmds.c: Ditto.
9270 * mi/mi-cmds.h: Ditto.
9271 * mi/mi-console.c: Ditto.
9272 * mi/mi-getopt.c: Ditto.
9273 * mi/mi-getopt.h: Ditto.
9274 * mi/mi-interp.c: Ditto.
9275 * mi/mi-main.c: Ditto.
9276 * mi/mi-out.c: Ditto.
9277 * mi/mi-parse.c: Ditto.
9278 * mi/mi-parse.h: Ditto.
9279 * mi/mi-symbol-cmds.c: Ditto.
9280
9281 * mi/mi-getopt.h: Move mi_opt struct up.
9282 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9283 return.
9284 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9285
c988ad87
TT
92862012-03-06 Tom Tromey <tromey@redhat.com>
9287
9288 * proc-service.c (ps_pglobal_lookup): Set the current program
9289 space.
9290
1b7c1b10
PA
92912012-03-06 Pedro Alves <palves@redhat.com>
9292
9293 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9294
3c182069
JB
92952012-03-05 Joel Brobecker <brobecker@adacore.com>
9296
9297 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9298
2e794194
JK
92992012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9300
9301 Code cleanup.
9302 * common/linux-osdata.c (linux_common_core_of_thread): New function
9303 comment.
9304 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9305 call by linux_common_core_of_thread.
9306 (linux_nat_core_of_thread_1): Remove.
9307 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9308 * linux-thread-db.c: Include linux-osdata.h.
9309 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9310 linux_common_core_of_thread.
9311
9f9f1f31
TT
93122012-03-05 Tom Tromey <tromey@redhat.com>
9313
9314 * value.c (value_primitive_field): Don't fetch contents for
9315 non-virtual bases.
9316
b7b189f3
TT
93172012-03-05 Tom Tromey <tromey@redhat.com>
9318
9319 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9320
05b8a789 93212012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9322
5538f557
JB
9323 * s390-nat.c: Include "gregset.h".
9324
75528772
JK
93252012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9326
9327 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9328 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9329 (libunwind_load): New variable so_error, use it for dlerror. Try to
9330 load also LIBUNWIND_SO_7.
9331
275418ae
PA
93322012-03-05 Pedro Alves <palves@redhat.com>
9333
9334 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9335 is not NULL, and remove resulting dead code.
9336
5cbb9812
TS
93372012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9338
9339 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9340 prologue to sh_analyze_prologue.
9341 (sh_analyze_prologue): Make better use of such an upper limit, and
9342 generally be more cautious about accessing memory.
9343
541515ad
TT
93442012-03-05 Tom Tromey <tromey@redhat.com>
9345
9346 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9347 _initialize_ia64_hpux_tdep.
9348
b4d36fb8
PA
93492012-03-05 Pedro Alves <palves@redhat.com>
9350
24490249
PA
9351 PR gdb/13766
9352
b4d36fb8
PA
9353 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9354 the register state is clear, supply explicit zero, instead of
9355 marking the register unavailable.
9356
60c9a3c0
TG
93572012-03-05 Tristan Gingold <gingold@adacore.com>
9358
9359 * NEWS: Mention OpenVMS ia64 new target.
9360
696759ad
TG
93612012-03-05 Tristan Gingold <gingold@adacore.com>
9362
9363 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9364 (ia64_unw_accessors, ia64_unw_rse_accessors)
9365 (ia64_libunwind_descr): Declare.
9366 * ia64-vms-tdep.c: New file.
9367 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9368 (ia64_libunwind_descr): Make them public.
9369 * configure.tgt: Add ia64-*-*vms*.
9370 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9371 (ALLDEPFILES): Add ia64-vms-tdep.c
9372
34864976
TG
93732012-03-05 Tristan Gingold <gingold@adacore.com>
9374
169081d0
TG
9375 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9376 * remote.c (PACKET_qXfer_uib): New enum value.
9377 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9378 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9379 (_initialize_remote): Call add_packet_config_cmd for
9380 xfer:uib packet.
9381
93822012-03-05 Tristan Gingold <gingold@adacore.com>
9383
9384 * osabi.c (gdb_osabi_names): Add OpenVMS.
9385 (generic_elf_osabi_sniffer): Likewise.
9386 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9387
6597b100
JK
93882012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9389
9390 Removed unused code.
9391 * libunwind-frame.c (libunwind_frame_unwind)
9392 (libunwind_frame_base_address): Remove.
9393 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9394
87399aa1
YQ
93952012-03-04 Yao Qi <yao@codesourcery.com>
9396
9397 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9398 remove trailing new line.
9399 (agent_run_command, agent_run_command): Add _ markup.
9400 (agent_capability_check): Likewise.
9401
abf1152a
JK
94022012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9403
9404 * breakpoint.c (set_condition_evaluation_mode): Set
9405 CONDITION_EVALUATION_MODE unconditionally.
9406
5808517f
YQ
94072012-03-03 Yao Qi <yao@codesourcery.com>
9408
9409 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9410 * common/agent.h: Update declaration.
9411 * inf-child.c (inf_child_use_agent): New.
9412 (inf_child_can_use_agent): New.
9413 (inf_child_target): Initialize fields `to_use_agent'
9414 and `to_can_use_agent'.
9415 * agent.c (agent_new_objfile): New.
89b7509a 9416 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9417 observer.
9418
9419 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9420 New.
89b7509a 9421 (linux_target_install_ops): Initialize field
5808517f
YQ
9422 `to_static_tracepoint_markers_by_strid'.
9423 * remote.c (free_current_marker): Move it to ...
9424 * tracepoint.c (free_current_marker): ... here. New.
9425 (cleanup_target_stop): New.
9426 * tracepoint.h: Declare free_current_marker.
9427 * NEWS: Add one entry about `info static-tracepoint-marker'.
9428
58b4daa5
YQ
94292012-03-03 Yao Qi <yao@codesourcery.com>
9430
9431 * common/agent.c (agent_loaded_p): New.
89b7509a 9432 (agent_look_up_symbols): New global.
58b4daa5
YQ
9433 * common/agent.h: Declare agent_loaded_p.
9434
8ffcbaaf
YQ
94352012-03-03 Yao Qi <yao@codesourcery.com>
9436
9437 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9438 (agent_capability_check, agent_capability_invalidate): New.
9439 (symbol_list): New array element.
9440 * common/agent.h (enum agent_capa): New.
9441 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9442
d1feda86
YQ
94432012-03-03 Yao Qi <yao@codesourcery.com>
9444
9445 * target.h (struct target_ops) <to_use_agent>: New field.
9446 (struct target_ops) <to_can_use_agent>: New field.
9447 (target_use_agent, target_can_use_agent): New macro.
9448 * target.c (update_current_target): Update.
9449 * remote.c: New enum `PACKET_QAgent'.
9450 (remote_protocol_features): Add a new element.
9451 (remote_use_agent, remote_can_use_agent): New.
9452 (init_remote_ops): Initialize field `can_use_agent' with
9453 remote_can_use_agent. Intiailize field `use_agent' with
9454 remote_use_agent.
9455 * common/agent.c (use_agent): New global.
9456 * common/agent.h: Declare it.
9457 * tracepoint.c (info_static_tracepoint_markers_command): Add
9458 comment.
9459 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9460 (COMMON_OBS): Add common/agent.o and agent.o
9461 (common-agent.o): New rule.
9462 * agent.c: New.
9463
2fa291ac
YQ
94642012-03-03 Yao Qi <yao@codesourcery.com>
9465
9466 * common/agent.c: New.
9467 * common/agent.h: New.
9468 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9469 AC_CHECK_HEADERS.
9470 * configure, configh.in: Regenerated.
9471
9fc05685
KB
94722012-03-02 Kevin Buettner <kevinb@redhat.com>
9473
9474 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9475 unless it exists for this architecture.
9476
a5ee536b
JB
94772012-03-02 Joel Brobecker <brobecker@adacore.com>
9478
9479 * language.h (struct language_defn): New "method" la_read_var_value.
9480 * findvar.c: #include "language.h".
9481 (default_read_var_value): Renames read_var_value. Rewrite
9482 function description.
9483 (read_var_value): New function.
9484 * value.h (default_read_var_value): Add prototype.
9485 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9486 New functions.
9487 (ada_language_defn): Add entry for la_read_var_value.
9488 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9489 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9490 language_defn structures to add entry for new la_read_var_value
9491 field.
9492
f59f708a
PA
94932012-03-02 Tom Tromey <tromey@redhat.com>
9494 Pedro Alves <palves@redhat.com>
9495
9496 PR breakpoints/13776:
9497 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9498 breakpoints.
9499 (delete_longjmp_breakpoint_at_next_stop): New.
9500 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9501 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9502 before deleting the inferior. Add comments.
9503 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9504 breakpoints immediately, but only on next stop. Move that code
9505 next to where we mark other breakpoints for deletion.
9506
44099a67
JB
95072012-03-02 Joel Brobecker <brobecker@adacore.com>
9508
9509 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9510 marker.
9511 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9512 violation.
9513
2a2ef594
PA
95142012-03-02 Pedro Alves <palves@redhat.com>
9515
9516 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9517
b261e0c5
UW
95182012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9519
9520 Fix -Wmissing-prototypes build.
9521 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9522 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9523 (gdbsim_has_memory): Likewise.
9524
a95babbf
YQ
95252012-03-02 Yao Qi <yao@codesourcery.com>
9526
9527 Fix -Wmissing-prototypes build.
9528 * charset.c (phony_iconv_open): Make static.
9529 (phony_iconv_close, phony_iconv): Likewise.
9530 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9531 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9532 prototype.
9533 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9534 * ser-mingw.c (create_select_thread): Make static.
9535 * windows-termcap.c (tgetent): New prototype.
9536 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9537
d603d4b3
JK
95382012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9539
9540 Fix -Wmissing-prototypes build.
9541 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9542 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9543 (_initialize_loadable): New prototypes.
9544
7fb3ad1f
DE
95452012-03-02 Doug Evans <dje@google.com>
9546
9547 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9548 abbrev table, read_comp_unit will do it.
9549
693be288
JK
95502012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9551
9552 Fix -Wmissing-prototypes build.
9553 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9554 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9555 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9556 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9557 (_initialize_arm_symbian_tdep): New prototype.
9558 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9559 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9560 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9561 static.
9562 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9563 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9564 prototype.
9565 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9566 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9567 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9568 static.
9569 * moxie-tdep.c (moxie_process_record): Likewise.
9570 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9571 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9572 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9573 (_initialize_rl78_tdep): New prototype.
9574 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9575 (_initialize_rx_tdep): New prototype.
9576 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9577 (_initialize_darwin_solib): New prototype.
9578 * solib-spu.c: Include solib-spu.h.
9579 (_initialize_spu_solib): New prototype.
9580 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9581 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9582 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9583 (tic6x_software_single_step): Make it static.
9584 (_initialize_tic6x_tdep): New prototype.
9585
638234e5
JK
95862012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9587
9588 Fix -Wmissing-prototypes build.
9589 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9590 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9591
f4a6f16d
JK
95922012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9593
9594 Fix -Wmissing-prototypes build.
9595 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9596 (frv_have_stopped_data_address): Remove.
9597
04dcf5fa
JK
95982012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9599
9600 Fix -Wmissing-prototypes build.
9601 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9602 * sh-tdep.c: Include sh64-tdep.h.
9603 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9604 * sh64-tdep.c: Include sh64-tdep.h.
9605 * sh64-tdep.h: New file.
9606
19080931
MR
96072012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9608
9609 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9610
9aac7884
MR
96112012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9612
9613 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9614 sp_regnum once the gdbarch_init_osabi hook has been called.
9615
a385295e
MR
96162012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9617
9618 * mips-tdep.c (mips32_bc1_pc): New function.
9619 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9620 BPOSGE32 and BPOSGE64 instructions.
9621 (deal_with_atomic_sequence): Likewise.
9622 (mips32_instruction_has_delay_slot): Likewise.
9623
1faeff08 96242012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9625 Chris Dearman <chris@mips.com>
9626 Maciej W. Rozycki <macro@codesourcery.com>
9627 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9628
9629 * features/mips-dsp.xml: New file.
9630 * features/mips64-dsp.xml: New file.
9631 * features/mips-dsp-linux.xml: New file.
9632 * features/mips64-dsp-linux.xml: New file.
9633 * features/Makefile (WHICH): Add mips-dsp-linux and
9634 mips64-dsp-linux.
9635 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9636 * features/mips-dsp-linux.c: New file.
9637 * features/mips64-dsp-linux.c: New file.
9638 * regformats/mips-dsp-linux.dat: New file.
9639 * regformats/mips64-dsp-linux.dat: New file.
9640 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9641 registers.
9642 (mips64_linux_register_addr): Likewise.
9643 (mips64_linux_regsets_fetch_registers): Likewise.
9644 (mips64_linux_regsets_store_registers): Likewise.
9645 (mips64_linux_fetch_registers): Update call to
9646 mips64_linux_regsets_fetch_registers.
9647 (mips64_linux_store_registers): Update call to
9648 mips64_linux_regsets_store_registers.
9649 (mips_linux_read_description): Probe for DSP registers.
9650 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9651 and initialize_tdesc_mips64_dsp_linux.
9652 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9653 Remove padding of no longer used embedded register slots.
9654 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9655 (MIPS_RESTART_REGNUM): Redefine enum value.
9656 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9657 strings.
9658 (mips_tx39_reg_names): Likewise.
9659 (mips_linux_reg_names): New array of register names for Linux
9660 targets.
9661 (mips_register_name): Check for a null pointer in
9662 mips_processor_reg_names and return an empty string.
9663 (mips_register_type): Exclude embedded registers for the IRIX
9664 and Linux ABIs.
9665 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9666 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9667 DSP registers.
9668 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9669 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9670 (mips_gdbarch_init): Likewise. Initialize internal register
9671 indices for the Linux ABI. Use dynamic numbers to refer to
9672 registers, as applicable, while parsing the target description.
9673 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9674
263689d8
JB
96752012-03-01 Joel Brobecker <brobecker@adacore.com>
9676
9677 * frame.h (read_frame_register_unsigned): Fix typo in function
9678 description.
9679
f3b4f45c
PA
96802012-03-01 Pedro Alves <palves@redhat.com>
9681
9682 * jit-reader.in [!__cplusplus]
9683 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9684
b03a2011
PA
96852012-03-01 Pedro Alves <palves@redhat.com>
9686
9687 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9688 * configure: Regenerate.
9689
70221824
PA
96902012-03-01 Pedro Alves <palves@redhat.com>
9691
9692 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9693 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9694 (ftrace_command, strace_command): Make static.
9695 * d-lang.c (_initialize_d_language): Declare.
9696 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9697 * dwarf2loc.c (_initialize_dwarf2loc):
9698 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9699 * exec.c (exec_get_section_table): Make static.
9700 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9701 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9702 * inferior.c (remove_inferior_command, add_inferior_command)
9703 (clone_inferior_command): Make static.
9704 * linux-nat.c (linux_nat_thread_address_space)
9705 (linux_nat_core_of_thread): Make static.
9706 * linux-tdep.c (_initialize_linux_tdep): Declare.
9707 * objc-lang.c (_initialize_objc_lang): Declare.
9708 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9709 Make static.
9710 (_initialize_opencl_language): Declare.
9711 * record.c (_initialize_record): Declare.
9712 * remote.c (demand_private_info, remote_get_tib_address)
9713 (remote_supports_cond_tracepoints)
9714 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9715 Make static.
9716 * skip.c (_initialize_step_skip): Declare.
9717 * symtab.c (skip_prologue_using_lineinfo): Make static.
9718 * tracepoint.c (delete_trace_state_variable)
9719 (trace_variable_command, delete_trace_variable_command)
9720 (get_uploaded_tsv, find_matching_tracepoint_location)
9721 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9722 Make static.
9723 * value.c (pack_unsigned_long): Make static.
9724 * varobj.c (varobj_ensure_python_env): Make static.
9725 * windows-tdep.c (_initialize_windows_tdep): Declare.
9726 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9727
33fbcbee
PA
97282012-03-01 Pedro Alves <palves@redhat.com>
9729
9730 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9731 gdbarch parameter.
9732 (linux_init_abi): Install it as has_shared_address_space gdbarch
9733 callback.
9734
44d0cd3b
PA
97352012-03-01 Pedro Alves <palves@redhat.com>
9736
9737 * observer.c (observer_test_first_notification_function)
9738 (observer_test_second_notification_function)
9739 (observer_test_third_notification_function): Add declarations.
9740
ed01b82c
PA
97412012-03-01 Pedro Alves <palves@redhat.com>
9742
9743 * common/signals.c (default_target_signal_to_host)
9744 (default_target_signal_from_host): Move ...
9745 * arch-utils.c: ... here.
9746 * arch-utils.h (default_target_signal_to_host)
9747 (default_target_signal_from_host): Declare.
9748
9749 * common/signals.c (target_signal_from_command): Move ...
9750 * infrun.c: ... here.
9751 * inferior.h (target_signal_from_command): Declare.
9752 * target.h (target_signal_from_command)
9753 (default_target_signal_from_host, default_target_signal_to_host):
9754 Delete declarations.
9755
9756 * common/signals.c (_initialize_signals): Delete.
9757
c9b87335
PA
97582012-03-01 Pedro Alves <palves@redhat.com>
9759
9760 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9761 both __cplusplus and !__cplusplus.
9762
9340a6c0
PA
97632012-03-01 Pedro Alves <palves@redhat.com>
9764
9765 * psymtab.c (find_and_open_source): Delete declaration.
9766 * source.c (find_and_open_source): Move comment ...
9767 * source.h (find_and_open_source): ... to this new declaration.
9768
e451c4a1
PA
97692012-03-01 Pedro Alves <palves@redhat.com>
9770
9771 * inline-frame.c: Include inline-frame.h.
9772
983fb104
PA
97732012-03-01 Pedro Alves <palves@redhat.com>
9774
9775 * tui/tui-data.c (set_gen_win_origin): Delete.
9776 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9777 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9778
5fbce5df
PA
97792012-03-01 Pedro Alves <palves@redhat.com>
9780
9781 * remote.c (encode_actions): Delete declaration.
9782 * tracepoint.c (encode_actions): Make extern.
9783 * tracepoint.h (encode_actions): Declare.
9784
49a8461d
PA
97852012-03-01 Pedro Alves <palves@redhat.com>
9786
9787 * python/py-breakpoint.c: Include python.h.
9788 * python/py-continueevent.c (create_continue_event_object): Make
9789 static.
9790 * python/py-lazy-string.c (stpy_get_type): Make static.
9791 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9792 Make static.
9793 * python/py-utils.c (unicode_to_target_python_string): Make
9794 static.
9795 * python/py-value.c: Include python.h.
9796
9079102f
PA
97972012-03-01 Pedro Alves <palves@redhat.com>
9798
9799 * inferior.c (delete_threads_of_inferior): Delete.
9800
a298c5e8
PA
98012012-03-01 Pedro Alves <palves@redhat.com>
9802
9803 Import fallback definitions from glibc.
9804
9805 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9806 ps_prochandle): Forward declare.
9807 (ps_err_e): Use glibc's comments.
9808 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9809 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9810 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9811 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9812 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9813 (struct ps_prochandle): Adjust comment.
9814
e3084549
PA
98152012-03-01 Pedro Alves <palves@redhat.com>
9816
9817 * ada-lang.c (ada_modulus_from_name): Delete.
9818 * ada-lex.l (lexer_init): Make static.
9819
ad5f7d6e
PA
98202012-03-01 Pedro Alves <palves@redhat.com>
9821
9822 PR gdb/13767
9823
9824 * frame.c (read_frame_register_unsigned): New.
9825 * frame.h (read_frame_register_unsigned): Declare.
9826 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9827 Handle it.
9828 (print_i387_control_word): New parameter `control_p'. Handle it.
9829 (i387_print_float_info): Handle unavailable float registers.
9830
e0a4d108
KS
98312012-03-01 Keith Seitz <keiths@redhat.com>
9832
9833 * linespec.c (decode_line_2): Sort the list of methods
9834 alphabetically before presenting the user with a selection
9835 menu.
9836
122d1940
DE
98372012-03-01 Doug Evans <dje@google.com>
9838
9839 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9840 has_namespace_info.
9841 (dwarf2_read_abbrevs): Remove corresponding initialization.
9842
7d74f244
DE
98432012-03-01 Scott J. Goldman <scottjg@vmware.com>
9844
9845 * NEWS: Mention new python command class gdb.COMMAND_USER.
9846 * cli/cli-cmds.c (show_user): Print error when used on a python
9847 command.
9848 (init_cli_cmds): Update documentation strings for "show user" and
9849 "set/show max-user-call-depth" to clarify that it does not apply to
9850 python commands.
9851 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9852 error check.
9853 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9854 gdb python api.
9855 * top.c (execute_command): Only execute a user-defined command as a
9856 legacy macro if c->user_commands is set.
9857
e88acd96
TT
98582012-03-01 Tom Tromey <tromey@redhat.com>
9859
9860 * valprint.h (struct generic_val_print_decorations): New.
9861 (generic_val_print): Declare.
9862 * valprint.c (generic_val_print): New function.
9863 * p-valprint.c (p_decorations): New global.
9864 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9865 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9866 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9867 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9868 * m2-valprint.c (m2_decorations): New global.
9869 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9870 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9871 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9872 TYPE_CODE_ERROR>: Call generic_val_print.
9873 * f-valprint.c (f_decorations): New global.
9874 (f_val_print): Use print_function_pointer_address.
9875 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9876 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9877 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9878 generic_val_print.
9879 * c-valprint.c (c_decorations): New global.
9880 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9881 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9882 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9883 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9884 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9885 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9886 case.
9887
d3eab38a
TT
98882012-03-01 Tom Tromey <tromey@redhat.com>
9889
9890 * valprint.c (val_print): Update.
9891 * p-valprint (pascal_val_print): Return void.
9892 * p-lang.h (pascal_val_print): Return void.
9893 * m2-valprint.c (m2_val_print): Return void.
9894 * m2-lang.h (m2_val_print): Return void.
9895 * language.h (struct language_defn) <la_val_print>: Return void.
9896 * language.c (unk_lang_val_print): Return void.
9897 * jv-valprint.c (java_val_print): Return void.
9898 * jv-lang.h (java_val_print): Return void.
9899 * f-valprint.c (f_val_print): Return void.
9900 * f-lang.h (f_val_print): Return void.
9901 * d-valprint.c (d_val_print): Return void.
9902 (dynamic_array_type): Update.
9903 * d-lang.h (d_val_print): Return void.
9904 * c-valprint.c (c_val_print): Return void.
9905 * c-lang.h (c_val_print): Return void.
9906 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9907 void.
9908 * ada-lang.h (ada_val_print): Return void.
9909
35c0084b
TT
99102012-03-01 Tom Tromey <tromey@redhat.com>
9911
9912 * value.h (val_print): Return void.
9913 * valprint.c (val_print): Return void.
9914
a1f5dd1b
TT
99152012-03-01 Tom Tromey <tromey@redhat.com>
9916
9917 * value.h (common_val_print): Return void.
9918 * valprint.c (common_val_print): Return void.
9919
8e069a98
TT
99202012-03-01 Tom Tromey <tromey@redhat.com>
9921
9922 * value.h (value_print): Return void.
9923 * valprint.c (value_print): Return void.
9924 * p-valprint.c (pascal_value_print): Return void.
9925 * p-lang.h (pascal_value_print): Return void.
9926 * language.h (struct language_defn) <la_value_print>: Return
9927 void.
9928 * language.c (unk_lang_value_print): Return void.
9929 * jv-valprint.c (java_value_print): Return void.
9930 * jv-lang.h (java_value_print): Return void.
9931 * f-valprint.c (c_value_print): Don't declare.
9932 Include c-lang.h.
9933 * c-valprint.c (c_value_print): Return void.
9934 * c-lang.h (c_value_print): Return void.
9935 * ada-valprint.c (ada_value_print): Return void.
9936 * ada-lang.h (ada_value_print): Return void.
9937
be335936
TT
99382012-03-01 Tom Tromey <tromey@redhat.com>
9939
9940 * value.c (value_primitive_field): Handle virtual base classes.
9941
b0db66a7
TT
99422012-03-01 Tom Tromey <tromey@redhat.com>
9943
9944 * gdbtypes.h (struct vbase): Remove.
9945
132c57b4
TT
99462012-03-01 Tom Tromey <tromey@redhat.com>
9947
9948 * c-valprint.c (print_function_pointer_address): Move...
9949 * valprint.c: ... here. Make non-static.
9950 * m2-valprint.c (print_function_pointer_address): Remove.
9951 * valprint.h (print_function_pointer_address): Declare.
9952
e41eec66
JB
99532012-03-01 Joel Brobecker <brobecker@adacore.com>
9954
9955 * NEWS: Document the fact that one can provide a condition when
9956 creating an Ada exception catchpoint.
9957
19c37f24
TT
99582012-03-01 Tom Tromey <tromey@redhat.com>
9959
9960 * valprint.c (val_print_type_code_flags): Fix placement of
9961 trailing brace.
9962
f0fed3a3
JB
99632012-03-01 Joel Brobecker <brobecker@adacore.com>
9964
9965 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9966 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9967 environment variable before calling update-copyright.
9968
8ba85d85
JB
99692012-03-01 Joel Brobecker <brobecker@adacore.com>
9970
9971 * gnulib/extra/update-copyright: Update to the latest from
9972 gnulib's git repository.
9973 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9974 variable to 2 instead of 1.
9975
8219b1e8
JB
99762012-02-29 Joel Brobecker <brobecker@adacore.com>
9977
9978 * varobj.c (c_value_of_variable): Remove dead code.
9979
718cb7da
JB
99802012-02-29 Joel Brobecker <brobecker@adacore.com>
9981
9982 * ada-lex.p (processId): Do not modify already encoded IDs.
9983 Update function documentation.
9984
739593e0
JB
99852012-02-29 Joel Brobecker <brobecker@adacore.com>
9986
9987 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9988 "name" with "struct symbol *name_sym".
9989 * ada-exp.y (write_var_or_type): Update call to
9990 ada_find_renaming_symbol.
9991 "name" with "struct symbol *name_sym". Adjust Implementation
9992 accordingly. Adjust the function documentation.
9993
852dff6c
JB
99942012-02-29 Joel Brobecker <brobecker@adacore.com>
9995
9996 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9997 * ada-lang.c (ada_find_any_type): Add advance declaration.
9998 Make static. Replace ada_find_any_symbol by
9999 ada_find_any_type_symbol.
10000 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10001 Improve function description. Make static.
10002 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10003 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10004
1b611343
JB
100052012-02-29 Joel Brobecker <brobecker@adacore.com>
10006
10007 * ada-lang.c (struct tag_args): Delete.
10008 (ada_get_tsd_type): Function body moved up in source file.
10009 (ada_tag_name_1, ada_tag_name_2): Delete.
10010 (ada_get_tsd_from_tag): New function.
10011 (ada_tag_name_from_tsd): New function.
10012 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10013 to determine the tag name.
10014
41246937
JB
100152012-02-29 Joel Brobecker <brobecker@adacore.com>
10016
10017 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10018 declaration.
10019 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10020 function.
10021
ffde82bf
JB
100222012-02-29 Joel Brobecker <brobecker@adacore.com>
10023
10024 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10025
2ad01556
JB
100262012-02-29 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10029 full searches.
10030
99b1c762
JB
100312012-02-29 Joel Brobecker <brobecker@adacore.com>
10032
10033 * ada-lang.c (constrained_packed_array_type): If there is a
10034 parallel XA type, use it to determine the array index type.
10035
2d4a02ee
JB
100362012-02-29 Joel Brobecker <brobecker@adacore.com>
10037
10038 * ada-valprint.c (ada_val_print_1): If our value is a reference
10039 to an array descriptor, dereference it before converting it
10040 to a simple array.
10041
c48db5ca
JB
100422012-02-29 Joel Brobecker <brobecker@adacore.com>
10043
10044 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10045 creating fixed value.
10046 (ada_value_ind, ada_coerce_ref, assign_component)
10047 (ada_evaluate_subexp): Remove call to unwrap_value before
10048 call to ada_to_fixed_value.
10049
2e6fda7d
JB
100502012-02-29 Joel Brobecker <brobecker@adacore.com>
10051
10052 * ada-lang.c (to_fixed_array_type): Set result's type name.
10053
5845583d
JB
100542012-02-29 Joel Brobecker <brobecker@adacore.com>
10055
10056 * ada-lang.c (catch_ada_exception_command_split): Add new
10057 argument cond_string. Add support for condition at end of
10058 "catch exception" commands.
10059 (ada_decode_exception_location): Add new argument cond_string.
10060 Update call to catch_ada_exception_command_split.
10061 (create_ada_exception_catchpoint): Add new argument cond_string.
10062 Set the breakpoint condition if needed.
10063 (catch_ada_exception_command): Update call to
10064 ada_decode_exception_location.
10065 (ada_decode_assert_location): Add function documentation.
10066 Add support for condition at end of "catch assert" command.
10067 (catch_assert_command): Update calls to ada_decode_assert_location
10068 and create_ada_exception_catchpoint.
10069
9a7f938f
JK
100702012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10071
10072 Fix disp-step-syscall.exp: fork: single step over fork.
10073 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10074 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10075 comment, change parameters gdbarch and ptid to regcache. Remove
10076 parameter regcache, initialize gdbarch from regcache here.
10077 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10078 New functions.
10079 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10080 instead.
10081 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10082 'syscall'. Make the 'int' check more strict.
10083
ffdf6de5
JK
100842012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10085
10086 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10087 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10088 (i386_linux_intx80_sysenter_syscall_record): ... here.
10089 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10090 Use the renamed function name.
10091
c70a6932
JK
100922012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10093
10094 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10095 * breakpoint.c (until_break_command): Likewise.
10096 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10097 * infcall.c (call_function_by_hand): Likewise.
10098 * infcmd.c (finish_forward): Likewise.
10099 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10100
05b8a789 101012012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10102
d4cd3da9
JB
10103 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10104 avoid variable assignments inside condition.
10105
6425366c
JK
101062012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10107
10108 Fix static analysis issue found by cppcheck.
10109 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10110 uninitialized BUF for size 2.
10111
c8cef75f 101122012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10113 Nathan Froyd <froydnj@codesourcery.com>
10114 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10115
10116 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10117 (mips16_instruction_has_delay_slot): Likewise.
10118 (mips_segment_boundary): Likewise.
10119 (mips_adjust_breakpoint_address): Likewise.
10120 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10121
473347ad 101222012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10123 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10124
10125 * infrun.c (handle_inferior_event): Don't proceed through
10126 shared library trampolines if stepping at the machine
10127 instruction level.
10128
cf233303
MR
101292012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10130
10131 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10132 too.
10133
cb2cf4ce
TS
101342012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10135
10136 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10137 (sh_stub_unwind_sniffer): New functions.
10138 (sh_stub_unwind): New variable.
10139 (sh_gdbarch_init): Wire everything.
10140
644cebc9
PA
101412012-02-27 Pedro Alves <palves@redhat.com>
10142
10143 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10144 (linux_nat_post_attach_wait): Adjust to use
10145 linux_proc_pid_is_stopped.
10146 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10147 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10148 based on pid_is_stopped from both linux-nat.c and
10149 gdbserver/linux-low.c, and renamed.
10150
283002cf
MR
101512012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10152
10153 * remote.c (remote_watchpoint_addr_within_range): New function.
10154 (init_remote_ops): Use it.
10155
9b3e86b1
MR
101562012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10157
10158 * target.h (target_watchpoint_addr_within_range): Document macro.
10159
e36930bb
PA
101602012-02-24 Pedro Alves <palves@redhat.com>
10161
10162 * stack.c (set_last_displayed_sal): Issue internal_error instead
10163 of warning, and issue it after clearing the last displayed sal.
10164
883bc8d1
PA
101652012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10166 Pedro Alves <palves@redhat.com>
10167
10168 * breakpoint.c (until_break_command): Install breakpoints after
10169 all frame manipulations.
10170
b775012e
LM
101712012-02-24 Luis Machado <lgustavo@codesourcery.com>
10172
10173 * remote.c (remote_supports_cond_breakpoints): New forward
10174 declaration.
10175 (remote_add_target_side_condition): New function.
10176 (remote_insert_breakpoint): Add target-side breakpoint
10177 conditional if supported.
10178 (remote_insert_hw_breakpoint): Likewise.
10179 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10180 hook.
10181
10182 * target.c (update_current_target): Inherit
10183 to_supports_evaluation_of_breakpoint_conditions.
10184 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10185
10186 * target.h (struct target_ops)
10187 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10188 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10189
10190 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10191 (condition_evaluation_both, condition_evaluation_auto,
10192 condition_evaluation_host, condition_evaluation_target,
10193 condition_evaluation_enums, condition_evaluation_mode_1,
10194 condition_evaluation_mode): New static globals.
10195 (translate_condition_evaluation_mode): New function.
10196 (breakpoint_condition_evaluation_mode): New function.
10197 (gdb_evaluates_breakpoint_condition_p): New function.
10198 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10199 (mark_breakpoint_modified): New function.
10200 (mark_breakpoint_location_modified): New function.
10201 (set_condition_evaluation_mode): New function.
10202 (show_condition_evaluation_mode): New function.
10203 (bp_location_compare_addrs): New function.
10204 (get_first_location_gte_addr): New helper function.
10205 (set_breakpoint_condition): Free condition bytecode if locations
10206 has become unconditional. Call mark_breakpoint_modified (...).
10207 (condition_command): Call update_global_location_list (1) for
10208 breakpoints.
10209 (breakpoint_xfer_memory): Use is_breakpoint (...).
10210 (is_breakpoint): New function.
10211 (parse_cond_to_aexpr): New function.
10212 (build_target_condition_list): New function.
10213 (insert_bp_location): Handle target-side conditional
10214 breakpoints and call build_target_condition_list (...).
10215 (update_inserted_breakpoint_locations): New function.
10216 (insert_breakpoint_locations): Handle target-side conditional
10217 breakpoints.
10218 (bpstat_check_breakpoint_conditions): Add comment.
10219 (bp_condition_evaluator): New function.
10220 (bp_location_condition_evaluator): New function.
10221 (print_breakpoint_location): Print information on where the condition
10222 will be evaluated.
10223 (print_one_breakpoint_location): Likewise.
10224 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10225 breakpoint location.
10226 (force_breakpoint_reinsertion): New functions.
10227 (update_global_location_list): Handle target-side breakpoint
10228 conditions.
10229 Reinsert locations that are already inserted if conditions have
10230 changed.
10231 (bp_location_dtor): Free agent expression bytecode.
10232 (disable_breakpoint): Call mark_breakpoint_modified (...).
10233 Call update_global_location_list (...) with parameter 1 for breakpoints.
10234 (disable_command): Call mark_breakpoint_location_modified (...).
10235 Call update_global_location_list (...) with parameter 1 for breakpoints.
10236 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10237 (enable_command): mark_breakpoint_location_modified (...).
10238 (_initialize_breakpoint): Update documentation and add
10239 condition-evaluation breakpoint subcommand.
10240
10241 * breakpoint.h: Include ax.h.
10242 (condition_list): New data structure.
10243 (condition_status): New enum.
10244 (bp_target_info) <cond_list>: New field.
10245 (bp_location) <condition_changed, cond_bytecode>: New fields.
10246 (is_breakpoint): New prototype.
10247
3788aec7
LM
102482012-02-24 Luis Machado <lgustavo@codesourcery.com>
10249
10250 * remote.c (remote_state) <cond_breakpoints>: New field.
10251 (PACKET_ConditionalBreakpoints): New enum.
10252 (remote_cond_breakpoint_feature): New function.
10253 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10254 (remote_supports_cond_breakpoints): New function.
10255 (_initialize_remote): Add new packet configuration for
10256 target-side conditional breakpoints.
10257
72895ff6
LM
102582012-02-24 Luis Machado <lgustavo@codesourcery.com>
10259
10260 * NEWS: Mention target-side conditional breakpoint support,
10261 new condition-evaluation breakpoint subcommand and remote
10262 packet extensions.
10263
dea2aa5f
LM
102642012-02-24 Luis Machado <lgustavo@codesourcery.com>
10265
10266 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10267 number.
10268
8a8bc27f
TS
102692012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10270
10271 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10272 (after_prologue): Remove.
10273
6b446fdf
TT
102742012-02-23 Tom Tromey <tromey@redhat.com>
10275
10276 * jv-valprint.c (java_val_print): Remove dead code.
10277
ef59abfb
TG
102782012-02-23 Tristan Gingold <gingold@adacore.com>
10279
a09130f9
PA
10280 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10281 known_tasks_element and known_tasks_length fields.
10282 (read_known_tasks_array): Change argument type. Use pointer type
10283 and number of elements from DATA. Adjust.
10284 (read_known_tasks_list): Likewise.
10285 (get_known_tasks_addr): Remove.
10286 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10287 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10288 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10289
def166f6
JK
102902012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10291
10292 PR backtrace/13716
10293 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10294 it after set_momentary_breakpoint.
10295
aeaa2474
SA
102962012-02-22 Sterling Augustine <saugustine@google.com>
10297
10298 PR 13689:
10299 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10300
feea76c2
GB
103012012-02-22 Gary Benson <gbenson@redhat.com>
10302
10303 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10304 (find_slot_in_mapped_hash): Likewise.
10305
f06e05e0
JK
103062012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10307
10308 PR build/13638
10309 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10310 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10311 * configure: Regenerate.
10312
b54a8fd7
PA
103132012-02-21 Tristan Gingold <gingold@adacore.com>
10314 Pedro Alves <palves@redhat.com>
10315
10316 * ia64-tdep.c: Do not include libunwind-ia64.h.
10317 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10318 Include libunwind-ia64.h instead of libunwind.h.
10319 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10320 for libunwind.h existence.
10321 * configure, config.in: Regenerate.
10322
dfcee124
AG
103232012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10324
10325 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10326 instead of value_rtti_target_type.
10327 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10328 instead of value_rtti_target_type.
10329 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10330 value_rtti_target_type.
10331 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10332 (value_rtti_target_type): Rename to ...
10333 (value_rtti_indirect_type): ... here and make it indirect. Update
10334 function comment.
10335 * value.c (readjust_indirect_value_type): New function.
10336 (coerce_ref): Support for enclosing type setting for references
10337 with readjust_indirect_value_type.
10338 * value.h (readjust_value_type): New declaration.
10339 (value_rtti_target_type): Rename to ...
10340 (value_rtti_indirect_type): ... here.
10341
02568277
AG
103422012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10343
10344 * MAINTAINERS (Write After Approval): Add myself to the list.
10345
10c07b7e 103462012-02-20 Doug Evans <dje@google.com>
28ee876a 10347
d82ea6a8
DE
10348 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10349 Rename objfile_p_char parameter to objfilep.
10350 (build_objfile_section_table): Result is now void. All callers
10351 updated.
10352 * objfiles.h (struct objfile): Tweak comments, whitespace.
10353 (build_objfile_section_table): Update.
10354
28ee876a
DE
10355 * elfread.c (elf_symfile_segments): Fix warning text.
10356
24c79950
TT
103572012-02-20 Tom Tromey <tromey@redhat.com>
10358
10359 PR gdb/13498:
10360 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10361 particular set of file names once.
10362 (dw2_map_symbol_filenames): Likewise.
10363
3a9b40b6
JK
103642012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10365
10366 Code cleanup.
10367 * main.c (write_files): Remove the declaration.
10368 (external_editor_command): Move the declaration ...
10369 [GDBTK] (external_editor_command): ... here. Fix the comment.
10370
4d0795ca
TT
103712012-02-20 Tom Tromey <tromey@redhat.com>
10372
10373 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10374 extraneous block.
10375
637fd620
TG
103762012-02-20 Tristan Gingold <gingold@adacore.com>
10377
10378 * darwin-nat.h (enum darwin_msg_state): Add comments.
10379
6f124894
TG
103802012-02-20 Tristan Gingold <gingold@adacore.com>
10381
10382 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10383 value.
10384
2e6e3d9c
JB
103852012-20-18 Joel Brobecker <brobecker@adacore.com>
10386
10387 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10388 between function description and implementation.
10389
2e8265fd
TT
103902012-02-17 Tom Tromey <tromey@redhat.com>
10391
10392 PR python/12070:
10393 * python/py-event.c (event_object_getset): New global.
10394 (event_object_type): Reference it.
10395 * python/py-type.c (field_object_getset): New global.
10396 (field_object_type): Reference it.
10397 * python/python-internal.h (gdb_py_generic_dict): Declare.
10398 * python/py-utils.c (gdb_py_generic_dict): New function.
10399
8544a150 104002012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10401
8544a150 10402 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10403
ca193e27
TS
104042012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10405
10406 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10407 TYPE_CALLING_CONVENTION annotation.
10408
e5586183
KB
104092012-02-16 Kevin Buettner <kevinb@redhat.com>
10410
10411 * MAINTAINERS: Add rx to target ISA section.
10412 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10413 (ALLDEPFILES): Add rx-tdep.c.
10414
7dcd53a0
TT
104152012-02-16 Tom Tromey <tromey@redhat.com>
10416
10417 * symfile.c (symbol_file_add_main_1): Use inferior's
10418 symfile_flags.
10419 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10420 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10421 inferior.
10422 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10423 inferior.
10424 (follow_exec): Use inferior's symfile_flags.
10425 * inferior.h (struct inferior) <symfile_flags>: New field.
10426
ddd60447
MF
104272012-02-16 Mike Frysinger <vapier@gentoo.org>
10428
10429 PR gdb/9734:
10430 * remote-sim.c (gdbsim_create_inferior): Call error() when
10431 sim_create_inferior() fails.
10432
b0d32fb6
TG
104332012-02-16 Josh Matthews <josh@joshmatthews.net>
10434
10435 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10436
9addecb9
TT
104372012-02-16 Tom Tromey <tromey@redhat.com>
10438
10439 PR c++/13653:
10440 * thread.c (struct current_thread_cleanup) <was_removable>: New
10441 field.
10442 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10443 (make_cleanup_restore_current_thread): Initialize new field.
10444
a58b110a
KB
104452012-02-15 Kevin Buettner <kevinb@redhat.com>
10446
10447 * MAINTAINERS: Add rl78 to target ISA section.
10448 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10449 (ALLDEPFILES): Add rl78-tdep.c.
10450 * NEWS: Mention rl78 as a new target.
10451
4cb6da1c
AR
104522012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10453
10454 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10455 data.
10456 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10457
3af2590d
TT
104582012-02-15 Tom Tromey <tromey@redhat.com>
10459
10460 PR gdb/12659:
10461 * infcmd.c (registers_info): Print just the current register's
10462 name.
10463
c6910659
TT
104642012-02-15 Tom Tromey <tromey@redhat.com>
10465
10466 * python/py-symbol.c (sympy_value): Use _().
10467
7cee1e54
PA
104682012-02-15 Pedro Alves <palves@redhat.com>
10469
10470 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10471 output to be like native targets'.
10472 (remote_pid_to_str): Special case the null ptid.
10473
816338b5
SS
104742012-02-14 Stan Shebs <stan@codesourcery.com>
10475
10476 * NEWS: Mention enable count command.
10477 * breakpoint.h (struct breakpoint): New field enable_count.
10478 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10479 (enable_breakpoint): Add arg to call.
10480 (struct disp_data): New struct.
10481 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10482 (do_map_enable_once_breakpoint): Create a struct and pass it.
10483 (do_map_enable_delete_breakpoint): Ditto.
10484 (do_map_enable_count_breakpoint): New function.
10485 (enable_count_command): New function.
10486 (bpstat_stop_status): Decrement enable_count.
10487 (print_one_breakpoint_location): Report enable count.
10488 (_initialize_breakpoint): Add enable count command.
10489
c47a44f4
KB
104902012-02-14 Kevin Buettner <kevinb@redhat.com>
10491
10492 * rl78-tdep.c (reggroups.h): Include.
10493 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10494 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10495 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10496 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10497 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10498 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10499 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10500 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10501 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10502 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10503 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10504 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10505 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10506 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10507 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10508 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10509 beginning of register list.
10510 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10511 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10512 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10513 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10514 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10515 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10516 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10517 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10518 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10519 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10520 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10521 the pseudo registers. Rearrange other pseudo registers too so
10522 that the bank registers appear at the end.
10523 (rl78_register_type): Account for the fact that the byte sized
10524 bank registers are now pseudo-registers.
10525 (rl78_register_name): Rearrange the register name array. Make
10526 initial set of raw banked registers inaccessible.
10527 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10528 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10529 case for copying bytes back and forth between raw and pseudo
10530 versions of the banked registers. Update other cases to reflect
10531 the changed names.
10532 (rl78_return_value): Update to account for changed names of
10533 raw registers.
10534 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10535 rl78_register_sim_regno().
10536
e4569f1e
KB
105372012-02-14 Kevin Buettner <kevinb@redhat.com>
10538
10539 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10540 the name parameter being passed to find_pc_partial_function().
10541
7a05aae7
JK
105422012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10543
10544 * MAINTAINERS: Step down from being ia64 target maintainer.
10545
11fde611
JK
105462012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10547
10548 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10549 compilation warning.
10550
57008375
JK
105512012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10552
10553 Fix crash on loaded shlibs without loaded exec_bfd.
10554 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10555 (set_section_command): Replace exec_bfd by p->bfd.
10556
ff3c9849
TT
105572012-02-10 Tom Tromey <tromey@redhat.com>
10558
10559 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10560 when we have a C++ qualified name.
10561
db2b9fdd
PA
105622012-02-10 Pedro Alves <palves@redhat.com>
10563
10564 * inferior.c (inferior_pid_to_str): New.
10565 (print_inferior, inferior_command): Use it.
10566
12cd34f3
PA
105672012-02-10 Pedro Alves <palves@redhat.com>
10568
10569 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10570 the test CFLAGS.
10571 * configure: Regenerate.
10572
e871429d
JK
105732012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10574
10575 * linespec.c (decode_line_internal): Fix comment correctness.
10576
1916efaf
PA
105772012-02-09 Valery Khromov <valery.khromov@gmail.com>
10578
10579 PR gdb/12953
10580 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10581 * amd64bsd-nat.c: Add support for debug registers (adapted from
10582 i386bsd-nat.c).
10583 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10584 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10585 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10586 (amd64bsd_dr_get_control): New functions.
10587 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10588 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10589 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10590 watchpoints initialization.
10591 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10592
f4859d94
JK
105932012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10594
10595 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10596 flds_bnds.fields.
10597 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10598
c56a97f9
JK
105992012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10600
10601 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10602
1a119f36
JB
106032012-02-08 Joel Brobecker <brobecker@adacore.com>
10604
10605 * language.h (symbol_name_cmp_ftype): Renames
10606 symbol_name_match_p_ftype.
10607 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10608 la_get_symbol_name_match_p.
10609 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10610 ada_get_symbol_name_match_p. Update comment.
10611 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10612 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10613 Renames symbol_name_match_p. Update field type.
10614 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10615 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10616 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10617 "la_get_symbol_name_cmp" in comments.
10618 * language.c: Likewise.
10619
c71bb1cf
RO
106202012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10621
10622 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10623 %eflags offset.
10624 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10625 (amd64_sol2_gregset32_reg_offs): Likewise.
10626
4b2d20a5
TG
106272012-02-08 Joel Brobecker <brobecker@adacore.com>
10628
10629 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10630 of the returned BFD is allocated by GDB.
10631
f0823d2c
TT
106322012-02-07 Tom Tromey <tromey@redhat.com>
10633
10634 PR python/12027:
10635 * python/python-internal.h (frame_object_type): Declare.
10636 * python/py-symbol.c (sympy_needs_frame): New function.
10637 (sympy_value): New function.
10638 (symbol_object_getset): Add "needs_frame".
10639 (symbol_object_methods): Add "value".
10640 * python/py-frame.c (frame_object_type): No longer static.
10641
64e7d9dd
TT
106422012-02-07 Tom Tromey <tromey@redhat.com>
10643
10644 PR python/13599:
10645 * python/py-symbol.c (sympy_line): New function.
10646 (symbol_object_getset): Add "line".
10647
1d6b2d2b
TT
106482012-02-07 Tom Tromey <tromey@redhat.com>
10649
10650 * charset.c (find_charset_names): Check 'in' against NULL.
10651
0d5cff50
DE
106522012-02-06 Doug Evans <dje@google.com>
10653
10654 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10655 and fields.name members from char * to const char *. All uses updated.
10656 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10657 from char * to const char *. All uses updated.
10658 (type_name_no_tag): Update.
10659 (lookup_unsigned_typename, lookup_signed_typename): Update.
10660 * gdbtypes.c (type_name_no_tag): Change result type
10661 from char * to const char *. All callers updated.
10662 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10663 name parameter from char * to const char *.
10664 * symtab.h (struct cplus_specific): Change type of demangled_name
10665 member from char * to const char *. All uses updated.
10666 (struct general_symbol_info): Change type of name and
10667 mangled_lang.demangled_name members from char * to const char *.
10668 All uses updated.
10669 (symbol_get_demangled_name, symbol_natural_name): Update.
10670 (symbol_demangled_name, symbol_search_name): Update.
10671 * symtab.c (symbol_get_demangled_name): Change result type
10672 from char * to const char *. All callers updated.
10673 (symbol_natural_name, symbol_demangled_name): Ditto.
10674 (symbol_search_name): Ditto.
10675 (completion_list_add_name): Change type of symname,sym_text,
10676 text,word parameters from char * to const char *.
10677 (completion_list_objc_symbol): Change type of sym_text,
10678 text,word parameters from char * to const char *.
10679 * ada-lang.c (find_struct_field): Change type of name parameter
10680 from char * to const char *.
10681 (encoded_ordered_before): Similarly for N0,N1 parameters.
10682 (old_renaming_is_invisible): Similarly for function_name parameter.
10683 (ada_type_name): Change result type from char * to const char *.
10684 All callers updated.
10685 * ada-lang.h (ada_type_name): Update.
10686 * buildsym.c (hashname): Change type of name parameter
10687 from char * to const char *.
10688 * buildsym.h (hashname): Update.
10689 * dbxread.c (end_psymtab): Change type of include_list parameter
10690 from char ** to const char **.
10691 * dwarf2read.c (determine_prefix): Change result type
10692 from char * to const char *. All callers updated.
10693 * f-lang.c (find_common_for_function): Change type of name, funcname
10694 parameters from char * to const char *.
10695 * f-lang.c (find_common_for_function): Update.
10696 * f-valprint.c (list_all_visible_commons): Change type of funcname
10697 parameters from char * to const char *.
10698 * gdbarch.sh (static_transform_name): Change type of name parameter
10699 and result from char * to const char *.
10700 * gdbarch.c: Regenerate.
10701 * gdbarch.h: Regenerate.
10702 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10703 of name parameter from char * to const char *.
10704 * jv-lang.c (java_primitive_type_from_name): Ditto.
10705 (java_demangled_signature_length): Similarly for signature parameter.
10706 (java_demangled_signature_copy): Ditto.
10707 (java_demangle_type_signature): Ditto.
10708 * jv-lang.h (java_primitive_type_from_name): Update.
10709 (java_demangle_type_signature): Update.
10710 * objc-lang.c (specialcmp): Change type of a,b parameters
10711 from char * to const char *.
10712 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10713 from char * to const char *. All callers updated.
10714 * p-lang.h (is_pascal_string_type): Update.
10715 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10716 of name parameter from char * to const char *.
10717 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10718 * utils.c (fprintf_symbol_filtered): Ditto.
10719 * defs.h (fprintf_symbol_filtered): Update.
10720 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10721 * stabsread.h (end_psymtab): Update.
10722 * stack.c (find_frame_funname): Change type of funname parameter
10723 from char ** to const char **.
10724 * stack.h (find_frame_funname): Update.
10725 * typeprint.c (type_print): Change type of varstring parameter
10726 from char * to const char *.
10727 * value.h (type_print): Update.
10728 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10729 from char * to const char *. All callers updated.
10730 (xcoff_end_psymtab): Change type of include_list parameter
10731 from char ** to const char **. All callers updated.
10732 (swap_sym): Similarly for name parameter. All callers updated.
10733 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10734 Use xstrdup.
10735 (process_coff_symbol): Use xstrdup.
10736 * stabsread.c (stabs_method_name_from_physname): Renamed from
10737 update_method_name_from_physname. Change result type from void
10738 to char *. All callers updated.
10739 (read_member_functions): In has_destructor case, store name in objfile
10740 obstack instead of malloc space. In !has_stub case, fix mem leak.
10741
5579a92e
TT
107422012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10743
10744 * configure: Rebuild.
10745 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10746 LDFLAGS.
10747
9058f767
KB
107482012-02-03 Kevin Buettner <kevinb@redhat.com>
10749
10750 * configure.tgt (rl78-*-elf): New target.
10751 * rl78-tdep.c: New file.
10752
5b37825d
PW
107532012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10754
10755 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10756 and continue the loop. Add QUIT statement.
10757
e009ee71
TT
107582012-02-03 Tom Tromey <tromey@redhat.com>
10759
10760 PR gdb/13596:
10761 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10762 bfd_lookup_symbol_from_symtab.
10763 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10764 gdb_bfd_lookup_symbol_from_symtab.
10765
f7e44f65
JB
107662012-02-03 Joel Brobecker <brobecker@adacore.com>
10767
10768 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10769 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10770 symbol. Add assertion that sym2 is never NULL.
10771
2c02bd72
DE
107722012-02-02 Doug Evans <dje@google.com>
10773
10774 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10775 "name" parameter to const char ** from char **. All callers updated.
10776 (find_pc_partial_function): Ditto.
10777 (cache_pc_function_name): Change type to const char * from char *.
10778 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10779 (find_pc_partial_function): Update.
10780 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10781 type of "name" parameter to const char * from char *.
10782 All uses updated.
10783 * arch-utils.c (generic_in_solib_return_trampoline): Change
10784 type of "name" parameter to const char * from char *.
10785 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10786 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10787 type of "name" parameter to const char * from char *.
10788 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10789 * gdbarch.c: Regenerate.
10790 * gdbarch.h: Regenerate.
10791 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10792 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10793 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10794 type of "name" parameter to const char * from char *.
10795 * skip.c (skip_function_pc): Ditto.
10796 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10797 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10798 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10799 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10800 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10801 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10802 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10803 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10804 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10805
e886a173
PA
108062012-02-02 Pedro Alves <palves@redhat.com>
10807
10808 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10809 the current inferior has no execution. Make sure the current
10810 remote process matches gdb's current inferior.
10811
c709a7c2
TT
108122012-02-02 Tom Tromey <tromey@redhat.com>
10813
10814 PR gdb/13405:
10815 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10816 read-only memory.
10817
f149aabd
TT
108182012-02-02 Tom Tromey <tromey@redhat.com>
10819
10820 PR gdb/9307:
10821 * symtab.c (lookup_language_this): Set block_found.
10822
03bef283
TT
108232012-02-01 Tom Tromey <tromey@redhat.com>
10824
10825 PR gdb/13431:
10826 * jit.c (struct jit_inferior_data): Rewrite.
10827 (struct jit_objfile_data): New.
10828 (get_jit_objfile_data): New function.
10829 (add_objfile_entry): Update.
10830 (jit_read_descriptor): Return int. Replace descriptor_addr
10831 argument with inf_data. Update. Don't call error.
10832 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10833 descriptor here.
10834 (jit_inferior_init): Don't look up descriptor. Don't call error.
10835 (jit_reset_inferior_data_and_breakpoints)
10836 (jit_inferior_created_observer): Remove.
10837 (jit_inferior_exit_hook): Update.
10838 (jit_executable_changed_observer): Remove.
10839 (jit_event_handler): Update.
10840 (free_objfile_data): Reset inferior data if needed.
10841 (_initialize_jit): Update.
10842
f0bbc364
TT
108432012-02-01 Tom Tromey <tromey@redhat.com>
10844
10845 * jit.c (bfd_open_from_target_memory): Move higher in file.
10846
47c1316c
TG
108472012-02-01 Tristan Gingold <gingold@adacore.com>
10848
10849 * libunwind-frame.c (libunwind_load): Display message if dlopen
10850 failed.
10851
8e704927
GB
108522012-02-01 Gary Benson <gbenson@redhat.com>
10853
09c7a31f 10854 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10855 (iterate_over_symbols): Use the above.
10856 * symtab.c (iterate_over_symbols): Likewise.
10857 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10858 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10859 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10860 (iterate_name_matcher): Document return values.
10861 (collect_one_symbol): Likewise.
10862 (collect_function_symbols): Likewise.
10863 (collect_symbols): Likewise.
10864
d9680e73
TT
108652012-02-01 Tom Tromey <tromey@redhat.com>
10866
10867 * ada-lang.c (resolve_subexp): Update.
10868 (ada_lookup_symbol_list): Add 'full_search' argument.
10869 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10870 ada_lookup_symbol_list.
10871 (ada_lookup_encoded_symbol): Update.
10872 (get_var_value): Update.
10873 * ada-exp.y (block_lookup): Update.
10874 (write_var_or_type): Update.
10875 (write_name_assoc): Update.
10876 * ada-lang.h (ada_lookup_symbol_list): Update.
10877
72e1143f
TT
108782012-01-31 Tom Tromey <tromey@redhat.com>
10879
10880 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10881 comment.
10882
ab2d2ad3
DE
108832012-01-31 Doug Evans <dje@google.com>
10884
10885 * symtab.h: Remove outdated comment.
e9111bf7 10886 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10887
bc884eba
JB
108882012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10889
10890 Fix build error in Darwin port.
10891 * i386-darwin-nat.c: Include i386-nat.h.
10892
8fc3fc34
TT
108932012-01-30 Tom Tromey <tromey@redhat.com>
10894
10895 PR breakpoints/13568:
10896 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10897 argument. Check for recursive includes.
10898 (dwarf_decode_macros): Create an include hash.
10899
5d853008
ME
109002012-01-30 Michael Eager <eager@eagercon.com>
10901
10902 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10903 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10904 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10905 (powerpc_linux_in_plt_stub): New function.
10906 (powerpc_linux_in_dynsym_resolve_code): New function.
10907 (ppc_skip_trampoline_code): New function.
10908 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10909 Use glibc_skip_solib_resolver.
10910
40478521
JK
109112012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10912
10913 Code cleanup: Make 1440 bytes of data segment read-only.
10914 * arch-utils.c (endian_enum): Make it const char *const [].
10915 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10916 Likewise.
10917 * breakpoint.c (always_inserted_enums): Likewise.
10918 * cli/cli-cmds.c (script_ext_enums): Likewise.
10919 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10920 enumlist parameter const char *const *.
10921 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10922 const char *const *.
10923 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10924 parameter const char *const *.
10925 * cris-tdep.c (cris_modes): Make it const char *const [].
10926 * filesystem.c (target_file_system_kinds): Likewise.
10927 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10928 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10929 (can_use_displaced_stepping_enum, scheduler_enums)
10930 (exec_direction_names): Likewise.
10931 * language.c (_initialize_language): Make the type_or_range_names and
10932 case_sensitive_names variables const char *const [].
10933 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10934 * python/python.c (python_excp_enums): Likewise.
10935 * remote.c (interrupt_sequence_modes): Likewise.
10936 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10937 * serial.c (logbase_enums): Likewise.
10938 * sh-tdep.c (sh_cc_enum): Likewise.
10939 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10940 Likewise.
10941 * symtab.c (multiple_symbols_modes): Likewise.
10942 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10943 Likewise.
10944 * utils.c (internal_problem_modes): Likewise.
10945
b3b8b934
JK
109462012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10947
10948 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10949 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10950 result.
10951
8c85a4e2
DE
109522012-01-27 Doug Evans <dje@google.com>
10953
10954 * configure.ac (with_python): Fix absolute path handling for win32.
10955 * configure: Regenerate.
10956
78d8b4d7
DE
109572012-01-26 Doug Evans <dje@google.com>
10958
eca864fe
DE
10959 * symtab.c: Whitespace cleanup, no code changes.
10960
7e082072
DE
10961 * symtab.c (lookup_symbol_in_language): Improve comment.
10962 (lookup_symbol_aux): Fix comment.
10963
7dc25483
DE
10964 * psymtab.c (add_psymbol_to_list): Result is now "void".
10965 * psympriv.h (add_psymbol_to_list): Update.
10966
78d8b4d7
DE
10967 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10968
4c63965b
JK
109692012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10970
10971 Do not open script filenames twice.
10972 * cli/cli-cmds.c (source_script_from_stream): Pass to
10973 source_python_script also STREAM.
10974 * python/py-auto-load.c (source_section_scripts): Pass to
10975 source_python_script_for_objfile also STREAM.
10976 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10977 also INPUT.
10978 * python/python-internal.h (source_python_script_for_objfile): New
10979 parameter file, rename parameter file to filename.
10980 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10981 instead if !_WIN32. Update the function comment.
10982 (source_python_script, source_python_script_for_objfile)
10983 (source_python_script): New parameter file, rename parameter file to
10984 filename. Pass FILENAME to python_run_simple_file.
10985 * python/python.h (source_python_script): New parameter file, rename
10986 parameter file to filename.
10987
88f38a04
PA
109882012-01-26 Pedro Alves <palves@redhat.com>
10989
10990 * corelow.c (core_has_fake_pid): Delete.
10991 (core_close): Delete references to `core_has_fake_pid'.
10992 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10993 (core_open): Delete references to `core_has_fake_pid'.
10994 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10995 the removed global.
10996
e078317b
JB
109972012-01-26 Joel Brobecker <brobecker@adacore.com>
10998
10999 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11000 Remove language parameter from name_matcher. Adjust the comment.
11001 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11002 Remove language parameter.
11003 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11004 * linespec.c (iterate_name_matcher): Likewise.
11005 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11006 name_matcher. Adjust call accordingly.
11007 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11008 (maintenance_check_symtabs): Adjust type of parameter "fun".
11009 * psymtab.h (maintenance_check_symtabs): Likewise.
11010
74ccd7f5
JB
110112012-01-26 Joel Brobecker <brobecker@adacore.com>
11012
11013 * language.h (symbol_name_match_p_ftype): New typedef.
11014 (struct language_defn): Replace field la_symbol_name_compare
11015 by la_get_symbol_name_match_p.
11016 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11017 (ada_language_defn): Use it.
11018 * linespec.c (struct symbol_matcher_data): New type.
11019 (iterate_name_matcher): Rewrite.
11020 (iterate_over_all_matching_symtabs): Pass a pointer to
11021 a symbol_matcher_data struct to expand_symtabs_matching
11022 instead of just the lookup name.
11023 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11024 opencl-lang.c, p-lang.c, language.c: Delete field
11025 la_symbol_name_compare, and replace by NULL for new field
11026 la_get_symbol_name_match_p.
11027 * symfile.h (struct quick_symbol_functions): Update comment.
11028
5d268276
TT
110292012-01-25 Tom Tromey <tromey@redhat.com>
11030
11031 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11032 dereferencing.
11033
edcc5120
TT
110342012-01-24 Tom Tromey <tromey@redhat.com>
11035
11036 PR symtab/12406:
11037 * solib.c (update_solib_list): Update the program space's
11038 added_solibs and deleted_solibs fields.
11039 * progspace.h (struct program_space) <added_solibs,
11040 deleted_solibs>: New fields.
11041 (clear_program_space_solib_cache): Declare.
11042 * progspace.c (release_program_space): Call
11043 clear_program_space_solib_cache.
11044 (clear_program_space_solib_cache): New function.
11045 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11046 bpstat_stop_status. Use handle_solib_event.
11047 * breakpoint.c: Include gdb_regex.h.
11048 (print_solib_event): New function.
11049 (bpstat_print): Use print_solib_event.
11050 (bpstat_stop_status): Add special case for bp_shlib_event.
11051 (handle_solib_event): New function.
11052 (bpstat_what): Use handle_solib_event.
11053 (struct solib_catchpoint): New.
11054 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11055 (breakpoint_hit_catch_solib, check_status_catch_solib)
11056 (print_it_catch_solib, print_one_catch_solib)
11057 (print_mention_catch_solib, print_recreate_catch_solib): New
11058 functions.
11059 (catch_solib_breakpoint_ops): New global.
11060 (catch_load_or_unload, catch_load_command_1)
11061 (catch_unload_command_1): New functions.
11062 (internal_bkpt_check_status): Add special case for
11063 bp_shlib_event.
11064 (internal_bkpt_print_it): Use print_solib_event.
11065 (initialize_breakpoint_ops): Initialize
11066 catch_solib_breakpoint_ops.
11067 (_initialize_breakpoint): Register "catch load" and "catch
11068 unload".
11069 * breakpoint.h (handle_solib_event): Declare.
11070 * NEWS: Add entry for "catch load" and "catch unload".
11071
fa864999
TT
110722012-01-24 Tom Tromey <tromey@redhat.com>
11073
11074 * ada-lang.c: Include gdb_vecs.h.
11075 * charset.c: Include gdb_vecs.h.
11076 * tracepoint.h: Include gdb_vecs.h.
11077 * gdb_vecs.h: New file.
11078
f90263c1
TT
110792012-01-24 Pedro Alves <pedro@codesourcery.com>
11080
11081 * breakpoint.c (breakpoint_hit_catch_fork)
11082 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11083 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11084 * infrun.c (inferior_has_forked, inferior_has_vforked)
11085 (inferior_has_execd, inferior_has_called_syscall): Delete.
11086 (handle_syscall_event): Get syscall_number from the execution
11087 control state's wait status.
11088 (wait_for_inferior): Don't clear syscall_number.
11089
09ac7c10
TT
110902012-01-24 Pedro Alves <palves@redhat.com>
11091
11092 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11093 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11094 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11095 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11096 `ws' parameter.
11097 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11098 false for events other than TARGET_SIGNAL_TRAP.
11099 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11100 Add `ws' parameter.
11101 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11102 events other than TARGET_SIGNAL_TRAP.
11103 (tracepoint_breakpoint_hit): Add `ws' parameter.
11104 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11105 parameter.
11106 (bpstat_stop_status): Same.
11107 (pc_at_non_inline_function): Same.
11108 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11109 to pass the current event's waitstatus to bpstat_stop_status
11110 and pc_at_non_inline_function.
11111
86eb7e95
JK
111122012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11113
11114 Code cleanup.
11115 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11116 Update the function comment for it.
11117 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11118 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11119 for STREAM.
11120
a9b3a50f
PA
111212012-01-24 Pedro Alves <palves@redhat.com>
11122
11123 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11124 outside `bs->stop' block.
11125 (bpstat_what): Rework bp_shlib_event handling.
11126 (internal_bkpt_check_status): If the breakpoint is a
11127 bp_shlib_event, then set bs->stop and bs->print if
11128 stop_on_solib_events is set.
11129
53fe1783
GB
111302012-01-24 Gary Benson <gbenson@redhat.com>
11131
11132 Delete #if 0'd out code.
11133 * stack.c (print_frame_label_vars): Remove.
11134 (catch_info): Likewise.
11135 (_initialize_stack): Remove "info catch" command.
11136 * NEWS: Mention the above.
11137
49c62f2e
PA
111382012-01-24 Pedro Alves <palves@redhat.com>
11139
11140 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11141 it.
11142 (remote_notice_new_inferior): If the remote end doesn't support
11143 the multiprocess extensions, then the PID is fake.
11144 (add_current_inferior_and_thread): New.
11145 (remote_start_remote): Use it.
11146 (extended_remote_attach_1): Adjust.
11147 (extended_remote_create_inferior_1): Use
11148 add_current_inferior_and_thread.
11149
d0d8b0c6
JK
111502012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11151
11152 Fix watchpoints to be specific for each inferior.
11153 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11154 current_program_space.
11155 * i386-nat.c (i386_inferior_data_cleanup): New.
11156 (i386_inferior_data_get): Replace variable inf_data_local by an
11157 inferior_data call.
11158 (i386_use_watchpoints): Initialize i386_inferior_data.
11159 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11160 specific iterate_over_lwps.
11161
4403d8e9
JK
111622012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11163
11164 Fix watchpoints across inferior fork.
11165 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11166 comment for linux_nat_iterate_watchpoint_lwps.
11167 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11168 linux_nat_iterate_watchpoint_lwps.
11169 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11170 * i386-linux-nat.c (update_debug_registers_callback): Update the
11171 comment for linux_nat_iterate_watchpoint_lwps.
11172 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11173 linux_nat_iterate_watchpoint_lwps.
11174 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11175 * i386-nat.c: Include inferior.h.
11176 (dr_mirror): Remove.
11177 (i386_inferior_data, struct i386_inferior_data)
11178 (i386_inferior_data_get): New.
11179 (i386_debug_reg_state): Use i386_inferior_data_get.
11180 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11181 (i386_insert_watchpoint, i386_remove_watchpoint)
11182 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11183 (i386_remove_hw_breakpoint): New variable state, use
11184 i386_debug_reg_state instead of DR_MIRROR.
11185 * linux-nat.c (delete_lwp): New declaration.
11186 (num_lwps): Move here from downwards.
11187 (delete_lwp_cleanup): New.
11188 (linux_child_follow_fork): Create new child_lp, call
11189 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11190 PTRACE_DETACH.
11191 (num_lwps): Move upwards.
11192 (linux_nat_iterate_watchpoint_lwps): New.
11193 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11194 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11195
2992c9a7 111962012-01-24 Joel Brobecker <brobecker@adacore.com>
11197
11198 GDB 7.4 released.
11199
e360902b
PA
112002012-01-23 Pedro Alves <palves@redhat.com>
11201
11202 * top.c (caution): Rename to ...
11203 (confirm): ... this.
11204 (show_caution): Rename to ...
11205 (show_confirm): ... this.
11206 (quit_cover): Adjust.
11207 (init_main): Adjust.
11208 * top.h (caution): Rename to ...
11209 (confirm): ... this.
11210 * utils.c (internal_vproblem, defaulted_query): Adjust.
11211
050a2e1d
PA
112122012-01-23 Pedro Alves <palves@redhat.com>
11213
11214 * top.c (caution): Update comment.
11215 (execute_command): Don't consider the current value of `caution'.
11216
77a35dd8
JK
112172012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11218
11219 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11220
a71b5a38
UW
112212012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11222
11223 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11224 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11225 * target.c (target_fileio_pwrite): Remove buffer address from
11226 debug output.
11227 (target_fileio_pread): Likewise.
11228
d99bd577
UW
112292012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11230
11231 * NEWS: Document remote "info proc" and "generate-core-file".
11232
35c2fab7
UW
112332012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11234
11235 * gdbarch.sh (find_memory_regions): New callback.
11236 * gdbarch.c, gdbarch.h: Regenerate.
11237
11238 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11239 callback before falling back to target method.
11240
11241 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11242 (linux_target_install_ops): No longer install it.
11243
11244 * linux-tdep.c (linux_find_memory_regions): New function.
11245 (linux_init_abi): Install it.
11246
6432734d
UW
112472012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11248
11249 * gdbarch.sh (make_corefile_notes): New architecture callback.
11250 * gdbarch.c: Regenerate.
11251 * gdbarch.h: Likewise.
11252
11253 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11254 before target_make_corefile_notes. If NULL is returned, the
11255 target does not support core file generation.
11256
11257 * linux-nat.c: Include "linux-tdep.h".
11258 (find_signalled_thread, find_stop_signal): Remove.
11259 (linux_nat_do_thread_registers): Likewise.
11260 (struct linux_nat_corefile_thread_data): Likewise.
11261 (linux_nat_corefile_thread_callback): Likewise.
11262 (iterate_over_spus): Likewise.
11263 (struct linux_spu_corefile_data): Likewise.
11264 (linux_spu_corefile_callback): Likewise.
11265 (linux_spu_make_corefile_notes): Likewise.
11266 (linux_nat_collect_thread_registers): New function.
11267 (linux_nat_make_corefile_notes): Replace contents by call to
11268 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11269 as native-only callback.
11270
11271 * linux-tdep.h: Include "bfd.h".
11272 (struct regcache): Add forward declaration.
11273 (linux_collect_thread_registers_ftype): New typedef.
11274 (linux_make_corefile_notes): Add prototype.
11275 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11276 "regset.h", and "elf-bfd.h".
11277 (find_signalled_thread, find_stop_signal): New functions.
11278 (linux_spu_make_corefile_notes): Likewise.
11279 (linux_collect_thread_registers): Likewise.
11280 (struct linux_corefile_thread_data): New data structure.
11281 (linux_corefile_thread_callback): New funcion.
11282 (linux_make_corefile_notes): Likewise.
11283 (linux_make_corefile_notes_1): Likewise.
11284 (linux_init_abi): Install it.
11285
3030c96e
UW
112862012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11287
11288 * gdbarch.sh (info_proc): New callback.
11289 * gdbarch.c, gdbarch.h: Regenerate.
11290
11291 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11292 before falling back to the target info_proc callback.
11293
11294 * linux-nat.c: Do not include "cli/cli-utils.h".
11295 (linux_nat_info_proc): Remove.
11296 (linux_target_install_ops): No longer install it.
11297
11298 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11299 (read_mapping): New function.
11300 (linux_info_proc): Likewise.
11301 (linux_init_abi): Install it.
11302
145b16a9
UW
113032012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11304
11305 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11306 * infcmd.c: (info_proc_cmd_1): New function.
11307 (info_proc_cmd): New function, moved here from equivalent routine
11308 orignally in linux-nat.c.
11309 (info_proc_cmd_mappings): Likewise.
11310 (info_proc_cmd_stat): Likewise.
11311 (info_proc_cmd_status): Likewise.
11312 (info_proc_cmd_cwd): Likewise.
11313 (info_proc_cmd_cmdline): Likewise.
11314 (info_proc_cmd_exe): Likewise.
11315 (info_proc_cmd_all): Likewise.
11316 (_initialize_infcmd): Install "info proc" command and subcommands.
11317
11318 * target.h (struct target_ops): Add to_info_proc.
11319 (target_info_proc): Add prototype.
11320 * target.c (target_info_proc): New function.
11321
11322 * procfs.c (procfs_info_proc): Add prototype.
11323 (info_proc_cmd): Rename into ...
11324 (procfs_info_proc): ... this. Update argument types as appropriate
11325 for a to_info_proc implementation. Handle "what" argument.
11326 (procfs_target): Install procfs_info_proc.
11327 (_initialize_procfs): No longer install "info proc" command.
11328
11329 * linux-nat.c: (enum info_proc_what): Remove.
11330 (linux_nat_info_proc_cmd_1): Rename into ...
11331 (linux_nat_info_proc): ... this. Update argument types as appropriate
11332 for a to_info_proc implementation.
11333 (linux_nat_info_proc_cmd): Remove.
11334 (linux_nat_info_proc_cmd_mappings): Likewise.
11335 (linux_nat_info_proc_cmd_stat): Likewise.
11336 (linux_nat_info_proc_cmd_status): Likewise.
11337 (linux_nat_info_proc_cmd_cwd): Likewise.
11338 (linux_nat_info_proc_cmd_cmdline): Likewise.
11339 (linux_nat_info_proc_cmd_exe): Likewise.
11340 (linux_nat_info_proc_cmd_all): Likewise.
11341 (linux_target_install_ops): Install linux_nat_info_proc.
11342 (_initialize_linux_nat): No longer install "info proc" command
11343 and subcommands.
11344
b9e7b9c3
UW
113452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11346
11347 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11348 * config.in, configure: Regenerate.
11349
11350 * target.h (struct target_ops): Add to_fileio_readlink.
11351 (target_fileio_readlink): Add prototype.
11352 * target.c (target_fileio_readlink): New function.
11353
11354 * inf-child.c: Conditionally include <sys/param.h>.
11355 (inf_child_fileio_readlink): New function.
11356 (inf_child_target): Install it.
11357
11358 * remote.c (PACKET_vFile_readlink): New enum value.
11359 (remote_hostio_readlink): New function.
11360 (init_remote_ops): Install it.
11361 (_initialize_remote): Handle vFile:readlink packet type.
11362
7313baad
UW
113632012-01-20 Pedro Alves <palves@redhat.com>
11364 Ulrich Weigand <ulrich.weigand@linaro.org>
11365
11366 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11367 * config.in, configure: Regenerate.
11368
11369 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11370 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11371 (target_fileio_open): Add prototype.
11372 (target_fileio_pwrite): Likewise.
11373 (target_fileio_pread): Likewise.
11374 (target_fileio_close): Likewise.
11375 (target_fileio_unlink): Likewise.
11376 (target_fileio_read_alloc): Likewise.
11377 (target_fileio_read_stralloc): Likewise.
11378
11379 * target.c: Include "gdb/fileio.h".
11380 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11381 (default_fileio_target): New function.
11382 (target_fileio_open): Likewise.
11383 (target_fileio_pwrite): Likewise.
11384 (target_fileio_pread): Likewise.
11385 (target_fileio_close): Likewise.
11386 (target_fileio_unlink): Likewise.
11387 (target_fileio_close_cleanup): Likewise.
11388 (target_fileio_read_alloc_1): Likewise.
11389 (target_fileio_read_alloc): Likewise.
11390 (target_fileio_read_stralloc): Likewise.
11391
11392 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11393 <fcntl.h>, and <unistd.h>.
11394 (inf_child_fileio_open_flags_to_host): New function.
11395 (inf_child_errno_to_fileio_error): Likewise.
11396 (inf_child_fileio_open): Likewise.
11397 (inf_child_fileio_pwrite): Likewise.
11398 (inf_child_fileio_pread): Likewise.
11399 (inf_child_fileio_close): Likewise.
11400 (inf_child_fileio_unlink): Likewise.
11401 (inf_child_target): Install to_fileio routines.
11402
11403 * remote.c (init_remote_ops): Install to_fileio routines.
11404
901f9912
UW
114052012-01-20 Pedro Alves <palves@redhat.com>
11406 Ulrich Weigand <ulrich.weigand@linaro.org>
11407
11408 * remote.c (remote_multi_process_p): Only check for multi-process
11409 protocol feature, do not check for extended protocol.
11410 (remote_supports_multi_process): Check for extended protocol here.
11411 (set_general_process): Likewise.
11412 (extended_remote_kill): Likewise.
11413 (remote_pid_to_str): Likewise.
11414 (remote_query_supported): Always query multiprocess mode.
11415
e714e1bf
UW
114162012-01-20 Pedro Alves <palves@redhat.com>
11417 Ulrich Weigand <ulrich.weigand@linaro.org>
11418
11419 * inferior.h (struct inferior): Add fake_pid_p.
11420 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11421 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11422 magic_null_ptid since the remote side doesn't provide a real PID.
11423
50897289
TT
114242012-01-19 Tom Tromey <tromey@redhat.com>
11425
11426 * NEWS: Combine the two Python sections.
11427
1afc2033
JK
114282012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11429
11430 * target.h (target_close): Update comment on the target's unpush state.
11431
305436e0
PA
114322012-01-19 Pedro Alves <palves@redhat.com>
11433
11434 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11435 linux_nat_async directly instead of going through the target
11436 vector.
11437 * target.c (unpush_target): Close target after unpushing it, not
11438 before.
11439
49323895
GB
114402012-01-19 Gary Benson <gbenson@redhat.com>
11441
11442 * mdebugread.c (sort_blocks): Replace integer constants with ones
11443 derived from FIRST_LOCAL_BLOCK.
11444
1db33378
PP
114452012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11446 Jan Kratochvil <jan.kratochvil@redhat.com>
11447
11448 PR gdb/9538
11449 * symfile.c (find_separate_debug_file): New function.
11450 (terminate_after_last_dir_separator): Likewise.
11451 (find_separate_debug_file_by_debuglink): Also try realpath.
11452 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11453 * configure: Regenerate.
11454 * config.in: Regenerate.
11455
f83d8a90
DE
114562012-01-18 Doug Evans <dje@google.com>
11457
11458 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11459 (main.o): Remove rule.
11460 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11461 (--with-sysroot): Rewrite.
11462 * configure: Regenerate.
11463 * config.in: Regenerate.
11464
2dbca4d6
SDJ
114652012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11466
11467 * parse.c (initialize_expout): New function.
11468 (reallocate_expout): Likewise.
11469 (parse_exp_in_context): Use `initialize_expout' and
11470 `reallocate_expout' when appropriate.
11471
0695b514
PA
114722012-01-18 Pedro Alves <palves@redhat.com>
11473
11474 * record.c (struct record_breakpoint, record_breakpoint_p)
11475 (record_breakpoints): New.
11476 (record_insert_breakpoint, record_remove_breakpoint): Manage
11477 record breakpoints list. Only remove breakpoints from the
11478 inferior if they had been inserted there in the first place.
11479
136e1c30
DE
114802012-01-17 Doug Evans <dje@google.com>
11481
11482 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11483 if we know we don't have a file name to look for.
11484
c0bf857d
PA
114852012-01-17 Pedro Alves <palves@redhat.com>
11486
11487 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11488 the frame's stop reason is UNWIND_UNAVAILABLE.
11489
b486de60
JK
114902012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11491
11492 Fix compilation error.
11493 * m2-exp.y (yyerror): Use ANSI C prototype.
11494
d04550a6
SDJ
114952012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11496
11497 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11498 (growbuf_by_size): Likewise.
11499 (yyerror): Likewise.
11500 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11501 (modblock): Remove variable (was #if 0'ed).
11502 (parse_number): Convert prototype from K&R to ANSI C.
11503 (yyerror): Likewise.
11504 * objc-exp.y (parse_number): Likewise.
11505 (yyerror): Likewise.
11506 (yylex): Remove #if 0'ed code.
11507 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11508 (yyerror): Likewise.
11509
4aac40c8
TT
115102012-01-16 Tom Tromey <tromey@redhat.com>
11511
11512 * NEWS: Add item.
11513 * symtab.h (compare_filenames_for_search): Declare.
11514 * symtab.c (compare_filenames_for_search): New function.
11515 (iterate_over_some_symtabs): Use it.
11516 * symfile.h (struct quick_symbol_functions)
11517 <map_symtabs_matching_filename>: Change spec.
11518 * psymtab.c (partial_map_symtabs_matching_filename): Use
11519 compare_filenames_for_search. Update for new spec.
11520 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11521 compare_filenames_for_search. Update for new spec.
11522 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11523
cafec441
TT
115242012-01-16 Tom Tromey <tromey@redhat.com>
11525
11526 PR python/13281:
11527 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11528 (struct main_type) <flag_flag_enum>: New field.
11529 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11530 * NEWS: Add entries.
11531 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11532 enums.
11533 * python/lib/gdb/printing.py (_EnumInstance): New class.
11534 (FlagEnumerationPrinter): Likewise.
11535
983af33b
SDJ
115362012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11537
11538 * breakpoint.c (create_sals_from_address_default): New function.
11539 (create_breakpoints_sal_default): Likewise.
11540 (decode_linespec_default): Likewise.
11541 (is_marker_spec): Removed.
11542 (strace_marker_p): New function.
11543 (init_breakpoint_sal): Using `strace_marker_p' instead of
11544 `is_marker_spec'.
11545 (create_breakpoint): Call method `create_sals_from_address' from
11546 breakpoint_ops, replacing code that created SALs conditionally
11547 on the type of the breakpoint. Call method `create_breakpoints_sal',
11548 replacing code that created breakpoints conditionally on the type
11549 wanted.
11550 (base_breakpoint_create_sals_from_address): New function.
11551 (base_breakpoint_create_breakpoints_sal): Likewise.
11552 (base_breakpoint_decode_linespec): Likewise.
11553 (base_breakpoint_ops): Add methods
11554 `base_breakpoint_create_sals_from_address',
11555 `base_breakpoint_create_breakpoints_sal' and
11556 `base_breakpoint_decode_linespec'.
11557 (bkpt_create_sals_from_address): New function.
11558 (bkpt_create_breakpoints_sal): Likewise.
11559 (bkpt_decode_linespec): Likewise.
11560 (tracepoint_create_sals_from_address): Likewise.
11561 (tracepoint_create_breakpoints_sal): Likewise.
11562 (tracepoint_decode_linespec): Likewise.
11563 (strace_marker_create_sals_from_address): Likewise.
11564 (strace_marker_create_breakpoints_sal): Likewise.
11565 (strace_marker_decode_linespec): Likewise.
11566 (strace_marker_breakpoint_ops): New variable.
11567 (addr_string_to_sals): Remove `marker_spec'. Call method
11568 `decode_linespec' from breakpoint_ops, replacing code that decoded
11569 an address string into a SAL. Use `strace_marker_p' instead of
11570 `marker_spec'.
11571 (strace_command): Decide whether we are dealing with a static
11572 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11573 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11574 * breakpoint.h (linespec_result, linespec_sals): New forward
11575 declarations.
11576 (breakpoint_ops) <create_sals_from_address>,
11577 <create_breakpoints_sal>, <decode_linespec>: New methods.
11578
4795f398
DE
115792012-01-14 Doug Evans <dje@google.com>
11580
11581 * NEWS: Update text for "maint set python print-stack".
11582 It is deprecated in gdb 7.4 and deleted in 7.5.
11583
ee5106fe
EZ
115842012-01-13 Eli Zaretskii <eliz@gnu.org>
11585
11586 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11587 including curses.h.
11588
b161e06f
JK
115892012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11590
11591 * configure: Regenerate.
11592 * config.in: Regenerate.
11593
85254831
KS
115942012-01-12 Keith Seitz <keiths@redhat.com>
11595
11596 PR mi/10586
11597 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11598 (ANONYMOUS_UNION_NAME): Define.
11599 (is_path_expr_parent): New function.
11600 (get_path_expr_parent): New function.
11601 (is_anonymous_child): New function.
11602 (create_child_with_value): If the child is anonymous and without
11603 a name, assign an object name to it.
11604 (c_describe_child): Use get_path_expr_parent to determine
11605 the parent expression.
11606 If there field represents an anonymous struct or union and
11607 has no name, set an appropriate display name and expression.
11608 (cplus_describe_child): Likewise.
11609
620fa63a
PA
116102012-01-12 Pedro Alves <palves@redhat.com>
11611
11612 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11613 available when %ebp is found to be zero (outermost).
11614
2efa2c79
AT
116152012-01-11 Andreas Tobler <andreast@fgznet.ch>
11616
11617 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11618 an internal gdb_static_assert.
11619 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11620
88e7d25d
TT
116212012-01-11 Tom Tromey <tromey@redhat.com>
11622
11623 PR gdb/9598:
11624 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11625 catch" and "catch throw".
11626
72384ba3
PH
116272012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11628
11629 * blockframe.c (block_innermost_frame): Start search from selected
11630 frame, if present, or otherwise the current frame.
11631
11632 * c-exp.y (variable): Update innermost_block for
11633 'block COLONCOLON NAME' clause.
11634 * m2-exp.y (variable): Ditto.
11635 * objc-exp.y (variable): Ditto.
11636
065a711f
TT
116372012-01-10 Tom Tromey <tromey@redhat.com>
11638
11639 PR python/13199:
11640 * python/python.c (finish_python_initialization): Set sys.argv.
11641
f3f5162e
DE
116422012-01-10 Doug Evans <dje@google.com>
11643
11644 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11645 "want_line_info". All callers updated.
11646 (dwarf_decode_lines_1): New function.
11647 (handle_DW_AT_stmt_list): Add function comment.
11648 New arg "want_line_info". All callers updated.
11649 (read_file_scope,read_type_unit_scope): Move comment from
11650 handle_DW_AT_stmt_list to here.
11651
9934703b
JK
116522012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11653
11654 Fix regression after libiberty/ update for GCC PR 6057 and others.
11655 * c-exp.y (operator) <OPERATOR DELETE>
11656 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11657 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11658 (make_builtin_type, make_name): New variable i, add gdb_assert.
11659 (operator) <OPERATOR NEW>: Update ARGS to 3.
11660 (operator) <OPERATOR DELETE>: Add trailing space.
11661 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11662 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11663 * cp-support.c (cp_canonicalize_string): Check NULL from
11664 cp_comp_to_string, call warning and return.
11665
06b9f45f
JK
116662012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11667
11668 Fix duplicate .o files after omitting libbfd.a.
11669 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11670 (SFILES): Add corelow.c.
11671 (COMMON_OBS): Add corelow.o.
11672 (ALLDEPFILES): Remove corelow.c.
11673 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11674 * config/alpha/alpha-osf3.mh: Likewise.
11675 * config/alpha/fbsd.mh: Likewise.
11676 * config/arm/nbsdaout.mh: Likewise.
11677 * config/arm/nbsdelf.mh: Likewise.
11678 * config/i386/i386gnu.mh: Likewise.
11679 * config/ia64/hpux.mh: Likewise.
11680 * config/ia64/linux.mh: Likewise.
11681 * config/m32r/linux.mh: Likewise.
11682 * config/m68k/linux.mh: Likewise.
11683 * config/mips/irix5.mh: Likewise.
11684 * config/mips/irix6.mh: Likewise.
11685 * config/pa/hpux.mh: Likewise.
11686 * config/pa/linux.mh: Likewise.
11687 * config/powerpc/aix.mh: Likewise.
11688 * config/sparc/linux.mh: Likewise.
11689 * config/sparc/linux64.mh: Likewise.
11690 * config/sparc/sol2.mh: Likewise.
11691 * config/vax/vax.mh: Likewise.
11692 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11693 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11694 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11695 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11696 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11697 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11698 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11699 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11700 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11701 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11702 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11703 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11704 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11705 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11706 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11707 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11708 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11709 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11710 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11711 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11712 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11713 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11714 corelow.o from gdb_target_obs.
11715 * corefile.c (core_target): Update the comment on NULL value.
11716 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11717 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11718 MATCHES. Drop YUMMY set on NULL.
11719 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11720 reclaim CORE_DATA if it is already NULL.
11721
34365054
DE
117222012-01-09 Doug Evans <dje@google.com>
11723
11724 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11725 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11726
696166a3
KS
117272012-01-09 Keith Seitz <keiths@redhat.com>
11728
11729 * breakpoint.c (wrapper.h): Don't include.
11730
8e7b59a5
KS
117312012-01-09 Keith Seitz <keiths@redhat.com>
11732
11733 * Makefile.in (SFILES): Remove wrapper.c.
11734 (HFILES_NO_SRCDIR): Remove wrapper.h.
11735 (COMMON_OBS): Remove wrapper.o.
11736 * cli/cli-interp.c: Don't inlude wrapper.h.
11737 * corelow.c: Likewise.
11738 (core_open): Replace gdb_target_find_new_threads with
11739 TRY_CATCH around target_find_new_threads.
11740 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11741 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11742 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11743 evaluate_expression.
11744 (varobj_set_value): Likewise for evaluate_expression and
11745 value_assign.
11746 (install_new_variable): Likewise for value_fetch_lazy.
11747 (adjust_value_for_child_access): Likewise for value_ind.
11748 (c_describe_child): Likewise for value_subscript and
11749 value_ind.
11750 (c_value_of_root): Likewise for evaluate_expression.
11751 * wrapper.c: Remove.
11752 * wrapper.h: Remove.
11753
1a4eeb98
DE
117542012-01-09 Doug Evans <dje@google.com>
11755
9ff913ba
DE
11756 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11757 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11758 "abfd" args with "section". All callers updated.
11759 Error checking code moved ...
11760 (error_check_comp_unit_head): ... here. New function.
11761 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11762 Delete arg "abfd". New arg "type_offset". All callers updated.
11763 (create_debug_types_hash_table): Simplify by using
11764 read_and_check_type_unit_head.
11765
1a4eeb98
DE
11766 * parser-defs.h (namecopy): Delete.
11767 * parse.c (namecopy, namecopy_size): Move into copy_name.
11768
2e6af8c0
JK
117692012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11770
11771 Partially fix duplicate .o files after omitting libbfd.a.
11772 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11773 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11774 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11775 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11776 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11777 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11778 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11779
9f2f828a
PA
117802012-01-09 Pedro Alves <palves@redhat.com>
11781
11782 * MAINTAINERS: Update my email address.
11783
4d72c0bc
DE
117842012-01-08 Doug Evans <dje@google.com>
11785
d467dd73
DE
11786 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11787 n_type_units. Rename type_comp_units to all_type_units.
11788 All uses updated.
11789 (add_signatured_type_cu_to_table): Renamed from
11790 add_signatured_type_cu_to_list. All callers updated.
11791
4d72c0bc
DE
11792 * gdbtypes.h (struct cplus_struct_type): Delete member
11793 nfn_fields_total. All uses removed.
11794
21b2bd31
DE
117952012-01-06 Doug Evans <dje@google.com>
11796
11797 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11798 to top of file.
11799 (dwarf2_find_comp_unit): Delete.
11800 (process_psymtab_comp_unit): Make result "void".
11801 Delete args buffer, info_ptr, buffer_size, and replace with
11802 "section". All callers updated.
11803 (dwarf2_build_psymtabs_hard): Simplify.
11804
bfd189b1
SDJ
118052012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11806 Thiago Jung Bauermann <bauerman@br.ibm.com>
11807
11808 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11809 before `struct gdb_exception'.
11810 * breakpoint.c (update_global_location_list_nothrow)
11811 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11812 * cp-abi.c (value_rtti_type): Likewise.
11813 * cp-support.c (cp_validate_operator): Likewise.
11814 * infrun.c (insert_exception_resume_breakpoint)
11815 (check_exception_resume, keep_going): Likewise.
11816 * mi-interp.c (mi_breakpoint_created)
11817 (mi_breakpoint_modified): Likewise.
11818 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11819 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11820 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11821
6b07635f
DE
118222012-01-05 Doug Evans <dje@google.com>
11823
0b30b85c
DE
11824 * dwarf2read.c (statement_prologue): Delete, unused.
11825
98714339
DE
11826 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11827 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11828
6b07635f
DE
11829 * dwarf2read.c (comp_unit_header): Delete, unused.
11830
761f4555
UW
118312012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11832
11833 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11834 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11835
2ca0b532
PA
118362012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11837
11838 * infrun.c (normal_stop): Don't skip calling the normal_stop
11839 observers if the thread was doing a multi-step, but stopped for
11840 some reason other than stepping.
11841
50aeff07
PA
118422012-01-05 Pedro Alves <alves.ped@gmail.com>
11843
11844 * cli/cli-decode.h: Add comments.
11845 (CMD_LIST_AMBIGUOUS): Moved to command.h
11846 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11847 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11848 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11849 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11850 (add_com, add_com_alias, add_info, add_info_alias)
11851 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11852 declarations.
11853 * command.h: Add and adjust comments.
11854 (CMD_LIST_AMBIGUOUS): Moved here.
11855 (help_cmd, help_cmd_list): Delete declarations.
11856
5953832c
DE
118572012-01-04 Doug Evans <dje@google.com>
11858
e5fe5e75
DE
11859 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11860 All callers updated.
11861 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11862 Replace all arguments with "per_cu". All callers updated.
11863
28dee7f5
DE
11864 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11865
23745b47
DE
11866 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11867 New arg "per_cu". All callers updated.
11868
5953832c
DE
11869 Delete #if 0'd out code.
11870 * language.c (binop_result_type): Delete.
11871 (simple_type, ordered_type, same_type, integral_type): Delete.
11872 (numeric_type, character_type, string_type, boolean_type): Delete.
11873 (float_type, structured_type): Delete.
11874 * language.h: Update.
11875
0f5b7562
TT
118762012-01-04 Tom Tromey <tromey@redhat.com>
11877
11878 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11879
78218f56
JB
118802012-01-04 Joel Brobecker <brobecker@adacore.com>
11881
11882 * corefile.c (close_exec_file): Delete.
11883 (reopen_exec_file): Remove commented out code that seems related
11884 to close_exec_file, which is being deleted here.
11885 * inferior.h (close_exec_file): Delete.
11886 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11887
0fcd72ba
JB
118882012-01-04 Joel Brobecker <brobecker@adacore.com>
11889
11890 * ada-lang.c: #include "cli/cli-utils.h".
11891 (get_selections): Use skip_spaces.
11892 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11893 (catch_ada_exception_command_split): Use skip_spaces.
11894 (ada_decode_assert_location): Likewise.
11895
1dabb4c4
JB
118962012-01-04 Joel Brobecker <brobecker@adacore.com>
11897
11898 * linespec.c (decode_line_internal): Check for C++ or Java
11899 compound constructs only if the current language is C, C++
11900 or Java.
11901
5931a2fa
JK
119022012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11903
11904 Revert:
11905 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11906 Joel Brobecker <brobecker@adacore.com>
11907 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11908 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11909 3 times.
11910 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11911 fall through into AT_ENTRY_POINT.
11912 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11913 DUMMY_ADDR with it.
11914 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11915 PPC_INSN_SIZE skip to 3 times.
11916
1a2da5ee
JB
119172012-01-04 Joel Brobecker <brobecker@adacore.com>
11918
11919 * linespec.c (add_minsym): Preserve function descriptors.
11920
8645ff69
UW
119212012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11922
11923 * breakpoint.c (all_locations_are_pending): Consider locations
11924 in program spaces executing during startup pending as well.
11925
0b302171
JB
119262012-01-04 Joel Brobecker <brobecker@adacore.com>
11927
11928 Copyright year update in most files of the GDB Project.
11929
8ba098ad
JB
119302012-01-04 Joel Brobecker <brobecker@adacore.com>
11931
11932 * copyright.sh: Delete.
11933 * copyright.py: Rewrite.
11934
09c01c30
JB
119352012-01-04 Joel Brobecker <brobecker@adacore.com>
11936
11937 * gnulib/extra/update-copyright: New file, imported from gnulib.
11938
3c36c0af
JB
119392012-01-04 Joel Brobecker <brobecker@adacore.com>
11940
11941 * README (Copyright and License Notices): New section.
11942
888fe1e1
TT
119432012-01-03 Tom Tromey <tromey@redhat.com>
11944
11945 PR python/12533:
11946 * python/py-value.c (valpy_dereference, valpy_get_address
11947 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11948 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11949 (valpy_absolute, valpy_richcompare): Free intermediate values.
11950
6e681866
JB
119512011-01-03 Joel Brobecker <brobecker@adacore.com>
11952
11953 * ada-lang.c: Reformat the copyright notice.
11954
0cd09acb
JK
119552012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11956
11957 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11958 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11959 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11960 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11961 Revert this part of:
11962 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11963 Build gdb directly from *.o files not using libgdb.a.
11964 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11965
12c3e59c
JB
119662012-01-02 Joel Brobecker <brobecker@adacore.com>
11967
11968 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11969 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11970 Reformat the copyright header.
11971
11bf1490
JK
119722012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11973
11974 Revert this part of:
11975 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11976 Remove the gdbtui binary.
11977 * gdb.c (main): Remove args.interpreter_p initialization.
11978 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11979 * main.h (struct captured_main_args): Remove interpreter_p.
11980
1fef196f
JB
119812012-01-02 Joel Brobecker <brobecker@adacore.com>
11982
11983 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11984
67827812
JB
119852012-01-02 Joel Brobecker <brobecker@adacore.com>
11986
11987 * top.c (print_gdb_version): Update copyright year.
11988
a4d0b831
YQ
119892012-01-02 Yao Qi <yao@codesourcery.com>
11990
11991 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11992
b5914469
JK
119932012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11994 Joel Brobecker <brobecker@adacore.com>
11995
11996 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11997 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11998 3 times.
11999 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12000 fall through into AT_ENTRY_POINT.
12001 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12002 DUMMY_ADDR with it.
12003 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12004 PPC_INSN_SIZE skip to 3 times.
12005
8da828f7
JK
120062012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12007
12008 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12009 the return value.
12010 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12011
8574e74b
JK
120122012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12013
12014 Build gdb directly from *.o files not using libgdb.a.
12015 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12016 (COMMON_OBS): Remove solib-target.o.
12017 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12018 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12019 (LIBGDB_OBS, libgdb.a): Move it above.
12020 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12021 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12022 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12023 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12024 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12025 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12026 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12027 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12028 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12029 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12030 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12031 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12032 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12033 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12034 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12035 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12036 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12037 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12038 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12039 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12040 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12041 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12042 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12043 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12044 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12045 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12046 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12047
217bff3e
JK
120482012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12049
12050 Remove the gdbtui binary.
12051 * .gitignore (/gdbtui): Remove.
12052 * Makefile.in (TUI): Remove.
12053 (SUBDIR_TUI_OBS): Remove tui-main.o.
12054 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12055 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12056 (tui-main.o): Remove.
12057 (all_object_files): Remove tui-main.o.
12058 * NEWS: New note for the gdbtui removal.
12059 * configure: Rebuilt.
12060 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12061 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12062 CONFIG_UNINSTALL respectively.
12063 * gdb.c (main): Remove args.interpreter_p initialization.
12064 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12065 * main.h (struct captured_main_args): Remove interpreter_p.
12066 * tui/tui-main.c: Remove.
12067
9cdd5dbd
DE
120682012-01-01 Doug Evans <dje@google.com>
12069
bb5ed363
DE
12070 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12071 (dwarf2_physname, read_import_statement): Ditto.
12072 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12073 (process_structure_scope read_subroutine_type): Ditto.
12074 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12075 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12076 (dwarf2_fetch_die_location_block): Ditto.
12077 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12078
a0f42c21
DE
12079 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12080 All callers updated.
12081 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12082 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12083 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12084
2dc860c0
DE
12085 * dwarf2read.c (load_cu): Move assert to more useful location.
12086
68dc6402
DE
12087 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12088 All callers updated.
12089
9cdd5dbd
DE
12090 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12091 (dwarf2_elf_names): Minor reformat.
12092 (dwarf2_per_cu_data): Tweak comment.
12093 (dwarf2_read_section): Fix comment.
12094 (create_all_comp_units): Fix comment.
12095 (load_full_comp_unit): Fix comment.
12096 (process_full_comp_unit): Fix comment.
12097 (read_signatured_type): Fix comment.
12098
0c10e53e 12099For older changes see ChangeLog-2011.
c906108c
SS
12100\f
12101Local Variables:
12102mode: change-log
12103left-margin: 8
12104fill-column: 74
12105version-control: never
57da7796 12106coding: utf-8
c906108c 12107End:
This page took 1.985972 seconds and 4 git commands to generate.