gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
7cd12a76
YQ
12012-11-30 Yao Qi <yao@codesourcery.com>
2
3 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
4 check REGNUM >= 0.
5
7a76f5b8
YQ
62012-11-30 Yao Qi <yao@codesourcery.com>
7
8 * infrun.c: Make the declaration of 'init_infwait_state'
9 static.
10 (init_infwait_state): Make it 'static'.
11
b1209b03
UW
122012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
13
14 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
15 return value to void to avoid compiler warning.
16
ea5e6b0e
UW
172012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
18
19 * opencl-lang.c (opencl_print_type): New function.
20 (opencl_language_arch_info): Install it.
21
a93478ea
TT
222012-11-29 Tom Tromey <tromey@redhat.com>
23
24 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
25 xvasprintf.
26 * common/common-utils.c (xasprintf, xvasprintf): Remove.
27 * common/common-utils.h (xasprintf, xvasprintf): Remove.
28
ac4a2da4
JG
292012-11-29 Jerome Guitton <guitton@adacore.com>
30
31 * ada-lang.c (ada_is_interface_tag): New function.
32 (ada_is_ignored_field): Add interface tags to the list
33 of ignored fields.
34
b50d69b5
JG
352012-11-29 Jerome Guitton <guitton@adacore.com>
36
37 * ada-lang.h (ada_tag_value_at_base_address): New function
38 declaration.
39 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
40 New functions.
41 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
42 relocate the class-wide value if need be.
43 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
44 Let ada_tag_value_at_base_address relocate the class-wide access/ref
45 before dereferencing it.
46 * ada-valprint.c (ada_val_print_1): Relocate to base address
47 before displaying the content of an interface-wide ref.
48
ca1f964d
JG
492012-11-29 Jerome Guitton <guitton@adacore.com>
50
51 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
52
38d03cf1 532012-11-29 Joel Brobecker <brobecker@adacore.com>
54
55 GDB 7.5.1 released.
56
f5682501
YQ
572012-11-29 Yao Qi <yao@codesourcery.com>
58 Tom Tromey <tromey@redhat.com>
59
60 * eval.c (evaluate_subexp_standard): Get the correct pointer
61 type for TYPE_CODE_MEMBERPTR.
62
f359d716
EBM
632012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
64
65 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
66 since now it is being done by binutils' powerpc_init_dialect().
67
0cd61f44
TT
682012-11-28 Tom Tromey <tromey@redhat.com>
69
70 PR gdb/14290:
71 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
72 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
73 Use it.
74 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
75 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
76 (gdb_bfd_openr_next_archived_file): Use it.
77
945bf713
MM
782012-11-28 Markus Metzger <markus.t.metzger@intel.com>
79
80 * configure.ac: Check for linux/perf_event.h.
81 * config.in: Regenerated.
82 * configure: Regenerated.
83
7e20dfcd
YQ
842012-11-28 Yao Qi <yao@codesourcery.com>
85
86 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
87 abbreviate 'delete tracepoints' to 'delete tr'.
88 * corefile.c (_initialize_core): Call add_alias_cmd to
89 abbreviate 'set gnutarget' to 'set g'.
90 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
91 'show convenience' to 'show conv'.
92
b8293cc8
JB
932012-11-27 Joel Brobecker <brobecker@adacore.com>
94
95 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
96 call to sparc_supply_fpregset.
97 (fill_fpregset): Fix first parameter in call to
98 sparc_collect_fpregset.
99
8c2b9656
YQ
1002012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
101 Kazu Hirata <kazu@codesourcery.com>
102 Yao Qi <yao@codesourcery.com>
103
104 * objfiles.c (init_entry_point_info): Call
105 gdbarch_convert_from_func_ptr_addr and
106 gdbarch_addr_bits_remove here ...
107 (entry_point_address_query): ... instead of here.
108 * solib-svr4.c (exec_entry_point): Call
109 gdbarch_addr_bits_remove.
110 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
111 the entry address.
112
5edf51fe
YQ
1132012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
114 Yao Qi <yao@codesourcery.com>
115
116 * eval.c (evaluate_subexp_standard): Add handling of
117 TYPE_CODE_MEMBERPTR when calling functions. Correct the
118 result of ptype for calling a TYPE_CODE_METHODPTR.
119
ca242aad
YQ
1202012-11-27 Yao Qi <yao@codesourcery.com>
121
122 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
123 warning.
124 Add i18n markup.
125
608e2dbb
TT
1262012-11-26 Alexander Larsson <alexl@redhat.com>
127 Jan Kratochvil <jan.kratochvil@redhat.com>
128 Tom Tromey <tromey@redhat.com>
129
130 * NEWS: Mention mini debuginfo feature.
131 * minidebug.c: New file.
132 * configure.ac: Check for lzma.
133 * configure, config.in: Rebuild.
134 * Makefile.in (LIBLZMA): New variable.
135 (CLIBS): Include LIBLZMA.
136 (SFILES): Mention minidebug.c.
137 (COMMON_OBS): Mention minidebug.o.
138 * symfile.c (read_symbols): New function.
139 (syms_from_objfile, reread_symbols): Call it.
140 * symfile.h (find_separate_debug_file_in_section): Declare.
141
17d6efc4
JB
1422012-11-26 Keith Seitz <keiths@redhat.com>
143
144 * exec.c (exec_file_attach): Move cleanup after verifying that
145 memory has in fact been allocated.
146
210bbc17
TT
1472012-11-26 Tom Tromey <tromey@redhat.com>
148
149 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
150 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
151 SYMBOL_SYMTAB.
152 * skip.c (skip_info): Use SYMBOL_SYMTAB.
153
0270a750
PA
1542012-11-26 Maxime Villard <rustyBSD@gmx.fr>
155 Pedro Alves <palves@redhat.com>
156
157 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
158 size parameter passed to readlink by one byte.
159 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
160 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
161 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
162 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
163 size by one byte.
164
9c16be9a
YQ
1652012-11-26 Yao Qi <yao@codesourcery.com>
166
167 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
168 extraneous parentheses.
169
e6f3fa52
YQ
1702012-11-26 Yao Qi <yao@codesourcery.com>
171
172 * remote.c (remote_start_remote): Typo fix.
173
db75c717
DM
1742012-11-23 David S. Miller <davem@davemloft.net>
175
176 * sparc-tdep.h (struct sparc_fpregset): New data structure.
177 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
178 sparc32_sol2_fpregset): Declare new globals.
179 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
180 'fpregset' argument.
181 * sparc64-tdep.h (sparc64_supply_fpregset,
182 sparc64_collect_fpregset): Likewise.
183 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
184 globals.
185 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
186 (sparc_fpregset): Declare new global.
187 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
188 'fpregset' argument.
189 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
190 into handler.
191 (fill_fpregset): Likewise.
192 (_initialize_sparc_linux_nat): Set sparc_fpregset to
193 sparc32_bsd_fpregset.
194 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
195 sparc32_bsd_fpregset down into handler.
196 (sparc32_linux_collect_core_fpregset): Likewise.
197 * sparc-nat.c (sparc_fpregset): Define.
198 (sparc_supply_fpregset): Add 'fpregset' argument.
199 (sparc_collect_fpregset): Likewise.
200 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
201 into fpregset handler.
202 (sparc_store_inferior_registers): Likewise.
203 (_initialize_sparc_nat): Set sparc_fpregset to
204 sparc32_sunos4_fpregset if NULL.
205 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
206 down into handler.
207 (fill_fpregset): Likewise.
208 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
209 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
210 use it to compute offsets.
211 (sparc32_collect_fpregset): Likewise.
212 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
213 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
214 down into handler.
215 (fill_fpregset): Likewise.
216 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
217 Likewise.
218 (sparc64_linux_collect_core_fpregset): Likewise.
219 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
220 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
221 use it to compute offsets.
222 (sparc64_collect_fpregset): Likewise.
223 (sparc64_bsd_fpregset): Define.
224 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
225 sparc64_bsd_fpregset down into handler.
226 (sparc64fbsd_collect_fpregset): Likewise.
227 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
228 and pass sparc{32,64}_bsd_fpregset down into handler.
229 (sparc64nbsd_collect_fpregset): Likewise.
230 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
231 sparc64_bsd_fpregset down into handler.
232 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
233 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
234 to sparc32_bsd_fpregset.
235 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
236 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
237 (sparc32nbsd_supply_fpregset): Likewise.
238
cfcad218
TT
2392012-11-21 Tom Tromey <tromey@redhat.com>
240
241 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
242 field.
243 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
244 Remove.
245 * c-typeprint.c (c_type_print_base): Update.
246
85ddcc70
YQ
2472012-11-21 Yao Qi <yao@codesourcery.com>
248
249 PR tdep/7438
250 * gdbarch.sh (smash_text_address): Remove.
251 * gdbarch.c, gdbarch.h: Regenerate.
252 * arm-tdep.c (arm_smash_text_address): Remove.
253 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
254 * hppa-tdep.c (hppa_smash_text_address): Remove.
255 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
256 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
257 Caller update.
258 * coffread.c (coff_symtab_read): Caller update.
259 * dbxread.c (process_one_symbol): Likewise.
260 * elfread.c (record_minimal_symbol): Likewise.
261 * somread.c (som_symtab_read): Likewise.
262
11522069
PM
2632012-11-20 Pierre Muller <muller@sourceware.org>
264
265 ARI fixes: sprintf rule.
266 Replace sprintf function calls for char arrays by
267 calls to xsnprintf calls.
268 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
269 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
270 (arm_neon_quad_read, arm_pseudo_read): Ditto.
271 (arm_neon_quad_write, arm_pseudo_write): Ditto.
272 * breakpoint.c (condition_completer): Ditto.
273 (create_tracepoint_from_upload): Ditto.
274 * dwarf2read.c (file_full_name): Ditto.
275 * gcore.c (gcore_command): Ditto.
276 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
277 * go32-nat.c (go32_sysinfo): Ditto.
278 * interps.c (interp_set): Ditto.
279 * m32c-tdep.c (make_types): Ditto.
280 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
281 * remote-m32r-sdi.c (m32r_open): Ditto.
282 * sol-thread.c (td_err_string): Ditto.
283 (td_state_string, solaris_pid_to_str): Ditto.
284 * symtab.c (gdb_mangle_name): Ditto.
285 * cli/cli-script.c (execute_control_command): Ditto.
286 (define_command, document_command): Ditto.
287 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
288 * tui/tui-stack.c (tui_make_status_line): Ditto.
289 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
290
ace21957
MF
2912012-11-20 Mike Frysinger <vapier@gentoo.org>
292
293 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
294 it when looking at ptr->func.
295 * command.h (complete_on_cmdlist): Add a fourth arg.
296 * completer.c (complete_line_internal): Add local ignore_help_classes,
297 and set it to 1 when reason is not handle_help. Pass this down to
298 lookup_cmd_1 and complete_on_cmdlist.
299
ec6632d7
TT
3002012-11-20 Tom Tromey <tromey@redhat.com>
301
302 * completer.c (count_struct_fields): Remove.
303 (expression_completer): Don't call count_struct_fields.
304
ef37bb07
PA
3052012-11-20 Pedro Alves <palves@redhat.com>
306
307 * annotate.c (breakpoints_changed): Rename to ...
308 (annotate_breakpoints_changed): ... this.
309 (annotate_stopped, breakpoint_changed): Adjust caller.
310 * annotate.h (breakpoints_changed): Rename to ...
311 (annotate_breakpoints_changed): ... this.
312 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
313 (do_map_commands_command, init_raw_breakpoint, clear_command)
314 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
315
b245bdfc
DM
3162012-11-20 David S. Miller <davem@davemloft.net>
317
318 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
319 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
320 sysconf.
321 (get_cores_used_by_process): Update comment.
322
bd0cfc4d
YQ
3232012-11-20 Yao Qi <yao@codesourcery.com>
324
325 * objfiles.c (init_entry_point_info): Remove trailing spaces.
326
de9f1b68
YQ
3272012-11-20 Yao Qi <yao@codesourcery.com>
328
329 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
330 to deprecated_context_hook.
331
8870954f
YQ
3322012-11-19 Yao Qi <yao@codesourcery.com>
333
334 * infrun.c (infwait_state): Add static.
335
8dea366b
KS
3362012-11-16 Keith Seitz <keiths@redhat.com>
337
338 PR c++/13615
339 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
340 parameter and pass it to lookup_symbol_file.
341 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
342 to search base classes.
343 (cp_lookup_symbol_namespace): Likewise.
344 (lookup_namespace_scope): Likewise.
345 (lookup_symbol_file): Add SEARCH parameter.
346 If SEARCH is non-zero and no symbol is found, lookup the class
347 and call cp_lookup_nested_symbol.
348 (find_symbol_in_baseclass): New function.
349 (cp_lookup_nested_symbol): Do not let
350 cp_lookup_symbol_in_namespace search through base classes.
351 Do that later when there is no global symbol match.
352
e64e0392
DE
3532012-11-16 Doug Evans <dje@google.com>
354
355 * main.c (gdb_datadir_provided): New static global.
356 (get_init_files): If --data-directory is provided,
357 and SYSTEM_GDBINIT lives in data-directory, look for it there.
358 * NEWS: Mention it.
359
8bdce1ff
PM
3602012-11-15 Pierre Muller <muller@sourceware.org>
361
362 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
363 * gdb_stat.h: Delete. Moved to common directory.
364 * common/gdb_stat.h: New file.
365 * gdb_wait.h: Delete. Moved to common directory.
366 * common/gdb_wait.h: New file.
367 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
368 location.
369 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
370 location.
371 (stat.h rule): Adapt to new gdb_stat.h location.
372 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
373 <sys/stat.h> header.
374 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
375 <sys/wait.h> header.
376
3a731e0f
PM
3772012-11-15 Pierre Muller <muller@sourceware.org>
378
379 * configure.ac (AC_HEADER_STAT): Remove.
380 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
381 and corresponding code.
382 * configure: Regenerate.
383 * config.in: Regenerate.
384
2792b94d
PM
3852012-11-15 Pierre Muller <muller@sourceware.org>
386
387 ARI xasprintf rule fixes.
388 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
389 instead of xasprintf.
390 (open_and_init_dwp_file): Ditto.
391
5e34c6c3
LM
3922012-11-14 Luis Machado <lgustavo@codesourcery.com>
393
394 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
395 target types.
396
e68227b9
TT
3972012-11-14 Tom Tromey <tromey@redhat.com>
398
399 * configure, config.in: Rebuild.
400 * configure.ac: Don't check for ctype.h, time.h.
401 * expprint.c: Don't use HAVE_CTYPE_H.
402
aff68abb
TT
4032012-11-13 Tom Tromey <tromey@redhat.com>
404
405 * gdbarch.h, gdbarch.c: Rebuild.
406 * gdbarch.sh (set_target_gdbarch): Rename from
407 deprecated_target_gdbarch_select_hack.
408 * arch-utils.c (gdbarch_update_p): Update.
409 (set_gdbarch_from_file): Update.
410
84277139 4112012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
412
413 * MAINTAINERS (Responsible Maintainers/misc): Add myself
414 as responsible of contrib/ari directory.
415
2ae28aa9
YQ
4162012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
417 Yao Qi <yao@codesourcery.com>
418
419 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
420 bit of EXC_RETURN.
421 (arm_m_exception_cache, arm_m_exception_this_id)
422 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
423 (arm_m_exception_unwind): New.
424 (arm_gdbarch_init): Register arm_m_exception_unwind.
425
62747a60
TT
4262012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
427
428 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
429 parameter COUNT, for pattern filling of memory regions.
430 * NEWS: Mention it.
431
4cd29721
MM
4322012-11-13 Markus Metzger <markus.t.metzger@intel.com>
433
434 * disasm.h (DISASSEMBLY_FILENAME): New macro.
435 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
436 to print_source_lines ().
437 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
438 flag.
439 * source.c (print_source_lines_base): Prefix source line with
440 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
441
dfaae886
MM
4422012-11-13 Markus Metzger <markus.t.metzger@intel.com>
443
444 * symtab.h (print_source_lines_flags): New enum.
445 * source.c (print_source_lines_base): Change noerror to flags.
446 (print_source_lines): Change noerror to flags.
447
08850b56
PM
4482012-11-13 Pierre Muller <muller@sourceware.org>
449
450 ARI fixes: Avoid sprintf function use rule.
451 * charset.c (convert_between_encodings): Use xsnprintf.
452 * cli-out.c (cli_field_int): Likewise.
453 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
454 * expprint.c (op_name_standard): Likewise.
455 * frv-tdep.c (set_variant_num_gprs): Likewise.
456 (set_variant_num_fprs): Likewise.
457 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
458 * nto-tdep.c (nto_find_and_open_solib): Likewise.
459 (nto_init_solib_absolute_prefix): Likewise.
460 * source.c (init_source_path): Likewise.
461 (print_source_lines_base): Likewise.
462 * valprint.c (print_wchar): Likewise.
463 * mi/mi-out.c (mi_field_int): Likewise.
464 windows-nat.c (windows_pid_to_exec_file): Likewise.
465 (windows_create_inferior): Likewise.
466 (_initialize_check_for_gdb_ini): Likewise.
467
ca9d61b9
JB
4682012-11-12 Joel Brobecker <brobecker@adacore.com>
469
470 * frame.h (deprecated_frame_register_read): Renames
471 frame_register_read.
472 * frame.c (deprecated_frame_register_read): Renames
473 frame_register_read. Update all callers.
474 * i386-tdep.c: Update all callers of frame_register_read.
475 * infcmd.c: Likewise.
476 * jit.c: Likewise.
477 * mips-tdep.c: Likewise.
478 * mt-tdep.c: Likewise.
479 * sh64-tdep.c: Likewise.
480
b2c7d45a
JB
4812012-11-12 Joel Brobecker <brobecker@adacore.com>
482
483 * frame.h (frame_register_read): Remove FIXME comment.
484 * frame.c (frame_register_read): Add suggestion explaining
485 which function to use in place of this one.
486
31594462
TT
4872012-11-12 Tom Tromey <tromey@redhat.com>
488
489 * python/python.c (start_type_printers): Initialize 'result_obj'.
490
18a9fc12
TT
4912012-11-12 Tom Tromey <tromey@redhat.com>
492
493 * NEWS: Update.
494 * data-directory/Makefile.in (PYTHON_FILES): Add
495 type_printers.py.
496 * python/lib/gdb/command/type_printers.py: New file.
497 * python/lib/gdb/command/types.py (TypePrinter): New class.
498 (_get_some_type_recognizers, get_type_recognizers,
499 apply_type_recognizers, register_type_printer): New
500 functions.
501 * python/py-objfile.c (objfile_object) <type_printers>: New
502 field.
503 (objfpy_dealloc): Decref new field.
504 (objfpy_new): Set new field.
505 (objfpy_get_type_printers, objfpy_set_type_printers): New
506 functions.
507 (objfile_to_objfile_object): Set new field.
508 (objfile_getset): Add "type_printers".
509 * python/py-progspace.c (pspace_object) <type_printers>: New
510 field.
511 (pspy_dealloc): Decref new field.
512 (pspy_new): Set new field.
513 (pspy_get_type_printers, pspy_set_type_printers): New functions.
514 (pspace_to_pspace_object): Set new field.
515 (pspace_getset): Add "type_printers".
516 * python/python.c (start_type_printers, apply_type_printers,
517 free_type_printers): New functions.
518 (_initialize_python): Set gdb.type_printers.
519 * python/python.h (start_type_printers, apply_type_printers,
520 free_type_printers): Declare.
521 * typeprint.c (type_print_raw_options, default_ptype_flags):
522 Update for new fields.
523 (do_free_global_table, create_global_typedef_table,
524 find_global_typedef): New functions.
525 (find_typedef_in_hash): Use find_global_typedef.
526 (whatis_exp): Use create_global_typedef_table. Change cleanup
527 handling.
528 * typeprint.h (struct type_print_options) <global_typedefs,
529 global_printers>: New fields.
530
bd69fc68
TT
5312012-11-12 Tom Tromey <tromey@redhat.com>
532
533 * c-typeprint.c (find_typedef_for_canonicalize,
534 print_name_maybe_canonical): New functions.
535 (c_print_type): Look up type name.
536 (cp_type_print_derivation_info): Add flags argument. Use
537 print_name_maybe_canonical.
538 (cp_type_print_method_args): Add wrapping.
539 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
540 (c_type_print_template_args): New function.
541 (c_type_print_base): Change wrapping. Use
542 print_name_maybe_canonical.
543 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
544 type name lookups.
545 * gdbtypes.c (types_equal): No longer static.
546 * gdbtypes.h (types_equal): Declare.
547 * typeprint.c (type_print_raw_options, default_ptype_flags):
548 Update.
549 (struct typedef_hash_table): New.
550 (hash_typedef_field, eq_typedef_field,
551 recursively_update_typedef_hash, add_template_parameters,
552 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
553 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
554 copy_typedef_hash, find_typedef_in_hash): New functions.
555 * typeprint.h (struct type_print_options) <local_typedefs>:
556 New field.
557 (recursively_update_typedef_hash, add_template_parameters,
558 create_typedef_hash, free_typedef_hash,
559 make_cleanup_free_typedef_hash, copy_typedef_hash,
560 find_typedef_in_hash): Declare.
561
2621e0fd
TT
5622012-11-12 Tom Tromey <tromey@redhat.com>
563
564 * cp-support.c (inspect_type,
565 replace_typedefs_qualified_name, replace_typedefs): Add
566 finder, data arguments. Call as needed.
567 (cp_canonicalize_string_full): New function.
568 (cp_canonicalize_string_no_typedefs): Rewrite.
569 * cp-support.h (canonicalization_ftype): New typedef.
570 (cp_canonicalize_string_full): Declare.
571
53342f27
TT
5722012-11-12 Tom Tromey <tromey@redhat.com>
573
574 * NEWS: Update.
575 * c-typeprint.c (c_type_print_base): Handle print_method and
576 print_typedefs flags.
577 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
578 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
579 options.
580 * typeprint.c (type_print_raw_options, default_ptype_flags):
581 Update for new field.s
582 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
583 (setprinttypelist, showprinttypelist, print_methods,
584 print_typedefs): New globals.
585 (set_print_type, show_print_type, set_print_type_methods,
586 show_print_type_methods, set_print_type_typedefs,
587 show_print_type_typedefs): New functions.
588 (_initialize_typeprint): Update documentation. Add "print
589 type methods" and "print type typedefs" parameters.
590 * typeprint.h (struct type_print_options) <print_methods,
591 print_typedefs>: New fields.
592
6c8702eb
TT
5932012-11-12 Tom Tromey <tromey@redhat.com>
594
595 * c-typeprint.c (cp_type_print_method_args): Add flags
596 argument. Call c_print_type, not type_print.
597 (c_type_print_base): Call c_print_type, not type_print.
598 Update.
599
79d43c61
TT
6002012-11-12 Tom Tromey <tromey@redhat.com>
601
602 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
603 to type-printing functions.
604 * ada-lang.h (ada_print_type): Add argument.
605 * ada-typeprint.c (print_array_type, print_variant_clauses,
606 print_variant_part, print_selected_record_field_types,
607 print_record_field_types, print_unchecked_union_type,
608 print_func_type, ada_print_type): Add flags argument.
609 (ada_print_typedef): Update.
610 * c-exp.y (OPERATOR conversion_type_id): Update.
611 * c-lang.h (c_print_type, c_type_print_base): Update.
612 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
613 c_type_print_modifier, c_type_print_args,
614 c_type_print_varspec_suffix, c_type_print_base): Add flags
615 argument.
616 * cp-valprint.c (cp_print_class_member): Update.
617 * dwarf2read.c (dwarf2_compute_name): Update.
618 * f-lang.h (f_print_type): Add argument.
619 * f-typeprint.c (f_print_type): Add flags argument.
620 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
621 * go-lang.h (go_print_type): Add argument.
622 * go-typeprint.c (go_print_type): Add flags argument.
623 * jv-lang.h (java_print_type): Add argument.
624 * jv-typeprint.c (java_type_print_base, java_print_type): Add
625 flags argument.
626 * language.c (unk_lang_print_type): Add flags argument.
627 * language.h (struct language_defn) <la_print_type>: Add flags
628 argument.
629 (LA_PRINT_TYPE): Likewise.
630 * m2-lang.h (m2_print_type): Add argument.
631 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
632 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
633 m2_unbounded_array, m2_record_fields): Add flags argument.
634 * p-lang.h (pascal_print_type, pascal_type_print_base,
635 pascal_type_print_varspec_prefix): Add argument.
636 * p-typeprint.c (pascal_print_type,
637 pascal_type_print_varspec_prefix, pascal_print_func_args,
638 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
639 flags argument.
640 * symmisc.c (print_symbol): Update.
641 * typeprint.c (type_print_raw_options, default_ptype_flags):
642 New globals.
643 (type_print): Update.
644 * typeprint.h (struct type_print_options): New.
645 (type_print_raw_options): Declare.
646 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
647
cf4ded82
KS
6482012-11-10 Keith Seitz <keiths@redhat.com>
649
650 * breakpoint.c (clear_command): Add cleanup for
651 sals.sals if an argument is given.
652
653 * linespec.c (parse_linespec): Do cleanups after
654 parsing a convenience variable.
655
0d63ecda
KS
6562012-11-10 Keith Seitz <keiths@redhat.com>
657
658 PR gdb/14288
659 * c-valprint.c (c_val_print): For character arrays
660 with "print null" option on, print ellipses if
661 the output is truncated and the next character is not \000.
662 * valprint.c (MAX_WCHARS): Define.
663 (WCHAR_BUFLEN): Likewise.
664 (WCHAR_BUFLEN_MAX): Likewise.
665 (struct converted_character): New structure.
666 (count_next_character): New function.
667 (print_converted_chars_to_obstack): New function.
668 (generic_printstr): Rewrite using count_next_character
669 and print_converted_chars_to_obstack.
670
9b8d6827
SC
6712012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
672
673 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
674 while executing the gdb command.
675 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
676 are called from prompt_for_continue.
677 * tui/tui-io.c (tui_redisplay_readline): Likewise.
678
e840f632
SC
6792012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
680
681 PR tui/9584
682
683 * tui/tui.c (tui_rl_command_key): Do not call execute_command
684 but insert the command to execute in readline's buffer.
685
f5656ead
TT
6862012-11-09 Tom Tromey <tromey@redhat.com>
687
688 * gdbarch.sh (target_gdbarch): Remove macro.
689 (get_target_gdbarch): Rename to target_gdbarch.
690 * gdbarch.c, gdbarch.h: Rebuild.
691 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
692 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
693 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
694 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
695 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
696 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
697 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
698 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
699 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
700 procfs.c, progspace.c, ravenscar-thread.c, record.c,
701 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
702 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
703 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
704 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
705 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
706 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
707 target-descriptions.c, target.c, target.h, tracepoint.c,
708 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
709 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
710 python/py-inferior.c, python/python.c: Update.
711
ed8a1c2d
AB
7122012-11-09 Andrew Burgess <aburgess@broadcom.com>
713
714 * source.c (print_source_lines_base): Add fullname field giving
715 full path to file in mi output.
716 * NEWS: Mention the new fullname field.
717
504b36fd
YQ
7182012-11-09 Yao Qi <yao@codesourcery.com>
719
720 * NEWS: Mention the fix to the ambiguity of 'fo' command.
721
9107fc8d
PA
7222012-11-09 Pedro Alves <palves@redhat.com>
723
724 PR gdb/14306
725
726 * infrun.c: Include target-descriptions.h.
727 (follow_exec): Fetch new target description.
728
30f8135b
YQ
7292012-11-09 Yao Qi <yao@codesourcery.com>
730
731 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
732 0x8d (lea).
733
558a9d82
YQ
7342012-11-09 Yao Qi <yao@codesourcery.com>
735
736 * breakpoint.c: Declare set_tracepoint_count.
737 (install_breakpoint): Call set_tracepoint_count if B is a
738 tracepoint.
739 (trace_command): Don't call set_tracepoint_count. Re-indent.
740 (strace_command, ftrace_command):
741 (create_tracepoint_from_upload): Likewise.
742
6ecd4729
PA
7432012-11-09 Pedro Alves <palves@redhat.com>
744
745 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
746 (get_target_gdbarch) <gdbarch.h>: New function.
747 (startup_gdbarch) <gdbarch.h>: Declare.
748 <gdbarch.c> (target_gdbarch): Delete.
749 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
750 current inferior's gdbarch.
751 <gdbarch.c> (get_target_gdbarch): New function.
752 * inferior.c: Include target-descriptions.h.
753 (free_inferior): Free target description info.
754 (add_inferior_with_spaces): Set the inferior's initial
755 architecture.
756 (clone_inferior_command): Copy the original inferior's target
757 description if it was user specified.
758 (initialize_inferiors): Add comment.
759 * inferior.h (struct target_desc_info): Forward declare.
760 (struct inferior) <gdbarch>: New field.
761 * linux-nat.c: Include target-descriptions.h.
762 (linux_child_follow_fork): Copy the parent's architecture and
763 target description to the child.
764 * target-descriptions.c: Include inferior.h.
765 (struct target_desc_info): New structure, holding the equivalents
766 of ...
767 (target_desc_fetched, current_target_desc)
768 (target_description_filename): ... these removed globals.
769 (get_tdesc_info, target_desc_info_from_user_p)
770 (copy_inferior_target_desc_info, target_desc_info_free): New.
771 (target_desc_fetched, current_target_desc)
772 (target_description_filename): Reimplemented as convenience
773 macros.
774 (tdesc_filename_cmd_string): New global.
775 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
776 tdescs filename ..." commands to the per-inferior equivalent.
777 (show_tdesc_filename_cmd): Get the value to show from the
778 per-inferior description filename.
779 (_initilize_target_descriptions): Change the "set/show tdesc
780 filename" commands' variable.
781 * target-descriptions.h (struct target_desc, struct target_desc_info)
782 (struct inferior): Forward declare.
783 (target_find_description, target_clear_description)
784 (target_current_description): Adjust comments.
785 (copy_inferior_target_desc_info, target_desc_info_free)
786 (target_desc_info_from_user_p). Declare.
787
4ca4d161
SC
7882012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
789
790 * tui/tui-hooks.c (tui_about_to_proceed): New function.
791 (tui_target_wait_hook): Remove.
792 (tui_install_hooks): Install the about_to_proceed observer.
793 (tui_remove_hooks): And remove it here.
794
9015683b
TT
7952012-11-08 Tom Tromey <tromey@redhat.com>
796
797 * linux-tdep.c (linux_make_siginfo_note): New function.
798 (linux_make_corefile_notes): Use it.
799 * corelow.c (get_core_siginfo): New function.
800 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
801
ea9f10bb
TT
8022012-11-08 Tom Tromey <tromey@redhat.com>
803
804 PR gdb/14704:
805 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
806 (zlib_decompress_section): Remove.
807 (gdb_bfd_map_section): Only check for compressed section
808 in mmap case. Use bfd_get_full_section_contents.
809 * osabi.c (check_note): Add 'sectsize' argument. Read
810 section data.
811 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
812 section data. Update for check_note change.
813 * xcoffread.c (xcoff_initial_scan): Use
814 bfd_get_full_section_contents.
815 * py-auto-load.c (auto_load_section_scripts): Use
816 bfd_get_full_section_contents.
817 * contrib/cc-with-tweaks.sh: Add -Z option.
818
d071a26b
TT
8192012-11-08 Tom Tromey <tromey@redhat.com>
820
821 * python/py-bpevent.c: Include defs.h.
822 * python/py-continueevent.c: Include defs.h.
823 * python/py-event.c: Include defs.h.
824 * python/py-event.h: Don't include defs.h.
825 * python/py-events.h: Don't include defs.h.
826 * python/py-evts.c: Include defs.h.
827 * python/py-exitedevent.c: Include defs.h.
828 * python/py-newobjfileevent.c: Include defs.h.
829 * python/py-signalevent.c: Include defs.h.
830 * python/py-stopevent.c: Include defs.h.
831 * python/py-threadevent.c: Include defs.h.
832
4574b35a
PM
8332012-11-08 Pierre Muller <muller@sourceware.org>
834
835 * update-web-ari.sh (print_heading): Add number of files
836 checked.
837 (nb_files): New variable counting the number of sources
838 files found by gdb_find.sh script.
839 (debug_awk): New variable to allow extra debug output.
840 (indexes): Add more information if DEBUG_AWK is set.
841
2834ab42
EBM
8422012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
843
844 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
845 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
846 following the change in PLT call stubs on linker.
847
84f13595
PM
8482012-11-08 Pierre Muller <muller@sourceware.org>
849
850 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
851 as default language.
852 (AWK): Use = instead of == for sh test to avoid warning.
853 (Linux rule): Correct [:digit] into [[:digit:]].
854 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
855 (vasprintf rule): Adapt to common subdirectory moves.
856 (xasprintf rule): Idem.
857 (xvasprintf rule): Idem.
858 (var_boolean rule): Accept occurence in == or != test.
859
860 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
861
d69e6a33
SC
8622012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
863
864 * tui/tui-hooks.c (tui_inferior_exit): New function.
865 (tui_detach_hook): Remove.
866 (tui_install_hooks): Install the inferior exit observer.
867 (tui_remove_hooks): Remove it.
868
1e96de83
YQ
8692012-11-08 Yao Qi <yao@codesourcery.com>
870
871 PR gdb/14777.
872 * source.c (_initialize_source): Call add_com_alias to abbreviate
873 'forward-search' as 'fo'.
874
0baeab03
PA
8752012-11-07 Pedro Alves <palves@redhat.com>
876
877 * arm-tdep.c: Make defs.h be the first include.
878 * coff-pe-read.c: Ditto.
879 * gnu-nat.c: Ditto.
880 * go32-nat.c: Ditto.
881 * i386-nat.c: Ditto.
882 * ppcnbsd-nat.c: Ditto.
883 * ada-varobj.h: Don't include defs.h.
884 * i386-darwin-tdep.h: Ditto.
885 * i386-nat.h: Ditto.
886
892a8570
PA
8872012-11-07 Pedro Alves <palves@redhat.com>
888
889 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
890 Committee.
891
719502e9
PM
8922012-11-07 Pierre Muller <muller@sourceware.org>
893
894 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
895 File already uses "gdb_dirent.h" header.
896
ed86b350
YQ
8972012-11-07 Yao Qi <yao@codesourcery.com>
898
899 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
900 tracepoint_count'.
901
9a4f1e4f
TT
9022012-11-06 Tom Tromey <tromey@redhat.com>
903
904 * target.h (inferior_has_forked, inferior_has_vforked)
905 (inferior_has_execd, inferior_has_called_syscall): Remove
906 declarations.
907
0316657e
PM
9082012-11-06 Pierre Muller <muller@sourceware.org>
909
910 * remote.c (remote_insert_hw_breakpoint): ARI fix,
911 add missing internalization markup.
912
f6592439
PA
9132012-11-06 Pedro Alves <palves@redhat.com>
914
915 PR gdb/14810
916
917 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
918
01f2564a
PM
9192012-11-06 Pierre Muller <muller@sourceware.org>
920
921 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
922 is not executable.
923
f37c4431
JB
9242012-11-05 Joel Brobecker <brobecker@adacore.com>
925
926 * gnulib/update-gnulib.sh: New script.
927
550889c3
JB
9282012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
929
930 * MAINTAINERS: Update my email address.
931
954b50b3
TT
9322012-11-05 Tom Tromey <tromey@redhat.com>
933
934 * frame.c (put_frame_register): Don't use temporary buffer.
935
68c9da30
PA
9362012-11-05 Pedro Alves <palves@redhat.com>
937
938 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
939 child. Clear 'pending_detach'.
940 * infrun.c (handle_vfork_child_exec_or_exit): Clear
941 'pending_detach' in the vfork parent.
942
80626a55
DE
9432012-11-05 Doug Evans <dje@google.com>
944
945 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
946 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
947 * dwarf2read.c: #include "elf-bfd.h".
948 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
949 (dwop_section_names): Renamed from dwo_section names. All uses
950 updated. Add entries for .debug_cu_index, .debug_tu_index.
951 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
952 All uses updated.
953 (struct dwp_sections): New type.
954 (struct virtual_dwo_sections): New type.
955 (struct dwp_hash_table): New type.
956 (struct dwp_file): New type.
957 (init_cutu_and_read_dies): Ensure DWO info/types section has been
958 read in. Handle DWOs coming from DWP files.
959 (lookup_dwo_file_slot): New function.
960 (dwarf2_locate_dwo_sections): Move definition closer to use.
961 (create_dwo_debug_info_hash_table_reader): Renamed from
962 create_debug_info_hash_table_reader. All callers updated.
963 (create_dwo_debug_info_hash_table): Renamed from
964 create_debug_info_hash_table. All callers updated.
965 (create_dwp_hash_table): New function.
966 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
967 (lookup_dwo_in_dwp): New function.
968 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
969 is_dwp. All callers updated.
970 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
971 (open_and_init_dwo_file): Renamed from init_dwo_file.
972 All callers updated.
973 (lookup_dwo_file): Delete.
974 (dwarf2_locate_dwp_sections): New function.
975 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
976 (allocate_dwp_loaded_cutus_table): New function.
977 (open_and_init_dwp_file): New function.
978 (lookup_dwo_cutu): New function.
979 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
980
6f6484cd
YQ
9812012-11-03 Yao Qi <yao@codesourcery.com>
982
983 Fix PR gdb/14617.
984 * breakpoint.c (trace_pass_set_count): Call
985 observer_notify_breakpoint_modified instead of
986 observer_notify_tracepoint_modified.
987 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
988
b45627a0
TT
9892012-11-02 Tom Tromey <tromey@redhat.com>
990
991 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
992 argument to complete_on_enum.
993
d4fb63e1
TT
9942012-11-02 Tom Tromey <tromey@redhat.com>
995
996 * configure: Rebuild.
997 * configure.ac (build_warnings): Add -Wempty-body.
998 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
999 * remote.c (handle_notification): Use braces for empty 'else' body.
1000 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1001 'else' body.
1002 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1003 'else' body.
1004 * solib-som.c (som_relocate_section_addresses): Use braces
1005 for empty 'else' body.
1006 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1007 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1008
f50f4e56
PA
10092012-11-02 Pedro Alves <palves@redhat.com>
1010
1011 PR gdb/14766
1012
1013 * infrun.c (handle_inferior_event)
1014 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1015 null_ptid before handling a vfork child exec or exit. Switch to
1016 the event ptid afterwards.
1017
f0559fff
YQ
10182012-11-02 Yao Qi <yao@codesourcery.com>
1019
1020 * std-operator.def: Remove OP_LABELED.
1021 * eval.c: Remove the declaration of 'get_label'.
1022 (get_label): Remove.
1023 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1024 Update comment.
1025 Remove local variable 'variantno' and related code.
1026 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1027 with 'fieldno'.
1028 * expprint.c (print_subexp_standard): Likewise.
1029 (dump_subexp_body_standard): Likewise.
1030 * parse.c (operator_length_standard): Likewise.
1031
e5496e3e
PM
10322012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1033
1034 Incorporate ARI web page generator into GDB sources.
1035 * contrib/ari/create-web-ari-in-src.sh: New file.
1036 * contrib/ari/gdb_ari.sh: New file.
1037 * contrib/ari/gdb_find.sh: New file.
1038 * contrib/ari/update-web-ari.sh: New file.
1039
c66fb220
TT
10402012-10-31 Tom Tromey <tromey@redhat.com>
1041
1042 * gdbarch.c: Rebuild.
1043 * gdbarch.sh: Remove references to gdbarch_swap.
1044 * corelow.c (core_open): Remove obsolete comment.
1045
2f27adfe
AB
10462012-10-31 Andrew Burgess <aburgess@broadcom.com>
1047
1048 PR cli/14772
1049 * c-typeprint.c (c_print_type): Don't print a space for vector
1050 types, this is handled within the suffix.
1051 (c_type_print_varspec_suffix): Add a space to vector suffix.
1052
144db827
PA
10532012-10-26 Pedro Alves <palves@redhat.com>
1054
1055 * amd64-tdep.c (amd64_relocate_instruction): Use
1056 store_unsigned_integer instead of memcpy.
1057 * i386-tdep.c (i386_relocate_instruction): Ditto.
1058
940c3c06
PA
10592012-10-26 Pedro Alves <palves@redhat.com>
1060
1061 * infrun.c (handle_inferior_event): Merge handling of
1062 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1063 switch case.
1064
47b19065
PA
10652012-10-26 Pedro Alves <palves@redhat.com>
1066
1067 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1068 Remove comment.
1069
87d2d2a4
PA
10702012-10-26 Pedro Alves <palves@redhat.com>
1071
1072 * target.c (target_waitstatus_to_string): Handle
1073 TARGET_WAITKIND_VFORK_DONE.
1074
fed708ed
PA
10752012-10-26 Pedro Alves <palves@redhat.com>
1076
1077 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1078 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1079
2590b645
JB
10802012-10-24 Tristan Gingold <gingold@adacore.com>
1081
1082 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1083 Add comments.
1084
bed0c243
JB
10852012-10-24 Joel Brobecker <brobecker@adacore.com>
1086
1087 * ravenscar-thread.c (ravenscar_wait): Only update the list
1088 of threads and inferior_ptid if the inferior is still alive.
1089
f69c91ad
JB
10902012-10-24 Joel Brobecker <brobecker@adacore.com>
1091
1092 * ada-lang.c (is_known_support_routine): Use lbasename when
1093 matching the symtab's filename against
1094 known_runtime_file_name_patterns.
1095
d99dcf51
JB
10962012-10-24 Joel Brobecker <brobecker@adacore.com>
1097
1098 * ada-lang.c (ada_same_array_size_p): New function.
1099 (ada_promote_array_of_integrals): New function.
1100 (coerce_for_assign): Add handling of arrays where the elements
1101 are integrals of a smaller size than the size of the target
1102 array element type.
1103
32560274
JB
11042012-10-24 Joel Brobecker <brobecker@adacore.com>
1105
1106 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1107 against maximum exponent value.
1108
5a04cc98
JB
11092012-10-24 Joel Brobecker <brobecker@adacore.com>
1110
1111 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1112 "unwind-seh.c".
1113
5ded5331
JB
11142012-10-24 Joel Brobecker <brobecker@adacore.com>
1115
1116 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1117 strip typedef layer when computing the fixed type's field type,
1118 only when computing its size.
1119
2445fd7b
MK
11202012-10-24 Mark Kettenis <kettenis@gnu.org>
1121
1122 PR gdb/12783
1123 * i386-tdep.c (i386_return_value): Handle complex double and long
1124 double.
1125
8f205f9c
JB
11262012-10-24 Joel Brobecker <brobecker@adacore.com>
1127
1128 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1129 New local variable args_len.
1130 Quote the name of the executable when computing the command line.
1131
7f7930dd
MK
11322012-10-23 Mark Kettenis <kettenis@gnu.org>
1133
1134 PR gdb/12796
1135 PR gdb/12798
1136 PR gdb/12800
1137 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1138 AMD64_FTAG_REGNUM.
1139 * amd64-tdep.c (amd64_classify): Classify complex types.
1140 (amd64_return_value): Handle the COMPLEX_X87 class.
1141
38a69d0a
JB
11422012-10-23 Joel Brobecker <brobecker@adacore.com>
1143
1144 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1145 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1146
83ab93c6
JB
11472012-10-23 Joel Brobecker <brobecker@adacore.com>
1148
1149 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1150 function.
1151 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1152 to amd64_windows_auto_wide_charset.
1153
f6fbab7d
YQ
11542012-10-23 Yao Qi <yao@codesourcery.com>
1155
1156 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1157 * event-top.h: Remove its declaration.
1158 (async_request_quit): Call mark_async_signal_handler instead of
1159 mark_async_signal_handler_wrapper.
1160 (async_do_nothing, async_disconnect): Likewise.
1161 (async_stop_sig): Likewise.
1162 * remote.c (handle_remote_sigint): Likewise.
1163 (handle_remote_sigint_twice): Likewise.
1164
05fa9251
YQ
11652012-10-23 Yao Qi <yao@codesourcery.com>
1166
1167 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1168 with 'static struct async_signal_handler *'.
1169 (sighup_token, sigquit_token, sigstp_token): Likewise.
1170
08af7a40
AA
11712012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1172
1173 * gdbarch.sh (function_list): Use 'pstring' when printing
1174 a variable which could return NULL.
1175 * gdbarch.c: Regenerate.
1176
beb4b03c
JB
11772012-10-10 Joel Brobecker <brobecker@adacore.com>
1178 Tom Tromey <tromey@redhat.com>
1179
1180 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1181 inneffective if condition by gdb assertion. Add function
1182 description comment.
1183
a5b12627
JB
11842012-10-19 Joel Brobecker <brobecker@adacore.com>
1185
1186 * parser-defs.h (struct exp_descriptor): Document constraint
1187 on return value for "op_name" callbacks.
1188
0b0865da
TT
11892012-10-18 Tom Tromey <tromey@redhat.com>
1190
1191 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1192 * symtab.c (iterate_over_some_symtabs): Constify.
1193 * source.h (symtab_to_fullname): Return 'const char *'.
1194 * source.c (symtab_to_fullname): Return 'const char *'.
1195 * python/py-symtab.c (stpy_fullname): Constify.
1196 * cli/cli-cmds.c (edit_command): Constify.
1197 * breakpoint.c (print_breakpoint_location)
1198 (update_static_tracepoint): Constify.
1199
94b0e70d
TT
12002012-10-18 Tom Tromey <tromey@redhat.com>
1201
1202 * breakpoint.c (compare_breakpoints): Fix comparison.
1203
fff10684
TT
12042012-10-18 Tom Tromey <tromey@redhat.com>
1205
1206 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1207 gdb_wchar_t to convert_between_encodings.
1208
8de0566d
YQ
12092012-10-17 Yao Qi <yao@codesourcery.com>
1210
1211 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1212 more parameter 'inferior'.
1213 * corefile.c (write_memory_with_notification): Caller update.
1214
1215 * mi/mi-cmd-var.c: Include "mi-main.h".
1216 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1217 to 1 and restore it later.
1218 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1219 and "data-write-memory-bytes.
1220 * mi/mi-interp.c: Include objfiles.h.
1221 (mi_interpreter_init): Call observer_attach_memory_changed.
1222 (mi_memory_changed): New.
1223 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1224 New field.
1225
1226 * NEWS: Mention new MI notification "memory-changed".
1227
6235cdd1
JK
12282012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1229
1230 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1231
07540c15
DE
12322012-10-15 Doug Evans <dje@google.com>
1233
1234 New option -nh: inhibit loading of ~/.gdbinit.
1235 * NEWS: Mention -nh.
1236 * main.c (captured_main): Recognize and process -nh.
1237 (print_gdb_help): Mention -nh.
1238 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1239
eab09350
L
12402012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1241
1242 PR backtrace/14646
1243 PR gdb/14647
1244 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1245 pc_regnum_from_eax.
1246 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1247 nor pc_regnum_from_eax.
1248 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1249 nor pc_regnum_from_eax.
1250
9e3a7d65
JK
12512012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1252
1253 Fix entry values resolving in inlined frames.
1254 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1255 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1256 entries of FRAME.
1257
c83393b9
JB
12582012-10-15 Joel Brobecker <brobecker@adacore.com>
1259
1260 * configure.ac: Build with -DMS_WIN64 if building with Python
1261 enabled using GCC on amd64-windows.
1262 * configure: Regenerate.
1263
801e4185
TT
12642012-10-15 Tom Tromey <tromey@redhat.com>
1265
1266 PR python/14635:
1267 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1268 to Py_None.
1269
74f910c8
TT
12702012-10-15 Tom Tromey <tromey@redhat.com>
1271
1272 PR python/14634:
1273 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1274
2a7c8fd5
AB
12752012-10-11 Andrew Burgess <aburgess@broadcom.com>
1276
1277 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1278 reset thread numbering back to 1.
1279
7c09e5a0
DE
12802012-10-11 Doug Evans <dje@google.com>
1281
1282 PR breakpoints/14643.
1283 * linespec.c (struct ls_parser): New member keyword_ok.
1284 (linespec_lexer_lex_string): Add comment.
1285 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1286 for one.
1287 (parse_linespec): Set keyword_ok.
1288
a1855c1d
DE
12892012-10-10 Doug Evans <dje@google.com>
1290
844226d6
DE
1291 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1292 "0x" prefix on address in log message.
1293
a1855c1d
DE
1294 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1295 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1296 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1297 (lookup_dwo_file): Add const to dwo_name parameter.
1298 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1299
2e24f4aa
JK
13002012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1301
1302 Fix crash during stepping on ppc32.
1303 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1304 SYM.
1305
aa14df25
DE
13062012-10-03 Doug Evans <dje@google.com>
1307
1308 PR symtab/14601
1309 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1310
3d468296
AB
13112012-10-02 Andrew Burgess <aburgess@broadcom.com>
1312
1313 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1314 output and use uint32_t not long to ensure 4 byte size.
1315
8f0ee2eb
JB
13162012-10-02 Joel Brobecker <brobecker@adacore.com>
1317
1318 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1319 unref'ed it.
1320
b3dc46ff
AB
13212012-10-01 Andrew Burgess <aburgess@broadcom.com>
1322
1323 * target.c (simple_search_memory): Include access length in
1324 warning message.
1325
f712f01f
EBM
13262012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1327 Edjunior Machado <emachado@linux.vnet.ibm.com>
1328
1329 PR gdb/13989
1330 * solib.c (solib_find): Prevent GDB from loading native libraries when
1331 debugging a cross-target corefile.
1332
39181896
PA
13332012-09-28 selven <pcthegreat@gmail.com>
1334
1335 Make definition match declaration.
1336
1337 * regcache.c (regcache_register_status): Change return type to
1338 enum register_status.
1339
4c2786ba
YQ
13402012-09-28 Yao Qi <yao@codesourcery.com>
1341
1342 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1343 write_memory_with_notification instead of write_memory.
1344 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1345 instead of target_write_memory.
1346
1ae0c35e
YQ
13472012-09-28 Yao Qi <yao@codesourcery.com>
1348
1349 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1350 when the length of content is not an even number.
1351
7977e5d2
TT
13522012-09-27 Tom Tromey <tromey@redhat.com>
1353
1354 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1355 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1356
807160da
JB
13572012-09-27 Joel Brobecker <brobecker@adacore.com>
1358
1359 * sol-thread.c (sol_thread_fetch_registers)
1360 (sol_thread_store_registers): Delete commented out code.
1361
43c75337
JB
13622012-09-27 Joel Brobecker <brobecker@adacore.com>
1363
1364 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1365 Move these functions to sparc-sol-thread.c.
1366 * sparc-sol-thread.c: New file.
1367 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1368 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1369 configurations.
1370 * configure: Regenerate.
1371
d292a972
JB
13722012-09-27 Joel Brobecker <brobecker@adacore.com>
1373
1374 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1375 Remove commented-out code.
1376
8c3da003
JB
13772012-09-27 Joel Brobecker <brobecker@adacore.com>
1378
1379 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1380 Enable this code for sparc hosts only.
1381
f00482b6
JB
13822012-09-27 Joel Brobecker <brobecker@adacore.com>
1383
1384 * procfs.h (procfs_find_LDT_entry): Add declaration.
1385 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1386 function procfs_find_LDT_entry.
1387
337c776f
JB
13882012-09-27 Joel Brobecker <brobecker@adacore.com>
1389
1390 * procfs.c (proc_get_LDT_entry): Make static.
1391
1a04d88f
JB
13922012-09-27 Joel Brobecker <brobecker@adacore.com>
1393
1394 * procfs.c (proc_find_memory_regions): Fix declaration.
1395
bad43aa5
SP
13962012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1397
1398 * amd64-tdep.c (amd64_return_value): Revert previous change
1399 that used TYPE_LENGTH directly.
1400 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1401 (bfin_store_return_value): Likewise.
1402 * cris-tdep.c (cris_store_return_value): Likewise.
1403 (cris_extract_return_value): Likewise.
1404 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1405 * hppa-tdep.c (hppa64_return_value): Likewise.
1406 * lm32-tdep.c (lm32_store_return_value): Likewise.
1407 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1408 * spu-tdep.c (spu_value_from_register): Likewise.
1409 * vax-tdep.c (vax_return_value): Likewise.
1410
63375b74
SP
14112012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1412
1413 * gdbtypes.c (lookup_array_range_type): Expand parameters
1414 LOW_BOUND and HIGH_BOUND to LONGEST.
1415 (lookup_string_range_type): Likewise.
1416 * gdbtypes.h (lookup_array_range_type): Likewise.
1417 (lookup_string_range_type): Likewise.
1418 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1419 Expand HIGHBOUND to ssize_t.
1420 (value_string): Likewise.
1421 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1422 (value_string): Likewise.
1423
19ca11c5
YQ
14242012-09-27 Yao Qi <yao@codesourcery.com>
1425
1426 PR breakpoints/13898
1427 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1428 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1429 per breakpoint type.
1430
92107356
PM
14312012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1432
1433 * procfs.c: Add gdb_bfd header.
1434 * rs6000-nat.c: Likewise.
1435 * solib-pa64.c: Likewise.
1436 * spu-linux-nat.c: Likewise.
1437 * windows-nat.c: Likewise.
1438
9742094a
TT
14392012-09-26 Tom Tromey <tromey@redhat.com>
1440
1441 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1442
0971de02
TT
14432012-09-26 Tom Tromey <tromey@redhat.com>
1444
1445 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1446 (read_common_block): Handle child DIEs with
1447 DW_AT_data_member_location.
1448 (new_symbol_full): Add special case for common blocks.
1449
4357ac6c
TT
14502012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1451 Tom Tromey <tromey@redhat.com>
1452
1453 * dwarf2read.c (read_common_block): Rewrite.
1454 (new_symbol_full): Handle DW_TAG_common_block.
1455 * f-lang.c (head_common_list, find_common_for_function):
1456 Remove.
1457 * f-lang.h (struct common_entry, struct saved_f77_common,
1458 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1459 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1460 BLANK_COMMON_NAME_LOCAL): Remove.
1461 (struct common_block): New.
1462 * f-valprint.c (list_all_visible_commons): Remove.
1463 (info_common_command_for_block): New function.
1464 (info_common_command): Use it.
1465 * stack.c (iterate_over_block_locals): Special case for
1466 COMMON_BLOCK_DOMAIN.
1467 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1468 constant.
1469 (struct general_symbol_info) <value.common_block>: New field.
1470 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1471
965f07a8
TT
14722012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1473 Tom Tromey <tromey@redhat.com>
1474
1475 * f-lang.c (allocate_saved_bf_node,
1476 allocate_saved_function_node, allocate_saved_f77_common_node,
1477 allocate_common_entry_node, tail_common_list, current_common,
1478 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1479 tmp_bf_ptr, add_common_block, add_common_entry,
1480 find_first_common_named, patch_common_entries,
1481 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1482 global_remote_debug, get_bf_for_fcn, saved_function_list,
1483 saved_function_list_end, clear_function_list, struct saved_fcn,
1484 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1485 SAVED_BF, SAVED_BF_PTR): Remove.
1486 * f-lang.h (tail_common_list, current_common,
1487 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1488 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1489 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1490 real_main_c_value): Remove.
1491 * f-valprint.c (there_is_a_visible_common_named): Remove.
1492
6f380991
AB
14932012-09-26 Andrew Burgess <aburgess@broadcom.com>
1494
1495 * breakpoint.c (update_global_location_list): Ignore previous
1496 duplicate status of a breakpoint when starting a new scan for
1497 duplicate breakpoints.
1498
9ead7ae4 14992012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1500 PR breakpoints/14419
2536b51c
YQ
1501 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1502 support LLVM compiler.
9ead7ae4 1503
8f8a23a2
SP
15042012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1505
1506 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1507 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1508 (bfin_store_return_value): Likewise.
1509 * cris-tdep.c (cris_store_return_value): Likewise.
1510 (cris_extract_return_value): Likewise.
1511 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1512 * hppa-tdep.c (hppa64_return_value): Likewise.
1513 * lm32-tdep.c (lm32_store_return_value): Likewise.
1514 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1515 * spu-tdep.c (spu_value_from_register): Likewise.
1516 * vax-tdep.c (vax_return_value): Likewise.
1517
d7019589
SP
15182012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1519
1520 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1521 parameter LEN to ssize_t.
1522
744a8059
SP
15232012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1524
1525 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1526 variable LEN.
1527 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1528 directly.
1529 (alpha_store_return_value): Likewise.
1530 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1531 (amd64_push_arguments): Likewise.
1532 * ax-gdb.c (gen_trace_static_fields): Likewise.
1533 (gen_traced_pop): Likewise.
1534 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1535 * breakpoint.c (update_watchpoint): Likewise.
1536 * findcmd.c (parse_find_args): Use local variable for type
1537 instead of length.
1538 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1539 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1540 (h8300_store_return_value): Likewise.
1541 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1542 Use i386_darwin_arg_type_alignment directly.
1543 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1544 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1545 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1546 (m68hc11_extract_return_value): Likewise.
1547 * mep-tdep.c (mep_push_dummy_call): Likewise.
1548 * printcmd.c (float_type_from_length): Likewise.
1549 * s390-tdep.c (s390_value_from_register): Likewise.
1550 * stack.c (read_frame_arg): Likewise.
1551 * tracepoint.c (encode_actions_1): Likewise.
1552 * valops.c (value_fetch_lazy): Use local variable for type
1553 instead of length. Use TYPE_LENGTH directly.
1554 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1555
a4b411d6
JB
15562012-09-25 Joel Brobecker <brobecker@adacore.com>
1557
1558 * symtab.c (skip_prologue_sal): Fix typo in comment.
1559
11dba07a
JB
15602012-09-25 Joel Brobecker <brobecker@adacore.com>
1561
1562 * linespec.c (create_sals_line_offset): Fix typo in comment.
1563
318102b9
SP
15642012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1565
1566 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1567 use plongest to print the array size.
1568
b4aa388a
SP
15692012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1570
1571 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1572 * p-valprint.c (pascal_type_print_base): Likewise.
1573
84cebc4a
YQ
15742012-09-22 Yao Qi <yao@codesourcery.com>
1575
1576 * remote.c (remote_get_trace_status): Remove setting default
1577 values of fields of 'ts'.
1578
04e7407c
JK
15792012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1580
1581 Fix internal error on canonicalization of clang types.
1582 * cp-name-parser.y (operator): New comment at make_operator call for
1583 new, delete, new[] and delete[].
1584 (exp): Use "sizeof ". Add new comment at make_operator call.
1585
9bf4bce9
JK
15862012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1587
1588 Fix disassemble without parameters in tailcall frame.
1589 * cli/cli-cmds.c (disassemble_current_function): Use
1590 get_frame_address_in_block.
1591
1c5b7826
TT
15922012-09-21 Tom Tromey <tromey@redhat.com>
1593
1594 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1595 TYPE_CODE_UNION>: Unify, removing a goto.
1596
62a49610
TT
15972012-09-21 Tom Tromey <tromey@redhat.com>
1598
1599 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1600
2603f7ee
AB
16012012-09-21 Andrew Burgess <aburgess@broadcom.com>
1602
1603 * findvar.c (read_frame_register_value): Mark the result value as
1604 optimized out if any of the input registers have been optimized out.
1605
810849a3
AS
16062012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1607
1608 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1609
0953dec1
SP
16102012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1611
1612 * eval.c (evaluate_subexp_standard): Eliminate single-use
1613 variable LOWER.
1614
82a90ccf
YQ
16152012-09-21 Yao Qi <yao@codesourcery.com>
1616
1617 * mi/mi-interp.c: Declare mi_record_changed.
1618 (mi_interpreter_init): Call observer_attach_record_changed.
1619 (mi_record_changed): New.
1620 * record.c (record_open): Call observer_notify_record_changed.
1621 (cmd_record_stop): Call observer_notify_record_changed.
1622 * NEWS: Mention it.
1623
d7de8e3c
TT
16242012-09-20 Tom Tromey <tromey@redhat.com>
1625
1626 * NEWS: Update.
1627 * python/python.c (finalize_python): New function.
1628 (_initialize_python): Make a final cleanup.
1629
43c7c83d
DE
16302012-09-19 Doug Evans <dje@google.com>
1631
1632 * buildsym.h (param_symbols): Delete, unused.
1633 (context_stack): Delete member "params", unused.
1634 * buildsym.c (push_context): Update.
1635 * dwarf2read.c (read_func_scope): Update.
1636
aa9259cc
TS
16372012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1638
a6521d9a
TS
1639 * sh-tdep.c (sh_register_convert_to_virtual)
1640 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1641 all callers. Just do a memcpy if not the little-endian case.
1642
f92589cb
TS
1643 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1644 set_gdbarch_double_format and set_gdbarch_long_double_format.
1645 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1646 set_gdbarch_double_format.
1647 * sh-tdep.c (sh_gdbarch_init): Likewise.
1648
aa9259cc
TS
1649 * NEWS: Document the removal of SH's 'regs' command.
1650 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1651 command.
1652
c1d780c2
SDJ
16532012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1654
1655 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1656 `jump'.
1657
4ae24af0
JB
16582012-09-18 Joel Brobecker <brobecker@adacore.com>
1659
1660 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1661 language when iterating over symbols.
1662
bb25a15c
YQ
16632012-09-18 Yao Qi <yao@codesourcery.com>
1664
1665 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1666 (mi_interpreter_init): Call observer_attach_tsv_created and
1667 observer_attach_tsv_deleted.
1668 (mi_tsv_created, mi_tsv_deleted): New.
1669 * tracepoint.c (delete_trace_state_variable): Call
1670 observer_notify_tsv_deleted.
1671 (trace_variable_command): Call observer_notify_tsv_created.
1672 (delete_trace_variable_command): Call
1673 observer_notify_tsv_deleted.
1674 (create_tsv_from_upload): Call observer_notify_tsv_created.
1675 * NEWS: Mention it.
1676
201b4506
YQ
16772012-09-18 Yao Qi <yao@codesourcery.com>
1678
1679 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1680 if traceframe changed.
1681 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1682 "trace-find".
1683 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1684 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1685 'traceframe_changed'.
1686 (mi_traceframe_changed): New.
1687 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1688 New field.
1689 * NEWS: Mention the new MI notification.
1690
eaeb12db
MW
16912012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1692
1693 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1694
6e3c039e
JK
16952012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1698 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1699 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1700 Extend code also for PaX support. Convert all gdb_assert to warning
1701 calls.
1702
9a950c7c
JK
17032012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 Implement auto-load user conveniences suggested by Doug Evans.
1706 * auto-load.c: Include top.h.
1707 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1708 (_initialize_auto_load): New variable scripts_directory_help. Mention
1709 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1710 scripts-directory. Document in online help one can use also files for
1711 set auto-load safe-path.
1712 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1713 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1714
deec9a9d
SP
17152012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1716
1717 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1718 of LEN.
1719
354ecfd5
SP
17202012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1721
1722 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1723 ELTLEN and use TYPE_LENGTH directly.
1724 (m2_val_print): Likewise.
1725 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1726 variable LEN and use TYPE_LENGTH directly.
1727 (m68k_svr4_store_return_value): Likewise.
1728 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1729 ARGLEN and use TYPE_LENGTH directly.
1730 (mips_o64_push_dummy_call): Likewise.
1731 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1732 variable LENGTH and use TYPE_LENGTH directly.
1733 (s390_function_arg_float): Likewise.
1734 (s390_function_arg_integer): Likewise.
1735 (s390_push_dummy_call): Likewise.
1736 (s390_return_value_convention): Likewise.
1737 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1738 TYPE_LENGTH directly.
1739
6fc1c773
YQ
17402012-09-17 Yao Qi <yao@codesourcery.com>
1741
1742 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1743 Update comment to add_setshow_integer_cmd.
1744 * cli/cli-setshow.c (do_set_command): Handle case
1745 'var_zuinteger_unlimited'.
1746 (do_show_command): Likewise.
1747 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1748 for command 'remotetimeout'.
1749 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1750 to var_integer.
1751 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1752 for command 'set listsize'.
1753
6acef6cd
SP
17542012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1755
1756 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1757 variable LEN.
1758
1ab3b62c
JK
17592012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1760
1761 PR 14119
1762 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1763 (frame_pop): Drop also TAILCALL_FRAME frames.
1764 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1765
acf9414f
JK
17662012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1767 Pedro Alves <palves@redhat.com>
1768
1769 PR 14548
1770 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1771 function start if we are already at function start. Both for
1772 reverse-next and for reverse-step into function without line number
1773 info.
1774
193facb3
JK
17752012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1776
1777 Code cleanup - rename 'inline' depth to 'artificial' depth.
1778 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1779 frame_id_artificial_p, extend the comment.
1780 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1781 * frame.c (fprint_frame_id): Rename at a user, change debug output
1782 text to "artificial=".
1783 (skip_inlined_frames): Rename to ...
1784 (skip_artificial_frames): ... here. Extend the comment.
1785 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1786 (frame_id_inlined_p): Rename to ...
1787 (frame_id_artificial_p): ... here. Rename at a user.
1788 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1789 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1790 at a user.
1791 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1792 Extend the comment.
1793 (frame_id_inlined_p): Rename to ...
1794 (frame_id_artificial_p): ... here.
1795 * inline-frame.c (inline_frame_this_id): Rename at a user.
1796
42056501
AB
17972012-09-14 Andrew Burgess <aburgess@broadcom.com>
1798
1799 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1800 vector variables using vector_size syntax rather than array
1801 syntax.
1802
84c47588
SP
18032012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1804
1805 * valarith.c (value_concat): Replace unsafe ALLOCA with
1806 XMALLOC/XFREE.
1807
f4045bcb
PA
18082012-09-14 Pedro Alves <palves@redhat.com>
1809
1810 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1811
63b46266
YPK
18122012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1813
1814 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1815 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1816 data-directory as appropriate.
1817
ddd7a8e7
SP
18182012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1819
1820 * printcmd.c (ui_printf): Eliminate single-use variable
1821 PARAM_LEN.
1822
d649a38e
YQ
18232012-09-14 Yao Qi <yao@codesourcery.com>
1824 Pedro Alves <palves@redhat.com>
1825
1826 * valops.c (value_assign): Move observer_notify_target_changed
1827 below to replace reinit_frame_cache.
1828
b9516fa1
YPK
18292012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1830
1831 Refactor Python "gdb" module into a proper Python package, by
1832 introducing a new "_gdb" module for code implemented in C, and
1833 using reload/__import__ instead of exec.
1834 * python/lib/gdb/__init__.py: Import * from _gdb.
1835 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1836 prompt_hook, sys.argv): Moved from finish_python_initialization.
1837 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1838 (packages, auto_load_packages): New list and function replacing
1839 module_dict and auto-loading code, using __file__ instead of
1840 gdb.PYTHONDIR and reload/__import__ instead of exec.
1841 (GdbSetPythonDirectory): Replacing function of the same name
1842 from finish_python_initialization, using reload/__import__ instead
1843 of exec, as well as call auto_load_packages.
1844 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1845 gdb_python_module and not gdb_module.
1846 * python/python-internal.h (gdb_python_module): Declare.
1847 * python/python.c (gdb_python_module): New global.
1848 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1849 (_initialize_python): Rename gdb module to _gdb.
1850 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1851 (finish_python_initialization): Move Python code to
1852 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1853 __main__.
1854
aa0fbdd8
PA
18552012-09-13 Pedro Alves <palves@redhat.com>
1856
1857 * Makefile.in (COMMON_OBS): Add registry.o.
1858 * registry.c: New file.
1859 * registry.h (struct registry_container): Declare.
1860 (registry_data_callback): New typedef.
1861 (struct registry_data, struct registry_data_registration, struct
1862 registry_data_registry): New type.
1863 (register_data_with_cleanup, registry_alloc_data)
1864 (registry_callback_adaptor, registry_clear_data)
1865 (registry_container_free_data, registry_set_data, registry_data):
1866 Declare.
1867 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1868 the new common structures and functions.
1869 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1870 callback typedefs.
1871
42b5c53d
MW
18722012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1873
1874 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1875 there is an error inserting hardware breakpoints and use the
1876 error message from the target.
1877
1878 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1879 Catch this exception and print the error message contained within. Do not
1880 print the default hardware error breakpoint message in this case.
1881
a1b64ce1
DE
18822012-09-12 Doug Evans <dje@google.com>
1883
1884 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1885 cu == NULL.
1886
83a788b8
DE
18872012-09-11 Doug Evans <dje@google.com>
1888
1889 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1890 .gdb_index symbol attributes if there are none.
1891
d9eaeb59
JB
18922012-09-11 Joel Brobecker <brobecker@adacore.com>
1893
1894 * symtab.h (struct minimal_symbol) [has_size]: New field.
1895 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1896 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1897 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1898 minimal symbols if the symbol's size is actually known.
1899 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1900 of msymbol's size field. Add comment.
1901 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1902 SET_MSYMBOL_SIZE to set the minimal symbol size.
1903
a83e9154
JB
19042012-09-11 Joel Brobecker <brobecker@adacore.com>
1905
1906 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1907 minimal_symbol struct object, rather than setting some of its
1908 fields one by one.
1909
350b1b26
AB
19102012-09-11 Andrew Burgess <aburgess@broadcom.com>
1911
1912 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1913 passed_a_ptr flag when displaying typedef types.
1914
2fa15f23
JB
19152012-09-10 Joel Brobecker <brobecker@adacore.com>
1916
1917 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1918 the optimized_out flag is preserved.
1919
5152ff90
AG
19202012-09-10 Anthony Green <green@moxielogic.com>
1921
1922 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1923 prologue changes in GCC.
1924
5b4f6e25
KS
19252012-09-10 Keith Seitz <keiths@redhat.com>
1926
1927 PR gdb/13483
1928 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1929 (BOOL_CONVERSION_BADNESS): ... this.
1930 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1931 (rank_one_type): Allow all boolean conversions
1932 permitted by the standard.
1933
f1070426
TT
19342012-09-06 Tom Tromey <tromey@redhat.com>
1935
1936 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1937 Don't decref py_objfile.
1938
a8db4212
YPK
19392012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1940
1941 Do not enable -lmcheck by default when Python is enabled with
1942 threading support.
1943 * configure.ac: (python_has_threads) New variable, by testing
1944 if WITH_THREAD is defined in Python.h.
1945 Move --enable-lmcheck after --with-python.
1946 Do not enable -lmcheck by default if python_has_threads=yes.
1947 Warn if --enable-lmcheck and python_has_threads=yes.
1948 * configure: Regenerate.
1949
648beb2b
YQ
19502012-08-31 Yao Qi <yao@codesourcery.com>
1951
1952 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1953 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1954 Update some commands.
1955 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1956 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1957 to 1.
1958
ef07a9f7
YQ
19592012-08-31 Yao Qi <yao@codesourcery.com>
1960
1961 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1962
fda395cf
YPK
19632012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1964
1965 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1966
8efd8e78
DE
19672012-08-29 Doug Evans <dje@google.com>
1968
1969 * main.c (print_gdb_help): Remove reference to
1970 --use-deprecated-index-sections.
1971
883b9c6c
YQ
19722012-08-28 Yao Qi <yao@codesourcery.com>
1973
1974 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1975 (init_cmds): Call add_setshow_uinteger_cmd for command
1976 'max-user-call-depth'.
1977 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1978 declaration of 'max_user_call_depth'.
1979 * frame.c (backtrace_limit): Add 'unsigned'.
1980 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1981 'limit'.
1982 * remote.c (remoteaddresssize): Add 'unsigned'.
1983 (remote_address_masked): Change local var 'address_size' to
1984 'unsigned'.
1985 (_initialize_remote): Call add_setshow_uinteger_cmd for
1986 'remoteaddresssize'.
1987 * top.c (history_size): Add 'unsigned'.
1988 (show_commands): Change local variables to 'unsigned'.
1989 (set_history_size_command): Don't check history_size is negative.
1990 Adjust the condition to call unstifle_history and set history_size
1991 to UNIT_MAX.
1992
1292279a
PA
19932012-08-28 Pedro Alves <palves@redhat.com>
1994
1995 PR gdb/14428
1996
1997 * infcmd.c (default_print_one_register_info): New, factored out
1998 from default_print_registers_info.
1999 (default_print_registers_info): Use it. Mark value unavailable if
2000 necessary.
2001 (registers_info): Print user registers with
2002 default_print_one_register_info.
2003
f629cd75
L
20042010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2005
2006 PR tui/14486
2007 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2008 is not NULL before referencing it.
2009
1c8cdcb1
JK
20102012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2011
2012 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2013 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2014 original PC for it.
2015
e9687799
JK
20162012-08-27 Eli Zaretskii <eliz@gnu.org>
2017 Jan Kratochvil <jan.kratochvil@redhat.com>
2018
2019 * auto-load.c (auto_load_objfile_script): Rename to ...
2020 (auto_load_objfile_script_1): ... here, change variable realname to
2021 parameter realname, document it, add return value, add variable retval.
2022 (auto_load_objfile_script): New function.
2023
7afa1642
JK
20242012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2025
2026 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2027 followed by a whitespace.
2028
dc7650b8
JK
20292012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2030
28e66c70 2031 PR gdb/14494.
dc7650b8
JK
2032 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2033 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2034 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2035 here.
2036
1591a1e8
PA
20372012-08-27 Wei-cheng Wang <cole945@gmail.com>
2038
2039 * memattr.c (create_mem_region): Fix memory region overlapping
2040 checking.
2041
ecfb0d68
SP
20422012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2043
2044 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2045 with xmalloc/cleanup.
2046 * mt-tdep.c (mt_push_dummy_call): Likewise.
2047 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2048 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2049
8c56c1b9
YQ
20502012-08-24 Yao Qi <yao@codesourcery.com>
2051
2052 * jv-exp.y (push_expression_name): Add "." at the end of error
2053 message.
2054
e3480f4a
YPK
20552012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2056
2057 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2058 * python/python.c (_initialize_python): Update documentation.
2059
dfbd5e7b
PA
20602012-08-23 Pedro Alves <palves@redhat.com>
2061
2062 * infrun.c (_initialize_infrun) <handle command help text>:
2063 Mention that multiple signals are supported.
2064
2edda2ff
PA
20652012-08-23 Pedro Alves <palves@redhat.com>
2066
2067 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2068 string.
2069
8d735b87
YQ
20702012-08-23 Yao Qi <yao@codesourcery.com>
2071
2072 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2073 (tfind_1): Don't call registers_changed, set_traceframe_num,
2074 and clear_traceframe_info.
2075 Call set_current_traceframe.
2076 (set_current_traceframe): call set_traceframe_num.
2077
c5d9b215
SDJ
20782012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2079
2080 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2081 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2082
037bbc8e
YPK
20832012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2084
2085 Enable readline in Python in a GDB-specific way and block the
2086 standard Python readline module to prevent conflicts with GDB.
2087 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2088 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2089 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2090 * python/py-gdb-readline.c: New file.
2091 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2092 prototype.
2093 * python/python.c (_initialize_python): Call
2094 gdbpy_initialize_gdb_readline.
2095
406b1477
KS
20962012-08-22 Keith Seitz <keiths@redhat.com>
2097
2098 * defs.h: Include build-gnulib/config.h
2099
6ca1b147
JM
21002012-08-22 Joseph Myers <joseph@codesourcery.com>
2101
2102 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2103 and blx pc.
2104
8315665e
YPK
21052012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2106
2107 Add a new "python-interactive" command that starts a standard
2108 Python interactive prompt with "pi" as alias, and add "py" as
2109 an alias to "python".
2110 * NEWS: Mention the new commands.
8315665e
YPK
2111 * python/python.c (eval_python_command): New function.
2112 (python_interactive_command): For "python-interactive" with
2113 arguments, call eval_python_command. For "python-interactive"
2114 without arguments, call PyRun_InteractiveLoop.
2115 (_initialize_python): Add "python-interactive" command with
2116 "pi" as alias, and add "py" as an alias to "python".
2117
522002f9
TT
21182012-08-22 Tom Tromey <tromey@redhat.com>
2119
2120 * defs.h (quit_flag): Don't declare.
2121 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2122 (QUIT): Use new functions.
2123 * event-top.c (command_handler): Use clear_quit_flag.
2124 (handle_sigint): Use set_quit_flag.
2125 (async_request_quit): Use check_quit_flag. Don't check
2126 immediate_quit.
2127 * exceptions.c (throw_exception): Use clear_quit_flag.
2128 * main.c (captured_main): Use clear_quit_flag.
2129 * python/python.c (clear_quit_flag, set_quit_flag)
2130 (check_quit_flag): New functions.
2131 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2132 clear_quit_flag.
2133 * remote.c (remote_wait_as): Use check_quit_flag,
2134 clear_quit_flag.
2135 (remote_start_remote): Call QUIT.
2136 * symfile.c (load_progress): Use check_quit_flag.
2137 * top.c (command_loop): Use clear_quit_flag.
2138 (command_line_input): Call QUIT.
2139 * utils.c (quit_flag): Conditionally define.
2140 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2141 functions.
2142 (prompt_for_continue): Call QUIT. Use quit, not
2143 async_request_quit.
2144 * remote-mips.c (mips_expect_timeout): Call QUIT.
2145 * monitor.c (monitor_expect): Call QUIT.
2146
b583003e
TT
21472012-08-22 Tom Tromey <tromey@redhat.com>
2148
2149 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2150 (async_init_signals): Update.
2151 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2152 (SIGWINCH_HANDLER_BODY): Remove.
2153
e1507e95
TT
21542012-08-22 Tom Tromey <tromey@redhat.com>
2155
2156 * jit.c (jit_object_close_impl): Don't malloc the objfile
2157 name.
2158 * objfiles.c (allocate_objfile): Don't malloc the objfile
2159 name.
2160 (free_objfile): Don't free the objfile name.
2161 * objfiles.h (struct objfile) <name>: Update comment.
2162 * symfile.c (reread_symbols): Fix reference counting. Don't
2163 malloc objfile name.
2164
1c00ec6b
TT
21652012-08-22 Tom Tromey <tromey@redhat.com>
2166
2167 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2168 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2169 (symfile_bfd_open): Likewise.
2170 (generic_load): Likewise.
2171 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2172 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2173 gdb_bfd_open.
2174 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2175 Use gdb_bfd_open.
2176 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2177 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2178 (pmon_load_fast): Likewise.
2179 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2180 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2181 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2182 (macho_check_dsym): Likewise.
2183 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2184 (m32r_upload_command): Likewise.
2185 * gdb_bfd.h (gdb_bfd_cache): Declare.
2186 * gdb_bfd.c (struct gdb_bfd_data): New.
2187 (gdb_bfd_cache): New global.
2188 (struct gdb_bfd_cache_search): New.
2189 (hash_bfd): New function.
2190 (eq_bfd): Likewise.
2191 (gdb_bfd_open): Likewise.
2192 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2193 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2194 gdb_bfd_data.
2195 * exec.c (exec_file_attach): Use gdb_bfd_open.
2196 * dsrec.c (load_srec): Use gdb_bfd_open.
2197
6532ff36
TT
21982012-08-22 Tom Tromey <tromey@redhat.com>
2199
2200 * dwarf2read.c (macro_start_file): Update.
2201 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2202 (free_objfile_per_bfd_storage): Destroy macro_cache.
2203 (allocate_objfile, free_objfile): Update.
2204 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2205 New field.
2206 (struct objfile) <macro_cache>: Remove.
2207 * symfile.c (reread_symbols): Update.
2208 * symmisc.c (print_symbol_bcache_statistics): Update.
2209 (print_objfile_statistics): Update.
2210
706e3705
TT
22112012-08-22 Tom Tromey <tromey@redhat.com>
2212
2213 * elfread.c (elf_symtab_read): Update.
2214 * objfiles.c (objfiles_bfd_data): New global.
2215 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2216 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2217 (allocate_objfile, free_objfile): Update.
2218 (_initialize_objfiles): Initialize objfiles_bfd_data.
2219 * objfiles.h (struct objfile_per_bfd_storage): New.
2220 (struct objfile) <per_bfd>: New field.
2221 <filename_cache>: Remove.
2222 (set_objfile_per_bfd): Declare.
2223 * symfile.c (reread_symbols): Update. Call
2224 set_objfile_per_bfd.
2225 (allocate_symtab): Update.
2226 * symmisc.c (print_symbol_bcache_statistics): Update.
2227 (print_objfile_statistics): Print the size of the BFD obstack.
2228
e992eda4
TT
22292012-08-22 Tom Tromey <tromey@redhat.com>
2230
2231 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2232 * gdb_bfd.c: Use DEFINE_REGISTRY.
2233 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2234 (gdb_bfd_ref): Call bfd_alloc_data.
2235 (gdb_bfd_unref): Call bfd_free_data.
2236
6b81941e
TT
22372012-08-22 Tom Tromey <tromey@redhat.com>
2238
2239 * registry.h (struct registry_fields): New.
2240 (REGISTRY_FIELDS): Redefine.
2241 (REGISTRY_ACCESS_FIELD): New macro.
2242 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2243 functions.
2244
8e260fc0
TT
22452012-08-22 Tom Tromey <tromey@redhat.com>
2246
2247 * auto-load.c (_initialize_auto_load): Update.
2248 * solib-svr4.c (_initialize_svr4_solib): Update
2249 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2250 * solib-darwin.c (_initialize_darwin_solib): Update.
2251 * registry.h: New file.
2252 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2253 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2254 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2255 (register_program_space_data_with_cleanup)
2256 (register_program_space_data, program_space_alloc_data)
2257 (clear_program_space_data, set_program_space_data)
2258 (program_space_data): Don't declare.
2259 * progspace.c: Use DEFINE_REGISTRY.
2260 (struct program_space_data, struct
2261 program_space_data_registration, struct
2262 program_space_data_registry, program_space_data_registry)
2263 (register_program_space_data_with_cleanup)
2264 (register_program_space_data, program_space_alloc_data)
2265 (program_space_free_data, clear_program_space_data)
2266 (set_program_space_data, program_space_data): Remove.
2267 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2268 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2269 (register_objfile_data_with_cleanup, register_objfile_data)
2270 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2271 declare.
2272 * objfiles.c: Use DEFINE_REGISTRY.
2273 (struct objfile_data, struct objfile_data_registration, struct
2274 objfile_data_registry, objfile_data_registry)
2275 (register_objfile_data_with_cleanup, register_objfile_data)
2276 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2277 (set_objfile_data, objfile_data): Remove.
2278 (_initialize_objfiles): Update.
2279 * jit.c (_initialize_jit): Update.
2280 * inflow.c (_initialize_inflow): Update.
2281 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2282 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2283 (register_inferior_data_with_cleanup, register_inferior_data)
2284 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2285 declare.
2286 * inferior.c: Use DEFINE_REGISTRY.
2287 (struct inferior_data, struct inferior_data_registration, struct
2288 inferior_data_registry, inferior_data_registry)
2289 (register_inferior_data_with_cleanup, register_inferior_data)
2290 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2291 (set_inferior_data, inferior_data): Remove.
2292 * auxv.c (_initialize_auxv): Update.
2293 * ada-lang.c (_initialize_ada_language): Update.
2294 * breakpoint.c (_initialize_breakpoint): Update.
2295 * i386-nat.c (i386_use_watchpoints): Update.
2296
ed9eebaf
TT
22972012-08-22 Tom Tromey <tromey@redhat.com>
2298
2299 * exec.c (exec_close, exec_file_attach): Update.
2300 (add_to_section_table): Initialize 'key' field.
2301 (add_target_sections, remove_target_sections): Add 'key' argument.
2302 * exec.h (add_target_sections, remove_target_sections): Add
2303 'key' argument.
2304 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2305 (reload_shared_libraries_1): Update.
2306 * target.h (struct target_section) <key>: New field.
2307
2f2e97fa
TT
23082012-08-22 Tom Tromey <tromey@redhat.com>
2309
2310 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2311
b3dbbd6f
PM
23122012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2313
2314 * symfile.c (allocate_symtab): Use host_address_to_string
2315 function instead of cast of pointer to long which is not
2316 compatible with x86_64-w64-mingw32 build.
2317
f94363d7
AP
23182012-08-19 Andrew Pinski <apinski@cavium.com>
2319
2320 * mips-tdep.c (is_octeon): New function.
2321 (is_octeon_bbit_op): New function.
2322 (mips32_next_pc): Handle Octeon's bbit instructions.
2323 (mips32_instruction_has_delay_slot): Likewise.
2324
78a59c2f
AP
23252012-08-19 Andrew Pinski <apinski@cavium.com>
2326
2327 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2328 before the function.
2329
4f5bcb50
AP
23302012-08-19 Andrew Pinski <apinski@cavium.com>
2331
2332 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2333
e5afdbd7
KS
23342012-08-19 Keith Seitz <keiths@redhat.com>
2335
2336 PR c++/14365
2337 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2338 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2339
13c9750e
EZ
23402012-08-18 Eli Zaretskii <eliz@gnu.org>
2341
2342 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2343 The typo broke "make TAGS".
2344
db761810 23452012-08-17 Joel Brobecker <brobecker@adacore.com>
2346
2347 GDB 7.5 released.
2348
a451cb65
KS
23492012-08-17 Keith Seitz <keiths@redhat.com>
2350
2351 PR c++/13356
2352 * gdbtypes.c (strict_type_checking): New variable.
2353 (show_strict_type_checking): New function.
2354 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2355 if strict type checking is disabled.
2356 (_initialize_gdbtypes): Add "check type" subcommand.
2357 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2358
23592012-08-17 Keith Seitz <keiths@redhat.com>
2360
2361 * language.h (type_mode): Remove.
2362 (type_check): Remove.
2363 (struct language_defn): Remove la_type_check.
2364 (STRICT_TYPE): Remove unused macro.
2365 (type_error): Remove.
2366 * language.c (set_type_range_case): Renamed to ...
2367 (set_range_case): ... this. Update all callers.
2368 Remove type_mode/type_check.
2369 (type_mode): Remove.
2370 (type_check): Remove.
2371 (show_type_command): Remove.
2372 (set_type_command): Remove.
2373 (language_info): Remove type checking output.
2374 (type_error): Remove unused function.
2375 (range_error): Update comment.
2376 (unknown_language_defn): Remove la_type_check.
2377 (auto_language_defn): Likewise.
2378 (local_language_defn): Likewise.
2379 (_initialize_language): Remove "check type" subcommand.
2380 * ada-lang.c (ada_language_defn): Remove la_type_check.
2381 * c-lang.c (c_language_defn): Likewise.
2382 (cplus_language_defn): Likewise.
2383 (asm_language_defn): Likewise.
2384 (minimal_language_defn): Likewise.
2385 * d-lang.c (d_language_defn): Likewise.
2386 * f-lang.c (f_language_defn): Likewise.
2387 * go-lang.c (go_language_defn): Likewise.
2388 * jv-lang.c (java_language_defn): Likewise.
2389 * m2-lang.c (m2_language_defn): Likewise.
2390 * objc-lang.c (objc_language_defn): Likewise.
2391 * opencl-lang.c (opencl_language_defn): Likewise.
2392 * p-lang.c (pascal_language_defn): Likewise.
2393
dbf6a605
MF
23942012-08-16 Mike Frysinger <vapier@gentoo.org>
2395
2396 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2397
973e3cf7
JB
23982012-08-16 Joel Brobecker <brobecker@adacore.com>
2399
2400 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2401 New function.
2402 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2403 using the regache. Use ia64_hpux_get_register_from_save_state_t
2404 to access the bsp and bspstore registers if not.
2405
d80ee84f
JB
24062012-08-16 Joel Brobecker <brobecker@adacore.com>
2407
2408 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2409 * breakpoint.c (detach_breakpoints): Change pid parameter into
2410 a ptid. Adjust code accordingly.
2411 * infrun.c (handle_inferior_event): Delete variable child_pid.
2412 Update call to detach_breakpoints to pass the child ptid for
2413 fork events.
2414 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2415 assert that inferior_ptid's lwp is zero.
2416 (linux_handle_extended_wait): Update call to detach_breakpoints.
2417 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2418 detach_breakpoints.
2419
2dcc6086
JB
24202012-08-16 Joel Brobecker <brobecker@adacore.com>
2421
2422 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2423 parent, only call detach_breakpoints if tts.tts_event ==
2424 TTEVT_VFORK.
2425
0c92d8c1
JB
24262012-08-16 Joel Brobecker <brobecker@adacore.com>
2427
2428 * dwarf2-frame.c (dwarf2_frame_cache): Use
2429 get_frame_address_in_block instead of get_frame_pc as
2430 the bound for executing the frame's FDE.
2431
6b1755ce
YQ
24322012-08-16 Yao Qi <yao@codesourcery.com>
2433
2434 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2435 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2436 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2437 (c_type_print_varspec_suffix): Likewise.
2438 * eval.c (evaluate_subexp_standard): Likewise.
2439 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2440 (f_type_print_varspec_suffix): Likewise.
2441 * gdbtypes.c (is_scalar_type): Likewise.
2442 (recursive_dump_type): Likewise.
2443 * infcall.c (value_arg_coerce): Likewise.
2444 * m2-valprint.c (m2_val_print): Likewise.
2445 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2446 (pascal_type_print_varspec_suffix): Likewise.
2447 (pascal_type_print_base): Likewise.
2448 * p-valprint.c (pascal_val_print): Likewise.
2449 (pascal_val_print): Likewise.
2450 * valops.c (value_slice): Likewise.
2451 * valprint.c (scalar_type_p): Likewise.
2452 * valarith.c (value_bitstring_subscript): Remove.
2453 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2454 Remove comment on TYPE_CODE_BITSTRING.
2455
2456 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2457 TYPE_CODE_BITSTRING.
2458
2459 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2460 slot 0.
2461
8acc4065
YQ
24622012-08-16 Yao Qi <yao@codesourcery.com>
2463
2464 * tracepoint.c (trace_find_none_command): Remove.
2465 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2466
8128fd8e
YQ
24672012-08-16 Yao Qi <yao@codesourcery.com>
2468
2469 * remote.c (handle_notification): Remove parameter 'length'.
2470 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2471
2873700e
KS
24722012-08-15 Keith Seitz <keiths@redhat.com>
2473
2474 * gdbtypes.c (opaque_type_resolution): Make static.
2475 Add missing comment.
2476 (overload_debug): Add missing comment.
2477 (show_opaque_type_resolution): Likewise.
2478 (show_overload_debug): Likewise.
2479 (print_bit_vector): Remove unnecessary forward declaration.
2480 (print_arg_types): Likewise.
2481 (dump_fn_fieldlists): Likewise.
2482 (print_cplus_stuff): Likewise.
2483
b82d08cd
TT
24842012-08-15 Tom Tromey <tromey@redhat.com>
2485
2486 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2487 (gdb_bfd_ref): Initialize new field.
2488 (gdb_bfd_unref): Unref the archive BFD.
2489 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2490 parent archive.
2491
db6573d6
TT
24922012-08-15 Tom Tromey <tromey@redhat.com>
2493
2494 PR python/14387:
2495 * python/py-bpevent.c (create_breakpoint_event_object): Update
2496 comment.
2497 * python/py-event.c (evpy_add_attribute): Update comment.
2498 * python/py-exitedevent.c (create_exited_event_object): Fix
2499 reference counting and error handling.
2500 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2501 Fix reference counting.
2502 * python/py-signalevent.c (create_signal_event_object): Fix
2503 reference counting and error handling.
2504 * python/py-stopevent.c (emit_stop_event): Fix reference
2505 counting.
2506 * python/py-threadevent.c (get_event_thread): Return a
2507 borrowed reference.
2508 * python/py-type.c (convert_field): Fix reference counting.
2509
a036ba48
TT
25102012-08-15 Tom Tromey <tromey@redhat.com>
2511
2512 * dwarf2read.c (dwarf_decode_macro_bytes)
2513 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2514 as hash key.
2515
486c7739
MF
25162012-08-14 Mike Frysinger <vapier@gentoo.org>
2517
2518 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2519 stepi, nexti, finish, next, step, jump, and continue commands.
2520 * infrun.c (_initialize_infrun): Update help text for the handle
2521 command.
2522
4cf93a03
DE
25232012-08-14 Doug Evans <dje@google.com>
2524
70b099cf
DE
2525 * gdbtypes.c (struct extra): Delete, unused.
2526
5212577a
DE
2527 * gdbtypes.c: Whitespace cleanup.
2528 (address_space_name_to_int): Remove "extern" from definition.
2529 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2530
4cf93a03
DE
2531 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2532 TYPE_POINTER_TYPE (type).
2533
3756ef7e
GB
25342012-08-14 Gary Benson <gbenson@redhat.com>
2535
2536 * solib-svr4.c (svr4_free_library_list): Use free_so.
2537
40d72643
MF
25382012-08-13 Mike Frysinger <vapier@gentoo.org>
2539
2540 * .gitignore: Add go-exp.c.
2541
f47f77df
DE
25422012-08-13 Doug Evans <dje@google.com>
2543
2544 * value.c (show_convenience): Tweak comment.
2545 (_initialize_values): Mention convenience functions in the help text
2546 for "show convenience".
2547
7507c54a
YQ
25482012-08-13 Yao Qi <yao@codesourcery.com>
2549
2550 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2551 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2552 TERNOP_SLICE_COUNT.
2553 * eval.c (evaluate_subexp_standard): Likewise.
2554 * expprint.c (print_subexp_standard): Likewise.
2555 (dump_subexp_body_standard): Likewise.
2556 * parse.c (operator_length_standard): Likewise.
2557
5cad9736
YQ
25582012-08-13 Yao Qi <yao@codesourcery.com>
2559
2560 * std-operator.def: Remove OP_BITSTRING.
2561 * breakpoint.c (watchpoint_exp_is_const): Update.
2562 * eval.c (evaluate_subexp_standard): Remove handling to
2563 OP_BITSTRING.
2564 * expprint.c (print_subexp_standard): Likewise.
2565 (dump_subexp_body_standard): Likewise.
2566 * parse.c (operator_length_standard): Likewise.
2567 * valops.c (value_bitstring): Remove.
2568 * value.h: Remove the declaration of 'value_bitstring'.
2569
bad7670a
SDJ
25702012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2571
2572 * linespec.c (find_methods): Remove unused variables `i1' and
2573 `name_len'.
2574 (decode_line_full): Likewise for `arg_start'.
2575
d9dce7fa
SDJ
25762012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2577
2578 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2579 (zlib_decompress_section): Likewise for `section_data'.
2580 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2581
a72c3253
DE
25822012-08-10 Doug Evans <dje@google.com>
2583
2584 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2585 * NEWS: Document them.
2586 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2587 function/strfns.py.
2588 * python/py-type.c (typy_array_1): New function.
2589 (typy_array): Call it.
2590 (typy_vector): New function.
2591 (type_object_methods): Add "vector".
2592 * python/lib/gdb/function/__init__.py: New file.
2593 * python/lib/gdb/function/strfns.py: New file.
2594
200bc880
SP
25952012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2596
2597 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2598 for TYPE_FIELD_BITPOS.
2599 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2600
de0bea00
MF
26012012-08-10 Mike Frysinger <vapier@gentoo.org>
2602
2603 PR cli/10436:
2604 * common/vec.h (VEC_merge): Define.
2605 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2606 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2607 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2608 * completer.c: Include gdb_signals.h.
2609 (signal_completer): Define.
2610 * completer.h (signal_completer): Add prototype.
2611 * infcmd.c (_initialize_infcmd): Assign the command
2612 completer for "signal" to handle_completer.
2613 * infrun.c: Include completer.h.
2614 (handle_completer): Define.
2615 (_initialize_infrun): Declare a new local variable c. Store the
2616 result of add_com("handle") to it. Assign the command
2617 completer for "handle" to handle_completer.
2618
5b9afe8a
YQ
26192012-08-09 Yao Qi <yao@codesourcery.com>
2620
2621 * cli/cli-decode.c (set_cmd_prefix): New.
2622 (lookup_cmd_for_prefixlist): New.
2623 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2624 of each cmd_list_element in *prefixlist.
2625 (add_setshow_cmd_full): set_cmd_prefix.
2626 (add_alias_cmd): Likewise.
2627 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2628 Declare 'auto_boolean_enums'.
2629 * cli/cli-setshow.c: Include "observer.h".
2630 (notify_command_param_changed_p): New.
2631 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2632 Remove 'static'.
2633 (do_setshow_command): Split it to ...
2634 (do_set_command, do_show_command): ... them. New.
2635 (do_set_command): Call observer_notify_command_param_changed if
2636 notify_command_param_changed_p returns true.
2637 (cmd_show_list): Caller update.
2638 * auto-load.c (set_auto_load_cmd): Likewise.
2639 * remote.c (show_remote_cmd): Likewise.
2640 * cli/cli-setshow.h: Update declarations.
2641 * top.c (execute_command): Call do_set_command and do_show_command.
2642
2643 * NEWS: Mention new MI notification.
2644 * mi/mi-interp.c: Declare mi_command_param_changed.
2645 (mi_interpreter_init): Attach mi_command_param_changed to
2646 observer command_param_changed.
2647 (mi_command_param_changed): New.
2648 Remove mi_suppress_breakpoint_notifications.
2649 Define global variable mi_suppress_notification.
2650 (mi_breakpoint_created): Update.
2651 (mi_breakpoint_deleted): Likewise.
2652 (mi_breakpoint_modified): Likewise.
2653 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2654 'gdb-set' and set mi_suppress_notification.
2655 * mi/mi-main.h: (mi_suppress_notification): New struct.
2656
1969df89
JK
26572012-08-09 Andreas Tobler <andreast@fgznet.ch>
2658 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2661
8bfd80db
YQ
26622012-08-09 Yao Qi <yao@codesourcery.com>
2663
2664 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2665 (skiplist): Move it to skip.c.
2666 (init_cmd_lists): Remove code setting enablebreaklist and
2667 skiplist to NULL.
2668 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2669 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2670 skiplist.
2671 * gdbcmd.h: Likewise.
2672 * skip.c (_initialize_step_skip): Move 'skiplist' from
2673 cli/cli-cmds.c.
2674
28578e6b
YQ
26752012-08-09 Yao Qi <yao@codesourcery.com>
2676
2677 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2678 * gnu-nat.c, symfile.c: Likewise.
2679
260c0b2a
DE
26802012-08-08 Aaron Gamble <agamble@google.com>
2681
2682 * utils.c (prompt_for_continue_wait_time): New static global.
2683 (make_command_stats_cleanup): Initialize it.
2684 (report_command_stats): Subtract time waiting for user.
2685 (prompt_for_continue): Track time waiting for user.
2686 (defaulted_query): Track time waiting for user.
2687
4f485ebc
DE
26882012-08-08 Doug Evans <dje@google.com>
2689
2690 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2691 UNOP_MEMVAL_TYPE.
2692 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2693 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2694 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2695 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2696 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2697 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2698 elt.
2699 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2700 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2701 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2702 (dump_prefix_expression): Handle OP_TYPE.
2703
2acf2b39
KS
27042012-08-08 Keith Seitz <keiths@redhat.com>
2705
2706 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2707 addr_start.
2708
e6712ff1
DE
27092012-08-08 Doug Evans <dje@google.com>
2710
2711 * linux-thread-db.c: #include "gdb_vecs.h".
2712 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2713 updated.
2714 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2715 (thread_db_load_search): Use a vector to iterate over path elements.
2716 Handle text appearing after "$pdir".
2717
2718 * gdb_string.h: Moved to ...
2719 * common/gdb_string.h: ... here.
2720 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2721 gdb_string.h and gdb_assert.h.
2722
ab854e54
YQ
27232012-08-08 Yao Qi <yao@codesourcery.com>
2724
2725 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2726 (tic6x_value_to_register): Likewise.
2727 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2728 and set_gdbarch_value_to_register.
2729
4f69f4c2
JK
27302012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2731 Jean-Marc Saffroy <saffroy@gmail.com>
2732
2733 PR 11804
2734 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2735 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2736 * gcore.c (gcore_create_callback): New function comment. Add modified
2737 parameter. Only write modified regions. Set SEC_READONLY exactly
2738 according to MODIFIED.
2739 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2740 the passed modified value to FUNC.
2741 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2742 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2743 first. New variables modified and has_anonymous. Parse the lines of
2744 smaps file. Add the passed MODIFIED value to FUNC.
2745 * procfs.c (find_memory_regions_callback): Add the passed modified
2746 value.
2747
78ac5f83
TT
27482012-08-06 Tom Tromey <tromey@redhat.com>
2749
2750 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2751 (dwarf2_frame_cache): Use it.
2752 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2753 cache initialization constraint.
2754
2c12abee
TT
27552012-08-06 Tom Tromey <tromey@redhat.com>
2756
2757 PR python/14386:
2758 * varobj.c (update_dynamic_varobj_children): Don't call
2759 PyIter_Check.
2760
4979d7f0
TT
27612012-08-06 Tom Tromey <tromey@redhat.com>
2762
2763 PR cli/14392:
2764 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2765
f3c8a52a
JK
27662012-08-06 Nathaniel Flath <flat0103@gmail.com>
2767
2768 * NEWS: New entry for 'cd' default parameters.
2769 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2770
5a1cf4d6
TT
27712012-08-03 Tom Tromey <tromey@redhat.com>
2772
2773 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2774 return.
2775
7c3270ae
UW
27762012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2777
2778 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2779 to attempting lseek/write.
2780 (inf_child_fileio_pread): Likewise for pread.
2781
ccce17b0
YQ
27822012-08-02 Yao Qi <yao@codesourcery.com>
2783
2784 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2785 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2786 add_setshow_zinteger_cmd.
2787 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2788 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2789 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2790 instead of add_setshow_zinteger_cmd.
2791 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2792 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2793 instead of add_setshow_zinteger_cmd.
2794 * frame.c (frame_debug): Add 'unsigned'.
2795 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2796 add_setshow_zinteger_cmd.
2797 * frame.h: Update the declaration of 'frame_debug'.
2798 * gdbtypes.c (overload_debug): Add 'unsigned'.
2799 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2800 add_setshow_zinteger_cmd.
2801 * inferior.h: Update declaration of 'debug_infrun'.
2802 * infrun.c (debug_infrun): Add 'unsigned'.
2803 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2804 add_setshow_zinteger_cmd.
2805 * jit.c (jit_debug): Add 'unsigned'.
2806 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2807 add_setshow_zinteger_cmd.
2808 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2809 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2810 instead of add_setshow_zinteger_cmd.
2811 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2812 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2813 add_setshow_zinteger_cmd.
2814 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2815 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2816 instead of add_setshow_zinteger_cmd.
2817 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2818 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2819 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2820 intead of add_setshow_zinteger_cmd.
2821 * mips-tdep.c (mips_debug): Add 'unsigned'.
2822 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2823 instead of add_setshow_zinteger_cmd.
2824 * monitor.c (monitor_debug): Add 'unsigned'.
2825 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2826 add_setshow_zinteger_cmd.
2827 * observer.c (observer_debug): Add 'unsigned'.
2828 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2829 add_setshow_zinteger_cmd.
2830 * parse.c (expressiondebug): Add 'unsigned'.
2831 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2832 add_setshow_zinteger_cmd.
2833 * record.c (record_debug): Add 'unsigned'.
2834 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2835 add_setshow_zinteger_cmd.
2836 * record.h: Update the declaration of 'record_debug'.
2837 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2838 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2839 add_setshow_zinteger_cmd.
2840 * serial.c (global_serial_debug_p): Add 'unsigned'.
2841 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2842 add_setshow_zinteger_cmd.
2843 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2844 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2845 add_setshow_zinteger_cmd.
2846 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2847 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2848 add_setshow_zinteger_cmd.
2849 * target.c (targetdebug): Add 'unsigned'.
2850 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2851 add_setshow_zinteger_cmd.
2852 * valops.c (overload_debug): Add 'unsigned'.
2853 * varobj.c (varobjdebug): Add 'unsigned'.
2854 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2855 add_setshow_zinteger_cmd.
2856 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2857 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2858 instead of add_setshow_zinteger_cmd.
2859
2860 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2861 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2862 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2863 instead of add_setshow_zinteger_cmd.
2864 * gdbarch.c, gdbarch.h: Re-generated.
2865
95b07c96
YQ
28662012-08-02 Yao Qi <yao@codesourcery.com>
2867
2868 * nto-tdep.c: Don't include cli/cli-decode.h and
2869 cli/cli-cmds.h.
2870 (_initialize_nto_tdep): Remove.
2871 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2872 Remove field.
2873 Remove macro nto_internal_debugging.
2874
57295b0b
RH
28752012-08-01 Richard Henderson <rth@redhat.com>
2876
2877 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2878 (mep-*-*) [gdb_target_obs]: Likewise.
2879
f782ad9b
AS
28802012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2881
2882 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2883 linux_get_siginfo_type.
2884
a14dd77e
JK
28852012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2886
2887 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2888 AT_ENTRY_POINT.
2889 (call_function_by_hand) <ON_STACK>: Call write_memory with
2890 gdbarch_breakpoint_from_pc, if possible.
2891 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2892 here.
2893
1467929f
YQ
28942012-07-31 Yao Qi <yao@codesourcery.com>
2895
2896 * tracepoint.c: Add 'static' for some variables.
2897
70976b65
YQ
28982012-07-31 Yao Qi <yao@codesourcery.com>
2899
2900 * go32-nat.c: Declare _initialize_go32_nat.
2901 * ser-go32.c: Declare _initialize_ser_dos.
2902 * top.c (do_chdir_cleanup): Add 'static'.
2903
eff9c3e6
KS
29042012-07-30 Keith Seitz <keiths@redhat.com>
2905
2906 * linespec.c (linespec_lex_number): A number followed
2907 by quotes is a valid number, too.
2908
728400d7
TT
29092012-07-30 Tom Tromey <tromey@redhat.com>
2910
2911 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2912
fcf303ab
UW
29132012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2914
2915 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2916 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2917
4e969b4f
AB
29182012-07-30 Andrew Burgess <aburgess@broadcom.com>
2919
2920 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2921 invalid or reevaluated to prevent prevent references to possibly
2922 delete'd type objects being left in the varobj.
2923
c4bfde41
JK
29242012-07-27 Tom Tromey <tromey@redhat.com>
2925 Jan Kratochvil <jan.kratochvil@redhat.com>
2926
2927 * copying.awk: Print buffer-read-only and vi ro markers.
2928 * copying.c: Rebuild.
2929 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2930 * gdbarch.c, gdbarch.h: Rebuild.
2931 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2932 buffer-read-only and vi ro markers.
2933 * features/arm-with-iwmmxt.c: Rebuild.
2934 * features/arm-with-m-fpa-layout.c: Rebuild.
2935 * features/arm-with-m-vfp-d16.c: Rebuild.
2936 * features/arm-with-m.c: Rebuild.
2937 * features/arm-with-neon.c: Rebuild.
2938 * features/arm-with-vfpv2.c: Rebuild.
2939 * features/arm-with-vfpv3.c: Rebuild.
2940 * features/i386/amd64-avx-linux.c: Rebuild.
2941 * features/i386/amd64-avx.c: Rebuild.
2942 * features/i386/amd64-linux.c: Rebuild.
2943 * features/i386/amd64.c: Rebuild.
2944 * features/i386/i386-avx-linux.c: Rebuild.
2945 * features/i386/i386-avx.c: Rebuild.
2946 * features/i386/i386-linux.c: Rebuild.
2947 * features/i386/i386-mmx-linux.c: Rebuild.
2948 * features/i386/i386-mmx.c: Rebuild.
2949 * features/i386/i386.c: Rebuild.
2950 * features/i386/x32-avx-linux.c: Rebuild.
2951 * features/i386/x32-avx.c: Rebuild.
2952 * features/i386/x32-linux.c: Rebuild.
2953 * features/i386/x32.c: Rebuild.
2954 * features/mips-dsp-linux.c: Rebuild.
2955 * features/mips-linux.c: Rebuild.
2956 * features/mips64-dsp-linux.c: Rebuild.
2957 * features/mips64-linux.c: Rebuild.
2958 * features/rs6000/powerpc-32.c: Rebuild.
2959 * features/rs6000/powerpc-32l.c: Rebuild.
2960 * features/rs6000/powerpc-403.c: Rebuild.
2961 * features/rs6000/powerpc-403gc.c: Rebuild.
2962 * features/rs6000/powerpc-405.c: Rebuild.
2963 * features/rs6000/powerpc-505.c: Rebuild.
2964 * features/rs6000/powerpc-601.c: Rebuild.
2965 * features/rs6000/powerpc-602.c: Rebuild.
2966 * features/rs6000/powerpc-603.c: Rebuild.
2967 * features/rs6000/powerpc-604.c: Rebuild.
2968 * features/rs6000/powerpc-64.c: Rebuild.
2969 * features/rs6000/powerpc-64l.c: Rebuild.
2970 * features/rs6000/powerpc-7400.c: Rebuild.
2971 * features/rs6000/powerpc-750.c: Rebuild.
2972 * features/rs6000/powerpc-860.c: Rebuild.
2973 * features/rs6000/powerpc-altivec32.c: Rebuild.
2974 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2975 * features/rs6000/powerpc-altivec64.c: Rebuild.
2976 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2977 * features/rs6000/powerpc-cell32l.c: Rebuild.
2978 * features/rs6000/powerpc-cell64l.c: Rebuild.
2979 * features/rs6000/powerpc-e500.c: Rebuild.
2980 * features/rs6000/powerpc-e500l.c: Rebuild.
2981 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2982 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2983 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2984 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2985 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2986 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2987 * features/rs6000/powerpc-vsx32.c: Rebuild.
2988 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2989 * features/rs6000/powerpc-vsx64.c: Rebuild.
2990 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2991 * features/rs6000/rs6000.c: Rebuild.
2992 * features/s390-linux32.c: Rebuild.
2993 * features/s390-linux32v1.c: Rebuild.
2994 * features/s390-linux32v2.c: Rebuild.
2995 * features/s390-linux64.c: Rebuild.
2996 * features/s390-linux64v1.c: Rebuild.
2997 * features/s390-linux64v2.c: Rebuild.
2998 * features/s390x-linux64.c: Rebuild.
2999 * features/s390x-linux64v1.c: Rebuild.
3000 * features/s390x-linux64v2.c: Rebuild.
3001 * features/tic6x-c62x-linux.c: Rebuild.
3002 * features/tic6x-c62x.c: Rebuild.
3003 * features/tic6x-c64x-linux.c: Rebuild.
3004 * features/tic6x-c64x.c: Rebuild.
3005 * features/tic6x-c64xp-linux.c: Rebuild.
3006 * features/tic6x-c64xp.c: Rebuild.
3007
826f0041
TT
30082012-07-27 Tom Tromey <tromey@redhat.com>
3009
3010 * c-exp.y (classify_name): Avoid assignment in condition.
3011
84552b16
PA
30122012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3013
3014 * amd64-windows-tdep.c: Include "frame.h".
3015 (amd64_windows_skip_trampoline_code): New function.
3016 (amd64_windows_init_abi): Add trampoline registration.
3017
a8a64aa8
YQ
30182012-07-27 Yao Qi <yao@codesourcery.com>
3019
3020 * tracepoint.c (cur_traceframe_number): Remove.
3021 (set_tfile_traceframe): Remove.
3022 (tfile_trace_find, tfile_fetch_registers): Update callers.
3023 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3024 (tfile_open, tfile_trace_find): Likewise.
3025
d99067cb
YQ
30262012-07-27 Yao Qi <yao@codesourcery.com>
3027
3028 * thread.c (switch_to_thread): Don't call registers_changed.
3029
f2e8016f
TT
30302012-07-26 Tom Tromey <tromey@redhat.com>
3031
f782ad9b
AS
3032 * Makefile.in (SFILES): Remove objc-exp.y.
3033 (YYFILES): Remove objc-exp.c.
3034 (YYOBJ): Remove objc-exp.o.
3035 (local-maintainer-clean): Don't mention objc-exp.c.
3036 * c-exp.y: Include objc-lang.h.
3037 (%union) <class>: New field.
3038 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3039 (exp): Clone subscript production for OBJC_LBRAC. Add various
3040 Objective C productions.
3041 (msglist, msgarglist, msgarg): New productions.
3042 (array_mod, func_mod, operator): Clone productions for
3043 OBJC_LBRAC.
3044 (parse_string_or_char): Handle '@' strings.
3045 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3046 (classify_name): Check la_name_of_this. Recognize ObjC class
3047 names.
3048 * objc-exp.y: Remove.
3049 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3050 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3051
f66713d2
JK
30522012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3053
3054 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3055
7cfe01b4
JK
30562012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3057
3058 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3059 and decrement.
3060
5ba19b4c
TT
30612012-07-26 Tom Tromey <tromey@redhat.com>
3062
3063 * copying.c: Rebuild.
3064 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3065 'no_class'.
3066
27618ce4
TT
30672012-07-26 Tom Tromey <tromey@redhat.com>
3068
3069 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3070 immediate_quit.
3071 (print_objfile_statistics): Likewise.
3072 (maintenance_print_symbols): Likewise.
3073 (maintenance_print_msymbols): Likewise.
3074 (maintenance_print_objfiles): Likewise.
3075 * psymtab.c (print_partial_symbols): Call QUIT.
3076 (maintenance_print_psymbols): Likewise. Don't modify
3077 immediate_quit.
3078 * copying.c (show_copying_command): Don't modify immediate_quit.
3079 (show_warranty_command): Likewise.
3080 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3081
dd3818c8
KS
30822012-07-26 Keith Seitz <keiths@redhat.com>
3083
3084 * linespec.c (linespec_lexer_lex_number): The input
3085 is also a valid number if the next character is a comma
3086 or colon.
3087
23a80689
JB
30882012-07-26 Joel Brobecker <brobecker@adacore.com>
3089
3090 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3091 configure options.
3092
29f77997
TG
30932012-07-26 Tristan Gingold <gingold@adacore.com>
3094
3095 * machoread.c: Include gdb_bfd.h.
3096
a55c1f32
TG
30972012-07-26 Tristan Gingold <gingold@adacore.com>
3098
3099 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3100 offset.
3101
56eb65bd
SP
31022012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3103
3104 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3105 SIZE to size_t.
3106 (dwarf2_evaluate_loc_desc): Likewise.
3107 (dwarf2_loc_desc_needs_frame): Likewise.
3108 (locexpr_describe_location_1): Likewise.
3109 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3110 size_t.
3111 (struct dwarf2_loclist_baton): Likewise.
3112 * dwarf2read.c (struct dwarf_block): Likewise.
3113 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3114 (decode_locdesc): Expand SIZE and I to size_t.
3115
aec8845c
JK
31162012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3119
33d7655b
JB
31202012-07-25 Joel Brobecker <brobecker@adacore.com>
3121
3122 * doublest.c (convert_doublest_to_floatformat): If the exponent
3123 is too small, treat the value as zero. If the exponent is too
3124 large, treat the value as infinity.
3125
a22d44ff
JB
31262012-07-25 Joel Brobecker <brobecker@adacore.com>
3127
3128 * configure.ac: Add --enable-lmcheck configure option.
3129 * configure: Regenerate.
3130
d6b28940
TT
31312012-07-25 Tom Tromey <tromey@redhat.com>
3132
f782ad9b
AS
3133 * NEWS: Mention maint info bfds.
3134 * gdb_bfd.c (all_bfds): New global.
3135 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3136 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3137 New functions.
d6b28940 3138
6e73ba20
RC
31392012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3140
3141 * configure.tgt: Add v850*-*-rtems*.
3142
d560eebd
TT
31432012-07-25 Tom Tromey <tromey@redhat.com>
3144
3145 * macrotab.c (macro_bcache_str): Remove cast.
3146
d7cbec71
HZ
31472012-07-25 Hui Zhu <hui_zhu@mentor.com>
3148
3149 * linespec.c (linespec_lexer_lex_number): Update comments,
3150 change the return and add check to make sure the input is
3151 the decimal numbers.
3152 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3153 false, call linespec_lexer_lex_string.
3154
882f447f
TT
31552012-07-24 Tom Tromey <tromey@redhat.com>
3156
3157 * symfile.c (symbol_file_add): Don't open BFD twice.
3158
53ab4066 31592012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3160
3161 * breakpoint.c (create_breakpoint): Store condition for pending
3162 breakpoints.
3163
108fb0f7
AS
31642012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3165
3166 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3167 (m68k_return_value): Handle complex types like structures.
3168 (m68k_svr4_return_value): Likewise.
3169
1634dcbe
JK
31702012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3171
3172 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3173 parameters to bfd_get_section_name.
3174
e2d12c21
YQ
31752012-07-24 Yao Qi <yao@codesourcery.com>
3176
3177 * cli/cli-setshow.c: Handle case 'var_uinteger'
3178 and 'var_zuninteger' together. Handle case 'var_integer' and
3179 'var_zinteger' together.
3180
64b92e45
KS
31812012-07-23 Keith Seitz <keiths@redhat.com>
3182
3183 * linespec.c (convert_linespec_to_sal): Don't add
3184 any symbols to the result vector if symbol_to_sal
3185 returns zero.
3186
0f5f4ffe
KS
31872012-07-23 Keith Seitz <keiths@redhat.com>
3188
3189 * linespec.c (decode_objc): Record the function name
3190 in the linespec.
3191
da1cc82f
TT
31922012-07-23 Tom Tromey <tromey@redhat.com>
3193
3194 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3195 counting.
3196 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3197 (map_vmap): Acquire a reference to the BFD.
3198
6c18f3e0
SP
31992012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3200
3201 * p-valprint.c (pascal_object_print_value): Replace potentially
3202 unsafe alloca with xmalloc/xfree.
3203 * valops.c (search_struct_method): Likewise.
3204
695c3173
TT
32052012-07-23 Tom Tromey <tromey@redhat.com>
3206
3207 * solib-svr4.c (enable_break): Update.
3208 * bfd-target.h (target_bfd_reopen): Update documentation.
3209
08d2cd74
TT
32102012-07-23 Tom Tromey <tromey@redhat.com>
3211
3212 * symfile.c (separate_debug_file_exists): Update.
3213 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3214 (reread_symbols): Update.
3215 * elfread.c (build_id_verify): Update.
3216 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3217 bfd_open_maybe_remote.
3218
596f7d67
TT
32192012-07-23 Tom Tromey <tromey@redhat.com>
3220
3221 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3222
8ac244b4
TT
32232012-07-23 Tom Tromey <tromey@redhat.com>
3224
3225 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3226 and 'abfd'.
3227 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3228 and 'abfd'.
3229 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3230 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3231 'abfd'.
3232 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3233 * objfiles.c (allocate_objfile): Acquire a new reference.
3234 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3235 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3236 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3237 a cleanup for 'nbfd'.
3238 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3239 for 'nbfd'.
3240 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3241 make a cleanup for 'abfd'.
3242 (symbol_file_add): Make a BFD cleanup.
3243
64c31149
TT
32442012-07-23 Tom Tromey <tromey@redhat.com>
3245
3246 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3247 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3248 * corelow.c (core_open): Use gdb_bfd_fopen.
3249 * dsrec.c (load_srec): Use gdb_bfd_openr.
3250 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3251 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3252 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3253 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3254 (gdb_bfd_fdopenr): New functions.
3255 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3256 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3257 (gdb_bfd_fdopenr): Declare.
3258 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3259 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3260 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3261 gdb_bfd_openr_next_archived_file.
3262 (macho_check_dsym): Use gdb_bfd_openr.
3263 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3264 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3265 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3266 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3267 gdb_bfd_openr.
3268 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3269 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3270 gdb_bfd_openr_next_archived_file.
3271 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3272 Use gdb_bfd_openr.
3273 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3274 gdb_bfd_openr.
3275 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3276 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3277 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3278 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3279 (symfile_bfd_open): Use gdb_bfd_fopen.
3280 (generic_load): Use gdb_bfd_openr.
3281 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3282
520b0001
TT
32832012-07-23 Tom Tromey <tromey@redhat.com>
3284
3285 * bfd-target.c (target_bfd_reopen): Update.
3286 * cli/cli-dump.c (bfd_openr_with_cleanup)
3287 (bfd_openw_with_cleanup): Update.
3288 * corelow.c (core_open): Update.
3289 * dsrec.c (load_srec): Update.
3290 * exec.c (exec_file_attach): Update.
3291 * gcore.c (create_gcore_bfd): Update.
3292 * gdb_bfd.c (gdb_bfd_ref): Return void.
3293 (gdb_bfd_open): Update.
3294 * gdb_bfd.h (gdb_bfd_ref): Return void.
3295 Update comments.
3296 * jit.c (jit_bfd_try_read_symtab): Update.
3297 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3298 * machoread.c (macho_symfile_read_all_oso): Update.
3299 (macho_check_dsym): Update.
3300 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3301 * remote-m32r-sdi.c (m32r_load): Update.
3302 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3303 * rs6000-nat.c (add_vmap): Update.
3304 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3305 Update.
3306 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3307 * solib-spu.c (spu_bfd_open): Update.
3308 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3309 * spu-linux-nat.c (spu_bfd_open): Update.
3310 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3311 (generic_load): Update.
3312 * windows-nat.c (windows_make_so): Update.
3313
2322ff16
SP
33142012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3315
3316 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3317
3def0b36
PA
33182012-07-20 Jeff Kenton <jkenton@tilera.com>
3319
3320 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3321 SIGTRAMP_FRAME unwinding.
3322
e615022a
DE
33232012-07-20 Doug Evans <dje@google.com>
3324
3325 * NEWS: Document new options "set/show use-deprecated-index-sections",
3326 and delete reference to --use-deprecated-index-sections.
3327 * symfile.h (use_deprecated_index_sections): Delete.
3328 * dwarf2read.c (use_deprecated_index_sections): Make static.
3329 (read_index_from_section): Update wording of how to load
3330 deprecated index sections.
3331 (_initialize_dwarf2_read): New options
3332 "set/show use-deprecated-index-sections".
3333 * main.c (captured_main): Delete --use-deprecated-index-sections.
3334
64776a0b
PA
33352012-07-20 Pedro Alves <palves@redhat.com>
3336
3337 PR threads/11692
3338 PR gdb/12203
3339
3340 * infrun.c (handle_inferior_event) <new thread>: Don't special
3341 case minus_one_ptid.
3342 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3343 * linux-thread-db.c (thread_get_info_callback): Don't return early
3344 if the thread is zombie.
3345 (thread_from_lwp): Change return type to void. Rewrite stale
3346 comment.
3347 (attach_thread): Don't return early if the thread is zombie,
3348 instead set its "dying" flag.
3349 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3350 (find_new_threads_callback): Don't return early if the thread is
3351 zombie.
3352
09826ec5
PA
33532012-07-20 Pedro Alves <palves@redhat.com>
3354
3355 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3356 * target.c (target_wait): Likewise.
3357 (str_comma_list_concat_elem, do_option, target_options_to_string):
3358 New functions.
3359 * target.h (target_options_to_string): Declare.
3360
f7a35f02
TT
33612012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3362 Tom Tromey <tromey@redhat.com>
3363
3364 * dwarf2read.c (dwarf_decode_macros)
3365 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3366 DW_MACRO_GNU_transparent_include_alt>: New cases.
3367 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3368 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3369
b81e1ee0
TT
33702012-07-20 Tom Tromey <tromey@redhat.com>
3371
3372 * dwarf2read.c (try_open_dwo_file): Don't call
3373 gdb_bfd_stash_filename.
3374
99c1624c
PA
33752012-07-20 Pedro Alves <palves@redhat.com>
3376
3377 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3378 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3379 (i386_process_record): Tweak description comments.
3380
4ffa4fc7
PA
33812012-07-20 Pedro Alves <palves@redhat.com>
3382
3383 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3384 (i386_process_record): Use record_read_memory.
3385 * record.c (record_read_memory): New function.
3386 (record_arch_list_add_mem, record_exec_insn): Use
3387 record_read_memory.
3388 * record.h (record_read_memory): Declare.
3389
c24343e2
YQ
33902012-07-20 Yao Qi <yao@codesourcery.com>
3391
3392 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3393 NULL for xfree.
3394
90f47860
PA
33952012-07-19 Pedro Alves <palves@redhat.com>
3396
3397 * record.c (record_resume): Ask the target beneath to report all
3398 signals.
3399
01093045
DE
34002012-07-19 Doug Evans <dje@google.com>
3401
3402 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3403 there's no section at address zero.
3404 (dwarf2_record_block_ranges): Ditto.
3405
a7c3d162
YQ
34062012-07-19 Yao Qi <yao@codesourcery.com>
3407
3408 * command.h, remote.c: Fix a typo in comment.
3409
608b4967
TT
34102012-07-19 Tom Tromey <tromey@redhat.com>
3411
3412 PR exp/13206:
3413 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3414 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3415 OP_DECLTYPE>: New cases.
3416 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3417 (type_exp): Add new productions.
3418 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3419 and decltype.
3420 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3421 New case.
3422 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3423 OP_DECLTYPE>: New case.
3424 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3425 New case.
3426 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3427 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3428
274b54d7
TT
34292012-07-19 Tom Tromey <tromey@redhat.com>
3430
3431 * c-exp.y (enum token_flags): New.
3432 (struct token) <cxx_only>: Remove.
3433 <flags>: New field.
3434 (tokentab3, tokentab2, ident_tokens): Update.
3435 (lex_one_token): Update. Handle FLAG_SHADOW.
3436
9eaf6705
TT
34372012-07-19 Tom Tromey <tromey@redhat.com>
3438
3439 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3440 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3441 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3442 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3443 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3444 type_exp production where appropriate.
3445 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3446 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3447 <UNOP_MEMVAL_TYPE>: New case.
3448 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3449 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3450 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3451 <UNOP_MEMVAL_TYPE>: New case.
3452 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3453 UNOP_REINTERPRET_CAST>: Update.
3454 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3455 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3456 UNOP_REINTERPRET_CAST>: Update.
3457 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3458 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3459 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3460 constants.
3461
6ace3df1
YQ
34622012-07-19 Yao Qi <yao@codesourcery.com>
3463 Jan Kratochvil <jan.kratochvil@redhat.com>
3464
3465 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3466 and case 'var_optional_filename' together.
3467 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3468 instead of add_setshow_optional_filename_cmd for setshow command
3469 'args'. Set completer for 'set args'.
3470
48faced0
DE
34712012-07-18 Doug Evans <dje@google.com>
3472
3473 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3474 * common/gdb_vecs.c: New file, contents from utils.c.
3475 * common/host-defs.h: New file, contents from defs.h.
3476 * utils.h: New file, contents from defs.h.
3477 * defs.h: Move all declarations of objects defined in utils.c
3478 to utils.h (except QUIT() and related).
3479 #include "utils.h", "host-defs.h".
3480 * probe.h (probe_p): Move here from gdb_vecs.h.
3481 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3482 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3483 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3484 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3485 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3486 (COMMON_OBS): Add gdb_vecs.o.
3487 (gdb_vecs.o): New rule.
3488
66f1999b
KS
34892012-07-18 Keith Seitz <keiths@redhat.com>
3490
3491 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3492 parameter. If non-zero, use SYMNAME as the canonical name
3493 for the SaL.
3494 Update all callers.
3495 (convert_linespec_to_sals): Use add_sal_to_sals for
3496 expressions, too.
3497 (decode_line_full): No need to "fill in missing canonical names"
3498 anymore. Simply make cleanups for the allocated names.
3499
5d94e27b
KS
35002012-07-18 Keith Seitz <keiths@redhat.com>
3501
3502 * linespec.c (struct linespec): Constify expression,
3503 source_filename, function_name, and label_name.
3504 (symbol_not_found_error): Make all parameters const.
3505 (linespec_parser_delete): No need to check for NULL
3506 when using xfree. Cast const char * to char * for xfree.
3507
af4908ba
KS
35082012-07-18 Keith Seitz <keiths@redhat.com>
3509
3510 * breakpoint.c (invalid_thread_id_error): New function.
3511 (find_condition_and_thread): Use invalid_thread_id_error.
3512 (watch_command_1): Likewise.
3513
853254db
TT
35142012-07-18 Tom Tromey <tromey@redhat.com>
3515
3516 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3517 * contrib/cc-with-tweaks.sh: New file.
3518
2ec9a5e0
TT
35192012-07-18 Tom Tromey <tromey@redhat.com>
3520
3521 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3522 (locate_dwz_sections): Recognize .gdb_index.
3523 (create_cus_from_index_list): New function.
3524 (create_cus_from_index): Use it. Handle .dwz data.
3525 (read_index_from_section): New function, extracted from
3526 dwarf2_read_index.
3527 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3528 if needed.
3529
36586728
TT
35302012-07-18 Tom Tromey <tromey@redhat.com>
3531
3532 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3533 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3534 <is_dwz>: New field.
3535 (struct dwz_file): New.
3536 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3537 (locate_dwz_sections, dwarf2_get_dwz_file)
3538 (get_abbrev_section_for_cu): New functions.
3539 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3540 (read_and_check_type_unit_head): Add abbrev_section argument.
3541 (create_debug_types_hash_table): Update.
3542 (init_cutu_and_read_dies): Use proper abbrev section.
3543 (init_cutu_and_read_dies_no_follow): Likewise.
3544 (set_partial_user): Do nothing if PST==NULL.
3545 (read_comp_units_from_section): New function.
3546 (create_all_comp_units): Use it.
3547 (scan_partial_symbols, partial_die_parent_scope): Update.
3548 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3549 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3550 (find_partial_die): Add offset_in_dwz argument. Update.
3551 (guess_partial_die_structure_name, fixup_partial_die): Update.
3552 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3553 DW_FORM_GNU_strp_alt.
3554 (read_indirect_string_from_dwz): New function.
3555 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3556 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3557 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3558 (follow_die_offset): Add offset_in_dwz argument.
3559 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3560 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3561 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3562 Handle new macro forms.
3563 (dwarf_decode_macros): Update.
3564 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3565 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3566 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3567 (create_debug_types_hash_table): Use correct abbrev section.
3568 (get_debug_line_section): New function.
3569 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3570 (process_full_comp_unit): Pass 'required' argument to
3571 end_symtab_get_static_block.
3572 * buildsym.h (end_symtab_get_static_block): Update.
3573 * buildsym.c (end_symtab_get_static_block): Add 'required'
3574 argument.
3575 (end_symtab, end_expandable_symtab): Update.
3576
4bf44c1c
TT
35772012-07-18 Tom Tromey <tromey@redhat.com>
3578
3579 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3580 (pagesize): Remove.
3581 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3582 (zlib_decompress_section): Remove.
3583 (dwarf2_read_section): Use gdb_bfd_map_section.
3584 (munmap_section_buffer): Remove.
3585 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3586 munmap_section_buffer.
3587 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3588 (struct gdb_bfd_section_data): New.
3589 (free_one_bfd_section): New function.
3590 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3591 (get_section_descriptor, zlib_decompress_section)
3592 (gdb_bfd_map_section): New functions.
3593 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3594
bb397797
TT
35952012-07-18 Tom Tromey <tromey@redhat.com>
3596
3597 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3598
6ec53d05
TT
35992012-07-18 Tom Tromey <tromey@redhat.com>
3600
3601 * gdb_bfd.c (struct gdb_bfd_data): New.
3602 (gdb_bfd_cache): New global.
3603 (struct gdb_bfd_cache_search): New.
3604 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3605 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3606 * gdb_bfd.h (gdb_bfd_open): Declare.
3607
f9a062ff
TT
36082012-07-18 Tom Tromey <tromey@redhat.com>
3609
3610 * utils.c (make_cleanup_bfd_unref): Rename from
3611 make_cleanup_bfd_close.
3612 * defs.h (make_cleanup_bfd_unref): Rename from
3613 make_cleanup_bfd_close.
3614 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3615 (bfd_openw_with_cleanup): Update.
3616 * corelow.c (core_open): Update.
3617 * dsrec.c (load_srec): Update.
3618 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3619 * remote-m32r-sdi.c (m32r_load): Update.
3620 * remote-mips.c (mips_load_srec): Update.
3621 (pmon_load_fast): Update.
3622 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3623 Update.
3624 (darwin_bfd_open): Update.
3625 * solib.c (solib_bfd_fopen): Update.
3626 * symfile-mem.c (symbol_file_add_from_memory): Update.
3627 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3628 (symfile_bfd_open): Update.
3629 (generic_load): Update.
3630
d6ad71ba
TT
36312012-07-18 Tom Tromey <tromey@redhat.com>
3632
3633 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3634 (pmon_load_fast): Likewise.
3635 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3636 (m32r_upload_command): Likewise.
3637 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3638 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3639 Use make_cleanup_bfd_close.
3640
a4453b7e
TT
36412012-07-18 Tom Tromey <tromey@redhat.com>
3642
3643 * symfile.c (symfile_bfd_open): Don't copy name. Call
3644 gdb_bfd_stash_filename.
3645 (load_command): Open the new BFD before freeing the old.
3646 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3647 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3648 Call gdb_bfd_stash_filename.
3649 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3650 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3651 gdb_bfd_stash_filename.
3652 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3653 Free found_pathname.
3654 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3655 gdb_bfd_stash_filename.
3656 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3657 * machoread.c (macho_add_oso_symfile): Call
3658 gdb_bfd_stash_filename.
3659 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3660 gdb_bfd_stash_filename.
3661 (macho_check_dsym): Don't copy filename. Call
3662 gdb_bfd_stash_filename.
3663 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3664 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3665 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3666 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3667 * exec.c (exec_close): Don't free the BFD's filename.
3668 (exec_file_attach): Don't copy the filename. Call
3669 gdb_bfd_stash_filename.
3670 * corelow.c (core_close): Don't free the BFD's filename.
3671 (core_open): Call gdb_bfd_stash_filename.
3672 * corefile.c (reopen_exec_file): Remove #if 0 code.
3673 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3674 pathname.
3675 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3676
cbb099e8
TT
36772012-07-18 Tom Tromey <tromey@redhat.com>
3678
3679 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3680 gdb_bfd_unref.
3681 (free_dwo_file): Use gdb_bfd_unref.
3682 * cli/cli-dump.c: Include gdb_bfd.h.
3683 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3684 (bfd_openr_with_cleanup): Likewise.
3685 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3686 gdb_bfd_unref.
3687 * utils.c: Include gdb_bfd.h.
3688 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3689 * symfile.c: Include gdb_bfd.h.
3690 (separate_debug_file_exists): Use gdb_bfd_unref.
3691 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3692 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3693 (generic_load): Use gdb_bfd_ref.
3694 (reread_symbols): Use gdb_bfd_unref.
3695 * symfile-mem.c: Include gdb_bfd.h.
3696 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3697 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3698 * solib.c: Include gdb_bfd.h.
3699 (solib_bfd_fopen): Use gdb_bfd_ref.
3700 (solib_bfd_open): Use gdb_bfd_unref.
3701 (free_so_symbols): Use gdb_bfd_unref.
3702 (reload_shared_libraries_1): Use gdb_bfd_unref.
3703 * solib-spu.c: Include gdb_bfd.h.
3704 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3705 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3706 gdb_bfd_unref.
3707 * solib-frv.c: Include gdb_bfd.h.
3708 (enable_break2): Use gdb_bfd_unref.
3709 * solib-dsbt.c: Include gdb_bfd.h.
3710 (enable_break2): Use gdb_bfd_unref.
3711 * solib-darwin.c: Include gdb_bfd.h.
3712 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3713 gdb_bfd_unref.
3714 (darwin_bfd_open): Use gdb_bfd_unref.
3715 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3716 * remote-mips.c: Include gdb_bfd.h.
3717 (mips_load_srec): Use gdb_bfd_ref.
3718 (pmon_load_fast): Use gdb_bfd_ref.
3719 * remote-m32r-sdi.c: Include gdb_bfd.h.
3720 (m32r_load): Use gdb_bfd_ref.
3721 * record.c: Include gdb_bfd.h.
3722 (record_save_cleanups): Use gdb_bfd_unref.
3723 (cmd_record_save): Use gdb_bfd_unref.
3724 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3725 gdb_bfd_unref.
3726 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3727 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3728 * objfiles.c: Include gdb_bfd.h.
3729 (free_objfile): Use gdb_bfd_unref.
3730 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3731 gdb_bfd.c.
3732 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3733 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3734 (macho_check_dsym): Likewise.
3735 * m32r-rom.c: Include gdb_bfd.h.
3736 (m32r_load): Use gdb_bfd_ref.
3737 (m32r_upload_command): Use gdb_bfd_ref.
3738 * jit.c: Include gdb_bfd.h.
3739 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3740 * gdb_bfd.h: New file.
3741 * gdb_bfd.c: New file.
3742 * gcore.c: Include gdb_bfd.h.
3743 (create_gcore_bfd): Use gdb_bfd_ref.
3744 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3745 (gcore_command): Use gdb_bfd_unref.
3746 * exec.c: Include gdb_bfd.h.
3747 (exec_close): Use gdb_bfd_unref.
3748 (exec_close_1): Use gdb_bfd_unref.
3749 (exec_file_attach): Use gdb_bfd_ref.
3750 * elfread.c: Include gdb_bfd.h.
3751 (build_id_verify): Use gdb_bfd_unref.
3752 * dsrec.c: Include gdb_bfd.h.
3753 (load_srec): Use gdb_bfd_ref.
3754 * corelow.c: Include gdb_bfd.h.
3755 (core_close): Use gdb_bfd_unref.
3756 (core_open): Use gdb_bfd_ref.
3757 * bfd-target.c: Include gdb_bfd.h.
3758 (target_bfd_xclose): Use gdb_bfd_unref.
3759 (target_bfd_reopen): Use gdb_bfd_ref.
3760 * Makefile.in (SFILES): Add gdb_bfd.c.
3761 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3762 (COMMON_OBS): Add gdb_bfd.o.
3763
ed1d1739
KS
37642012-07-18 Keith Seitz <keiths@redhat.com>
3765
3766 * breakpoint.c (find_condition_and_thread): Initialize
3767 TASK and REST.
3768 (create_breakpiont): find_condition_and_thread will now
3769 initialize COND_STRING, THREAD, and REST (and TASK).
3770 (addr_string_to_sals): Likewise.
3771
eab402df
PA
37722012-07-18 Pedro Alves <palves@redhat.com>
3773
3774 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3775 Pull the single step breakpoints out of the target.
3776
2b963b68
SDJ
37772012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3778
3779 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3780 * stap-probe.c (compile_probe_arg): Likewise.
3781
6bac7473
SDJ
37822012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3783
3784 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3785 (elf_compile_to_ax): Likewise.
3786 * infrun.c (insert_exception_resume_from_probe): Likewise.
3787 (check_exception_resume): Remove `objfile' variable.
3788 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3789 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3790 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3791 (compare_entries): Rename to...
3792 (compare_probes): ...this. Adjust function to work with
3793 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3794 respectively.
3795 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3796 `VEC (probe_p) *'.
3797 (print_ui_out_info): Adjust argument to be `struct probe *'.
3798 (info_probes_for_ops): Adjust internal computations to use
3799 `VEC (probe_p) *'.
3800 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3801 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3802 gen_info_probes_table_values>: Remove `objfile' argument.
3803 (struct probe) <objfile>: New field.
3804 (find_probe_by_pc): Remove `objfile' argument.
3805 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3806 (stap_get_probe_argument_count): Likewise.
3807 (stap_get_arg): Likewise.
3808 (stap_evaluate_probe_argument): Likewise.
3809 (stap_compile_to_ax): Likewise.
3810 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3811 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3812 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3813 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3814 sym_compile_to_ax>: Likewise.
3815
3347eb1a 38162012-07-18 Terry Guo <terry.guo@arm.com>
3817
3818 PR 14329
3819 * defs.h (GDB_MI_MSG_WIDTH): New.
3820 * ser_base (ser_base_read_error_fd): New function.
3821 (do_ser_base_readchar): Poll error file descriptor as well as
3822 standard output.
f782ad9b 3823 (generic_readchar): Refactor error handling.
3347eb1a 3824
80c8d323
JB
38252012-07-18 Joel Brobecker <brobecker@adacore.com>
3826
3827 * NEWS: Create a new section for the next release branch.
3828 Rename the section of the current branch, now that it has
3829 been cut.
3830
b45a0664 38312012-07-18 Joel Brobecker <brobecker@adacore.com>
3832
3833 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3834 * version.in: Bump version to 7.5.50.20120718-cvs.
3835
09cf2b22
KS
38362012-07-17 Keith Seitz <keiths@redhat.com>
3837
3838 * linespec.c (linespec_parse_line_offset): Make parameter
3839 const.
3840
8f043999
JK
38412012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3842
3843 PR 11914
3844 * f-valprint.c (info_common_command): New variable frame_id.
3845 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3846 * printcmd.c (print_variable_and_value): Extend function comment.
3847 Add comment for invalidated FRAME.
3848 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3849 FI form FRAME_ID after each print_frame_local_vars.
3850 (struct print_variable_and_value_data): Change frame to frame_id.
3851 (do_print_variable_and_value): New variable frame, initialize it from
3852 p->frame_id. Add comment for invalidated FRAME.
3853 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3854 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3855 for invalidated FRAME.
3856
ae5e0686
MK
38572012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3858 Pedro Alves <palves@redhat.com>
3859
3860 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3861 loop.
3862
5049c5be
TT
38632012-07-16 Tom Tromey <tromey@redhat.com>
3864
3865 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3866
2908cac6
DE
38672012-07-15 Doug Evans <dje@google.com>
3868
094b34ac
DE
3869 * dwarf2read.c (stmt_list_hash): New struct.
3870 (type_unit_group): Embed "per_cu" member, remove pointer.
3871 New union member "t", move member "tus" into it, all uses updated.
3872 New member "hash", replaces member "line_offset, all uses updated.
3873 (quick_file_names): Replace member "offset" with "hash", all uses
3874 updated.
3875 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3876 (hash_file_name_entry, eq_file_name_entry): Call them.
3877 (hash_type_unit_group, eq_type_unit_group): Ditto.
3878 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3879 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3880 (dw2_get_file_names): Update.
3881 (create_type_unit_group): Replace "per_cu" arg with "cu".
3882 All callers updated. Fix "quick" (.gdb_index) handling.
3883 (get_type_unit_group): Replace "per_cu" arg with "cu".
3884 All callers updated.
3885 (build_type_unit_groups): Don't reset tu_stats.
3886
2908cac6
DE
3887 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3888 "tab_cur_size". Change member "tab" to be a htab_t.
3889 (create_filename_seen_cache): Update.
3890 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3891 (filename_seen): Update.
3892
a2b6eff5
DE
38932012-07-13 Doug Evans <dje@google.com>
3894
3895 * symtab.c (filename_seen): Update comment.
3896
4359dff1
JK
38972012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3898 Doug Evans <dje@google.com>
3899
3900 * buildsym.c (end_symtab_1): Split it to ...
3901 (end_symtab_get_static_block): ... this ...
3902 (end_symtab_from_static_block): ... and this function.
3903 (end_symtab, end_expandable_symtab): Call them.
3904 * buildsym.h (end_symtab_get_static_block)
3905 (end_symtab_from_static_block): New declarations.
3906 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3907 Set its valid CU ranges.
3908
a24f71ab
JK
39092012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3910
3911 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3912 DW_OP_GNU_parameter_ref.
3913
d76b7dbc
JK
39142012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3915
3916 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3917 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3918
9fdc877b
DE
39192012-07-13 Doug Evans <dje@google.com>
3920
3921 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3922 (filename_seen_cache): New struct.
3923 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3924 (create_filename_seen_cache): New function.
3925 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3926 (filename_seen): Delete arg "first". New arg "cache". All callers
3927 updated.
3928 (output_source_filename_data): New struct.
3929 (output_source_filename): Delete arg "first". New arg "data".
3930 All callers updated.
3931 (sources_info): Delete local "first". New locals "data", "cleanups".
3932 Rewrite to use filename_seen_cache.
3933 (add_partial_filename_data): Delete member "first". New member
3934 "filename_seen_cache". All uses updated.
3935 (make_source_files_completion_list): Rewrite to use
3936 filename_seen_cache.
3937
f80c6f3f
DE
39382012-07-12 Doug Evans <dje@google.com>
3939
3940 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3941
0bfa869d
DE
39422012-07-10 Doug Evans <dje@google.com>
3943
f4dc4d17
DE
3944 PR gdb/13498
3945 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3946 all_type_unit_groups, type_unit_groups, tu_stats.
3947 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3948 All uses updated. Add type_unit_group to union "s".
3949 (type_unit_group): New struct.
3950 (IS_TYPE_UNIT_GROUP): New macro.
3951 (abbrev_table): Delete unused member "section".
3952 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3953 (dw2_get_cu): Assert not used with type_unit_group.
3954 (dw2_get_primary_cu): New function.
3955 (dw2_build_type_unit_groups_reader): New function.
3956 (dw2_build_type_unit_groups): New function.
3957 (dw2_get_file_names): Assert not called on type units.
3958 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3959 Redo loop to iterate over type unit groups instead of type units.
3960 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3961 (read_abbrev_offset): New function.
3962 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3963 updated.
3964 (create_partial_symtab): New function.
3965 (process_psymtab_comp_unit_reader): Assert not used with type units.
3966 Call create_partial_symtab.
3967 (process_psymtab_type_unit): Delete.
3968 (hash_type_unit_group, eq_type_unit_group): New functions.
3969 (allocate_type_unit_groups_table): New function.
3970 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3971 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3972 (create_type_unit_group, get_type_unit_group): New functions.
3973 (tu_abbrev_offset): New struct.
3974 (sort_tu_by_abbrev_offset): New function.
3975 (add_type_unit_group_to_table): New function.
3976 (build_type_unit_groups): New function.
3977 (build_type_psymtabs_reader): New function.
3978 (build_type_psymtab_dependencies): New function.
3979 (build_type_psymtabs): Rewrite.
3980 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3981 is seen in a type unit.
3982 (process_queue): Move symtab expansion debugging printfs here.
3983 Call process_full_type_unit for type units.
3984 (compute_symtab_includes): Assert not called for type units.
3985 (process_cu_includes): Don't call compute_symtab_includes for
3986 type units.
3987 (process_full_type_unit): New function.
3988 (process_imported_unit_die): Flag an error if called for type units.
3989 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3990 updated. Assert not called for type units.
3991 (read_file_scope): Call dwarf2_start_symtab.
3992 (setup_type_unit_groups): New function.
3993 (read_type_unit_scope): Rewrite.
3994 (abbrev_table_read_table): Initialize abbrev_table->offset.
3995 (abbrev_table_free_cleanup): New function.
3996 (dwarf2_start_symtab): New function.
3997 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3998 * buildsym.c (finish_block_internal): New arg "expandable".
3999 All callers updated.
4000 (start_symtab): Move most contents to ...
4001 (restart_symtab): ... here. New function.
4002 (reset_symtab_globals): New function.
4003 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4004 Call reset_symtab_globals.
4005 (end_symtab, end_expandable_symtab): New functions.
4006 (set_missing_symtab, augment_type_symtab): New functions.
4007 * buildsym.h (end_expandable_symtab): Declare.
4008 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4009 * psympriv.h (struct partial_symtab): New member "anonymous".
4010 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4011 anonymous psymtabs.
4012 (read_psymtabs_with_filename): Ditto.
4013 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4014 (expand_symtabs_matching_via_partial): Ditto.
4015 (dump_psymtab): Update.
0bfa869d
DE
4016 * dictionary.c (dict_add_pending): New function.
4017 * dictionary.h (dict_add_pending): Declare.
4018
45e58e77
DE
40192012-07-09 Doug Evans <dje@google.com>
4020
b74db436
DE
4021 * buildsym.c (start_subfile): Remove unnecessary check for
4022 name == NULL.
4023
fd55216c
DE
4024 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4025
6721b2ec
DE
4026 * dwarf2read.c (load_full_type_unit): Simplify.
4027
b4dd5633
DE
4028 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4029 to struct signatured_type **. All uses updated.
4030
45e58e77
DE
4031 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4032 All callers updated.
4033
e314d629
TT
40342012-07-09 Tom Tromey <tromey@redhat.com>
4035
4036 * c-exp.y (check_parameter_typelist): New function.
4037 (parameter_typelist): Call it.
4038 * eval.c (make_params): Handle '(void)' case.
4039 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4040 '(void)' case.
4041
aa7c7447
JK
40422012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4043
4044 * common/linux-ptrace.c: Include gdb_assert.h.
4045 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4046 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4047 stdint.h.
4048 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4049 functions.
4050 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4051 * linux-nat.c (linux_child_post_attach)
4052 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4053
889003ed
JK
40542012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4055
4056 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4057 nptl <2.7 bug workaround for core files.
4058
da559b09
JK
40592012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4062 clearing.
4063 (save_siginfo): Remove.
4064 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4065 call.
4066 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4067 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4068 * linux-nat.h (struct lwp_info): Remove field siginfo.
4069
f865ee35
JK
40702012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4071
4072 Code cleanup for the next patch.
4073 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4074 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4075 call for it.
4076 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4077 (ia64_linux_stopped_data_address):
4078 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4079 the return value.
4080 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4081 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4082 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4083 call for it.
4084
76b83c51
JK
40852012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4086
4087 PR 14321
4088 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4089 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4090
a6fb9c08
TT
40912012-07-06 Tom Tromey <tromey@redhat.com>
4092
4093 * c-exp.y (DOTDOTDOT): New token.
4094 (func_mod, exp): Use parameter_typelist.
4095 (parameter_typelist): New production.
4096 (tokentab3): Add "..." token.
4097 * eval.c (make_params): Handle varargs.
4098 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4099 varargs.
4100
71918a86
TT
41012012-07-06 Tom Tromey <tromey@redhat.com>
4102
4103 PR exp/9608:
4104 * c-exp.y (%union) <tvec>: Change type.
4105 (func_mod): Now uses <tvec> type.
4106 (exp): Update for tvec change.
4107 (direct_abs_decl): Push the typelist.
4108 (func_mod): Return a typelist.
4109 (nonempty_typelist): Update for tvec change.
4110 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4111 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4112 * parse.c (pop_type_list): New function.
4113 (push_typelist): New function.
4114 (follow_types): Handle tp_function_with_arguments.
4115 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4116 (enum type_pieces) <tp_function_with_arguments>: New constant.
4117 (union type_stack_elt) <typelist_val>: New field.
4118 (push_typelist): Declare.
4119
fcde5961
TT
41202012-07-06 Tom Tromey <tromey@redhat.com>
4121
4122 * c-exp.y (%union) <type_stack>: New field.
4123 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4124 (ptr_operator_ts): New production.
4125 (ptype): Update.
4126 * parse.c (type_stack_reserve): New function.
4127 (check_type_stack_depth): Use it.
4128 (pop_type_stack, append_type_stack, push_type_stack)
4129 (get_type_stack, type_stack_cleanup): New functions.
4130 (follow_types): Handle tp_type_stack.
4131 (_initialize_parse): Simplify initialization.
4132 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4133 constant.
4134 (union type_stack_elt) <stack_val>: New field.
4135 (get_type_stack, append_type_stack, push_type_stack)
4136 (type_stack_cleanup): Declare.
4137
1a7d0ce4
TT
41382012-07-06 Tom Tromey <tromey@redhat.com>
4139
4140 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4141 Remove.
4142 (struct type_stack): New.
4143 * parse.c (type_stack, type_stack_size, type_stack_depth):
4144 Remove.
4145 (type_stack): New global.
4146 (parse_exp_in_context, check_type_stack_depth)
4147 (insert_into_type_stack, insert_type, push_type, push_type_int)
4148 (insert_type_address_space, pop_type, pop_type_int)
4149 (_initialize_parse): Update.
4150
16d01384
TT
41512012-07-06 Tom Tromey <tromey@redhat.com>
4152
4153 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4154 Remove %type.
4155
9bfc60bf
SP
41562012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4157
4158 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4159
d5161074
SP
41602012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4161 Jan Kratochvil <jan.kratochvil@redhat.com>
4162
4163 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4164 alloca with xmalloc/xfree.
4165
a74bc576
SP
41662012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4167
4168 * MAINTAINERS (Write After Approval): Add myself to the list.
4169
667e0a4b
DE
41702012-07-05 Doug Evans <dje@google.com>
4171
4172 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4173
34b536a8
HZ
41742012-07-05 Hui Zhu <hui_zhu@mentor.com>
4175
4176 * ax-gdb.c (cli/cli-utils.h): New include.
4177 (linespec.h): Ditto.
4178 (agent_eval_command_one): New function.
4179 (agent_command_1): Ditto.
4180 (agent_command): Call function agent_command_1.
4181 (agent_eval_command): Ditto.
4182 (_initialize_ax_gdb): Change help for "maint agent"
4183 and "maint agent-eval".
4184
e6f0bce7
HZ
41852012-07-05 Hui Zhu <hui_zhu@mentor.com>
4186
4187 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4188 * cli/cli-utils.c (check_for_argument): New function.
4189 * cli/cli-utils.h (check_for_argument): Ditto.
4190
1b3371b1
L
41912012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4192
4193 * NEWS: Mention x32 ABI support.
4194
23e2d720
L
41952012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4196
4197 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4198 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4199
4200 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4201 and pc_regnum_from_eax to -1. Update SP regnum from
4202 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4203 needed.
4204
4205 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4206 pc_regnum_from_eax.
4207
836bf454
JK
42082012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4209
4210 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4211 * dwarf2expr.h: Include gdbtypes.h.
4212 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4213 these forward declarations.
4214 (cu_offset, sect_offset): Move these ...
4215 * gdbtypes.h: Remove include dwarf2expr.h.
4216 (cu_offset, sect_offset): ... here.
4217
1e55e04f
L
42182012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4219
4220 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4221 (amd64_linux_sigtramp_code): This.
4222 (amd64_x32_linux_sigtramp_code): New.
4223 (LINUX_SIGTRAMP_LEN): Updated.
4224 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4225
7d0e21ad
JK
42262012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4227
4228 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4229
8775fd2d
JK
42302012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 * config.in: Regenerate.
4233 * configure: Regenerate.
4234 * configure.ac: Remove check for gnu/libc-version.h.
4235 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4236 gnu/libc-version.h.
4237 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4238 variables libc_version, libc_major and libc_minor. Replace sscanf by
4239 inferior_has_bug. Extend the comment.
4240
fcb44371
JK
42412012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4242
4243 * linux-thread-db.c (inferior_has_bug): New function.
4244 (thread_db_find_new_threads_silently): Return boolean as checked by
4245 inferior_has_bug, describe it in the comments.
4246 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4247 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4248 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4249 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4250 if UNTIL_NO_NEW,
4251
09406207
DE
42522012-07-02 Doug Evans <dje@google.com>
4253
0907af0c
DE
4254 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4255 related to queue management.
4256
09406207
DE
4257 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4258 instead of "debug dwarf2-die" in debugging printfs.
4259 (create_debug_info_hash_table_reader): Ditto.
4260 (create_debug_info_hash_table): Ditto.
4261 (init_dwo_file): Ditto.
4262 (init_cutu_and_read_dies): Add debugging printf.
4263 (init_cutu_and_read_dies_no_follow): Ditto.
4264 (process_psymtab_comp_unit_reader): Ditto.
4265
d3ce09f5
SS
42662012-07-02 Stan Shebs <stan@codesourcery.com>
4267
4268 Add target-side support for dynamic printf.
4269 * NEWS: Mention the additional style.
4270 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4271 (struct bp_location): New field cmd_bytecode.
4272 * breakpoint.c: Include format.h.
4273 (disconnected_dprintf): New global.
4274 (parse_cmd_to_aexpr): New function.
4275 (build_target_command_list): New function.
4276 (insert_bp_location): Call it.
4277 (remove_breakpoints_pid): Skip dprintf breakpoints.
4278 (print_one_breakpoint_location): Ditto.
4279 (dprintf_style_agent): New global.
4280 (dprintf_style_enums): Add dprintf_style_agent.
4281 (update_dprintf_command_list): Add agent case.
4282 (agent_printf_command): New function.
4283 (_initialize_breakpoint): Add new commands.
4284 * common/ax.def (printf): New bytecode.
4285 * ax.h (ax_string): Declare.
4286 * ax-gdb.h (gen_printf): Declare.
4287 * ax-gdb.c: Include cli-utils.h, format.h.
4288 (gen_printf): New function.
4289 (maint_agent_print_command): New function.
4290 (_initialize_ax_gdb): Add maint agent-printf command.
4291 * ax-general.c (ax_string): New function.
4292 (ax_print): Add printf disassembly.
4293 * Makefile.in (SFILES): Add format.c
4294 (COMMON_OBS): Add format.o.
4295 * common/format.h: New file.
4296 * common/format.c: New file.
4297 * printcmd.c: Include format.h.
4298 (ui_printf): Call parse_format_string.
4299 * remote.c (remote_state): New field breakpoint_commands.
4300 (PACKET_BreakpointCommands): New enum.
4301 (remote_breakpoint_commands_feature): New function.
4302 (remote_protocol_features): Add new BreakpointCommands entry.
4303 (remote_can_run_breakpoint_commands): New function.
4304 (remote_add_target_side_commands): New function.
4305 (remote_insert_breakpoint): Call it.
4306 (remote_insert_hw_breakpoint): Ditto.
4307 (_initialize_remote): Add new packet configuration for
4308 target-side breakpoint commands.
4309 * target.h (struct target_ops): New field
4310 to_can_run_breakpoint_commands.
4311 (target_can_run_breakpoint_commands): New macro.
4312 * target.c (update_current_target): Handle
4313 to_can_run_breakpoint_commands.
4314
2d7b58e8
JK
43152012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4316
4317 Execute -ix and -iex only after system and user gdbinit files.
4318 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4319 processing down after gdbinit files.
4320
8690e634
JK
43212012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4322
4323 Add fnmatch-gnu module.
4324 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4325 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4326 * gnulib/aclocal.m4: Regenerate.
4327 * gnulib/config.in: Regenerate.
4328 * gnulib/configure: Regenerate.
4329 * gnulib/import/dummy.c: Remove.
4330 * gnulib/import/Makefile.am: Regenerate.
4331 * gnulib/import/Makefile.in: Likewise.
4332 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4333 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4334 * gnulib/import/alloca.c: New file.
4335 * gnulib/import/alloca.in.h: Likewise.
4336 * gnulib/import/config.charset: Likewise.
4337 * gnulib/import/fnmatch.c: Likewise.
4338 * gnulib/import/fnmatch.in.h: Likewise.
4339 * gnulib/import/fnmatch_loop.c: Likewise.
4340 * gnulib/import/localcharset.c: Likewise.
4341 * gnulib/import/localcharset.h: Likewise.
4342 * gnulib/import/m4/alloca.m4: Likewise.
4343 * gnulib/import/m4/codeset.m4: Likewise.
4344 * gnulib/import/m4/configmake.m4: Likewise.
4345 * gnulib/import/m4/fcntl-o.m4: Likewise.
4346 * gnulib/import/m4/fnmatch.m4: Likewise.
4347 * gnulib/import/m4/glibc21.m4: Likewise.
4348 * gnulib/import/m4/localcharset.m4: Likewise.
4349 * gnulib/import/m4/locale-fr.m4: Likewise.
4350 * gnulib/import/m4/locale-ja.m4: Likewise.
4351 * gnulib/import/m4/locale-zh.m4: Likewise.
4352 * gnulib/import/m4/mbrtowc.m4: Likewise.
4353 * gnulib/import/m4/mbsinit.m4: Likewise.
4354 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4355 * gnulib/import/m4/mbstate_t.m4: Likewise.
4356 * gnulib/import/m4/stdbool.m4: Likewise.
4357 * gnulib/import/m4/wchar_h.m4: Likewise.
4358 * gnulib/import/m4/wctype_h.m4: Likewise.
4359 * gnulib/import/m4/wint_t.m4: Likewise.
4360 * gnulib/import/mbrtowc.c: Likewise.
4361 * gnulib/import/mbsinit.c: Likewise.
4362 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4363 * gnulib/import/mbsrtowcs-state.c: Likewise.
4364 * gnulib/import/mbsrtowcs.c: Likewise.
4365 * gnulib/import/ref-add.sin: Likewise.
4366 * gnulib/import/ref-del.sin: Likewise.
4367 * gnulib/import/stdbool.in.h: Likewise.
4368 * gnulib/import/streq.h: Likewise.
4369 * gnulib/import/strnlen1.c: Likewise.
4370 * gnulib/import/strnlen1.h: Likewise.
4371 * gnulib/import/verify.h: Likewise.
4372 * gnulib/import/wchar.in.h: Likewise.
4373 * gnulib/import/wctype.in.h: Likewise.
4374
202cbf1c
JK
43752012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4376
4377 Support shell wildcards for 'set auto-load safe-path'.
4378 * auto-load.c: Include fnmatch.h.
4379 (filename_is_in_dir): Rename to ...
4380 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4381 it. Update function comment. Rename dir_len to pattern_len. New
4382 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4383 messages. Use gdb_filename_fnmatch.
4384 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4385 pattern.
4386 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4387 * defs.h (gdb_filename_fnmatch): New declaration.
4388 * utils.c: Include fnmatch.h.
4389 (gdb_filename_fnmatch): New function.
4390
fb7b5af4
SDJ
43912012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4392
4393 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4394 `-probe' and `-probe-stap' options.
4395
72d0e2c5
YQ
43962012-07-01 Yao Qi <yao@codesourcery.com>
4397
4398 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4399 always_inserted_off, and always_inserted_enums.
4400 Change always_inserted_mode's type to 'enum auto_boolean'.
4401 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4402 callers.
4403 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4404 of add_setshow_enum_cmd.
4405 * infrun.c: Remove can_use_displaced_stepping_auto,
4406 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4407 can_use_displaced_stepping_enum.
4408 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4409 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4410 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4411 add_setshow_enum_cmd.
4412
42e7ad6c
DE
44132012-06-30 Doug Evans <dje@google.com>
4414
4415 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4416 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4417 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4418
39cf75f7
DE
44192012-06-29 Doug Evans <dje@google.com>
4420
4421 * linespec.c: #include "stack.h".
4422 (decode_line_with_current_source): Moved here from symtab.c and
4423 renamed from decode_line_spec. All callers updated.
4424 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4425 renamed from decode_line_spec_1. All callers updated.
4426 * linespec.h (decode_line_with_current_source): Move declaration here
4427 from symtab.h and renamed from decode_line_spec.
4428 (decode_line_with_last_displayed): Move declaration here from symtab.h
4429 and renamed from decode_line_spec_1.
4430 * macrocmd.c: #include "linespec.h".
4431 * symtab.c: Remove #include "linespec.h".
4432
433df2d4
DE
44332012-06-28 Doug Evans <dje@google.com>
4434
1ce1cefd
DE
4435 * dwarf2read.c (get_cu_length): New function.
4436 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4437 (create_debug_types_hash_table): Ditto.
4438 (init_cutu_and_read_dies): Ditto.
4439 (init_cutu_and_read_dies_no_follow): Ditto.
4440
3b80fe9b
DE
4441 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4442
433df2d4
DE
4443 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4444 (struct abbrev_table): Define.
4445 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4446 abbrev_table.
4447 (init_cutu_and_read_dies): Update.
4448 (abbrev_table_alloc_abbrev): New function. Replaces
4449 dwarf_alloc_abbrev. All callers updated.
4450 (abbrev_table_add_abbrev): New function.
4451 (abbrev_table_lookup_abbrev): New function. Replaces
4452 dwarf2_lookup_abbrev. All callers updated.
4453 (abbrev_table_read_table): New function. Contents moved here from
4454 dwarf2_read_abbrevs.
4455 (dwarf2_read_abbrevs): Call it.
4456 (abbrev_table_free): New function.
4457 (dwarf2_free_abbrev_table): Call it.
4458
71caed83
SS
44592012-06-28 Stan Shebs <stan@codesourcery.com>
4460
4461 * osdata.c (info_osdata_command): Filter out "Title" columns
4462 from non-MI uses.
4463 * common/linux-osdata.c (struct osdata_type): Add title field.
4464 (osdata_table): Add titles to each entry.
4465 (linux_command_xfer_osdata): Add a column for title data.
4466
37ce89eb
SS
44672012-06-28 Stan Shebs <stan@codesourcery.com>
4468
4469 Make logging work for MI.
4470 * NEWS: Mention it.
4471 * interps.h (interp_set_logging_ftype): New typedef.
4472 (struct interp_procs): New field set_logging_proc.
4473 (current_interp_set_logging): Declare.
4474 * interps.c (current_interp_set_logging): New function.
4475 * cli/cli-logging.c: Include interps.h.
4476 (set_logging_redirect): Call current_interp_set_logging.
4477 (pop_output_files): Ditto.
4478 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4479 * mi/mi-console.h (mi_console_set_raw): Declare.
4480 * mi/mi-console.c (mi_console_set_raw): New function.
4481 * mi/mi-interp.c (saved_raw_stdout): New global.
4482 (mi_set_logging): New function.
4483 (_initialize_mi_interp): Add it to interp procs.
4484
659c9f3a
DE
44852012-06-28 Doug Evans <dje@google.com>
4486
a743abeb
DE
4487 * symtab.c (lookup_symbol_aux_objfile): Use
4488 ALL_OBJFILE_PRIMARY_SYMTABS.
4489
659c9f3a
DE
4490 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4491
da2d6d3d
JK
44922012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4493
4494 * common/buffer.c: Include inttypes.h and stdint.h.
4495 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4496
e5ef252a
PA
44972012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4498 Pedro Alves <palves@redhat.com>
4499
4500 * gdbthread.h (ALL_THREADS): New macro.
4501 (thread_list): Declare.
4502 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4503 going, but instead fall through to the stepping handling.
4504 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4505 the passed in signal. Adjust debug output.
4506 (resume_callback): Rename to ...
4507 (linux_nat_resume_callback): ... this. Pass the thread's last
4508 stop signal, if in "pass" state.
4509 (linux_nat_resume): Adjust to rename.
4510 (stop_wait_callback): New assertion. Don't respawn signals;
4511 instead let the LWP remain with SIGNALLED set.
4512 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4513 * remote.c (append_pending_thread_resumptions): New.
4514 (remote_vcont_resume): Call it.
4515 * target.h (target_resume): Extend comment.
4516
1d7975eb
IS
45172012-06-28 Iain Sandoe <iain@codesourcery.com>
4518
4519 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4520
2e3cf129
DE
45212012-06-27 Doug Evans <dje@google.com>
4522
4523 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4524 Delete have_addr_base, unused. All uses updated.
4525 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4526 (dwarf2_get_pc_bounds): Add ranges_base.
4527 (dwarf2_record_block_ranges): Ditto.
4528
1bb9788d
TT
45292012-06-27 Tom Tromey <tromey@redhat.com>
4530
4531 PR macros/7961:
4532 * varobj.c (varobj_create): Update.
4533 (varobj_set_value): Update.
4534 * tracepoint.c (validate_actionline): Update.
4535 (encode_actions_1): Update.
4536 * parse.c (parse_exp_1): Add 'pc' argument.
4537 (parse_exp_in_context): Add 'pc' argument. Change how
4538 expression_context_pc is set.
4539 (parse_expression): Update.
4540 (parse_field_expression): Update.
4541 * expression.h (parse_exp_1): Update.
4542 * eval.c (parse_to_comma_and_eval): Update.
4543 * breakpoint.c (set_breakpoint_condition): Update.
4544 (update_watchpoint): Update.
4545 (init_breakpoint_sal): Update
4546 (find_condition_and_thread): Update.
4547 (watch_command_1): Update.
4548 (update_breakpoint_locations): Update.
4549 * ada-lang.c (ada_read_renaming_var_value): Update.
4550 (create_excep_cond_exprs): Update.
4551
0bc3a05c
DE
45522012-06-27 Doug Evans <dje@google.com>
4553
4554 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4555 type units.
4556
4bdcc0c1
DE
45572012-06-26 Doug Evans <dje@google.com>
4558
4559 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4560 prototype.
4561 (error_check_comp_unit_head): New arg abbrev_section. All callers
4562 updated.
4563 (read_and_check_comp_unit_head): Ditto.
4564 (read_and_check_type_unit_head): Ditto.
4565
ee0bf529
SCR
45662012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4567
4568 New attribute 'last' for gdb.Symtab_and_line.
4569 * NEWS (Python Scripting): Add entry about the new attribute.
4570 * python/py-symtab.c (salpy_get_last): New function which
4571 implements the get method for the 'last' attribute of
4572 gdb.Symtab_and_line.
4573 (sal_object_getset): Add entry for the 'last' attribute.
4574
1c658ad5
DE
45752012-06-26 Doug Evans <dje@google.com>
4576
09262596
DE
4577 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4578 (dwo_sections): Add macinfo, macro.
4579 (dwarf2_locate_dwo_sections): Watch for macro sections.
4580 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4581 All callers updated. Handle DWO files.
4582
45cfd468
DE
4583 * NEWS: Mention new options "set debug dwarf2-read" and
4584 "set debug symtab-create".
4585 * dwarf2read.c (dwarf2_read_debug): New static global.
4586 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4587 (process_queue): Ditto.
4588 (process_full_comp_unit): Ditto.
4589 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4590 * elfread.c (elf_symfile_read): Add debugging printf.
4591 * minsyms.c (install_minimal_symbols): Ditto.
4592 * psymtab.c (allocate_psymtab): Ditto.
4593 * symfile.c (allocate_symtab): Ditto.
4594 * symtab.c (symtab_create_debug): New global.
4595 (_initialize_symtab): Add new option "set debug symtab-create".
4596 * symtab.h (symtab_create_debug): Declare.
4597
1c658ad5
DE
4598 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4599 (lookup_dwo_type_unit): Ditto.
4600
6fea9e18
L
46012012-06-26 Roland McGrath <roland@hack.frob.com>
4602 H.J. Lu <hongjiu.lu@intel.com>
4603
4604 * amd64-linux-nat.c: Include <sys/user.h>.
4605 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4606 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4607 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4608
4609 * configure.ac: Check if the fs_base and gs_base members of
4610 `struct user_regs_struct' exist.
4611 * config.in: Regenerated.
4612 * configure: Likewise.
4613
adb4fe3b
ME
46142012-06-25 Michael Eager <eager@eagercon.com>
4615
4616 PR python/14291
f782ad9b 4617 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4618
fc51cce1
MGD
46192012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4620
4621 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4622 register as a stack alignment in ARM mode.
4623
40a73391
JK
46242012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4625
4626 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4627 * gnulib/config.in: Regenerate.
4628 * gnulib/configure: Likewise.
4629 * gnulib/import/m4/extensions.m4: Update it.
4630 * gnulib/import/m4/gnulib-common.m4: Likewise.
4631 * gnulib/import/m4/memmem.m4: Likewise.
4632 * gnulib/import/m4/mmap-anon.m4: Likewise.
4633 * gnulib/import/m4/multiarch.m4: Likewise.
4634 * gnulib/import/stdint.in.h: Likewise.
4635
972daa01
YQ
46362012-06-24 Yao Qi <yao@codesourcery.com>
4637
4638 * corefile.c (write_memory_with_notification): New.
4639 * gdbcore.h: Declare write_memory_with_notification.
4640 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4641 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4642 * valops.c (value_assign): Likewise.
4643 * python/py-inferior.c (infpy_write_memory): Call
4644 'write_memory_with_notification'.
4645
8d6e0714
JK
46462012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4647
4648 * cc-with-index.sh: Use also -ex "set auto-load no".
4649
156942c7
DE
46502012-06-23 Doug Evans <dje@google.com>
4651
4652 PR 14125
4653 * NEWS: Document additions to .gdb_index.
4654 * dwarf2read.c: #include "gdb/gdb-index.h".
4655 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4656 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4657 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4658 (dwarf2_read_index): Recognize version 7.
4659 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4660 block_kind, domain): All callers updated.
4661 (dw2_find_symbol_file): Handle new index CU values.
4662 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4663 (add_index_entry): New args is_static, kind. All callers updated.
4664 (offset_type_compare, uniquify_cu_indices): New functions
4665 (symbol_kind): New function.
4666 (write_psymtabs_to_index): Remove duplicate CU values.
4667 (write_psymtabs_to_index): Write .gdb_index version 7.
4668
352b3eda
JB
46692012-06-22 Joel Brobecker <brobecker@adacore.com>
4670
4671 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4672 * configure: Regenerate.
4673
2678e2af
YQ
46742012-06-20 Yao Qi <yao@codesourcery.com>
4675
4676 * python/py-inferior.c: Update comments of infpy_read_memory
4677 and infpy_write_memory.
4678
95c391b6
TT
46792012-06-19 Tom Tromey <tromey@redhat.com>
4680
4681 PR exp/9514:
4682 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4683 (push_type_address_space): Remove.
4684 * parse.c (insert_into_type_stack): New function.
4685 (insert_type): Likewise.
4686 (insert_type_address_space): Rename from push_type_address_space.
4687 Insert tp_space_identifier.
4688 * c-exp.y (ptr_operator): New production.
4689 (abs_decl): Use ptr_operator.
4690 (space_identifier): Call insert_type_address_space.
4691 (ptype): Don't use const_or_volatile_or_space_identifier.
4692 (const_or_volatile_noopt): Call insert_type.
4693 (conversion_type_id, conversion_declarator): New productions.
4694 (operator): Use conversion_type_id.
4695
6ac9ef80
DE
46962012-06-18 Doug Evans <dje@google.com>
4697
422d65e7
DE
4698 * symtab.h (minimal_symbol): New member created_by_gdb.
4699 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4700 created by gdb.
4701 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4702 (search_symbols): Call it instead of lookup_symbol.
4703 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4704
49f6c839
DE
4705 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4706 Adjust address for DW_OP_GNU_addr_index.
4707 * dwarf2expr.h (dwarf_expr_context): Update comment.
4708 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4709 all callers updated. Handle TLS vars described with
4710 DW_OP_GNU_const_index.
4711 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4712 and DW_OP_GNU_const_index.
4713 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4714
6ac9ef80
DE
4715 * block.c (find_block_in_blockvector): Make explicit the fact that we
4716 ignore GLOBAL_BLOCK.
4717
4cd18215
TT
47182012-06-18 Tom Tromey <tromey@redhat.com>
4719
4720 * c-exp.y (operator): Remove trailing space after "delete" and
4721 "delete[]".
4722
a9b8d892
JK
47232012-06-18 Mark Kettenis <kettenis@gnu.org>
4724 Jan Kratochvil <jan.kratochvil@redhat.com>
4725
4726 Switch i386 and derived targets to ON_STACK.
4727 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4728 (amd64_dicos_init_abi): Remove its installment.
4729 * dicos-tdep.c (dicos_init_abi): Remove the
4730 set_gdbarch_call_dummy_location call. Update the comment here.
4731 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4732 (i386_dicos_init_abi): Remove its installment.
4733 * i386-tdep.c (i386_push_dummy_code): New function.
4734 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4735 i386_push_dummy_code.
4736
e2e4d78b
JK
47372012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4738
4739 Remove stale dummy frames.
4740 * breakpoint.c: Include dummy-frame.h.
4741 (longjmp_breakpoint_ops): New variable.
4742 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4743 bp_longjmp_call_dummy.
4744 (bpstat_what, bptype_string, print_one_breakpoint_location)
4745 (init_bp_location): Support bp_longjmp_call_dummy.
4746 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4747 (set_longjmp_breakpoint_for_call_dummy)
4748 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4749 functions.
4750 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4751 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4752 FIXME comment and extend the other comment for bp_call_dummy.
4753 (set_longjmp_breakpoint_for_call_dummy)
4754 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4755 * dummy-frame.c: Include gdbthread.h.
4756 (pop_dummy_frame_bpt): New function.
4757 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4758 (dummy_frame_discard): New function.
4759 (cleanup_dummy_frames): Update the comment about longjmps.
4760 * dummy-frame.h (dummy_frame_discard): New declaration.
4761 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4762 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4763 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4764 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4765 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4766 keep_going if IS_LONGJMP and there is no other reason to stop.
4767
09d5912c
TT
47682012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4769
4770 * remote-sim.c (sim_command_completer): Initialize
4771 variable 'result'.
4772
1788b2d3
JK
47732012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4776 * dwarf2loc.c (call_site_parameter_matches): Support
4777 CALL_SITE_PARAMETER_PARAM_OFFSET.
4778 (needs_dwarf_reg_entry_value): Push stub value.
4779 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4780 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4781 * gdbtypes.h (enum call_site_parameter_kind): New item
4782 CALL_SITE_PARAMETER_PARAM_OFFSET.
4783 (struct call_site.parameter.u): New field param_offset.
4784
24c5c679
JK
47852012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4786
4787 Code cleanup: Generalize call_site.parameter key.
4788 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4789 variable dwarf_reg. New variable kind_u. Update parameters to
4790 push_dwarf_reg_entry_value.
4791 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4792 * dwarf2expr.h (enum call_site_parameter_kind)
4793 (union call_site_parameter_u): Forward declarations.
4794 (struct dwarf_expr_context_funcs): Update parameters and their
4795 description for push_dwarf_reg_entry_value.
4796 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4797 * dwarf2loc.c (call_site_parameter_matches): New function.
4798 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4799 description. Use call_site_parameter_matches.
4800 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4801 Update parameters and their description.
4802 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4803 New variable kind_u. Adjust the caller for updated parameters.
4804 (needs_dwarf_reg_entry_value): Update parameters.
4805 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4806 instead of attr. Update for the changed fields of struct
4807 call_site_parameter.
4808 * gdbtypes.h: Include dwarf2expr.h.
4809 (enum call_site_parameter_kind): New.
4810 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4811 fb_offset into new union u.
4812
ac142d96
L
48132012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4814
4815 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4816 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4817 for x32.
4818
ba224c70
L
48192012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4820
4821 * amd64-linux-nat.c (compat_x32_clock_t): New.
4822 (compat_x32_siginfo_t): Likewise.
4823 (compat_x32_siginfo_from_siginfo): Likewise.
4824 (siginfo_from_compat_x32_siginfo): Likewise.
4825 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4826 and siginfo_from_compat_x32_siginfo for x32.
4827
7ecbc825
HZ
48282012-06-15 Hui Zhu <hui_zhu@mentor.com>
4829
4830 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4831
233dfcf0
L
48322012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4833
4834 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4835 instead of gdbarch_ptr_bit.
4836 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4837 (amd64_supply_native_gregset): Likewise.
4838 (amd64_collect_native_gregset): Likewise.
4839 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4840 (amd64_supply_xsave): Likewise.
4841 (amd64_collect_fxsave): Likewise.
4842 (amd64_collect_xsave): Likewise.
4843
6da38f42
L
48442012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4845
4846 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4847 (amd64_linux_read_description): Check DS segment register for
4848 x32 process.
4849
663b969e
TT
48502012-06-15 Tom Tromey <tromey@redhat.com>
4851
4852 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4853 init_cutu_and_read_dies.
4854
d6f05027
IS
48552012-06-15 Iain Sandoe <iain@codesourcery.com>
4856
4857 * MAINTAINERS (Write After Approval): Add myself to the list.
4858
6598ed07
TT
48592012-06-15 Tom Tromey <tromey@redhat.com>
4860
4861 * valops.c (value_find_oload_method_list): Now static.
4862 * value.h (value_find_oload_method_list): Don't declare.
4863
2b214ea6
TT
48642012-06-15 Tom Tromey <tromey@redhat.com>
4865
4866 * valops.c (find_overload_match): Use value_ind.
4867
a210c238
MR
48682012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4869
4870 * infrun.c (handle_inferior_event): Correct indentation.
4871
3771a44c
DE
48722012-06-14 Doug Evans <dje@google.com>
4873
4874 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4875 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4876 All uses updated.
4877 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4878 updated. Handle DEBUG_LOC_START_LENGTH.
4879 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4880 (loclist_describe_location): Ditto.
4881
1c5a993e
MR
48822012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4883
4884 PR backtrace/13866
4885 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4886 after hiding inline functions.
4887
0b155465
JB
48882012-06-13 Joel Brobecker <brobecker@adacore.com>
4889
4890 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4891 _initialize_inf_ttrace.
4892
45717bac
JB
48932012-06-13 Joel Brobecker <brobecker@adacore.com>
4894
4895 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4896 _initialize_hppa_hpux_nat.
4897
34370865
JB
48982012-06-13 Joel Brobecker <brobecker@adacore.com>
4899
4900 * remote-sim.c (sim_command_completer): Change type of return
4901 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4902
284c5a60
MK
49032012-06-13 Mark Kettenis <kettenis@gnu.org>
4904 Jan Kratochvil <jan.kratochvil@redhat.com>
4905
4906 PR tdep/14222
4907 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4908 stack on a 16-byte boundary.
4909
2535757a
TT
49102012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4911
4912 * jit.c (finalize_symtab): Set function's return type to 'void' by
4913 default.
4914
fff4548b
MK
49152012-06-13 Mark Kettenis <kettenis@gnu.org>
4916 H.J. Lu <hongjiu.lu@intel.com>
4917
5a83521a
MK
4918 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4919 Move bits common to both the classic LP64 and the new x32 ILP32
4920 ABI here.
4921 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4922 (amd64_x32_linux_init_abi): New function.
4923 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4924 subtype.
4925
fff4548b
MK
4926 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4927 * i386-tdep.c (i386_pseudo_register_name): Make public.
4928 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4929 * amd64-tdep.c (amd64_dword_names): Add "eip".
4930 (amd64_x32_pseudo_register_type): New function
4931 (amd64_x32_init_abi): New function.
4932
dd80ea3c
JK
49332012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4934
4935 PR build/14003
4936 * inferior.h (struct inferior_suspend_state): Comment out.
4937 (struct inferior): Comment out the field suspend.
4938 * infrun.c (struct infcall_suspend_state): Comment out the field
4939 inferior_suspend.
4940 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4941 out its assignment.
4942
50af5481
JK
49432012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4946 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4947 function comment. Return ERROR for unresolved cases. Implement
4948 returning proper NAME.
4949 (yylex): Accept also NAME from classify_inner_name.
4950 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4951 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4952 LOC_TYPEDEF type.
4953 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4954
d55637df
TT
49552012-06-13 Tom Tromey <tromey@redhat.com>
4956
4957 * breakpoint.c (condition_completer): New function.
4958 (_initialize_breakpoint): Use it.
4959 * value.c (complete_internalvar): New function.
4960 * value.h (complete_internalvar): Declare.
4961
49c4e619
TT
49622012-06-13 Tom Tromey <tromey@redhat.com>
4963
4964 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4965 * breakpoint.c (catch_syscall_completer): Return a VEC.
4966 * cli/cli-cmds.c (complete_command): Update.
4967 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4968 (complete_on_enum): Likewise.
4969 * command.h: Include gdb_vecs.h.
4970 (completer_ftype): Change return type.
4971 (complete_on_cmdlist, complete_on_enum): Likewise.
4972 * completer.c (noop_completer, filename_completer)
4973 (location_completer): Return a VEC.
4974 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4975 to a VEC.
4976 (expression_completer, complete_line_internal, complete_line)
4977 (command_completer): Return a VEC.
4978 (gdb_completion_word_break_characters, line_completion_function):
4979 Update.
4980 * completer.h: Include gdb_vecs.h.
4981 (complete_line, noop_completer, filename_completer)
4982 (expression_completer, location_completer, command_completer):
4983 Update.
4984 * f-lang.c (f_word_break_characters): Return a VEC.
4985 * interps.c (interpreter_completer): Return a VEC.
4986 * language.h (struct language_defn)
4987 <la_make_symbol_completion_list>: Return a VEC.
4988 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4989 * symtab.c (free_completion_list): Take a VEC.
4990 (return_val_size, return_val_index): Remove.
4991 (return_val): Now a VEC.
4992 (completion_list_add_name): Update.
4993 (default_make_symbol_completion_list_break_on)
4994 (default_make_symbol_completion_list, make_symbol_completion_list)
4995 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4996 Return a VEC.
4997 (add_filename_to_list): Update.
4998 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4999 <list>: Now a VEC.
5000 (maybe_add_partial_symtab_filename): Update.
5001 (make_source_files_completion_list): Return a VEC.
5002 * symtab.h (default_make_symbol_completion_list_break_on)
5003 (default_make_symbol_completion_list, make_symbol_completion_list)
5004 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5005 (make_source_files_completion_list): Update.
5006
625e8578
TT
50072012-06-13 Tom Tromey <tromey@redhat.com>
5008
5009 * breakpoint.c (add_catch_command): Use completer_ftype.
5010 * breakpoint.h: Include command.h.
5011 (add_catch_command): Use completer_ftype.
5012 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5013 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5014 Use completer_ftype.
5015 * command.h (completer_ftype): New typedef.
5016 (set_cmd_completer): Use it.
5017 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5018 completer_ftype.
5019
5eb3b062
PA
50202012-06-13 Pedro Alves <palves@redhat.com>
5021
5022 Partial revert of previous change.
5023
5024 * serial.c (scb_base): New global.
5025 (serial_for_fd): New.
5026 (serial_open, serial_fdopen_ops): Link new serial in open serials
5027 chain.
5028 (do_serial_close): Unlink serial from the open serials chain.
5029
8b3ee56d
PA
50302012-06-12 Pedro Alves <palves@redhat.com>
5031
5032 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5033 threads here.
5034 (prepare_for_detach): No longer context switch here in non-stop
5035 mode.
5036 (fetch_inferior_event): Ditto.
5037 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5038 to the event thread before removing breakpoints. Switch to the
5039 event thread before inserting breakpoints and resuming.
5040 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5041 event thread before resuming.
5042 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5043 Switch to the event thread before removing breakpoints.
5044
5d60742e
EZ
50452012-06-12 Eli Zaretskii <eliz@gnu.org>
5046
5047 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5048 special characters correctly for the Windows shells. See
5049 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5050 report.
5051 [!__MINGW32__]: Remove extra double quote character from special
5052 characters.
5053
a6feecf7
SS
50542012-06-11 Stan Shebs <stan@codesourcery.com>
5055
5056 * ui-out.h: Remove #if 0 declarations.
5057 * ui-out.c: Remove #if 0 functions.
5058
ddefb60f
PA
50592012-06-11 Pedro Alves <palves@redhat.com>
5060
5061 * ser-base.c (run_async_handler_and_reschedule): New.
5062 (fd_event, push_event): Use it.
5063 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5064 reference count to 1.
5065 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5066 instead of xfree.
5067 (serial_is_open, serial_ref, serial_unref): New.
5068 * serial.h (serial_open): Adjust comment.
5069 (serial_is_open): Declare.
5070 (serial_close): Adjust comment.
5071 (serial_ref, serial_unref) Declare.
5072 (struct serial): New field 'refcnt'.
5073
d5ad6aa5
PA
50742012-06-11 Pedro Alves <palves@redhat.com>
5075
5076 Remove #if 0'd "connect" command, and unnecessary associated
5077 refcounting and serial reuse bits.
5078
5079 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5080 * serial.c (last_serial_opened): Delete.
5081 (scb_base): Delete.
5082 (serial_open): Adjust.
5083 (serial_for_fd): Delete.
5084 (serial_fdopen_ops, do_serial_close): Adjust.
5085 (serial_fdopen_ops): Adjust.
5086
318aa544
PA
50872012-06-11 Pedro Alves <palves@redhat.com>
5088
5089 * serial.c (do_serial_close): Remove early return when SCB is
5090 null.
5091
07261596
TT
50922012-06-11 Tom Tromey <tromey@redhat.com>
5093
5094 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5095
cc80f267
JK
50962012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5097
5098 Fix regression by the "ambiguous linespec" series.
5099 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5100 get_last_displayed_symtab and get_last_displayed_line and depending
5101 on CURSAL.
5102
356d9f9d
TT
51032012-06-11 Tom Tromey <tromey@redhat.com>
5104
5105 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5106 (dw2_find_symbol_file): Use it.
5107
232b8704
ME
51082012-06-11 Michael Eager <eager@eagercon.com>
5109
5110 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5111 * mips-linux-tdep.h (mips_signals): New
5112
e81a37f7
TT
51132012-06-11 Tom Tromey <tromey@redhat.com>
5114
5115 * infrun.c (handle_inferior_event)
5116 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5117 breakpoint.
5118 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5119 exception logic in all cases. Update comments.
5120 (insert_longjmp_resume_breakpoint): Set the exception resume
5121 breakpoint.
5122
2e81047f
MR
51232012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5124
5125 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5126
4e32eda7
SCR
51272012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5128
5129 * valarith.c (binop_types_user_defined_p): Fix a typo.
5130
18648a37 51312012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5132 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5133
5134 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5135 * arch-utils.h: Declare.
5136 * gdbarch.sh: Add return_in_first_hidden_param_p.
5137 * gdbarch.c, gdbarch.h: Regenerated.
5138 * infcall.c (call_function_by_hand): Call
5139 gdbarch_return_in_first_hidden_param_p instead of
5140 language_pass_by_reference.
5141
5142 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5143 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5144 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5145 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5146 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5147 `cplus_return_struct_by_reference'.
5148 (tic6x_return_value): Handle language cplusplus.
5149 (tic6x_return_in_first_hidden_param_p): New.
5150 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5151
034e5797
DE
51522012-06-07 Doug Evans <dje@google.com>
5153
5154 * dwarf2read.c (dwarf2_cu): Add comment.
5155
6a00aa1e
MR
51562012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5157
5158 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5159 variable.
5160 (mips_eabi_push_dummy_call): Likewise.
5161 (mips_n32n64_push_dummy_call): Likewise.
5162 (mips_o32_push_dummy_call): Likewise.
5163 (mips_o64_push_dummy_call): Likewise.
5164
eaa05d59
MR
51652012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5166
5167 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5168
de13fcf2
MR
51692012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5170
5171 * mips-tdep.c (mips_pseudo_register_type): Use
5172 mips_float_register_p.
5173
c3a01a22
PA
51742012-06-06 Pedro Alves <palves@redhat.com>
5175
5176 * infrun.c (handle_inferior_event): Remove calls to
5177 reinit_frame_cache that follow a context_switch call.
5178
d25f45d9
PA
51792012-06-06 Pedro Alves <palves@redhat.com>
5180
5181 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5182 context_switch and remove stale comment.
5183
359f5fe6
PA
51842012-06-06 Pedro Alves <palves@redhat.com>
5185
5186 * infrun.c (struct execution_control_state): Remove
5187 `new_thread_event' field.
5188 (handle_inferior_event): Simplify new threads handling; don't
5189 resume the inferior if we find a new thread.
5190
2d4c29c5
TS
51912012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5192
5193 * NEWS: Document the deprecation of SH's 'regs' command.
5194 * inferior.h (all_registers_info): Add function declaration.
5195 * sh-tdep.c (sh_show_regs): Remove variable.
5196 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5197 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5198 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5199 (sh_show_regs_command): Remove functions.
5200 (sh_gdbarch_init): Don't set sh_show_regs.
5201 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5202 'info all-registers'.
5203 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5204 (sh64_show_regs): Remove functions.
5205 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5206
f5f1cdb6
JK
52072012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5208
5209 * configure.ac: Move development=true below AC_INIT.
5210 * configure: Regenerate.
5211
bf6309af
SS
52122012-06-05 Stan Shebs <stan@codesourcery.com>
5213
5214 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5215 gdb_stdout.
5216
45aa4659
JK
52172012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5218
5219 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5220 argument as ssize_t.
5221 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5222 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5223 * target.c (target_read_stack, target_write_memory)
5224 (target_write_raw_memory): Likewise.
5225 * target.h (target_read_stack, target_write_memory)
5226 (target_write_raw_memory): Likewise.
5227
1b162304
JK
52282012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5229
5230 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5231 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5232 * target.c (target_read_memory): Change LEN to ssize_t.
5233 * target.h (target_read_memory): Change LEN to ssize_t.
5234
8556afb4
PA
52352012-06-05 Pedro Alves <palves@redhat.com>
5236
5237 PR backtrace/13866
5238
5239 * breakpoint.c (until_break_command): Only fetch the selected
5240 frame after decode_line_1.
5241
fb139f32
PA
52422012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5243
5244 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5245 event breakpoint at _start, __start or main if a program
5246 interpreter is not found.
5247
a8e1bb34
JB
52482012-06-05 Joel Brobecker <brobecker@adacore.com>
5249
5250 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5251 Add declaration.
5252 * windows-tdep.c: #include "objfiles.h".
5253 (windows_iterate_over_objfiles_in_search_order): New function.
5254 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5255 iterate_over_objfiles_in_search_order gdbarch method to
5256 windows_iterate_over_objfiles_in_search_order.
5257 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5258
19630284
JB
52592012-06-05 Joel Brobecker <brobecker@adacore.com>
5260
5261 * gdbarch.sh: Add generation of
5262 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5263 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5264 (iterate_over_objfiles_in_search_order): New gdbarch method.
5265 * gdbarch.h, gdbarch.c: Regenerate.
5266 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5267 Add declaration.
5268 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5269 New function.
5270 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5271 out of lookup_symbol_aux_symtabs.
5272 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5273 call to lookup_symbol_aux_objfile.
5274 (struct global_sym_lookup_data): New type.
5275 (lookup_symbol_global_iterator_cb): New function.
5276 (lookup_symbol_global): Search for symbol using
5277 gdbarch_iterate_over_objfiles_in_search_order and
5278 lookup_symbol_global_iterator_cb.
5279 * findvar.c (struct minsym_lookup_data): New type.
5280 (minsym_lookup_iterator_cb): New function.
5281 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5282 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5283 and minsym_lookup_iterator_cb.
5284
67ff19f7
JB
52852012-06-05 Joel Brobecker <brobecker@adacore.com>
5286
5287 Revert the following patch:
5288 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5289 try locating the symbol in the symbol's own objfile first, before
5290 extending the search to all objfiles.
5291 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5292 out of lookup_symbol_aux_symtabs.
5293 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5294 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5295 Do not search EXCLUDE_OBJFILE.
5296 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5297 (lookup_symbol_global): Search for matches in the block's objfile
5298 first, before searching all other objfiles.
5299
ccab2054
JB
53002012-06-05 Joel Brobecker <brobecker@adacore.com>
5301
5302 * breakpoint.c (find_condition_and_thread): Stop parsing
5303 as soon as the first invalid keyword is found.
5304
e23d4a9c
JB
53052012-06-05 Joel Brobecker <brobecker@adacore.com>
5306
5307 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5308
70160166
JB
53092012-06-05 Joel Brobecker <brobecker@adacore.com>
5310
5311 * config/djgpp/djcheck.sh: Add copyright header.
5312
399501a5
JB
53132012-06-05 Joel Brobecker <brobecker@adacore.com>
5314
5315 * copyright.py (update_files, main): Fix path to update-copyright
5316 script.
5317
3770a159
JB
53182012-06-05 Joel Brobecker <brobecker@adacore.com>
5319
5320 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5321 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5322 for which a reminder to update by hand is printed.
5323
4aad0dfc
DE
53242012-06-04 Doug Evans <dje@google.com>
5325
5326 * buildsym.c (make_blockvector): Add comment.
5327
1f8cf220
PA
53282012-06-04 Pedro Alves <palves@redhat.com>
5329
5330 * arch-utils.c (default_gdb_signal_from_target): Delete.
5331 * arch-utils.h (default_gdb_signal_from_target): Delete.
5332 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5333 gdbarch_gdb_signal_from_target_p.
5334 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5335 predicate).
5336 * gdbarch.h: Regenerate.
5337 * gdbarch.c: Regenerate.
5338
86b49880
PA
53392012-06-04 Pedro Alves <palves@redhat.com>
5340
5341 * gdbarch.sh (gdb_signal_from_target): Mention that the
5342 implementation of the method must be host independent.
5343 * gdbarch.h: Regenerate.
5344
fe78531d
JK
53452012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5346
5347 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5348 parameters.
5349 (target_read_memory_bfd): New function.
5350 (symbol_file_add_from_memory): Use it.
5351
d790cf0a
DE
53522012-06-03 Doug Evans <dje@google.com>
5353
78e5175a
DE
5354 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5355 of primary symtab.
5356 (basic_lookup_transparent_type): Ditto.
5357
d790cf0a
DE
5358 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5359 (ALL_PRIMARY_SYMTABS): Use it.
5360 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5361 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5362 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5363 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5364 (basic_lookup_transparent_type): Ditto.
5365
c6e5ee5e
SDJ
53662012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5367
5368 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5369 it to optimize resolution of demangled name.
5370
a68ffae9
JK
53712012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5372
5373 * configure.ac (development): Define new variable.
5374 Call AC_CHECK_LIB for mcheck if $development.
5375 (ERROR_ON_WARNING): Enable it by default only if $development.
5376 * config.in: Regenerate.
5377 * configure: Regenerate.
5378
5299c1c4
JK
53792012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5380
5381 * target.c (target_read_memory): Make LEN argument as size_t.
5382 * target.h (target_read_memory): Likewise.
5383
53842012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5385
5386 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5387
0c56f59b
EBM
53882012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5389
5390 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5391 BookE interface for PowerPC server processors if not available
5392 in the Linux Kernel.
5393
71bdabee
KS
53942012-05-31 Keith Seitz <keiths@redhat.com>
5395
5396 * linespec.c (decode_objc): Add cleanup to free
5397 INFO.FILE_SYMTABS.
5398 (find_linespec_symbols): Add cleanup to free CLASSES.
5399 * symfile.c (find_separate_debug_file_by_debuglink): Add
5400 cleanup to free DEBUGLINK.
5401 * ui-out.c (clear_header_list): No need to check if
5402 HEADER_NEXT.COLHDR is NULL.
5403 Free HEADER_NEXT.COL_NAME.
5404
acbd605d
MGD
54052012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5406
5407 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5408 warning.
5409
65662cde
PA
54102012-05-30 Jeff Kenton <jkenton@tilera.com>
5411
5412 * configure.host (gdb_host_cpu): Handle tilegx*.
5413 (gdb_host): Handle tilegx-*-linux*.
5414 * tilegx-linux-nat.c: New file.
5415 * config/tilegx/linux.mh: New file.
5416
ade64f0e
PA
54172012-05-30 Jeff Kenton <jkenton@tilera.com>
5418
5419 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5420 tilegx-linux-tdep.o.
5421 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5422 tilegx-linux-tdep.c.
5423 * configure.tgt: Handle tilegx-*-linux*.
5424 * tilegx-tdep.h: New file.
5425 * tilegx-tdep.c: New file.
5426 * tilegx-linux-tdep.c: New file.
5427 * regformats/reg-tilegx.dat: New file.
5428
bb08bdbd
EBM
54292012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5430
5431 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5432 accounting of hw watchpoints on ppc.
5433
ebd86fb5
TJB
54342012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5435
5436 * source.c (openp): Expand tilde in path entries.
5437
0a0edcd5
DE
54382012-05-29 Doug Evans <dje@google.com>
5439
98cc87bd
DE
5440 * buildsym.c (block_compar): Fix comment.
5441 (end_symtab): Fix and clarify some comments.
5442
0a0edcd5
DE
5443 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5444 cleanup_undefined_types.
5445 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5446 All callers updated.
5447
6f0c7050
TT
54482012-05-29 Tom Tromey <tromey@redhat.com>
5449
5450 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5451 fails.
5452 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5453 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5454 fails.
5455 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5456 fails.
5457
ec95993c
TG
54582012-05-29 Tristan Gingold <gingold@adacore.com>
5459
5460 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5461 (struct darwin_info): ... New struct.
5462 (solib_darwin_pspace_data): New variable.
5463 (darwin_pspace_data_cleanup): New function.
5464 (get_darwin_info): Likewise.
5465 (darwin_dyld_version_ok, darwin_load_image_infos)
5466 (darwin_solib_get_all_image_info_addr_at_init)
5467 (darwin_solib_read_all_image_info_addr): Add info argument.
5468 Adjust code.
5469 (darwin_current_sos): Use per pspace structure.
5470 (darwin_solib_create_inferior_hook): Likewise.
5471 (darwin_clear_solib): Likewise.
5472 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5473
ae25568b
PA
54742012-05-28 Pedro Alves <palves@redhat.com>
5475
5476 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5477 block that uses them. Clear ecss before handling each event.
5478
0c5bf5a9
JK
54792012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5480
5481 * solib-svr4.c (svr4_current_sos): New comment on
5482 svr4_current_sos_via_xfer_libraries fall back.
5483
bfb05775
JK
54842012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5485
5486 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5487 it as a fallback for TYPE_IS_OPAQUE.
5488 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5489 symbols for lookup_symbol.
5490
685b1105
JK
54912012-05-24 John Steele Scott <toojays@toojays.net>
5492
5493 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5494 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5495 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5496 (check_producer): ... this new function, which also checks for ICC
5497 and caches the result.
5498 (producer_is_icc): New function.
5499 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5500 producer was ICC.
5501
22203bbf
PA
55022012-05-24 Pedro Alves <palves@redhat.com>
5503
5504 PR gdb/7205
5505
5506 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5507 (default_gdb_signal_to_target): ... this. Add comment.
5508 (default_gdb_signal_from_host): Rename to ...
5509 (default_gdb_signal_from_target): ... this. Add comment.
5510 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5511 (default_gdb_signal_to_target): ... this.
5512 (default_gdb_signal_from_host): Rename to ...
5513 (default_gdb_signal_from_target): ... this.
5514 * corelow.c (core_open): Adjust to naming change. Replace comment.
5515 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5516 (gdb_signal_from_target): ... this. Adjust to
5517 default_gdb_signal_from_host naming change. Extend comment.
5518 (gdb_signal_to_host): Rename to ...
5519 (gdb_signal_to_target): ... this. Adjust to
5520 default_gdb_signal_to_host naming change.
5521 * gdbarch.h, gdbarch.c: Renegerate.
5522
a493e3e2
PA
55232012-05-24 Pedro Alves <palves@redhat.com>
5524
5525 PR gdb/7205
5526
f782ad9b 5527 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5528
2ea28649
PA
55292012-05-24 Pedro Alves <palves@redhat.com>
5530
5531 PR gdb/7205
5532
5533 Replace target_signal with gdb_signal throughout.
5534
b09846a9
PA
55352012-05-24 Pedro Alves <palves@redhat.com>
5536
5537 PR tui/14159
5538
5539 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5540 string, instead of reusing the va_list argument.
5541
e77c107e
TT
55422012-05-24 Tom Tromey <tromey@redhat.com>
5543
5544 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5545 Remove.
5546
9fccedf7
DE
55472012-05-23 Doug Evans <dje@google.com>
5548
d50bd42b
DE
5549 * symtab.c (search_symbols): Formatting fixes.
5550 (print_symbol_info): Formatting fixes.
5551
9fccedf7
DE
5552 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5553 int64_t change to leb128 API.
5554 (read_encoded_value, decode_frame_entry_1): Ditto.
5555 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5556 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5557 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5558 (execute_stack_op): Ditto.
5559 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5560 (safe_read_uleb128, safe_read_sleb128): Ditto.
5561 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5562 (dwarf2_compile_expr_to_ax): Ditto.
5563 (locexpr_describe_location_piece): Ditto.
5564 (disassemble_dwarf_expression): Ditto.
5565 (locexpr_describe_location_1): Ditto.
5566
f3e0e960
SS
55672012-05-23 Stan Shebs <stan@codesourcery.com>
5568 Kwok Cheung Yeung <kcy@codesourcery.com>
5569
5570 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5571 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5572 (mi-cmd-info.o): New rule.
5573 * osdata.h (info_osdata_command): New declaration.
5574 * osdata.c (info_osdata_command): Change to non-static.
5575 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5576 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5577 * mi/mi-cmd-info.c: New file.
5578
c51fe631
DE
55792012-05-23 Doug Evans <dje@google.com>
5580
71cddcc1
DE
5581 * symtab.c (search_symbols): Pass NULL for file_matcher to
5582 expand_symtabs_matching if there are no files to match.
5583
c51fe631
DE
5584 * gdbtypes.c (lookup_typename): Simplify.
5585
a79378d4
PA
55862012-05-23 Pedro Alves <palves@redhat.com>
5587
5588 * arch-utils.h (default_target_signal_to_host): Delete.
5589 * arch-utils.c (default_target_signal_to_host): Delete.
5590 * gdbarch.sh (target_signal_to_host): Remove.
5591 * gdbarch.h, gdbarch.c: Regenerate.
5592
f664829e
DE
55932012-05-22 Doug Evans <dje@google.com>
5594
5595 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5596 "const gdb_byte *".
5597 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5598 (execute_cfa_program): Update to match API of leb128 functions.
5599 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5600 "const gdb_byte *".
5601 (read_unsigned_leb128, read_signed_leb128): Delete.
5602 (read_initial_length): Change type of buf argument to
5603 "const gdb_byte *".
5604 (read_encoded_value): Update to match API of leb128 functions.
5605 (decode_frame_entry): Change result to "const gdb_byte *", and
5606 similarly for "start" parameter.
5607 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5608 (dwarf2_build_frame_info): Change local frame_ptr to
5609 "const gdb_byte *".
5610 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5611 read_uleb128, read_sleb128. All callers updated.
5612 (safe_skip_leb128): New function.
5613 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5614 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5615 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5616 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5617 read_uleb128, read_sleb128.
5618 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5619 (execute_stack_op): Update to match API of leb128 functions.
5620 * dwarf2expr.h: #include "leb128.h".
5621 (read_uleb128, read_sleb128): Delete.
5622 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5623 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5624 * dwarf2loc.c (debug_loc_kind): New enum.
5625 (decode_debug_loc_addresses): New function.
5626 (decode_debug_loc_dwo_addresses): New function.
5627 (dwarf2_find_location_expression): Rewrite.
5628 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5629 (locexpr_describe_location_piece): Ditto.
5630 (disassemble_dwarf_expression): Ditto.
5631 (locexpr_describe_location_1): Ditto.
5632 (loclist_describe_location): Rewrite.
5633 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5634 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5635 (dwarf2_section_buffer_overflow_complaint): Renamed from
5636 dwarf2_macros_too_long_complaint. All callers updated.
5637 (skip_leb128): Delete.
5638 (init_cu_die_reader): Initialize reader->buffer_end.
5639 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5640 (skip_form_bytes): New arg buffer_end. All callers updated.
5641 Replace call to skip_leb128 with gdb_skip_leb128.
5642 (skip_unknown_opcode): New arg mac_end. All callers updated.
5643 (fill_in_loclist_baton): Initialize baton->from_dwo.
5644
837a1b32
MR
56452012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5646
5647 * mips-linux-nat.c (mips_linux_read_description): Use a more
5648 verbose error message.
5649
d0e64392
MR
56502012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5651
5652 * NEWS: Add MIPS/Linux DSP support.
5653 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5654 (SIGCONTEXT_DSPCTL): New macro.
5655 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5656 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5657 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5658 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5659 (N64_SIGCONTEXT_HI3): Likewise.
5660 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5661 (N64_SIGCONTEXT_LO3): Likewise.
5662 (N64_SIGCONTEXT_DSPCTL): Likewise.
5663 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5664 (mips_linux_o32_sigframe_init): Handle DSP registers.
5665 (mips_linux_n32n64_sigframe_init): Likewise.
5666
8bea7ed1
PM
56672012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5668
5669 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5670 call to abort.
5671
dab06dbe
PA
56722012-05-22 Pedro Alves <palves@redhat.com>
5673
5674 * target.h (store_waitstatus): Move declaration ...
5675 * inf-child.h (store_waitstatus): ... here.
5676 * target.c: Move inclusion of gdb_wait.h, and ...
5677 (store_waitstatus): ... this ...
5678 * inf-child.c: ... here.
5679 * linux-nat.c: Include inf-child.h.
5680 * rs6000-nat.c: Include inf-child.h.
5681 * spu-linux-nat.c: Include inf-child.h.
5682
43011e52
PM
56832012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5684
5685 * tracepoint.c (start_tracing): Add missing i18n markup.
5686 (stop_tracing, set_trace_user): Ditto.
5687 (set_trace_notes, set_trace_stop_notes): Ditto.
5688
b1af9e97
TT
56892012-05-21 Tom Tromey <tromey@redhat.com>
5690
5691 PR c++/7173:
5692 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5693 types.
5694 * value.h (value_cast_pointers): Update.
5695 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5696 (value_cast): Update.
5697 (update_search_result): New function.
5698 (do_search_struct_field): New, from search_struct_field. Check
5699 for ambiguous results.
5700 (search_struct_field): Rewrite.
5701 * infcall.c (value_arg_coerce): Update.
5702 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5703 value_cast_pointers.
5704 * ada-lang.c (ada_convert_actual): Update.
5705
e9e5e6b3
TT
57062012-05-21 Tom Tromey <tromey@redhat.com>
5707
5708 * macroexp.c (macro_stringify): Terminate the string.
5709
1564a261
JK
57102012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5711
5712 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5713 Describe it.
5714 * auto-load.c (auto_load_expand_dir_vars): New function.
5715 (auto_load_safe_path_vec_update): Use it, remove the
5716 substitute_path_component call thanks to it.
5717 (auto_load_objfile_script): Remove the debug_file_directory processing.
5718 Use auto_load_expand_dir_vars, remove the substitute_path_component
5719 call thanks to it.
5720 * configure: Regenerate.
5721 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5722 path. Escape $ also for $debugdir.
5723 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5724 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5725
a3ec0bb1
DE
57262012-05-20 Doug Evans <dje@google.com>
5727
5728 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5729 before use. Check for symtab->includes == NULL before scanning it.
5730
d467df4e
MR
57312012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5732
5733 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5734
4cc0665f
MR
57352012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5736
5737 * NEWS: Add microMIPS support and "set mips compression",
5738 "show mips compression" commands.
5739 * mips-tdep.h (mips_isa): New enum.
5740 (gdbarch_tdep): Add mips_isa.
5741 (mips_pc_is_mips16): Update prototype.
5742 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5743 * mips-tdep.c (mips_compression_mips16): New variable.
5744 (mips_compression_micromips): Likewise.
5745 (mips_compression_strings): Likewise.
5746 (mips_compression_string): Likewise.
5747 (is_mips16_isa, is_micromips_isa): New functions.
5748 (is_mips16_addr): Rename to...
5749 (is_compact_addr): ... this.
5750 (unmake_mips16_addr): Likewise to...
5751 (unmake_compact_addr): ... this.
5752 (make_mips16_addr): Likewise to...
5753 (make_compact_addr): ... this.
5754 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5755 functions.
5756 (mips_elf_make_msymbol_special): Handle microMIPS code.
5757 (msymbol_is_special): Rename to...
5758 (msymbol_is_mips16): ... this.
5759 (mips_make_symbol_special, mips_pc_is_mips16): Update
5760 accordingly.
5761 (msymbol_is_mips, msymbol_is_micromips): New functions.
5762 (mips16_to_32_reg): Rename to...
5763 (mips_reg3_to_reg): ... this.
5764 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5765 (mips_pc_isa): Likewise.
5766 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5767 code.
5768 (mips_fetch_instruction): Pass return status instead of printing
5769 an error message if requested. Handle microMIPS code. Bail out
5770 on an invalid ISA.
5771 (micromips_op): New macro.
5772 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5773 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5774 (b6s4_op, b7s3_reg): Likewise.
5775 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5776 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5777 (mips_insn_size): New function.
5778 (mips32_next_pc): Update mips_fetch_instruction call.
5779 (micromips_relative_offset7): New function.
5780 (micromips_relative_offset10): Likewise.
5781 (micromips_relative_offset16): Likewise.
5782 (micromips_pc_insn_size): Likewise.
5783 (micromips_bc1_pc): Likewise.
5784 (micromips_next_pc): Likewise.
5785 (unpack_mips16): Update mips_fetch_instruction call.
5786 (extended_mips16_next_pc): Update according to change to
5787 mips16_to_32_reg.
5788 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5789 code.
5790 (mips16_scan_prologue): Update mips_fetch_instruction call.
5791 Update according to change to mips16_to_32_reg.
5792 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5793 (mips_insn16_frame_base_sniffer): Likewise.
5794 (micromips_decode_imm9): New function.
5795 (micromips_scan_prologue): Likewise.
5796 (mips_micro_frame_cache): Likewise.
5797 (mips_micro_frame_this_id): Likewise.
5798 (mips_micro_frame_prev_register): Likewise.
5799 (mips_micro_frame_sniffer): Likewise.
5800 (mips_micro_frame_unwind): New variable.
5801 (mips_micro_frame_base_address): New function.
5802 (mips_micro_frame_base): New variable.
5803 (mips_micro_frame_base_sniffer): New function.
5804 (mips32_scan_prologue): Update mips_fetch_instruction call.
5805 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5806 rather than for MIPS16.
5807 (mips_insn32_frame_base_sniffer): Likewise.
5808 (mips_addr_bits_remove): Handle microMIPS code.
5809 (deal_with_atomic_sequence): Rename to...
5810 (mips_deal_with_atomic_sequence): ... this. Update the type
5811 of the variable used to hold an instruction. Remove the ISA bit
5812 check. Update mips_fetch_instruction call.
5813 (micromips_deal_with_atomic_sequence): New function.
5814 (deal_with_atomic_sequence): Likewise.
5815 (mips_about_to_return): Handle microMIPS code. Update
5816 mips_fetch_instruction call.
5817 (heuristic_proc_start): Check for the standard MIPS ISA rather
5818 than for MIPS16. Update mips_pc_is_mips16 and
5819 mips_fetch_instruction calls. Handle microMIPS code.
5820 (mips_push_dummy_code): Handle microMIPS code.
5821 (mips_eabi_push_dummy_call): Likewise.
5822 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5823 (mips_o64_push_dummy_call): Handle microMIPS code.
5824 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5825 (is_delayed): Remove function.
5826 (mips_single_step_through_delay): Replace the call to is_delayed
5827 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5828 Handle microMIPS code.
5829 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5830 microMIPS code.
5831 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5832 call.
5833 (micromips_in_function_epilogue_p): New function.
5834 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5835 call.
5836 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5837 Handle microMIPS.
5838 (gdb_print_insn_mips): Likewise.
5839 (mips_breakpoint_from_pc): Likewise.
5840 (mips_remote_breakpoint_from_pc): New function.
5841 (mips32_instruction_has_delay_slot): Simplify making use of the
5842 updated mips_fetch_instruction interface.
5843 (micromips_instruction_has_delay_slot): New function.
5844 (mips16_instruction_has_delay_slot): Simplify making use of the
5845 updated mips_fetch_instruction interface.
5846 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5847 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5848 calls. Handle microMIPS code.
5849 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5850 (mips_skip_trampoline_code): Handle microMIPS code.
5851 (global_mips_compression): New function.
5852 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5853 file flags. Register the microMIPS remote breakpoint handler
5854 and heuristic frame unwinder.
5855 (show_mips_compression): New function.
5856 (_initialize_mips_tdep): Add the "set mips compression" and
5857 "show mips compression" commands.
5858
22e048c9
SDJ
58592012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5860
5861 * ada-lang.c:
5862 * ada-tasks.c:
5863 * ada-varobj.c:
5864 * amd64-darwin-tdep.c:
5865 * arm-symbian-tdep.c:
5866 * arm-tdep.c:
5867 * avr-tdep.c:
5868 * ax-gdb.c:
5869 * bfin-linux-tdep.c:
5870 * breakpoint.c:
5871 * c-valprint.c:
5872 * cli/cli-cmds.c:
5873 * coffread.c:
5874 * cp-support.c:
5875 * cris-tdep.c:
5876 * dwarf2-frame-tailcall.c:
5877 * dwarf2-frame.c:
5878 * dwarf2expr.c:
5879 * dwarf2loc.c:
5880 * dwarf2read.c:
5881 * elfread.c:
5882 * eval.c:
5883 * expprint.c:
5884 * f-valprint.c:
5885 * frv-tdep.c:
5886 * h8300-tdep.c:
5887 * hppa-hpux-tdep.c:
5888 * hppa-tdep.c:
5889 * hppanbsd-tdep.c:
5890 * i386-nto-tdep.c:
5891 * i386-tdep.c:
5892 * i387-tdep.c:
5893 * ia64-tdep.c:
5894 * jit.c:
5895 * linespec.c:
5896 * linux-tdep.c:
5897 * lm32-tdep.c:
5898 * m2-valprint.c:
5899 * m32c-tdep.c:
5900 * m32r-rom.c:
5901 * m32r-tdep.c:
5902 * m68k-tdep.c:
5903 * m68klinux-tdep.c:
5904 * mi/mi-main.c:
5905 * microblaze-tdep.c:
5906 * mips-linux-tdep.c:
5907 * mips-tdep.c:
5908 * mn10300-tdep.c:
5909 * p-valprint.c:
5910 * parse.c:
5911 * ppc-linux-tdep.c:
5912 * ppc-sysv-tdep.c:
5913 * printcmd.c:
5914 * python/py-finishbreakpoint.c:
5915 * python/py-inferior.c:
5916 * python/py-infthread.c:
5917 * python/py-type.c:
5918 * python/python.c:
5919 * remote-fileio.c:
5920 * remote-m32r-sdi.c:
5921 * remote-mips.c:
5922 * reverse.c:
5923 * rl78-tdep.c:
5924 * rs6000-aix-tdep.c:
5925 * rs6000-tdep.c:
5926 * s390-tdep.c:
5927 * score-tdep.c:
5928 * sh64-tdep.c:
5929 * skip.c:
5930 * solib-darwin.c:
5931 * solib-dsbt.c:
5932 * solib-frv.c:
5933 * sparc-tdep.c:
5934 * spu-multiarch.c:
5935 * spu-tdep.c:
5936 * stack.c:
5937 * symfile.c:
5938 * symtab.c:
5939 * tic6x-tdep.c:
5940 * tracepoint.c:
5941 * v850-tdep.c:
5942 * valarith.c:
5943 * valprint.c:
5944 * value.c:
5945 * xcoffread.c:
5946 * xtensa-tdep.c:
5947 * ada-lang.c:
5948 * ada-tasks.c:
5949 * ada-varobj.c:
5950 * amd64-darwin-tdep.c:
5951 * arm-symbian-tdep.c:
5952 * arm-tdep.c: Delete unused variables.
5953
aff139ff
JK
59542012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5955
5956 Rename $ddir to $datadir.
5957 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5958 * auto-load.c (auto_load_safe_path_vec_update)
5959 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5960 * configure: Regenerate.
5961 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5962 Likewise. Remove the 'use $ddir' help string.
5963
f7bfa992
JK
59642012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5965
5966 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5967 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5968
9cb709b6
TT
59692012-05-18 Tom Tromey <tromey@redhat.com>
5970
5971 PR exp/13907:
5972 * valprint.h (struct value_print_options) <symbol_print>: New
5973 field.
5974 * valprint.c (user_print_options): Add default for symbol_print.
5975 (show_symbol_print): New function.
5976 (generic_val_print): Respect symbol_print.
5977 (_initialize_valprint): Add "print symbol" setting.
5978 * f-valprint.c (f_val_print): Respect symbol_print.
5979 * c-valprint.c (c_val_print): Respect symbol_print.
5980 * NEWS: Update.
5981 * printcmd.c (print_address_symbolic): Return int. Ignore some
5982 zero-size symbols.
5983 (print_address_demangle): Return int.
5984 * defs.h: (print_address_symbolic): Return int.
5985 * value.h (print_address_demangle): Return int.
5986
b012acdd
TT
59872012-05-18 Tom Tromey <tromey@redhat.com>
5988
5989 * valprint.c (val_print_string): Don't print leading space.
5990 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5991 print space before string or vtbl.
5992 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5993 before string.
5994 * jv-valprint.c (java_value_print): Print space before string.
5995 * go-valprint.c (print_go_string): Print space before string.
5996 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5997 space before string.
5998 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5999 space before string or vtbl.
6000 * auxv.c (fprint_target_auxv): Print space after address.
6001
1d51a733
TT
60022012-05-18 Tom Tromey <tromey@redhat.com>
6003
6004 * printcmd.c (print_address_demangle): Remove special case for 0.
6005
edf0c1b7
TT
60062012-05-18 Tom Tromey <tromey@redhat.com>
6007
6008 * printcmd.c (print_address_demangle): Add 'opts' argument.
6009 * p-valprint.c (pascal_val_print): Update.
6010 * jv-valprint.c (java_val_print): Update.
6011 * value.h: Update.
6012 * valprint.c (generic_val_print): Update.
6013 (print_function_pointer_address): Add 'options' argument. Remove
6014 'addressprint' argument. Update.
6015 * m2-valprint.c (print_unpacked_pointer): Update.
6016 * gnu-v3-abi.c (print_one_vtable): Update.
6017 (gnuv3_print_method_ptr): Update.
6018 * f-valprint.c (f_val_print): Update.
6019 * cp-valprint.c (cp_print_value_fields): Update.
6020 * valprint.h (print_function_pointer_address): Update.
6021 * c-valprint.c (c_val_print): Update.
6022
9703b513
TT
60232012-05-18 Tom Tromey <tromey@redhat.com>
6024
6025 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6026 directly corresponding to the found psymtab.
6027 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6028 (dw2_find_pc_sect_symtab): Use it.
6029 * block.h (blockvector_contains_pc): Declare.
6030 * block.c (find_block_in_blockvector): New function.
6031 (blockvector_for_pc_sect): Use it.
6032 (blockvector_contains_pc): New function.
6033
5a439849
MR
60342012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6035
6036 * mips-tdep.h (mips_write_pc): New prototype.
6037 * mips-tdep.c (mips_write_pc): Make external, add description.
6038 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6039 add description.
6040
8376de04
MR
60412012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6042
6043 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6044 mips_regnum->pc.
6045 (mips_unwind_pc, mips_write_pc): Likewise.
6046 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6047 gdbarch_read_pc.
6048
d3581e61
JB
60492012-05-17 Joel Brobecker <brobecker@adacore.com>
6050
6051 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6052 proc_warn, proc_error, proc_get_status, proc_flags,
6053 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6054 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6055 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6056 proc_stop_process, proc_wait_for_stop, proc_run_process,
6057 proc_set_traced_signals, proc_set_traced_faults,
6058 proc_set_traced_sysentry, proc_set_traced_sysexit,
6059 proc_set_held_signals, proc_get_held_signals,
6060 proc_get_traced_signals, proc_get_traced_faults,
6061 proc_get_traced_sysentry, proc_get_traced_sysexit,
6062 proc_clear_current_fault, proc_set_current_signal,
6063 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6064 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6065 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6066 proc_get_current_thread, proc_get_current_thread,
6067 proc_get_current_thread, proc_update_threads,
6068 proc_update_threads, proc_update_threads, proc_update_threads,
6069 proc_iterate_over_threads, procfs_find_new_threads,
6070 procfs_pid_to_str): Make static. Remove advance declaration.
6071 (proc_cursig): Make static. Conditionalized defintion on
6072 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6073 (proc_syscall, proc_set_kill_on_last_close,
6074 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6075 proc_get_pending_signals, proc_get_signal_actions,
6076 proc_trace_signal, proc_ignore_signal): Delete.
6077
81b9b86e
SDJ
60782012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6079
6080 * coffread.c (cs_section_address): Passing proper argument for
6081 `bfd_get_section_vma'.
6082 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6083 `bfd_get_section_flags'.
6084 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6085 `bfd_get_section_vma'.
6086
abc9d0dc
TT
60872012-05-16 Tom Tromey <tromey@redhat.com>
6088
6089 PR macros/13205:
6090 * macrotab.h: (macro_define_special): Declare.
6091 (enum macro_special_kind): New.
6092 (struct macro_definition) <argc, replacement>: Update comments.
6093 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6094 (macro_define_object_internal): New function.
6095 (macro_define_object): Use it.
6096 (macro_define_special): New function.
6097 (fixup_definition): New function.
6098 (macro_lookup_definition, foreach_macro_in_scope)
6099 (foreach_macro): Use fixup_definition.
6100 * macroexp.h (macro_stringify): Declare.
6101 * macroexp.c (free_buffer_return_text): New function.
6102 (stringify): Constify "arg".
6103 (macro_stringify): New function.
6104 * dwarf2read.c (macro_start_file): Call macro_define_special.
6105
6a3a010b 61062012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6107 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6108
6109 * breakpoint.h (bp_location): Add related_address member.
6110 * inferior.h (get_return_value): Take a pointer to struct value
6111 instead of struct type for the function requested.
6112 * value.h (using_struct_return): Likewise.
6113 * gdbarch.sh (return_value): Take a pointer to struct value
6114 instead of struct type for the function requested.
6115 * breakpoint.c (set_breakpoint_location_function): Initialize
6116 related_address for bp_gnu_ifunc_resolver breakpoints.
6117 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6118 requested function's address to gdbarch_return_value.
6119 * eval.c (evaluate_subexp_standard): Pass the requested
6120 function's address to using_struct_return.
6121 * infcall.c (call_function_by_hand): Pass the requested
6122 function's address to using_struct_return and
6123 gdbarch_return_value.
6124 * infcmd.c (get_return_value): Take a pointer to struct value
6125 instead of struct type for the function requested.
6126 (print_return_value): Update accordingly.
6127 (finish_command_continuation): Likewise.
6128 * stack.c (return_command): Pass the requested function's
6129 address to using_struct_return and gdbarch_return_value.
6130 * value.c (using_struct_return): Take a pointer to struct value
6131 instead of struct type for the function requested. Pass the
6132 requested function's address to gdbarch_return_value.
6133 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6134 New function_value member, replacing function_type.
6135 (bpfinishpy_dealloc): Update accordingly.
6136 (bpfinishpy_pre_stop_hook): Likewise.
6137 (bpfinishpy_init): Likewise. Record the requested function's
6138 address.
6139 * mips-tdep.c (mips_fval_reg): New enum.
6140 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6141 words put in GP registers.
6142 (mips_o64_push_dummy_call): Update a comment.
6143 (mips_o32_return_value): Take a pointer to struct value instead
6144 of struct type for the function requested and use it to check if
6145 using the MIPS16 calling convention. Return the designated
6146 general purpose registers for floating-point values returned in
6147 MIPS16 mode.
6148 (mips_o64_return_value): Likewise.
6149 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6150 (ppc_sysv_abi_broken_return_value): Likewise.
6151 (ppc64_sysv_abi_return_value): Likewise.
6152 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6153 value instead of struct type for the function requested.
6154 * amd64-tdep.c (amd64_return_value): Likewise.
6155 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6156 * arm-tdep.c (arm_return_value): Likewise.
6157 * avr-tdep.c (avr_return_value): Likewise.
6158 * bfin-tdep.c (bfin_return_value): Likewise.
6159 * cris-tdep.c (cris_return_value): Likewise.
6160 * frv-tdep.c (frv_return_value): Likewise.
6161 * h8300-tdep.c (h8300_return_value): Likewise.
6162 (h8300h_return_value): Likewise.
6163 * hppa-tdep.c (hppa32_return_value): Likewise.
6164 (hppa64_return_value): Likewise.
6165 * i386-tdep.c (i386_return_value): Likewise.
6166 * ia64-tdep.c (ia64_return_value): Likewise.
6167 * iq2000-tdep.c (iq2000_return_value): Likewise.
6168 * lm32-tdep.c (lm32_return_value): Likewise.
6169 * m32c-tdep.c (m32c_return_value): Likewise.
6170 * m32r-tdep.c (m32r_return_value): Likewise.
6171 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6172 * m68k-tdep.c (m68k_return_value): Likewise.
6173 (m68k_svr4_return_value): Likewise.
6174 * m88k-tdep.c (m88k_return_value): Likewise.
6175 * mep-tdep.c (mep_return_value): Likewise.
6176 * microblaze-tdep.c (microblaze_return_value): Likewise.
6177 * mn10300-tdep.c (mn10300_return_value): Likewise.
6178 * moxie-tdep.c (moxie_return_value): Likewise.
6179 * mt-tdep.c (mt_return_value): Likewise.
6180 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6181 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6182 (ppc_sysv_abi_broken_return_value): Likewise.
6183 (ppc64_sysv_abi_return_value): Likewise.
6184 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6185 * rl78-tdep.c (rl78_return_value): Likewise.
6186 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6187 * rx-tdep.c (rx_return_value): Likewise.
6188 * s390-tdep.c (s390_return_value): Likewise.
6189 * score-tdep.c (score_return_value): Likewise.
6190 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6191 (sh_return_value_fpu): Likewise.
6192 * sh64-tdep.c (sh64_return_value): Likewise.
6193 * sparc-tdep.c (sparc32_return_value): Likewise.
6194 * sparc64-tdep.c (sparc64_return_value): Likewise.
6195 * spu-tdep.c (spu_return_value): Likewise.
6196 * tic6x-tdep.c (tic6x_return_value): Likewise.
6197 * v850-tdep.c (v850_return_value): Likewise.
6198 * vax-tdep.c (vax_return_value): Likewise.
6199 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6200 * xtensa-tdep.c (xtensa_return_value): Likewise.
6201 * gdbarch.c: Regenerate.
6202 * gdbarch.h: Regenerate.
6203
29ca12b3
TT
62042012-05-15 Tom Tromey <tromey@redhat.com>
6205
6206 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6207
588ae58c
JB
62082012-05-15 Joel Brobecker <brobecker@adacore.com>
6209
6210 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6211 of command in two error message.
6212
855a6e68
JB
62132012-05-15 Joel Brobecker <brobecker@adacore.com>
6214
6215 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6216
d634f2de
JB
62172012-05-15 Joel Brobecker <brobecker@adacore.com>
6218
6219 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6220
9cc815f5
JK
62212012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6222
6223 * NEWS (show auto-load scripts-directory): Add forgotten command.
6224
6a609e58
JK
62252012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6226
6227 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6228 parameters.
6229
ac1438b5
L
62302012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6231
6232 * amd64-tdep.c: Include features/i386/x32.c and
6233 features/i386/x32-avx.c.
6234 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6235 initialize_tdesc_x32_avx.
6236
e7e0cddf
SS
62372012-05-14 Stan Shebs <stan@codesourcery.com>
6238
6239 Add dynamic printf.
6240 * breakpoint.h (enum bptype): New type bp_dprintf.
6241 (struct breakpoint): New field extra_string.
6242 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6243 (create_breakpoint): Add extra_string arg.
6244 * breakpoint.c (dprintf_breakpoint_ops): New.
6245 (is_breakpoint): Add bp_dprintf.
6246 (bpstat_what): Add dprintf case.
6247 (bptype_string): Ditto.
6248 (print_one_breakpoint_location): Ditto.
6249 (init_bp_location): Ditto.
6250 (bkpt_print_mention): Ditto.
6251 (dprintf_style_enums): New array.
6252 (dprintf_style): New global.
6253 (dprintf_function): New global.
6254 (dprintf_channel): New global.
6255 (update_dprintf_command_list): New function.
6256 (update_dprintf_commands): New function.
6257 (init_breakpoint_sal): Add extra_string argument, handle it.
6258 (create_breakpoint_sal): Add extra_string argument.
6259 (create_breakpoints_sal): Add extra_string argument, update callers.
6260 (find_condition_and_thread): Add extra argument.
6261 (create_breakpoint): Add extra_string argument, record it.
6262 (dprintf_command): New function.
6263 (break_command_1): Add arg to create_breakpoint call.
6264 (handle_gnu_v3_exceptions): Ditto.
6265 (trace_command): Ditto.
6266 (ftrace_command): Ditto.
6267 (strace_command): Ditto.
6268 (bkpt_print_mention): Add dprintf case.
6269 (create_breakpoint_sal_default): Add extra_string argument.
6270 (_initialize_breakpoint): Add new commands.
6271 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6272 * python/py-breakpoint.c (bppy_init): Ditto.
6273 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6274
8ae38c14
MR
62752012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6276
6277 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6278
9f676e66
SCR
62792012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6280
6281 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6282 unsigned long long.
6283
7efc75aa
SCR
62842012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6285
6286 Add a new function gdb.find_pc_line to the Python API.
6287 * NEWS (Python Scripting): Add entry about the new function.
6288 * python/python.c (gdbpy_find_pc_line): New function which
6289 implements gdb.find_pc_line.
6290 (GdbMethods): Add entry for the new function.
6291
70af3797
PA
62922012-05-12 Pedro Alves <palves@redhat.com>
6293
6294 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6295 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6296
06da564e
EZ
62972012-05-12 Eli Zaretskii <eliz@gnu.org>
6298
6299 * inferior.c: Include completer.h
6300 (initialize_inferiors): Set completer of add-inferior to
6301 filename_completer.
6302
0288cee2
L
63032012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6304
6305 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6306 gdbarch_ptr_bit for x32 core dump.
6307
f6537a2c
L
63082012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6309
6310 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6311 and features/i386/x32-avx-linux.c.
6312
85d4a676
SS
63132012-05-11 Stan Shebs <stan@codesourcery.com>
6314 Kwok Cheung Yeung <kcy@codesourcery.com>
6315
6316 * NEWS: Describe new info os commands.
6317 * common/linux-osdata.c (PID_T, TIME_T): Define.
6318 (MAX_PID_T_STRLEN): New.
6319 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6320 MAX_PID_T_STRLEN.
6321 (command_from_pid): Add comment. Change to use PID_T.
6322 (commandline_from_pid): Change to use PID_T.
6323 (user_from_pid): Add comment.
6324 (get_process_owner): Add comment. Change to use PID_T and
6325 MAX_PID_T_STRLEN.
6326 (get_number_of_cpu_cores): Add comment.
6327 (get_cores_used_by_process): Add comment. Change to use PID_T and
6328 MAX_PID_T_STRLEN.
6329 (linux_xfer_osdata_processes): Change to use PID_T and
6330 MAX_PID_T_STRLEN.
6331 (compare_processes): New function.
6332 (linux_xfer_osdata_processgroups): New function.
6333 (linux_xfer_osdata_threads): Change to use PID_T.
6334 (linux_xfer_osdata_fds): New function.
6335 (format_socket_state, print_sockets): New functions.
6336 (union socket_addr): New union.
6337 (linux_xfer_osdata_isockets): New function.
6338 (time_from_time_t, group_from_gid): New functions.
6339 (linux_xfer_osdata_shm): New function.
6340 (linux_xfer_osdata_sem): New function.
6341 (linux_xfer_osdata_msg): New function.
6342 (linux_xfer_osdata_modules): New function.
6343 (osdata_table): Add new entries.
6344 * common/buffer.c (buffer_xml_printf): Add support for long and
6345 long long format specifiers.
6346
f24afd6d
L
63472012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6348
6349 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6350 (tdesc_x32_avx_linux): Likewise.
6351
7349ff92
JK
63522012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6353
6354 Implement multi-component --with-auto-load-dir.
6355 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6356 entries.
6357 (--with-auto-load-safe-path): Update the default value description.
6358 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6359 New.
6360 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6361 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6362 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6363 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6364 "set auto-load scripts-directory".
6365 * config.in: Regenerate.
6366 * configure: Regenerate.
6367 * configure.ac (--with-auto-load-dir): New configure option.
6368 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6369
6dea1fbd
JK
63702012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6371
6372 Provide $ddir substitution for --with-auto-load-safe-path.
6373 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6374 entries.
6375 * auto-load.c: Include observer.h.
6376 (auto_load_safe_path_vec_update): Call substitute_path_component for
6377 each component. New variable ddir_subst.
6378 (auto_load_gdb_datadir_changed): New function.
6379 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6380 AUTO_LOAD_SAFE_PATH. New comment.
6381 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6382 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6383 * config.in: Regenerate.
6384 * configure: Regenerate.
6385 * configure.ac (--auto-load-safe-path): Rename
6386 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6387 GDB_DATADIR/auto-load.
6388 * defs.h (substitute_path_component): New declaration.
6389 * top.c: Include observer.h.
6390 (set_gdb_datadir): New function.
6391 (init_main): Install it for "set data-directory".
6392 * utils.c (substitute_path_component): New function.
6393
b09aca3a
JK
63942012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6395
6396 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6397 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6398 DEBUG_FILE_DIRECTORY. Handle multiple components of
6399 DEBUG_FILE_DIRECTORY.
6400
95554aad
TT
64012012-05-10 Tom Tromey <tromey@redhat.com>
6402
6403 * dwarf2read.c (recursively_write_psymbols): New function.
6404 (write_psymtabs_to_index): Use it.
6405
6406 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6407 field.
6408 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6409 (load_partial_comp_unit): Update.
6410 (queue_comp_unit): Add argument 'pretend_language'.
6411 (process_queue): Update.
6412 (psymtab_to_symtab_1): Skip dependencies that have a user.
6413 (load_partial_comp_unit_reader): Give meaning to the 'data'
6414 argument.
6415 (load_full_comp_unit): Add 'pretend_language' argument.
6416 (process_full_comp_unit): Add 'pretend_language' argument. Set
6417 language on CU.
6418 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6419 Update.
6420 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6421 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6422 Update.
6423 (prepare_one_comp_unit): Add 'pretend_language' argument.
6424
6425 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6426 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6427 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6428 (dw2_do_instantiate_symtab): Check whether symtab was read in
6429 before queueing.
6430 (dw2_instantiate_symtab): Add assertion. Call
6431 process_cu_includes.
6432 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6433 (partial_symtab_p): New typedef.
6434 (set_partial_user): New function.
6435 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6436 (scan_partial_symbols): Add imported CU to imported_symtabs.
6437 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6438 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6439 (get_symtab, recursively_compute_inclusions)
6440 (compute_symtab_includes, process_cu_includes)
6441 (process_imported_unit_die): New functions.
6442 (process_die) <DW_TAG_imported_unit>: New case.
6443 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6444
6445 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6446 comment.
6447 (struct partial_die_info) <locdesc>: Remove.
6448 <d>: New field.
6449 (process_psymtab_comp_unit): Add 'read_partial' argument.
6450 Update.
6451 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6452 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6453 (add_partial_symbol): Update.
6454 (process_die): Handle DW_TAG_partial_unit.
6455 (read_file_scope): Update comment.
6456 (load_partial_dies): Handle DW_TAG_imported_unit.
6457 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6458 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6459
e871fbb9
TT
64602012-05-10 Tom Tromey <tromey@redhat.com>
6461
6462 * cc-with-dwz.sh: New file.
6463
b5b04b5b
TT
64642012-05-10 Tom Tromey <tromey@redhat.com>
6465
6466 * symtab.h (struct symtab) <includes, user>: New fields.
6467 * block.h (struct block_iterator) <d, idx, which>: New fields.
6468 * block.c (initialize_block_iterator, find_iterator_symtab)
6469 (block_iterator_step, block_iter_name_step)
6470 (block_iter_match_step): New functions.
6471 (block_iterator_first, block_iterator_next)
6472 (block_iter_name_first, block_iter_name_next)
6473 (block_iter_match_first, block_iter_match_next): Rewrite.
6474 (get_block_symtab): New function.
6475
84a146c9
TT
64762012-05-10 Tom Tromey <tromey@redhat.com>
6477
6478 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6479 set_block_symtab.
6480 * jit.c (finalize_symtab): Use allocate_global_block,
6481 set_block_symtab.
6482 * buildsym.c (finish_block_internal): New function, from old
6483 finish_block.
6484 (finish_block): Rewrite.
6485 (end_symtab): Use finish_block_internal, set_block_symtab.
6486 * block.h (struct global_block): New.
6487 (allocate_global_block, set_block_symtab): Declare.
6488 * block.c (allocate_global_block, set_block_symtab): New
6489 functions.
6490
9439a077
TT
64912012-05-10 Tom Tromey <tromey@redhat.com>
6492
6493 * psymtab.c (partial_map_expand_apply): Add assertion.
6494 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6495 (psymtab_to_symtab): Find unshared psymtab.
6496 (dump_psymtab): Print including psymtabs.
6497 (recursively_search_psymtabs): New function.
6498 (expand_symtabs_matching_via_partial): Use it.
6499 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6500 fields.
6501 (enum psymtab_search_status): New.
6502
8157b174
TT
65032012-05-10 Tom Tromey <tromey@redhat.com>
6504
6505 * tracepoint.c (scope_info): Update.
6506 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6507 (find_pc_sect_symtab, search_symbols)
6508 (default_make_symbol_completion_list_break_on)
6509 (make_file_symbol_completion_list): Update.
6510 * symmisc.c (dump_symtab_1): Update.
6511 * stack.c (print_frame_args, iterate_over_block_locals)
6512 (print_frame_labels, iterate_over_block_arg_vars): Update.
6513 * python/py-block.c (block_object) <dict>: Remove.
6514 <block>: New field.
6515 <iter>: Change type.
6516 (blpy_iter): Update.
6517 (blpy_block_syms_iternext): Update.
6518 * psymtab.c (map_block): Use block iterators.
6519 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6520 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6521 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6522 * infrun.c (check_exception_resume): Update.
6523 * cp-support.c (make_symbol_overload_list_block): Update.
6524 * coffread.c (patch_opaque_types): Update.
6525 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6526 * block.h (struct block_iterator): New.
6527 (block_iterator_first, block_iterator_next, block_iter_name_first)
6528 (block_iter_name_next, block_iter_match_first)
6529 (block_iter_match_next): Declare.
6530 (ALL_BLOCK_SYMBOLS): Redefine.
6531 * block.c (block_iterator_first, block_iterator_next)
6532 (block_iter_name_first, block_iter_name_next)
6533 (block_iter_match_first, block_iter_match_next): New functions.
6534 * ada-lang.c (ada_add_block_symbols)
6535 (ada_make_symbol_completion_list): Use block iterator.
6536
a2ca7a52
TT
65372012-05-10 Tom Tromey <tromey@redhat.com>
6538
6539 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6540 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6541 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6542 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6543 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6544 Update.
6545
64ea88dc
JB
65462012-05-10 Joel Brobecker <brobecker@adacore.com>
6547
6548 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6549 print-file-var-lib2.c, print-file-var-main.c and
6550 print-file-var.exp (located in gdb/testsuite/gdb.base).
6551
99a547d6
JB
65522012-05-10 Joel Brobecker <brobecker@adacore.com>
6553
6554 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6555 try locating the symbol in the symbol's own objfile first, before
6556 extending the search to all objfiles.
6557 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6558 out of lookup_symbol_aux_symtabs.
6559 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6560 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6561 Do not search EXCLUDE_OBJFILE.
6562 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6563 (lookup_symbol_global): Search for matches in the block's objfile
6564 first, before searching all other objfiles.
6565
0ece64fd
TG
65662012-05-10 Tristan Gingold <gingold@adacore.com>
6567
6568 * printcmd.c (set_command): Add pre/post inc/dec.
6569
3d16a105
FCE
65702012-05-09 Frank Ch. Eigler <fche@redhat.com>
6571
6572 * gdb.1: Document -ex option.
6573
2efbc0f7
JB
65742012-05-09 Joel Brobecker <brobecker@adacore.com>
6575
6576 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6577 * inferior.h (AT_SYMBOL): Delete.
6578
2c76a0c7
JB
65792012-05-09 Joel Brobecker <brobecker@adacore.com>
6580
6581 * mips-tdep.c (mips_push_dummy_code): New function.
6582 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6583 ON_STACK and install mips_push_dummy_code as our gdbarch
6584 push_dummy_code routine.
6585
9401a810
PA
65862012-05-09 Pedro Alves <palves@redhat.com>
6587
6588 * target.c (set_maintenance_target_async_permitted): Rename to ...
6589 (set_target_async_command): ... this.
6590 (show_maintenance_target_async_permitted): Rename to ...
6591 (show_target_async_command): ... this.
6592 (initialize_targets): Adjust.
6593
3929b321
DE
65942012-05-08 Doug Evans <dje@google.com>
6595
6596 * go-exp.y (classify_name): Add missing assignment of fields of
6597 yylval.ssym.
6598
c41535fd
EZ
65992012-05-08 Eli Zaretskii <eliz@gnu.org>
6600
6601 Display the ">" prompt in interactive mode while reading canned
6602 commands, even when the current interpreter is MI.
6603
6604 * interps.c (interp_set_temp): New function.
6605
6606 * interps.h (interp_set_temp): Add prototype.
6607
6608 * cli/cli-script.c (restore_interp): New cleanup function.
6609 (read_command_lines): Temporarily override the current interpreter
6610 with CLI and arrange for restoring the original one.
6611
c0749c4d
JS
66122012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6613
6614 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6615
d7333987
SDJ
66162012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6617
6618 * probe.c (parse_probes): Move conditional to check for
6619 debuginfo files from here...
6620 * stap-probe.c (stap_get_probes): ... to here.
6621
649e6d92
MK
66222012-05-07 Mark Kettenis <kettenis@gnu.org>
6623 H.J. Lu <hongjiu.lu@intel.com>
6624
6625 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6626 `movl %esp, %ebp' for the X32 ABI.
6627
f39c6ffd
TT
66282012-05-07 Tom Tromey <tromey@redhat.com>
6629
6630 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6631 get_DW_TAG_name.
6632 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6633 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6634 (dwarf_stack_op_name): Remove.
6635 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6636 (decode_locdesc): Use get_DW_OP_name.
6637 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6638 (dwarf2_compile_expr_to_ax): Likewise.
6639 (disassemble_dwarf_expression): Likewise.
6640 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6641
1e1f6591
CLT
66422012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6643
6644 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6645 (sh_linux_sigtramp_cache): New function.
6646 (sh_linux_sigreturn_init): New function.
6647 (sh_linux_rt_sigreturn_init): New function.
6648 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6649 patterns.
6650 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6651 syscall codes.
6652 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6653 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6654 (sh_linux_init_abi): Add init calls to register new tramp_frame
6655 definitions under 32-bit SH, update comments.
6656
545c08b4
PA
66572012-05-07 Pedro Alves <palves@redhat.com>
6658
daac165e
PA
6659 PR gdb/10952
6660
545c08b4
PA
6661 * amd64-linux-tdep.c: Include glibc-tdep.h.
6662 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6663 gdbarch_skip_solib_resolver callback.
6664
af2c1515
JK
66652012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6666
6667 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6668 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6669 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6670 (add_auto_load_safe_path): Change the error message.
6671 (_initialize_auto_load): Change the "safe-path" help text.
6672 * configure: Regenerate
6673 * configure.ac (--without-auto-load-safe-path): Set
6674 WITH_AUTO_LOAD_SAFE_PATH to /.
6675
1067f998
SDJ
66762012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6677
6678 * stap-probe.h: Do not include unecessary `probe.h'.
6679
45dfa85a
AM
66802012-05-05 Alan Modra <amodra@gmail.com>
6681
6682 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6683 bfd_und_section_ptr.
6684 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6685 and bfd_com_section_ptr.
6686
cf093994
JB
66872012-05-04 Joel Brobecker <brobecker@adacore.com>
6688
762ebb75 6689 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6690
d40dc7a8
JB
66912012-05-04 Joel Brobecker <brobecker@adacore.com>
6692
6693 * windows-nat.h (segment_register_p_ftype): New typedef.
6694 (windows_set_segment_register_p): Add declaration.
6695 * windows-nat.c (segment_register_p): New static global.
6696 (windows_set_segment_register_p): New function.
6697 (do_windows_fetch_inferior_registers): Add special handling
6698 for segment registers.
6699 * amd64-windows-nat.c: #include "amd64-tdep.h".
6700 (amd64_windows_segment_register_p): New function.
6701 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6702 * i386-windows-nat.c: #include "i386-tdep.h".
6703 (i386_windows_segment_register_p): New function.
6704 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6705
52b3699b
TG
67062012-05-04 Tristan Gingold <gingold@adacore.com>
6707
6708 * printcmd.c (set_command): Emit a warning if the expression is not
6709 an assignment.
6710
94c74239
JB
67112012-05-03 Joel Brobecker <brobecker@adacore.com>
6712
6713 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6714 Make static.
6715
fcf57f19
SDJ
67162012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6717
6718 * stap-probe.c (stap_is_operator): Change declaration.
6719 (stap_get_opcode): Change return value.
6720 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6721 `stap_parse_argument_1'.
6722
27d2932e
PA
67232012-05-03 Pedro Alves <pedro@codesourcery.com>
6724
6725 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6726 debug log.
6727
a20ee7a4
SCR
67282012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6729
6730 Add two new methods global_block and static_block to gdb.Symtab
6731 objects.
6732 * NEWS (Python scripting): Add entry about the new methods.
6733 * python/py-symtab.c (stpy_global_block): New function which
6734 implements the gdb.Symtab.global_block() method.
6735 (stpy_static_block): New function which implements the
6736 gdb.Symtab.static_block() method.
6737 (symtab_object_methods): Add entries for the two new methods.
6738
943cb756
DE
67392012-05-03 Doug Evans <dje@google.com>
6740
6741 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6742 files.
6743
f4644a3f
YQ
67442012-05-03 Yao Qi <yao@codesourcery.com>
6745
6746 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6747 space.
6748 (i386_process_record): Ditto.
6749
ef61f180
JB
67502012-05-02 Joel Brobecker <brobecker@adacore.com>
6751
6752 * infcall.c (unwind_on_signal_p): Make static.
6753
02f1df11
JB
67542012-05-02 Joel Brobecker <brobecker@adacore.com>
6755
6756 * sol-thread.c (solaris_pid_to_str): Make static.
6757 (_initialize_sol_thread): Add prototype.
6758
39023530
JB
67592012-05-02 Joel Brobecker <brobecker@adacore.com>
6760
6761 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6762
c6b0c501
CF
67632012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6764
6765 * MAINTAINERS: Remove myself.
6766
1ef71717
JK
67672012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6768
6769 Fix --without-auto-load-safe-path for MS-Windows host platform.
6770 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6771
b31b86a7
EZ
67722012-05-02 Eli Zaretskii <eliz@gnu.org>
6773
6774 * gdb_curses.h: Undefine KEY_EVENT before including curses
6775 headers. Move "#undef MOUSE_MOVED" before any curses header
6776 inclusion.
6777
777532fc
SDJ
67782012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6779
6780 * features/i386/i386-mmx-linux.c: Regenerate.
6781 * features/rs6000/powerpc-32.c: Likewise.
6782 * features/rs6000/powerpc-32l.c: Likewise.
6783 * features/rs6000/powerpc-403.c: Likewise.
6784 * features/rs6000/powerpc-403gc.c: Likewise.
6785 * features/rs6000/powerpc-405.c: Likewise.
6786 * features/rs6000/powerpc-505.c: Likewise.
6787 * features/rs6000/powerpc-601.c: Likewise.
6788 * features/rs6000/powerpc-602.c: Likewise.
6789 * features/rs6000/powerpc-603.c: Likewise.
6790 * features/rs6000/powerpc-604.c: Likewise.
6791 * features/rs6000/powerpc-64.c: Likewise.
6792 * features/rs6000/powerpc-64l.c: Likewise.
6793 * features/rs6000/powerpc-750.c: Likewise.
6794 * features/rs6000/powerpc-860.c: Likewise.
6795 * features/rs6000/powerpc-e500.c: Likewise.
6796 * features/rs6000/powerpc-e500l.c: Likewise.
6797 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6798 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6799 * features/rs6000/rs6000.c: Likewise.
6800
d71871bc
SDJ
68012012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6802
6803 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6804 variable.
6805 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6806 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6807 (stap_parse_argument) <e>: Likewise.
6808 (handle_stap_probe) <byte_order>: Likewise.
6809
fd820528
DE
68102012-04-30 Doug Evans <dje@google.com>
6811
6812 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6813 init_and_read_dies_worker. All callers updated.
6814 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6815 replaced with init_cutu_and_read_dies.
6816 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6817 (find_partial_die): Remove FIXME. Don't free current CU.
6818
ec3f619d 68192012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6820
6821 * contrib: New directory.
6822 * contrib/test_pubnames_and_indexes.py: New file.
6823
fceca515
DE
68242012-04-30 Doug Evans <dje@google.com>
6825
6826 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6827 All callers updated.
6828 (init_cu_die_reader): Verify the section is non-empty.
6829 (dwarf_decode_line_header): Don't dereference section->asection
6830 until we know the section is present.
6831
311fe7e1
SDJ
68322012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6833
6834 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6835 probes.
6836
5977971a
YQ
68372012-04-29 Yao Qi <yao@codesourcery.com>
6838
6839 * gdb-code-style.el: New hook gdb-markup-hook
6840 and gdb-comment-hook.
6841
dee91e82
DE
68422012-04-28 Doug Evans <dje@google.com>
6843
3019eac3
DE
6844 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6845 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6846 objfile->obfd.
6847 * symfile.h (dwarf2_debug_sections): New member addr.
6848 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6849 (ctx_no_get_addr_index): New function.
6850 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6851 (ctx_no_get_addr_index): Declare.
6852 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6853 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6854 (dwarf_expr_ctx_funcs): Update.
6855 (needs_get_addr_index): New function.
6856 (needs_frame_ctx_funcs): Update.
6857 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6858 * dwarf2read.c: #include "gdbcore.h".
6859 (dwarf2_per_objfile): New members addr, dwo_files.
6860 (dwarf2_elf_names): Add entry for addr.
6861 (struct dwo_section_names): New type.
6862 (dwo_section_names): New static global.
6863 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6864 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6865 old debug_types_section member updated to use this.
6866 Rename member debug_types_section to info_or_types_section,
6867 all uses updated.
6868 (signatured_type): Rename member type_offset to type_offset_in_tu,
6869 all uses updated. New member type_offset_in_section.
6870 (struct dwo_sections): New type.
6871 (struct dwo_unit): New type.
6872 (struct dwo_file): New type.
6873 (die_reader_specs): New member dwo_file.
6874 (dwarf2_locate_sections): Watch for .debug_addr.
6875 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6876 (dwarf2_read_section): Get bfd of section from bfd's asection,
6877 instead of objfile.
6878 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6879 (create_signatured_type_table_from_index): Initialize
6880 sig_type->info_or_types_section.
6881 (dw2_get_file_names): Statement lists for type units with DWO files
6882 live in the DWO file.
6883 (create_debug_types_hash_table): New function.
6884 (create_all_type_units): Rewrite.
6885 (init_cu_die_reader): New arg dwo_file, all callers updated.
6886 (init_and_read_dies_worker): Get section from
6887 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6888 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6889 continue reading the CU/TU from there.
6890 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6891 updated. Get section from this_cu->info_or_types_section.
6892 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6893 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6894 DW_FORM_GNU_str_index.
6895 (hash_dwo_file, eq_dwo_file): New functions.
6896 (allocate_dwo_file_hash_table): New function.
6897 (hash_dwo_unit, eq_dwo_unit): New functions.
6898 (allocate_dwo_unit_table): New function.
6899 (dwarf2_locate_dwo_sections): New function.
6900 (struct create_dwo_info_table_data): New type.
6901 (create_debug_info_hash_table_reader): New function.
6902 (create_debug_info_hash_table): New function.
6903 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6904 (lookup_dwo_file): New function.
6905 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6906 (free_dwo_file, free_dwo_file_cleanup): New functions.
6907 (free_dwo_file_from_slot, free_dwo_files): New functions.
6908 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6909 (dwarf2_record_block_ranges): Ditto.
6910 (read_partial_die): Ditto.
6911 (process_enumeration_scope): Update to use type_offset_in_section.
6912 (read_full_die_1): New function.
6913 (read_full_die): Rewrite.
6914 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6915 DW_FORM_GNU_str_index.
6916 (read_addr_index_1, read_addr_index): New functions.
6917 (read_addr_index_from_leb128): New function.
6918 (struct dwarf2_read_addr_index_data): New type.
6919 (dwarf2_read_addr_index_reader): New function.
6920 (dwarf2_read_addr_index): New function.
6921 (read_str_index): New function.
6922 (leb128_size): New function.
6923 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6924 If processing a type unit from a DWO file, get the line section
6925 from the DWO file.
6926 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6927 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6928 DW_FORM_GNU_str_index.
6929 (lookup_die_type): Check whether section offset of type's die is
6930 known before looking it up. Remove assert. Condition can
6931 legimately happen for inter-cu type references.
6932 (dwarf_attr_name): Handle Fission attributes.
6933 (dwarf_form_name): Handle Fission forms.
6934 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6935 DW_FORM_GNU_str_index.
6936 (follow_die_sig): Update to use type_offset_in_section.
6937 (decode_locdesc): New case DW_OP_GNU_addr_index.
6938 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6939 DW_FORM_GNU_str_index.
6940 (cu_debug_loc_section): New function.
6941 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6942 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6943 Free DWO files if present.
6944 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6945
dee91e82
DE
6946 Refactor DIE reading.
6947 * dwarf2read.c (dwarf2_per_objfile): Replace members
6948 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6949 (die_reader_specs): New member "die_section". Temporarily make
6950 member "buffer" non-const, pending constifying all info_ptr uses.
6951 (die_reader_func_ftype): New typedef.
6952 (dw2_get_file_names_reader): New function.
6953 (dw2_get_file_names): Rewrite.
6954 (read_and_check_type_unit_head): Rename arg type_offset to
6955 type_offset_in_tu.
6956 (create_all_type_units): Improve debugging message.
6957 Improve dummy type unit check.
6958 (init_cu_die_reader): New arg "section". All callers updated.
6959 (init_and_read_dies_worker): New function.
6960 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6961 (init_cutu_and_read_dies_no_follow): New function.
6962 (init_cutu_and_read_dies_simple): New function.
6963 (process_psymtab_comp_unit_reader): New function.
6964 (process_psymtab_comp_unit): Delete args section,
6965 is_debug_types_section. Rewrite. All callers updated.
6966 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6967 All callers updated. Rewrite.
6968 (load_partial_comp_unit_reader): New function.
6969 (load_partial_comp_unit): Rewrite.
6970 (skip_children): New arg reader. Delete args buffer, cu.
6971 All callers updated.
6972 (skip_one_die): New arg reader. Delete args buffer, cu.
6973 All callers updated.
6974 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6975 All callers updated.
6976 (load_full_comp_unit_reader): New function.
6977 (load_full_comp_unit): Rewrite.
6978 (read_comp_unit): Delete.
6979 (read_die_and_children_1): Delete, contents moved ...
6980 (read_die_and_children): ... here.
6981 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6982 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6983 All callers updated.
6984 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6985 All callers updated.
6986 (find_partial_die): Rewrite load_all_dies support.
6987 (read_attribute_value): New arg reader. Delete args abfd, cu.
6988 All callers updated.
6989 (read_attribute): New arg reader. Delete args abfd, cu.
6990 All callers updated.
6991 (load_full_type_unit): Add assert.
6992 (read_signatured_type_reader): New function.
6993 (read_signatured_type): Rewrite.
6994 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6995 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6996 All callers updated. Set per_cu->cu = NULL after freeing it.
6997 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6998 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6999 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7000 (set_die_type): Update.
7001 (get_die_type_at_offset): Update.
7002 (read_file_scope): Call prepare_one_comp_unit.
7003 (read_type_unit_scope): Ditto.
7004 (prepare_one_comp_unit): Set producer if present.
7005
72d59e0d
SDJ
70062012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7007
7008 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7009 gettext function on `error'.
7010
0fefef59
DE
70112012-04-27 Doug Evans <dje@google.com>
7012
7013 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7014 is empty.
7015
28106bc2
SDJ
70162012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7017 Tom Tromey <tromey@redhat.com>
7018
7019 * breakpoint.c (struct breakpoint_objfile_data)
7020 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7021 <exception_probes>: New fields.
7022 (free_breakpoint_probes): New function.
7023 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7024 `_Unwind_DebugHook'.
7025 (create_exception_master_breakpoint): Likewise.
7026 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7027 * infrun.c: Including necessary header files for handling SystemTap
7028 probes.
7029 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7030 via SystemTap probes.
7031 (check_exception_resume): Remove `func' argument. Handle exception
7032 unwinding breakpoint set via a SystemTap probe.
7033 (insert_exception_resume_from_probe): New function.
7034
55aa24fb
SDJ
70352012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7036 Tom Tromey <tromey@redhat.com>
7037 Jan Kratochvil <jan.kratochvil@redhat.com>
7038
7039 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7040 (COMMON_OBS): Likewise.
7041 (HFILES_NO_SRCDIR): Add `probe'.
7042 * NEWS: Mention support for static and SystemTap probes.
7043 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7044 SystemTap probes' arguments parser.
7045 * arm-linux-tdep.c: Including headers needed to perform the parsing
7046 of SystemTap probes' arguments.
7047 (arm_stap_is_single_operand): New function.
7048 (arm_stap_parse_special_token): Likewise.
7049 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7050 probes' arguments parser.
7051 * ax-gdb.c (require_rvalue): Removing static declaration.
7052 (gen_expr): Likewise.
7053 * ax-gdb.h (gen_expr): Declaring function.
7054 (require_rvalue): Likewise.
7055 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7056 (bkpt_probe_breakpoint_ops): New variable.
7057 (momentary_breakpoint_from_master): Set the `probe' value.
7058 (add_location_to_breakpoint): Likewise.
7059 (break_command_1): Using proper breakpoint_ops according to the
7060 argument passed by the user in the command line.
7061 (bkpt_probe_insert_location): New function.
7062 (bkpt_probe_remove_location): Likewise.
7063 (bkpt_probe_create_sals_from_address): Likewise.
7064 (bkpt_probe_decode_linespec): Likewise.
7065 (tracepoint_probe_create_sals_from_address): Likewise.
7066 (tracepoint_probe_decode_linespec): Likewise.
7067 (tracepoint_probe_breakpoint_ops): New variable.
7068 (trace_command): Using proper breakpoint_ops according to the
7069 argument passed by the user in the command line.
7070 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7071 static probes on breakpoints and tracepoints.
7072 * breakpoint.h (struct bp_location) <probe>: New field.
7073 * cli-utils.c (skip_spaces_const): New function.
7074 (extract_arg): Likewise.
7075 * cli-utils.h (skip_spaces_const): Likewise.
7076 (extract_arg): Likewise.
7077 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7078 * configure.ac: Append `stap-probe.o' to be generated when ELF
7079 support is present.
7080 * configure: Regenerate.
7081 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7082 * elfread.c: Include `probe.h' and `arch-utils.h'.
7083 (probe_key): New variable.
7084 (elf_get_probes): New function.
7085 (elf_get_probe_argument_count): Likewise.
7086 (elf_evaluate_probe_argument): Likewise.
7087 (elf_compile_to_ax): Likewise.
7088 (elf_symfile_relocate_probe): Likewise.
7089 (stap_probe_key_free): Likewise.
7090 (elf_probe_fns): New variable.
7091 (elf_sym_fns): Add `sym_probe_fns' value.
7092 (elf_sym_fns_lazy_psyms): Likewise.
7093 (elf_sym_fns_gdb_index): Likewise.
7094 (_initialize_elfread): Initialize objfile cache for static
7095 probes.
7096 * gdb_vecs.h (struct probe): New forward declaration.
7097 (probe_p): New VEC declaration.
7098 * gdbarch.c: Regenerate.
7099 * gdbarch.h: Regenerate.
7100 * gdbarch.sh (stap_integer_prefix): New variable.
7101 (stap_integer_suffix): Likewise.
7102 (stap_register_prefix): Likewise.
7103 (stap_register_suffix): Likewise.
7104 (stap_register_indirection_prefix): Likewise.
7105 (stap_register_indirection_suffix): Likewise.
7106 (stap_gdb_register_prefix): Likewise.
7107 (stap_gdb_register_suffix): Likewise.
7108 (stap_is_single_operand): New function.
7109 (stap_parse_special_token): Likewise.
7110 (struct stap_parse_info): Forward declaration.
7111 * i386-tdep.c: Including headers needed to perform the parsing
7112 of SystemTap probes' arguments.
7113 (i386_stap_is_single_operand): New function.
7114 (i386_stap_parse_special_token): Likewise.
7115 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7116 probes' arguments parser.
7117 * i386-tdep.h (i386_stap_is_single_operand): New function.
7118 (i386_stap_parse_special_token): Likewise.
7119 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7120 * mipsread.c (ecoff_sym_fns): Likewise.
7121 * objfiles.c (objfile_relocate1): Support relocation for static
7122 probes.
7123 * parse.c (prefixify_expression): Remove static declaration.
7124 (initialize_expout): Likewise.
7125 (reallocate_expout): Likewise.
7126 * parser-defs.h (initialize_expout): Declare function.
7127 (reallocate_expout): Likewise.
7128 (prefixify_expression): Likewise.
7129 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7130 of SystemTap probes' arguments.
7131 (ppc_stap_is_single_operand): New function.
7132 (ppc_stap_parse_special_token): Likewise.
7133 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7134 probes' arguments parser.
7135 * probe.c: New file, for generic statically defined probe support.
7136 * probe.h: Likewise.
7137 * s390-tdep.c: Including headers needed to perform the parsing of
7138 SystemTap probes' arguments.
7139 (s390_stap_is_single_operand): New function.
7140 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7141 probes' arguments parser.
7142 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7143 * stap-probe.c: New file, for SystemTap probe support.
7144 * stap-probe.h: Likewise.
7145 * symfile.h: Include `gdb_vecs.h'.
7146 (struct sym_probe_fns): New struct.
7147 (struct sym_fns) <sym_probe_fns>: New field.
7148 * symtab.c (init_sal): Initialize `probe' field.
7149 * symtab.h (struct probe): Forward declaration.
7150 (struct symtab_and_line) <probe>: New field.
7151 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7152 locations.
7153 (stop_tracing): Likewise.
7154 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7155
22d2b532
SDJ
71562012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7157 Tom Tromey <tromey@redhat.com>
7158
7159 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7160 and to compile agent expressions.
7161 * infrun.c (siginfo_make_value): New argument `ignore'.
7162 (siginfo_funcs): New struct.
7163 (_initialize_infrun): New argument when calling
7164 `create_internalvar_type_lazy'.
7165 * thread.c (thread_id_make_value): New argument `ignore'.
7166 (thread_funcs): New struct.
7167 (_initialize_thread): New argument when calling
7168 `create_internalvar_type_lazy'.
7169 * tracepoint.c (sdata_make_value): New argument `ignore'.
7170 (sdata_funcs): New struct.
7171 (_initialize_tracepoint): New argument when calling
7172 `create_internalvar_type_lazy'.
7173 * value.c (make_value): New struct.
7174 (create_internalvar_type_lazy): New argument `data'.
7175 (compile_internalvar_to_ax): New function.
7176 (value_of_internalvar): Properly handling `make_value' case.
7177 (clear_internalvar): Likewise.
7178 (show_convenience): Adding `TRY_CATCH' block.
7179 * value.h (internalvar_make_value): Delete, replace by...
7180 (struct internalvar_funcs): ... this.
7181 (create_internalvar_type_lazy) <fun>: Delete argument.
7182 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7183 (compile_internalvar_to_ax): New function.
7184 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7185 (tlb_funcs): New struct.
7186 (_initialize_windows_tdep): New argument when calling
7187 `create_internalvar_type_lazy'.
7188
91da1414
MW
71892012-04-27 Mark Wielaard <mjw@redhat.com>
7190
7191 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7192 see whether it is an address or a constant offset from DW_AT_low_pc.
7193 (dwarf2_record_block_ranges): Likewise.
7194 (read_partial_die): Likewise.
7195
4ab9d8ec
MW
71962012-04-26 Mark Wielaard <mjw@redhat.com>
7197
7198 * MAINTAINERS (Write After Approval): Add myself to the list.
7199
a0911fd0
MR
72002012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7201
7202 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7203 (proc_prettyprint_signal): Likewise.
7204 (proc_prettyprint_faultset): Likewise.
7205 (proc_prettyprint_fault): Likewise.
7206 (proc_prettyprint_actionset): Likewise.
7207 (proc_prettyprint_flags): Move to new proc-flags.c section.
7208 (proc_prettyfprint_flags): New prototype.
7209 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7210 (proc_syscall, proc_cursig): Likewise.
7211 (proc_set_kill_on_last_close): Likewise.
7212 (proc_unset_kill_on_last_close): Likewise.
7213 (proc_set_watchpoint): Make static.
7214 (proc_delete_dead_threads): Likewise.
7215 (procfs_set_watchpoint): Likewise.
7216 (_initialize_procfs): Add prototype.
7217 * proc-events.c: Include proc-utils.h.
7218 (init_syscall_table): Make static.
7219 * proc-api.c (_initialize_proc_api): Add prototype.
7220 * proc-flags.c: Include proc-utils.h.
7221
9009e1ae
MR
72222012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7223
7224 * configure.ac: Add AC_ARG_PROGRAM.
7225 * configure: Regenerate.
7226
4fae6e18
JK
72272012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7228
7229 Fix DW_AT_lower_bound defaults for DWARF-4+.
7230 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7231 high. New variable low_default_is_valid. Implement DWARF-4+
7232 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7233 no default by the DWARF standard.
7234
14132e89 72352012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7236 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7237
7238 * infrun.c (handle_inferior_event): Move the check for return
7239 trampolines ahead of the check for function trampolines.
7240 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7241 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7242 (mips_str_mips16_ret_stub): Likewise.
7243 (mips_str_call_fp_stub): Likewise.
7244 (mips_str_call_stub): Likewise.
7245 (mips_str_fn_stub): Likewise.
7246 (mips_str_pic): Likewise.
7247 (mips_in_frame_stub): New function.
7248 (mips_unwind_pc): Return the return address rather than the PC
7249 if the PC of an intermediate frame is inside a call thunk.
7250 (mips_is_stub_suffix): New function.
7251 (mips_is_stub_mode): Likewise.
7252 (mips_get_mips16_fn_stub_pc): Likewise.
7253 (mips_skip_mips16_trampoline_code): Update to handle all the
7254 currently generated stub types. Don't recurse into __fn_stub
7255 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7256 Use cooked register accesses.
7257 (mips_in_return_stub): Reintroduce function.
7258 (mips_skip_trampoline_code): Traverse trampolines recursively.
7259 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7260
518f0db5 72612012-04-26 Joel Brobecker <brobecker@adacore.com>
7262
7263 GDB 7.4.1 released.
7264
3184d3f9
JL
72652012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7266
7267 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7268 * features/arm-with-m-vfp-d16.xml: New file. Describes
7269 Cortex-M with VFPv4-sp-d16 FPU register layout.
7270 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7271 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7272 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7273 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7274 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7275
b6201d44
DE
72762012-04-25 Doug Evans <dje@google.com>
7277
7278 * cli/cli-decode.c (print_doc_line): Use stream instead of
7279 current_uiout.
7280
4e2f8df6
SDJ
72812012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7282
7283 * features/arm-with-iwmmxt.c: Regenerate.
7284 * features/arm-with-m-fpa-layout.c: Likewise.
7285 * features/arm-with-m.c: Likewise.
7286 * features/arm-with-neon.c: Likewise.
7287 * features/arm-with-vfpv2.c: Likewise.
7288 * features/arm-with-vfpv3.c: Likewise.
7289 * features/mips-dsp-linux.c: Likewise.
7290 * features/mips-linux.c: Likewise.
7291 * features/mips64-dsp-linux.c: Likewise.
7292 * features/mips64-linux.c: Likewise.
7293 * features/s390-linux32.c: Likewise.
7294 * features/s390-linux32v1.c: Likewise.
7295 * features/s390-linux32v2.c: Likewise.
7296 * features/s390-linux64.c: Likewise.
7297 * features/s390-linux64v1.c: Likewise.
7298 * features/s390-linux64v2.c: Likewise.
7299 * features/s390x-linux64.c: Likewise.
7300 * features/s390x-linux64v1.c: Likewise.
7301 * features/s390x-linux64v2.c: Likewise.
7302 * features/tic6x-c62x-linux.c: Likewise.
7303 * features/tic6x-c62x.c: Likewise.
7304 * features/tic6x-c64x-linux.c: Likewise.
7305 * features/tic6x-c64x.c: Likewise.
7306 * features/tic6x-c64xp-linux.c: Likewise.
7307 * features/tic6x-c64xp.c: Likewise.
7308 * target-descriptions.c: Only generate `field_type' and `type'
7309 variables when needed.
7310
2def3e66
JB
73112012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7312
7313 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7314
a766d390
DE
73152012-04-25 Doug Evans <dje@google.com>
7316
7317 Initial pass at Go language support.
7318 * NEWS: Mention Go.
7319 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7320 go-valprint.c.
7321 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7322 (YYFILES): Add go-exp.c.
7323 (YYOBJ): Add go-exp.o.
7324 (local-maintainer-clean): Delete go-exp.c.
7325 * defs.h (enum language): Add language_go.
7326 * dwarf2read.c: #include "go-lang.h".
7327 (fixup_go_packaging): New function.
7328 (process_full_comp_unit): Call it when processing Go CUs.
7329 (dwarf2_physname): Add Go support.
7330 (read_file_scope): Handle missing language spec for GNU Go.
7331 (set_cu_language): Handle DW_LANG_Go.
7332 * go-exp.y: New file.
7333 * go-lang.h: New file.
7334 * go-lang.c: New file.
7335 * go-typeprint.c: New file.
7336 * go-valprint.c: New file.
7337 * symtab.c: #include "go-lang.h".
7338 (symbol_set_language): Handle language_go.
7339 (symbol_find_demangled_name, symbol_set_names): Ditto.
7340 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7341
4e2af517
JM
73422012-04-24 Jim Meyering <meyering@redhat.com>
7343
7344 avoid a few strncpy-induced buffer overruns
7345 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7346 fname and psargs before trying to concatenate.
7347 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7348 "name" before applying strchr.
7349
b77b7f52
SCR
73502012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7351
7352 * CONTRIBUTE: Use unified diff instead of context diff when
7353 generating patches.
7354
6321c22a
MR
73552012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7356
7357 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7358 code. Handle JR.HB correctly.
7359
742c84f6
MR
73602012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7361
7362 * mips-tdep.c
7363 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7364 with the other MIPS16 helpers.
7365
7fc7e0c3
SDJ
73662012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7367
7368 * observer.sh: Conditionally declare `args', thus cleaning up
7369 unused instances of this variable.
7370
20388dd6
YQ
73712012-04-24 Yao Qi <yao@codesourcery.com>
7372
7373 Revert this patch to allow breakpoint always-inserted
7374 in record target.
7375 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7376 * breakpoint.c: Include record.h.
7377 (breakpoints_always_inserted_mode): Return false when the record
7378 target is in use.
20388dd6
YQ
7379
7380 * breakpoint.c (iterate_over_bp_locations): New.
7381 * breakpoint.h: Declare.
7382 New typedef walk_bp_location_callback.
7383 * record.c (record_open): Call record_init_record_breakpoints.
7384 (record_sync_record_breakpoints): New.
7385 (record_init_record_breakpoints): New.
7386 * NEWS: Mention supporting breakpoint always-inserted mode in
7387 record target.
7388
4734f50e
MK
73892012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7390
7391 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7392 any thread.
7393
c326b90e
YQ
73942012-04-24 Yao Qi <yao@codesourcery.com>
7395
7396 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7397 (is_catchpoint): ... it.
7398 (print_one_breakpoint_location): Caller update.
7399 * breakpoint.h: Update declaration.
7400
d8fb5a1e
DM
74012012-04-23 David S. Miller <davem@davemloft.net>
7402
7403 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7404
34431a2a
TT
74052012-04-23 Tom Tromey <tromey@redhat.com>
7406
7407 * buildsym.c (add_free_pendings): Remove.
7408 * buildsym.h (add_free_pendings): Remove.
7409
4568ecf9
DE
74102012-04-23 Doug Evans <dje@google.com>
7411
7412 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7413 attr.u.unsnd instead of attr.u.addr.
7414 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7415 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7416 DW_FORM_ref_udata.
7417 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7418 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7419 DW_FORM_ref_udata.
7420 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7421
dca9aa3a
MR
74222012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7423
7424 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7425 (mips_o32_return_value): Likewise.
7426 (mips_o64_return_value): Likewise.
7427
c8ea1972
PH
74282012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7429
7430 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7431 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7432 their treatment in eval.c.
c8ea1972 7433
8d1b3521
DM
74342012-04-21 David S. Miller <davem@davemloft.net>
7435
7436 * sparc-tdep.c (X_DISP10): Define.
7437 (sparc_analyze_control_transfer): Handle compare-and-branch.
7438
03145bf4
JL
74392012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7440
7441 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7442 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7443
004159a2 74442012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7445 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7446
7447 * mips-tdep.c (mips_float_register_p): New function.
7448 (mips_convert_register_float_case_p): Use mips_float_register_p.
7449 (mips_register_type): Likewise.
7450 (mips_print_register): Likewise.
7451 (print_gp_register_row): Likewise.
7452 (mips_print_registers_info): Likewise.
7453
7f0e6aae
MR
74542012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7455
7456 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7457 of mips16 symbols.
7458
bc17beea
AP
74592012-04-20 Andrew Pinski <apinski@cavium.com>
7460
7461 * MAINTAINERS (Write After Approval): Add myself to the list.
7462
1730a5a5
SDJ
74632012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7464
7465 * MAINTAINERS: Update my e-mail address.
7466
38ea300a
PA
74672012-04-20 Pedro Alves <palves@redhat.com>
7468
7469 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7470 $srcdir.
7471 * configure: Regenerate.
7472
111dfaae
SDJ
74732012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7474
7475 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7476 declaration.
7477 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7478
4fb2c64a
JK
74792012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7480
7481 Fix compilation compatibility with python-2.4
7482 * python/py-type.c (convert_field): Cast ADDRSTRING for
7483 PyObject_SetAttrString as non-const. New comment.
7484
6328eb38
TT
74852012-04-19 Tom Tromey <tromey@redhat.com>
7486
7487 * top.c (quit_target): Use all_cleanups.
7488 * main.c (captured_command_loop): Use all_cleanups.
7489 * exceptions.c (throw_exception): Use all_cleanups.
7490
c971b7fa
PA
74912012-04-19 Pedro Alves <palves@redhat.com>
7492
7493 * Makefile.in (GNULIB_BUILDDIR): New.
7494 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7495 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7496 (CLEANDIRS). Remove gnulib/import.
7497 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7498 (all-lib): Ditto.
7499 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7500 (gnulib/import/Makefile): Replace gnulib/import with
7501 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7502 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7503 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7504 acx_configure_dir.m4.
7505 * acinclude.m4: Include acx_configure_dir.m4.
7506 * acx_configure_dir.m4: New file.
7507 * aclocal.m4: Regenerate.
a09130f9
PA
7508 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7509 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7510 (GNULIB): New variable.
7511 (GNULIB_STDINT_H): Adjust.
7512 (AC_OUTPUT): Don't output gnulib/Makefile.
7513 * gdb/defs.h: Include build-gnulib/config.h.
7514 * aclocal.m4: Regenerate.
7515 * config.in: Regenerate.
7516 * configure: Regenerate.
7517
7518 * gnulib/Makefile.in: New file.
7519 * gnulib/configure.ac: New file.
7520 * gnulib/aclocal.m4: New file.
7521 * gnulib/config.in: New file.
7522 * gnulib/configure: New file.
c971b7fa
PA
7523 * gnulib/: Re-run gnulib-tool to adjust.
7524
b10faa68
DE
75252012-04-19 Doug Evans <dje@google.com>
7526
7527 * cleanups.h (struct cleanup): Move to cleanups.c.
7528 (make_cleanup_dtor_ftype): New typedef.
7529 (make_cleanup_dtor): Use it.
7530 (ALL_CLEANUPS): Replace with ...
7531 (all_cleanups): ... this. Declare. All uses updated.
7532 * cleanups.c: #include "gdb_assert.h".
7533 (sentinel_cleanup): New static global.
7534 (SENTINEL_CLEANUP): Define.
7535 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7536 (make_my_cleanup2): Assert result is non-NULL.
7537 (all_cleanups): New function.
7538 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7539 of NULL.
7540
d8c267cc
PA
75412012-04-19 Pedro Alves <palves@redhat.com>
7542
7543 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7544 Adjust paths to gnulib imported files.
7545
809277f8
PA
75462012-04-19 Pedro Alves <palves@redhat.com>
7547
7548 * gnulib/: Move whole directory ...
7549 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7550 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7551 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7552 (aclocal_m4_deps): Adjust.
7553 * aclocal.m4: Regenerate.
7554 * configure: Regenerate.
7555 * configure.ac: Adjust AC_OUTPUT output.
7556
aad9eab9
YQ
75572012-04-19 Yao Qi <yao@codesourcery.com>
7558
7559 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7560 (vec.o): New rule.
7561 * vec.c: Move it ...
7562 * common/vec.c: ... here.
7563 * vec.h: Move it ...
7564 * common/vec.h: ... here.
7565
48fe4669
YQ
75662012-04-19 Yao Qi <yao@codesourcery.com>
7567
7568 * gdb-code-style.el: New.
7569
770d76d7
PA
75702012-04-18 Pedro Alves <palves@redhat.com>
7571
7572 Update gnulib from latest git.
7573 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7574
7575 * gnulib/Makefile.am: Update.
7576 * gnulib/dummy.c: Update.
7577 * gnulib/extra/arg-nonnull.h: Update.
7578 * gnulib/extra/c++defs.h: Update.
7579 * gnulib/extra/update-copyright: Update.
7580 * gnulib/extra/warn-on-use.h: Update.
7581 * gnulib/inttypes.in.h: Update.
7582 * gnulib/m4/00gnulib.m4: Update.
7583 * gnulib/m4/extensions.m4: Update.
7584 * gnulib/m4/gnulib-cache.m4: Update.
7585 * gnulib/m4/gnulib-common.m4: Update.
7586 * gnulib/m4/gnulib-comp.m4: Update.
7587 * gnulib/m4/gnulib-tool.m4: Update.
7588 * gnulib/m4/include_next.m4: Update.
7589 * gnulib/m4/inttypes-pri.m4: Update.
7590 * gnulib/m4/inttypes.m4: Update.
7591 * gnulib/m4/longlong.m4: Update.
7592 * gnulib/m4/memchr.m4: Update.
7593 * gnulib/m4/memmem.m4: Update.
7594 * gnulib/m4/mmap-anon.m4: Update.
7595 * gnulib/m4/multiarch.m4: Update.
7596 * gnulib/m4/onceonly.m4: Update.
7597 * gnulib/m4/stddef_h.m4: Update.
7598 * gnulib/m4/stdint.m4: Update.
7599 * gnulib/m4/string_h.m4: Update.
7600 * gnulib/m4/warn-on-use.m4: Update.
7601 * gnulib/m4/wchar_h.m4: Update.
7602 * gnulib/m4/wchar_t.m4: Update.
7603 * gnulib/m4/wint_t.m4: Update.
7604 * gnulib/memchr.c: Update.
7605 * gnulib/memmem.c: Update.
7606 * gnulib/stddef.in.h: Update.
7607 * gnulib/stdint.in.h: Update.
7608 * gnulib/str-two-way.h: Update.
7609 * gnulib/string.in.h: Update.
7610 * gnulib/wchar.in.h: Update.
7611
7612 * gnulib/extra/arg-nonnull.h: Delete.
7613 * gnulib/extra/c++defs.h: Delete.
7614 * gnulib/extra/warn-on-use.h: Delete.
7615 * gnulib/m4/wchar_h.m4: Delete.
7616 * gnulib/m4/wint_t.m4: Delete.
7617 * gnulib/wchar.in.h: Delete.
7618
7619 * gnulib/extra/snippets/arg-nonnull.h: New.
7620 * gnulib/extra/snippets/c++defs.h: New.
7621 * gnulib/extra/snippets/warn-on-use.h: New.
7622
7623 * aclocal.m4: Regenerate.
7624 * config.in: Regenerate.
7625 * configure: Regenerate.
7626 * gnulib/Makefile.in: Regenerate.
7627
174e088e
PA
76282012-04-18 Pedro Alves <palves@redhat.com>
7629
7630 Reimport the update-copyright module from gnulib
7631 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7632
7633 * configure: Regenerate.
7634 * gnulib/Makefile.am: Update.
7635 * gnulib/Makefile.in: Regenerate.
7636 * gnulib/extra/update-copyright: Update.
7637 * gnulib/m4/gnulib-cache.m4: Update.
7638 * gnulib/m4/gnulib-comp.m4: Update.
7639
7f533142
JB
76402012-04-18 Tristan Gingold <gingold@adacore.com>
7641
7642 * configure.ac (aix): Put -lpthread into libs.
7643 * configure: Regenerate.
7644
001822aa
TT
76452012-04-18 Tom Tromey <tromey@redhat.com>
7646
7647 * linespec.c (convert_linespec_to_sals): Don't use
7648 SYMBOL_OBJ_SECTION.
7649 (compare_msymbols): Arguments are minsym_and_objfile, not
7650 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7651
db026a31
PA
76522012-04-18 Pedro Alves <palves@redhat.com>
7653
7654 Revert gnulib/ part of:
7655 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7656 Copyright year update in most files (performed by copyright.sh).
7657
12df843f
JK
76582012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7659
7660 Fix 64-bit constants on 32-bit hosts.
7661 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7662 from unsigned long to ULONGEST.
7663 (read_signed_leb128): Change declaration return type from long to
7664 LONGEST.
7665 (dwarf2_const_value_attr): Change declaration parameter value from long
7666 to LONGEST.
7667 (dwarf2_compute_name): Change variable value from long to LONGEST.
7668 (read_unsigned_leb128): Change return type, variable result and some
7669 casts from unsigned long to ULONGEST.
7670 (read_signed_leb128): Change return type, variable result and some
7671 casts from long to LONGEST.
7672 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7673 value from long to LONGEST.
7674 (dwarf2_const_value): Change variable value from long to LONGEST.
7675 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7676 plongest and hex_string.
7677 * symtab.h (struct general_symbol_info): Change ivalue from long to
7678 LONGEST, remove the comment.
7679 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7680 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7681
14e75d8e
JK
76822012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7683
7684 PR symtab/7259:
7685 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7686 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7687 (ada_discrete_type_low_bound): Fix function comment. Use
7688 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7689 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7690 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7691 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7692 Use TYPE_FIELD_ENUMVAL.
7693 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7694 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7695 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7696 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7697 TYPE_CODE_ENUM.
7698 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7699 * dwarf2read.c (process_enumeration_scope): Likewise.
7700 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7701 field.bitpos.
7702 (class StructMainTypePrettyPrinter): Support also
7703 FIELD_LOC_KIND_ENUMVAL.
7704 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7705 TYPE_CODE_ENUM.
7706 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7707 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7708 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7709 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7710 field enumval.
7711 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7712 accommodate enumval.
7713 (struct call_site): Adjust loc_kind to accommodate enumval.
7714 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7715 (TYPE_FIELD_ENUMVAL): New macros.
7716 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7717 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7718 TYPE_CODE_ENUM.
7719 * p-typeprint.c (pascal_type_print_base): Likewise.
7720 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7721 enumval.
7722 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7723 * python/py-type.c (convert_field): New variable addrstring. Use
7724 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7725 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7726 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7727 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7728 TYPE_CODE_ENUM.
7729 * valprint.c (generic_val_print): Likewise.
7730
380bca97
DE
77312012-04-17 Doug Evans <dje@google.com>
7732
dcc07052
DE
7733 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7734
380bca97
DE
7735 * dwarf2read.c: Whitespace fixes.
7736 (lookup_signatured_type): Tweak comment.
7737 (get_die_type_at_offset): Fix comment.
7738
ec92004f
JB
77392012-04-17 Joel Brobecker <brobecker@adacore.com>
7740
7741 * xcoffread.c (xcoff_secnum_to_sections): New function.
7742 (secnum_to_section, secnum_to_bfd_section): Reimplement
7743 using xcoff_secnum_to_sections. Rename "secnum" parameter
7744 into "n_scnum".
7745 (RECORD_MINIMAL_SYMBOL): Delete.
7746 (record_minimal_symbol): New function.
7747 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7748 by call to record_minimal_symbol and set misc_func_recorded
7749 to 1. Set last_csect_sec to the XCOFF section index instead
7750 of GDB's section_offset index. Update calls to
7751 prim_record_minimal_symbol_and_info to pass the BFD section
7752 as well.
7753
40301fb7
JB
77542012-04-17 Joel Brobecker <brobecker@adacore.com>
7755
7756 * xcoffread.c (read_xcoff_symtab): Delete variables
7757 last_csect_val and last_csect_sec and associated code.
7758
e0088cfd
DE
77592012-04-17 Doug Evans <dje@google.com>
7760
58d5e2c3
DE
7761 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7762 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7763 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7764 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7765
c27f5738
DE
7766 * cleanups.h: New file.
7767 * cleanups.c: New file.
7768 * Makefile.in (SFILES): Add cleanups.c.
7769 (HFILES_NO_SRCDIR): Add cleanups.h.
7770 (COMMON_OBS): Add cleanups.o.
7771 * defs.h (struct cleanup): Moved to cleanups.h.
7772 (do_cleanups,do_final_cleanups): Ditto.
7773 (discard_cleanups,discard_final_cleanups): Ditto
7774 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7775 (save_cleanups,save_final_cleanups): Ditto.
7776 (restore_cleanups,restore_final_cleanups): Ditto.
7777 (null_cleanup): Ditto.
7778 (make_my_cleanup,make_my_cleanup2): Ditto.
7779 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7780 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7781 (do_cleanups,do_final_cleanups): Ditto.
7782 (discard_cleanups,discard_final_cleanups): Ditto
7783 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7784 (save_cleanups,save_final_cleanups): Ditto.
7785 (restore_cleanups,restore_final_cleanups): Ditto.
7786 (null_cleanup): Ditto.
7787 (make_my_cleanup,make_my_cleanup2): Ditto.
7788 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7789
e0088cfd
DE
7790 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7791 make_my_cleanup.
7792 (make_cleanup_dyn_string_delete): Ditto.
7793 (make_cleanup_ui_file_delete): Ditto.
7794 (make_cleanup_ui_out_redirect_pop): Ditto.
7795 (make_cleanup_free_section_addr_info): Ditto.
7796 (make_cleanup_restore_integer): Ditto.
7797 (make_cleanup_unpush_target): Ditto.
7798 (make_cleanup_value_free_to_mark): Ditto.
7799 (make_cleanup_value_free): Ditto.
7800 (make_cleanup_free_so): Ditto.
7801
4dc84fd1
JK
78022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7803
7804 New option "set debug auto-load".
7805 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7806 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7807 (auto_load_safe_path_vec_update)
7808 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7809 if DEBUG_AUTO_LOAD.
7810 (file_is_auto_load_safe): New parameters debug_fmt and ....
7811 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7812 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7813 caller by explanatory string.
7814 (_initialize_auto_load): Register "set debug auto-load".
7815 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7816 and ....
7817 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7818 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7819 by explanatory string.
7820 * main.c (captured_main): Likewise.
7821 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7822 (source_section_scripts): Likewise.
7823
bccbefd2
JK
78242012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7825
7826 New option "set auto-load safe-path".
7827 * NEWS: New commands "set auto-load safe-path"
7828 and "show auto-load safe-path".
7829 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7830 (auto_load_safe_path, auto_load_safe_path_vec)
7831 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7832 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7833 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7834 (source_gdb_script_for_objfile): New variable is_safe. Call
7835 file_is_auto_load_safe. Return if it is not.
7836 (struct loaded_script): New field loaded.
7837 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7838 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7839 output "Missing" to "No".
7840 (_initialize_auto_load): New variable cmd. Initialize
7841 auto_load_safe_path. Register "set auto-load safe-path",
7842 "show auto-load safe-path" and "add-auto-load-safe-path".
7843 * auto-load.h (maybe_add_script): Add parameter loaded.
7844 (file_is_auto_load_safe): New declaration.
7845 * config.in: Regenerate.
7846 * configure: Regenerate.
7847 * configure.ac: New parameters --with-auto-load-safe-path
7848 and --without-auto-load-safe-path.
7849 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7850 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7851 * main.c (captured_main): Check file_is_auto_load_safe for
7852 LOCAL_GDBINIT.
7853 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7854 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7855 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7856 not.
7857
bf88dd68
JK
78582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7859
7860 auto-load: Implementation.
7861 * NEWS: New descriptions for "info auto-load",
7862 "info auto-load gdb-scripts", "info auto-load python-scripts",
7863 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7864 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7865 and "show auto-load-scripts". New description for "set auto-load",
7866 "show auto-load", "set auto-load gdb-scripts",
7867 "show auto-load gdb-scripts", "set auto-load python-scripts",
7868 "show auto-load python-scripts", "set auto-load local-gdbinit",
7869 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7870 "show auto-load libthread-db".
7871 * auto-load.c: Remove include python/python-internal.h. Add includes
7872 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7873 cli/cli-setshow.h.
7874 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7875 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7876 (gdbpy_global_auto_load): Rename to ...
7877 (global_auto_load): ... here.
7878 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7879 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7880 (script_language_gdb, source_gdb_script_for_objfile): New.
7881 (struct loaded_script): New field language.
7882 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7883 LANGUAGE.
7884 (maybe_add_script): Add parameter language. Drop redundant
7885 entry.full_path initialization. Initialize entry.language and
7886 (*slot)->language.
7887 (auto_load_objfile_script): Change parameter suffix to language.
7888 Remove the call of maybe_add_script.
7889 Call language->source_script_for_objfile.
7890 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7891 New.
7892 (collect_matching_scripts): Adjust it for
7893 struct collect_matching_scripts_data.
7894 (auto_load_info_scripts_pattern_nl): New variable.
7895 (info_auto_load_scripts): Rename to ...
7896 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7897 for struct collect_matching_scripts_data.
7898 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7899 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7900 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7901 (auto_load_info_cmdlist_get): New.
7902 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7903 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7904 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7905 "info auto-load local-gdbinit".
7906 * auto-load.h (struct script_language): New.
7907 (gdbpy_global_auto_load): Rename to ...
7908 (global_auto_load): ... here.
7909 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7910 (auto_load_local_gdbinit_loaded): New declarations.
7911 (maybe_add_script): New parameter language.
7912 (auto_load_objfile_script): Change parameter suffix to language.
7913 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7914 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7915 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7916 declarations.
7917 * linux-thread-db.c: Include auto-load.h and ctype.h.
7918 (auto_load_thread_db, show_auto_load_thread_db): New.
7919 (struct thread_db_info): New field filename.
7920 (delete_thread_db_info): Call xfree for FILENAME.
7921 (try_thread_db_load): Initialize FILENAME.
7922 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7923 if !AUTO_LOAD_THREAD_DB.
7924 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7925 (_initialize_thread_db): Install auto_load_thread_db
7926 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7927 as "info auto-load libthread-db".
7928 * main.c (captured_main): Rename gdbpy_global_auto_load to
7929 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7930 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7931 (print_gdb_help): Extend the help for 'local init file'.
7932 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7933 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7934 (auto_load_scripts): Rename to ...
7935 (auto_load_python_scripts): ... here, update the comment.
7936 (gdbpy_load_auto_script_for_objfile): New declaration.
7937 (show_auto_load_python_scripts, script_language_python)
7938 (gdbpy_load_auto_script_for_objfile): New.
7939 (source_section_scripts): Refactor the code.
7940 (load_auto_scripts_for_objfile): Rename to ...
7941 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7942 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7943 (info_auto_load_python_scripts): New.
7944 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7945 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7946 Register "set auto-load-scripts" as its deprecated alias. Register
7947 "info auto-load python-scripts". Register "info auto-load-scripts" as
7948 its deprecated alias.
7949 (load_auto_scripts_for_objfile): Rename to ...
7950 (gdbpy_load_auto_scripts_for_objfile): ... here.
7951 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7952 (gdbpy_load_auto_scripts_for_objfile): ... here.
7953
e2207b9a
JK
79542012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7955
7956 auto-load: Move files.
7957 * Makefile.in (SFILES): Add auto-load.c.
7958 (HFILES_NO_SRCDIR): Add auto-load.h.
7959 (COMMON_OBS): Add auto-load.o.
7960 (distclean): Change .gdbinit for gdb-gdb.gdb.
7961 * auto-load.c: New file, with parts from python/py-auto-load.c.
7962 * auto-load.h: New file, with parts from python/python.h.
7963 * configure: Regenerate.
7964 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7965 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7966 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7967 * main.c: Include auto-load.h.
7968 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7969 command.h, observer.h and progspace.h to auto-load.c. Add include
7970 auto-load.h.
7971 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7972 (struct loaded_script, auto_load_pspace_data)
7973 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7974 (hash_loaded_script_entry, eq_loaded_script_entry)
7975 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7976 (maybe_add_script): Move to auto-load.c.
7977 (source_section_scripts): Change maybe_add_script parameters passing,
7978 use script_not_found_warning_print.
7979 (clear_section_scripts, auto_load_objfile_script)
7980 (auto_load_new_objfile, loaded_script_ptr)
7981 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7982 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7983 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7984 auto_load_new_objfile and info_auto_load_scripts initizations to
7985 auto-load.c.
7986 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7987
e4ab2fad
JK
79882012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7989
7990 Code cleanup.
7991 * charset.c (find_charset_names): Remove variables ix and elt.
7992 Use free_char_ptr_vec.
7993 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7994 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7995 debugdir_end. New variable debugdir_len.
7996 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7997 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7998 declarations.
7999 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8000 and elt. Use free_char_ptr_vec.
8001 * source.c (add_path): Remove variables argv, arg and argv_index.
8002 New variables dir_vec, back_to, ix and name.
8003 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8004 make_cleanup_freeargv. Remove variable separator. Simplify the code
8005 no longer expecting DIRNAME_SEPARATOR.
8006 (openp): Remove variable p, p1 and len. New variables dir_vec,
8007 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8008 no longer expecting DIRNAME_SEPARATOR.
8009 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8010 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8011 debugdir_end.
8012 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8013 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8014 (dirnames_to_char_ptr_vec): New functions.
8015
5ee4ed9f
JK
80162012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8017
8018 Code cleanup.
8019 * source.c (add_path): Remove always true conditional 'p == 0' and
8020 unindent its code block.
8021
f41f5e61
PA
80222012-04-17 Pedro Alves <palves@redhat.com>
8023
8024 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8025 (FIELD_BITPOS_LVAL): ... this.
8026 (FIELD_BITPOS): New.
8027 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8028 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8029 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8030 SET_FIELD_BITPOS.
8031 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8032 SET_FIELD_BITPOS.
8033 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8034 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8035 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8036 SET_FIELD_BITPOS.
8037
945b3a32
JK
80382012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8039
8040 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8041 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8042 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8043 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8044 * jv-lang.c (java_link_class_type): Likewise, once.
8045 * stabsread.c (read_enum_type): Likewise.
8046
42476b70
YQ
80472012-04-16 Yao Qi <yao@codesourcery.com>
8048
8049 * common/agent.c (agent_run_command): Add one more parameter `len'.
8050 Update callers.
8051 * common/agent.h: Update declaration.
8052 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8053 Update.
8054 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8055
8264ba82
AG
80562012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8057
8058 PR mi/13393
8059 * value.c (value_actual_type): New function.
8060 * value.h (value_actual_type): New declaration.
8061 * varobj.c (update_type_if_necessary): New function.
8062 (varobj_create): Call value_actual_type instead of
8063 value_type.
8064 (install_dynamic_child): distinct changed and type changed MI variable
8065 objects.
8066 (update_dynamic_varobj_children): Updated for install_dynamic_child
8067 change. All callers updated.
a09130f9 8068 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8069 the value changed and RTTI is used to determine the type.
8070 (create_child_with_value): Call value_actual_type instead of
8071 value_type.
a09130f9 8072 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8073 specify whether the given value should be casted to enclosing type.
8074 All callers updated.
8075
55a8c076
YQ
80762012-04-14 Yao Qi <yao@codesourcery.com>
8077
8078 Import gnulib module inttypes from git
8079 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8080 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8081 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8082 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8083 * aclocal.m4, config.in, configure: Regenerated.
8084 * gnulib/Makefile.am: Update.
8085 * gnulib/Makefile.in: Update.
8086 * gnulib/m4/gnulib-cache.m4: Update.
8087 * gnulib/m4/gnulib-comp.m4: Update.
8088 * gnulib/inttypes.in.h: New.
8089 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8090 * gnulib/m4/inttypes.m4: New.
55a8c076 8091
ca7781d2
LM
80922012-04-13 Luis Machado <lgustavo@codesourcery.com>
8093
8094 * infrun.c (resume): Update PC address to the real PC after
8095 preparing to do displaced stepping.
8096
e319fa28
DE
80972012-04-12 Doug Evans <dje@google.com>
8098
8099 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8100 All callers updated.
8101
15add3f5
MK
81022012-04-12 Mark Kettenis <kettenis@gnu.org>
8103
8104 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8105
52dc124a
DE
81062012-04-12 Doug Evans <dje@google.com>
8107
0e50663e
DE
8108 * dwarf2read.c (create_all_type_units): Renamed from
8109 create_debug_types_hash_table. All callers updated.
8110
52dc124a
DE
8111 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8112 local type_sig to sig_type, type_offset to type_offset_in_tu.
8113 (hash_signatured_type): Renamed from hash_type_signature,
8114 all callers updated.
8115 (eq_signatured_type): Renamed from eq_type_signature,
8116 all callers updated.
8117 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8118 (process_enumeration_scope): Ditto.
8119 (lookup_signatured_type_at_offset): Ditto.
8120 (load_full_type_unit, read_signatured_type): Ditto.
8121
248fd3bf
YQ
81222012-04-12 Yao Qi <yao@codesourcery.com>
8123
8124 * remote.c (async_remote_interrupt): Correct function name in
8125 debug message.
8126 (async_remote_interrupt_twice): Ditto.
8127
bc3aa6c3
DE
81282012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8129
8130 * source.c (find_and_open_source): Consistently pass resulting
8131 full path through xfullpath.
8132
9e529e1d
JK
81332012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8134
8135 Provide more specific displaced-stepping memory error message.
8136 * infrun.c (displaced_step_prepare): New variable status. Call
8137 target_read_memory instead of read_memory, provide more specific
8138 error message.
8139
82e0cec1
TG
81402012-04-11 Tristan Gingold <gingold@adacore.com>
8141
8142 PR gdb/13901
8143 * darwin-nat.c (darwin_execvp): Revert previous patch.
8144
d987a266
TG
81452012-04-11 Tristan Gingold <gingold@adacore.com>
8146
8147 PR gdb/13901
8148 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8149 in case of change.
8150
016b7430
TG
81512012-04-11 Tristan Gingold <gingold@adacore.com>
8152
8153 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8154 warning.
8155
06fc020f
SCR
81562012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8157
8158 New command 'explore' which helps explore values and types in
8159 scope.
8160 * NEWS: Add an entry about the new 'explore' command.
8161 * data-directory/Makefile.in: Add gdb/command/explore.py
8162 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8163 command using the GDB Python API.
06fc020f 8164
de0919f8 81652012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8166
8167 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8168 extension in jump target calculation.
8169
de0919f8 81702012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8171
8172 * mips-tdep.c (mips32_next_pc): Handle JALX.
8173
2f26ef89
YQ
81742012-04-10 Yao Qi <yao@codesourcery.com>
8175
8176 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8177
2e505b66
YQ
81782012-04-10 Yao Qi <yao@codesourcery.com>
8179
8180 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8181 and gnulib/m4/gnulib-tool.m4.
8182
0d99eb77
DE
81832012-04-10 Doug Evans <dje@google.com>
8184
8185 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8186 (load_partial_dies): Clarify comment.
8187 (find_partial_die): Support rereading type units.
8188 Clarify CU handling, if we know offset is in CU, don't search for the
8189 containing CU. Add comment regarding memory waste.
8190
9a82b8ff
L
81912012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8192
8193 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8194 i386/x32-avx and i386/x32-avx-linux.
8195 (i386/x32-expedite): New.
8196 (i386/x32-linux-expedite): Likewise.
8197 (i386/x32-avx-expedite): Likewise.
8198 (i386/x32-avx-linux-expedite): Likewise.
8199 ($(outdir)/i386/x32.dat): Likewise.
8200 ($(outdir)/i386/x32-linux.dat): Likewise.
8201 ($(outdir)/i386/x32-avx.dat): Likewise.
8202 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8203
8204 * features/i386/x32-avx-linux.xml: New file.
8205 * features/i386/x32-avx.xml: Likewise.
8206 * features/i386/x32-core.xml: Likewise.
8207 * features/i386/x32-linux.xml: Likewise.
8208 * features/i386/x32.xml: Likewise.
8209
8210 * features/i386/x32-avx-linux.c: New. Generated.
8211 * features/i386/x32-avx.c: Likewise.
8212 * features/i386/x32-linux.c: Likewise.
8213 * features/i386/x32.c: Likewise.
8214 * regformats/i386/x32-avx-linux.dat: Likewise.
8215 * regformats/i386/x32-avx.dat: Likewise.
8216 * regformats/i386/x32-linux.dat: Likewise.
8217 * regformats/i386/x32.dat: Likewise.
8218
ee41036f
TG
82192012-04-10 Tristan Gingold <gingold@adacore.com>
8220
8221 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8222 code to kill the inferior.
8223
a7aa5b8a
MK
82242012-04-09 Mark Kettenis <kettenis@gnu.org>
8225
8226 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8227 defines.
8228 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8229 defines.
a09130f9 8230 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8231 (yyvsp): New defines.
8232 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8233 defines.
8234 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8235 defines.
8236 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8237 defines.
8238 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8239 defines.
8240 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8241 defines.
8242
fb57d452
MK
82432012-04-09 Mark Kettenis <kettenis@gnu.org>
8244
a09130f9 8245 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8246 (sparc64_store_arguments): Fix coding style.
8247
cdc7b32f
MK
82482012-04-07 Mark Kettenis <kettenis@gnu.org>
8249
8250 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8251 complex floats, adjust some related comments and tighten a related
8252 assertion.
8253 (sparc64_extract_return_value): Handle complex floats.
8254
7adf1e79
DE
82552012-04-07 Doug Evans <dje@google.com>
8256
8257 * dwarf2read.c (load_partial_dies): Change condition to assert.
8258
50f1ae7b
DE
82592012-04-06 Doug Evans <dje@google.com>
8260
8261 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8262 "mov %rsp,%rbp".
8263
55fa75c3
KB
82642012-04-05 Kevin Buettner <kevinb@redhat.com>
8265
8266 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8267 fencepost error.
8268 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8269 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8270 architecture.
8271
40e084e1
KS
82722012-04-05 Keith Seitz <keiths@redhat.com>
8273
8274 * linespec.c (decode_compound): Remove.
8275 (enum offset_relative_sign): New enum.
8276 (struct line_offset): New struct.
8277 (struct linespec): New struct.
8278 (struct linespec_state): Move file_symtabs,
8279 user_filename, and user_function into struct linespec.
8280 Make result an anonymous struct holding vectors of
8281 symbolp and minsym_and_objfile_d.
8282 Add language member.
8283 (enum ls_token_type): New enum.
8284 (linespec_keywords): New array.
8285 (struct ls_token): New struct.
8286 (struct ls_parser): New struct.
8287 (linespec_lexer_lex_number): New function.
8288 (linespec_lexer_lex_keyword): New function.
8289 (is_ada_operator): New function.
8290 (skip_quote_char): New function.
8291 (copy_token_string): New function.
8292 (is_closing_quote_enclosed): New function.
8293 (find_parameter_list_end): New function.
8294 (linespec_lexer_lex_string): New function.
8295 (linespec_lexer_lex_one): New function.
8296 (linespec_lexer_consume_token): New function.
8297 (linespec_lexer_peek_token): New function.
8298 (cplusplus_error): Remove unused function.
8299 (find_methods): Update comment.
8300 (find_toplevel_char): Return const.
8301 (is_objc_method_format): Remove unused function.
8302 (find_toplevel_string): New function.
8303 (is_linespec_boundary): Remove.
8304 (symbol_not_found_error): New function.
8305 (find_method_overload_end): Remove function.
8306 (unexpected_linespec_error): New function.
8307 (keep_name_info): Remove.
8308 (linespec_parse_line_offset): New function.
8309 (linespec_parse_basic): New function.
8310 (canonicalize_linespec): New function.
8311 (decode_line_internal): Remove.
8312 (create_sals_line_offset): New function adapted from
8313 decode_all_digits.
8314 (convert_linespec_to_sals): New function.
8315 (parse_linespec): New function.
8316 (linespec_parser_new): New function.
8317 (linespec_state_destructor): Change parameter type to
8318 struct linespec_state *.
8319 Add language parameter.
8320 Remove freeing of moved members.
8321 (linespec_parser_delete): New function.
8322 (decode_line_full): Use parse_linespec and linespec_parser_new.
8323 (decode_line_1): Likewise.
8324 (decode_indirect): Rename to ...
8325 (linespec_expression_to_pc): ... this and rewrite
8326 to simply find CORE_ADDR, storing this result for later
8327 conversion to SALs.
8328 (locate_first_half): Remove.
8329 (deocde_objc): Add parameter LS.
8330 Initialize new struct collect_info members.
8331 Handle minimal symbols, too.
8332 (decode_compound): Delete.
8333 (lookup_prefix_sym): Rewrite.
8334 (compare_msymbols): New function.
8335 (find_method): Rewrite.
8336 Do not call cplusplus_error.
8337 (symtabs_from_filename): Rewrite.
8338 (collect_function_symbols): Delete.
8339 (find_function_symbols): Rewrite without ARGPTR-style
8340 processing.
8341 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8342 (decode_dollar): Adapted and renamed to ...
8343 (linespec_parse_variable): ... this.
8344 (find_linespec_symbols): New function.
8345 (decode_label): Adapted and renamed to ...
8346 (find_label_symbols): ... this.
8347 (decode_digits_list_mode): Add and use LS argument.
8348 (decode_digits_ordinary): Likewise.
8349 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8350 If in list mode, allow any symbol class. Otherwise, only
8351 permit LOC_BLOCK symbols.
8352 (minsym_found): Update comments.
8353 (search_minsyms_for_name): Do not convert the matching symbol
8354 into a SAL. Simply push the symbol and objfile into the
8355 result vector.
8356 (decode_variable): Delete. Contents adapted into
8357 find_linespec_symbols.
8358
8359 * cp-support.c (SKIP_SPACE): Remove.
8360 (operator_tokens): Remove unused global.
8361 (cp_validate_operator): Remove.
8362 * cp-support.h (cp_validate_operator): Remove declaration.
8363
a72c8f6a
JK
83642012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8365
8366 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8367 for TYPE_VPTR_FIELDNO.
8368 * valprint.c (valprint_check_validity): Make it global, move the
8369 function comment ...
8370 * value.h (valprint_check_validity): ... to this new declaration.
8371
cf9bb588
TG
83722012-04-02 Tristan Gingold <gingold@adacore.com>
8373
8374 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8375 the STATE32 api for i386 state.
8376 (i386_darwin_store_inferior_registers): Likewise.
8377
17092398
TG
83782012-04-02 Tristan Gingold <gingold@adacore.com>
8379
8380 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8381 SS offset.
8382 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8383 format_string.
8384
ece0061f
TG
83852012-04-02 Tristan Gingold <gingold@adacore.com>
8386
8387 PR gdb/13901
d987a266 8388 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8389
cf65ecd3
JK
83902012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8391
8392 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8393
9bc3523d
TT
83942012-03-30 Tom Tromey <tromey@redhat.com>
8395
8396 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8397 of TRY_CATCH. Fix error handling.
8398 * python/py-value.c (convert_value_from_python): Move 'old'
8399 declaration to innermost scope.
8400
b1ed564a
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 (ada_make_symbol_completion_list): Rename parameters
8406 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8407 Adjust code accordingly.
8408
cb8e9b97
JB
84092012-03-29 Joel Brobecker <brobecker@adacore.com>
8410
8411 * ada-lang.c (symbol_completion_add): Rename parameter
8412 "encoded" into "encoded_p". Ajust code and documentation
8413 accordingly.
8414
c0af1706
JB
84152012-03-29 Joel Brobecker <brobecker@adacore.com>
8416 Andrey Smirnov <andrew.smirnov@gmail.com>
8417
8418 -Wshadow warning fix.
8419 * ada-lang.c (symbol_completion_add): Rename parameter
8420 "wild_match" into wild_match_p. Update code and documentation
8421 accordingly.
8422
6ea35997
JB
84232012-03-29 Joel Brobecker <brobecker@adacore.com>
8424
8425 * ada-lang.c (symbol_completion_match): Rename parameter
8426 "encoded" into "encoded_p". Ajust code and documentation
8427 accordingly.
8428
e701b3c0
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 (symbol_completion_match): Rename parameter
8434 "wild_match" into "wild_match_p". Adjust code and function
8435 documentation accordingly.
8436
5e2336be
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 (ada_lookup_encoded_symbol): Rename parameter
8442 "symbol_info" into "info". Adjust code accordingly.
8443 (ada_lookup_symbol): Likewise.
8444
9f88c959
JB
84452012-03-29 Joel Brobecker <brobecker@adacore.com>
8446
8447 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8448 of this function's documentation.
8449
82ccd55e
JB
84502012-03-29 Joel Brobecker <brobecker@adacore.com>
8451 Andrey Smirnov <andrew.smirnov@gmail.com>
8452
8453 -Wshadow warning fix.
8454 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8455 variable into "wild_match_p". Adjust code accordingly.
8456
d0a8ab18
JB
84572012-03-29 Joel Brobecker <brobecker@adacore.com>
8458 Andrey Smirnov <andrew.smirnov@gmail.com>
8459
8460 -Wshadow warning fix.
8461 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8462 parameter into "wild_match_p". Adjust code accordingly.
8463 Document this parameter in the function description.
8464
48b78332
JB
84652012-03-29 Joel Brobecker <brobecker@adacore.com>
8466 Andrey Smirnov <andrew.smirnov@gmail.com>
8467
8468 -Wshadow warning fix.
8469 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8470 "wild_match" parameter to "wild_match_p" (-Wshadow).
8471
2e6e0353
JB
84722012-03-29 Joel Brobecker <brobecker@adacore.com>
8473
8474 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8475 in function documentation.
8476
dc4024cd
JB
84772012-03-29 Joel Brobecker <brobecker@adacore.com>
8478 Andrey Smirnov <andrew.smirnov@gmail.com>
8479
8480 -Wshadow warning fix.
8481 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8482 variable into wild_match_p. Adjust code accordingly.
8483
6c88661c
JB
84842012-03-29 Joel Brobecker <brobecker@adacore.com>
8485 Andrey Smirnov <andrew.smirnov@gmail.com>
8486
8487 * ada-valprint.c (ada_val_print_1): Move the code handling
8488 TYPE_CODE_ENUM inside its own lexical block. Declare
8489 variables len and val there, instead of in the function's
8490 top level block. Avoid declaring deref_val again in a way
8491 that shadows another variable of the same name declared
8492 in one of the up-level blocks. Just re-use the up-level
8493 variable instead.
8494
4e5c77fe
JB
84952012-03-29 Joel Brobecker <brobecker@adacore.com>
8496
8497 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8498 Replace block_found argument by symbol_info. Adjust
8499 implementation accordingly. Add function documentation.
8500 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8501 Fix documentation.
8502 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8503 * ada-exp.y (write_object_renaming): Adjust to new
8504 ada_lookup_encoded_symbol API.
8505
1c0ac8c7
JB
85062012-03-29 Joel Brobecker <brobecker@adacore.com>
8507
8508 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8509 documentation.
8510
2aaed979
KB
85112012-03-28 Rathish C <rathish.c@kpitcummins.com>
8512
8513 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8514 (v850_register_name): Add the mpu and fpu register names.
8515 (v850e_register_name): Add the mpu and fpu register names.
8516 (v850e2_register_name): New function.
a09130f9 8517 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8518 bfd_mach_v850e2v3.
8519
927fbba6
JB
85202012-03-28 Joel Brobecker <brobecker@adacore.com>
8521
8522 * NEWS: Add entry for Ada varobj support.
8523
d32cafc7
JB
85242012-03-28 Joel Brobecker <brobecker@adacore.com>
8525
8526 * varobj.c (default_value_is_changeable_p): New function,
8527 extracted from varobj_value_is_changeable_p. Add declaration.
8528 (ada_value_is_changeable_p): New function, extracted from
8529 varobj_value_is_changeable_p. Add declaration.
8530 (struct language_specific): New field "value_is_changeable_p".
8531 (languages): Add entries for new field.
8532 (varobj_create): Set language before calling install_new_value.
8533 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8534 "value_is_changeable_p" language callback.
8535
181875a4
JB
85362012-03-28 Joel Brobecker <brobecker@adacore.com>
8537
8538 * ada-varobj.h, ada-varobj.c: New files.
8539 * Makefile.in (SFILES): Add ada-varobj.c.
8540 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8541 (COMMON_OBS): Add ada-varobj.o.
8542
7a290c40
JB
85432012-03-28 Joel Brobecker <brobecker@adacore.com>
8544
8545 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8546 (struct language_specific): New field "value_has_mutated".
8547 (languages): Set field "value_has_mutated" in each entry of array.
8548 (varobj_value_has_mutated): New function.
8549 (varobj_udpdate): Add handling of type mutation.
8550 (value_of_root): Add handling of type mutation.
8551 (ada_value_has_mutated): New function.
8552
ca9b8b9c
PA
85532012-03-28 Pedro Alves <palves@redhat.com>
8554
8555 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8556 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8557
cc0265cd
TT
85582012-03-28 Tom Tromey <tromey@redhat.com>
8559
8560 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8561 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8562 before returning.
8563
3ad2ec6f
TT
85642012-03-28 Tom Tromey <tromey@redhat.com>
8565
8566 * .dir-locals.el: New file.
8567
4a6510ba
PA
85682012-03-28 Pedro Alves <palves@redhat.com>
8569
8570 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8571
5a75128f
JB
85722012-03-28 Joel Brobecker <brobecker@adacore.com>
8573
8574 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8575 handling for r0.
8576
f99d8bf4
PA
85772012-03-27 Pedro Alves <palves@redhat.com>
8578
8579 Eliminate struct ui_stream.
8580
8581 * ui-out.h (struct ui_stream): Delete.
8582 (ui_out_field_stream): Adjust prototype.
8583 (ui_out_stream_new, ui_out_stream_delete)
8584 (make_cleanup_ui_out_stream_delete): Delete declarations.
8585 * ui-out.c (ui_out_field_stream): Change prototype to take a
8586 ui_file instead of a ui_stream. Adjust.
8587 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8588 (make_cleanup_ui_out_stream_delete): Delete.
8589 * breakpoint.c (print_breakpoint_location)
8590 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8591 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8592 * disasm.c (dump_insns): Ditto.
8593 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8594 prototype.
8595 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8596 ui_stream/ui_out_stream_new.
8597 * infcmd.c (print_return_value): Ditto.
8598 * osdata.c (info_osdata_command): Don't allocate a local
8599 ui_stream.
8600 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8601 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8602 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8603 allocate a local ui_stream.
8604 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8605 instead of ui_stream/ui_out_stream_new.
8606 (list_args_or_locals): Don't allocate a local ui_stream.
8607 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8608 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8609 ui_stream/ui_out_stream_new.
8610 * cli/cli-setshow.c (do_setshow_command): Ditto.
8611
6350a066 86122012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8613
6350a066
PA
8614 * arm-linux-tdep.c (arm_linux_init_abi): Call
8615 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8616 * arm-tdep.c (arm_process_record): New function.
8617 (deallocate_reg_mem): New function.
8618 (decode_insn): New function.
8619 (thumb_record_branch): New function.
8620 (thumb_record_ldm_stm_swi(): New function.
8621 (thumb_record_misc): New function.
8622 (thumb_record_ld_st_stack): New function.
8623 (thumb_record_ld_st_imm_offset): New function.
8624 (thumb_record_ld_st_reg_offset(): New function.
8625 (thumb_record_add_sub_cmp_mov): New function.
8626 (thumb_record_shift_add_sub): New function.
8627 (arm_record_coproc_data_proc): New function.
8628 (arm_record_coproc): New function.
8629 (arm_record_b_bl): New function.
8630 (arm_record_ld_st_multiple): New function.
8631 (arm_record_ld_st_reg_offset): New function.
8632 (arm_record_ld_st_imm_offset): New function.
8633 (arm_record_data_proc_imm): New function.
8634 (arm_record_data_proc_misc_ld_str): New function.
8635 (arm_record_extension_space): New function.
8636 (arm_record_strx): New function.
8637 (sbo_sbz): New function.
8638 (struct insn_decode_record): New structure for arm insn record.
8639 (REG_ALLOC): New macro for reg allocations.
8640 (MEM_ALLOC): New macro for memory allocations.
8641 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8642
89e028e2
AS
86432012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8644
8645 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8646 (store_register): Likewise.
8647
6350a066 86482012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8649
6350a066 8650 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8651
5b43fab2
JK
86522012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8653
8654 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8655 Describe also the option "auto".
8656
b5453b95
RH
86572012-03-22 Richard Henderson <rth@redhat.com>
8658
8659 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8660 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8661
227ee7fc
RH
86622012-03-22 Richard Henderson <rth@redhat.com>
8663
8664 * jit.c (jit_read_code_entry): Compute alignment and offset of
8665 int64_t member before computing entry_size.
8666
7b282c5a
SCR
86672012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8668
8669 Python scripting: Add new method Value.referenced_value to
8670 gdb.Value which can dereference pointer as well as reference
8671 values.
8672 * NEWS: Add entry under 'Python scripting' about the new method
8673 Value.referenced_value on gdb.Value objects.
8674 * python/py-value.c (valpy_referenced_value): New function
8675 defining a new method on gdb.Value objects which can dereference
8676 pointer and reference values.
8677
0c83539f
SCR
86782012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8679
8680 * MAINTAINERS (Write After Approval): Add myself to the list.
8681
7ccffd7c
KB
86822012-03-21 Kevin Buettner <kevinb@redhat.com>
8683
8684 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8685 in addition to "main".
8686
bd0b9f9e
JB
86872012-03-21 Joel Brobecker <brobecker@adacore.com>
8688
8689 * expression.h (op_name): Add declaration.
8690 * expprint.c (op_name): Remove declaration. Make non-static.
8691 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8692
a5362b9a
TS
86932012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8694
8695 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8696 of struct siginfo.
8697 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8698 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8699 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8700 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8701 (linux_nat_get_siginfo): Likewise.
8702 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8703 (linux_nat_get_siginfo): Likewise.
8704 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8705 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8706 * procfs.c (gdb_siginfo_t): Likewise.
8707
adcadaab
MF
87082012-03-21 Mike Frysinger <vapier@gentoo.org>
8709
8710 * .gitignore: Ignore more files.
8711
e278ad5b
PA
87122012-03-20 Pedro Alves <palves@redhat.com>
8713
8714 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8715 returns.
8716
741e63d7
YQ
87172012-03-20 Yao Qi <yao@codesourcery.com>
8718
8719 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8720 comment.
8721
b64f50a1
JK
87222012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8723
8724 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8725 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8726 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8727 sect_offset.
8728 * dwarf2expr.h (cu_offset, sect_offset): New types.
8729 (struct dwarf_expr_context_funcs) <dwarf_call>
8730 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8731 sect_offset.
8732 (struct dwarf_expr_context) <len>: Improve the comment.
8733 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8734 cu_offset and sect_offset.
8735 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8736 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8737 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8738 * dwarf2loc.h: Include dwarf2expr.h.
8739 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8740 and sect_offset.
8741 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8742 Improve the comment.
8743 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8744 (struct signatured_type, struct line_header, struct partial_die_info)
8745 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8746 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8747 (get_die_type_at_offset, create_cus_from_index)
8748 (create_signatured_type_table_from_index, dw2_get_file_names)
8749 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8750 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8751 (create_debug_types_hash_table, process_psymtab_comp_unit)
8752 (load_partial_comp_unit, create_all_comp_units)
8753 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8754 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8755 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8756 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8757 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8758 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8759 (find_partial_die, read_attribute_value, lookup_die_type)
8760 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8761 (is_ref_attr): New function comment.
8762 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8763 Use cu_offset and sect_offset.
8764 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8765 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8766 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8767 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8768 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8769 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8770 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8771 sect_offset.
8772
e97a38f7
JK
87732012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8774
8775 Code cleanup.
8776 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8777 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8778 with xfree.
8779 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8780
8320cc4f
JK
87812012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8782
8783 * NEWS: Describe new options --init-command=FILE, -ix and
8784 --init-eval-command=COMMAND, -iex.
8785 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8786 CMDARG_INIT_COMMAND.
8787 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8788 "init-command", "init-eval-command", "ix" and "iex" to the variable
8789 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8790 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8791 (print_gdb_help): Describe --init-command=FILE, -ix and
8792 --init-eval-command=COMMAND, -iex.
8793
26743505
JK
87942012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8795
8796 Code cleanup.
8797 * main.c (struct cmdarg): Move it here from main. Add more comments.
8798 (cmdarg_s, VEC (cmdarg_s)): New.
8799 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8800 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8801 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8802 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8803 of CMDARG.
8804
5ff5c7b4
TT
88052012-03-19 Tom Tromey <tromey@redhat.com>
8806
8807 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8808
ab260dad
JK
88092012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8810
8811 PR symtab/13777
8812 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8813 GCC >=4.5.
8814
c366c1f0
TT
88152012-03-16 Chris January <chris.january@allinea.com>
8816
8817 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8818 of clear.
8819
e16edb45
TT
88202012-03-16 Chris January <chris.january@allinea.com>
8821
8822 * source.c (add_path): Use memmove instead of strcpy because the
8823 strings overlap.
8824
53ba8333
JB
88252012-03-16 Joel Brobecker <brobecker@adacore.com>
8826
8827 * value.h (set_value_parent): Add declaration.
8828 * value.c (set_value_parent): New function.
8829 (value_address): If VALUE->PARENT is not NULL, then use it as
8830 the base address instead of VALUE->LOCATION.address.
8831 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8832 the same as OBJ's address. Adjust V's offset accordingly.
8833 Set V's parent.
8834
481860b3
GB
88352012-03-16 Gary Benson <gbenson@redhat.com>
8836
8837 PR breakpoints/10738
8838 * dwarf2read.c (use_deprecated_index_sections): New global.
8839 (struct partial_die_info): New member may_be_inlined.
8840 (read_partial_die): Set may_be_inlined where appropriate.
8841 (add_partial_subprogram): Add partial symbols for partial
8842 DIEs that may be inlined.
8843 (new_symbol_full): Add inlined subroutines to the current
8844 scope.
8845 (write_psymtabs_to_index): Bump version number.
8846 (dwarf2_read_index): Read only version 6 indices unless
8847 use_deprecated_index_sections is set.
8848 * linespec.c (symbol_and_data_callback): New structure.
8849 (iterate_inline_only): New function.
8850 (iterate_over_all_matching_symtabs): New argument
8851 "include_inline". If nonzero, also call the callback for
8852 symbols representing inlined subroutines.
8853 (lookup_prefix_sym): Pass extra argument to the above.
8854 (find_function_symbols): Likewise.
8855 (add_matching_symbols_to_info): Likewise.
8856 * NEWS: Mention that GDB can now set breakpoints on inlined
8857 functions.
8858
d0e7e15a
PM
88592012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8860
8861 * p-typeprint.c (pascal_type_print_method_args):
8862 Fix display of parameter of methods.
8863
3d354654
PM
88642012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8865
8866 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8867 Add missing prototype.
8868
cafe75b0
JK
88692012-03-16 Yao Qi <yao@codesourcery.com>
8870 Jan Kratochvil <jan.kratochvil@redhat.com>
8871
8872 Fix false compilation warning.
8873 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8874
25f8c692
JL
88752012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8876 Pedro Alves <pedro@codesourcery.com>
8877
8878 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8879 (arm_register_g_packet_guesses): New function.
8880 (arm_gdbarch_init): Don't force a target description with
8881 registers when the executable is detected as M-profile. Instead
8882 set gdbarch->tdep->is_m. Register `g' packet guesses.
8883 (_initialize_arm_tdep): Initialize the new target description.
8884 * features/arm-with-m-fpa-layout.xml: New description.
8885 * features/arm-with-m-fpa-layout.c: New, generated.
8886
35c63cd8
JB
88872012-03-15 Joel Brobecker <brobecker@adacore.com>
8888
8889 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8890 Update function description.
8891 (insert_bp_location): Do not wipe bl->target_info out.
8892 * mem-break.c: #include "gdb_string.h".
8893 (default_memory_insert_breakpoint): Do not call target_read_memory
8894 with a pointer to the breakpoint's shadow_contents buffer. Use
8895 a local buffer instead.
8896 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8897
57651221
TT
88982012-03-15 Tom Tromey <tromey@redhat.com>
8899
8900 * NEWS: Mention "info vtbl", not "info vtable".
8901 * cp-support.c (info_vtbl_command): Fix comment.
8902 (_initialize_cp_support): Fix text.
8903
410528f0
TT
89042012-03-15 Tom Tromey <tromey@redhat.com>
8905
8906 * cp-valprint.c (cp_print_value_fields): Use
8907 print_function_pointer_address for vtable slot.
8908
c4aeac85
TT
89092012-03-15 Tom Tromey <tromey@redhat.com>
8910
8911 * gnu-v3-abi.c (struct value_and_voffset): New.
8912 (hash_value_and_voffset, eq_value_and_voffset)
8913 (compare_value_and_voffset, compute_vtable_size)
8914 (print_one_vtable, gnuv3_print_vtable): New functions.
8915 (init_gnuv3_ops): Initialize 'print_vtable' field.
8916 * cp-support.c (info_vtbl_command): New function.
8917 (_initialize_cp_support): Add "info vtbl".
8918 * cp-abi.h (cplus_print_vtable): Declare.
8919 (struct cp_abi_ops) <print_vtable>: New field.
8920 * cp-abi.c (cplus_print_vtable): New function.
8921 * NEWS: Update.
8922
95cbceff
TT
89232012-03-15 Tom Tromey <tromey@redhat.com>
8924
8925 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8926 iterate_over_symbols.
8927
589b4a32
DE
89282012-03-14 Doug Evans <dje@google.com>
8929
8930 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8931 DW_OP_GNU_parameter_ref.
8932
e837f12a
JK
89332012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8934
8935 Fix double prompt of 'interpreter-exec mi'.
8936 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8937 (mi_interpreter_resume): use it.
8938 (mi_execute_command_input_handler): New function.
8939 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8940 mi_execute_command_input_handler.
8941
ff1e4526 89422012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8943
8944 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8945 prototype.
8946 (darwin_debug_port_info): Make static.
8947 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8948 * machoread.c (_initialize_machoread): Add prototype.
8949 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8950 (i386_darwin_set_control, i386_darwin_get_control)
8951 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8952 i386_darwin_get_status, i386_darwin_get_control):
8953 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8954
d8a5d6ee
JB
89552012-03-13 Joel Brobecker <brobecker@adacore.com>
8956
8957 * ax-gdb.c (gen_usual_unary): Remove special handling of
8958 enum and bool types.
8959
af381b8c
JB
89602012-03-13 Joel Brobecker <brobecker@adacore.com>
8961
8962 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8963
786c562f
JB
89642012-03-13 Joel Brobecker <brobecker@adacore.com>
8965
8966 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8967
e3ebf1bb
JB
89682012-03-13 Chris January <chris.january@allinea.com>
8969
8970 * aix-thread.c (fill_sprs): Store the floating point registers
8971 at the correct offsets into vals.
8972
c5b7e1cb
DE
89732012-03-13 Doug Evans <dje@google.com>
8974
16899756
DE
8975 * NEWS: Mention symbol-reloading has been deleted.
8976 * symfile.c (symbol_reloading): Delete.
8977 (show_symbol_reloading): Delete.
8978 (_initialize_symfile): Delete set/show symbol-reloading.
8979
c5b7e1cb
DE
8980 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8981 read_in_chain until we have successfully read it in.
8982 (load_full_comp_unit): Ditto.
8983 (read_signatured_type): Add comment.
8984
46cb6474
JB
89852012-03-13 Chris January <chris.january@allinea.com>
8986
8987 * stabsread.c (fix_common_block): Change type of valu argument
8988 to CORE_ADDR.
8989
76219d77
JB
89902012-03-13 Chris January <chris.january@allinea.com>
8991
8992 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8993 instruction.
8994
87b0bb13
JK
89952012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8996
8997 * common/linux-procfs.c (linux_proc_get_int): New, from
8998 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8999 field.
9000 (linux_proc_get_tgid): Only call linux_proc_get_int.
9001 (linux_proc_get_tracerpid): New.
9002 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9003 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9004 linux_proc_pid_has_state.
9005 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9006 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9007 (linux_ptrace_attach_warnings): New.
9008 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9009 New declaration.
9010 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9011 (linux_nat_attach): New variables ex, buffer, message and message_s.
9012 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9013
5f572dec
JK
90142012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9015
9016 * Makefile.in (linux-ptrace.o): New.
9017 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9018 from linux-nat.c.
9019 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9020 * common/linux-ptrace.c: New file.
9021 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9022 * config/arm/linux.mh: Likewise.
9023 * config/i386/linux.mh: Likewise.
9024 * config/i386/linux64.mh: Likewise.
9025 * config/ia64/linux.mh: Likewise.
9026 * config/m32r/linux.mh: Likewise.
9027 * config/m68k/linux.mh: Likewise.
9028 * config/mips/linux.mh: Likewise.
9029 * config/pa/linux.mh: Likewise.
9030 * config/powerpc/linux.mh: Likewise.
9031 * config/powerpc/ppc64-linux.mh: Likewise.
9032 * config/powerpc/spu-linux.mh: Likewise.
9033 * config/s390/s390.mh: Likewise.
9034 * config/sparc/linux.mh: Likewise.
9035 * config/sparc/linux64.mh: Likewise.
9036 * config/xtensa/linux.mh: Likewise.
9037 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9038 common/linux-procfs.c.
9039 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9040
44f238bb
PA
90412012-03-13 Hui Zhu <teawater@gmail.com>
9042 Pedro Alves <palves@redhat.com>
9043
9044 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9045 CREATE_BREAKPOINT_FLAGS_INSERTED.
9046 (create_breakpoint_sal, create_breakpoints_sal)
9047 (base_breakpoint_create_breakpoints_sal)
9048 (tracepoint_create_breakpoints_sal)
9049 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9050 down.
9051 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9052 (ftrace_command, strace_command): Adjust.
9053 (create_tracepoint_from_upload): Pass
9054 CREATE_BREAKPOINT_FLAGS_INSERTED.
9055 * breakpoint.h (enum breakpoint_create_flags): New.
9056 (create_breakpoint): New flags parameter.
9057 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9058 * python/py-breakpoint.c (bppy_init): Adjust.
9059 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9060 * spu-tdep.c (spu_catch_start): Adjust.
9061
1e51243a
PA
90622012-03-13 Pedro Alves <palves@redhat.com>
9063 Hui Zhu <teawater@gmail.com>
9064 Yao Qi <yao@codesourcery.com>
9065
9066 * remote.c (struct remote_state): New field `starting_up'.
9067 (remote_start_remote): Set and clear it.
9068 (remote_can_download_tracepoint): If starting up, return false.
9069
fa3064dd
YQ
90702012-03-13 Yao Qi <yao@codesourcery.com>
9071
9072 * inferior.h (struct inferior): Remove fields any_syscall_count,
9073 syscalls_counts and total_syscalls_count. Move them to new
9074 struct catch_syscall_inferior_data in breakpoint.c.
9075 * breakpoint.c: Call DEF_VEC_I(int).
9076 (struct catch_syscall_inferior_data): New.
9077 (get_catch_syscall_inferior_data): New.
9078 (catch_syscall_inferior_data_cleanup): New.
9079 (insert_catch_syscall): Update to access data in
9080 struct catch_syscall_inferior_data.
9081 (insert_catch_syscall): Likewise.
9082 (remove_catch_syscall): Likewise.
9083 (remove_catch_syscall): Likewise.
9084 (is_syscall_catchpoint_enabled): Likewise.
9085 (add_catch_command): Likewise.
9086 (_initialize_breakpoint): Register cleanup.
9087 * breakpoint.h: Removed DEF_VEC_I(int).
9088 * dwarf2loc.c: Call DEF_VEC_I(int).
9089 * mi/mi-main.c: Likewise.
9090
460fac3c
MK
90912012-03-12 Mark Kettenis <kettenis@gnu.org>
9092
9093 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9094
e1aca11e
JB
90952012-03-12 Chris January <chris.january@allinea.com>
9096
9097 * aix-thread.c (_initialize_aix_thread): Add prototype.
9098 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9099 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9100
649c7061
JB
91012012-03-12 Joel Brobecker <brobecker@adacore.com>
9102
9103 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9104 include of "amd64-nat.h".
9105
0b49e518
TT
91062012-03-12 Tom Tromey <tromey@redhat.com>
9107
9108 * buildsym.c (record_pending_block): Now static.
9109 * buildsym.h: (record_pending_block): Remove.
9110
fd24fa94
AT
91112012-03-12 Andreas Tobler <andreast@fgznet.ch>
9112
9113 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9114
ba919b58
TT
91152012-03-09 Tom Tromey <tromey@redhat.com>
9116
9117 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9118 producer_is_gxx_lt_4_6>: New fields.
9119 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9120
a48e046c
TT
91212012-03-09 Tom Tromey <tromey@redhat.com>
9122
9123 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9124
6f5e9362
JB
91252012-03-08 Joel Brobecker <brobecker@adacore.com>
9126
9127 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9128 prototype.
9129
8d037db9
JB
91302012-03-08 Joel Brobecker <brobecker@adacore.com>
9131
9132 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9133
4e841acf
JK
91342012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9135
9136 Fix -Wmissing-prototypes build.
9137 * arm-linux-nat.c (get_thread_id): Make it static.
9138 * xtensa-linux-nat.c (get_thread_id): Likewise.
9139
c6030312
JB
91402012-03-08 Joel Brobecker <brobecker@adacore.com>
9141
9142 * server.c (process_point_options): If a conditional expression
9143 is found, only print a message if remote_debug is nonzero.
9144
52323be9
LM
91452012-03-08 Luis Machado <lgustavo@codesourcery.com>
9146
9147 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9148 of internal error for unknown/unsupported types.
9149
7fe25d9b
JK
91502012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9151
9152 Fix CU relative vs. absolute DIE offsets.
9153 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9154 offset to offset_in_cu.
9155 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9156 TYPE_OFFSET.
9157 (dwarf2_fetch_die_location_block): Rename parameter offset to
9158 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9159
05e7c244
JK
91602012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9161
9162 * libunwind-frame.c: Rename to ...
9163 * ia64-libunwind-tdep.c: ... here.
9164 * libunwind-frame.h: Rename to ...
9165 * ia64-libunwind-tdep.h: ... here.
9166 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9167 ia64-libunwind-tdep.h.
9168 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9169 * README (--with-libunwind): Rename to ...
9170 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9171 * config.in: Regenerate.
9172 * configure: Regenerate.
9173 * configure.ac: New option --with-libunwind-ia64, make the
9174 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9175 Remove AC_DEFINE for HAVE_LIBUNWIND.
9176 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9177 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9178 Rename libunwind-frame in the general comment.
9179 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9180 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9181 Move forward declarations inside #ifndef. Rename libunwind-frame in
9182 the general comment.
9183 * ia64-tdep.c: Rename libunwind-frame.h #include to
9184 ia64-libunwind-tdep.h.
9185 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9186 (ia64_libunwind_descr): Rename libunwind-frame to
9187 ia64-libunwind-tdep in these function comments.
9188 * ia64-tdep.h: Rename libunwind-frame.h #include to
9189 ia64-libunwind-tdep.h.
9190 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9191 ia64-libunwind-tdep in that data comment.
9192
3755cbfd
JK
91932012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9194
9195 * libunwind-frame.h (struct frame_unwind): New declaration.
9196
d1cda5d9
JB
91972012-03-08 Joel Brobecker <brobecker@adacore.com>
9198
9199 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9200 "set breakpoint condition-evaluation" command.
9201
a0ba0aa2
TG
92022012-03-08 Tristan Gingold <gingold@adacore.com>
9203
9204 * sparc-stub.c: Move to stubs/
9205 * sh-stub.c: Likewise.
9206 * m68k-stub.c: Likewise.
9207 * m32r-stub.c: Likewise.
9208 * i386-stub.c: Likewise.
9209
7b8b6d6d
AS
92102012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9211
007cafee
AS
9212 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9213 linux_get_siginfo_type.
9214
7b8b6d6d
AS
9215 * m68klinux-nat.c: Include "gdb_proc_service.h".
9216 (PTRACE_GET_THREAD_AREA): Define.
9217 (ps_get_thread_area): New function.
9218
bba74b36
YQ
92192012-03-08 Yao Qi <yao@codesourcery.com>
9220
9221 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9222 `xsnprintf'.
9223 (remote_query_attached): Likewise.
9224 (remote_static_tracepoint_marker_at): Likewise.
9225 (remote_set_permissions): Likewise.
9226 (remote_detach_1, extended_remote_attach_1): Likewise.
9227 (send_g_packet, remote_vkill): Likewise.
9228 (extended_remote_disable_randomization): Likewise.
9229 (remote_add_target_side_condition): Likewise.
9230 (remote_insert_breakpoint): Likewise.
9231 (remote_remove_breakpoint): Likewise.
9232 (remote_insert_watchpoint): Likewise.
9233 (remote_remove_watchpoint): Likewise.
9234 (remote_insert_hw_breakpoint): Likewise.
9235 (remote_insert_hw_breakpoint): Likewise.
9236 (remote_remove_hw_breakpoint): Likewise.
9237 (remote_download_command_source): Likewise.
9238 (remote_download_tracepoint): Likewise.
9239 (remote_download_trace_state_variable): Likewise.
9240 (remote_disable_tracepoint): Likewise.
9241 (remote_trace_set_readonly_regions): Likewise.
9242 (remote_get_tracepoint_status): Likewise.
9243 (remote_trace_find): Likewise.
9244 (remote_get_trace_state_variable_value): Likewise.
9245 (remote_set_disconnected_tracing): Likewise.
9246 (remote_set_circular_trace_buffer): Likewise.
9247 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9248 (remote_use_agent): Likewise.
9249 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9250 Update callers.
9251
9b224c5e
PA
92522012-03-07 Pedro Alves <palves@redhat.com>
9253
9254 * NEWS: Mention QProgramSignals.
9255 * inferior.h (update_signals_program_target): Declare.
9256 * infrun.c: (update_signals_program_target): New.
9257 (handle_command): Update the target of the new program signals
9258 array changes.
9259 * remote.c (PACKET_QProgramSignals): New enum.
9260 (last_program_signals_packet): New global.
9261 (remote_program_signals): New.
9262 (remote_start_remote): Update the target with the program signals
9263 list.
9264 (remote_protocol_features): Add entry for QPassSignals.
9265 (remote_open_1): Free anc clear last_program_signals_packet.
9266 (init_remote_ops): Install remote_program_signals.
9267 * target.c (update_current_target): Adjust.
9268 (target_program_signals): New.
9269 * target.h (struct target_ops) <to_program_signals>: New field.
9270 (target_program_signals): Declare.
9271
74c48cbb
PA
92722012-03-07 Pedro Alves <palves@redhat.com>
9273
9274 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9275 extensions.
9276
0c13fc49
AS
92772012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9278
9279 * m68klinux-nat.c (getregs_supplies): Make static.
9280 (getfpregs_supplies): Likewise.
9281 (have_ptrace_getregs): Likewise.
9282
1281d2a3
JB
92832012-03-06 Joel Brobecker <brobecker@adacore.com>
9284
9285 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9286 in call to get_die_type_at_offset.
9287
2b03b41d
SS
92882012-03-06 Stan Shebs <stan@codesourcery.com>
9289
9290 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9291 * mi/mi-cmd-disas.c: Ditto.
9292 * mi/mi-cmd-env.c: Ditto.
9293 * mi/mi-cmd-file.c: Ditto.
9294 * mi/mi-cmd-stack.c: Ditto.
9295 * mi/mi-cmd-target.c: Ditto.
9296 * mi/mi-cmd-var.c: Ditto.
9297 * mi/mi-cmds.c: Ditto.
9298 * mi/mi-cmds.h: Ditto.
9299 * mi/mi-console.c: Ditto.
9300 * mi/mi-getopt.c: Ditto.
9301 * mi/mi-getopt.h: Ditto.
9302 * mi/mi-interp.c: Ditto.
9303 * mi/mi-main.c: Ditto.
9304 * mi/mi-out.c: Ditto.
9305 * mi/mi-parse.c: Ditto.
9306 * mi/mi-parse.h: Ditto.
9307 * mi/mi-symbol-cmds.c: Ditto.
9308
9309 * mi/mi-getopt.h: Move mi_opt struct up.
9310 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9311 return.
9312 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9313
c988ad87
TT
93142012-03-06 Tom Tromey <tromey@redhat.com>
9315
9316 * proc-service.c (ps_pglobal_lookup): Set the current program
9317 space.
9318
1b7c1b10
PA
93192012-03-06 Pedro Alves <palves@redhat.com>
9320
9321 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9322
3c182069
JB
93232012-03-05 Joel Brobecker <brobecker@adacore.com>
9324
9325 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9326
2e794194
JK
93272012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9328
9329 Code cleanup.
9330 * common/linux-osdata.c (linux_common_core_of_thread): New function
9331 comment.
9332 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9333 call by linux_common_core_of_thread.
9334 (linux_nat_core_of_thread_1): Remove.
9335 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9336 * linux-thread-db.c: Include linux-osdata.h.
9337 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9338 linux_common_core_of_thread.
9339
9f9f1f31
TT
93402012-03-05 Tom Tromey <tromey@redhat.com>
9341
9342 * value.c (value_primitive_field): Don't fetch contents for
9343 non-virtual bases.
9344
b7b189f3
TT
93452012-03-05 Tom Tromey <tromey@redhat.com>
9346
9347 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9348
05b8a789 93492012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9350
5538f557
JB
9351 * s390-nat.c: Include "gregset.h".
9352
75528772
JK
93532012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9354
9355 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9356 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9357 (libunwind_load): New variable so_error, use it for dlerror. Try to
9358 load also LIBUNWIND_SO_7.
9359
275418ae
PA
93602012-03-05 Pedro Alves <palves@redhat.com>
9361
9362 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9363 is not NULL, and remove resulting dead code.
9364
5cbb9812
TS
93652012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9366
9367 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9368 prologue to sh_analyze_prologue.
9369 (sh_analyze_prologue): Make better use of such an upper limit, and
9370 generally be more cautious about accessing memory.
9371
541515ad
TT
93722012-03-05 Tom Tromey <tromey@redhat.com>
9373
9374 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9375 _initialize_ia64_hpux_tdep.
9376
b4d36fb8
PA
93772012-03-05 Pedro Alves <palves@redhat.com>
9378
24490249
PA
9379 PR gdb/13766
9380
b4d36fb8
PA
9381 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9382 the register state is clear, supply explicit zero, instead of
9383 marking the register unavailable.
9384
60c9a3c0
TG
93852012-03-05 Tristan Gingold <gingold@adacore.com>
9386
9387 * NEWS: Mention OpenVMS ia64 new target.
9388
696759ad
TG
93892012-03-05 Tristan Gingold <gingold@adacore.com>
9390
9391 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9392 (ia64_unw_accessors, ia64_unw_rse_accessors)
9393 (ia64_libunwind_descr): Declare.
9394 * ia64-vms-tdep.c: New file.
9395 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9396 (ia64_libunwind_descr): Make them public.
9397 * configure.tgt: Add ia64-*-*vms*.
9398 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9399 (ALLDEPFILES): Add ia64-vms-tdep.c
9400
34864976
TG
94012012-03-05 Tristan Gingold <gingold@adacore.com>
9402
169081d0
TG
9403 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9404 * remote.c (PACKET_qXfer_uib): New enum value.
9405 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9406 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9407 (_initialize_remote): Call add_packet_config_cmd for
9408 xfer:uib packet.
9409
94102012-03-05 Tristan Gingold <gingold@adacore.com>
9411
9412 * osabi.c (gdb_osabi_names): Add OpenVMS.
9413 (generic_elf_osabi_sniffer): Likewise.
9414 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9415
6597b100
JK
94162012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9417
9418 Removed unused code.
9419 * libunwind-frame.c (libunwind_frame_unwind)
9420 (libunwind_frame_base_address): Remove.
9421 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9422
87399aa1
YQ
94232012-03-04 Yao Qi <yao@codesourcery.com>
9424
9425 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9426 remove trailing new line.
9427 (agent_run_command, agent_run_command): Add _ markup.
9428 (agent_capability_check): Likewise.
9429
abf1152a
JK
94302012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9431
9432 * breakpoint.c (set_condition_evaluation_mode): Set
9433 CONDITION_EVALUATION_MODE unconditionally.
9434
5808517f
YQ
94352012-03-03 Yao Qi <yao@codesourcery.com>
9436
9437 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9438 * common/agent.h: Update declaration.
9439 * inf-child.c (inf_child_use_agent): New.
9440 (inf_child_can_use_agent): New.
9441 (inf_child_target): Initialize fields `to_use_agent'
9442 and `to_can_use_agent'.
9443 * agent.c (agent_new_objfile): New.
89b7509a 9444 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9445 observer.
9446
9447 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9448 New.
89b7509a 9449 (linux_target_install_ops): Initialize field
5808517f
YQ
9450 `to_static_tracepoint_markers_by_strid'.
9451 * remote.c (free_current_marker): Move it to ...
9452 * tracepoint.c (free_current_marker): ... here. New.
9453 (cleanup_target_stop): New.
9454 * tracepoint.h: Declare free_current_marker.
9455 * NEWS: Add one entry about `info static-tracepoint-marker'.
9456
58b4daa5
YQ
94572012-03-03 Yao Qi <yao@codesourcery.com>
9458
9459 * common/agent.c (agent_loaded_p): New.
89b7509a 9460 (agent_look_up_symbols): New global.
58b4daa5
YQ
9461 * common/agent.h: Declare agent_loaded_p.
9462
8ffcbaaf
YQ
94632012-03-03 Yao Qi <yao@codesourcery.com>
9464
9465 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9466 (agent_capability_check, agent_capability_invalidate): New.
9467 (symbol_list): New array element.
9468 * common/agent.h (enum agent_capa): New.
9469 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9470
d1feda86
YQ
94712012-03-03 Yao Qi <yao@codesourcery.com>
9472
9473 * target.h (struct target_ops) <to_use_agent>: New field.
9474 (struct target_ops) <to_can_use_agent>: New field.
9475 (target_use_agent, target_can_use_agent): New macro.
9476 * target.c (update_current_target): Update.
9477 * remote.c: New enum `PACKET_QAgent'.
9478 (remote_protocol_features): Add a new element.
9479 (remote_use_agent, remote_can_use_agent): New.
9480 (init_remote_ops): Initialize field `can_use_agent' with
9481 remote_can_use_agent. Intiailize field `use_agent' with
9482 remote_use_agent.
9483 * common/agent.c (use_agent): New global.
9484 * common/agent.h: Declare it.
9485 * tracepoint.c (info_static_tracepoint_markers_command): Add
9486 comment.
9487 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9488 (COMMON_OBS): Add common/agent.o and agent.o
9489 (common-agent.o): New rule.
9490 * agent.c: New.
9491
2fa291ac
YQ
94922012-03-03 Yao Qi <yao@codesourcery.com>
9493
9494 * common/agent.c: New.
9495 * common/agent.h: New.
9496 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9497 AC_CHECK_HEADERS.
9498 * configure, configh.in: Regenerated.
9499
9fc05685
KB
95002012-03-02 Kevin Buettner <kevinb@redhat.com>
9501
9502 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9503 unless it exists for this architecture.
9504
a5ee536b
JB
95052012-03-02 Joel Brobecker <brobecker@adacore.com>
9506
9507 * language.h (struct language_defn): New "method" la_read_var_value.
9508 * findvar.c: #include "language.h".
9509 (default_read_var_value): Renames read_var_value. Rewrite
9510 function description.
9511 (read_var_value): New function.
9512 * value.h (default_read_var_value): Add prototype.
9513 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9514 New functions.
9515 (ada_language_defn): Add entry for la_read_var_value.
9516 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9517 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9518 language_defn structures to add entry for new la_read_var_value
9519 field.
9520
f59f708a
PA
95212012-03-02 Tom Tromey <tromey@redhat.com>
9522 Pedro Alves <palves@redhat.com>
9523
9524 PR breakpoints/13776:
9525 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9526 breakpoints.
9527 (delete_longjmp_breakpoint_at_next_stop): New.
9528 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9529 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9530 before deleting the inferior. Add comments.
9531 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9532 breakpoints immediately, but only on next stop. Move that code
9533 next to where we mark other breakpoints for deletion.
9534
44099a67
JB
95352012-03-02 Joel Brobecker <brobecker@adacore.com>
9536
9537 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9538 marker.
9539 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9540 violation.
9541
2a2ef594
PA
95422012-03-02 Pedro Alves <palves@redhat.com>
9543
9544 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9545
b261e0c5
UW
95462012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9547
9548 Fix -Wmissing-prototypes build.
9549 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9550 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9551 (gdbsim_has_memory): Likewise.
9552
a95babbf
YQ
95532012-03-02 Yao Qi <yao@codesourcery.com>
9554
9555 Fix -Wmissing-prototypes build.
9556 * charset.c (phony_iconv_open): Make static.
9557 (phony_iconv_close, phony_iconv): Likewise.
9558 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9559 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9560 prototype.
9561 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9562 * ser-mingw.c (create_select_thread): Make static.
9563 * windows-termcap.c (tgetent): New prototype.
9564 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9565
d603d4b3
JK
95662012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9567
9568 Fix -Wmissing-prototypes build.
9569 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9570 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9571 (_initialize_loadable): New prototypes.
9572
7fb3ad1f
DE
95732012-03-02 Doug Evans <dje@google.com>
9574
9575 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9576 abbrev table, read_comp_unit will do it.
9577
693be288
JK
95782012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9579
9580 Fix -Wmissing-prototypes build.
9581 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9582 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9583 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9584 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9585 (_initialize_arm_symbian_tdep): New prototype.
9586 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9587 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9588 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9589 static.
9590 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9591 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9592 prototype.
9593 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9594 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9595 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9596 static.
9597 * moxie-tdep.c (moxie_process_record): Likewise.
9598 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9599 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9600 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9601 (_initialize_rl78_tdep): New prototype.
9602 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9603 (_initialize_rx_tdep): New prototype.
9604 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9605 (_initialize_darwin_solib): New prototype.
9606 * solib-spu.c: Include solib-spu.h.
9607 (_initialize_spu_solib): New prototype.
9608 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9609 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9610 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9611 (tic6x_software_single_step): Make it static.
9612 (_initialize_tic6x_tdep): New prototype.
9613
638234e5
JK
96142012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9615
9616 Fix -Wmissing-prototypes build.
9617 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9618 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9619
f4a6f16d
JK
96202012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9621
9622 Fix -Wmissing-prototypes build.
9623 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9624 (frv_have_stopped_data_address): Remove.
9625
04dcf5fa
JK
96262012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9627
9628 Fix -Wmissing-prototypes build.
9629 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9630 * sh-tdep.c: Include sh64-tdep.h.
9631 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9632 * sh64-tdep.c: Include sh64-tdep.h.
9633 * sh64-tdep.h: New file.
9634
19080931
MR
96352012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9636
9637 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9638
9aac7884
MR
96392012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9640
9641 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9642 sp_regnum once the gdbarch_init_osabi hook has been called.
9643
a385295e
MR
96442012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9645
9646 * mips-tdep.c (mips32_bc1_pc): New function.
9647 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9648 BPOSGE32 and BPOSGE64 instructions.
9649 (deal_with_atomic_sequence): Likewise.
9650 (mips32_instruction_has_delay_slot): Likewise.
9651
1faeff08 96522012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9653 Chris Dearman <chris@mips.com>
9654 Maciej W. Rozycki <macro@codesourcery.com>
9655 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9656
9657 * features/mips-dsp.xml: New file.
9658 * features/mips64-dsp.xml: New file.
9659 * features/mips-dsp-linux.xml: New file.
9660 * features/mips64-dsp-linux.xml: New file.
9661 * features/Makefile (WHICH): Add mips-dsp-linux and
9662 mips64-dsp-linux.
9663 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9664 * features/mips-dsp-linux.c: New file.
9665 * features/mips64-dsp-linux.c: New file.
9666 * regformats/mips-dsp-linux.dat: New file.
9667 * regformats/mips64-dsp-linux.dat: New file.
9668 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9669 registers.
9670 (mips64_linux_register_addr): Likewise.
9671 (mips64_linux_regsets_fetch_registers): Likewise.
9672 (mips64_linux_regsets_store_registers): Likewise.
9673 (mips64_linux_fetch_registers): Update call to
9674 mips64_linux_regsets_fetch_registers.
9675 (mips64_linux_store_registers): Update call to
9676 mips64_linux_regsets_store_registers.
9677 (mips_linux_read_description): Probe for DSP registers.
9678 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9679 and initialize_tdesc_mips64_dsp_linux.
9680 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9681 Remove padding of no longer used embedded register slots.
9682 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9683 (MIPS_RESTART_REGNUM): Redefine enum value.
9684 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9685 strings.
9686 (mips_tx39_reg_names): Likewise.
9687 (mips_linux_reg_names): New array of register names for Linux
9688 targets.
9689 (mips_register_name): Check for a null pointer in
9690 mips_processor_reg_names and return an empty string.
9691 (mips_register_type): Exclude embedded registers for the IRIX
9692 and Linux ABIs.
9693 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9694 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9695 DSP registers.
9696 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9697 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9698 (mips_gdbarch_init): Likewise. Initialize internal register
9699 indices for the Linux ABI. Use dynamic numbers to refer to
9700 registers, as applicable, while parsing the target description.
9701 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9702
263689d8
JB
97032012-03-01 Joel Brobecker <brobecker@adacore.com>
9704
9705 * frame.h (read_frame_register_unsigned): Fix typo in function
9706 description.
9707
f3b4f45c
PA
97082012-03-01 Pedro Alves <palves@redhat.com>
9709
9710 * jit-reader.in [!__cplusplus]
9711 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9712
b03a2011
PA
97132012-03-01 Pedro Alves <palves@redhat.com>
9714
9715 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9716 * configure: Regenerate.
9717
70221824
PA
97182012-03-01 Pedro Alves <palves@redhat.com>
9719
9720 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9721 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9722 (ftrace_command, strace_command): Make static.
9723 * d-lang.c (_initialize_d_language): Declare.
9724 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9725 * dwarf2loc.c (_initialize_dwarf2loc):
9726 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9727 * exec.c (exec_get_section_table): Make static.
9728 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9729 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9730 * inferior.c (remove_inferior_command, add_inferior_command)
9731 (clone_inferior_command): Make static.
9732 * linux-nat.c (linux_nat_thread_address_space)
9733 (linux_nat_core_of_thread): Make static.
9734 * linux-tdep.c (_initialize_linux_tdep): Declare.
9735 * objc-lang.c (_initialize_objc_lang): Declare.
9736 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9737 Make static.
9738 (_initialize_opencl_language): Declare.
9739 * record.c (_initialize_record): Declare.
9740 * remote.c (demand_private_info, remote_get_tib_address)
9741 (remote_supports_cond_tracepoints)
9742 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9743 Make static.
9744 * skip.c (_initialize_step_skip): Declare.
9745 * symtab.c (skip_prologue_using_lineinfo): Make static.
9746 * tracepoint.c (delete_trace_state_variable)
9747 (trace_variable_command, delete_trace_variable_command)
9748 (get_uploaded_tsv, find_matching_tracepoint_location)
9749 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9750 Make static.
9751 * value.c (pack_unsigned_long): Make static.
9752 * varobj.c (varobj_ensure_python_env): Make static.
9753 * windows-tdep.c (_initialize_windows_tdep): Declare.
9754 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9755
33fbcbee
PA
97562012-03-01 Pedro Alves <palves@redhat.com>
9757
9758 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9759 gdbarch parameter.
9760 (linux_init_abi): Install it as has_shared_address_space gdbarch
9761 callback.
9762
44d0cd3b
PA
97632012-03-01 Pedro Alves <palves@redhat.com>
9764
9765 * observer.c (observer_test_first_notification_function)
9766 (observer_test_second_notification_function)
9767 (observer_test_third_notification_function): Add declarations.
9768
ed01b82c
PA
97692012-03-01 Pedro Alves <palves@redhat.com>
9770
9771 * common/signals.c (default_target_signal_to_host)
9772 (default_target_signal_from_host): Move ...
9773 * arch-utils.c: ... here.
9774 * arch-utils.h (default_target_signal_to_host)
9775 (default_target_signal_from_host): Declare.
9776
9777 * common/signals.c (target_signal_from_command): Move ...
9778 * infrun.c: ... here.
9779 * inferior.h (target_signal_from_command): Declare.
9780 * target.h (target_signal_from_command)
9781 (default_target_signal_from_host, default_target_signal_to_host):
9782 Delete declarations.
9783
9784 * common/signals.c (_initialize_signals): Delete.
9785
c9b87335
PA
97862012-03-01 Pedro Alves <palves@redhat.com>
9787
9788 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9789 both __cplusplus and !__cplusplus.
9790
9340a6c0
PA
97912012-03-01 Pedro Alves <palves@redhat.com>
9792
9793 * psymtab.c (find_and_open_source): Delete declaration.
9794 * source.c (find_and_open_source): Move comment ...
9795 * source.h (find_and_open_source): ... to this new declaration.
9796
e451c4a1
PA
97972012-03-01 Pedro Alves <palves@redhat.com>
9798
9799 * inline-frame.c: Include inline-frame.h.
9800
983fb104
PA
98012012-03-01 Pedro Alves <palves@redhat.com>
9802
9803 * tui/tui-data.c (set_gen_win_origin): Delete.
9804 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9805 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9806
5fbce5df
PA
98072012-03-01 Pedro Alves <palves@redhat.com>
9808
9809 * remote.c (encode_actions): Delete declaration.
9810 * tracepoint.c (encode_actions): Make extern.
9811 * tracepoint.h (encode_actions): Declare.
9812
49a8461d
PA
98132012-03-01 Pedro Alves <palves@redhat.com>
9814
9815 * python/py-breakpoint.c: Include python.h.
9816 * python/py-continueevent.c (create_continue_event_object): Make
9817 static.
9818 * python/py-lazy-string.c (stpy_get_type): Make static.
9819 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9820 Make static.
9821 * python/py-utils.c (unicode_to_target_python_string): Make
9822 static.
9823 * python/py-value.c: Include python.h.
9824
9079102f
PA
98252012-03-01 Pedro Alves <palves@redhat.com>
9826
9827 * inferior.c (delete_threads_of_inferior): Delete.
9828
a298c5e8
PA
98292012-03-01 Pedro Alves <palves@redhat.com>
9830
9831 Import fallback definitions from glibc.
9832
9833 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9834 ps_prochandle): Forward declare.
9835 (ps_err_e): Use glibc's comments.
9836 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9837 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9838 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9839 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9840 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9841 (struct ps_prochandle): Adjust comment.
9842
e3084549
PA
98432012-03-01 Pedro Alves <palves@redhat.com>
9844
9845 * ada-lang.c (ada_modulus_from_name): Delete.
9846 * ada-lex.l (lexer_init): Make static.
9847
ad5f7d6e
PA
98482012-03-01 Pedro Alves <palves@redhat.com>
9849
9850 PR gdb/13767
9851
9852 * frame.c (read_frame_register_unsigned): New.
9853 * frame.h (read_frame_register_unsigned): Declare.
9854 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9855 Handle it.
9856 (print_i387_control_word): New parameter `control_p'. Handle it.
9857 (i387_print_float_info): Handle unavailable float registers.
9858
e0a4d108
KS
98592012-03-01 Keith Seitz <keiths@redhat.com>
9860
9861 * linespec.c (decode_line_2): Sort the list of methods
9862 alphabetically before presenting the user with a selection
9863 menu.
9864
122d1940
DE
98652012-03-01 Doug Evans <dje@google.com>
9866
9867 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9868 has_namespace_info.
9869 (dwarf2_read_abbrevs): Remove corresponding initialization.
9870
7d74f244
DE
98712012-03-01 Scott J. Goldman <scottjg@vmware.com>
9872
9873 * NEWS: Mention new python command class gdb.COMMAND_USER.
9874 * cli/cli-cmds.c (show_user): Print error when used on a python
9875 command.
9876 (init_cli_cmds): Update documentation strings for "show user" and
9877 "set/show max-user-call-depth" to clarify that it does not apply to
9878 python commands.
9879 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9880 error check.
9881 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9882 gdb python api.
9883 * top.c (execute_command): Only execute a user-defined command as a
9884 legacy macro if c->user_commands is set.
9885
e88acd96
TT
98862012-03-01 Tom Tromey <tromey@redhat.com>
9887
9888 * valprint.h (struct generic_val_print_decorations): New.
9889 (generic_val_print): Declare.
9890 * valprint.c (generic_val_print): New function.
9891 * p-valprint.c (p_decorations): New global.
9892 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9893 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9894 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9895 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9896 * m2-valprint.c (m2_decorations): New global.
9897 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9898 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9899 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9900 TYPE_CODE_ERROR>: Call generic_val_print.
9901 * f-valprint.c (f_decorations): New global.
9902 (f_val_print): Use print_function_pointer_address.
9903 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9904 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9905 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9906 generic_val_print.
9907 * c-valprint.c (c_decorations): New global.
9908 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9909 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9910 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9911 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9912 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9913 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9914 case.
9915
d3eab38a
TT
99162012-03-01 Tom Tromey <tromey@redhat.com>
9917
9918 * valprint.c (val_print): Update.
9919 * p-valprint (pascal_val_print): Return void.
9920 * p-lang.h (pascal_val_print): Return void.
9921 * m2-valprint.c (m2_val_print): Return void.
9922 * m2-lang.h (m2_val_print): Return void.
9923 * language.h (struct language_defn) <la_val_print>: Return void.
9924 * language.c (unk_lang_val_print): Return void.
9925 * jv-valprint.c (java_val_print): Return void.
9926 * jv-lang.h (java_val_print): Return void.
9927 * f-valprint.c (f_val_print): Return void.
9928 * f-lang.h (f_val_print): Return void.
9929 * d-valprint.c (d_val_print): Return void.
9930 (dynamic_array_type): Update.
9931 * d-lang.h (d_val_print): Return void.
9932 * c-valprint.c (c_val_print): Return void.
9933 * c-lang.h (c_val_print): Return void.
9934 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9935 void.
9936 * ada-lang.h (ada_val_print): Return void.
9937
35c0084b
TT
99382012-03-01 Tom Tromey <tromey@redhat.com>
9939
9940 * value.h (val_print): Return void.
9941 * valprint.c (val_print): Return void.
9942
a1f5dd1b
TT
99432012-03-01 Tom Tromey <tromey@redhat.com>
9944
9945 * value.h (common_val_print): Return void.
9946 * valprint.c (common_val_print): Return void.
9947
8e069a98
TT
99482012-03-01 Tom Tromey <tromey@redhat.com>
9949
9950 * value.h (value_print): Return void.
9951 * valprint.c (value_print): Return void.
9952 * p-valprint.c (pascal_value_print): Return void.
9953 * p-lang.h (pascal_value_print): Return void.
9954 * language.h (struct language_defn) <la_value_print>: Return
9955 void.
9956 * language.c (unk_lang_value_print): Return void.
9957 * jv-valprint.c (java_value_print): Return void.
9958 * jv-lang.h (java_value_print): Return void.
9959 * f-valprint.c (c_value_print): Don't declare.
9960 Include c-lang.h.
9961 * c-valprint.c (c_value_print): Return void.
9962 * c-lang.h (c_value_print): Return void.
9963 * ada-valprint.c (ada_value_print): Return void.
9964 * ada-lang.h (ada_value_print): Return void.
9965
be335936
TT
99662012-03-01 Tom Tromey <tromey@redhat.com>
9967
9968 * value.c (value_primitive_field): Handle virtual base classes.
9969
b0db66a7
TT
99702012-03-01 Tom Tromey <tromey@redhat.com>
9971
9972 * gdbtypes.h (struct vbase): Remove.
9973
132c57b4
TT
99742012-03-01 Tom Tromey <tromey@redhat.com>
9975
9976 * c-valprint.c (print_function_pointer_address): Move...
9977 * valprint.c: ... here. Make non-static.
9978 * m2-valprint.c (print_function_pointer_address): Remove.
9979 * valprint.h (print_function_pointer_address): Declare.
9980
e41eec66
JB
99812012-03-01 Joel Brobecker <brobecker@adacore.com>
9982
9983 * NEWS: Document the fact that one can provide a condition when
9984 creating an Ada exception catchpoint.
9985
19c37f24
TT
99862012-03-01 Tom Tromey <tromey@redhat.com>
9987
9988 * valprint.c (val_print_type_code_flags): Fix placement of
9989 trailing brace.
9990
f0fed3a3
JB
99912012-03-01 Joel Brobecker <brobecker@adacore.com>
9992
9993 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9994 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9995 environment variable before calling update-copyright.
9996
8ba85d85
JB
99972012-03-01 Joel Brobecker <brobecker@adacore.com>
9998
9999 * gnulib/extra/update-copyright: Update to the latest from
10000 gnulib's git repository.
10001 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10002 variable to 2 instead of 1.
10003
8219b1e8
JB
100042012-02-29 Joel Brobecker <brobecker@adacore.com>
10005
10006 * varobj.c (c_value_of_variable): Remove dead code.
10007
718cb7da
JB
100082012-02-29 Joel Brobecker <brobecker@adacore.com>
10009
10010 * ada-lex.p (processId): Do not modify already encoded IDs.
10011 Update function documentation.
10012
739593e0
JB
100132012-02-29 Joel Brobecker <brobecker@adacore.com>
10014
10015 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10016 "name" with "struct symbol *name_sym".
10017 * ada-exp.y (write_var_or_type): Update call to
10018 ada_find_renaming_symbol.
10019 "name" with "struct symbol *name_sym". Adjust Implementation
10020 accordingly. Adjust the function documentation.
10021
852dff6c
JB
100222012-02-29 Joel Brobecker <brobecker@adacore.com>
10023
10024 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10025 * ada-lang.c (ada_find_any_type): Add advance declaration.
10026 Make static. Replace ada_find_any_symbol by
10027 ada_find_any_type_symbol.
10028 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10029 Improve function description. Make static.
10030 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10031 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10032
1b611343
JB
100332012-02-29 Joel Brobecker <brobecker@adacore.com>
10034
10035 * ada-lang.c (struct tag_args): Delete.
10036 (ada_get_tsd_type): Function body moved up in source file.
10037 (ada_tag_name_1, ada_tag_name_2): Delete.
10038 (ada_get_tsd_from_tag): New function.
10039 (ada_tag_name_from_tsd): New function.
10040 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10041 to determine the tag name.
10042
41246937
JB
100432012-02-29 Joel Brobecker <brobecker@adacore.com>
10044
10045 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10046 declaration.
10047 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10048 function.
10049
ffde82bf
JB
100502012-02-29 Joel Brobecker <brobecker@adacore.com>
10051
10052 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10053
2ad01556
JB
100542012-02-29 Joel Brobecker <brobecker@adacore.com>
10055
10056 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10057 full searches.
10058
99b1c762
JB
100592012-02-29 Joel Brobecker <brobecker@adacore.com>
10060
10061 * ada-lang.c (constrained_packed_array_type): If there is a
10062 parallel XA type, use it to determine the array index type.
10063
2d4a02ee
JB
100642012-02-29 Joel Brobecker <brobecker@adacore.com>
10065
10066 * ada-valprint.c (ada_val_print_1): If our value is a reference
10067 to an array descriptor, dereference it before converting it
10068 to a simple array.
10069
c48db5ca
JB
100702012-02-29 Joel Brobecker <brobecker@adacore.com>
10071
10072 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10073 creating fixed value.
10074 (ada_value_ind, ada_coerce_ref, assign_component)
10075 (ada_evaluate_subexp): Remove call to unwrap_value before
10076 call to ada_to_fixed_value.
10077
2e6fda7d
JB
100782012-02-29 Joel Brobecker <brobecker@adacore.com>
10079
10080 * ada-lang.c (to_fixed_array_type): Set result's type name.
10081
5845583d
JB
100822012-02-29 Joel Brobecker <brobecker@adacore.com>
10083
10084 * ada-lang.c (catch_ada_exception_command_split): Add new
10085 argument cond_string. Add support for condition at end of
10086 "catch exception" commands.
10087 (ada_decode_exception_location): Add new argument cond_string.
10088 Update call to catch_ada_exception_command_split.
10089 (create_ada_exception_catchpoint): Add new argument cond_string.
10090 Set the breakpoint condition if needed.
10091 (catch_ada_exception_command): Update call to
10092 ada_decode_exception_location.
10093 (ada_decode_assert_location): Add function documentation.
10094 Add support for condition at end of "catch assert" command.
10095 (catch_assert_command): Update calls to ada_decode_assert_location
10096 and create_ada_exception_catchpoint.
10097
9a7f938f
JK
100982012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10099
10100 Fix disp-step-syscall.exp: fork: single step over fork.
10101 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10102 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10103 comment, change parameters gdbarch and ptid to regcache. Remove
10104 parameter regcache, initialize gdbarch from regcache here.
10105 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10106 New functions.
10107 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10108 instead.
10109 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10110 'syscall'. Make the 'int' check more strict.
10111
ffdf6de5
JK
101122012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10113
10114 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10115 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10116 (i386_linux_intx80_sysenter_syscall_record): ... here.
10117 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10118 Use the renamed function name.
10119
c70a6932
JK
101202012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10121
10122 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10123 * breakpoint.c (until_break_command): Likewise.
10124 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10125 * infcall.c (call_function_by_hand): Likewise.
10126 * infcmd.c (finish_forward): Likewise.
10127 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10128
05b8a789 101292012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10130
d4cd3da9
JB
10131 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10132 avoid variable assignments inside condition.
10133
6425366c
JK
101342012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10135
10136 Fix static analysis issue found by cppcheck.
10137 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10138 uninitialized BUF for size 2.
10139
c8cef75f 101402012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10141 Nathan Froyd <froydnj@codesourcery.com>
10142 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10143
10144 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10145 (mips16_instruction_has_delay_slot): Likewise.
10146 (mips_segment_boundary): Likewise.
10147 (mips_adjust_breakpoint_address): Likewise.
10148 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10149
473347ad 101502012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10151 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10152
10153 * infrun.c (handle_inferior_event): Don't proceed through
10154 shared library trampolines if stepping at the machine
10155 instruction level.
10156
cf233303
MR
101572012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10158
10159 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10160 too.
10161
cb2cf4ce
TS
101622012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10163
10164 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10165 (sh_stub_unwind_sniffer): New functions.
10166 (sh_stub_unwind): New variable.
10167 (sh_gdbarch_init): Wire everything.
10168
644cebc9
PA
101692012-02-27 Pedro Alves <palves@redhat.com>
10170
10171 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10172 (linux_nat_post_attach_wait): Adjust to use
10173 linux_proc_pid_is_stopped.
10174 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10175 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10176 based on pid_is_stopped from both linux-nat.c and
10177 gdbserver/linux-low.c, and renamed.
10178
283002cf
MR
101792012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10180
10181 * remote.c (remote_watchpoint_addr_within_range): New function.
10182 (init_remote_ops): Use it.
10183
9b3e86b1
MR
101842012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10185
10186 * target.h (target_watchpoint_addr_within_range): Document macro.
10187
e36930bb
PA
101882012-02-24 Pedro Alves <palves@redhat.com>
10189
10190 * stack.c (set_last_displayed_sal): Issue internal_error instead
10191 of warning, and issue it after clearing the last displayed sal.
10192
883bc8d1
PA
101932012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10194 Pedro Alves <palves@redhat.com>
10195
10196 * breakpoint.c (until_break_command): Install breakpoints after
10197 all frame manipulations.
10198
b775012e
LM
101992012-02-24 Luis Machado <lgustavo@codesourcery.com>
10200
10201 * remote.c (remote_supports_cond_breakpoints): New forward
10202 declaration.
10203 (remote_add_target_side_condition): New function.
10204 (remote_insert_breakpoint): Add target-side breakpoint
10205 conditional if supported.
10206 (remote_insert_hw_breakpoint): Likewise.
10207 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10208 hook.
10209
10210 * target.c (update_current_target): Inherit
10211 to_supports_evaluation_of_breakpoint_conditions.
10212 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10213
10214 * target.h (struct target_ops)
10215 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10216 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10217
10218 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10219 (condition_evaluation_both, condition_evaluation_auto,
10220 condition_evaluation_host, condition_evaluation_target,
10221 condition_evaluation_enums, condition_evaluation_mode_1,
10222 condition_evaluation_mode): New static globals.
10223 (translate_condition_evaluation_mode): New function.
10224 (breakpoint_condition_evaluation_mode): New function.
10225 (gdb_evaluates_breakpoint_condition_p): New function.
10226 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10227 (mark_breakpoint_modified): New function.
10228 (mark_breakpoint_location_modified): New function.
10229 (set_condition_evaluation_mode): New function.
10230 (show_condition_evaluation_mode): New function.
10231 (bp_location_compare_addrs): New function.
10232 (get_first_location_gte_addr): New helper function.
10233 (set_breakpoint_condition): Free condition bytecode if locations
10234 has become unconditional. Call mark_breakpoint_modified (...).
10235 (condition_command): Call update_global_location_list (1) for
10236 breakpoints.
10237 (breakpoint_xfer_memory): Use is_breakpoint (...).
10238 (is_breakpoint): New function.
10239 (parse_cond_to_aexpr): New function.
10240 (build_target_condition_list): New function.
10241 (insert_bp_location): Handle target-side conditional
10242 breakpoints and call build_target_condition_list (...).
10243 (update_inserted_breakpoint_locations): New function.
10244 (insert_breakpoint_locations): Handle target-side conditional
10245 breakpoints.
10246 (bpstat_check_breakpoint_conditions): Add comment.
10247 (bp_condition_evaluator): New function.
10248 (bp_location_condition_evaluator): New function.
10249 (print_breakpoint_location): Print information on where the condition
10250 will be evaluated.
10251 (print_one_breakpoint_location): Likewise.
10252 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10253 breakpoint location.
10254 (force_breakpoint_reinsertion): New functions.
10255 (update_global_location_list): Handle target-side breakpoint
10256 conditions.
10257 Reinsert locations that are already inserted if conditions have
10258 changed.
10259 (bp_location_dtor): Free agent expression bytecode.
10260 (disable_breakpoint): Call mark_breakpoint_modified (...).
10261 Call update_global_location_list (...) with parameter 1 for breakpoints.
10262 (disable_command): Call mark_breakpoint_location_modified (...).
10263 Call update_global_location_list (...) with parameter 1 for breakpoints.
10264 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10265 (enable_command): mark_breakpoint_location_modified (...).
10266 (_initialize_breakpoint): Update documentation and add
10267 condition-evaluation breakpoint subcommand.
10268
10269 * breakpoint.h: Include ax.h.
10270 (condition_list): New data structure.
10271 (condition_status): New enum.
10272 (bp_target_info) <cond_list>: New field.
10273 (bp_location) <condition_changed, cond_bytecode>: New fields.
10274 (is_breakpoint): New prototype.
10275
3788aec7
LM
102762012-02-24 Luis Machado <lgustavo@codesourcery.com>
10277
10278 * remote.c (remote_state) <cond_breakpoints>: New field.
10279 (PACKET_ConditionalBreakpoints): New enum.
10280 (remote_cond_breakpoint_feature): New function.
10281 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10282 (remote_supports_cond_breakpoints): New function.
10283 (_initialize_remote): Add new packet configuration for
10284 target-side conditional breakpoints.
10285
72895ff6
LM
102862012-02-24 Luis Machado <lgustavo@codesourcery.com>
10287
10288 * NEWS: Mention target-side conditional breakpoint support,
10289 new condition-evaluation breakpoint subcommand and remote
10290 packet extensions.
10291
dea2aa5f
LM
102922012-02-24 Luis Machado <lgustavo@codesourcery.com>
10293
10294 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10295 number.
10296
8a8bc27f
TS
102972012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10298
10299 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10300 (after_prologue): Remove.
10301
6b446fdf
TT
103022012-02-23 Tom Tromey <tromey@redhat.com>
10303
10304 * jv-valprint.c (java_val_print): Remove dead code.
10305
ef59abfb
TG
103062012-02-23 Tristan Gingold <gingold@adacore.com>
10307
a09130f9
PA
10308 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10309 known_tasks_element and known_tasks_length fields.
10310 (read_known_tasks_array): Change argument type. Use pointer type
10311 and number of elements from DATA. Adjust.
10312 (read_known_tasks_list): Likewise.
10313 (get_known_tasks_addr): Remove.
10314 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10315 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10316 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10317
def166f6
JK
103182012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10319
10320 PR backtrace/13716
10321 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10322 it after set_momentary_breakpoint.
10323
aeaa2474
SA
103242012-02-22 Sterling Augustine <saugustine@google.com>
10325
10326 PR 13689:
10327 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10328
feea76c2
GB
103292012-02-22 Gary Benson <gbenson@redhat.com>
10330
10331 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10332 (find_slot_in_mapped_hash): Likewise.
10333
f06e05e0
JK
103342012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10335
10336 PR build/13638
10337 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10338 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10339 * configure: Regenerate.
10340
b54a8fd7
PA
103412012-02-21 Tristan Gingold <gingold@adacore.com>
10342 Pedro Alves <palves@redhat.com>
10343
10344 * ia64-tdep.c: Do not include libunwind-ia64.h.
10345 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10346 Include libunwind-ia64.h instead of libunwind.h.
10347 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10348 for libunwind.h existence.
10349 * configure, config.in: Regenerate.
10350
dfcee124
AG
103512012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10352
10353 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10354 instead of value_rtti_target_type.
10355 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10356 instead of value_rtti_target_type.
10357 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10358 value_rtti_target_type.
10359 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10360 (value_rtti_target_type): Rename to ...
10361 (value_rtti_indirect_type): ... here and make it indirect. Update
10362 function comment.
10363 * value.c (readjust_indirect_value_type): New function.
10364 (coerce_ref): Support for enclosing type setting for references
10365 with readjust_indirect_value_type.
10366 * value.h (readjust_value_type): New declaration.
10367 (value_rtti_target_type): Rename to ...
10368 (value_rtti_indirect_type): ... here.
10369
02568277
AG
103702012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10371
10372 * MAINTAINERS (Write After Approval): Add myself to the list.
10373
10c07b7e 103742012-02-20 Doug Evans <dje@google.com>
28ee876a 10375
d82ea6a8
DE
10376 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10377 Rename objfile_p_char parameter to objfilep.
10378 (build_objfile_section_table): Result is now void. All callers
10379 updated.
10380 * objfiles.h (struct objfile): Tweak comments, whitespace.
10381 (build_objfile_section_table): Update.
10382
28ee876a
DE
10383 * elfread.c (elf_symfile_segments): Fix warning text.
10384
24c79950
TT
103852012-02-20 Tom Tromey <tromey@redhat.com>
10386
10387 PR gdb/13498:
10388 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10389 particular set of file names once.
10390 (dw2_map_symbol_filenames): Likewise.
10391
3a9b40b6
JK
103922012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10393
10394 Code cleanup.
10395 * main.c (write_files): Remove the declaration.
10396 (external_editor_command): Move the declaration ...
10397 [GDBTK] (external_editor_command): ... here. Fix the comment.
10398
4d0795ca
TT
103992012-02-20 Tom Tromey <tromey@redhat.com>
10400
10401 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10402 extraneous block.
10403
637fd620
TG
104042012-02-20 Tristan Gingold <gingold@adacore.com>
10405
10406 * darwin-nat.h (enum darwin_msg_state): Add comments.
10407
6f124894
TG
104082012-02-20 Tristan Gingold <gingold@adacore.com>
10409
10410 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10411 value.
10412
2e6e3d9c
JB
104132012-20-18 Joel Brobecker <brobecker@adacore.com>
10414
10415 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10416 between function description and implementation.
10417
2e8265fd
TT
104182012-02-17 Tom Tromey <tromey@redhat.com>
10419
10420 PR python/12070:
10421 * python/py-event.c (event_object_getset): New global.
10422 (event_object_type): Reference it.
10423 * python/py-type.c (field_object_getset): New global.
10424 (field_object_type): Reference it.
10425 * python/python-internal.h (gdb_py_generic_dict): Declare.
10426 * python/py-utils.c (gdb_py_generic_dict): New function.
10427
8544a150 104282012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10429
8544a150 10430 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10431
ca193e27
TS
104322012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10433
10434 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10435 TYPE_CALLING_CONVENTION annotation.
10436
e5586183
KB
104372012-02-16 Kevin Buettner <kevinb@redhat.com>
10438
10439 * MAINTAINERS: Add rx to target ISA section.
10440 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10441 (ALLDEPFILES): Add rx-tdep.c.
10442
7dcd53a0
TT
104432012-02-16 Tom Tromey <tromey@redhat.com>
10444
10445 * symfile.c (symbol_file_add_main_1): Use inferior's
10446 symfile_flags.
10447 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10448 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10449 inferior.
10450 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10451 inferior.
10452 (follow_exec): Use inferior's symfile_flags.
10453 * inferior.h (struct inferior) <symfile_flags>: New field.
10454
ddd60447
MF
104552012-02-16 Mike Frysinger <vapier@gentoo.org>
10456
10457 PR gdb/9734:
10458 * remote-sim.c (gdbsim_create_inferior): Call error() when
10459 sim_create_inferior() fails.
10460
b0d32fb6
TG
104612012-02-16 Josh Matthews <josh@joshmatthews.net>
10462
10463 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10464
9addecb9
TT
104652012-02-16 Tom Tromey <tromey@redhat.com>
10466
10467 PR c++/13653:
10468 * thread.c (struct current_thread_cleanup) <was_removable>: New
10469 field.
10470 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10471 (make_cleanup_restore_current_thread): Initialize new field.
10472
a58b110a
KB
104732012-02-15 Kevin Buettner <kevinb@redhat.com>
10474
10475 * MAINTAINERS: Add rl78 to target ISA section.
10476 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10477 (ALLDEPFILES): Add rl78-tdep.c.
10478 * NEWS: Mention rl78 as a new target.
10479
4cb6da1c
AR
104802012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10481
10482 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10483 data.
10484 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10485
3af2590d
TT
104862012-02-15 Tom Tromey <tromey@redhat.com>
10487
10488 PR gdb/12659:
10489 * infcmd.c (registers_info): Print just the current register's
10490 name.
10491
c6910659
TT
104922012-02-15 Tom Tromey <tromey@redhat.com>
10493
10494 * python/py-symbol.c (sympy_value): Use _().
10495
7cee1e54
PA
104962012-02-15 Pedro Alves <palves@redhat.com>
10497
10498 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10499 output to be like native targets'.
10500 (remote_pid_to_str): Special case the null ptid.
10501
816338b5
SS
105022012-02-14 Stan Shebs <stan@codesourcery.com>
10503
10504 * NEWS: Mention enable count command.
10505 * breakpoint.h (struct breakpoint): New field enable_count.
10506 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10507 (enable_breakpoint): Add arg to call.
10508 (struct disp_data): New struct.
10509 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10510 (do_map_enable_once_breakpoint): Create a struct and pass it.
10511 (do_map_enable_delete_breakpoint): Ditto.
10512 (do_map_enable_count_breakpoint): New function.
10513 (enable_count_command): New function.
10514 (bpstat_stop_status): Decrement enable_count.
10515 (print_one_breakpoint_location): Report enable count.
10516 (_initialize_breakpoint): Add enable count command.
10517
c47a44f4
KB
105182012-02-14 Kevin Buettner <kevinb@redhat.com>
10519
10520 * rl78-tdep.c (reggroups.h): Include.
10521 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10522 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10523 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10524 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10525 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10526 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10527 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10528 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10529 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10530 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10531 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10532 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10533 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10534 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10535 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10536 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10537 beginning of register list.
10538 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10539 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10540 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10541 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10542 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10543 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10544 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10545 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10546 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10547 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10548 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10549 the pseudo registers. Rearrange other pseudo registers too so
10550 that the bank registers appear at the end.
10551 (rl78_register_type): Account for the fact that the byte sized
10552 bank registers are now pseudo-registers.
10553 (rl78_register_name): Rearrange the register name array. Make
10554 initial set of raw banked registers inaccessible.
10555 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10556 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10557 case for copying bytes back and forth between raw and pseudo
10558 versions of the banked registers. Update other cases to reflect
10559 the changed names.
10560 (rl78_return_value): Update to account for changed names of
10561 raw registers.
10562 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10563 rl78_register_sim_regno().
10564
e4569f1e
KB
105652012-02-14 Kevin Buettner <kevinb@redhat.com>
10566
10567 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10568 the name parameter being passed to find_pc_partial_function().
10569
7a05aae7
JK
105702012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10571
10572 * MAINTAINERS: Step down from being ia64 target maintainer.
10573
11fde611
JK
105742012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10575
10576 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10577 compilation warning.
10578
57008375
JK
105792012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10580
10581 Fix crash on loaded shlibs without loaded exec_bfd.
10582 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10583 (set_section_command): Replace exec_bfd by p->bfd.
10584
ff3c9849
TT
105852012-02-10 Tom Tromey <tromey@redhat.com>
10586
10587 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10588 when we have a C++ qualified name.
10589
db2b9fdd
PA
105902012-02-10 Pedro Alves <palves@redhat.com>
10591
10592 * inferior.c (inferior_pid_to_str): New.
10593 (print_inferior, inferior_command): Use it.
10594
12cd34f3
PA
105952012-02-10 Pedro Alves <palves@redhat.com>
10596
10597 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10598 the test CFLAGS.
10599 * configure: Regenerate.
10600
e871429d
JK
106012012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10602
10603 * linespec.c (decode_line_internal): Fix comment correctness.
10604
1916efaf
PA
106052012-02-09 Valery Khromov <valery.khromov@gmail.com>
10606
10607 PR gdb/12953
10608 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10609 * amd64bsd-nat.c: Add support for debug registers (adapted from
10610 i386bsd-nat.c).
10611 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10612 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10613 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10614 (amd64bsd_dr_get_control): New functions.
10615 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10616 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10617 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10618 watchpoints initialization.
10619 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10620
f4859d94
JK
106212012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10622
10623 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10624 flds_bnds.fields.
10625 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10626
c56a97f9
JK
106272012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10628
10629 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10630
1a119f36
JB
106312012-02-08 Joel Brobecker <brobecker@adacore.com>
10632
10633 * language.h (symbol_name_cmp_ftype): Renames
10634 symbol_name_match_p_ftype.
10635 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10636 la_get_symbol_name_match_p.
10637 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10638 ada_get_symbol_name_match_p. Update comment.
10639 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10640 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10641 Renames symbol_name_match_p. Update field type.
10642 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10643 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10644 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10645 "la_get_symbol_name_cmp" in comments.
10646 * language.c: Likewise.
10647
c71bb1cf
RO
106482012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10649
10650 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10651 %eflags offset.
10652 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10653 (amd64_sol2_gregset32_reg_offs): Likewise.
10654
4b2d20a5
TG
106552012-02-08 Joel Brobecker <brobecker@adacore.com>
10656
10657 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10658 of the returned BFD is allocated by GDB.
10659
f0823d2c
TT
106602012-02-07 Tom Tromey <tromey@redhat.com>
10661
10662 PR python/12027:
10663 * python/python-internal.h (frame_object_type): Declare.
10664 * python/py-symbol.c (sympy_needs_frame): New function.
10665 (sympy_value): New function.
10666 (symbol_object_getset): Add "needs_frame".
10667 (symbol_object_methods): Add "value".
10668 * python/py-frame.c (frame_object_type): No longer static.
10669
64e7d9dd
TT
106702012-02-07 Tom Tromey <tromey@redhat.com>
10671
10672 PR python/13599:
10673 * python/py-symbol.c (sympy_line): New function.
10674 (symbol_object_getset): Add "line".
10675
1d6b2d2b
TT
106762012-02-07 Tom Tromey <tromey@redhat.com>
10677
10678 * charset.c (find_charset_names): Check 'in' against NULL.
10679
0d5cff50
DE
106802012-02-06 Doug Evans <dje@google.com>
10681
10682 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10683 and fields.name members from char * to const char *. All uses updated.
10684 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10685 from char * to const char *. All uses updated.
10686 (type_name_no_tag): Update.
10687 (lookup_unsigned_typename, lookup_signed_typename): Update.
10688 * gdbtypes.c (type_name_no_tag): Change result type
10689 from char * to const char *. All callers updated.
10690 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10691 name parameter from char * to const char *.
10692 * symtab.h (struct cplus_specific): Change type of demangled_name
10693 member from char * to const char *. All uses updated.
10694 (struct general_symbol_info): Change type of name and
10695 mangled_lang.demangled_name members from char * to const char *.
10696 All uses updated.
10697 (symbol_get_demangled_name, symbol_natural_name): Update.
10698 (symbol_demangled_name, symbol_search_name): Update.
10699 * symtab.c (symbol_get_demangled_name): Change result type
10700 from char * to const char *. All callers updated.
10701 (symbol_natural_name, symbol_demangled_name): Ditto.
10702 (symbol_search_name): Ditto.
10703 (completion_list_add_name): Change type of symname,sym_text,
10704 text,word parameters from char * to const char *.
10705 (completion_list_objc_symbol): Change type of sym_text,
10706 text,word parameters from char * to const char *.
10707 * ada-lang.c (find_struct_field): Change type of name parameter
10708 from char * to const char *.
10709 (encoded_ordered_before): Similarly for N0,N1 parameters.
10710 (old_renaming_is_invisible): Similarly for function_name parameter.
10711 (ada_type_name): Change result type from char * to const char *.
10712 All callers updated.
10713 * ada-lang.h (ada_type_name): Update.
10714 * buildsym.c (hashname): Change type of name parameter
10715 from char * to const char *.
10716 * buildsym.h (hashname): Update.
10717 * dbxread.c (end_psymtab): Change type of include_list parameter
10718 from char ** to const char **.
10719 * dwarf2read.c (determine_prefix): Change result type
10720 from char * to const char *. All callers updated.
10721 * f-lang.c (find_common_for_function): Change type of name, funcname
10722 parameters from char * to const char *.
10723 * f-lang.c (find_common_for_function): Update.
10724 * f-valprint.c (list_all_visible_commons): Change type of funcname
10725 parameters from char * to const char *.
10726 * gdbarch.sh (static_transform_name): Change type of name parameter
10727 and result from char * to const char *.
10728 * gdbarch.c: Regenerate.
10729 * gdbarch.h: Regenerate.
10730 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10731 of name parameter from char * to const char *.
10732 * jv-lang.c (java_primitive_type_from_name): Ditto.
10733 (java_demangled_signature_length): Similarly for signature parameter.
10734 (java_demangled_signature_copy): Ditto.
10735 (java_demangle_type_signature): Ditto.
10736 * jv-lang.h (java_primitive_type_from_name): Update.
10737 (java_demangle_type_signature): Update.
10738 * objc-lang.c (specialcmp): Change type of a,b parameters
10739 from char * to const char *.
10740 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10741 from char * to const char *. All callers updated.
10742 * p-lang.h (is_pascal_string_type): Update.
10743 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10744 of name parameter from char * to const char *.
10745 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10746 * utils.c (fprintf_symbol_filtered): Ditto.
10747 * defs.h (fprintf_symbol_filtered): Update.
10748 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10749 * stabsread.h (end_psymtab): Update.
10750 * stack.c (find_frame_funname): Change type of funname parameter
10751 from char ** to const char **.
10752 * stack.h (find_frame_funname): Update.
10753 * typeprint.c (type_print): Change type of varstring parameter
10754 from char * to const char *.
10755 * value.h (type_print): Update.
10756 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10757 from char * to const char *. All callers updated.
10758 (xcoff_end_psymtab): Change type of include_list parameter
10759 from char ** to const char **. All callers updated.
10760 (swap_sym): Similarly for name parameter. All callers updated.
10761 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10762 Use xstrdup.
10763 (process_coff_symbol): Use xstrdup.
10764 * stabsread.c (stabs_method_name_from_physname): Renamed from
10765 update_method_name_from_physname. Change result type from void
10766 to char *. All callers updated.
10767 (read_member_functions): In has_destructor case, store name in objfile
10768 obstack instead of malloc space. In !has_stub case, fix mem leak.
10769
5579a92e
TT
107702012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10771
10772 * configure: Rebuild.
10773 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10774 LDFLAGS.
10775
9058f767
KB
107762012-02-03 Kevin Buettner <kevinb@redhat.com>
10777
10778 * configure.tgt (rl78-*-elf): New target.
10779 * rl78-tdep.c: New file.
10780
5b37825d
PW
107812012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10782
10783 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10784 and continue the loop. Add QUIT statement.
10785
e009ee71
TT
107862012-02-03 Tom Tromey <tromey@redhat.com>
10787
10788 PR gdb/13596:
10789 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10790 bfd_lookup_symbol_from_symtab.
10791 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10792 gdb_bfd_lookup_symbol_from_symtab.
10793
f7e44f65
JB
107942012-02-03 Joel Brobecker <brobecker@adacore.com>
10795
10796 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10797 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10798 symbol. Add assertion that sym2 is never NULL.
10799
2c02bd72
DE
108002012-02-02 Doug Evans <dje@google.com>
10801
10802 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10803 "name" parameter to const char ** from char **. All callers updated.
10804 (find_pc_partial_function): Ditto.
10805 (cache_pc_function_name): Change type to const char * from char *.
10806 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10807 (find_pc_partial_function): Update.
10808 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10809 type of "name" parameter to const char * from char *.
10810 All uses updated.
10811 * arch-utils.c (generic_in_solib_return_trampoline): Change
10812 type of "name" parameter to const char * from char *.
10813 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10814 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10815 type of "name" parameter to const char * from char *.
10816 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10817 * gdbarch.c: Regenerate.
10818 * gdbarch.h: Regenerate.
10819 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10820 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10821 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10822 type of "name" parameter to const char * from char *.
10823 * skip.c (skip_function_pc): Ditto.
10824 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10825 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10826 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10827 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10828 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10829 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10830 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10831 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10832 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10833
e886a173
PA
108342012-02-02 Pedro Alves <palves@redhat.com>
10835
10836 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10837 the current inferior has no execution. Make sure the current
10838 remote process matches gdb's current inferior.
10839
c709a7c2
TT
108402012-02-02 Tom Tromey <tromey@redhat.com>
10841
10842 PR gdb/13405:
10843 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10844 read-only memory.
10845
f149aabd
TT
108462012-02-02 Tom Tromey <tromey@redhat.com>
10847
10848 PR gdb/9307:
10849 * symtab.c (lookup_language_this): Set block_found.
10850
03bef283
TT
108512012-02-01 Tom Tromey <tromey@redhat.com>
10852
10853 PR gdb/13431:
10854 * jit.c (struct jit_inferior_data): Rewrite.
10855 (struct jit_objfile_data): New.
10856 (get_jit_objfile_data): New function.
10857 (add_objfile_entry): Update.
10858 (jit_read_descriptor): Return int. Replace descriptor_addr
10859 argument with inf_data. Update. Don't call error.
10860 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10861 descriptor here.
10862 (jit_inferior_init): Don't look up descriptor. Don't call error.
10863 (jit_reset_inferior_data_and_breakpoints)
10864 (jit_inferior_created_observer): Remove.
10865 (jit_inferior_exit_hook): Update.
10866 (jit_executable_changed_observer): Remove.
10867 (jit_event_handler): Update.
10868 (free_objfile_data): Reset inferior data if needed.
10869 (_initialize_jit): Update.
10870
f0bbc364
TT
108712012-02-01 Tom Tromey <tromey@redhat.com>
10872
10873 * jit.c (bfd_open_from_target_memory): Move higher in file.
10874
47c1316c
TG
108752012-02-01 Tristan Gingold <gingold@adacore.com>
10876
10877 * libunwind-frame.c (libunwind_load): Display message if dlopen
10878 failed.
10879
8e704927
GB
108802012-02-01 Gary Benson <gbenson@redhat.com>
10881
09c7a31f 10882 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10883 (iterate_over_symbols): Use the above.
10884 * symtab.c (iterate_over_symbols): Likewise.
10885 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10886 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10887 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10888 (iterate_name_matcher): Document return values.
10889 (collect_one_symbol): Likewise.
10890 (collect_function_symbols): Likewise.
10891 (collect_symbols): Likewise.
10892
d9680e73
TT
108932012-02-01 Tom Tromey <tromey@redhat.com>
10894
10895 * ada-lang.c (resolve_subexp): Update.
10896 (ada_lookup_symbol_list): Add 'full_search' argument.
10897 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10898 ada_lookup_symbol_list.
10899 (ada_lookup_encoded_symbol): Update.
10900 (get_var_value): Update.
10901 * ada-exp.y (block_lookup): Update.
10902 (write_var_or_type): Update.
10903 (write_name_assoc): Update.
10904 * ada-lang.h (ada_lookup_symbol_list): Update.
10905
72e1143f
TT
109062012-01-31 Tom Tromey <tromey@redhat.com>
10907
10908 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10909 comment.
10910
ab2d2ad3
DE
109112012-01-31 Doug Evans <dje@google.com>
10912
10913 * symtab.h: Remove outdated comment.
e9111bf7 10914 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10915
bc884eba
JB
109162012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10917
10918 Fix build error in Darwin port.
10919 * i386-darwin-nat.c: Include i386-nat.h.
10920
8fc3fc34
TT
109212012-01-30 Tom Tromey <tromey@redhat.com>
10922
10923 PR breakpoints/13568:
10924 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10925 argument. Check for recursive includes.
10926 (dwarf_decode_macros): Create an include hash.
10927
5d853008
ME
109282012-01-30 Michael Eager <eager@eagercon.com>
10929
10930 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10931 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10932 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10933 (powerpc_linux_in_plt_stub): New function.
10934 (powerpc_linux_in_dynsym_resolve_code): New function.
10935 (ppc_skip_trampoline_code): New function.
10936 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10937 Use glibc_skip_solib_resolver.
10938
40478521
JK
109392012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10940
10941 Code cleanup: Make 1440 bytes of data segment read-only.
10942 * arch-utils.c (endian_enum): Make it const char *const [].
10943 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10944 Likewise.
10945 * breakpoint.c (always_inserted_enums): Likewise.
10946 * cli/cli-cmds.c (script_ext_enums): Likewise.
10947 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10948 enumlist parameter const char *const *.
10949 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10950 const char *const *.
10951 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10952 parameter const char *const *.
10953 * cris-tdep.c (cris_modes): Make it const char *const [].
10954 * filesystem.c (target_file_system_kinds): Likewise.
10955 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10956 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10957 (can_use_displaced_stepping_enum, scheduler_enums)
10958 (exec_direction_names): Likewise.
10959 * language.c (_initialize_language): Make the type_or_range_names and
10960 case_sensitive_names variables const char *const [].
10961 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10962 * python/python.c (python_excp_enums): Likewise.
10963 * remote.c (interrupt_sequence_modes): Likewise.
10964 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10965 * serial.c (logbase_enums): Likewise.
10966 * sh-tdep.c (sh_cc_enum): Likewise.
10967 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10968 Likewise.
10969 * symtab.c (multiple_symbols_modes): Likewise.
10970 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10971 Likewise.
10972 * utils.c (internal_problem_modes): Likewise.
10973
b3b8b934
JK
109742012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10975
10976 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10977 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10978 result.
10979
8c85a4e2
DE
109802012-01-27 Doug Evans <dje@google.com>
10981
10982 * configure.ac (with_python): Fix absolute path handling for win32.
10983 * configure: Regenerate.
10984
78d8b4d7
DE
109852012-01-26 Doug Evans <dje@google.com>
10986
eca864fe
DE
10987 * symtab.c: Whitespace cleanup, no code changes.
10988
7e082072
DE
10989 * symtab.c (lookup_symbol_in_language): Improve comment.
10990 (lookup_symbol_aux): Fix comment.
10991
7dc25483
DE
10992 * psymtab.c (add_psymbol_to_list): Result is now "void".
10993 * psympriv.h (add_psymbol_to_list): Update.
10994
78d8b4d7
DE
10995 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10996
4c63965b
JK
109972012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10998
10999 Do not open script filenames twice.
11000 * cli/cli-cmds.c (source_script_from_stream): Pass to
11001 source_python_script also STREAM.
11002 * python/py-auto-load.c (source_section_scripts): Pass to
11003 source_python_script_for_objfile also STREAM.
11004 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11005 also INPUT.
11006 * python/python-internal.h (source_python_script_for_objfile): New
11007 parameter file, rename parameter file to filename.
11008 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11009 instead if !_WIN32. Update the function comment.
11010 (source_python_script, source_python_script_for_objfile)
11011 (source_python_script): New parameter file, rename parameter file to
11012 filename. Pass FILENAME to python_run_simple_file.
11013 * python/python.h (source_python_script): New parameter file, rename
11014 parameter file to filename.
11015
88f38a04
PA
110162012-01-26 Pedro Alves <palves@redhat.com>
11017
11018 * corelow.c (core_has_fake_pid): Delete.
11019 (core_close): Delete references to `core_has_fake_pid'.
11020 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11021 (core_open): Delete references to `core_has_fake_pid'.
11022 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11023 the removed global.
11024
e078317b
JB
110252012-01-26 Joel Brobecker <brobecker@adacore.com>
11026
11027 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11028 Remove language parameter from name_matcher. Adjust the comment.
11029 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11030 Remove language parameter.
11031 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11032 * linespec.c (iterate_name_matcher): Likewise.
11033 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11034 name_matcher. Adjust call accordingly.
11035 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11036 (maintenance_check_symtabs): Adjust type of parameter "fun".
11037 * psymtab.h (maintenance_check_symtabs): Likewise.
11038
74ccd7f5
JB
110392012-01-26 Joel Brobecker <brobecker@adacore.com>
11040
11041 * language.h (symbol_name_match_p_ftype): New typedef.
11042 (struct language_defn): Replace field la_symbol_name_compare
11043 by la_get_symbol_name_match_p.
11044 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11045 (ada_language_defn): Use it.
11046 * linespec.c (struct symbol_matcher_data): New type.
11047 (iterate_name_matcher): Rewrite.
11048 (iterate_over_all_matching_symtabs): Pass a pointer to
11049 a symbol_matcher_data struct to expand_symtabs_matching
11050 instead of just the lookup name.
11051 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11052 opencl-lang.c, p-lang.c, language.c: Delete field
11053 la_symbol_name_compare, and replace by NULL for new field
11054 la_get_symbol_name_match_p.
11055 * symfile.h (struct quick_symbol_functions): Update comment.
11056
5d268276
TT
110572012-01-25 Tom Tromey <tromey@redhat.com>
11058
11059 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11060 dereferencing.
11061
edcc5120
TT
110622012-01-24 Tom Tromey <tromey@redhat.com>
11063
11064 PR symtab/12406:
11065 * solib.c (update_solib_list): Update the program space's
11066 added_solibs and deleted_solibs fields.
11067 * progspace.h (struct program_space) <added_solibs,
11068 deleted_solibs>: New fields.
11069 (clear_program_space_solib_cache): Declare.
11070 * progspace.c (release_program_space): Call
11071 clear_program_space_solib_cache.
11072 (clear_program_space_solib_cache): New function.
11073 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11074 bpstat_stop_status. Use handle_solib_event.
11075 * breakpoint.c: Include gdb_regex.h.
11076 (print_solib_event): New function.
11077 (bpstat_print): Use print_solib_event.
11078 (bpstat_stop_status): Add special case for bp_shlib_event.
11079 (handle_solib_event): New function.
11080 (bpstat_what): Use handle_solib_event.
11081 (struct solib_catchpoint): New.
11082 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11083 (breakpoint_hit_catch_solib, check_status_catch_solib)
11084 (print_it_catch_solib, print_one_catch_solib)
11085 (print_mention_catch_solib, print_recreate_catch_solib): New
11086 functions.
11087 (catch_solib_breakpoint_ops): New global.
11088 (catch_load_or_unload, catch_load_command_1)
11089 (catch_unload_command_1): New functions.
11090 (internal_bkpt_check_status): Add special case for
11091 bp_shlib_event.
11092 (internal_bkpt_print_it): Use print_solib_event.
11093 (initialize_breakpoint_ops): Initialize
11094 catch_solib_breakpoint_ops.
11095 (_initialize_breakpoint): Register "catch load" and "catch
11096 unload".
11097 * breakpoint.h (handle_solib_event): Declare.
11098 * NEWS: Add entry for "catch load" and "catch unload".
11099
fa864999
TT
111002012-01-24 Tom Tromey <tromey@redhat.com>
11101
11102 * ada-lang.c: Include gdb_vecs.h.
11103 * charset.c: Include gdb_vecs.h.
11104 * tracepoint.h: Include gdb_vecs.h.
11105 * gdb_vecs.h: New file.
11106
f90263c1
TT
111072012-01-24 Pedro Alves <pedro@codesourcery.com>
11108
11109 * breakpoint.c (breakpoint_hit_catch_fork)
11110 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11111 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11112 * infrun.c (inferior_has_forked, inferior_has_vforked)
11113 (inferior_has_execd, inferior_has_called_syscall): Delete.
11114 (handle_syscall_event): Get syscall_number from the execution
11115 control state's wait status.
11116 (wait_for_inferior): Don't clear syscall_number.
11117
09ac7c10
TT
111182012-01-24 Pedro Alves <palves@redhat.com>
11119
11120 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11121 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11122 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11123 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11124 `ws' parameter.
11125 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11126 false for events other than TARGET_SIGNAL_TRAP.
11127 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11128 Add `ws' parameter.
11129 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11130 events other than TARGET_SIGNAL_TRAP.
11131 (tracepoint_breakpoint_hit): Add `ws' parameter.
11132 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11133 parameter.
11134 (bpstat_stop_status): Same.
11135 (pc_at_non_inline_function): Same.
11136 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11137 to pass the current event's waitstatus to bpstat_stop_status
11138 and pc_at_non_inline_function.
11139
86eb7e95
JK
111402012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11141
11142 Code cleanup.
11143 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11144 Update the function comment for it.
11145 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11146 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11147 for STREAM.
11148
a9b3a50f
PA
111492012-01-24 Pedro Alves <palves@redhat.com>
11150
11151 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11152 outside `bs->stop' block.
11153 (bpstat_what): Rework bp_shlib_event handling.
11154 (internal_bkpt_check_status): If the breakpoint is a
11155 bp_shlib_event, then set bs->stop and bs->print if
11156 stop_on_solib_events is set.
11157
53fe1783
GB
111582012-01-24 Gary Benson <gbenson@redhat.com>
11159
11160 Delete #if 0'd out code.
11161 * stack.c (print_frame_label_vars): Remove.
11162 (catch_info): Likewise.
11163 (_initialize_stack): Remove "info catch" command.
11164 * NEWS: Mention the above.
11165
49c62f2e
PA
111662012-01-24 Pedro Alves <palves@redhat.com>
11167
11168 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11169 it.
11170 (remote_notice_new_inferior): If the remote end doesn't support
11171 the multiprocess extensions, then the PID is fake.
11172 (add_current_inferior_and_thread): New.
11173 (remote_start_remote): Use it.
11174 (extended_remote_attach_1): Adjust.
11175 (extended_remote_create_inferior_1): Use
11176 add_current_inferior_and_thread.
11177
d0d8b0c6
JK
111782012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11179
11180 Fix watchpoints to be specific for each inferior.
11181 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11182 current_program_space.
11183 * i386-nat.c (i386_inferior_data_cleanup): New.
11184 (i386_inferior_data_get): Replace variable inf_data_local by an
11185 inferior_data call.
11186 (i386_use_watchpoints): Initialize i386_inferior_data.
11187 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11188 specific iterate_over_lwps.
11189
4403d8e9
JK
111902012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11191
11192 Fix watchpoints across inferior fork.
11193 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11194 comment for linux_nat_iterate_watchpoint_lwps.
11195 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11196 linux_nat_iterate_watchpoint_lwps.
11197 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11198 * i386-linux-nat.c (update_debug_registers_callback): Update the
11199 comment for linux_nat_iterate_watchpoint_lwps.
11200 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11201 linux_nat_iterate_watchpoint_lwps.
11202 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11203 * i386-nat.c: Include inferior.h.
11204 (dr_mirror): Remove.
11205 (i386_inferior_data, struct i386_inferior_data)
11206 (i386_inferior_data_get): New.
11207 (i386_debug_reg_state): Use i386_inferior_data_get.
11208 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11209 (i386_insert_watchpoint, i386_remove_watchpoint)
11210 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11211 (i386_remove_hw_breakpoint): New variable state, use
11212 i386_debug_reg_state instead of DR_MIRROR.
11213 * linux-nat.c (delete_lwp): New declaration.
11214 (num_lwps): Move here from downwards.
11215 (delete_lwp_cleanup): New.
11216 (linux_child_follow_fork): Create new child_lp, call
11217 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11218 PTRACE_DETACH.
11219 (num_lwps): Move upwards.
11220 (linux_nat_iterate_watchpoint_lwps): New.
11221 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11222 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11223
2992c9a7 112242012-01-24 Joel Brobecker <brobecker@adacore.com>
11225
11226 GDB 7.4 released.
11227
e360902b
PA
112282012-01-23 Pedro Alves <palves@redhat.com>
11229
11230 * top.c (caution): Rename to ...
11231 (confirm): ... this.
11232 (show_caution): Rename to ...
11233 (show_confirm): ... this.
11234 (quit_cover): Adjust.
11235 (init_main): Adjust.
11236 * top.h (caution): Rename to ...
11237 (confirm): ... this.
11238 * utils.c (internal_vproblem, defaulted_query): Adjust.
11239
050a2e1d
PA
112402012-01-23 Pedro Alves <palves@redhat.com>
11241
11242 * top.c (caution): Update comment.
11243 (execute_command): Don't consider the current value of `caution'.
11244
77a35dd8
JK
112452012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11246
11247 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11248
a71b5a38
UW
112492012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11250
11251 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11252 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11253 * target.c (target_fileio_pwrite): Remove buffer address from
11254 debug output.
11255 (target_fileio_pread): Likewise.
11256
d99bd577
UW
112572012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11258
11259 * NEWS: Document remote "info proc" and "generate-core-file".
11260
35c2fab7
UW
112612012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11262
11263 * gdbarch.sh (find_memory_regions): New callback.
11264 * gdbarch.c, gdbarch.h: Regenerate.
11265
11266 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11267 callback before falling back to target method.
11268
11269 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11270 (linux_target_install_ops): No longer install it.
11271
11272 * linux-tdep.c (linux_find_memory_regions): New function.
11273 (linux_init_abi): Install it.
11274
6432734d
UW
112752012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11276
11277 * gdbarch.sh (make_corefile_notes): New architecture callback.
11278 * gdbarch.c: Regenerate.
11279 * gdbarch.h: Likewise.
11280
11281 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11282 before target_make_corefile_notes. If NULL is returned, the
11283 target does not support core file generation.
11284
11285 * linux-nat.c: Include "linux-tdep.h".
11286 (find_signalled_thread, find_stop_signal): Remove.
11287 (linux_nat_do_thread_registers): Likewise.
11288 (struct linux_nat_corefile_thread_data): Likewise.
11289 (linux_nat_corefile_thread_callback): Likewise.
11290 (iterate_over_spus): Likewise.
11291 (struct linux_spu_corefile_data): Likewise.
11292 (linux_spu_corefile_callback): Likewise.
11293 (linux_spu_make_corefile_notes): Likewise.
11294 (linux_nat_collect_thread_registers): New function.
11295 (linux_nat_make_corefile_notes): Replace contents by call to
11296 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11297 as native-only callback.
11298
11299 * linux-tdep.h: Include "bfd.h".
11300 (struct regcache): Add forward declaration.
11301 (linux_collect_thread_registers_ftype): New typedef.
11302 (linux_make_corefile_notes): Add prototype.
11303 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11304 "regset.h", and "elf-bfd.h".
11305 (find_signalled_thread, find_stop_signal): New functions.
11306 (linux_spu_make_corefile_notes): Likewise.
11307 (linux_collect_thread_registers): Likewise.
11308 (struct linux_corefile_thread_data): New data structure.
11309 (linux_corefile_thread_callback): New funcion.
11310 (linux_make_corefile_notes): Likewise.
11311 (linux_make_corefile_notes_1): Likewise.
11312 (linux_init_abi): Install it.
11313
3030c96e
UW
113142012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11315
11316 * gdbarch.sh (info_proc): New callback.
11317 * gdbarch.c, gdbarch.h: Regenerate.
11318
11319 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11320 before falling back to the target info_proc callback.
11321
11322 * linux-nat.c: Do not include "cli/cli-utils.h".
11323 (linux_nat_info_proc): Remove.
11324 (linux_target_install_ops): No longer install it.
11325
11326 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11327 (read_mapping): New function.
11328 (linux_info_proc): Likewise.
11329 (linux_init_abi): Install it.
11330
145b16a9
UW
113312012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11332
11333 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11334 * infcmd.c: (info_proc_cmd_1): New function.
11335 (info_proc_cmd): New function, moved here from equivalent routine
11336 orignally in linux-nat.c.
11337 (info_proc_cmd_mappings): Likewise.
11338 (info_proc_cmd_stat): Likewise.
11339 (info_proc_cmd_status): Likewise.
11340 (info_proc_cmd_cwd): Likewise.
11341 (info_proc_cmd_cmdline): Likewise.
11342 (info_proc_cmd_exe): Likewise.
11343 (info_proc_cmd_all): Likewise.
11344 (_initialize_infcmd): Install "info proc" command and subcommands.
11345
11346 * target.h (struct target_ops): Add to_info_proc.
11347 (target_info_proc): Add prototype.
11348 * target.c (target_info_proc): New function.
11349
11350 * procfs.c (procfs_info_proc): Add prototype.
11351 (info_proc_cmd): Rename into ...
11352 (procfs_info_proc): ... this. Update argument types as appropriate
11353 for a to_info_proc implementation. Handle "what" argument.
11354 (procfs_target): Install procfs_info_proc.
11355 (_initialize_procfs): No longer install "info proc" command.
11356
11357 * linux-nat.c: (enum info_proc_what): Remove.
11358 (linux_nat_info_proc_cmd_1): Rename into ...
11359 (linux_nat_info_proc): ... this. Update argument types as appropriate
11360 for a to_info_proc implementation.
11361 (linux_nat_info_proc_cmd): Remove.
11362 (linux_nat_info_proc_cmd_mappings): Likewise.
11363 (linux_nat_info_proc_cmd_stat): Likewise.
11364 (linux_nat_info_proc_cmd_status): Likewise.
11365 (linux_nat_info_proc_cmd_cwd): Likewise.
11366 (linux_nat_info_proc_cmd_cmdline): Likewise.
11367 (linux_nat_info_proc_cmd_exe): Likewise.
11368 (linux_nat_info_proc_cmd_all): Likewise.
11369 (linux_target_install_ops): Install linux_nat_info_proc.
11370 (_initialize_linux_nat): No longer install "info proc" command
11371 and subcommands.
11372
b9e7b9c3
UW
113732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11374
11375 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11376 * config.in, configure: Regenerate.
11377
11378 * target.h (struct target_ops): Add to_fileio_readlink.
11379 (target_fileio_readlink): Add prototype.
11380 * target.c (target_fileio_readlink): New function.
11381
11382 * inf-child.c: Conditionally include <sys/param.h>.
11383 (inf_child_fileio_readlink): New function.
11384 (inf_child_target): Install it.
11385
11386 * remote.c (PACKET_vFile_readlink): New enum value.
11387 (remote_hostio_readlink): New function.
11388 (init_remote_ops): Install it.
11389 (_initialize_remote): Handle vFile:readlink packet type.
11390
7313baad
UW
113912012-01-20 Pedro Alves <palves@redhat.com>
11392 Ulrich Weigand <ulrich.weigand@linaro.org>
11393
11394 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11395 * config.in, configure: Regenerate.
11396
11397 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11398 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11399 (target_fileio_open): Add prototype.
11400 (target_fileio_pwrite): Likewise.
11401 (target_fileio_pread): Likewise.
11402 (target_fileio_close): Likewise.
11403 (target_fileio_unlink): Likewise.
11404 (target_fileio_read_alloc): Likewise.
11405 (target_fileio_read_stralloc): Likewise.
11406
11407 * target.c: Include "gdb/fileio.h".
11408 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11409 (default_fileio_target): New function.
11410 (target_fileio_open): Likewise.
11411 (target_fileio_pwrite): Likewise.
11412 (target_fileio_pread): Likewise.
11413 (target_fileio_close): Likewise.
11414 (target_fileio_unlink): Likewise.
11415 (target_fileio_close_cleanup): Likewise.
11416 (target_fileio_read_alloc_1): Likewise.
11417 (target_fileio_read_alloc): Likewise.
11418 (target_fileio_read_stralloc): Likewise.
11419
11420 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11421 <fcntl.h>, and <unistd.h>.
11422 (inf_child_fileio_open_flags_to_host): New function.
11423 (inf_child_errno_to_fileio_error): Likewise.
11424 (inf_child_fileio_open): Likewise.
11425 (inf_child_fileio_pwrite): Likewise.
11426 (inf_child_fileio_pread): Likewise.
11427 (inf_child_fileio_close): Likewise.
11428 (inf_child_fileio_unlink): Likewise.
11429 (inf_child_target): Install to_fileio routines.
11430
11431 * remote.c (init_remote_ops): Install to_fileio routines.
11432
901f9912
UW
114332012-01-20 Pedro Alves <palves@redhat.com>
11434 Ulrich Weigand <ulrich.weigand@linaro.org>
11435
11436 * remote.c (remote_multi_process_p): Only check for multi-process
11437 protocol feature, do not check for extended protocol.
11438 (remote_supports_multi_process): Check for extended protocol here.
11439 (set_general_process): Likewise.
11440 (extended_remote_kill): Likewise.
11441 (remote_pid_to_str): Likewise.
11442 (remote_query_supported): Always query multiprocess mode.
11443
e714e1bf
UW
114442012-01-20 Pedro Alves <palves@redhat.com>
11445 Ulrich Weigand <ulrich.weigand@linaro.org>
11446
11447 * inferior.h (struct inferior): Add fake_pid_p.
11448 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11449 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11450 magic_null_ptid since the remote side doesn't provide a real PID.
11451
50897289
TT
114522012-01-19 Tom Tromey <tromey@redhat.com>
11453
11454 * NEWS: Combine the two Python sections.
11455
1afc2033
JK
114562012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11457
11458 * target.h (target_close): Update comment on the target's unpush state.
11459
305436e0
PA
114602012-01-19 Pedro Alves <palves@redhat.com>
11461
11462 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11463 linux_nat_async directly instead of going through the target
11464 vector.
11465 * target.c (unpush_target): Close target after unpushing it, not
11466 before.
11467
49323895
GB
114682012-01-19 Gary Benson <gbenson@redhat.com>
11469
11470 * mdebugread.c (sort_blocks): Replace integer constants with ones
11471 derived from FIRST_LOCAL_BLOCK.
11472
1db33378
PP
114732012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11474 Jan Kratochvil <jan.kratochvil@redhat.com>
11475
11476 PR gdb/9538
11477 * symfile.c (find_separate_debug_file): New function.
11478 (terminate_after_last_dir_separator): Likewise.
11479 (find_separate_debug_file_by_debuglink): Also try realpath.
11480 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11481 * configure: Regenerate.
11482 * config.in: Regenerate.
11483
f83d8a90
DE
114842012-01-18 Doug Evans <dje@google.com>
11485
11486 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11487 (main.o): Remove rule.
11488 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11489 (--with-sysroot): Rewrite.
11490 * configure: Regenerate.
11491 * config.in: Regenerate.
11492
2dbca4d6
SDJ
114932012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11494
11495 * parse.c (initialize_expout): New function.
11496 (reallocate_expout): Likewise.
11497 (parse_exp_in_context): Use `initialize_expout' and
11498 `reallocate_expout' when appropriate.
11499
0695b514
PA
115002012-01-18 Pedro Alves <palves@redhat.com>
11501
11502 * record.c (struct record_breakpoint, record_breakpoint_p)
11503 (record_breakpoints): New.
11504 (record_insert_breakpoint, record_remove_breakpoint): Manage
11505 record breakpoints list. Only remove breakpoints from the
11506 inferior if they had been inserted there in the first place.
11507
136e1c30
DE
115082012-01-17 Doug Evans <dje@google.com>
11509
11510 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11511 if we know we don't have a file name to look for.
11512
c0bf857d
PA
115132012-01-17 Pedro Alves <palves@redhat.com>
11514
11515 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11516 the frame's stop reason is UNWIND_UNAVAILABLE.
11517
b486de60
JK
115182012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11519
11520 Fix compilation error.
11521 * m2-exp.y (yyerror): Use ANSI C prototype.
11522
d04550a6
SDJ
115232012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11524
11525 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11526 (growbuf_by_size): Likewise.
11527 (yyerror): Likewise.
11528 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11529 (modblock): Remove variable (was #if 0'ed).
11530 (parse_number): Convert prototype from K&R to ANSI C.
11531 (yyerror): Likewise.
11532 * objc-exp.y (parse_number): Likewise.
11533 (yyerror): Likewise.
11534 (yylex): Remove #if 0'ed code.
11535 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11536 (yyerror): Likewise.
11537
4aac40c8
TT
115382012-01-16 Tom Tromey <tromey@redhat.com>
11539
11540 * NEWS: Add item.
11541 * symtab.h (compare_filenames_for_search): Declare.
11542 * symtab.c (compare_filenames_for_search): New function.
11543 (iterate_over_some_symtabs): Use it.
11544 * symfile.h (struct quick_symbol_functions)
11545 <map_symtabs_matching_filename>: Change spec.
11546 * psymtab.c (partial_map_symtabs_matching_filename): Use
11547 compare_filenames_for_search. Update for new spec.
11548 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11549 compare_filenames_for_search. Update for new spec.
11550 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11551
cafec441
TT
115522012-01-16 Tom Tromey <tromey@redhat.com>
11553
11554 PR python/13281:
11555 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11556 (struct main_type) <flag_flag_enum>: New field.
11557 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11558 * NEWS: Add entries.
11559 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11560 enums.
11561 * python/lib/gdb/printing.py (_EnumInstance): New class.
11562 (FlagEnumerationPrinter): Likewise.
11563
983af33b
SDJ
115642012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11565
11566 * breakpoint.c (create_sals_from_address_default): New function.
11567 (create_breakpoints_sal_default): Likewise.
11568 (decode_linespec_default): Likewise.
11569 (is_marker_spec): Removed.
11570 (strace_marker_p): New function.
11571 (init_breakpoint_sal): Using `strace_marker_p' instead of
11572 `is_marker_spec'.
11573 (create_breakpoint): Call method `create_sals_from_address' from
11574 breakpoint_ops, replacing code that created SALs conditionally
11575 on the type of the breakpoint. Call method `create_breakpoints_sal',
11576 replacing code that created breakpoints conditionally on the type
11577 wanted.
11578 (base_breakpoint_create_sals_from_address): New function.
11579 (base_breakpoint_create_breakpoints_sal): Likewise.
11580 (base_breakpoint_decode_linespec): Likewise.
11581 (base_breakpoint_ops): Add methods
11582 `base_breakpoint_create_sals_from_address',
11583 `base_breakpoint_create_breakpoints_sal' and
11584 `base_breakpoint_decode_linespec'.
11585 (bkpt_create_sals_from_address): New function.
11586 (bkpt_create_breakpoints_sal): Likewise.
11587 (bkpt_decode_linespec): Likewise.
11588 (tracepoint_create_sals_from_address): Likewise.
11589 (tracepoint_create_breakpoints_sal): Likewise.
11590 (tracepoint_decode_linespec): Likewise.
11591 (strace_marker_create_sals_from_address): Likewise.
11592 (strace_marker_create_breakpoints_sal): Likewise.
11593 (strace_marker_decode_linespec): Likewise.
11594 (strace_marker_breakpoint_ops): New variable.
11595 (addr_string_to_sals): Remove `marker_spec'. Call method
11596 `decode_linespec' from breakpoint_ops, replacing code that decoded
11597 an address string into a SAL. Use `strace_marker_p' instead of
11598 `marker_spec'.
11599 (strace_command): Decide whether we are dealing with a static
11600 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11601 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11602 * breakpoint.h (linespec_result, linespec_sals): New forward
11603 declarations.
11604 (breakpoint_ops) <create_sals_from_address>,
11605 <create_breakpoints_sal>, <decode_linespec>: New methods.
11606
4795f398
DE
116072012-01-14 Doug Evans <dje@google.com>
11608
11609 * NEWS: Update text for "maint set python print-stack".
11610 It is deprecated in gdb 7.4 and deleted in 7.5.
11611
ee5106fe
EZ
116122012-01-13 Eli Zaretskii <eliz@gnu.org>
11613
11614 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11615 including curses.h.
11616
b161e06f
JK
116172012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11618
11619 * configure: Regenerate.
11620 * config.in: Regenerate.
11621
85254831
KS
116222012-01-12 Keith Seitz <keiths@redhat.com>
11623
11624 PR mi/10586
11625 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11626 (ANONYMOUS_UNION_NAME): Define.
11627 (is_path_expr_parent): New function.
11628 (get_path_expr_parent): New function.
11629 (is_anonymous_child): New function.
11630 (create_child_with_value): If the child is anonymous and without
11631 a name, assign an object name to it.
11632 (c_describe_child): Use get_path_expr_parent to determine
11633 the parent expression.
11634 If there field represents an anonymous struct or union and
11635 has no name, set an appropriate display name and expression.
11636 (cplus_describe_child): Likewise.
11637
620fa63a
PA
116382012-01-12 Pedro Alves <palves@redhat.com>
11639
11640 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11641 available when %ebp is found to be zero (outermost).
11642
2efa2c79
AT
116432012-01-11 Andreas Tobler <andreast@fgznet.ch>
11644
11645 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11646 an internal gdb_static_assert.
11647 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11648
88e7d25d
TT
116492012-01-11 Tom Tromey <tromey@redhat.com>
11650
11651 PR gdb/9598:
11652 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11653 catch" and "catch throw".
11654
72384ba3
PH
116552012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11656
11657 * blockframe.c (block_innermost_frame): Start search from selected
11658 frame, if present, or otherwise the current frame.
11659
11660 * c-exp.y (variable): Update innermost_block for
11661 'block COLONCOLON NAME' clause.
11662 * m2-exp.y (variable): Ditto.
11663 * objc-exp.y (variable): Ditto.
11664
065a711f
TT
116652012-01-10 Tom Tromey <tromey@redhat.com>
11666
11667 PR python/13199:
11668 * python/python.c (finish_python_initialization): Set sys.argv.
11669
f3f5162e
DE
116702012-01-10 Doug Evans <dje@google.com>
11671
11672 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11673 "want_line_info". All callers updated.
11674 (dwarf_decode_lines_1): New function.
11675 (handle_DW_AT_stmt_list): Add function comment.
11676 New arg "want_line_info". All callers updated.
11677 (read_file_scope,read_type_unit_scope): Move comment from
11678 handle_DW_AT_stmt_list to here.
11679
9934703b
JK
116802012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11681
11682 Fix regression after libiberty/ update for GCC PR 6057 and others.
11683 * c-exp.y (operator) <OPERATOR DELETE>
11684 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11685 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11686 (make_builtin_type, make_name): New variable i, add gdb_assert.
11687 (operator) <OPERATOR NEW>: Update ARGS to 3.
11688 (operator) <OPERATOR DELETE>: Add trailing space.
11689 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11690 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11691 * cp-support.c (cp_canonicalize_string): Check NULL from
11692 cp_comp_to_string, call warning and return.
11693
06b9f45f
JK
116942012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11695
11696 Fix duplicate .o files after omitting libbfd.a.
11697 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11698 (SFILES): Add corelow.c.
11699 (COMMON_OBS): Add corelow.o.
11700 (ALLDEPFILES): Remove corelow.c.
11701 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11702 * config/alpha/alpha-osf3.mh: Likewise.
11703 * config/alpha/fbsd.mh: Likewise.
11704 * config/arm/nbsdaout.mh: Likewise.
11705 * config/arm/nbsdelf.mh: Likewise.
11706 * config/i386/i386gnu.mh: Likewise.
11707 * config/ia64/hpux.mh: Likewise.
11708 * config/ia64/linux.mh: Likewise.
11709 * config/m32r/linux.mh: Likewise.
11710 * config/m68k/linux.mh: Likewise.
11711 * config/mips/irix5.mh: Likewise.
11712 * config/mips/irix6.mh: Likewise.
11713 * config/pa/hpux.mh: Likewise.
11714 * config/pa/linux.mh: Likewise.
11715 * config/powerpc/aix.mh: Likewise.
11716 * config/sparc/linux.mh: Likewise.
11717 * config/sparc/linux64.mh: Likewise.
11718 * config/sparc/sol2.mh: Likewise.
11719 * config/vax/vax.mh: Likewise.
11720 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11721 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11722 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11723 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11724 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11725 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11726 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11727 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11728 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11729 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11730 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11731 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11732 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11733 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11734 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11735 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11736 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11737 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11738 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11739 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11740 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11741 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11742 corelow.o from gdb_target_obs.
11743 * corefile.c (core_target): Update the comment on NULL value.
11744 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11745 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11746 MATCHES. Drop YUMMY set on NULL.
11747 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11748 reclaim CORE_DATA if it is already NULL.
11749
34365054
DE
117502012-01-09 Doug Evans <dje@google.com>
11751
11752 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11753 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11754
696166a3
KS
117552012-01-09 Keith Seitz <keiths@redhat.com>
11756
11757 * breakpoint.c (wrapper.h): Don't include.
11758
8e7b59a5
KS
117592012-01-09 Keith Seitz <keiths@redhat.com>
11760
11761 * Makefile.in (SFILES): Remove wrapper.c.
11762 (HFILES_NO_SRCDIR): Remove wrapper.h.
11763 (COMMON_OBS): Remove wrapper.o.
11764 * cli/cli-interp.c: Don't inlude wrapper.h.
11765 * corelow.c: Likewise.
11766 (core_open): Replace gdb_target_find_new_threads with
11767 TRY_CATCH around target_find_new_threads.
11768 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11769 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11770 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11771 evaluate_expression.
11772 (varobj_set_value): Likewise for evaluate_expression and
11773 value_assign.
11774 (install_new_variable): Likewise for value_fetch_lazy.
11775 (adjust_value_for_child_access): Likewise for value_ind.
11776 (c_describe_child): Likewise for value_subscript and
11777 value_ind.
11778 (c_value_of_root): Likewise for evaluate_expression.
11779 * wrapper.c: Remove.
11780 * wrapper.h: Remove.
11781
1a4eeb98
DE
117822012-01-09 Doug Evans <dje@google.com>
11783
9ff913ba
DE
11784 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11785 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11786 "abfd" args with "section". All callers updated.
11787 Error checking code moved ...
11788 (error_check_comp_unit_head): ... here. New function.
11789 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11790 Delete arg "abfd". New arg "type_offset". All callers updated.
11791 (create_debug_types_hash_table): Simplify by using
11792 read_and_check_type_unit_head.
11793
1a4eeb98
DE
11794 * parser-defs.h (namecopy): Delete.
11795 * parse.c (namecopy, namecopy_size): Move into copy_name.
11796
2e6af8c0
JK
117972012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11798
11799 Partially fix duplicate .o files after omitting libbfd.a.
11800 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11801 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11802 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11803 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11804 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11805 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11806 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11807
9f2f828a
PA
118082012-01-09 Pedro Alves <palves@redhat.com>
11809
11810 * MAINTAINERS: Update my email address.
11811
4d72c0bc
DE
118122012-01-08 Doug Evans <dje@google.com>
11813
d467dd73
DE
11814 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11815 n_type_units. Rename type_comp_units to all_type_units.
11816 All uses updated.
11817 (add_signatured_type_cu_to_table): Renamed from
11818 add_signatured_type_cu_to_list. All callers updated.
11819
4d72c0bc
DE
11820 * gdbtypes.h (struct cplus_struct_type): Delete member
11821 nfn_fields_total. All uses removed.
11822
21b2bd31
DE
118232012-01-06 Doug Evans <dje@google.com>
11824
11825 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11826 to top of file.
11827 (dwarf2_find_comp_unit): Delete.
11828 (process_psymtab_comp_unit): Make result "void".
11829 Delete args buffer, info_ptr, buffer_size, and replace with
11830 "section". All callers updated.
11831 (dwarf2_build_psymtabs_hard): Simplify.
11832
bfd189b1
SDJ
118332012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11834 Thiago Jung Bauermann <bauerman@br.ibm.com>
11835
11836 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11837 before `struct gdb_exception'.
11838 * breakpoint.c (update_global_location_list_nothrow)
11839 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11840 * cp-abi.c (value_rtti_type): Likewise.
11841 * cp-support.c (cp_validate_operator): Likewise.
11842 * infrun.c (insert_exception_resume_breakpoint)
11843 (check_exception_resume, keep_going): Likewise.
11844 * mi-interp.c (mi_breakpoint_created)
11845 (mi_breakpoint_modified): Likewise.
11846 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11847 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11848 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11849
6b07635f
DE
118502012-01-05 Doug Evans <dje@google.com>
11851
0b30b85c
DE
11852 * dwarf2read.c (statement_prologue): Delete, unused.
11853
98714339
DE
11854 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11855 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11856
6b07635f
DE
11857 * dwarf2read.c (comp_unit_header): Delete, unused.
11858
761f4555
UW
118592012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11860
11861 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11862 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11863
2ca0b532
PA
118642012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11865
11866 * infrun.c (normal_stop): Don't skip calling the normal_stop
11867 observers if the thread was doing a multi-step, but stopped for
11868 some reason other than stepping.
11869
50aeff07
PA
118702012-01-05 Pedro Alves <alves.ped@gmail.com>
11871
11872 * cli/cli-decode.h: Add comments.
11873 (CMD_LIST_AMBIGUOUS): Moved to command.h
11874 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11875 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11876 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11877 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11878 (add_com, add_com_alias, add_info, add_info_alias)
11879 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11880 declarations.
11881 * command.h: Add and adjust comments.
11882 (CMD_LIST_AMBIGUOUS): Moved here.
11883 (help_cmd, help_cmd_list): Delete declarations.
11884
5953832c
DE
118852012-01-04 Doug Evans <dje@google.com>
11886
e5fe5e75
DE
11887 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11888 All callers updated.
11889 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11890 Replace all arguments with "per_cu". All callers updated.
11891
28dee7f5
DE
11892 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11893
23745b47
DE
11894 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11895 New arg "per_cu". All callers updated.
11896
5953832c
DE
11897 Delete #if 0'd out code.
11898 * language.c (binop_result_type): Delete.
11899 (simple_type, ordered_type, same_type, integral_type): Delete.
11900 (numeric_type, character_type, string_type, boolean_type): Delete.
11901 (float_type, structured_type): Delete.
11902 * language.h: Update.
11903
0f5b7562
TT
119042012-01-04 Tom Tromey <tromey@redhat.com>
11905
11906 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11907
78218f56
JB
119082012-01-04 Joel Brobecker <brobecker@adacore.com>
11909
11910 * corefile.c (close_exec_file): Delete.
11911 (reopen_exec_file): Remove commented out code that seems related
11912 to close_exec_file, which is being deleted here.
11913 * inferior.h (close_exec_file): Delete.
11914 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11915
0fcd72ba
JB
119162012-01-04 Joel Brobecker <brobecker@adacore.com>
11917
11918 * ada-lang.c: #include "cli/cli-utils.h".
11919 (get_selections): Use skip_spaces.
11920 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11921 (catch_ada_exception_command_split): Use skip_spaces.
11922 (ada_decode_assert_location): Likewise.
11923
1dabb4c4
JB
119242012-01-04 Joel Brobecker <brobecker@adacore.com>
11925
11926 * linespec.c (decode_line_internal): Check for C++ or Java
11927 compound constructs only if the current language is C, C++
11928 or Java.
11929
5931a2fa
JK
119302012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11931
11932 Revert:
11933 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11934 Joel Brobecker <brobecker@adacore.com>
11935 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11936 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11937 3 times.
11938 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11939 fall through into AT_ENTRY_POINT.
11940 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11941 DUMMY_ADDR with it.
11942 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11943 PPC_INSN_SIZE skip to 3 times.
11944
1a2da5ee
JB
119452012-01-04 Joel Brobecker <brobecker@adacore.com>
11946
11947 * linespec.c (add_minsym): Preserve function descriptors.
11948
8645ff69
UW
119492012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11950
11951 * breakpoint.c (all_locations_are_pending): Consider locations
11952 in program spaces executing during startup pending as well.
11953
0b302171
JB
119542012-01-04 Joel Brobecker <brobecker@adacore.com>
11955
11956 Copyright year update in most files of the GDB Project.
11957
8ba098ad
JB
119582012-01-04 Joel Brobecker <brobecker@adacore.com>
11959
11960 * copyright.sh: Delete.
11961 * copyright.py: Rewrite.
11962
09c01c30
JB
119632012-01-04 Joel Brobecker <brobecker@adacore.com>
11964
11965 * gnulib/extra/update-copyright: New file, imported from gnulib.
11966
3c36c0af
JB
119672012-01-04 Joel Brobecker <brobecker@adacore.com>
11968
11969 * README (Copyright and License Notices): New section.
11970
888fe1e1
TT
119712012-01-03 Tom Tromey <tromey@redhat.com>
11972
11973 PR python/12533:
11974 * python/py-value.c (valpy_dereference, valpy_get_address
11975 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11976 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11977 (valpy_absolute, valpy_richcompare): Free intermediate values.
11978
6e681866
JB
119792011-01-03 Joel Brobecker <brobecker@adacore.com>
11980
11981 * ada-lang.c: Reformat the copyright notice.
11982
0cd09acb
JK
119832012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11984
11985 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11986 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11987 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11988 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11989 Revert this part of:
11990 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11991 Build gdb directly from *.o files not using libgdb.a.
11992 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11993
12c3e59c
JB
119942012-01-02 Joel Brobecker <brobecker@adacore.com>
11995
11996 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11997 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11998 Reformat the copyright header.
11999
11bf1490
JK
120002012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12001
12002 Revert this part of:
12003 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12004 Remove the gdbtui binary.
12005 * gdb.c (main): Remove args.interpreter_p initialization.
12006 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12007 * main.h (struct captured_main_args): Remove interpreter_p.
12008
1fef196f
JB
120092012-01-02 Joel Brobecker <brobecker@adacore.com>
12010
12011 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12012
67827812
JB
120132012-01-02 Joel Brobecker <brobecker@adacore.com>
12014
12015 * top.c (print_gdb_version): Update copyright year.
12016
a4d0b831
YQ
120172012-01-02 Yao Qi <yao@codesourcery.com>
12018
12019 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12020
b5914469
JK
120212012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12022 Joel Brobecker <brobecker@adacore.com>
12023
12024 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12025 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12026 3 times.
12027 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12028 fall through into AT_ENTRY_POINT.
12029 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12030 DUMMY_ADDR with it.
12031 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12032 PPC_INSN_SIZE skip to 3 times.
12033
8da828f7
JK
120342012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12035
12036 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12037 the return value.
12038 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12039
8574e74b
JK
120402012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12041
12042 Build gdb directly from *.o files not using libgdb.a.
12043 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12044 (COMMON_OBS): Remove solib-target.o.
12045 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12046 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12047 (LIBGDB_OBS, libgdb.a): Move it above.
12048 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12049 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12050 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12051 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12052 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12053 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12054 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12055 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12056 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12057 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12058 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12059 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12060 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12061 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12062 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12063 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12064 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12065 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12066 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12067 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12068 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12069 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12070 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12071 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12072 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12073 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12074 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12075
217bff3e
JK
120762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12077
12078 Remove the gdbtui binary.
12079 * .gitignore (/gdbtui): Remove.
12080 * Makefile.in (TUI): Remove.
12081 (SUBDIR_TUI_OBS): Remove tui-main.o.
12082 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12083 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12084 (tui-main.o): Remove.
12085 (all_object_files): Remove tui-main.o.
12086 * NEWS: New note for the gdbtui removal.
12087 * configure: Rebuilt.
12088 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12089 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12090 CONFIG_UNINSTALL respectively.
12091 * gdb.c (main): Remove args.interpreter_p initialization.
12092 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12093 * main.h (struct captured_main_args): Remove interpreter_p.
12094 * tui/tui-main.c: Remove.
12095
9cdd5dbd
DE
120962012-01-01 Doug Evans <dje@google.com>
12097
bb5ed363
DE
12098 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12099 (dwarf2_physname, read_import_statement): Ditto.
12100 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12101 (process_structure_scope read_subroutine_type): Ditto.
12102 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12103 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12104 (dwarf2_fetch_die_location_block): Ditto.
12105 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12106
a0f42c21
DE
12107 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12108 All callers updated.
12109 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12110 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12111 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12112
2dc860c0
DE
12113 * dwarf2read.c (load_cu): Move assert to more useful location.
12114
68dc6402
DE
12115 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12116 All callers updated.
12117
9cdd5dbd
DE
12118 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12119 (dwarf2_elf_names): Minor reformat.
12120 (dwarf2_per_cu_data): Tweak comment.
12121 (dwarf2_read_section): Fix comment.
12122 (create_all_comp_units): Fix comment.
12123 (load_full_comp_unit): Fix comment.
12124 (process_full_comp_unit): Fix comment.
12125 (read_signatured_type): Fix comment.
12126
0c10e53e 12127For older changes see ChangeLog-2011.
c906108c
SS
12128\f
12129Local Variables:
12130mode: change-log
12131left-margin: 8
12132fill-column: 74
12133version-control: never
57da7796 12134coding: utf-8
c906108c 12135End:
This page took 2.1449 seconds and 4 git commands to generate.