merge from gcc
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f2e8016f
TT
12012-07-26 Tom Tromey <tromey@redhat.com>
2
3 * Makefile.in (SFILES): Remove objc-exp.y.
4 (YYFILES): Remove objc-exp.c.
5 (YYOBJ): Remove objc-exp.o.
6 (local-maintainer-clean): Don't mention objc-exp.c.
7 * c-exp.y: Include objc-lang.h.
8 (%union) <class>: New field.
9 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
10 (exp): Clone subscript production for OBJC_LBRAC. Add various
11 Objective C productions.
12 (msglist, msgarglist, msgarg): New productions.
13 (array_mod, func_mod, operator): Clone productions for
14 OBJC_LBRAC.
15 (parse_string_or_char): Handle '@' strings.
16 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
17 (classify_name): Check la_name_of_this. Recognize ObjC class
18 names.
19 * objc-exp.y: Remove.
20 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
21 * objc-lang.h (objc_parse, objc_error): Don't declare.
22
f66713d2
JK
232012-07-26 Markus Metzger <markus.t.metzger@intel.com>
24
25 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
26
7cfe01b4
JK
272012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
28
29 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
30 and decrement.
31
5ba19b4c
TT
322012-07-26 Tom Tromey <tromey@redhat.com>
33
34 * copying.c: Rebuild.
35 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
36 'no_class'.
37
27618ce4
TT
382012-07-26 Tom Tromey <tromey@redhat.com>
39
40 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
41 immediate_quit.
42 (print_objfile_statistics): Likewise.
43 (maintenance_print_symbols): Likewise.
44 (maintenance_print_msymbols): Likewise.
45 (maintenance_print_objfiles): Likewise.
46 * psymtab.c (print_partial_symbols): Call QUIT.
47 (maintenance_print_psymbols): Likewise. Don't modify
48 immediate_quit.
49 * copying.c (show_copying_command): Don't modify immediate_quit.
50 (show_warranty_command): Likewise.
51 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
52
dd3818c8
KS
532012-07-26 Keith Seitz <keiths@redhat.com>
54
55 * linespec.c (linespec_lexer_lex_number): The input
56 is also a valid number if the next character is a comma
57 or colon.
58
23a80689
JB
592012-07-26 Joel Brobecker <brobecker@adacore.com>
60
61 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
62 configure options.
63
29f77997
TG
642012-07-26 Tristan Gingold <gingold@adacore.com>
65
66 * machoread.c: Include gdb_bfd.h.
67
a55c1f32
TG
682012-07-26 Tristan Gingold <gingold@adacore.com>
69
70 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
71 offset.
72
56eb65bd
SP
732012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
74
75 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
76 SIZE to size_t.
77 (dwarf2_evaluate_loc_desc): Likewise.
78 (dwarf2_loc_desc_needs_frame): Likewise.
79 (locexpr_describe_location_1): Likewise.
80 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
81 size_t.
82 (struct dwarf2_loclist_baton): Likewise.
83 * dwarf2read.c (struct dwarf_block): Likewise.
84 (dump_die_shallow): Use pulongest to print dwarf_block.size.
85 (decode_locdesc): Expand SIZE and I to size_t.
86
aec8845c
JK
872012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
88
89 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
90
33d7655b
JB
912012-07-25 Joel Brobecker <brobecker@adacore.com>
92
93 * doublest.c (convert_doublest_to_floatformat): If the exponent
94 is too small, treat the value as zero. If the exponent is too
95 large, treat the value as infinity.
96
a22d44ff
JB
972012-07-25 Joel Brobecker <brobecker@adacore.com>
98
99 * configure.ac: Add --enable-lmcheck configure option.
100 * configure: Regenerate.
101
d6b28940
TT
1022012-07-25 Tom Tromey <tromey@redhat.com>
103
104 * NEWS: Mention maint info bfds.
105 * gdb_bfd.c (all_bfds): New global.
106 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
107 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
108 New functions.
109
6e73ba20
RC
1102012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
111
112 * configure.tgt: Add v850*-*-rtems*.
113
d560eebd
TT
1142012-07-25 Tom Tromey <tromey@redhat.com>
115
116 * macrotab.c (macro_bcache_str): Remove cast.
117
d7cbec71
HZ
1182012-07-25 Hui Zhu <hui_zhu@mentor.com>
119
120 * linespec.c (linespec_lexer_lex_number): Update comments,
121 change the return and add check to make sure the input is
122 the decimal numbers.
123 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
124 false, call linespec_lexer_lex_string.
125
882f447f
TT
1262012-07-24 Tom Tromey <tromey@redhat.com>
127
128 * symfile.c (symbol_file_add): Don't open BFD twice.
129
53ab4066 1302012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
131
132 * breakpoint.c (create_breakpoint): Store condition for pending
133 breakpoints.
134
108fb0f7
AS
1352012-07-24 Andreas Schwab <schwab@linux-m68k.org>
136
137 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
138 (m68k_return_value): Handle complex types like structures.
139 (m68k_svr4_return_value): Likewise.
140
1634dcbe
JK
1412012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
142
143 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
144 parameters to bfd_get_section_name.
145
e2d12c21
YQ
1462012-07-24 Yao Qi <yao@codesourcery.com>
147
148 * cli/cli-setshow.c: Handle case 'var_uinteger'
149 and 'var_zuninteger' together. Handle case 'var_integer' and
150 'var_zinteger' together.
151
64b92e45
KS
1522012-07-23 Keith Seitz <keiths@redhat.com>
153
154 * linespec.c (convert_linespec_to_sal): Don't add
155 any symbols to the result vector if symbol_to_sal
156 returns zero.
157
0f5f4ffe
KS
1582012-07-23 Keith Seitz <keiths@redhat.com>
159
160 * linespec.c (decode_objc): Record the function name
161 in the linespec.
162
da1cc82f
TT
1632012-07-23 Tom Tromey <tromey@redhat.com>
164
165 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
166 counting.
167 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
168 (map_vmap): Acquire a reference to the BFD.
169
6c18f3e0
SP
1702012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
171
172 * p-valprint.c (pascal_object_print_value): Replace potentially
173 unsafe alloca with xmalloc/xfree.
174 * valops.c (search_struct_method): Likewise.
175
695c3173
TT
1762012-07-23 Tom Tromey <tromey@redhat.com>
177
178 * solib-svr4.c (enable_break): Update.
179 * bfd-target.h (target_bfd_reopen): Update documentation.
180
08d2cd74
TT
1812012-07-23 Tom Tromey <tromey@redhat.com>
182
183 * symfile.c (separate_debug_file_exists): Update.
184 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
185 (reread_symbols): Update.
186 * elfread.c (build_id_verify): Update.
187 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
188 bfd_open_maybe_remote.
189
596f7d67
TT
1902012-07-23 Tom Tromey <tromey@redhat.com>
191
192 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
193
8ac244b4
TT
1942012-07-23 Tom Tromey <tromey@redhat.com>
195
196 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
197 and 'abfd'.
198 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
199 and 'abfd'.
200 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
201 * machoread.c (macho_add_oso_symfile): Make a cleanup for
202 'abfd'.
203 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
204 * objfiles.c (allocate_objfile): Acquire a new reference.
205 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
206 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
207 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
208 a cleanup for 'nbfd'.
209 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
210 for 'nbfd'.
211 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
212 make a cleanup for 'abfd'.
213 (symbol_file_add): Make a BFD cleanup.
214
64c31149
TT
2152012-07-23 Tom Tromey <tromey@redhat.com>
216
217 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
218 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
219 * corelow.c (core_open): Use gdb_bfd_fopen.
220 * dsrec.c (load_srec): Use gdb_bfd_openr.
221 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
222 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
223 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
224 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
225 (gdb_bfd_fdopenr): New functions.
226 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
227 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
228 (gdb_bfd_fdopenr): Declare.
229 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
230 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
231 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
232 gdb_bfd_openr_next_archived_file.
233 (macho_check_dsym): Use gdb_bfd_openr.
234 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
235 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
236 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
237 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
238 gdb_bfd_openr.
239 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
240 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
241 gdb_bfd_openr_next_archived_file.
242 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
243 Use gdb_bfd_openr.
244 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
245 gdb_bfd_openr.
246 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
247 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
248 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
249 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
250 (symfile_bfd_open): Use gdb_bfd_fopen.
251 (generic_load): Use gdb_bfd_openr.
252 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
253
520b0001
TT
2542012-07-23 Tom Tromey <tromey@redhat.com>
255
256 * bfd-target.c (target_bfd_reopen): Update.
257 * cli/cli-dump.c (bfd_openr_with_cleanup)
258 (bfd_openw_with_cleanup): Update.
259 * corelow.c (core_open): Update.
260 * dsrec.c (load_srec): Update.
261 * exec.c (exec_file_attach): Update.
262 * gcore.c (create_gcore_bfd): Update.
263 * gdb_bfd.c (gdb_bfd_ref): Return void.
264 (gdb_bfd_open): Update.
265 * gdb_bfd.h (gdb_bfd_ref): Return void.
266 Update comments.
267 * jit.c (jit_bfd_try_read_symtab): Update.
268 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
269 * machoread.c (macho_symfile_read_all_oso): Update.
270 (macho_check_dsym): Update.
271 * procfs.c (insert_dbx_link_bpt_in_file): Update.
272 * remote-m32r-sdi.c (m32r_load): Update.
273 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
274 * rs6000-nat.c (add_vmap): Update.
275 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
276 Update.
277 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
278 * solib-spu.c (spu_bfd_open): Update.
279 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
280 * spu-linux-nat.c (spu_bfd_open): Update.
281 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
282 (generic_load): Update.
283 * windows-nat.c (windows_make_so): Update.
284
2322ff16
SP
2852012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
286
287 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
288
3def0b36
PA
2892012-07-20 Jeff Kenton <jkenton@tilera.com>
290
291 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
292 SIGTRAMP_FRAME unwinding.
293
e615022a
DE
2942012-07-20 Doug Evans <dje@google.com>
295
296 * NEWS: Document new options "set/show use-deprecated-index-sections",
297 and delete reference to --use-deprecated-index-sections.
298 * symfile.h (use_deprecated_index_sections): Delete.
299 * dwarf2read.c (use_deprecated_index_sections): Make static.
300 (read_index_from_section): Update wording of how to load
301 deprecated index sections.
302 (_initialize_dwarf2_read): New options
303 "set/show use-deprecated-index-sections".
304 * main.c (captured_main): Delete --use-deprecated-index-sections.
305
64776a0b
PA
3062012-07-20 Pedro Alves <palves@redhat.com>
307
308 PR threads/11692
309 PR gdb/12203
310
311 * infrun.c (handle_inferior_event) <new thread>: Don't special
312 case minus_one_ptid.
313 <TARGET_WAITKIND_SPURIOUS>: Ditto.
314 * linux-thread-db.c (thread_get_info_callback): Don't return early
315 if the thread is zombie.
316 (thread_from_lwp): Change return type to void. Rewrite stale
317 comment.
318 (attach_thread): Don't return early if the thread is zombie,
319 instead set its "dying" flag.
320 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
321 (find_new_threads_callback): Don't return early if the thread is
322 zombie.
323
09826ec5
PA
3242012-07-20 Pedro Alves <palves@redhat.com>
325
326 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
327 * target.c (target_wait): Likewise.
328 (str_comma_list_concat_elem, do_option, target_options_to_string):
329 New functions.
330 * target.h (target_options_to_string): Declare.
331
f7a35f02
TT
3322012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
333 Tom Tromey <tromey@redhat.com>
334
335 * dwarf2read.c (dwarf_decode_macros)
336 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
337 DW_MACRO_GNU_transparent_include_alt>: New cases.
338 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
339 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
340
b81e1ee0
TT
3412012-07-20 Tom Tromey <tromey@redhat.com>
342
343 * dwarf2read.c (try_open_dwo_file): Don't call
344 gdb_bfd_stash_filename.
345
99c1624c
PA
3462012-07-20 Pedro Alves <palves@redhat.com>
347
348 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
349 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
350 (i386_process_record): Tweak description comments.
351
4ffa4fc7
PA
3522012-07-20 Pedro Alves <palves@redhat.com>
353
354 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
355 (i386_process_record): Use record_read_memory.
356 * record.c (record_read_memory): New function.
357 (record_arch_list_add_mem, record_exec_insn): Use
358 record_read_memory.
359 * record.h (record_read_memory): Declare.
360
c24343e2
YQ
3612012-07-20 Yao Qi <yao@codesourcery.com>
362
363 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
364 NULL for xfree.
365
90f47860
PA
3662012-07-19 Pedro Alves <palves@redhat.com>
367
368 * record.c (record_resume): Ask the target beneath to report all
369 signals.
370
01093045
DE
3712012-07-19 Doug Evans <dje@google.com>
372
373 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
374 there's no section at address zero.
375 (dwarf2_record_block_ranges): Ditto.
376
a7c3d162
YQ
3772012-07-19 Yao Qi <yao@codesourcery.com>
378
379 * command.h, remote.c: Fix a typo in comment.
380
608b4967
TT
3812012-07-19 Tom Tromey <tromey@redhat.com>
382
383 PR exp/13206:
384 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
385 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
386 OP_DECLTYPE>: New cases.
387 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
388 (type_exp): Add new productions.
389 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
390 and decltype.
391 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
392 New case.
393 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
394 OP_DECLTYPE>: New case.
395 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
396 New case.
397 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
398 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
399
274b54d7
TT
4002012-07-19 Tom Tromey <tromey@redhat.com>
401
402 * c-exp.y (enum token_flags): New.
403 (struct token) <cxx_only>: Remove.
404 <flags>: New field.
405 (tokentab3, tokentab2, ident_tokens): Update.
406 (lex_one_token): Update. Handle FLAG_SHADOW.
407
9eaf6705
TT
4082012-07-19 Tom Tromey <tromey@redhat.com>
409
410 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
411 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
412 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
413 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
414 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
415 type_exp production where appropriate.
416 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
417 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
418 <UNOP_MEMVAL_TYPE>: New case.
419 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
420 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
421 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
422 <UNOP_MEMVAL_TYPE>: New case.
423 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
424 UNOP_REINTERPRET_CAST>: Update.
425 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
426 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
427 UNOP_REINTERPRET_CAST>: Update.
428 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
429 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
430 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
431 constants.
432
6ace3df1
YQ
4332012-07-19 Yao Qi <yao@codesourcery.com>
434 Jan Kratochvil <jan.kratochvil@redhat.com>
435
436 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
437 and case 'var_optional_filename' together.
438 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
439 instead of add_setshow_optional_filename_cmd for setshow command
440 'args'. Set completer for 'set args'.
441
48faced0
DE
4422012-07-18 Doug Evans <dje@google.com>
443
444 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
445 * common/gdb_vecs.c: New file, contents from utils.c.
446 * common/host-defs.h: New file, contents from defs.h.
447 * utils.h: New file, contents from defs.h.
448 * defs.h: Move all declarations of objects defined in utils.c
449 to utils.h (except QUIT() and related).
450 #include "utils.h", "host-defs.h".
451 * probe.h (probe_p): Move here from gdb_vecs.h.
452 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
453 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
454 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
455 * Makefile.in (SFILES): Add common/gdb_vecs.c.
456 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
457 (COMMON_OBS): Add gdb_vecs.o.
458 (gdb_vecs.o): New rule.
459
66f1999b
KS
4602012-07-18 Keith Seitz <keiths@redhat.com>
461
462 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
463 parameter. If non-zero, use SYMNAME as the canonical name
464 for the SaL.
465 Update all callers.
466 (convert_linespec_to_sals): Use add_sal_to_sals for
467 expressions, too.
468 (decode_line_full): No need to "fill in missing canonical names"
469 anymore. Simply make cleanups for the allocated names.
470
5d94e27b
KS
4712012-07-18 Keith Seitz <keiths@redhat.com>
472
473 * linespec.c (struct linespec): Constify expression,
474 source_filename, function_name, and label_name.
475 (symbol_not_found_error): Make all parameters const.
476 (linespec_parser_delete): No need to check for NULL
477 when using xfree. Cast const char * to char * for xfree.
478
af4908ba
KS
4792012-07-18 Keith Seitz <keiths@redhat.com>
480
481 * breakpoint.c (invalid_thread_id_error): New function.
482 (find_condition_and_thread): Use invalid_thread_id_error.
483 (watch_command_1): Likewise.
484
853254db
TT
4852012-07-18 Tom Tromey <tromey@redhat.com>
486
487 * cc-with-index.sh, cc-with-dwz.sh: Remove.
488 * contrib/cc-with-tweaks.sh: New file.
489
2ec9a5e0
TT
4902012-07-18 Tom Tromey <tromey@redhat.com>
491
492 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
493 (locate_dwz_sections): Recognize .gdb_index.
494 (create_cus_from_index_list): New function.
495 (create_cus_from_index): Use it. Handle .dwz data.
496 (read_index_from_section): New function, extracted from
497 dwarf2_read_index.
498 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
499 if needed.
500
36586728
TT
5012012-07-18 Tom Tromey <tromey@redhat.com>
502
503 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
504 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
505 <is_dwz>: New field.
506 (struct dwz_file): New.
507 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
508 (locate_dwz_sections, dwarf2_get_dwz_file)
509 (get_abbrev_section_for_cu): New functions.
510 (error_check_comp_unit_head, read_and_check_comp_unit_head)
511 (read_and_check_type_unit_head): Add abbrev_section argument.
512 (create_debug_types_hash_table): Update.
513 (init_cutu_and_read_dies): Use proper abbrev section.
514 (init_cutu_and_read_dies_no_follow): Likewise.
515 (set_partial_user): Do nothing if PST==NULL.
516 (read_comp_units_from_section): New function.
517 (create_all_comp_units): Use it.
518 (scan_partial_symbols, partial_die_parent_scope): Update.
519 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
520 (process_imported_unit_die, read_partial_die): Handle .dwz files.
521 (find_partial_die): Add offset_in_dwz argument. Update.
522 (guess_partial_die_structure_name, fixup_partial_die): Update.
523 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
524 DW_FORM_GNU_strp_alt.
525 (read_indirect_string_from_dwz): New function.
526 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
527 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
528 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
529 (follow_die_offset): Add offset_in_dwz argument.
530 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
531 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
532 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
533 Handle new macro forms.
534 (dwarf_decode_macros): Update.
535 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
536 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
537 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
538 (create_debug_types_hash_table): Use correct abbrev section.
539 (get_debug_line_section): New function.
540 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
541 (process_full_comp_unit): Pass 'required' argument to
542 end_symtab_get_static_block.
543 * buildsym.h (end_symtab_get_static_block): Update.
544 * buildsym.c (end_symtab_get_static_block): Add 'required'
545 argument.
546 (end_symtab, end_expandable_symtab): Update.
547
4bf44c1c
TT
5482012-07-18 Tom Tromey <tromey@redhat.com>
549
550 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
551 (pagesize): Remove.
552 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
553 (zlib_decompress_section): Remove.
554 (dwarf2_read_section): Use gdb_bfd_map_section.
555 (munmap_section_buffer): Remove.
556 (free_dwo_file, dwarf2_per_objfile_free): Don't use
557 munmap_section_buffer.
558 * gdb_bfd.c: Include zlib.h, sys/mman.h.
559 (struct gdb_bfd_section_data): New.
560 (free_one_bfd_section): New function.
561 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
562 (get_section_descriptor, zlib_decompress_section)
563 (gdb_bfd_map_section): New functions.
564 * gdb_bfd.h (gdb_bfd_map_section): Declare.
565
bb397797
TT
5662012-07-18 Tom Tromey <tromey@redhat.com>
567
568 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
569
6ec53d05
TT
5702012-07-18 Tom Tromey <tromey@redhat.com>
571
572 * gdb_bfd.c (struct gdb_bfd_data): New.
573 (gdb_bfd_cache): New global.
574 (struct gdb_bfd_cache_search): New.
575 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
576 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
577 * gdb_bfd.h (gdb_bfd_open): Declare.
578
f9a062ff
TT
5792012-07-18 Tom Tromey <tromey@redhat.com>
580
581 * utils.c (make_cleanup_bfd_unref): Rename from
582 make_cleanup_bfd_close.
583 * defs.h (make_cleanup_bfd_unref): Rename from
584 make_cleanup_bfd_close.
585 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
586 (bfd_openw_with_cleanup): Update.
587 * corelow.c (core_open): Update.
588 * dsrec.c (load_srec): Update.
589 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
590 * remote-m32r-sdi.c (m32r_load): Update.
591 * remote-mips.c (mips_load_srec): Update.
592 (pmon_load_fast): Update.
593 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
594 Update.
595 (darwin_bfd_open): Update.
596 * solib.c (solib_bfd_fopen): Update.
597 * symfile-mem.c (symbol_file_add_from_memory): Update.
598 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
599 (symfile_bfd_open): Update.
600 (generic_load): Update.
601
d6ad71ba
TT
6022012-07-18 Tom Tromey <tromey@redhat.com>
603
604 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
605 (pmon_load_fast): Likewise.
606 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
607 (m32r_upload_command): Likewise.
608 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
609 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
610 Use make_cleanup_bfd_close.
611
a4453b7e
TT
6122012-07-18 Tom Tromey <tromey@redhat.com>
613
614 * symfile.c (symfile_bfd_open): Don't copy name. Call
615 gdb_bfd_stash_filename.
616 (load_command): Open the new BFD before freeing the old.
617 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
618 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
619 Call gdb_bfd_stash_filename.
620 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
621 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
622 gdb_bfd_stash_filename.
623 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
624 Free found_pathname.
625 * rs6000-nat.c (add_vmap): Don't copy filename. Call
626 gdb_bfd_stash_filename.
627 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
628 * machoread.c (macho_add_oso_symfile): Call
629 gdb_bfd_stash_filename.
630 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
631 gdb_bfd_stash_filename.
632 (macho_check_dsym): Don't copy filename. Call
633 gdb_bfd_stash_filename.
634 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
635 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
636 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
637 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
638 * exec.c (exec_close): Don't free the BFD's filename.
639 (exec_file_attach): Don't copy the filename. Call
640 gdb_bfd_stash_filename.
641 * corelow.c (core_close): Don't free the BFD's filename.
642 (core_open): Call gdb_bfd_stash_filename.
643 * corefile.c (reopen_exec_file): Remove #if 0 code.
644 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
645 pathname.
646 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
647
cbb099e8
TT
6482012-07-18 Tom Tromey <tromey@redhat.com>
649
650 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
651 gdb_bfd_unref.
652 (free_dwo_file): Use gdb_bfd_unref.
653 * cli/cli-dump.c: Include gdb_bfd.h.
654 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
655 (bfd_openr_with_cleanup): Likewise.
656 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
657 gdb_bfd_unref.
658 * utils.c: Include gdb_bfd.h.
659 (do_bfd_close_cleanup): Use gdb_bfd_unref.
660 * symfile.c: Include gdb_bfd.h.
661 (separate_debug_file_exists): Use gdb_bfd_unref.
662 (bfd_open_maybe_remote): Use gdb_bfd_ref.
663 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
664 (generic_load): Use gdb_bfd_ref.
665 (reread_symbols): Use gdb_bfd_unref.
666 * symfile-mem.c: Include gdb_bfd.h.
667 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
668 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
669 * solib.c: Include gdb_bfd.h.
670 (solib_bfd_fopen): Use gdb_bfd_ref.
671 (solib_bfd_open): Use gdb_bfd_unref.
672 (free_so_symbols): Use gdb_bfd_unref.
673 (reload_shared_libraries_1): Use gdb_bfd_unref.
674 * solib-spu.c: Include gdb_bfd.h.
675 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
676 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
677 gdb_bfd_unref.
678 * solib-frv.c: Include gdb_bfd.h.
679 (enable_break2): Use gdb_bfd_unref.
680 * solib-dsbt.c: Include gdb_bfd.h.
681 (enable_break2): Use gdb_bfd_unref.
682 * solib-darwin.c: Include gdb_bfd.h.
683 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
684 gdb_bfd_unref.
685 (darwin_bfd_open): Use gdb_bfd_unref.
686 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
687 * remote-mips.c: Include gdb_bfd.h.
688 (mips_load_srec): Use gdb_bfd_ref.
689 (pmon_load_fast): Use gdb_bfd_ref.
690 * remote-m32r-sdi.c: Include gdb_bfd.h.
691 (m32r_load): Use gdb_bfd_ref.
692 * record.c: Include gdb_bfd.h.
693 (record_save_cleanups): Use gdb_bfd_unref.
694 (cmd_record_save): Use gdb_bfd_unref.
695 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
696 gdb_bfd_unref.
697 * objfiles.h (gdb_bfd_close_or_warn): Remove.
698 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
699 * objfiles.c: Include gdb_bfd.h.
700 (free_objfile): Use gdb_bfd_unref.
701 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
702 gdb_bfd.c.
703 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
704 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
705 (macho_check_dsym): Likewise.
706 * m32r-rom.c: Include gdb_bfd.h.
707 (m32r_load): Use gdb_bfd_ref.
708 (m32r_upload_command): Use gdb_bfd_ref.
709 * jit.c: Include gdb_bfd.h.
710 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
711 * gdb_bfd.h: New file.
712 * gdb_bfd.c: New file.
713 * gcore.c: Include gdb_bfd.h.
714 (create_gcore_bfd): Use gdb_bfd_ref.
715 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
716 (gcore_command): Use gdb_bfd_unref.
717 * exec.c: Include gdb_bfd.h.
718 (exec_close): Use gdb_bfd_unref.
719 (exec_close_1): Use gdb_bfd_unref.
720 (exec_file_attach): Use gdb_bfd_ref.
721 * elfread.c: Include gdb_bfd.h.
722 (build_id_verify): Use gdb_bfd_unref.
723 * dsrec.c: Include gdb_bfd.h.
724 (load_srec): Use gdb_bfd_ref.
725 * corelow.c: Include gdb_bfd.h.
726 (core_close): Use gdb_bfd_unref.
727 (core_open): Use gdb_bfd_ref.
728 * bfd-target.c: Include gdb_bfd.h.
729 (target_bfd_xclose): Use gdb_bfd_unref.
730 (target_bfd_reopen): Use gdb_bfd_ref.
731 * Makefile.in (SFILES): Add gdb_bfd.c.
732 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
733 (COMMON_OBS): Add gdb_bfd.o.
734
ed1d1739
KS
7352012-07-18 Keith Seitz <keiths@redhat.com>
736
737 * breakpoint.c (find_condition_and_thread): Initialize
738 TASK and REST.
739 (create_breakpiont): find_condition_and_thread will now
740 initialize COND_STRING, THREAD, and REST (and TASK).
741 (addr_string_to_sals): Likewise.
742
eab402df
PA
7432012-07-18 Pedro Alves <palves@redhat.com>
744
745 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
746 Pull the single step breakpoints out of the target.
747
2b963b68
SDJ
7482012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
749
750 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
751 * stap-probe.c (compile_probe_arg): Likewise.
752
6bac7473
SDJ
7532012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
754
755 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
756 (elf_compile_to_ax): Likewise.
757 * infrun.c (insert_exception_resume_from_probe): Likewise.
758 (check_exception_resume): Remove `objfile' variable.
759 * probe.c (find_probe_by_pc): Remove `objfile' argument.
760 (struct probe_and_objfile, probe_and_objfile_s): Delete.
761 (collect_probes): Adjust return value to `VEC (probe_p) *'.
762 (compare_entries): Rename to...
763 (compare_probes): ...this. Adjust function to work with
764 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
765 respectively.
766 (gen_ui_out_table_header_info): Adjust `probes' argument to be
767 `VEC (probe_p) *'.
768 (print_ui_out_info): Adjust argument to be `struct probe *'.
769 (info_probes_for_ops): Adjust internal computations to use
770 `VEC (probe_p) *'.
771 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
772 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
773 gen_info_probes_table_values>: Remove `objfile' argument.
774 (struct probe) <objfile>: New field.
775 (find_probe_by_pc): Remove `objfile' argument.
776 * stap-probe.c (stap_parse_probe_arguments): Likewise.
777 (stap_get_probe_argument_count): Likewise.
778 (stap_get_arg): Likewise.
779 (stap_evaluate_probe_argument): Likewise.
780 (stap_compile_to_ax): Likewise.
781 (compile_probe_arg): Refactor not to pass `objfile' anymore.
782 (handle_stap_probe): Fill `objfile' field from `struct probe'.
783 (stap_gen_info_probes_table_header): Remove `objfile' argument.
784 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
785 sym_compile_to_ax>: Likewise.
786
3347eb1a 7872012-07-18 Terry Guo <terry.guo@arm.com>
788
789 PR 14329
790 * defs.h (GDB_MI_MSG_WIDTH): New.
791 * ser_base (ser_base_read_error_fd): New function.
792 (do_ser_base_readchar): Poll error file descriptor as well as
793 standard output.
794 (generic_readchar): Refactor error handling.
795
80c8d323
JB
7962012-07-18 Joel Brobecker <brobecker@adacore.com>
797
798 * NEWS: Create a new section for the next release branch.
799 Rename the section of the current branch, now that it has
800 been cut.
801
b45a0664 8022012-07-18 Joel Brobecker <brobecker@adacore.com>
803
804 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
805 * version.in: Bump version to 7.5.50.20120718-cvs.
806
09cf2b22
KS
8072012-07-17 Keith Seitz <keiths@redhat.com>
808
809 * linespec.c (linespec_parse_line_offset): Make parameter
810 const.
811
8f043999
JK
8122012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
813
814 PR 11914
815 * f-valprint.c (info_common_command): New variable frame_id.
816 Reinitialize FI form FRAME_ID after each print_variable_and_value.
817 * printcmd.c (print_variable_and_value): Extend function comment.
818 Add comment for invalidated FRAME.
819 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
820 FI form FRAME_ID after each print_frame_local_vars.
821 (struct print_variable_and_value_data): Change frame to frame_id.
822 (do_print_variable_and_value): New variable frame, initialize it from
823 p->frame_id. Add comment for invalidated FRAME.
824 (print_frame_local_vars, print_frame_arg_vars): New function comment.
825 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
826 for invalidated FRAME.
827
ae5e0686
MK
8282012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
829 Pedro Alves <palves@redhat.com>
830
831 * linux-nat.c (linux_nat_detach): Don't unregister from the event
832 loop.
833
5049c5be
TT
8342012-07-16 Tom Tromey <tromey@redhat.com>
835
836 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
837
2908cac6
DE
8382012-07-15 Doug Evans <dje@google.com>
839
094b34ac
DE
840 * dwarf2read.c (stmt_list_hash): New struct.
841 (type_unit_group): Embed "per_cu" member, remove pointer.
842 New union member "t", move member "tus" into it, all uses updated.
843 New member "hash", replaces member "line_offset, all uses updated.
844 (quick_file_names): Replace member "offset" with "hash", all uses
845 updated.
846 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
847 (hash_file_name_entry, eq_file_name_entry): Call them.
848 (hash_type_unit_group, eq_type_unit_group): Ditto.
849 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
850 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
851 (dw2_get_file_names): Update.
852 (create_type_unit_group): Replace "per_cu" arg with "cu".
853 All callers updated. Fix "quick" (.gdb_index) handling.
854 (get_type_unit_group): Replace "per_cu" arg with "cu".
855 All callers updated.
856 (build_type_unit_groups): Don't reset tu_stats.
857
2908cac6
DE
858 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
859 "tab_cur_size". Change member "tab" to be a htab_t.
860 (create_filename_seen_cache): Update.
861 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
862 (filename_seen): Update.
863
a2b6eff5
DE
8642012-07-13 Doug Evans <dje@google.com>
865
866 * symtab.c (filename_seen): Update comment.
867
4359dff1
JK
8682012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
869 Doug Evans <dje@google.com>
870
871 * buildsym.c (end_symtab_1): Split it to ...
872 (end_symtab_get_static_block): ... this ...
873 (end_symtab_from_static_block): ... and this function.
874 (end_symtab, end_expandable_symtab): Call them.
875 * buildsym.h (end_symtab_get_static_block)
876 (end_symtab_from_static_block): New declarations.
877 * dwarf2read.c (process_full_comp_unit): New variable static_block.
878 Set its valid CU ranges.
879
a24f71ab
JK
8802012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
881
882 * dwarf2loc.c (disassemble_dwarf_expression): Handle
883 DW_OP_GNU_parameter_ref.
884
d76b7dbc
JK
8852012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
886
887 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
888 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
889
9fdc877b
DE
8902012-07-13 Doug Evans <dje@google.com>
891
892 * symtab.c (output_source_filename): Delete unnecessary forward decl.
893 (filename_seen_cache): New struct.
894 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
895 (create_filename_seen_cache): New function.
896 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
897 (filename_seen): Delete arg "first". New arg "cache". All callers
898 updated.
899 (output_source_filename_data): New struct.
900 (output_source_filename): Delete arg "first". New arg "data".
901 All callers updated.
902 (sources_info): Delete local "first". New locals "data", "cleanups".
903 Rewrite to use filename_seen_cache.
904 (add_partial_filename_data): Delete member "first". New member
905 "filename_seen_cache". All uses updated.
906 (make_source_files_completion_list): Rewrite to use
907 filename_seen_cache.
908
f80c6f3f
DE
9092012-07-12 Doug Evans <dje@google.com>
910
911 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
912
0bfa869d
DE
9132012-07-10 Doug Evans <dje@google.com>
914
f4dc4d17
DE
915 PR gdb/13498
916 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
917 all_type_unit_groups, type_unit_groups, tu_stats.
918 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
919 All uses updated. Add type_unit_group to union "s".
920 (type_unit_group): New struct.
921 (IS_TYPE_UNIT_GROUP): New macro.
922 (abbrev_table): Delete unused member "section".
923 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
924 (dw2_get_cu): Assert not used with type_unit_group.
925 (dw2_get_primary_cu): New function.
926 (dw2_build_type_unit_groups_reader): New function.
927 (dw2_build_type_unit_groups): New function.
928 (dw2_get_file_names): Assert not called on type units.
929 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
930 Redo loop to iterate over type unit groups instead of type units.
931 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
932 (read_abbrev_offset): New function.
933 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
934 updated.
935 (create_partial_symtab): New function.
936 (process_psymtab_comp_unit_reader): Assert not used with type units.
937 Call create_partial_symtab.
938 (process_psymtab_type_unit): Delete.
939 (hash_type_unit_group, eq_type_unit_group): New functions.
940 (allocate_type_unit_groups_table): New function.
941 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
942 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
943 (create_type_unit_group, get_type_unit_group): New functions.
944 (tu_abbrev_offset): New struct.
945 (sort_tu_by_abbrev_offset): New function.
946 (add_type_unit_group_to_table): New function.
947 (build_type_unit_groups): New function.
948 (build_type_psymtabs_reader): New function.
949 (build_type_psymtab_dependencies): New function.
950 (build_type_psymtabs): Rewrite.
951 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
952 is seen in a type unit.
953 (process_queue): Move symtab expansion debugging printfs here.
954 Call process_full_type_unit for type units.
955 (compute_symtab_includes): Assert not called for type units.
956 (process_cu_includes): Don't call compute_symtab_includes for
957 type units.
958 (process_full_type_unit): New function.
959 (process_imported_unit_die): Flag an error if called for type units.
960 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
961 updated. Assert not called for type units.
962 (read_file_scope): Call dwarf2_start_symtab.
963 (setup_type_unit_groups): New function.
964 (read_type_unit_scope): Rewrite.
965 (abbrev_table_read_table): Initialize abbrev_table->offset.
966 (abbrev_table_free_cleanup): New function.
967 (dwarf2_start_symtab): New function.
968 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
969 * buildsym.c (finish_block_internal): New arg "expandable".
970 All callers updated.
971 (start_symtab): Move most contents to ...
972 (restart_symtab): ... here. New function.
973 (reset_symtab_globals): New function.
974 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
975 Call reset_symtab_globals.
976 (end_symtab, end_expandable_symtab): New functions.
977 (set_missing_symtab, augment_type_symtab): New functions.
978 * buildsym.h (end_expandable_symtab): Declare.
979 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
980 * psympriv.h (struct partial_symtab): New member "anonymous".
981 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
982 anonymous psymtabs.
983 (read_psymtabs_with_filename): Ditto.
984 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
985 (expand_symtabs_matching_via_partial): Ditto.
986 (dump_psymtab): Update.
0bfa869d
DE
987 * dictionary.c (dict_add_pending): New function.
988 * dictionary.h (dict_add_pending): Declare.
989
45e58e77
DE
9902012-07-09 Doug Evans <dje@google.com>
991
b74db436
DE
992 * buildsym.c (start_subfile): Remove unnecessary check for
993 name == NULL.
994
fd55216c
DE
995 * psymtab.c (allocate_psymtab): Use host_address_to_string.
996
6721b2ec
DE
997 * dwarf2read.c (load_full_type_unit): Simplify.
998
b4dd5633
DE
999 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1000 to struct signatured_type **. All uses updated.
1001
45e58e77
DE
1002 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1003 All callers updated.
1004
e314d629
TT
10052012-07-09 Tom Tromey <tromey@redhat.com>
1006
1007 * c-exp.y (check_parameter_typelist): New function.
1008 (parameter_typelist): Call it.
1009 * eval.c (make_params): Handle '(void)' case.
1010 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1011 '(void)' case.
1012
aa7c7447
JK
10132012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1014
1015 * common/linux-ptrace.c: Include gdb_assert.h.
1016 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1017 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1018 stdint.h.
1019 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1020 functions.
1021 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1022 * linux-nat.c (linux_child_post_attach)
1023 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1024
889003ed
JK
10252012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1026
1027 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1028 nptl <2.7 bug workaround for core files.
1029
da559b09
JK
10302012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1031
1032 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1033 clearing.
1034 (save_siginfo): Remove.
1035 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1036 call.
1037 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1038 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1039 * linux-nat.h (struct lwp_info): Remove field siginfo.
1040
f865ee35
JK
10412012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1042
1043 Code cleanup for the next patch.
1044 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1045 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1046 call for it.
1047 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1048 (ia64_linux_stopped_data_address):
1049 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1050 the return value.
1051 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1052 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1053 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1054 call for it.
1055
76b83c51
JK
10562012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1057
1058 PR 14321
1059 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1060 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1061
a6fb9c08
TT
10622012-07-06 Tom Tromey <tromey@redhat.com>
1063
1064 * c-exp.y (DOTDOTDOT): New token.
1065 (func_mod, exp): Use parameter_typelist.
1066 (parameter_typelist): New production.
1067 (tokentab3): Add "..." token.
1068 * eval.c (make_params): Handle varargs.
1069 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1070 varargs.
1071
71918a86
TT
10722012-07-06 Tom Tromey <tromey@redhat.com>
1073
1074 PR exp/9608:
1075 * c-exp.y (%union) <tvec>: Change type.
1076 (func_mod): Now uses <tvec> type.
1077 (exp): Update for tvec change.
1078 (direct_abs_decl): Push the typelist.
1079 (func_mod): Return a typelist.
1080 (nonempty_typelist): Update for tvec change.
1081 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1082 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1083 * parse.c (pop_type_list): New function.
1084 (push_typelist): New function.
1085 (follow_types): Handle tp_function_with_arguments.
1086 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1087 (enum type_pieces) <tp_function_with_arguments>: New constant.
1088 (union type_stack_elt) <typelist_val>: New field.
1089 (push_typelist): Declare.
1090
fcde5961
TT
10912012-07-06 Tom Tromey <tromey@redhat.com>
1092
1093 * c-exp.y (%union) <type_stack>: New field.
1094 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1095 (ptr_operator_ts): New production.
1096 (ptype): Update.
1097 * parse.c (type_stack_reserve): New function.
1098 (check_type_stack_depth): Use it.
1099 (pop_type_stack, append_type_stack, push_type_stack)
1100 (get_type_stack, type_stack_cleanup): New functions.
1101 (follow_types): Handle tp_type_stack.
1102 (_initialize_parse): Simplify initialization.
1103 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1104 constant.
1105 (union type_stack_elt) <stack_val>: New field.
1106 (get_type_stack, append_type_stack, push_type_stack)
1107 (type_stack_cleanup): Declare.
1108
1a7d0ce4
TT
11092012-07-06 Tom Tromey <tromey@redhat.com>
1110
1111 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1112 Remove.
1113 (struct type_stack): New.
1114 * parse.c (type_stack, type_stack_size, type_stack_depth):
1115 Remove.
1116 (type_stack): New global.
1117 (parse_exp_in_context, check_type_stack_depth)
1118 (insert_into_type_stack, insert_type, push_type, push_type_int)
1119 (insert_type_address_space, pop_type, pop_type_int)
1120 (_initialize_parse): Update.
1121
16d01384
TT
11222012-07-06 Tom Tromey <tromey@redhat.com>
1123
1124 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1125 Remove %type.
1126
9bfc60bf
SP
11272012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1128
1129 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1130
d5161074
SP
11312012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1132 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1135 alloca with xmalloc/xfree.
1136
a74bc576
SP
11372012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1138
1139 * MAINTAINERS (Write After Approval): Add myself to the list.
1140
667e0a4b
DE
11412012-07-05 Doug Evans <dje@google.com>
1142
1143 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1144
34b536a8
HZ
11452012-07-05 Hui Zhu <hui_zhu@mentor.com>
1146
1147 * ax-gdb.c (cli/cli-utils.h): New include.
1148 (linespec.h): Ditto.
1149 (agent_eval_command_one): New function.
1150 (agent_command_1): Ditto.
1151 (agent_command): Call function agent_command_1.
1152 (agent_eval_command): Ditto.
1153 (_initialize_ax_gdb): Change help for "maint agent"
1154 and "maint agent-eval".
1155
e6f0bce7
HZ
11562012-07-05 Hui Zhu <hui_zhu@mentor.com>
1157
1158 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1159 * cli/cli-utils.c (check_for_argument): New function.
1160 * cli/cli-utils.h (check_for_argument): Ditto.
1161
1b3371b1
L
11622012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1163
1164 * NEWS: Mention x32 ABI support.
1165
23e2d720
L
11662012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1167
1168 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1169 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1170
1171 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1172 and pc_regnum_from_eax to -1. Update SP regnum from
1173 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1174 needed.
1175
1176 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1177 pc_regnum_from_eax.
1178
836bf454
JK
11792012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1180
1181 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
1182 * dwarf2expr.h: Include gdbtypes.h.
1183 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
1184 these forward declarations.
1185 (cu_offset, sect_offset): Move these ...
1186 * gdbtypes.h: Remove include dwarf2expr.h.
1187 (cu_offset, sect_offset): ... here.
1188
1e55e04f
L
11892012-07-03 H.J. Lu <hongjiu.lu@intel.com>
1190
1191 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
1192 (amd64_linux_sigtramp_code): This.
1193 (amd64_x32_linux_sigtramp_code): New.
1194 (LINUX_SIGTRAMP_LEN): Updated.
1195 (amd64_linux_sigtramp_start): Check x32 sigtramp.
1196
7d0e21ad
JK
11972012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1198
1199 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
1200
8775fd2d
JK
12012012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1202
1203 * config.in: Regenerate.
1204 * configure: Regenerate.
1205 * configure.ac: Remove check for gnu/libc-version.h.
1206 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
1207 gnu/libc-version.h.
1208 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
1209 variables libc_version, libc_major and libc_minor. Replace sscanf by
1210 inferior_has_bug. Extend the comment.
1211
fcb44371
JK
12122012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1213
1214 * linux-thread-db.c (inferior_has_bug): New function.
1215 (thread_db_find_new_threads_silently): Return boolean as checked by
1216 inferior_has_bug, describe it in the comments.
1217 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
1218 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 1219 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
1220 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
1221 if UNTIL_NO_NEW,
1222
09406207
DE
12232012-07-02 Doug Evans <dje@google.com>
1224
0907af0c
DE
1225 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
1226 related to queue management.
1227
09406207
DE
1228 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
1229 instead of "debug dwarf2-die" in debugging printfs.
1230 (create_debug_info_hash_table_reader): Ditto.
1231 (create_debug_info_hash_table): Ditto.
1232 (init_dwo_file): Ditto.
1233 (init_cutu_and_read_dies): Add debugging printf.
1234 (init_cutu_and_read_dies_no_follow): Ditto.
1235 (process_psymtab_comp_unit_reader): Ditto.
1236
d3ce09f5
SS
12372012-07-02 Stan Shebs <stan@codesourcery.com>
1238
1239 Add target-side support for dynamic printf.
1240 * NEWS: Mention the additional style.
1241 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
1242 (struct bp_location): New field cmd_bytecode.
1243 * breakpoint.c: Include format.h.
1244 (disconnected_dprintf): New global.
1245 (parse_cmd_to_aexpr): New function.
1246 (build_target_command_list): New function.
1247 (insert_bp_location): Call it.
1248 (remove_breakpoints_pid): Skip dprintf breakpoints.
1249 (print_one_breakpoint_location): Ditto.
1250 (dprintf_style_agent): New global.
1251 (dprintf_style_enums): Add dprintf_style_agent.
1252 (update_dprintf_command_list): Add agent case.
1253 (agent_printf_command): New function.
1254 (_initialize_breakpoint): Add new commands.
1255 * common/ax.def (printf): New bytecode.
1256 * ax.h (ax_string): Declare.
1257 * ax-gdb.h (gen_printf): Declare.
1258 * ax-gdb.c: Include cli-utils.h, format.h.
1259 (gen_printf): New function.
1260 (maint_agent_print_command): New function.
1261 (_initialize_ax_gdb): Add maint agent-printf command.
1262 * ax-general.c (ax_string): New function.
1263 (ax_print): Add printf disassembly.
1264 * Makefile.in (SFILES): Add format.c
1265 (COMMON_OBS): Add format.o.
1266 * common/format.h: New file.
1267 * common/format.c: New file.
1268 * printcmd.c: Include format.h.
1269 (ui_printf): Call parse_format_string.
1270 * remote.c (remote_state): New field breakpoint_commands.
1271 (PACKET_BreakpointCommands): New enum.
1272 (remote_breakpoint_commands_feature): New function.
1273 (remote_protocol_features): Add new BreakpointCommands entry.
1274 (remote_can_run_breakpoint_commands): New function.
1275 (remote_add_target_side_commands): New function.
1276 (remote_insert_breakpoint): Call it.
1277 (remote_insert_hw_breakpoint): Ditto.
1278 (_initialize_remote): Add new packet configuration for
1279 target-side breakpoint commands.
1280 * target.h (struct target_ops): New field
1281 to_can_run_breakpoint_commands.
1282 (target_can_run_breakpoint_commands): New macro.
1283 * target.c (update_current_target): Handle
1284 to_can_run_breakpoint_commands.
1285
2d7b58e8
JK
12862012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1287
1288 Execute -ix and -iex only after system and user gdbinit files.
1289 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
1290 processing down after gdbinit files.
1291
8690e634
JK
12922012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1293
1294 Add fnmatch-gnu module.
1295 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
1296 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
1297 * gnulib/aclocal.m4: Regenerate.
1298 * gnulib/config.in: Regenerate.
1299 * gnulib/configure: Regenerate.
1300 * gnulib/import/dummy.c: Remove.
1301 * gnulib/import/Makefile.am: Regenerate.
1302 * gnulib/import/Makefile.in: Likewise.
1303 * gnulib/import/m4/gnulib-cache.m4: Likewise.
1304 * gnulib/import/m4/gnulib-comp.m4: Likewise.
1305 * gnulib/import/alloca.c: New file.
1306 * gnulib/import/alloca.in.h: Likewise.
1307 * gnulib/import/config.charset: Likewise.
1308 * gnulib/import/fnmatch.c: Likewise.
1309 * gnulib/import/fnmatch.in.h: Likewise.
1310 * gnulib/import/fnmatch_loop.c: Likewise.
1311 * gnulib/import/localcharset.c: Likewise.
1312 * gnulib/import/localcharset.h: Likewise.
1313 * gnulib/import/m4/alloca.m4: Likewise.
1314 * gnulib/import/m4/codeset.m4: Likewise.
1315 * gnulib/import/m4/configmake.m4: Likewise.
1316 * gnulib/import/m4/fcntl-o.m4: Likewise.
1317 * gnulib/import/m4/fnmatch.m4: Likewise.
1318 * gnulib/import/m4/glibc21.m4: Likewise.
1319 * gnulib/import/m4/localcharset.m4: Likewise.
1320 * gnulib/import/m4/locale-fr.m4: Likewise.
1321 * gnulib/import/m4/locale-ja.m4: Likewise.
1322 * gnulib/import/m4/locale-zh.m4: Likewise.
1323 * gnulib/import/m4/mbrtowc.m4: Likewise.
1324 * gnulib/import/m4/mbsinit.m4: Likewise.
1325 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
1326 * gnulib/import/m4/mbstate_t.m4: Likewise.
1327 * gnulib/import/m4/stdbool.m4: Likewise.
1328 * gnulib/import/m4/wchar_h.m4: Likewise.
1329 * gnulib/import/m4/wctype_h.m4: Likewise.
1330 * gnulib/import/m4/wint_t.m4: Likewise.
1331 * gnulib/import/mbrtowc.c: Likewise.
1332 * gnulib/import/mbsinit.c: Likewise.
1333 * gnulib/import/mbsrtowcs-impl.h: Likewise.
1334 * gnulib/import/mbsrtowcs-state.c: Likewise.
1335 * gnulib/import/mbsrtowcs.c: Likewise.
1336 * gnulib/import/ref-add.sin: Likewise.
1337 * gnulib/import/ref-del.sin: Likewise.
1338 * gnulib/import/stdbool.in.h: Likewise.
1339 * gnulib/import/streq.h: Likewise.
1340 * gnulib/import/strnlen1.c: Likewise.
1341 * gnulib/import/strnlen1.h: Likewise.
1342 * gnulib/import/verify.h: Likewise.
1343 * gnulib/import/wchar.in.h: Likewise.
1344 * gnulib/import/wctype.in.h: Likewise.
1345
202cbf1c
JK
13462012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1347
1348 Support shell wildcards for 'set auto-load safe-path'.
1349 * auto-load.c: Include fnmatch.h.
1350 (filename_is_in_dir): Rename to ...
1351 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
1352 it. Update function comment. Rename dir_len to pattern_len. New
1353 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
1354 messages. Use gdb_filename_fnmatch.
1355 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
1356 pattern.
1357 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
1358 * defs.h (gdb_filename_fnmatch): New declaration.
1359 * utils.c: Include fnmatch.h.
1360 (gdb_filename_fnmatch): New function.
1361
fb7b5af4
SDJ
13622012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
1363
1364 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
1365 `-probe' and `-probe-stap' options.
1366
72d0e2c5
YQ
13672012-07-01 Yao Qi <yao@codesourcery.com>
1368
1369 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
1370 always_inserted_off, and always_inserted_enums.
1371 Change always_inserted_mode's type to 'enum auto_boolean'.
1372 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
1373 callers.
1374 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
1375 of add_setshow_enum_cmd.
1376 * infrun.c: Remove can_use_displaced_stepping_auto,
1377 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
1378 can_use_displaced_stepping_enum.
1379 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
1380 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
1381 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
1382 add_setshow_enum_cmd.
1383
42e7ad6c
DE
13842012-06-30 Doug Evans <dje@google.com>
1385
1386 * dwarf2read.c (signatured_type): Make "per_cu" member first.
1387 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
1388 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
1389
39cf75f7
DE
13902012-06-29 Doug Evans <dje@google.com>
1391
1392 * linespec.c: #include "stack.h".
1393 (decode_line_with_current_source): Moved here from symtab.c and
1394 renamed from decode_line_spec. All callers updated.
1395 (decode_line_with_last_displayed): Moved here from breakpoint.c and
1396 renamed from decode_line_spec_1. All callers updated.
1397 * linespec.h (decode_line_with_current_source): Move declaration here
1398 from symtab.h and renamed from decode_line_spec.
1399 (decode_line_with_last_displayed): Move declaration here from symtab.h
1400 and renamed from decode_line_spec_1.
1401 * macrocmd.c: #include "linespec.h".
1402 * symtab.c: Remove #include "linespec.h".
1403
433df2d4
DE
14042012-06-28 Doug Evans <dje@google.com>
1405
1ce1cefd
DE
1406 * dwarf2read.c (get_cu_length): New function.
1407 (offset_in_cu_p, error_check_comp_unit_head): Call it.
1408 (create_debug_types_hash_table): Ditto.
1409 (init_cutu_and_read_dies): Ditto.
1410 (init_cutu_and_read_dies_no_follow): Ditto.
1411
3b80fe9b
DE
1412 * dwarf2read.c (dwarf2_find_base_address): Move definition.
1413
433df2d4
DE
1414 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
1415 (struct abbrev_table): Define.
1416 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
1417 abbrev_table.
1418 (init_cutu_and_read_dies): Update.
1419 (abbrev_table_alloc_abbrev): New function. Replaces
1420 dwarf_alloc_abbrev. All callers updated.
1421 (abbrev_table_add_abbrev): New function.
1422 (abbrev_table_lookup_abbrev): New function. Replaces
1423 dwarf2_lookup_abbrev. All callers updated.
1424 (abbrev_table_read_table): New function. Contents moved here from
1425 dwarf2_read_abbrevs.
1426 (dwarf2_read_abbrevs): Call it.
1427 (abbrev_table_free): New function.
1428 (dwarf2_free_abbrev_table): Call it.
1429
71caed83
SS
14302012-06-28 Stan Shebs <stan@codesourcery.com>
1431
1432 * osdata.c (info_osdata_command): Filter out "Title" columns
1433 from non-MI uses.
1434 * common/linux-osdata.c (struct osdata_type): Add title field.
1435 (osdata_table): Add titles to each entry.
1436 (linux_command_xfer_osdata): Add a column for title data.
1437
37ce89eb
SS
14382012-06-28 Stan Shebs <stan@codesourcery.com>
1439
1440 Make logging work for MI.
1441 * NEWS: Mention it.
1442 * interps.h (interp_set_logging_ftype): New typedef.
1443 (struct interp_procs): New field set_logging_proc.
1444 (current_interp_set_logging): Declare.
1445 * interps.c (current_interp_set_logging): New function.
1446 * cli/cli-logging.c: Include interps.h.
1447 (set_logging_redirect): Call current_interp_set_logging.
1448 (pop_output_files): Ditto.
1449 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
1450 * mi/mi-console.h (mi_console_set_raw): Declare.
1451 * mi/mi-console.c (mi_console_set_raw): New function.
1452 * mi/mi-interp.c (saved_raw_stdout): New global.
1453 (mi_set_logging): New function.
1454 (_initialize_mi_interp): Add it to interp procs.
1455
659c9f3a
DE
14562012-06-28 Doug Evans <dje@google.com>
1457
a743abeb
DE
1458 * symtab.c (lookup_symbol_aux_objfile): Use
1459 ALL_OBJFILE_PRIMARY_SYMTABS.
1460
659c9f3a
DE
1461 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
1462
da2d6d3d
JK
14632012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 * common/buffer.c: Include inttypes.h and stdint.h.
1466 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
1467
e5ef252a
PA
14682012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1469 Pedro Alves <palves@redhat.com>
1470
1471 * gdbthread.h (ALL_THREADS): New macro.
1472 (thread_list): Declare.
1473 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
1474 going, but instead fall through to the stepping handling.
1475 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
1476 the passed in signal. Adjust debug output.
1477 (resume_callback): Rename to ...
1478 (linux_nat_resume_callback): ... this. Pass the thread's last
1479 stop signal, if in "pass" state.
1480 (linux_nat_resume): Adjust to rename.
1481 (stop_wait_callback): New assertion. Don't respawn signals;
1482 instead let the LWP remain with SIGNALLED set.
1483 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
1484 * remote.c (append_pending_thread_resumptions): New.
1485 (remote_vcont_resume): Call it.
1486 * target.h (target_resume): Extend comment.
1487
1d7975eb
IS
14882012-06-28 Iain Sandoe <iain@codesourcery.com>
1489
1490 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
1491
2e3cf129
DE
14922012-06-27 Doug Evans <dje@google.com>
1493
1494 * dwarf2read.c (dwarf2_cu): Add ranges_base.
1495 Delete have_addr_base, unused. All uses updated.
1496 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
1497 (dwarf2_get_pc_bounds): Add ranges_base.
1498 (dwarf2_record_block_ranges): Ditto.
1499
1bb9788d
TT
15002012-06-27 Tom Tromey <tromey@redhat.com>
1501
1502 PR macros/7961:
1503 * varobj.c (varobj_create): Update.
1504 (varobj_set_value): Update.
1505 * tracepoint.c (validate_actionline): Update.
1506 (encode_actions_1): Update.
1507 * parse.c (parse_exp_1): Add 'pc' argument.
1508 (parse_exp_in_context): Add 'pc' argument. Change how
1509 expression_context_pc is set.
1510 (parse_expression): Update.
1511 (parse_field_expression): Update.
1512 * expression.h (parse_exp_1): Update.
1513 * eval.c (parse_to_comma_and_eval): Update.
1514 * breakpoint.c (set_breakpoint_condition): Update.
1515 (update_watchpoint): Update.
1516 (init_breakpoint_sal): Update
1517 (find_condition_and_thread): Update.
1518 (watch_command_1): Update.
1519 (update_breakpoint_locations): Update.
1520 * ada-lang.c (ada_read_renaming_var_value): Update.
1521 (create_excep_cond_exprs): Update.
1522
0bc3a05c
DE
15232012-06-27 Doug Evans <dje@google.com>
1524
1525 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
1526 type units.
1527
4bdcc0c1
DE
15282012-06-26 Doug Evans <dje@google.com>
1529
1530 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
1531 prototype.
1532 (error_check_comp_unit_head): New arg abbrev_section. All callers
1533 updated.
1534 (read_and_check_comp_unit_head): Ditto.
1535 (read_and_check_type_unit_head): Ditto.
1536
ee0bf529
SCR
15372012-06-26 Siva Chandra Reddy <sivachandra@google.com>
1538
1539 New attribute 'last' for gdb.Symtab_and_line.
1540 * NEWS (Python Scripting): Add entry about the new attribute.
1541 * python/py-symtab.c (salpy_get_last): New function which
1542 implements the get method for the 'last' attribute of
1543 gdb.Symtab_and_line.
1544 (sal_object_getset): Add entry for the 'last' attribute.
1545
1c658ad5
DE
15462012-06-26 Doug Evans <dje@google.com>
1547
09262596
DE
1548 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
1549 (dwo_sections): Add macinfo, macro.
1550 (dwarf2_locate_dwo_sections): Watch for macro sections.
1551 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
1552 All callers updated. Handle DWO files.
1553
45cfd468
DE
1554 * NEWS: Mention new options "set debug dwarf2-read" and
1555 "set debug symtab-create".
1556 * dwarf2read.c (dwarf2_read_debug): New static global.
1557 (dwarf2_build_psymtabs_hard): Add debugging printfs.
1558 (process_queue): Ditto.
1559 (process_full_comp_unit): Ditto.
1560 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
1561 * elfread.c (elf_symfile_read): Add debugging printf.
1562 * minsyms.c (install_minimal_symbols): Ditto.
1563 * psymtab.c (allocate_psymtab): Ditto.
1564 * symfile.c (allocate_symtab): Ditto.
1565 * symtab.c (symtab_create_debug): New global.
1566 (_initialize_symtab): Add new option "set debug symtab-create".
1567 * symtab.h (symtab_create_debug): Declare.
1568
1c658ad5
DE
1569 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
1570 (lookup_dwo_type_unit): Ditto.
1571
6fea9e18
L
15722012-06-26 Roland McGrath <roland@hack.frob.com>
1573 H.J. Lu <hongjiu.lu@intel.com>
1574
1575 * amd64-linux-nat.c: Include <sys/user.h>.
1576 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
1577 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
1578 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
1579
1580 * configure.ac: Check if the fs_base and gs_base members of
1581 `struct user_regs_struct' exist.
1582 * config.in: Regenerated.
1583 * configure: Likewise.
1584
adb4fe3b
ME
15852012-06-25 Michael Eager <eager@eagercon.com>
1586
1587 PR python/14291
1588 * python/python.c (gdbpy_write): Check for interrupted output.
1589
fc51cce1
MGD
15902012-06-25 Greta Yorsh <greta.yorsh@arm.com>
1591
1592 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
1593 register as a stack alignment in ARM mode.
1594
40a73391
JK
15952012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1596
1597 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
1598 * gnulib/config.in: Regenerate.
1599 * gnulib/configure: Likewise.
1600 * gnulib/import/m4/extensions.m4: Update it.
1601 * gnulib/import/m4/gnulib-common.m4: Likewise.
1602 * gnulib/import/m4/memmem.m4: Likewise.
1603 * gnulib/import/m4/mmap-anon.m4: Likewise.
1604 * gnulib/import/m4/multiarch.m4: Likewise.
1605 * gnulib/import/stdint.in.h: Likewise.
1606
972daa01
YQ
16072012-06-24 Yao Qi <yao@codesourcery.com>
1608
1609 * corefile.c (write_memory_with_notification): New.
1610 * gdbcore.h: Declare write_memory_with_notification.
1611 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
1612 'observer_notify_memory_changed' with 'write_memory_with_notification'.
1613 * valops.c (value_assign): Likewise.
1614 * python/py-inferior.c (infpy_write_memory): Call
1615 'write_memory_with_notification'.
1616
8d6e0714
JK
16172012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1618
1619 * cc-with-index.sh: Use also -ex "set auto-load no".
1620
156942c7
DE
16212012-06-23 Doug Evans <dje@google.com>
1622
1623 PR 14125
1624 * NEWS: Document additions to .gdb_index.
1625 * dwarf2read.c: #include "gdb/gdb-index.h".
1626 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
1627 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
1628 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
1629 (dwarf2_read_index): Recognize version 7.
1630 (dw2_do_expand_symtabs_matching): New args want_specific_block,
1631 block_kind, domain): All callers updated.
1632 (dw2_find_symbol_file): Handle new index CU values.
1633 (dw2_expand_symtabs_matching): Match symbol kind if requested.
1634 (add_index_entry): New args is_static, kind. All callers updated.
1635 (offset_type_compare, uniquify_cu_indices): New functions
1636 (symbol_kind): New function.
1637 (write_psymtabs_to_index): Remove duplicate CU values.
1638 (write_psymtabs_to_index): Write .gdb_index version 7.
1639
352b3eda
JB
16402012-06-22 Joel Brobecker <brobecker@adacore.com>
1641
1642 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
1643 * configure: Regenerate.
1644
2678e2af
YQ
16452012-06-20 Yao Qi <yao@codesourcery.com>
1646
1647 * python/py-inferior.c: Update comments of infpy_read_memory
1648 and infpy_write_memory.
1649
95c391b6
TT
16502012-06-19 Tom Tromey <tromey@redhat.com>
1651
1652 PR exp/9514:
1653 * parser-defs.h (insert_type, insert_type_address_space): Declare.
1654 (push_type_address_space): Remove.
1655 * parse.c (insert_into_type_stack): New function.
1656 (insert_type): Likewise.
1657 (insert_type_address_space): Rename from push_type_address_space.
1658 Insert tp_space_identifier.
1659 * c-exp.y (ptr_operator): New production.
1660 (abs_decl): Use ptr_operator.
1661 (space_identifier): Call insert_type_address_space.
1662 (ptype): Don't use const_or_volatile_or_space_identifier.
1663 (const_or_volatile_noopt): Call insert_type.
1664 (conversion_type_id, conversion_declarator): New productions.
1665 (operator): Use conversion_type_id.
1666
6ac9ef80
DE
16672012-06-18 Doug Evans <dje@google.com>
1668
422d65e7
DE
1669 * symtab.h (minimal_symbol): New member created_by_gdb.
1670 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
1671 created by gdb.
1672 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
1673 (search_symbols): Call it instead of lookup_symbol.
1674 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
1675
49f6c839
DE
1676 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
1677 Adjust address for DW_OP_GNU_addr_index.
1678 * dwarf2expr.h (dwarf_expr_context): Update comment.
1679 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
1680 all callers updated. Handle TLS vars described with
1681 DW_OP_GNU_const_index.
1682 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
1683 and DW_OP_GNU_const_index.
1684 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
1685
6ac9ef80
DE
1686 * block.c (find_block_in_blockvector): Make explicit the fact that we
1687 ignore GLOBAL_BLOCK.
1688
4cd18215
TT
16892012-06-18 Tom Tromey <tromey@redhat.com>
1690
1691 * c-exp.y (operator): Remove trailing space after "delete" and
1692 "delete[]".
1693
a9b8d892
JK
16942012-06-18 Mark Kettenis <kettenis@gnu.org>
1695 Jan Kratochvil <jan.kratochvil@redhat.com>
1696
1697 Switch i386 and derived targets to ON_STACK.
1698 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
1699 (amd64_dicos_init_abi): Remove its installment.
1700 * dicos-tdep.c (dicos_init_abi): Remove the
1701 set_gdbarch_call_dummy_location call. Update the comment here.
1702 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
1703 (i386_dicos_init_abi): Remove its installment.
1704 * i386-tdep.c (i386_push_dummy_code): New function.
1705 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
1706 i386_push_dummy_code.
1707
e2e4d78b
JK
17082012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1709
1710 Remove stale dummy frames.
1711 * breakpoint.c: Include dummy-frame.h.
1712 (longjmp_breakpoint_ops): New variable.
1713 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
1714 bp_longjmp_call_dummy.
1715 (bpstat_what, bptype_string, print_one_breakpoint_location)
1716 (init_bp_location): Support bp_longjmp_call_dummy.
1717 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
1718 (set_longjmp_breakpoint_for_call_dummy)
1719 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
1720 functions.
1721 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
1722 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
1723 FIXME comment and extend the other comment for bp_call_dummy.
1724 (set_longjmp_breakpoint_for_call_dummy)
1725 (check_longjmp_breakpoint_for_call_dummy): New declarations.
1726 * dummy-frame.c: Include gdbthread.h.
1727 (pop_dummy_frame_bpt): New function.
1728 (pop_dummy_frame): Call pop_dummy_frame_bpt.
1729 (dummy_frame_discard): New function.
1730 (cleanup_dummy_frames): Update the comment about longjmps.
1731 * dummy-frame.h (dummy_frame_discard): New declaration.
1732 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
1733 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
1734 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
1735 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
1736 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
1737 keep_going if IS_LONGJMP and there is no other reason to stop.
1738
09d5912c
TT
17392012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
1740
1741 * remote-sim.c (sim_command_completer): Initialize
1742 variable 'result'.
1743
1788b2d3
JK
17442012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1745
1746 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
1747 * dwarf2loc.c (call_site_parameter_matches): Support
1748 CALL_SITE_PARAMETER_PARAM_OFFSET.
1749 (needs_dwarf_reg_entry_value): Push stub value.
1750 * dwarf2read.c (read_call_site_scope): New variable origin. Support
1751 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
1752 * gdbtypes.h (enum call_site_parameter_kind): New item
1753 CALL_SITE_PARAMETER_PARAM_OFFSET.
1754 (struct call_site.parameter.u): New field param_offset.
1755
24c5c679
JK
17562012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1757
1758 Code cleanup: Generalize call_site.parameter key.
1759 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
1760 variable dwarf_reg. New variable kind_u. Update parameters to
1761 push_dwarf_reg_entry_value.
1762 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1763 * dwarf2expr.h (enum call_site_parameter_kind)
1764 (union call_site_parameter_u): Forward declarations.
1765 (struct dwarf_expr_context_funcs): Update parameters and their
1766 description for push_dwarf_reg_entry_value.
1767 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
1768 * dwarf2loc.c (call_site_parameter_matches): New function.
1769 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
1770 description. Use call_site_parameter_matches.
1771 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
1772 Update parameters and their description.
1773 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
1774 New variable kind_u. Adjust the caller for updated parameters.
1775 (needs_dwarf_reg_entry_value): Update parameters.
1776 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
1777 instead of attr. Update for the changed fields of struct
1778 call_site_parameter.
1779 * gdbtypes.h: Include dwarf2expr.h.
1780 (enum call_site_parameter_kind): New.
1781 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
1782 fb_offset into new union u.
1783
ac142d96
L
17842012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1785
1786 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
1787 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
1788 for x32.
1789
ba224c70
L
17902012-06-16 H.J. Lu <hongjiu.lu@intel.com>
1791
1792 * amd64-linux-nat.c (compat_x32_clock_t): New.
1793 (compat_x32_siginfo_t): Likewise.
1794 (compat_x32_siginfo_from_siginfo): Likewise.
1795 (siginfo_from_compat_x32_siginfo): Likewise.
1796 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
1797 and siginfo_from_compat_x32_siginfo for x32.
1798
7ecbc825
HZ
17992012-06-15 Hui Zhu <hui_zhu@mentor.com>
1800
1801 * tracepoint.c (tfile_xfer_partial): Add a lseek.
1802
233dfcf0
L
18032012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
1806 instead of gdbarch_ptr_bit.
1807 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
1808 (amd64_supply_native_gregset): Likewise.
1809 (amd64_collect_native_gregset): Likewise.
1810 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
1811 (amd64_supply_xsave): Likewise.
1812 (amd64_collect_fxsave): Likewise.
1813 (amd64_collect_xsave): Likewise.
1814
6da38f42
L
18152012-06-15 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
1818 (amd64_linux_read_description): Check DS segment register for
1819 x32 process.
1820
663b969e
TT
18212012-06-15 Tom Tromey <tromey@redhat.com>
1822
1823 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
1824 init_cutu_and_read_dies.
1825
d6f05027
IS
18262012-06-15 Iain Sandoe <iain@codesourcery.com>
1827
1828 * MAINTAINERS (Write After Approval): Add myself to the list.
1829
6598ed07
TT
18302012-06-15 Tom Tromey <tromey@redhat.com>
1831
1832 * valops.c (value_find_oload_method_list): Now static.
1833 * value.h (value_find_oload_method_list): Don't declare.
1834
2b214ea6
TT
18352012-06-15 Tom Tromey <tromey@redhat.com>
1836
1837 * valops.c (find_overload_match): Use value_ind.
1838
a210c238
MR
18392012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
1840
1841 * infrun.c (handle_inferior_event): Correct indentation.
1842
3771a44c
DE
18432012-06-14 Doug Evans <dje@google.com>
1844
1845 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
1846 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
1847 All uses updated.
1848 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
1849 updated. Handle DEBUG_LOC_START_LENGTH.
1850 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
1851 (loclist_describe_location): Ditto.
1852
1c5a993e
MR
18532012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
1854
1855 PR backtrace/13866
1856 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
1857 after hiding inline functions.
1858
0b155465
JB
18592012-06-13 Joel Brobecker <brobecker@adacore.com>
1860
1861 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
1862 _initialize_inf_ttrace.
1863
45717bac
JB
18642012-06-13 Joel Brobecker <brobecker@adacore.com>
1865
1866 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
1867 _initialize_hppa_hpux_nat.
1868
34370865
JB
18692012-06-13 Joel Brobecker <brobecker@adacore.com>
1870
1871 * remote-sim.c (sim_command_completer): Change type of return
1872 value to "VEC (char_ptr) *". Adjust implementation accordingly.
1873
284c5a60
MK
18742012-06-13 Mark Kettenis <kettenis@gnu.org>
1875 Jan Kratochvil <jan.kratochvil@redhat.com>
1876
1877 PR tdep/14222
1878 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
1879 stack on a 16-byte boundary.
1880
2535757a
TT
18812012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
1882
1883 * jit.c (finalize_symtab): Set function's return type to 'void' by
1884 default.
1885
fff4548b
MK
18862012-06-13 Mark Kettenis <kettenis@gnu.org>
1887 H.J. Lu <hongjiu.lu@intel.com>
1888
5a83521a
MK
1889 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
1890 Move bits common to both the classic LP64 and the new x32 ILP32
1891 ABI here.
1892 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
1893 (amd64_x32_linux_init_abi): New function.
1894 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
1895 subtype.
1896
fff4548b
MK
1897 * i386-tdep.h (i386_pseudo_register_name): New prototype.
1898 * i386-tdep.c (i386_pseudo_register_name): Make public.
1899 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
1900 * amd64-tdep.c (amd64_dword_names): Add "eip".
1901 (amd64_x32_pseudo_register_type): New function
1902 (amd64_x32_init_abi): New function.
1903
dd80ea3c
JK
19042012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1905
1906 PR build/14003
1907 * inferior.h (struct inferior_suspend_state): Comment out.
1908 (struct inferior): Comment out the field suspend.
1909 * infrun.c (struct infcall_suspend_state): Comment out the field
1910 inferior_suspend.
1911 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
1912 out its assignment.
1913
50af5481
JK
19142012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1915
1916 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
1917 * c-exp.y (classify_inner_name): Remove caller assumptions in the
1918 function comment. Return ERROR for unresolved cases. Implement
1919 returning proper NAME.
1920 (yylex): Accept also NAME from classify_inner_name.
1921 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
1922 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
1923 LOC_TYPEDEF type.
1924 * cp-support.h (cp_lookup_nested_type): Update its declaration.
1925
d55637df
TT
19262012-06-13 Tom Tromey <tromey@redhat.com>
1927
1928 * breakpoint.c (condition_completer): New function.
1929 (_initialize_breakpoint): Use it.
1930 * value.c (complete_internalvar): New function.
1931 * value.h (complete_internalvar): Declare.
1932
49c4e619
TT
19332012-06-13 Tom Tromey <tromey@redhat.com>
1934
1935 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
1936 * breakpoint.c (catch_syscall_completer): Return a VEC.
1937 * cli/cli-cmds.c (complete_command): Update.
1938 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
1939 (complete_on_enum): Likewise.
1940 * command.h: Include gdb_vecs.h.
1941 (completer_ftype): Change return type.
1942 (complete_on_cmdlist, complete_on_enum): Likewise.
1943 * completer.c (noop_completer, filename_completer)
1944 (location_completer): Return a VEC.
1945 (add_struct_fields): Remove 'nextp' argument. Change 'output'
1946 to a VEC.
1947 (expression_completer, complete_line_internal, complete_line)
1948 (command_completer): Return a VEC.
1949 (gdb_completion_word_break_characters, line_completion_function):
1950 Update.
1951 * completer.h: Include gdb_vecs.h.
1952 (complete_line, noop_completer, filename_completer)
1953 (expression_completer, location_completer, command_completer):
1954 Update.
1955 * f-lang.c (f_word_break_characters): Return a VEC.
1956 * interps.c (interpreter_completer): Return a VEC.
1957 * language.h (struct language_defn)
1958 <la_make_symbol_completion_list>: Return a VEC.
1959 * python/py-cmd.c (cmdpy_completer): Return a VEC.
1960 * symtab.c (free_completion_list): Take a VEC.
1961 (return_val_size, return_val_index): Remove.
1962 (return_val): Now a VEC.
1963 (completion_list_add_name): Update.
1964 (default_make_symbol_completion_list_break_on)
1965 (default_make_symbol_completion_list, make_symbol_completion_list)
1966 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
1967 Return a VEC.
1968 (add_filename_to_list): Update.
1969 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
1970 <list>: Now a VEC.
1971 (maybe_add_partial_symtab_filename): Update.
1972 (make_source_files_completion_list): Return a VEC.
1973 * symtab.h (default_make_symbol_completion_list_break_on)
1974 (default_make_symbol_completion_list, make_symbol_completion_list)
1975 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
1976 (make_source_files_completion_list): Update.
1977
625e8578
TT
19782012-06-13 Tom Tromey <tromey@redhat.com>
1979
1980 * breakpoint.c (add_catch_command): Use completer_ftype.
1981 * breakpoint.h: Include command.h.
1982 (add_catch_command): Use completer_ftype.
1983 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
1984 * cli/cli-decode.h (struct cmd_list_element) <completer>:
1985 Use completer_ftype.
1986 * command.h (completer_ftype): New typedef.
1987 (set_cmd_completer): Use it.
1988 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
1989 completer_ftype.
1990
5eb3b062
PA
19912012-06-13 Pedro Alves <palves@redhat.com>
1992
1993 Partial revert of previous change.
1994
1995 * serial.c (scb_base): New global.
1996 (serial_for_fd): New.
1997 (serial_open, serial_fdopen_ops): Link new serial in open serials
1998 chain.
1999 (do_serial_close): Unlink serial from the open serials chain.
2000
8b3ee56d
PA
20012012-06-12 Pedro Alves <palves@redhat.com>
2002
2003 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2004 threads here.
2005 (prepare_for_detach): No longer context switch here in non-stop
2006 mode.
2007 (fetch_inferior_event): Ditto.
2008 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2009 to the event thread before removing breakpoints. Switch to the
2010 event thread before inserting breakpoints and resuming.
2011 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2012 event thread before resuming.
2013 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2014 Switch to the event thread before removing breakpoints.
2015
5d60742e
EZ
20162012-06-12 Eli Zaretskii <eliz@gnu.org>
2017
2018 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2019 special characters correctly for the Windows shells. See
2020 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2021 report.
2022 [!__MINGW32__]: Remove extra double quote character from special
2023 characters.
2024
a6feecf7
SS
20252012-06-11 Stan Shebs <stan@codesourcery.com>
2026
2027 * ui-out.h: Remove #if 0 declarations.
2028 * ui-out.c: Remove #if 0 functions.
2029
ddefb60f
PA
20302012-06-11 Pedro Alves <palves@redhat.com>
2031
2032 * ser-base.c (run_async_handler_and_reschedule): New.
2033 (fd_event, push_event): Use it.
2034 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2035 reference count to 1.
2036 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2037 instead of xfree.
2038 (serial_is_open, serial_ref, serial_unref): New.
2039 * serial.h (serial_open): Adjust comment.
2040 (serial_is_open): Declare.
2041 (serial_close): Adjust comment.
2042 (serial_ref, serial_unref) Declare.
2043 (struct serial): New field 'refcnt'.
2044
d5ad6aa5
PA
20452012-06-11 Pedro Alves <palves@redhat.com>
2046
2047 Remove #if 0'd "connect" command, and unnecessary associated
2048 refcounting and serial reuse bits.
2049
2050 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2051 * serial.c (last_serial_opened): Delete.
2052 (scb_base): Delete.
2053 (serial_open): Adjust.
2054 (serial_for_fd): Delete.
2055 (serial_fdopen_ops, do_serial_close): Adjust.
2056 (serial_fdopen_ops): Adjust.
2057
318aa544
PA
20582012-06-11 Pedro Alves <palves@redhat.com>
2059
2060 * serial.c (do_serial_close): Remove early return when SCB is
2061 null.
2062
07261596
TT
20632012-06-11 Tom Tromey <tromey@redhat.com>
2064
2065 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2066
cc80f267
JK
20672012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 Fix regression by the "ambiguous linespec" series.
2070 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2071 get_last_displayed_symtab and get_last_displayed_line and depending
2072 on CURSAL.
2073
356d9f9d
TT
20742012-06-11 Tom Tromey <tromey@redhat.com>
2075
2076 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2077 (dw2_find_symbol_file): Use it.
2078
232b8704
ME
20792012-06-11 Michael Eager <eager@eagercon.com>
2080
2081 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2082 * mips-linux-tdep.h (mips_signals): New
2083
e81a37f7
TT
20842012-06-11 Tom Tromey <tromey@redhat.com>
2085
2086 * infrun.c (handle_inferior_event)
2087 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2088 breakpoint.
2089 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2090 exception logic in all cases. Update comments.
2091 (insert_longjmp_resume_breakpoint): Set the exception resume
2092 breakpoint.
2093
2e81047f
MR
20942012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2095
2096 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2097
4e32eda7
SCR
20982012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2099
2100 * valarith.c (binop_types_user_defined_p): Fix a typo.
2101
18648a37
YQ
21022012-06-08 Yao Qi <yao@codesourcery.com>
2103 Chung-Lin Tang <cltang@codesourcery.com>
2104
2105 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2106 * arch-utils.h: Declare.
2107 * gdbarch.sh: Add return_in_first_hidden_param_p.
2108 * gdbarch.c, gdbarch.h: Regenerated.
2109 * infcall.c (call_function_by_hand): Call
2110 gdbarch_return_in_first_hidden_param_p instead of
2111 language_pass_by_reference.
2112
2113 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2114 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2115 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2116 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2117 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2118 `cplus_return_struct_by_reference'.
2119 (tic6x_return_value): Handle language cplusplus.
2120 (tic6x_return_in_first_hidden_param_p): New.
2121 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2122
034e5797
DE
21232012-06-07 Doug Evans <dje@google.com>
2124
2125 * dwarf2read.c (dwarf2_cu): Add comment.
2126
6a00aa1e
MR
21272012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2128
2129 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2130 variable.
2131 (mips_eabi_push_dummy_call): Likewise.
2132 (mips_n32n64_push_dummy_call): Likewise.
2133 (mips_o32_push_dummy_call): Likewise.
2134 (mips_o64_push_dummy_call): Likewise.
2135
eaa05d59
MR
21362012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2137
2138 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2139
de13fcf2
MR
21402012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2141
2142 * mips-tdep.c (mips_pseudo_register_type): Use
2143 mips_float_register_p.
2144
c3a01a22
PA
21452012-06-06 Pedro Alves <palves@redhat.com>
2146
2147 * infrun.c (handle_inferior_event): Remove calls to
2148 reinit_frame_cache that follow a context_switch call.
2149
d25f45d9
PA
21502012-06-06 Pedro Alves <palves@redhat.com>
2151
2152 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2153 context_switch and remove stale comment.
2154
359f5fe6
PA
21552012-06-06 Pedro Alves <palves@redhat.com>
2156
2157 * infrun.c (struct execution_control_state): Remove
2158 `new_thread_event' field.
2159 (handle_inferior_event): Simplify new threads handling; don't
2160 resume the inferior if we find a new thread.
2161
2d4c29c5
TS
21622012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2163
2164 * NEWS: Document the deprecation of SH's 'regs' command.
2165 * inferior.h (all_registers_info): Add function declaration.
2166 * sh-tdep.c (sh_show_regs): Remove variable.
2167 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2168 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2169 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2170 (sh_show_regs_command): Remove functions.
2171 (sh_gdbarch_init): Don't set sh_show_regs.
2172 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2173 'info all-registers'.
2174 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2175 (sh64_show_regs): Remove functions.
2176 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2177
f5f1cdb6
JK
21782012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2179
2180 * configure.ac: Move development=true below AC_INIT.
2181 * configure: Regenerate.
2182
bf6309af
SS
21832012-06-05 Stan Shebs <stan@codesourcery.com>
2184
2185 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
2186 gdb_stdout.
2187
45aa4659
JK
21882012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
2189
2190 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
2191 argument as ssize_t.
2192 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
2193 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
2194 * target.c (target_read_stack, target_write_memory)
2195 (target_write_raw_memory): Likewise.
2196 * target.h (target_read_stack, target_write_memory)
2197 (target_write_raw_memory): Likewise.
2198
1b162304
JK
21992012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2200
2201 * symfile-mem.c: Change gdb_static_assert to ssize_t.
2202 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
2203 * target.c (target_read_memory): Change LEN to ssize_t.
2204 * target.h (target_read_memory): Change LEN to ssize_t.
2205
8556afb4
PA
22062012-06-05 Pedro Alves <palves@redhat.com>
2207
2208 PR backtrace/13866
2209
2210 * breakpoint.c (until_break_command): Only fetch the selected
2211 frame after decode_line_1.
2212
fb139f32
PA
22132012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
2214
2215 * solib-svr4.c (enable_break): Don't fallback to setting the solib
2216 event breakpoint at _start, __start or main if a program
2217 interpreter is not found.
2218
a8e1bb34
JB
22192012-06-05 Joel Brobecker <brobecker@adacore.com>
2220
2221 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
2222 Add declaration.
2223 * windows-tdep.c: #include "objfiles.h".
2224 (windows_iterate_over_objfiles_in_search_order): New function.
2225 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
2226 iterate_over_objfiles_in_search_order gdbarch method to
2227 windows_iterate_over_objfiles_in_search_order.
2228 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
2229
19630284
JB
22302012-06-05 Joel Brobecker <brobecker@adacore.com>
2231
2232 * gdbarch.sh: Add generation of
2233 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
2234 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
2235 (iterate_over_objfiles_in_search_order): New gdbarch method.
2236 * gdbarch.h, gdbarch.c: Regenerate.
2237 * objfiles.h (default_iterate_over_objfiles_in_search_order):
2238 Add declaration.
2239 * objfiles.c (default_iterate_over_objfiles_in_search_order):
2240 New function.
2241 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2242 out of lookup_symbol_aux_symtabs.
2243 (lookup_symbol_aux_symtabs): Replace extracted-out code by
2244 call to lookup_symbol_aux_objfile.
2245 (struct global_sym_lookup_data): New type.
2246 (lookup_symbol_global_iterator_cb): New function.
2247 (lookup_symbol_global): Search for symbol using
2248 gdbarch_iterate_over_objfiles_in_search_order and
2249 lookup_symbol_global_iterator_cb.
2250 * findvar.c (struct minsym_lookup_data): New type.
2251 (minsym_lookup_iterator_cb): New function.
2252 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
2253 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
2254 and minsym_lookup_iterator_cb.
2255
67ff19f7
JB
22562012-06-05 Joel Brobecker <brobecker@adacore.com>
2257
2258 Revert the following patch:
2259 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2260 try locating the symbol in the symbol's own objfile first, before
2261 extending the search to all objfiles.
2262 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2263 out of lookup_symbol_aux_symtabs.
2264 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2265 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2266 Do not search EXCLUDE_OBJFILE.
2267 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2268 (lookup_symbol_global): Search for matches in the block's objfile
2269 first, before searching all other objfiles.
2270
ccab2054
JB
22712012-06-05 Joel Brobecker <brobecker@adacore.com>
2272
2273 * breakpoint.c (find_condition_and_thread): Stop parsing
2274 as soon as the first invalid keyword is found.
2275
e23d4a9c
JB
22762012-06-05 Joel Brobecker <brobecker@adacore.com>
2277
2278 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
2279
70160166
JB
22802012-06-05 Joel Brobecker <brobecker@adacore.com>
2281
2282 * config/djgpp/djcheck.sh: Add copyright header.
2283
399501a5
JB
22842012-06-05 Joel Brobecker <brobecker@adacore.com>
2285
2286 * copyright.py (update_files, main): Fix path to update-copyright
2287 script.
2288
3770a159
JB
22892012-06-05 Joel Brobecker <brobecker@adacore.com>
2290
2291 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
2292 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
2293 for which a reminder to update by hand is printed.
2294
4aad0dfc
DE
22952012-06-04 Doug Evans <dje@google.com>
2296
2297 * buildsym.c (make_blockvector): Add comment.
2298
1f8cf220
PA
22992012-06-04 Pedro Alves <palves@redhat.com>
2300
2301 * arch-utils.c (default_gdb_signal_from_target): Delete.
2302 * arch-utils.h (default_gdb_signal_from_target): Delete.
2303 * corelow.c (core_open) <signal mapping>: Extended comment. Check
2304 gdbarch_gdb_signal_from_target_p.
2305 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
2306 predicate).
2307 * gdbarch.h: Regenerate.
2308 * gdbarch.c: Regenerate.
2309
86b49880
PA
23102012-06-04 Pedro Alves <palves@redhat.com>
2311
2312 * gdbarch.sh (gdb_signal_from_target): Mention that the
2313 implementation of the method must be host independent.
2314 * gdbarch.h: Regenerate.
2315
fe78531d
JK
23162012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2317
2318 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
2319 parameters.
2320 (target_read_memory_bfd): New function.
2321 (symbol_file_add_from_memory): Use it.
2322
d790cf0a
DE
23232012-06-03 Doug Evans <dje@google.com>
2324
78e5175a
DE
2325 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
2326 of primary symtab.
2327 (basic_lookup_transparent_type): Ditto.
2328
d790cf0a
DE
2329 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
2330 (ALL_PRIMARY_SYMTABS): Use it.
2331 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
2332 * dwarf2read.c (dw2_find_symbol_file): Ditto.
2333 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
2334 * symtab.c (lookup_symbol_aux_objfile): Ditto.
2335 (basic_lookup_transparent_type): Ditto.
2336
c6e5ee5e
SDJ
23372012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
2338
2339 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
2340 it to optimize resolution of demangled name.
2341
a68ffae9
JK
23422012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2343
2344 * configure.ac (development): Define new variable.
2345 Call AC_CHECK_LIB for mcheck if $development.
2346 (ERROR_ON_WARNING): Enable it by default only if $development.
2347 * config.in: Regenerate.
2348 * configure: Regenerate.
2349
5299c1c4
JK
23502012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
2351
2352 * target.c (target_read_memory): Make LEN argument as size_t.
2353 * target.h (target_read_memory): Likewise.
2354
23552012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
2356
2357 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
2358
0c56f59b
EBM
23592012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
2360
2361 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
2362 BookE interface for PowerPC server processors if not available
2363 in the Linux Kernel.
2364
71bdabee
KS
23652012-05-31 Keith Seitz <keiths@redhat.com>
2366
2367 * linespec.c (decode_objc): Add cleanup to free
2368 INFO.FILE_SYMTABS.
2369 (find_linespec_symbols): Add cleanup to free CLASSES.
2370 * symfile.c (find_separate_debug_file_by_debuglink): Add
2371 cleanup to free DEBUGLINK.
2372 * ui-out.c (clear_header_list): No need to check if
2373 HEADER_NEXT.COLHDR is NULL.
2374 Free HEADER_NEXT.COL_NAME.
2375
acbd605d
MGD
23762012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2377
2378 * ada-lang.c (standard_lookup): Prevent uninitialized variable
2379 warning.
2380
65662cde
PA
23812012-05-30 Jeff Kenton <jkenton@tilera.com>
2382
2383 * configure.host (gdb_host_cpu): Handle tilegx*.
2384 (gdb_host): Handle tilegx-*-linux*.
2385 * tilegx-linux-nat.c: New file.
2386 * config/tilegx/linux.mh: New file.
2387
ade64f0e
PA
23882012-05-30 Jeff Kenton <jkenton@tilera.com>
2389
2390 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
2391 tilegx-linux-tdep.o.
2392 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
2393 tilegx-linux-tdep.c.
2394 * configure.tgt: Handle tilegx-*-linux*.
2395 * tilegx-tdep.h: New file.
2396 * tilegx-tdep.c: New file.
2397 * tilegx-linux-tdep.c: New file.
2398 * regformats/reg-tilegx.dat: New file.
2399
bb08bdbd
EBM
24002012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
2401
2402 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
2403 accounting of hw watchpoints on ppc.
2404
ebd86fb5
TJB
24052012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
2406
2407 * source.c (openp): Expand tilde in path entries.
2408
0a0edcd5
DE
24092012-05-29 Doug Evans <dje@google.com>
2410
98cc87bd
DE
2411 * buildsym.c (block_compar): Fix comment.
2412 (end_symtab): Fix and clarify some comments.
2413
0a0edcd5
DE
2414 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
2415 cleanup_undefined_types.
2416 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
2417 All callers updated.
2418
6f0c7050
TT
24192012-05-29 Tom Tromey <tromey@redhat.com>
2420
2421 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
2422 fails.
2423 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
2424 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
2425 fails.
2426 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
2427 fails.
2428
ec95993c
TG
24292012-05-29 Tristan Gingold <gingold@adacore.com>
2430
2431 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
2432 (struct darwin_info): ... New struct.
2433 (solib_darwin_pspace_data): New variable.
2434 (darwin_pspace_data_cleanup): New function.
2435 (get_darwin_info): Likewise.
2436 (darwin_dyld_version_ok, darwin_load_image_infos)
2437 (darwin_solib_get_all_image_info_addr_at_init)
2438 (darwin_solib_read_all_image_info_addr): Add info argument.
2439 Adjust code.
2440 (darwin_current_sos): Use per pspace structure.
2441 (darwin_solib_create_inferior_hook): Likewise.
2442 (darwin_clear_solib): Likewise.
2443 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
2444
ae25568b
PA
24452012-05-28 Pedro Alves <palves@redhat.com>
2446
2447 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
2448 block that uses them. Clear ecss before handling each event.
2449
0c5bf5a9
JK
24502012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2451
2452 * solib-svr4.c (svr4_current_sos): New comment on
2453 svr4_current_sos_via_xfer_libraries fall back.
2454
bfb05775
JK
24552012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2456
2457 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
2458 it as a fallback for TYPE_IS_OPAQUE.
2459 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
2460 symbols for lookup_symbol.
2461
685b1105
JK
24622012-05-24 John Steele Scott <toojays@toojays.net>
2463
2464 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
2465 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
2466 (producer_is_gxx_lt_4_6): Move the checking and caching to...
2467 (check_producer): ... this new function, which also checks for ICC
2468 and caches the result.
2469 (producer_is_icc): New function.
2470 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
2471 producer was ICC.
2472
22203bbf
PA
24732012-05-24 Pedro Alves <palves@redhat.com>
2474
2475 PR gdb/7205
2476
2477 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
2478 (default_gdb_signal_to_target): ... this. Add comment.
2479 (default_gdb_signal_from_host): Rename to ...
2480 (default_gdb_signal_from_target): ... this. Add comment.
2481 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
2482 (default_gdb_signal_to_target): ... this.
2483 (default_gdb_signal_from_host): Rename to ...
2484 (default_gdb_signal_from_target): ... this.
2485 * corelow.c (core_open): Adjust to naming change. Replace comment.
2486 * gdbarch.sh (gdb_signal_from_host): Rename to ...
2487 (gdb_signal_from_target): ... this. Adjust to
2488 default_gdb_signal_from_host naming change. Extend comment.
2489 (gdb_signal_to_host): Rename to ...
2490 (gdb_signal_to_target): ... this. Adjust to
2491 default_gdb_signal_to_host naming change.
2492 * gdbarch.h, gdbarch.c: Renegerate.
2493
a493e3e2
PA
24942012-05-24 Pedro Alves <palves@redhat.com>
2495
2496 PR gdb/7205
2497
2498 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
2499
2ea28649
PA
25002012-05-24 Pedro Alves <palves@redhat.com>
2501
2502 PR gdb/7205
2503
2504 Replace target_signal with gdb_signal throughout.
2505
b09846a9
PA
25062012-05-24 Pedro Alves <palves@redhat.com>
2507
2508 PR tui/14159
2509
2510 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
2511 string, instead of reusing the va_list argument.
2512
e77c107e
TT
25132012-05-24 Tom Tromey <tromey@redhat.com>
2514
2515 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
2516 Remove.
2517
9fccedf7
DE
25182012-05-23 Doug Evans <dje@google.com>
2519
d50bd42b
DE
2520 * symtab.c (search_symbols): Formatting fixes.
2521 (print_symbol_info): Formatting fixes.
2522
9fccedf7
DE
2523 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
2524 int64_t change to leb128 API.
2525 (read_encoded_value, decode_frame_entry_1): Ditto.
2526 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
2527 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
2528 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2529 (execute_stack_op): Ditto.
2530 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
2531 (safe_read_uleb128, safe_read_sleb128): Ditto.
2532 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
2533 (dwarf2_compile_expr_to_ax): Ditto.
2534 (locexpr_describe_location_piece): Ditto.
2535 (disassemble_dwarf_expression): Ditto.
2536 (locexpr_describe_location_1): Ditto.
2537
f3e0e960
SS
25382012-05-23 Stan Shebs <stan@codesourcery.com>
2539 Kwok Cheung Yeung <kcy@codesourcery.com>
2540
2541 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
2542 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
2543 (mi-cmd-info.o): New rule.
2544 * osdata.h (info_osdata_command): New declaration.
2545 * osdata.c (info_osdata_command): Change to non-static.
2546 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
2547 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
2548 * mi/mi-cmd-info.c: New file.
2549
c51fe631
DE
25502012-05-23 Doug Evans <dje@google.com>
2551
71cddcc1
DE
2552 * symtab.c (search_symbols): Pass NULL for file_matcher to
2553 expand_symtabs_matching if there are no files to match.
2554
c51fe631
DE
2555 * gdbtypes.c (lookup_typename): Simplify.
2556
a79378d4
PA
25572012-05-23 Pedro Alves <palves@redhat.com>
2558
2559 * arch-utils.h (default_target_signal_to_host): Delete.
2560 * arch-utils.c (default_target_signal_to_host): Delete.
2561 * gdbarch.sh (target_signal_to_host): Remove.
2562 * gdbarch.h, gdbarch.c: Regenerate.
2563
f664829e
DE
25642012-05-22 Doug Evans <dje@google.com>
2565
2566 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
2567 "const gdb_byte *".
2568 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
2569 (execute_cfa_program): Update to match API of leb128 functions.
2570 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
2571 "const gdb_byte *".
2572 (read_unsigned_leb128, read_signed_leb128): Delete.
2573 (read_initial_length): Change type of buf argument to
2574 "const gdb_byte *".
2575 (read_encoded_value): Update to match API of leb128 functions.
2576 (decode_frame_entry): Change result to "const gdb_byte *", and
2577 similarly for "start" parameter.
2578 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
2579 (dwarf2_build_frame_info): Change local frame_ptr to
2580 "const gdb_byte *".
2581 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
2582 read_uleb128, read_sleb128. All callers updated.
2583 (safe_skip_leb128): New function.
2584 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
2585 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
2586 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
2587 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
2588 read_uleb128, read_sleb128.
2589 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
2590 (execute_stack_op): Update to match API of leb128 functions.
2591 * dwarf2expr.h: #include "leb128.h".
2592 (read_uleb128, read_sleb128): Delete.
2593 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
2594 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
2595 * dwarf2loc.c (debug_loc_kind): New enum.
2596 (decode_debug_loc_addresses): New function.
2597 (decode_debug_loc_dwo_addresses): New function.
2598 (dwarf2_find_location_expression): Rewrite.
2599 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
2600 (locexpr_describe_location_piece): Ditto.
2601 (disassemble_dwarf_expression): Ditto.
2602 (locexpr_describe_location_1): Ditto.
2603 (loclist_describe_location): Rewrite.
2604 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
2605 * dwarf2read.c (die_reader_specs): New member "buffer_end".
2606 (dwarf2_section_buffer_overflow_complaint): Renamed from
2607 dwarf2_macros_too_long_complaint. All callers updated.
2608 (skip_leb128): Delete.
2609 (init_cu_die_reader): Initialize reader->buffer_end.
2610 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
2611 (skip_form_bytes): New arg buffer_end. All callers updated.
2612 Replace call to skip_leb128 with gdb_skip_leb128.
2613 (skip_unknown_opcode): New arg mac_end. All callers updated.
2614 (fill_in_loclist_baton): Initialize baton->from_dwo.
2615
837a1b32
MR
26162012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2617
2618 * mips-linux-nat.c (mips_linux_read_description): Use a more
2619 verbose error message.
2620
d0e64392
MR
26212012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
2622
2623 * NEWS: Add MIPS/Linux DSP support.
2624 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
2625 (SIGCONTEXT_DSPCTL): New macro.
2626 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
2627 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
2628 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
2629 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
2630 (N64_SIGCONTEXT_HI3): Likewise.
2631 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
2632 (N64_SIGCONTEXT_LO3): Likewise.
2633 (N64_SIGCONTEXT_DSPCTL): Likewise.
2634 (N64_SIGCONTEXT_FPCSR): Clarify definition.
2635 (mips_linux_o32_sigframe_init): Handle DSP registers.
2636 (mips_linux_n32n64_sigframe_init): Likewise.
2637
8bea7ed1
PM
26382012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2639
2640 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
2641 call to abort.
2642
dab06dbe
PA
26432012-05-22 Pedro Alves <palves@redhat.com>
2644
2645 * target.h (store_waitstatus): Move declaration ...
2646 * inf-child.h (store_waitstatus): ... here.
2647 * target.c: Move inclusion of gdb_wait.h, and ...
2648 (store_waitstatus): ... this ...
2649 * inf-child.c: ... here.
2650 * linux-nat.c: Include inf-child.h.
2651 * rs6000-nat.c: Include inf-child.h.
2652 * spu-linux-nat.c: Include inf-child.h.
2653
43011e52
PM
26542012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
2655
2656 * tracepoint.c (start_tracing): Add missing i18n markup.
2657 (stop_tracing, set_trace_user): Ditto.
2658 (set_trace_notes, set_trace_stop_notes): Ditto.
2659
b1af9e97
TT
26602012-05-21 Tom Tromey <tromey@redhat.com>
2661
2662 PR c++/7173:
2663 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
2664 types.
2665 * value.h (value_cast_pointers): Update.
2666 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
2667 (value_cast): Update.
2668 (update_search_result): New function.
2669 (do_search_struct_field): New, from search_struct_field. Check
2670 for ambiguous results.
2671 (search_struct_field): Rewrite.
2672 * infcall.c (value_arg_coerce): Update.
2673 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
2674 value_cast_pointers.
2675 * ada-lang.c (ada_convert_actual): Update.
2676
e9e5e6b3
TT
26772012-05-21 Tom Tromey <tromey@redhat.com>
2678
2679 * macroexp.c (macro_stringify): Terminate the string.
2680
1564a261
JK
26812012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2682
2683 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
2684 Describe it.
2685 * auto-load.c (auto_load_expand_dir_vars): New function.
2686 (auto_load_safe_path_vec_update): Use it, remove the
2687 substitute_path_component call thanks to it.
2688 (auto_load_objfile_script): Remove the debug_file_directory processing.
2689 Use auto_load_expand_dir_vars, remove the substitute_path_component
2690 call thanks to it.
2691 * configure: Regenerate.
2692 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
2693 path. Escape $ also for $debugdir.
2694 (--with_auto_load_safe_path): Escape $ also for $debugdir.
2695 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
2696
a3ec0bb1
DE
26972012-05-20 Doug Evans <dje@google.com>
2698
2699 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
2700 before use. Check for symtab->includes == NULL before scanning it.
2701
d467df4e
MR
27022012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2703
2704 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
2705
4cc0665f
MR
27062012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
2707
2708 * NEWS: Add microMIPS support and "set mips compression",
2709 "show mips compression" commands.
2710 * mips-tdep.h (mips_isa): New enum.
2711 (gdbarch_tdep): Add mips_isa.
2712 (mips_pc_is_mips16): Update prototype.
2713 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
2714 * mips-tdep.c (mips_compression_mips16): New variable.
2715 (mips_compression_micromips): Likewise.
2716 (mips_compression_strings): Likewise.
2717 (mips_compression_string): Likewise.
2718 (is_mips16_isa, is_micromips_isa): New functions.
2719 (is_mips16_addr): Rename to...
2720 (is_compact_addr): ... this.
2721 (unmake_mips16_addr): Likewise to...
2722 (unmake_compact_addr): ... this.
2723 (make_mips16_addr): Likewise to...
2724 (make_compact_addr): ... this.
2725 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
2726 functions.
2727 (mips_elf_make_msymbol_special): Handle microMIPS code.
2728 (msymbol_is_special): Rename to...
2729 (msymbol_is_mips16): ... this.
2730 (mips_make_symbol_special, mips_pc_is_mips16): Update
2731 accordingly.
2732 (msymbol_is_mips, msymbol_is_micromips): New functions.
2733 (mips16_to_32_reg): Rename to...
2734 (mips_reg3_to_reg): ... this.
2735 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
2736 (mips_pc_isa): Likewise.
2737 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
2738 code.
2739 (mips_fetch_instruction): Pass return status instead of printing
2740 an error message if requested. Handle microMIPS code. Bail out
2741 on an invalid ISA.
2742 (micromips_op): New macro.
2743 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
2744 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
2745 (b6s4_op, b7s3_reg): Likewise.
2746 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
2747 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
2748 (mips_insn_size): New function.
2749 (mips32_next_pc): Update mips_fetch_instruction call.
2750 (micromips_relative_offset7): New function.
2751 (micromips_relative_offset10): Likewise.
2752 (micromips_relative_offset16): Likewise.
2753 (micromips_pc_insn_size): Likewise.
2754 (micromips_bc1_pc): Likewise.
2755 (micromips_next_pc): Likewise.
2756 (unpack_mips16): Update mips_fetch_instruction call.
2757 (extended_mips16_next_pc): Update according to change to
2758 mips16_to_32_reg.
2759 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
2760 code.
2761 (mips16_scan_prologue): Update mips_fetch_instruction call.
2762 Update according to change to mips16_to_32_reg.
2763 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
2764 (mips_insn16_frame_base_sniffer): Likewise.
2765 (micromips_decode_imm9): New function.
2766 (micromips_scan_prologue): Likewise.
2767 (mips_micro_frame_cache): Likewise.
2768 (mips_micro_frame_this_id): Likewise.
2769 (mips_micro_frame_prev_register): Likewise.
2770 (mips_micro_frame_sniffer): Likewise.
2771 (mips_micro_frame_unwind): New variable.
2772 (mips_micro_frame_base_address): New function.
2773 (mips_micro_frame_base): New variable.
2774 (mips_micro_frame_base_sniffer): New function.
2775 (mips32_scan_prologue): Update mips_fetch_instruction call.
2776 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
2777 rather than for MIPS16.
2778 (mips_insn32_frame_base_sniffer): Likewise.
2779 (mips_addr_bits_remove): Handle microMIPS code.
2780 (deal_with_atomic_sequence): Rename to...
2781 (mips_deal_with_atomic_sequence): ... this. Update the type
2782 of the variable used to hold an instruction. Remove the ISA bit
2783 check. Update mips_fetch_instruction call.
2784 (micromips_deal_with_atomic_sequence): New function.
2785 (deal_with_atomic_sequence): Likewise.
2786 (mips_about_to_return): Handle microMIPS code. Update
2787 mips_fetch_instruction call.
2788 (heuristic_proc_start): Check for the standard MIPS ISA rather
2789 than for MIPS16. Update mips_pc_is_mips16 and
2790 mips_fetch_instruction calls. Handle microMIPS code.
2791 (mips_push_dummy_code): Handle microMIPS code.
2792 (mips_eabi_push_dummy_call): Likewise.
2793 (mips_o32_return_value): Update mips_pc_is_mips16 call.
2794 (mips_o64_push_dummy_call): Handle microMIPS code.
2795 (mips_o64_return_value): Update mips_pc_is_mips16 call.
2796 (is_delayed): Remove function.
2797 (mips_single_step_through_delay): Replace the call to is_delayed
2798 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
2799 Handle microMIPS code.
2800 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
2801 microMIPS code.
2802 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
2803 call.
2804 (micromips_in_function_epilogue_p): New function.
2805 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
2806 call.
2807 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
2808 Handle microMIPS.
2809 (gdb_print_insn_mips): Likewise.
2810 (mips_breakpoint_from_pc): Likewise.
2811 (mips_remote_breakpoint_from_pc): New function.
2812 (mips32_instruction_has_delay_slot): Simplify making use of the
2813 updated mips_fetch_instruction interface.
2814 (micromips_instruction_has_delay_slot): New function.
2815 (mips16_instruction_has_delay_slot): Simplify making use of the
2816 updated mips_fetch_instruction interface.
2817 (mips_adjust_breakpoint_address): Check for the standard MIPS
2818 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
2819 calls. Handle microMIPS code.
2820 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
2821 (mips_skip_trampoline_code): Handle microMIPS code.
2822 (global_mips_compression): New function.
2823 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
2824 file flags. Register the microMIPS remote breakpoint handler
2825 and heuristic frame unwinder.
2826 (show_mips_compression): New function.
2827 (_initialize_mips_tdep): Add the "set mips compression" and
2828 "show mips compression" commands.
2829
22e048c9
SDJ
28302012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
2831
2832 * ada-lang.c:
2833 * ada-tasks.c:
2834 * ada-varobj.c:
2835 * amd64-darwin-tdep.c:
2836 * arm-symbian-tdep.c:
2837 * arm-tdep.c:
2838 * avr-tdep.c:
2839 * ax-gdb.c:
2840 * bfin-linux-tdep.c:
2841 * breakpoint.c:
2842 * c-valprint.c:
2843 * cli/cli-cmds.c:
2844 * coffread.c:
2845 * cp-support.c:
2846 * cris-tdep.c:
2847 * dwarf2-frame-tailcall.c:
2848 * dwarf2-frame.c:
2849 * dwarf2expr.c:
2850 * dwarf2loc.c:
2851 * dwarf2read.c:
2852 * elfread.c:
2853 * eval.c:
2854 * expprint.c:
2855 * f-valprint.c:
2856 * frv-tdep.c:
2857 * h8300-tdep.c:
2858 * hppa-hpux-tdep.c:
2859 * hppa-tdep.c:
2860 * hppanbsd-tdep.c:
2861 * i386-nto-tdep.c:
2862 * i386-tdep.c:
2863 * i387-tdep.c:
2864 * ia64-tdep.c:
2865 * jit.c:
2866 * linespec.c:
2867 * linux-tdep.c:
2868 * lm32-tdep.c:
2869 * m2-valprint.c:
2870 * m32c-tdep.c:
2871 * m32r-rom.c:
2872 * m32r-tdep.c:
2873 * m68k-tdep.c:
2874 * m68klinux-tdep.c:
2875 * mi/mi-main.c:
2876 * microblaze-tdep.c:
2877 * mips-linux-tdep.c:
2878 * mips-tdep.c:
2879 * mn10300-tdep.c:
2880 * p-valprint.c:
2881 * parse.c:
2882 * ppc-linux-tdep.c:
2883 * ppc-sysv-tdep.c:
2884 * printcmd.c:
2885 * python/py-finishbreakpoint.c:
2886 * python/py-inferior.c:
2887 * python/py-infthread.c:
2888 * python/py-type.c:
2889 * python/python.c:
2890 * remote-fileio.c:
2891 * remote-m32r-sdi.c:
2892 * remote-mips.c:
2893 * reverse.c:
2894 * rl78-tdep.c:
2895 * rs6000-aix-tdep.c:
2896 * rs6000-tdep.c:
2897 * s390-tdep.c:
2898 * score-tdep.c:
2899 * sh64-tdep.c:
2900 * skip.c:
2901 * solib-darwin.c:
2902 * solib-dsbt.c:
2903 * solib-frv.c:
2904 * sparc-tdep.c:
2905 * spu-multiarch.c:
2906 * spu-tdep.c:
2907 * stack.c:
2908 * symfile.c:
2909 * symtab.c:
2910 * tic6x-tdep.c:
2911 * tracepoint.c:
2912 * v850-tdep.c:
2913 * valarith.c:
2914 * valprint.c:
2915 * value.c:
2916 * xcoffread.c:
2917 * xtensa-tdep.c:
2918 * ada-lang.c:
2919 * ada-tasks.c:
2920 * ada-varobj.c:
2921 * amd64-darwin-tdep.c:
2922 * arm-symbian-tdep.c:
2923 * arm-tdep.c: Delete unused variables.
2924
aff139ff
JK
29252012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2926
2927 Rename $ddir to $datadir.
2928 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
2929 * auto-load.c (auto_load_safe_path_vec_update)
2930 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
2931 * configure: Regenerate.
2932 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
2933 Likewise. Remove the 'use $ddir' help string.
2934
f7bfa992
JK
29352012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2936
2937 * auto-load.c (show_auto_load_safe_path): Accept any combination of
2938 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
2939
9cb709b6
TT
29402012-05-18 Tom Tromey <tromey@redhat.com>
2941
2942 PR exp/13907:
2943 * valprint.h (struct value_print_options) <symbol_print>: New
2944 field.
2945 * valprint.c (user_print_options): Add default for symbol_print.
2946 (show_symbol_print): New function.
2947 (generic_val_print): Respect symbol_print.
2948 (_initialize_valprint): Add "print symbol" setting.
2949 * f-valprint.c (f_val_print): Respect symbol_print.
2950 * c-valprint.c (c_val_print): Respect symbol_print.
2951 * NEWS: Update.
2952 * printcmd.c (print_address_symbolic): Return int. Ignore some
2953 zero-size symbols.
2954 (print_address_demangle): Return int.
2955 * defs.h: (print_address_symbolic): Return int.
2956 * value.h (print_address_demangle): Return int.
2957
b012acdd
TT
29582012-05-18 Tom Tromey <tromey@redhat.com>
2959
2960 * valprint.c (val_print_string): Don't print leading space.
2961 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
2962 print space before string or vtbl.
2963 * m2-valprint.c (print_unpacked_pointer): Optionally print space
2964 before string.
2965 * jv-valprint.c (java_value_print): Print space before string.
2966 * go-valprint.c (print_go_string): Print space before string.
2967 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
2968 space before string.
2969 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
2970 space before string or vtbl.
2971 * auxv.c (fprint_target_auxv): Print space after address.
2972
1d51a733
TT
29732012-05-18 Tom Tromey <tromey@redhat.com>
2974
2975 * printcmd.c (print_address_demangle): Remove special case for 0.
2976
edf0c1b7
TT
29772012-05-18 Tom Tromey <tromey@redhat.com>
2978
2979 * printcmd.c (print_address_demangle): Add 'opts' argument.
2980 * p-valprint.c (pascal_val_print): Update.
2981 * jv-valprint.c (java_val_print): Update.
2982 * value.h: Update.
2983 * valprint.c (generic_val_print): Update.
2984 (print_function_pointer_address): Add 'options' argument. Remove
2985 'addressprint' argument. Update.
2986 * m2-valprint.c (print_unpacked_pointer): Update.
2987 * gnu-v3-abi.c (print_one_vtable): Update.
2988 (gnuv3_print_method_ptr): Update.
2989 * f-valprint.c (f_val_print): Update.
2990 * cp-valprint.c (cp_print_value_fields): Update.
2991 * valprint.h (print_function_pointer_address): Update.
2992 * c-valprint.c (c_val_print): Update.
2993
9703b513
TT
29942012-05-18 Tom Tromey <tromey@redhat.com>
2995
2996 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
2997 directly corresponding to the found psymtab.
2998 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
2999 (dw2_find_pc_sect_symtab): Use it.
3000 * block.h (blockvector_contains_pc): Declare.
3001 * block.c (find_block_in_blockvector): New function.
3002 (blockvector_for_pc_sect): Use it.
3003 (blockvector_contains_pc): New function.
3004
5a439849
MR
30052012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3006
3007 * mips-tdep.h (mips_write_pc): New prototype.
3008 * mips-tdep.c (mips_write_pc): Make external, add description.
3009 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3010 add description.
3011
8376de04
MR
30122012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3013
3014 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3015 mips_regnum->pc.
3016 (mips_unwind_pc, mips_write_pc): Likewise.
3017 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3018 gdbarch_read_pc.
3019
d3581e61
JB
30202012-05-17 Joel Brobecker <brobecker@adacore.com>
3021
3022 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3023 proc_warn, proc_error, proc_get_status, proc_flags,
3024 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3025 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3026 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3027 proc_stop_process, proc_wait_for_stop, proc_run_process,
3028 proc_set_traced_signals, proc_set_traced_faults,
3029 proc_set_traced_sysentry, proc_set_traced_sysexit,
3030 proc_set_held_signals, proc_get_held_signals,
3031 proc_get_traced_signals, proc_get_traced_faults,
3032 proc_get_traced_sysentry, proc_get_traced_sysexit,
3033 proc_clear_current_fault, proc_set_current_signal,
3034 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3035 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3036 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3037 proc_get_current_thread, proc_get_current_thread,
3038 proc_get_current_thread, proc_update_threads,
3039 proc_update_threads, proc_update_threads, proc_update_threads,
3040 proc_iterate_over_threads, procfs_find_new_threads,
3041 procfs_pid_to_str): Make static. Remove advance declaration.
3042 (proc_cursig): Make static. Conditionalized defintion on
3043 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3044 (proc_syscall, proc_set_kill_on_last_close,
3045 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3046 proc_get_pending_signals, proc_get_signal_actions,
3047 proc_trace_signal, proc_ignore_signal): Delete.
3048
81b9b86e
SDJ
30492012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3050
3051 * coffread.c (cs_section_address): Passing proper argument for
3052 `bfd_get_section_vma'.
3053 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3054 `bfd_get_section_flags'.
3055 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3056 `bfd_get_section_vma'.
3057
abc9d0dc
TT
30582012-05-16 Tom Tromey <tromey@redhat.com>
3059
3060 PR macros/13205:
3061 * macrotab.h: (macro_define_special): Declare.
3062 (enum macro_special_kind): New.
3063 (struct macro_definition) <argc, replacement>: Update comments.
3064 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3065 (macro_define_object_internal): New function.
3066 (macro_define_object): Use it.
3067 (macro_define_special): New function.
3068 (fixup_definition): New function.
3069 (macro_lookup_definition, foreach_macro_in_scope)
3070 (foreach_macro): Use fixup_definition.
3071 * macroexp.h (macro_stringify): Declare.
3072 * macroexp.c (free_buffer_return_text): New function.
3073 (stringify): Constify "arg".
3074 (macro_stringify): New function.
3075 * dwarf2read.c (macro_start_file): Call macro_define_special.
3076
6a3a010b
MR
30772012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
3078 Maciej W. Rozycki <macro@mips.com>
3079
3080 * breakpoint.h (bp_location): Add related_address member.
3081 * inferior.h (get_return_value): Take a pointer to struct value
3082 instead of struct type for the function requested.
3083 * value.h (using_struct_return): Likewise.
3084 * gdbarch.sh (return_value): Take a pointer to struct value
3085 instead of struct type for the function requested.
3086 * breakpoint.c (set_breakpoint_location_function): Initialize
3087 related_address for bp_gnu_ifunc_resolver breakpoints.
3088 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3089 requested function's address to gdbarch_return_value.
3090 * eval.c (evaluate_subexp_standard): Pass the requested
3091 function's address to using_struct_return.
3092 * infcall.c (call_function_by_hand): Pass the requested
3093 function's address to using_struct_return and
3094 gdbarch_return_value.
3095 * infcmd.c (get_return_value): Take a pointer to struct value
3096 instead of struct type for the function requested.
3097 (print_return_value): Update accordingly.
3098 (finish_command_continuation): Likewise.
3099 * stack.c (return_command): Pass the requested function's
3100 address to using_struct_return and gdbarch_return_value.
3101 * value.c (using_struct_return): Take a pointer to struct value
3102 instead of struct type for the function requested. Pass the
3103 requested function's address to gdbarch_return_value.
3104 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3105 New function_value member, replacing function_type.
3106 (bpfinishpy_dealloc): Update accordingly.
3107 (bpfinishpy_pre_stop_hook): Likewise.
3108 (bpfinishpy_init): Likewise. Record the requested function's
3109 address.
3110 * mips-tdep.c (mips_fval_reg): New enum.
3111 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3112 words put in GP registers.
3113 (mips_o64_push_dummy_call): Update a comment.
3114 (mips_o32_return_value): Take a pointer to struct value instead
3115 of struct type for the function requested and use it to check if
3116 using the MIPS16 calling convention. Return the designated
3117 general purpose registers for floating-point values returned in
3118 MIPS16 mode.
3119 (mips_o64_return_value): Likewise.
3120 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3121 (ppc_sysv_abi_broken_return_value): Likewise.
3122 (ppc64_sysv_abi_return_value): Likewise.
3123 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3124 value instead of struct type for the function requested.
3125 * amd64-tdep.c (amd64_return_value): Likewise.
3126 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3127 * arm-tdep.c (arm_return_value): Likewise.
3128 * avr-tdep.c (avr_return_value): Likewise.
3129 * bfin-tdep.c (bfin_return_value): Likewise.
3130 * cris-tdep.c (cris_return_value): Likewise.
3131 * frv-tdep.c (frv_return_value): Likewise.
3132 * h8300-tdep.c (h8300_return_value): Likewise.
3133 (h8300h_return_value): Likewise.
3134 * hppa-tdep.c (hppa32_return_value): Likewise.
3135 (hppa64_return_value): Likewise.
3136 * i386-tdep.c (i386_return_value): Likewise.
3137 * ia64-tdep.c (ia64_return_value): Likewise.
3138 * iq2000-tdep.c (iq2000_return_value): Likewise.
3139 * lm32-tdep.c (lm32_return_value): Likewise.
3140 * m32c-tdep.c (m32c_return_value): Likewise.
3141 * m32r-tdep.c (m32r_return_value): Likewise.
3142 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3143 * m68k-tdep.c (m68k_return_value): Likewise.
3144 (m68k_svr4_return_value): Likewise.
3145 * m88k-tdep.c (m88k_return_value): Likewise.
3146 * mep-tdep.c (mep_return_value): Likewise.
3147 * microblaze-tdep.c (microblaze_return_value): Likewise.
3148 * mn10300-tdep.c (mn10300_return_value): Likewise.
3149 * moxie-tdep.c (moxie_return_value): Likewise.
3150 * mt-tdep.c (mt_return_value): Likewise.
3151 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3152 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3153 (ppc_sysv_abi_broken_return_value): Likewise.
3154 (ppc64_sysv_abi_return_value): Likewise.
3155 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3156 * rl78-tdep.c (rl78_return_value): Likewise.
3157 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3158 * rx-tdep.c (rx_return_value): Likewise.
3159 * s390-tdep.c (s390_return_value): Likewise.
3160 * score-tdep.c (score_return_value): Likewise.
3161 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3162 (sh_return_value_fpu): Likewise.
3163 * sh64-tdep.c (sh64_return_value): Likewise.
3164 * sparc-tdep.c (sparc32_return_value): Likewise.
3165 * sparc64-tdep.c (sparc64_return_value): Likewise.
3166 * spu-tdep.c (spu_return_value): Likewise.
3167 * tic6x-tdep.c (tic6x_return_value): Likewise.
3168 * v850-tdep.c (v850_return_value): Likewise.
3169 * vax-tdep.c (vax_return_value): Likewise.
3170 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3171 * xtensa-tdep.c (xtensa_return_value): Likewise.
3172 * gdbarch.c: Regenerate.
3173 * gdbarch.h: Regenerate.
3174
29ca12b3
TT
31752012-05-15 Tom Tromey <tromey@redhat.com>
3176
3177 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3178
588ae58c
JB
31792012-05-15 Joel Brobecker <brobecker@adacore.com>
3180
3181 * breakpoint.c (init_breakpoint_sal): Add quotes around part
3182 of command in two error message.
3183
855a6e68
JB
31842012-05-15 Joel Brobecker <brobecker@adacore.com>
3185
3186 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
3187
d634f2de
JB
31882012-05-15 Joel Brobecker <brobecker@adacore.com>
3189
3190 * breakpoint.c (find_condition_and_thread): Minor reformatting.
3191
9cc815f5
JK
31922012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3193
3194 * NEWS (show auto-load scripts-directory): Add forgotten command.
3195
6a609e58
JK
31962012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3197
3198 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
3199 parameters.
3200
ac1438b5
L
32012012-05-14 H.J. Lu <hongjiu.lu@intel.com>
3202
3203 * amd64-tdep.c: Include features/i386/x32.c and
3204 features/i386/x32-avx.c.
3205 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
3206 initialize_tdesc_x32_avx.
3207
e7e0cddf
SS
32082012-05-14 Stan Shebs <stan@codesourcery.com>
3209
3210 Add dynamic printf.
3211 * breakpoint.h (enum bptype): New type bp_dprintf.
3212 (struct breakpoint): New field extra_string.
3213 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
3214 (create_breakpoint): Add extra_string arg.
3215 * breakpoint.c (dprintf_breakpoint_ops): New.
3216 (is_breakpoint): Add bp_dprintf.
3217 (bpstat_what): Add dprintf case.
3218 (bptype_string): Ditto.
3219 (print_one_breakpoint_location): Ditto.
3220 (init_bp_location): Ditto.
3221 (bkpt_print_mention): Ditto.
3222 (dprintf_style_enums): New array.
3223 (dprintf_style): New global.
3224 (dprintf_function): New global.
3225 (dprintf_channel): New global.
3226 (update_dprintf_command_list): New function.
3227 (update_dprintf_commands): New function.
3228 (init_breakpoint_sal): Add extra_string argument, handle it.
3229 (create_breakpoint_sal): Add extra_string argument.
3230 (create_breakpoints_sal): Add extra_string argument, update callers.
3231 (find_condition_and_thread): Add extra argument.
3232 (create_breakpoint): Add extra_string argument, record it.
3233 (dprintf_command): New function.
3234 (break_command_1): Add arg to create_breakpoint call.
3235 (handle_gnu_v3_exceptions): Ditto.
3236 (trace_command): Ditto.
3237 (ftrace_command): Ditto.
3238 (strace_command): Ditto.
3239 (bkpt_print_mention): Add dprintf case.
3240 (create_breakpoint_sal_default): Add extra_string argument.
3241 (_initialize_breakpoint): Add new commands.
3242 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
3243 * python/py-breakpoint.c (bppy_init): Ditto.
3244 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
3245
8ae38c14
MR
32462012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
3247
3248 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
3249
9f676e66
SCR
32502012-05-14 Siva Chandra Reddy <sivachandra@google.com>
3251
3252 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
3253 unsigned long long.
3254
7efc75aa
SCR
32552012-05-13 Siva Chandra Reddy <sivachandra@google.com>
3256
3257 Add a new function gdb.find_pc_line to the Python API.
3258 * NEWS (Python Scripting): Add entry about the new function.
3259 * python/python.c (gdbpy_find_pc_line): New function which
3260 implements gdb.find_pc_line.
3261 (GdbMethods): Add entry for the new function.
3262
70af3797
PA
32632012-05-12 Pedro Alves <palves@redhat.com>
3264
3265 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
3266 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
3267
06da564e
EZ
32682012-05-12 Eli Zaretskii <eliz@gnu.org>
3269
3270 * inferior.c: Include completer.h
3271 (initialize_inferiors): Set completer of add-inferior to
3272 filename_completer.
3273
0288cee2
L
32742012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3275
3276 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
3277 gdbarch_ptr_bit for x32 core dump.
3278
f6537a2c
L
32792012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3280
3281 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
3282 and features/i386/x32-avx-linux.c.
3283
85d4a676
SS
32842012-05-11 Stan Shebs <stan@codesourcery.com>
3285 Kwok Cheung Yeung <kcy@codesourcery.com>
3286
3287 * NEWS: Describe new info os commands.
3288 * common/linux-osdata.c (PID_T, TIME_T): Define.
3289 (MAX_PID_T_STRLEN): New.
3290 (linux_common_core_of_thread): Add comment. Change to use PID_T and
3291 MAX_PID_T_STRLEN.
3292 (command_from_pid): Add comment. Change to use PID_T.
3293 (commandline_from_pid): Change to use PID_T.
3294 (user_from_pid): Add comment.
3295 (get_process_owner): Add comment. Change to use PID_T and
3296 MAX_PID_T_STRLEN.
3297 (get_number_of_cpu_cores): Add comment.
3298 (get_cores_used_by_process): Add comment. Change to use PID_T and
3299 MAX_PID_T_STRLEN.
3300 (linux_xfer_osdata_processes): Change to use PID_T and
3301 MAX_PID_T_STRLEN.
3302 (compare_processes): New function.
3303 (linux_xfer_osdata_processgroups): New function.
3304 (linux_xfer_osdata_threads): Change to use PID_T.
3305 (linux_xfer_osdata_fds): New function.
3306 (format_socket_state, print_sockets): New functions.
3307 (union socket_addr): New union.
3308 (linux_xfer_osdata_isockets): New function.
3309 (time_from_time_t, group_from_gid): New functions.
3310 (linux_xfer_osdata_shm): New function.
3311 (linux_xfer_osdata_sem): New function.
3312 (linux_xfer_osdata_msg): New function.
3313 (linux_xfer_osdata_modules): New function.
3314 (osdata_table): Add new entries.
3315 * common/buffer.c (buffer_xml_printf): Add support for long and
3316 long long format specifiers.
3317
f24afd6d
L
33182012-05-11 H.J. Lu <hongjiu.lu@intel.com>
3319
3320 * amd64-linux-tdep.h (tdesc_x32_linux): New.
3321 (tdesc_x32_avx_linux): Likewise.
3322
7349ff92
JK
33232012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3324
3325 Implement multi-component --with-auto-load-dir.
3326 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
3327 entries.
3328 (--with-auto-load-safe-path): Update the default value description.
3329 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
3330 New.
3331 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
3332 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
3333 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
3334 (_initialize_auto_load): Initialize also auto_load_dir. Install new
3335 "set auto-load scripts-directory".
3336 * config.in: Regenerate.
3337 * configure: Regenerate.
3338 * configure.ac (--with-auto-load-dir): New configure option.
3339 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
3340
6dea1fbd
JK
33412012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3342
3343 Provide $ddir substitution for --with-auto-load-safe-path.
3344 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
3345 entries.
3346 * auto-load.c: Include observer.h.
3347 (auto_load_safe_path_vec_update): Call substitute_path_component for
3348 each component. New variable ddir_subst.
3349 (auto_load_gdb_datadir_changed): New function.
3350 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3351 AUTO_LOAD_SAFE_PATH. New comment.
3352 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
3353 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
3354 * config.in: Regenerate.
3355 * configure: Regenerate.
3356 * configure.ac (--auto-load-safe-path): Rename
3357 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
3358 GDB_DATADIR/auto-load.
3359 * defs.h (substitute_path_component): New declaration.
3360 * top.c: Include observer.h.
3361 (set_gdb_datadir): New function.
3362 (init_main): Install it for "set data-directory".
3363 * utils.c (substitute_path_component): New function.
3364
b09aca3a
JK
33652012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3366
3367 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
3368 * auto-load.c (auto_load_objfile_script): Remove check for NULL
3369 DEBUG_FILE_DIRECTORY. Handle multiple components of
3370 DEBUG_FILE_DIRECTORY.
3371
95554aad
TT
33722012-05-10 Tom Tromey <tromey@redhat.com>
3373
3374 * dwarf2read.c (recursively_write_psymbols): New function.
3375 (write_psymtabs_to_index): Use it.
3376
3377 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
3378 field.
3379 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
3380 (load_partial_comp_unit): Update.
3381 (queue_comp_unit): Add argument 'pretend_language'.
3382 (process_queue): Update.
3383 (psymtab_to_symtab_1): Skip dependencies that have a user.
3384 (load_partial_comp_unit_reader): Give meaning to the 'data'
3385 argument.
3386 (load_full_comp_unit): Add 'pretend_language' argument.
3387 (process_full_comp_unit): Add 'pretend_language' argument. Set
3388 language on CU.
3389 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
3390 Update.
3391 (maybe_queue_comp_unit): Add 'pretend_language' argument.
3392 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
3393 Update.
3394 (prepare_one_comp_unit): Add 'pretend_language' argument.
3395
3396 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
3397 (struct dwarf2_per_objfile) <just_read_cus>: New field.
3398 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
3399 (dw2_do_instantiate_symtab): Check whether symtab was read in
3400 before queueing.
3401 (dw2_instantiate_symtab): Add assertion. Call
3402 process_cu_includes.
3403 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
3404 (partial_symtab_p): New typedef.
3405 (set_partial_user): New function.
3406 (dwarf2_build_psymtabs_hard): Use set_partial_user.
3407 (scan_partial_symbols): Add imported CU to imported_symtabs.
3408 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
3409 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
3410 (get_symtab, recursively_compute_inclusions)
3411 (compute_symtab_includes, process_cu_includes)
3412 (process_imported_unit_die): New functions.
3413 (process_die) <DW_TAG_imported_unit>: New case.
3414 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
3415
3416 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
3417 comment.
3418 (struct partial_die_info) <locdesc>: Remove.
3419 <d>: New field.
3420 (process_psymtab_comp_unit): Add 'read_partial' argument.
3421 Update.
3422 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
3423 (scan_partial_symbols): Handle DW_TAG_imported_unit.
3424 (add_partial_symbol): Update.
3425 (process_die): Handle DW_TAG_partial_unit.
3426 (read_file_scope): Update comment.
3427 (load_partial_dies): Handle DW_TAG_imported_unit.
3428 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
3429 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
3430
e871fbb9
TT
34312012-05-10 Tom Tromey <tromey@redhat.com>
3432
3433 * cc-with-dwz.sh: New file.
3434
b5b04b5b
TT
34352012-05-10 Tom Tromey <tromey@redhat.com>
3436
3437 * symtab.h (struct symtab) <includes, user>: New fields.
3438 * block.h (struct block_iterator) <d, idx, which>: New fields.
3439 * block.c (initialize_block_iterator, find_iterator_symtab)
3440 (block_iterator_step, block_iter_name_step)
3441 (block_iter_match_step): New functions.
3442 (block_iterator_first, block_iterator_next)
3443 (block_iter_name_first, block_iter_name_next)
3444 (block_iter_match_first, block_iter_match_next): Rewrite.
3445 (get_block_symtab): New function.
3446
84a146c9
TT
34472012-05-10 Tom Tromey <tromey@redhat.com>
3448
3449 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
3450 set_block_symtab.
3451 * jit.c (finalize_symtab): Use allocate_global_block,
3452 set_block_symtab.
3453 * buildsym.c (finish_block_internal): New function, from old
3454 finish_block.
3455 (finish_block): Rewrite.
3456 (end_symtab): Use finish_block_internal, set_block_symtab.
3457 * block.h (struct global_block): New.
3458 (allocate_global_block, set_block_symtab): Declare.
3459 * block.c (allocate_global_block, set_block_symtab): New
3460 functions.
3461
9439a077
TT
34622012-05-10 Tom Tromey <tromey@redhat.com>
3463
3464 * psymtab.c (partial_map_expand_apply): Add assertion.
3465 (partial_map_symtabs_matching_filename): Skip included psymtabs.
3466 (psymtab_to_symtab): Find unshared psymtab.
3467 (dump_psymtab): Print including psymtabs.
3468 (recursively_search_psymtabs): New function.
3469 (expand_symtabs_matching_via_partial): Use it.
3470 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
3471 fields.
3472 (enum psymtab_search_status): New.
3473
8157b174
TT
34742012-05-10 Tom Tromey <tromey@redhat.com>
3475
3476 * tracepoint.c (scope_info): Update.
3477 * symtab.c (lookup_block_symbol, iterate_over_symbols)
3478 (find_pc_sect_symtab, search_symbols)
3479 (default_make_symbol_completion_list_break_on)
3480 (make_file_symbol_completion_list): Update.
3481 * symmisc.c (dump_symtab_1): Update.
3482 * stack.c (print_frame_args, iterate_over_block_locals)
3483 (print_frame_labels, iterate_over_block_arg_vars): Update.
3484 * python/py-block.c (block_object) <dict>: Remove.
3485 <block>: New field.
3486 <iter>: Change type.
3487 (blpy_iter): Update.
3488 (blpy_block_syms_iternext): Update.
3489 * psymtab.c (map_block): Use block iterators.
3490 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
3491 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
3492 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
3493 * infrun.c (check_exception_resume): Update.
3494 * cp-support.c (make_symbol_overload_list_block): Update.
3495 * coffread.c (patch_opaque_types): Update.
3496 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
3497 * block.h (struct block_iterator): New.
3498 (block_iterator_first, block_iterator_next, block_iter_name_first)
3499 (block_iter_name_next, block_iter_match_first)
3500 (block_iter_match_next): Declare.
3501 (ALL_BLOCK_SYMBOLS): Redefine.
3502 * block.c (block_iterator_first, block_iterator_next)
3503 (block_iter_name_first, block_iter_name_next)
3504 (block_iter_match_first, block_iter_match_next): New functions.
3505 * ada-lang.c (ada_add_block_symbols)
3506 (ada_make_symbol_completion_list): Use block iterator.
3507
a2ca7a52
TT
35082012-05-10 Tom Tromey <tromey@redhat.com>
3509
3510 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
3511 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
3512 (lookup_partial_symbol, find_last_source_symtab_from_partial)
3513 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
3514 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
3515 Update.
3516
64ea88dc
JB
35172012-05-10 Joel Brobecker <brobecker@adacore.com>
3518
3519 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
3520 print-file-var-lib2.c, print-file-var-main.c and
3521 print-file-var.exp (located in gdb/testsuite/gdb.base).
3522
99a547d6
JB
35232012-05-10 Joel Brobecker <brobecker@adacore.com>
3524
3525 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3526 try locating the symbol in the symbol's own objfile first, before
3527 extending the search to all objfiles.
3528 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3529 out of lookup_symbol_aux_symtabs.
3530 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3531 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3532 Do not search EXCLUDE_OBJFILE.
3533 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3534 (lookup_symbol_global): Search for matches in the block's objfile
3535 first, before searching all other objfiles.
3536
0ece64fd
TG
35372012-05-10 Tristan Gingold <gingold@adacore.com>
3538
3539 * printcmd.c (set_command): Add pre/post inc/dec.
3540
3d16a105
FCE
35412012-05-09 Frank Ch. Eigler <fche@redhat.com>
3542
3543 * gdb.1: Document -ex option.
3544
2efbc0f7
JB
35452012-05-09 Joel Brobecker <brobecker@adacore.com>
3546
3547 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
3548 * inferior.h (AT_SYMBOL): Delete.
3549
2c76a0c7
JB
35502012-05-09 Joel Brobecker <brobecker@adacore.com>
3551
3552 * mips-tdep.c (mips_push_dummy_code): New function.
3553 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
3554 ON_STACK and install mips_push_dummy_code as our gdbarch
3555 push_dummy_code routine.
3556
9401a810
PA
35572012-05-09 Pedro Alves <palves@redhat.com>
3558
3559 * target.c (set_maintenance_target_async_permitted): Rename to ...
3560 (set_target_async_command): ... this.
3561 (show_maintenance_target_async_permitted): Rename to ...
3562 (show_target_async_command): ... this.
3563 (initialize_targets): Adjust.
3564
3929b321
DE
35652012-05-08 Doug Evans <dje@google.com>
3566
3567 * go-exp.y (classify_name): Add missing assignment of fields of
3568 yylval.ssym.
3569
c41535fd
EZ
35702012-05-08 Eli Zaretskii <eliz@gnu.org>
3571
3572 Display the ">" prompt in interactive mode while reading canned
3573 commands, even when the current interpreter is MI.
3574
3575 * interps.c (interp_set_temp): New function.
3576
3577 * interps.h (interp_set_temp): Add prototype.
3578
3579 * cli/cli-script.c (restore_interp): New cleanup function.
3580 (read_command_lines): Temporarily override the current interpreter
3581 with CLI and arrange for restoring the original one.
3582
c0749c4d
JS
35832012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
3584
3585 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
3586
d7333987
SDJ
35872012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
3588
3589 * probe.c (parse_probes): Move conditional to check for
3590 debuginfo files from here...
3591 * stap-probe.c (stap_get_probes): ... to here.
3592
649e6d92
MK
35932012-05-07 Mark Kettenis <kettenis@gnu.org>
3594 H.J. Lu <hongjiu.lu@intel.com>
3595
3596 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
3597 `movl %esp, %ebp' for the X32 ABI.
3598
f39c6ffd
TT
35992012-05-07 Tom Tromey <tromey@redhat.com>
3600
3601 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
3602 get_DW_TAG_name.
3603 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
3604 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
3605 (dwarf_stack_op_name): Remove.
3606 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
3607 (decode_locdesc): Use get_DW_OP_name.
3608 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
3609 (dwarf2_compile_expr_to_ax): Likewise.
3610 (disassemble_dwarf_expression): Likewise.
3611 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
3612
1e1f6591
CLT
36132012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
3614
3615 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
3616 (sh_linux_sigtramp_cache): New function.
3617 (sh_linux_sigreturn_init): New function.
3618 (sh_linux_rt_sigreturn_init): New function.
3619 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
3620 patterns.
3621 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
3622 syscall codes.
3623 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
3624 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
3625 (sh_linux_init_abi): Add init calls to register new tramp_frame
3626 definitions under 32-bit SH, update comments.
3627
545c08b4
PA
36282012-05-07 Pedro Alves <palves@redhat.com>
3629
daac165e
PA
3630 PR gdb/10952
3631
545c08b4
PA
3632 * amd64-linux-tdep.c: Include glibc-tdep.h.
3633 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
3634 gdbarch_skip_solib_resolver callback.
3635
af2c1515
JK
36362012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3637
3638 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
3639 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
3640 (show_auto_load_safe_path): Check any-directory by comparison with "/".
3641 (add_auto_load_safe_path): Change the error message.
3642 (_initialize_auto_load): Change the "safe-path" help text.
3643 * configure: Regenerate
3644 * configure.ac (--without-auto-load-safe-path): Set
3645 WITH_AUTO_LOAD_SAFE_PATH to /.
3646
1067f998
SDJ
36472012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
3648
3649 * stap-probe.h: Do not include unecessary `probe.h'.
3650
45dfa85a
AM
36512012-05-05 Alan Modra <amodra@gmail.com>
3652
3653 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
3654 bfd_und_section_ptr.
3655 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
3656 and bfd_com_section_ptr.
3657
cf093994
JB
36582012-05-04 Joel Brobecker <brobecker@adacore.com>
3659
762ebb75 3660 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 3661
d40dc7a8
JB
36622012-05-04 Joel Brobecker <brobecker@adacore.com>
3663
3664 * windows-nat.h (segment_register_p_ftype): New typedef.
3665 (windows_set_segment_register_p): Add declaration.
3666 * windows-nat.c (segment_register_p): New static global.
3667 (windows_set_segment_register_p): New function.
3668 (do_windows_fetch_inferior_registers): Add special handling
3669 for segment registers.
3670 * amd64-windows-nat.c: #include "amd64-tdep.h".
3671 (amd64_windows_segment_register_p): New function.
3672 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
3673 * i386-windows-nat.c: #include "i386-tdep.h".
3674 (i386_windows_segment_register_p): New function.
3675 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
3676
52b3699b
TG
36772012-05-04 Tristan Gingold <gingold@adacore.com>
3678
3679 * printcmd.c (set_command): Emit a warning if the expression is not
3680 an assignment.
3681
94c74239
JB
36822012-05-03 Joel Brobecker <brobecker@adacore.com>
3683
3684 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
3685 Make static.
3686
fcf57f19
SDJ
36872012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
3688
3689 * stap-probe.c (stap_is_operator): Change declaration.
3690 (stap_get_opcode): Change return value.
3691 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
3692 `stap_parse_argument_1'.
3693
27d2932e
PA
36942012-05-03 Pedro Alves <pedro@codesourcery.com>
3695
3696 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
3697 debug log.
3698
a20ee7a4
SCR
36992012-05-03 Siva Chandra Reddy <sivachandra@google.com>
3700
3701 Add two new methods global_block and static_block to gdb.Symtab
3702 objects.
3703 * NEWS (Python scripting): Add entry about the new methods.
3704 * python/py-symtab.c (stpy_global_block): New function which
3705 implements the gdb.Symtab.global_block() method.
3706 (stpy_static_block): New function which implements the
3707 gdb.Symtab.static_block() method.
3708 (symtab_object_methods): Add entries for the two new methods.
3709
943cb756
DE
37102012-05-03 Doug Evans <dje@google.com>
3711
3712 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
3713 files.
3714
f4644a3f
YQ
37152012-05-03 Yao Qi <yao@codesourcery.com>
3716
3717 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
3718 space.
3719 (i386_process_record): Ditto.
3720
ef61f180
JB
37212012-05-02 Joel Brobecker <brobecker@adacore.com>
3722
3723 * infcall.c (unwind_on_signal_p): Make static.
3724
02f1df11
JB
37252012-05-02 Joel Brobecker <brobecker@adacore.com>
3726
3727 * sol-thread.c (solaris_pid_to_str): Make static.
3728 (_initialize_sol_thread): Add prototype.
3729
39023530
JB
37302012-05-02 Joel Brobecker <brobecker@adacore.com>
3731
3732 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
3733
c6b0c501
CF
37342012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
3735
3736 * MAINTAINERS: Remove myself.
3737
1ef71717
JK
37382012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3739
3740 Fix --without-auto-load-safe-path for MS-Windows host platform.
3741 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
3742
b31b86a7
EZ
37432012-05-02 Eli Zaretskii <eliz@gnu.org>
3744
3745 * gdb_curses.h: Undefine KEY_EVENT before including curses
3746 headers. Move "#undef MOUSE_MOVED" before any curses header
3747 inclusion.
3748
777532fc
SDJ
37492012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3750
3751 * features/i386/i386-mmx-linux.c: Regenerate.
3752 * features/rs6000/powerpc-32.c: Likewise.
3753 * features/rs6000/powerpc-32l.c: Likewise.
3754 * features/rs6000/powerpc-403.c: Likewise.
3755 * features/rs6000/powerpc-403gc.c: Likewise.
3756 * features/rs6000/powerpc-405.c: Likewise.
3757 * features/rs6000/powerpc-505.c: Likewise.
3758 * features/rs6000/powerpc-601.c: Likewise.
3759 * features/rs6000/powerpc-602.c: Likewise.
3760 * features/rs6000/powerpc-603.c: Likewise.
3761 * features/rs6000/powerpc-604.c: Likewise.
3762 * features/rs6000/powerpc-64.c: Likewise.
3763 * features/rs6000/powerpc-64l.c: Likewise.
3764 * features/rs6000/powerpc-750.c: Likewise.
3765 * features/rs6000/powerpc-860.c: Likewise.
3766 * features/rs6000/powerpc-e500.c: Likewise.
3767 * features/rs6000/powerpc-e500l.c: Likewise.
3768 * features/rs6000/powerpc-isa205-32l.c: Likewise.
3769 * features/rs6000/powerpc-isa205-64l.c: Likewise.
3770 * features/rs6000/rs6000.c: Likewise.
3771
d71871bc
SDJ
37722012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
3773
3774 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
3775 variable.
3776 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
3777 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
3778 (stap_parse_argument) <e>: Likewise.
3779 (handle_stap_probe) <byte_order>: Likewise.
3780
fd820528
DE
37812012-04-30 Doug Evans <dje@google.com>
3782
3783 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
3784 init_and_read_dies_worker. All callers updated.
3785 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
3786 replaced with init_cutu_and_read_dies.
3787 (load_partial_comp_unit): Pass 1 for use_existing_cu.
3788 (find_partial_die): Remove FIXME. Don't free current CU.
3789
ec3f619d 37902012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
3791
3792 * contrib: New directory.
3793 * contrib/test_pubnames_and_indexes.py: New file.
3794
fceca515
DE
37952012-04-30 Doug Evans <dje@google.com>
3796
3797 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
3798 All callers updated.
3799 (init_cu_die_reader): Verify the section is non-empty.
3800 (dwarf_decode_line_header): Don't dereference section->asection
3801 until we know the section is present.
3802
311fe7e1
SDJ
38032012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
3804
3805 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
3806 probes.
3807
5977971a
YQ
38082012-04-29 Yao Qi <yao@codesourcery.com>
3809
3810 * gdb-code-style.el: New hook gdb-markup-hook
3811 and gdb-comment-hook.
3812
dee91e82
DE
38132012-04-28 Doug Evans <dje@google.com>
3814
3019eac3
DE
3815 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
3816 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
3817 objfile->obfd.
3818 * symfile.h (dwarf2_debug_sections): New member addr.
3819 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
3820 (ctx_no_get_addr_index): New function.
3821 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
3822 (ctx_no_get_addr_index): Declare.
3823 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
3824 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
3825 (dwarf_expr_ctx_funcs): Update.
3826 (needs_get_addr_index): New function.
3827 (needs_frame_ctx_funcs): Update.
3828 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
3829 * dwarf2read.c: #include "gdbcore.h".
3830 (dwarf2_per_objfile): New members addr, dwo_files.
3831 (dwarf2_elf_names): Add entry for addr.
3832 (struct dwo_section_names): New type.
3833 (dwo_section_names): New static global.
3834 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
3835 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
3836 old debug_types_section member updated to use this.
3837 Rename member debug_types_section to info_or_types_section,
3838 all uses updated.
3839 (signatured_type): Rename member type_offset to type_offset_in_tu,
3840 all uses updated. New member type_offset_in_section.
3841 (struct dwo_sections): New type.
3842 (struct dwo_unit): New type.
3843 (struct dwo_file): New type.
3844 (die_reader_specs): New member dwo_file.
3845 (dwarf2_locate_sections): Watch for .debug_addr.
3846 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
3847 (dwarf2_read_section): Get bfd of section from bfd's asection,
3848 instead of objfile.
3849 (create_cus_from_index): Initialize the_cu->info_or_types_section.
3850 (create_signatured_type_table_from_index): Initialize
3851 sig_type->info_or_types_section.
3852 (dw2_get_file_names): Statement lists for type units with DWO files
3853 live in the DWO file.
3854 (create_debug_types_hash_table): New function.
3855 (create_all_type_units): Rewrite.
3856 (init_cu_die_reader): New arg dwo_file, all callers updated.
3857 (init_and_read_dies_worker): Get section from
3858 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
3859 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
3860 continue reading the CU/TU from there.
3861 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
3862 updated. Get section from this_cu->info_or_types_section.
3863 (create_all_comp_units): Initialize this_cu->info_or_types_section.
3864 (skip_one_die): New cases DW_FORM_GNU_addr_index,
3865 DW_FORM_GNU_str_index.
3866 (hash_dwo_file, eq_dwo_file): New functions.
3867 (allocate_dwo_file_hash_table): New function.
3868 (hash_dwo_unit, eq_dwo_unit): New functions.
3869 (allocate_dwo_unit_table): New function.
3870 (dwarf2_locate_dwo_sections): New function.
3871 (struct create_dwo_info_table_data): New type.
3872 (create_debug_info_hash_table_reader): New function.
3873 (create_debug_info_hash_table): New function.
3874 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
3875 (lookup_dwo_file): New function.
3876 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
3877 (free_dwo_file, free_dwo_file_cleanup): New functions.
3878 (free_dwo_file_from_slot, free_dwo_files): New functions.
3879 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
3880 (dwarf2_record_block_ranges): Ditto.
3881 (read_partial_die): Ditto.
3882 (process_enumeration_scope): Update to use type_offset_in_section.
3883 (read_full_die_1): New function.
3884 (read_full_die): Rewrite.
3885 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
3886 DW_FORM_GNU_str_index.
3887 (read_addr_index_1, read_addr_index): New functions.
3888 (read_addr_index_from_leb128): New function.
3889 (struct dwarf2_read_addr_index_data): New type.
3890 (dwarf2_read_addr_index_reader): New function.
3891 (dwarf2_read_addr_index): New function.
3892 (read_str_index): New function.
3893 (leb128_size): New function.
3894 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
3895 If processing a type unit from a DWO file, get the line section
3896 from the DWO file.
3897 (var_decode_location): Watch for DW_OP_GNU_addr_index.
3898 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
3899 DW_FORM_GNU_str_index.
3900 (lookup_die_type): Check whether section offset of type's die is
3901 known before looking it up. Remove assert. Condition can
3902 legimately happen for inter-cu type references.
3903 (dwarf_attr_name): Handle Fission attributes.
3904 (dwarf_form_name): Handle Fission forms.
3905 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
3906 DW_FORM_GNU_str_index.
3907 (follow_die_sig): Update to use type_offset_in_section.
3908 (decode_locdesc): New case DW_OP_GNU_addr_index.
3909 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
3910 DW_FORM_GNU_str_index.
3911 (cu_debug_loc_section): New function.
3912 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
3913 (dwarf2_per_objfile_free): Unmap .debug_addr section.
3914 Free DWO files if present.
3915 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
3916
dee91e82
DE
3917 Refactor DIE reading.
3918 * dwarf2read.c (dwarf2_per_objfile): Replace members
3919 debug_info_type_hash and debug_types_type_hash with die_type_hash.
3920 (die_reader_specs): New member "die_section". Temporarily make
3921 member "buffer" non-const, pending constifying all info_ptr uses.
3922 (die_reader_func_ftype): New typedef.
3923 (dw2_get_file_names_reader): New function.
3924 (dw2_get_file_names): Rewrite.
3925 (read_and_check_type_unit_head): Rename arg type_offset to
3926 type_offset_in_tu.
3927 (create_all_type_units): Improve debugging message.
3928 Improve dummy type unit check.
3929 (init_cu_die_reader): New arg "section". All callers updated.
3930 (init_and_read_dies_worker): New function.
3931 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
3932 (init_cutu_and_read_dies_no_follow): New function.
3933 (init_cutu_and_read_dies_simple): New function.
3934 (process_psymtab_comp_unit_reader): New function.
3935 (process_psymtab_comp_unit): Delete args section,
3936 is_debug_types_section. Rewrite. All callers updated.
3937 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
3938 All callers updated. Rewrite.
3939 (load_partial_comp_unit_reader): New function.
3940 (load_partial_comp_unit): Rewrite.
3941 (skip_children): New arg reader. Delete args buffer, cu.
3942 All callers updated.
3943 (skip_one_die): New arg reader. Delete args buffer, cu.
3944 All callers updated.
3945 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
3946 All callers updated.
3947 (load_full_comp_unit_reader): New function.
3948 (load_full_comp_unit): Rewrite.
3949 (read_comp_unit): Delete.
3950 (read_die_and_children_1): Delete, contents moved ...
3951 (read_die_and_children): ... here.
3952 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
3953 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
3954 All callers updated.
3955 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
3956 All callers updated.
3957 (find_partial_die): Rewrite load_all_dies support.
3958 (read_attribute_value): New arg reader. Delete args abfd, cu.
3959 All callers updated.
3960 (read_attribute): New arg reader. Delete args abfd, cu.
3961 All callers updated.
3962 (load_full_type_unit): Add assert.
3963 (read_signatured_type_reader): New function.
3964 (read_signatured_type): Rewrite.
3965 (free_stack_comp_unit): Remove call to age_cached_comp_units.
3966 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
3967 All callers updated. Set per_cu->cu = NULL after freeing it.
3968 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
3969 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
3970 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
3971 (set_die_type): Update.
3972 (get_die_type_at_offset): Update.
3973 (read_file_scope): Call prepare_one_comp_unit.
3974 (read_type_unit_scope): Ditto.
3975 (prepare_one_comp_unit): Set producer if present.
3976
72d59e0d
SDJ
39772012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
3978
3979 * probe.c (compile_rx_or_error): Silence ARI warning about missing
3980 gettext function on `error'.
3981
0fefef59
DE
39822012-04-27 Doug Evans <dje@google.com>
3983
3984 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
3985 is empty.
3986
28106bc2
SDJ
39872012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
3988 Tom Tromey <tromey@redhat.com>
3989
3990 * breakpoint.c (struct breakpoint_objfile_data)
3991 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
3992 <exception_probes>: New fields.
3993 (free_breakpoint_probes): New function.
3994 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
3995 `_Unwind_DebugHook'.
3996 (create_exception_master_breakpoint): Likewise.
3997 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
3998 * infrun.c: Including necessary header files for handling SystemTap
3999 probes.
4000 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4001 via SystemTap probes.
4002 (check_exception_resume): Remove `func' argument. Handle exception
4003 unwinding breakpoint set via a SystemTap probe.
4004 (insert_exception_resume_from_probe): New function.
4005
55aa24fb
SDJ
40062012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4007 Tom Tromey <tromey@redhat.com>
4008 Jan Kratochvil <jan.kratochvil@redhat.com>
4009
4010 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4011 (COMMON_OBS): Likewise.
4012 (HFILES_NO_SRCDIR): Add `probe'.
4013 * NEWS: Mention support for static and SystemTap probes.
4014 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4015 SystemTap probes' arguments parser.
4016 * arm-linux-tdep.c: Including headers needed to perform the parsing
4017 of SystemTap probes' arguments.
4018 (arm_stap_is_single_operand): New function.
4019 (arm_stap_parse_special_token): Likewise.
4020 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4021 probes' arguments parser.
4022 * ax-gdb.c (require_rvalue): Removing static declaration.
4023 (gen_expr): Likewise.
4024 * ax-gdb.h (gen_expr): Declaring function.
4025 (require_rvalue): Likewise.
4026 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4027 (bkpt_probe_breakpoint_ops): New variable.
4028 (momentary_breakpoint_from_master): Set the `probe' value.
4029 (add_location_to_breakpoint): Likewise.
4030 (break_command_1): Using proper breakpoint_ops according to the
4031 argument passed by the user in the command line.
4032 (bkpt_probe_insert_location): New function.
4033 (bkpt_probe_remove_location): Likewise.
4034 (bkpt_probe_create_sals_from_address): Likewise.
4035 (bkpt_probe_decode_linespec): Likewise.
4036 (tracepoint_probe_create_sals_from_address): Likewise.
4037 (tracepoint_probe_decode_linespec): Likewise.
4038 (tracepoint_probe_breakpoint_ops): New variable.
4039 (trace_command): Using proper breakpoint_ops according to the
4040 argument passed by the user in the command line.
4041 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4042 static probes on breakpoints and tracepoints.
4043 * breakpoint.h (struct bp_location) <probe>: New field.
4044 * cli-utils.c (skip_spaces_const): New function.
4045 (extract_arg): Likewise.
4046 * cli-utils.h (skip_spaces_const): Likewise.
4047 (extract_arg): Likewise.
4048 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4049 * configure.ac: Append `stap-probe.o' to be generated when ELF
4050 support is present.
4051 * configure: Regenerate.
4052 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4053 * elfread.c: Include `probe.h' and `arch-utils.h'.
4054 (probe_key): New variable.
4055 (elf_get_probes): New function.
4056 (elf_get_probe_argument_count): Likewise.
4057 (elf_evaluate_probe_argument): Likewise.
4058 (elf_compile_to_ax): Likewise.
4059 (elf_symfile_relocate_probe): Likewise.
4060 (stap_probe_key_free): Likewise.
4061 (elf_probe_fns): New variable.
4062 (elf_sym_fns): Add `sym_probe_fns' value.
4063 (elf_sym_fns_lazy_psyms): Likewise.
4064 (elf_sym_fns_gdb_index): Likewise.
4065 (_initialize_elfread): Initialize objfile cache for static
4066 probes.
4067 * gdb_vecs.h (struct probe): New forward declaration.
4068 (probe_p): New VEC declaration.
4069 * gdbarch.c: Regenerate.
4070 * gdbarch.h: Regenerate.
4071 * gdbarch.sh (stap_integer_prefix): New variable.
4072 (stap_integer_suffix): Likewise.
4073 (stap_register_prefix): Likewise.
4074 (stap_register_suffix): Likewise.
4075 (stap_register_indirection_prefix): Likewise.
4076 (stap_register_indirection_suffix): Likewise.
4077 (stap_gdb_register_prefix): Likewise.
4078 (stap_gdb_register_suffix): Likewise.
4079 (stap_is_single_operand): New function.
4080 (stap_parse_special_token): Likewise.
4081 (struct stap_parse_info): Forward declaration.
4082 * i386-tdep.c: Including headers needed to perform the parsing
4083 of SystemTap probes' arguments.
4084 (i386_stap_is_single_operand): New function.
4085 (i386_stap_parse_special_token): Likewise.
4086 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4087 probes' arguments parser.
4088 * i386-tdep.h (i386_stap_is_single_operand): New function.
4089 (i386_stap_parse_special_token): Likewise.
4090 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4091 * mipsread.c (ecoff_sym_fns): Likewise.
4092 * objfiles.c (objfile_relocate1): Support relocation for static
4093 probes.
4094 * parse.c (prefixify_expression): Remove static declaration.
4095 (initialize_expout): Likewise.
4096 (reallocate_expout): Likewise.
4097 * parser-defs.h (initialize_expout): Declare function.
4098 (reallocate_expout): Likewise.
4099 (prefixify_expression): Likewise.
4100 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4101 of SystemTap probes' arguments.
4102 (ppc_stap_is_single_operand): New function.
4103 (ppc_stap_parse_special_token): Likewise.
4104 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4105 probes' arguments parser.
4106 * probe.c: New file, for generic statically defined probe support.
4107 * probe.h: Likewise.
4108 * s390-tdep.c: Including headers needed to perform the parsing of
4109 SystemTap probes' arguments.
4110 (s390_stap_is_single_operand): New function.
4111 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4112 probes' arguments parser.
4113 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4114 * stap-probe.c: New file, for SystemTap probe support.
4115 * stap-probe.h: Likewise.
4116 * symfile.h: Include `gdb_vecs.h'.
4117 (struct sym_probe_fns): New struct.
4118 (struct sym_fns) <sym_probe_fns>: New field.
4119 * symtab.c (init_sal): Initialize `probe' field.
4120 * symtab.h (struct probe): Forward declaration.
4121 (struct symtab_and_line) <probe>: New field.
4122 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4123 locations.
4124 (stop_tracing): Likewise.
4125 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4126
22d2b532
SDJ
41272012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4128 Tom Tromey <tromey@redhat.com>
4129
4130 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4131 and to compile agent expressions.
4132 * infrun.c (siginfo_make_value): New argument `ignore'.
4133 (siginfo_funcs): New struct.
4134 (_initialize_infrun): New argument when calling
4135 `create_internalvar_type_lazy'.
4136 * thread.c (thread_id_make_value): New argument `ignore'.
4137 (thread_funcs): New struct.
4138 (_initialize_thread): New argument when calling
4139 `create_internalvar_type_lazy'.
4140 * tracepoint.c (sdata_make_value): New argument `ignore'.
4141 (sdata_funcs): New struct.
4142 (_initialize_tracepoint): New argument when calling
4143 `create_internalvar_type_lazy'.
4144 * value.c (make_value): New struct.
4145 (create_internalvar_type_lazy): New argument `data'.
4146 (compile_internalvar_to_ax): New function.
4147 (value_of_internalvar): Properly handling `make_value' case.
4148 (clear_internalvar): Likewise.
4149 (show_convenience): Adding `TRY_CATCH' block.
4150 * value.h (internalvar_make_value): Delete, replace by...
4151 (struct internalvar_funcs): ... this.
4152 (create_internalvar_type_lazy) <fun>: Delete argument.
4153 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4154 (compile_internalvar_to_ax): New function.
4155 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4156 (tlb_funcs): New struct.
4157 (_initialize_windows_tdep): New argument when calling
4158 `create_internalvar_type_lazy'.
4159
91da1414
MW
41602012-04-27 Mark Wielaard <mjw@redhat.com>
4161
4162 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4163 see whether it is an address or a constant offset from DW_AT_low_pc.
4164 (dwarf2_record_block_ranges): Likewise.
4165 (read_partial_die): Likewise.
4166
4ab9d8ec
MW
41672012-04-26 Mark Wielaard <mjw@redhat.com>
4168
4169 * MAINTAINERS (Write After Approval): Add myself to the list.
4170
a0911fd0
MR
41712012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4172
4173 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4174 (proc_prettyprint_signal): Likewise.
4175 (proc_prettyprint_faultset): Likewise.
4176 (proc_prettyprint_fault): Likewise.
4177 (proc_prettyprint_actionset): Likewise.
4178 (proc_prettyprint_flags): Move to new proc-flags.c section.
4179 (proc_prettyfprint_flags): New prototype.
4180 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
4181 (proc_syscall, proc_cursig): Likewise.
4182 (proc_set_kill_on_last_close): Likewise.
4183 (proc_unset_kill_on_last_close): Likewise.
4184 (proc_set_watchpoint): Make static.
4185 (proc_delete_dead_threads): Likewise.
4186 (procfs_set_watchpoint): Likewise.
4187 (_initialize_procfs): Add prototype.
4188 * proc-events.c: Include proc-utils.h.
4189 (init_syscall_table): Make static.
4190 * proc-api.c (_initialize_proc_api): Add prototype.
4191 * proc-flags.c: Include proc-utils.h.
4192
9009e1ae
MR
41932012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4194
4195 * configure.ac: Add AC_ARG_PROGRAM.
4196 * configure: Regenerate.
4197
4fae6e18
JK
41982012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 Fix DW_AT_lower_bound defaults for DWARF-4+.
4201 * dwarf2read.c (read_subrange_type): Remove initialization of low and
4202 high. New variable low_default_is_valid. Implement DWARF-4+
4203 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
4204 no default by the DWARF standard.
4205
14132e89
MR
42062012-04-26 Maciej W. Rozycki <macro@mips.com>
4207 Maciej W. Rozycki <macro@codesourcery.com>
4208
4209 * infrun.c (handle_inferior_event): Move the check for return
4210 trampolines ahead of the check for function trampolines.
4211 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
4212 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
4213 (mips_str_mips16_ret_stub): Likewise.
4214 (mips_str_call_fp_stub): Likewise.
4215 (mips_str_call_stub): Likewise.
4216 (mips_str_fn_stub): Likewise.
4217 (mips_str_pic): Likewise.
4218 (mips_in_frame_stub): New function.
4219 (mips_unwind_pc): Return the return address rather than the PC
4220 if the PC of an intermediate frame is inside a call thunk.
4221 (mips_is_stub_suffix): New function.
4222 (mips_is_stub_mode): Likewise.
4223 (mips_get_mips16_fn_stub_pc): Likewise.
4224 (mips_skip_mips16_trampoline_code): Update to handle all the
4225 currently generated stub types. Don't recurse into __fn_stub
4226 thunks. Remove heuristics to handle stubs beyond etext/_etext.
4227 Use cooked register accesses.
4228 (mips_in_return_stub): Reintroduce function.
4229 (mips_skip_trampoline_code): Traverse trampolines recursively.
4230 (mips_gdbarch_init): Handle MIPS16 return trampolines.
4231
518f0db5 42322012-04-26 Joel Brobecker <brobecker@adacore.com>
4233
4234 GDB 7.4.1 released.
4235
3184d3f9
JL
42362012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
4237
4238 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
4239 * features/arm-with-m-vfp-d16.xml: New file. Describes
4240 Cortex-M with VFPv4-sp-d16 FPU register layout.
4241 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
4242 * features/arm-with-m-vfp-d16.c: New. Generated from above.
4243 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
4244 (arm-register_g_packet_guesses): Add vfp-d16 guess.
4245 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
4246
b6201d44
DE
42472012-04-25 Doug Evans <dje@google.com>
4248
4249 * cli/cli-decode.c (print_doc_line): Use stream instead of
4250 current_uiout.
4251
4e2f8df6
SDJ
42522012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
4253
4254 * features/arm-with-iwmmxt.c: Regenerate.
4255 * features/arm-with-m-fpa-layout.c: Likewise.
4256 * features/arm-with-m.c: Likewise.
4257 * features/arm-with-neon.c: Likewise.
4258 * features/arm-with-vfpv2.c: Likewise.
4259 * features/arm-with-vfpv3.c: Likewise.
4260 * features/mips-dsp-linux.c: Likewise.
4261 * features/mips-linux.c: Likewise.
4262 * features/mips64-dsp-linux.c: Likewise.
4263 * features/mips64-linux.c: Likewise.
4264 * features/s390-linux32.c: Likewise.
4265 * features/s390-linux32v1.c: Likewise.
4266 * features/s390-linux32v2.c: Likewise.
4267 * features/s390-linux64.c: Likewise.
4268 * features/s390-linux64v1.c: Likewise.
4269 * features/s390-linux64v2.c: Likewise.
4270 * features/s390x-linux64.c: Likewise.
4271 * features/s390x-linux64v1.c: Likewise.
4272 * features/s390x-linux64v2.c: Likewise.
4273 * features/tic6x-c62x-linux.c: Likewise.
4274 * features/tic6x-c62x.c: Likewise.
4275 * features/tic6x-c64x-linux.c: Likewise.
4276 * features/tic6x-c64x.c: Likewise.
4277 * features/tic6x-c64xp-linux.c: Likewise.
4278 * features/tic6x-c64xp.c: Likewise.
4279 * target-descriptions.c: Only generate `field_type' and `type'
4280 variables when needed.
4281
2def3e66
JB
42822012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
4283
4284 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
4285
a766d390
DE
42862012-04-25 Doug Evans <dje@google.com>
4287
4288 Initial pass at Go language support.
4289 * NEWS: Mention Go.
4290 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
4291 go-valprint.c.
4292 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
4293 (YYFILES): Add go-exp.c.
4294 (YYOBJ): Add go-exp.o.
4295 (local-maintainer-clean): Delete go-exp.c.
4296 * defs.h (enum language): Add language_go.
4297 * dwarf2read.c: #include "go-lang.h".
4298 (fixup_go_packaging): New function.
4299 (process_full_comp_unit): Call it when processing Go CUs.
4300 (dwarf2_physname): Add Go support.
4301 (read_file_scope): Handle missing language spec for GNU Go.
4302 (set_cu_language): Handle DW_LANG_Go.
4303 * go-exp.y: New file.
4304 * go-lang.h: New file.
4305 * go-lang.c: New file.
4306 * go-typeprint.c: New file.
4307 * go-valprint.c: New file.
4308 * symtab.c: #include "go-lang.h".
4309 (symbol_set_language): Handle language_go.
4310 (symbol_find_demangled_name, symbol_set_names): Ditto.
4311 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
4312
4e2af517
JM
43132012-04-24 Jim Meyering <meyering@redhat.com>
4314
4315 avoid a few strncpy-induced buffer overruns
4316 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
4317 fname and psargs before trying to concatenate.
4318 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
4319 "name" before applying strchr.
4320
b77b7f52
SCR
43212012-04-25 Siva Chandra Reddy <sivachandra@google.com>
4322
4323 * CONTRIBUTE: Use unified diff instead of context diff when
4324 generating patches.
4325
6321c22a
MR
43262012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4327
4328 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
4329 code. Handle JR.HB correctly.
4330
742c84f6
MR
43312012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
4332
4333 * mips-tdep.c
4334 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
4335 with the other MIPS16 helpers.
4336
7fc7e0c3
SDJ
43372012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
4338
4339 * observer.sh: Conditionally declare `args', thus cleaning up
4340 unused instances of this variable.
4341
20388dd6
YQ
43422012-04-24 Yao Qi <yao@codesourcery.com>
4343
4344 Revert this patch to allow breakpoint always-inserted
4345 in record target.
4346 2011-12-05 Pedro Alves <pedro@codesourcery.com>
4347 * breakpoint.c: Include record.h.
4348 (breakpoints_always_inserted_mode): Return false when the record
4349 target is in use.
4350
4351 * breakpoint.c (iterate_over_bp_locations): New.
4352 * breakpoint.h: Declare.
4353 New typedef walk_bp_location_callback.
4354 * record.c (record_open): Call record_init_record_breakpoints.
4355 (record_sync_record_breakpoints): New.
4356 (record_init_record_breakpoints): New.
4357 * NEWS: Mention supporting breakpoint always-inserted mode in
4358 record target.
4359
4734f50e
MK
43602012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
4361
4362 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
4363 any thread.
4364
c326b90e
YQ
43652012-04-24 Yao Qi <yao@codesourcery.com>
4366
4367 * breakpoint.c (ep_is_catchpoint): Renamed to ...
4368 (is_catchpoint): ... it.
4369 (print_one_breakpoint_location): Caller update.
4370 * breakpoint.h: Update declaration.
4371
d8fb5a1e
DM
43722012-04-23 David S. Miller <davem@davemloft.net>
4373
4374 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
4375
34431a2a
TT
43762012-04-23 Tom Tromey <tromey@redhat.com>
4377
4378 * buildsym.c (add_free_pendings): Remove.
4379 * buildsym.h (add_free_pendings): Remove.
4380
4568ecf9
DE
43812012-04-23 Doug Evans <dje@google.com>
4382
4383 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
4384 attr.u.unsnd instead of attr.u.addr.
4385 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
4386 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
4387 DW_FORM_ref_udata.
4388 (dump_die_shallow): Update cases DW_FORM_ref_addr,
4389 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
4390 DW_FORM_ref_udata.
4391 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
4392
dca9aa3a
MR
43932012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
4394
4395 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
4396 (mips_o32_return_value): Likewise.
4397 (mips_o64_return_value): Likewise.
4398
c8ea1972
PH
43992012-04-21 Paul Hilfinger <hilfinger@adacore.com>
4400
4401 * ada-lang.c (ada_evaluate_subexp): Add cases for
4402 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
4403 their treatment in eval.c.
4404
8d1b3521
DM
44052012-04-21 David S. Miller <davem@davemloft.net>
4406
4407 * sparc-tdep.c (X_DISP10): Define.
4408 (sparc_analyze_control_transfer): Handle compare-and-branch.
4409
03145bf4
JL
44102012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
4411
4412 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
4413 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
4414
004159a2
MR
44152012-04-20 Nigel Stephens <nigel@mips.com>
4416 Maciej W. Rozycki <macro@codesourcery.com>
4417
4418 * mips-tdep.c (mips_float_register_p): New function.
4419 (mips_convert_register_float_case_p): Use mips_float_register_p.
4420 (mips_register_type): Likewise.
4421 (mips_print_register): Likewise.
4422 (print_gp_register_row): Likewise.
4423 (mips_print_registers_info): Likewise.
4424
7f0e6aae
MR
44252012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
4426
4427 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
4428 of mips16 symbols.
4429
bc17beea
AP
44302012-04-20 Andrew Pinski <apinski@cavium.com>
4431
4432 * MAINTAINERS (Write After Approval): Add myself to the list.
4433
1730a5a5
SDJ
44342012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4435
4436 * MAINTAINERS: Update my e-mail address.
4437
38ea300a
PA
44382012-04-20 Pedro Alves <palves@redhat.com>
4439
4440 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
4441 $srcdir.
4442 * configure: Regenerate.
4443
111dfaae
SDJ
44442012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
4445
4446 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
4447 declaration.
4448 * gdb_vecs.h: Declare `const_char_ptr' VEC.
4449
4fb2c64a
JK
44502012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4451
4452 Fix compilation compatibility with python-2.4
4453 * python/py-type.c (convert_field): Cast ADDRSTRING for
4454 PyObject_SetAttrString as non-const. New comment.
4455
6328eb38
TT
44562012-04-19 Tom Tromey <tromey@redhat.com>
4457
4458 * top.c (quit_target): Use all_cleanups.
4459 * main.c (captured_command_loop): Use all_cleanups.
4460 * exceptions.c (throw_exception): Use all_cleanups.
4461
c971b7fa
PA
44622012-04-19 Pedro Alves <palves@redhat.com>
4463
4464 * Makefile.in (GNULIB_BUILDDIR): New.
4465 (LIBGNU, INCGNU, GNULIB_H): Adjust.
4466 (SUBDIRS): Add $(GNULIB_BUILDDIR).
4467 (CLEANDIRS). Remove gnulib/import.
4468 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
4469 (all-lib): Ditto.
4470 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
4471 (gnulib/import/Makefile): Replace gnulib/import with
4472 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
4473 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
4474 (aclocal_m4_deps): Remove the gnulib dependencies. Add
4475 acx_configure_dir.m4.
4476 * acinclude.m4: Include acx_configure_dir.m4.
4477 * acx_configure_dir.m4: New file.
4478 * aclocal.m4: Regenerate.
a09130f9
PA
4479 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
4480 calls. Configure gnulib using ACX_CONFIGURE_DIR.
4481 (GNULIB): New variable.
4482 (GNULIB_STDINT_H): Adjust.
4483 (AC_OUTPUT): Don't output gnulib/Makefile.
4484 * gdb/defs.h: Include build-gnulib/config.h.
4485 * aclocal.m4: Regenerate.
4486 * config.in: Regenerate.
4487 * configure: Regenerate.
4488
4489 * gnulib/Makefile.in: New file.
4490 * gnulib/configure.ac: New file.
4491 * gnulib/aclocal.m4: New file.
4492 * gnulib/config.in: New file.
4493 * gnulib/configure: New file.
c971b7fa
PA
4494 * gnulib/: Re-run gnulib-tool to adjust.
4495
b10faa68
DE
44962012-04-19 Doug Evans <dje@google.com>
4497
4498 * cleanups.h (struct cleanup): Move to cleanups.c.
4499 (make_cleanup_dtor_ftype): New typedef.
4500 (make_cleanup_dtor): Use it.
4501 (ALL_CLEANUPS): Replace with ...
4502 (all_cleanups): ... this. Declare. All uses updated.
4503 * cleanups.c: #include "gdb_assert.h".
4504 (sentinel_cleanup): New static global.
4505 (SENTINEL_CLEANUP): Define.
4506 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
4507 (make_my_cleanup2): Assert result is non-NULL.
4508 (all_cleanups): New function.
4509 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
4510 of NULL.
4511
d8c267cc
PA
45122012-04-19 Pedro Alves <palves@redhat.com>
4513
4514 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
4515 Adjust paths to gnulib imported files.
4516
809277f8
PA
45172012-04-19 Pedro Alves <palves@redhat.com>
4518
4519 * gnulib/: Move whole directory ...
4520 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
4521 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
4522 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
4523 (aclocal_m4_deps): Adjust.
4524 * aclocal.m4: Regenerate.
4525 * configure: Regenerate.
4526 * configure.ac: Adjust AC_OUTPUT output.
4527
aad9eab9
YQ
45282012-04-19 Yao Qi <yao@codesourcery.com>
4529
4530 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
4531 (vec.o): New rule.
4532 * vec.c: Move it ...
4533 * common/vec.c: ... here.
4534 * vec.h: Move it ...
4535 * common/vec.h: ... here.
4536
48fe4669
YQ
45372012-04-19 Yao Qi <yao@codesourcery.com>
4538
4539 * gdb-code-style.el: New.
4540
770d76d7
PA
45412012-04-18 Pedro Alves <palves@redhat.com>
4542
4543 Update gnulib from latest git.
4544 (639ea5ae15e39fe48d43e04864b2997301e4b969)
4545
4546 * gnulib/Makefile.am: Update.
4547 * gnulib/dummy.c: Update.
4548 * gnulib/extra/arg-nonnull.h: Update.
4549 * gnulib/extra/c++defs.h: Update.
4550 * gnulib/extra/update-copyright: Update.
4551 * gnulib/extra/warn-on-use.h: Update.
4552 * gnulib/inttypes.in.h: Update.
4553 * gnulib/m4/00gnulib.m4: Update.
4554 * gnulib/m4/extensions.m4: Update.
4555 * gnulib/m4/gnulib-cache.m4: Update.
4556 * gnulib/m4/gnulib-common.m4: Update.
4557 * gnulib/m4/gnulib-comp.m4: Update.
4558 * gnulib/m4/gnulib-tool.m4: Update.
4559 * gnulib/m4/include_next.m4: Update.
4560 * gnulib/m4/inttypes-pri.m4: Update.
4561 * gnulib/m4/inttypes.m4: Update.
4562 * gnulib/m4/longlong.m4: Update.
4563 * gnulib/m4/memchr.m4: Update.
4564 * gnulib/m4/memmem.m4: Update.
4565 * gnulib/m4/mmap-anon.m4: Update.
4566 * gnulib/m4/multiarch.m4: Update.
4567 * gnulib/m4/onceonly.m4: Update.
4568 * gnulib/m4/stddef_h.m4: Update.
4569 * gnulib/m4/stdint.m4: Update.
4570 * gnulib/m4/string_h.m4: Update.
4571 * gnulib/m4/warn-on-use.m4: Update.
4572 * gnulib/m4/wchar_h.m4: Update.
4573 * gnulib/m4/wchar_t.m4: Update.
4574 * gnulib/m4/wint_t.m4: Update.
4575 * gnulib/memchr.c: Update.
4576 * gnulib/memmem.c: Update.
4577 * gnulib/stddef.in.h: Update.
4578 * gnulib/stdint.in.h: Update.
4579 * gnulib/str-two-way.h: Update.
4580 * gnulib/string.in.h: Update.
4581 * gnulib/wchar.in.h: Update.
4582
4583 * gnulib/extra/arg-nonnull.h: Delete.
4584 * gnulib/extra/c++defs.h: Delete.
4585 * gnulib/extra/warn-on-use.h: Delete.
4586 * gnulib/m4/wchar_h.m4: Delete.
4587 * gnulib/m4/wint_t.m4: Delete.
4588 * gnulib/wchar.in.h: Delete.
4589
4590 * gnulib/extra/snippets/arg-nonnull.h: New.
4591 * gnulib/extra/snippets/c++defs.h: New.
4592 * gnulib/extra/snippets/warn-on-use.h: New.
4593
4594 * aclocal.m4: Regenerate.
4595 * config.in: Regenerate.
4596 * configure: Regenerate.
4597 * gnulib/Makefile.in: Regenerate.
4598
174e088e
PA
45992012-04-18 Pedro Alves <palves@redhat.com>
4600
4601 Reimport the update-copyright module from gnulib
4602 (250b80067c1e1d8faa0c42fb572f721975b929c5).
4603
4604 * configure: Regenerate.
4605 * gnulib/Makefile.am: Update.
4606 * gnulib/Makefile.in: Regenerate.
4607 * gnulib/extra/update-copyright: Update.
4608 * gnulib/m4/gnulib-cache.m4: Update.
4609 * gnulib/m4/gnulib-comp.m4: Update.
4610
7f533142
JB
46112012-04-18 Tristan Gingold <gingold@adacore.com>
4612
4613 * configure.ac (aix): Put -lpthread into libs.
4614 * configure: Regenerate.
4615
001822aa
TT
46162012-04-18 Tom Tromey <tromey@redhat.com>
4617
4618 * linespec.c (convert_linespec_to_sals): Don't use
4619 SYMBOL_OBJ_SECTION.
4620 (compare_msymbols): Arguments are minsym_and_objfile, not
4621 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
4622
db026a31
PA
46232012-04-18 Pedro Alves <palves@redhat.com>
4624
4625 Revert gnulib/ part of:
4626 2011-01-01 Joel Brobecker <brobecker@adacore.com>
4627 Copyright year update in most files (performed by copyright.sh).
4628
12df843f
JK
46292012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 Fix 64-bit constants on 32-bit hosts.
4632 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
4633 from unsigned long to ULONGEST.
4634 (read_signed_leb128): Change declaration return type from long to
4635 LONGEST.
4636 (dwarf2_const_value_attr): Change declaration parameter value from long
4637 to LONGEST.
4638 (dwarf2_compute_name): Change variable value from long to LONGEST.
4639 (read_unsigned_leb128): Change return type, variable result and some
4640 casts from unsigned long to ULONGEST.
4641 (read_signed_leb128): Change return type, variable result and some
4642 casts from long to LONGEST.
4643 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
4644 value from long to LONGEST.
4645 (dwarf2_const_value): Change variable value from long to LONGEST.
4646 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
4647 plongest and hex_string.
4648 * symtab.h (struct general_symbol_info): Change ivalue from long to
4649 LONGEST, remove the comment.
4650 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
4651 Change SYMBOL_VALUE format strings to use plongest and hex_string.
4652
14e75d8e
JK
46532012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
4654
4655 PR symtab/7259:
4656 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
4657 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
4658 (ada_discrete_type_low_bound): Fix function comment. Use
4659 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
4660 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
4661 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4662 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
4663 Use TYPE_FIELD_ENUMVAL.
4664 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
4665 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4666 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
4667 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
4668 TYPE_CODE_ENUM.
4669 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
4670 * dwarf2read.c (process_enumeration_scope): Likewise.
4671 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
4672 field.bitpos.
4673 (class StructMainTypePrettyPrinter): Support also
4674 FIELD_LOC_KIND_ENUMVAL.
4675 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
4676 TYPE_CODE_ENUM.
4677 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4678 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
4679 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
4680 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
4681 field enumval.
4682 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
4683 accommodate enumval.
4684 (struct call_site): Adjust loc_kind to accommodate enumval.
4685 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
4686 (TYPE_FIELD_ENUMVAL): New macros.
4687 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
4688 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
4689 TYPE_CODE_ENUM.
4690 * p-typeprint.c (pascal_type_print_base): Likewise.
4691 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
4692 enumval.
4693 * python/lib/gdb/types.py (make_enum_dict): Likewise.
4694 * python/py-type.c (convert_field): New variable addrstring. Use
4695 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
4696 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
4697 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
4698 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
4699 TYPE_CODE_ENUM.
4700 * valprint.c (generic_val_print): Likewise.
4701
380bca97
DE
47022012-04-17 Doug Evans <dje@google.com>
4703
dcc07052
DE
4704 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
4705
380bca97
DE
4706 * dwarf2read.c: Whitespace fixes.
4707 (lookup_signatured_type): Tweak comment.
4708 (get_die_type_at_offset): Fix comment.
4709
ec92004f
JB
47102012-04-17 Joel Brobecker <brobecker@adacore.com>
4711
4712 * xcoffread.c (xcoff_secnum_to_sections): New function.
4713 (secnum_to_section, secnum_to_bfd_section): Reimplement
4714 using xcoff_secnum_to_sections. Rename "secnum" parameter
4715 into "n_scnum".
4716 (RECORD_MINIMAL_SYMBOL): Delete.
4717 (record_minimal_symbol): New function.
4718 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
4719 by call to record_minimal_symbol and set misc_func_recorded
4720 to 1. Set last_csect_sec to the XCOFF section index instead
4721 of GDB's section_offset index. Update calls to
4722 prim_record_minimal_symbol_and_info to pass the BFD section
4723 as well.
4724
40301fb7
JB
47252012-04-17 Joel Brobecker <brobecker@adacore.com>
4726
4727 * xcoffread.c (read_xcoff_symtab): Delete variables
4728 last_csect_val and last_csect_sec and associated code.
4729
e0088cfd
DE
47302012-04-17 Doug Evans <dje@google.com>
4731
58d5e2c3
DE
4732 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
4733 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4734 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
4735 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
4736
c27f5738
DE
4737 * cleanups.h: New file.
4738 * cleanups.c: New file.
4739 * Makefile.in (SFILES): Add cleanups.c.
4740 (HFILES_NO_SRCDIR): Add cleanups.h.
4741 (COMMON_OBS): Add cleanups.o.
4742 * defs.h (struct cleanup): Moved to cleanups.h.
4743 (do_cleanups,do_final_cleanups): Ditto.
4744 (discard_cleanups,discard_final_cleanups): Ditto
4745 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4746 (save_cleanups,save_final_cleanups): Ditto.
4747 (restore_cleanups,restore_final_cleanups): Ditto.
4748 (null_cleanup): Ditto.
4749 (make_my_cleanup,make_my_cleanup2): Ditto.
4750 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4751 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
4752 (do_cleanups,do_final_cleanups): Ditto.
4753 (discard_cleanups,discard_final_cleanups): Ditto
4754 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
4755 (save_cleanups,save_final_cleanups): Ditto.
4756 (restore_cleanups,restore_final_cleanups): Ditto.
4757 (null_cleanup): Ditto.
4758 (make_my_cleanup,make_my_cleanup2): Ditto.
4759 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
4760
e0088cfd
DE
4761 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
4762 make_my_cleanup.
4763 (make_cleanup_dyn_string_delete): Ditto.
4764 (make_cleanup_ui_file_delete): Ditto.
4765 (make_cleanup_ui_out_redirect_pop): Ditto.
4766 (make_cleanup_free_section_addr_info): Ditto.
4767 (make_cleanup_restore_integer): Ditto.
4768 (make_cleanup_unpush_target): Ditto.
4769 (make_cleanup_value_free_to_mark): Ditto.
4770 (make_cleanup_value_free): Ditto.
4771 (make_cleanup_free_so): Ditto.
4772
4dc84fd1
JK
47732012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4774
4775 New option "set debug auto-load".
4776 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
4777 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
4778 (auto_load_safe_path_vec_update)
4779 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
4780 if DEBUG_AUTO_LOAD.
4781 (file_is_auto_load_safe): New parameters debug_fmt and ....
4782 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
4783 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
4784 caller by explanatory string.
4785 (_initialize_auto_load): Register "set debug auto-load".
4786 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
4787 and ....
4788 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4789 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
4790 by explanatory string.
4791 * main.c (captured_main): Likewise.
4792 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
4793 (source_section_scripts): Likewise.
4794
bccbefd2
JK
47952012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4796
4797 New option "set auto-load safe-path".
4798 * NEWS: New commands "set auto-load safe-path"
4799 and "show auto-load safe-path".
4800 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
4801 (auto_load_safe_path, auto_load_safe_path_vec)
4802 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
4803 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
4804 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
4805 (source_gdb_script_for_objfile): New variable is_safe. Call
4806 file_is_auto_load_safe. Return if it is not.
4807 (struct loaded_script): New field loaded.
4808 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
4809 (print_script): Use LOADED indicator instead of FULL_PATH. Change
4810 output "Missing" to "No".
4811 (_initialize_auto_load): New variable cmd. Initialize
4812 auto_load_safe_path. Register "set auto-load safe-path",
4813 "show auto-load safe-path" and "add-auto-load-safe-path".
4814 * auto-load.h (maybe_add_script): Add parameter loaded.
4815 (file_is_auto_load_safe): New declaration.
4816 * config.in: Regenerate.
4817 * configure: Regenerate.
4818 * configure.ac: New parameters --with-auto-load-safe-path
4819 and --without-auto-load-safe-path.
4820 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
4821 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
4822 * main.c (captured_main): Check file_is_auto_load_safe for
4823 LOCAL_GDBINIT.
4824 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
4825 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
4826 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
4827 not.
4828
bf88dd68
JK
48292012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4830
4831 auto-load: Implementation.
4832 * NEWS: New descriptions for "info auto-load",
4833 "info auto-load gdb-scripts", "info auto-load python-scripts",
4834 "info auto-load local-gdbinit" and "info auto-load libthread-db".
4835 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
4836 and "show auto-load-scripts". New description for "set auto-load",
4837 "show auto-load", "set auto-load gdb-scripts",
4838 "show auto-load gdb-scripts", "set auto-load python-scripts",
4839 "show auto-load python-scripts", "set auto-load local-gdbinit",
4840 "show auto-load local-gdbinit", "set auto-load libthread-db" and
4841 "show auto-load libthread-db".
4842 * auto-load.c: Remove include python/python-internal.h. Add includes
4843 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
4844 cli/cli-setshow.h.
4845 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
4846 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
4847 (gdbpy_global_auto_load): Rename to ...
4848 (global_auto_load): ... here.
4849 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4850 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
4851 (script_language_gdb, source_gdb_script_for_objfile): New.
4852 (struct loaded_script): New field language.
4853 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
4854 LANGUAGE.
4855 (maybe_add_script): Add parameter language. Drop redundant
4856 entry.full_path initialization. Initialize entry.language and
4857 (*slot)->language.
4858 (auto_load_objfile_script): Change parameter suffix to language.
4859 Remove the call of maybe_add_script.
4860 Call language->source_script_for_objfile.
4861 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
4862 New.
4863 (collect_matching_scripts): Adjust it for
4864 struct collect_matching_scripts_data.
4865 (auto_load_info_scripts_pattern_nl): New variable.
4866 (info_auto_load_scripts): Rename to ...
4867 (auto_load_info_scripts): ... here, add parameter language. Adjust it
4868 for struct collect_matching_scripts_data.
4869 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
4870 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
4871 (auto_load_show_cmdlist_get, info_auto_load_cmd)
4872 (auto_load_info_cmdlist_get): New.
4873 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
4874 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
4875 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
4876 "info auto-load local-gdbinit".
4877 * auto-load.h (struct script_language): New.
4878 (gdbpy_global_auto_load): Rename to ...
4879 (global_auto_load): ... here.
4880 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
4881 (auto_load_local_gdbinit_loaded): New declarations.
4882 (maybe_add_script): New parameter language.
4883 (auto_load_objfile_script): Change parameter suffix to language.
4884 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
4885 (auto_load_info_scripts, auto_load_set_cmdlist_get)
4886 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
4887 declarations.
4888 * linux-thread-db.c: Include auto-load.h and ctype.h.
4889 (auto_load_thread_db, show_auto_load_thread_db): New.
4890 (struct thread_db_info): New field filename.
4891 (delete_thread_db_info): Call xfree for FILENAME.
4892 (try_thread_db_load): Initialize FILENAME.
4893 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
4894 if !AUTO_LOAD_THREAD_DB.
4895 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
4896 (_initialize_thread_db): Install auto_load_thread_db
4897 as "set auto-load libthread-db" and install info_auto_load_libthread_db
4898 as "info auto-load libthread-db".
4899 * main.c (captured_main): Rename gdbpy_global_auto_load to
4900 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
4901 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
4902 (print_gdb_help): Extend the help for 'local init file'.
4903 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
4904 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
4905 (auto_load_scripts): Rename to ...
4906 (auto_load_python_scripts): ... here, update the comment.
4907 (gdbpy_load_auto_script_for_objfile): New declaration.
4908 (show_auto_load_python_scripts, script_language_python)
4909 (gdbpy_load_auto_script_for_objfile): New.
4910 (source_section_scripts): Refactor the code.
4911 (load_auto_scripts_for_objfile): Rename to ...
4912 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
4913 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
4914 (info_auto_load_python_scripts): New.
4915 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
4916 Rename "set auto-load-scripts" to "set auto-load python-scripts".
4917 Register "set auto-load-scripts" as its deprecated alias. Register
4918 "info auto-load python-scripts". Register "info auto-load-scripts" as
4919 its deprecated alias.
4920 (load_auto_scripts_for_objfile): Rename to ...
4921 (gdbpy_load_auto_scripts_for_objfile): ... here.
4922 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
4923 (gdbpy_load_auto_scripts_for_objfile): ... here.
4924
e2207b9a
JK
49252012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4926
4927 auto-load: Move files.
4928 * Makefile.in (SFILES): Add auto-load.c.
4929 (HFILES_NO_SRCDIR): Add auto-load.h.
4930 (COMMON_OBS): Add auto-load.o.
4931 (distclean): Change .gdbinit for gdb-gdb.gdb.
4932 * auto-load.c: New file, with parts from python/py-auto-load.c.
4933 * auto-load.h: New file, with parts from python/python.h.
4934 * configure: Regenerate.
4935 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
4936 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
4937 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
4938 * main.c: Include auto-load.h.
4939 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
4940 command.h, observer.h and progspace.h to auto-load.c. Add include
4941 auto-load.h.
4942 (gdbpy_global_auto_load, struct auto_load_pspace_info)
4943 (struct loaded_script, auto_load_pspace_data)
4944 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
4945 (hash_loaded_script_entry, eq_loaded_script_entry)
4946 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
4947 (maybe_add_script): Move to auto-load.c.
4948 (source_section_scripts): Change maybe_add_script parameters passing,
4949 use script_not_found_warning_print.
4950 (clear_section_scripts, auto_load_objfile_script)
4951 (auto_load_new_objfile, loaded_script_ptr)
4952 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
4953 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
4954 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
4955 auto_load_new_objfile and info_auto_load_scripts initizations to
4956 auto-load.c.
4957 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
4958
e4ab2fad
JK
49592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4960
4961 Code cleanup.
4962 * charset.c (find_charset_names): Remove variables ix and elt.
4963 Use free_char_ptr_vec.
4964 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
4965 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4966 debugdir_end. New variable debugdir_len.
4967 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
4968 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
4969 declarations.
4970 * progspace.c (clear_program_space_solib_cache): Remove variables ix
4971 and elt. Use free_char_ptr_vec.
4972 * source.c (add_path): Remove variables argv, arg and argv_index.
4973 New variables dir_vec, back_to, ix and name.
4974 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
4975 make_cleanup_freeargv. Remove variable separator. Simplify the code
4976 no longer expecting DIRNAME_SEPARATOR.
4977 (openp): Remove variable p, p1 and len. New variables dir_vec,
4978 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
4979 no longer expecting DIRNAME_SEPARATOR.
4980 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
4981 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
4982 debugdir_end.
4983 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
4984 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
4985 (dirnames_to_char_ptr_vec): New functions.
4986
5ee4ed9f
JK
49872012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4988
4989 Code cleanup.
4990 * source.c (add_path): Remove always true conditional 'p == 0' and
4991 unindent its code block.
4992
f41f5e61
PA
49932012-04-17 Pedro Alves <palves@redhat.com>
4994
4995 * gdbtypes.h (FIELD_BITPOS): Rename to ...
4996 (FIELD_BITPOS_LVAL): ... this.
4997 (FIELD_BITPOS): New.
4998 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
4999 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5000 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5001 SET_FIELD_BITPOS.
5002 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5003 SET_FIELD_BITPOS.
5004 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5005 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5006 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5007 SET_FIELD_BITPOS.
5008
945b3a32
JK
50092012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5010
5011 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5012 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5013 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5014 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5015 * jv-lang.c (java_link_class_type): Likewise, once.
5016 * stabsread.c (read_enum_type): Likewise.
5017
42476b70
YQ
50182012-04-16 Yao Qi <yao@codesourcery.com>
5019
5020 * common/agent.c (agent_run_command): Add one more parameter `len'.
5021 Update callers.
5022 * common/agent.h: Update declaration.
5023 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5024 Update.
5025 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5026
8264ba82
AG
50272012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5028
5029 PR mi/13393
5030 * value.c (value_actual_type): New function.
5031 * value.h (value_actual_type): New declaration.
5032 * varobj.c (update_type_if_necessary): New function.
5033 (varobj_create): Call value_actual_type instead of
5034 value_type.
5035 (install_dynamic_child): distinct changed and type changed MI variable
5036 objects.
5037 (update_dynamic_varobj_children): Updated for install_dynamic_child
5038 change. All callers updated.
a09130f9 5039 (varobj_update): Support for MI variable object type change if
8264ba82
AG
5040 the value changed and RTTI is used to determine the type.
5041 (create_child_with_value): Call value_actual_type instead of
5042 value_type.
a09130f9 5043 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
5044 specify whether the given value should be casted to enclosing type.
5045 All callers updated.
5046
55a8c076
YQ
50472012-04-14 Yao Qi <yao@codesourcery.com>
5048
5049 Import gnulib module inttypes from git
5050 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5051 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
5052 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5053 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
5054 * aclocal.m4, config.in, configure: Regenerated.
5055 * gnulib/Makefile.am: Update.
5056 * gnulib/Makefile.in: Update.
5057 * gnulib/m4/gnulib-cache.m4: Update.
5058 * gnulib/m4/gnulib-comp.m4: Update.
5059 * gnulib/inttypes.in.h: New.
5060 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 5061 * gnulib/m4/inttypes.m4: New.
55a8c076 5062
ca7781d2
LM
50632012-04-13 Luis Machado <lgustavo@codesourcery.com>
5064
5065 * infrun.c (resume): Update PC address to the real PC after
5066 preparing to do displaced stepping.
5067
e319fa28
DE
50682012-04-12 Doug Evans <dje@google.com>
5069
5070 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5071 All callers updated.
5072
15add3f5
MK
50732012-04-12 Mark Kettenis <kettenis@gnu.org>
5074
5075 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5076
52dc124a
DE
50772012-04-12 Doug Evans <dje@google.com>
5078
0e50663e
DE
5079 * dwarf2read.c (create_all_type_units): Renamed from
5080 create_debug_types_hash_table. All callers updated.
5081
52dc124a
DE
5082 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5083 local type_sig to sig_type, type_offset to type_offset_in_tu.
5084 (hash_signatured_type): Renamed from hash_type_signature,
5085 all callers updated.
5086 (eq_signatured_type): Renamed from eq_type_signature,
5087 all callers updated.
5088 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5089 (process_enumeration_scope): Ditto.
5090 (lookup_signatured_type_at_offset): Ditto.
5091 (load_full_type_unit, read_signatured_type): Ditto.
5092
248fd3bf
YQ
50932012-04-12 Yao Qi <yao@codesourcery.com>
5094
5095 * remote.c (async_remote_interrupt): Correct function name in
5096 debug message.
5097 (async_remote_interrupt_twice): Ditto.
5098
bc3aa6c3
DE
50992012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5100
5101 * source.c (find_and_open_source): Consistently pass resulting
5102 full path through xfullpath.
5103
9e529e1d
JK
51042012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5105
5106 Provide more specific displaced-stepping memory error message.
5107 * infrun.c (displaced_step_prepare): New variable status. Call
5108 target_read_memory instead of read_memory, provide more specific
5109 error message.
5110
82e0cec1
TG
51112012-04-11 Tristan Gingold <gingold@adacore.com>
5112
5113 PR gdb/13901
5114 * darwin-nat.c (darwin_execvp): Revert previous patch.
5115
d987a266
TG
51162012-04-11 Tristan Gingold <gingold@adacore.com>
5117
5118 PR gdb/13901
5119 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5120 in case of change.
5121
016b7430
TG
51222012-04-11 Tristan Gingold <gingold@adacore.com>
5123
5124 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5125 warning.
5126
06fc020f
SCR
51272012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5128
5129 New command 'explore' which helps explore values and types in
5130 scope.
5131 * NEWS: Add an entry about the new 'explore' command.
5132 * data-directory/Makefile.in: Add gdb/command/explore.py
5133 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 5134 command using the GDB Python API.
06fc020f 5135
de0919f8 51362012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
5137
5138 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5139 extension in jump target calculation.
5140
de0919f8 51412012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
5142
5143 * mips-tdep.c (mips32_next_pc): Handle JALX.
5144
2f26ef89
YQ
51452012-04-10 Yao Qi <yao@codesourcery.com>
5146
5147 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5148
2e505b66
YQ
51492012-04-10 Yao Qi <yao@codesourcery.com>
5150
5151 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5152 and gnulib/m4/gnulib-tool.m4.
5153
0d99eb77
DE
51542012-04-10 Doug Evans <dje@google.com>
5155
5156 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5157 (load_partial_dies): Clarify comment.
5158 (find_partial_die): Support rereading type units.
5159 Clarify CU handling, if we know offset is in CU, don't search for the
5160 containing CU. Add comment regarding memory waste.
5161
9a82b8ff
L
51622012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5163
5164 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5165 i386/x32-avx and i386/x32-avx-linux.
5166 (i386/x32-expedite): New.
5167 (i386/x32-linux-expedite): Likewise.
5168 (i386/x32-avx-expedite): Likewise.
5169 (i386/x32-avx-linux-expedite): Likewise.
5170 ($(outdir)/i386/x32.dat): Likewise.
5171 ($(outdir)/i386/x32-linux.dat): Likewise.
5172 ($(outdir)/i386/x32-avx.dat): Likewise.
5173 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5174
5175 * features/i386/x32-avx-linux.xml: New file.
5176 * features/i386/x32-avx.xml: Likewise.
5177 * features/i386/x32-core.xml: Likewise.
5178 * features/i386/x32-linux.xml: Likewise.
5179 * features/i386/x32.xml: Likewise.
5180
5181 * features/i386/x32-avx-linux.c: New. Generated.
5182 * features/i386/x32-avx.c: Likewise.
5183 * features/i386/x32-linux.c: Likewise.
5184 * features/i386/x32.c: Likewise.
5185 * regformats/i386/x32-avx-linux.dat: Likewise.
5186 * regformats/i386/x32-avx.dat: Likewise.
5187 * regformats/i386/x32-linux.dat: Likewise.
5188 * regformats/i386/x32.dat: Likewise.
5189
ee41036f
TG
51902012-04-10 Tristan Gingold <gingold@adacore.com>
5191
5192 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
5193 code to kill the inferior.
5194
a7aa5b8a
MK
51952012-04-09 Mark Kettenis <kettenis@gnu.org>
5196
5197 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5198 defines.
5199 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5200 defines.
a09130f9 5201 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
5202 (yyvsp): New defines.
5203 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5204 defines.
5205 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5206 defines.
5207 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5208 defines.
5209 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5210 defines.
5211 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
5212 defines.
5213
fb57d452
MK
52142012-04-09 Mark Kettenis <kettenis@gnu.org>
5215
a09130f9 5216 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
5217 (sparc64_store_arguments): Fix coding style.
5218
cdc7b32f
MK
52192012-04-07 Mark Kettenis <kettenis@gnu.org>
5220
5221 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
5222 complex floats, adjust some related comments and tighten a related
5223 assertion.
5224 (sparc64_extract_return_value): Handle complex floats.
5225
7adf1e79
DE
52262012-04-07 Doug Evans <dje@google.com>
5227
5228 * dwarf2read.c (load_partial_dies): Change condition to assert.
5229
50f1ae7b
DE
52302012-04-06 Doug Evans <dje@google.com>
5231
5232 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
5233 "mov %rsp,%rbp".
5234
55fa75c3
KB
52352012-04-05 Kevin Buettner <kevinb@redhat.com>
5236
5237 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
5238 fencepost error.
5239 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
5240 (v850_gdbarch_init): Set `num_regs' as appropriate for the
5241 architecture.
5242
40e084e1
KS
52432012-04-05 Keith Seitz <keiths@redhat.com>
5244
5245 * linespec.c (decode_compound): Remove.
5246 (enum offset_relative_sign): New enum.
5247 (struct line_offset): New struct.
5248 (struct linespec): New struct.
5249 (struct linespec_state): Move file_symtabs,
5250 user_filename, and user_function into struct linespec.
5251 Make result an anonymous struct holding vectors of
5252 symbolp and minsym_and_objfile_d.
5253 Add language member.
5254 (enum ls_token_type): New enum.
5255 (linespec_keywords): New array.
5256 (struct ls_token): New struct.
5257 (struct ls_parser): New struct.
5258 (linespec_lexer_lex_number): New function.
5259 (linespec_lexer_lex_keyword): New function.
5260 (is_ada_operator): New function.
5261 (skip_quote_char): New function.
5262 (copy_token_string): New function.
5263 (is_closing_quote_enclosed): New function.
5264 (find_parameter_list_end): New function.
5265 (linespec_lexer_lex_string): New function.
5266 (linespec_lexer_lex_one): New function.
5267 (linespec_lexer_consume_token): New function.
5268 (linespec_lexer_peek_token): New function.
5269 (cplusplus_error): Remove unused function.
5270 (find_methods): Update comment.
5271 (find_toplevel_char): Return const.
5272 (is_objc_method_format): Remove unused function.
5273 (find_toplevel_string): New function.
5274 (is_linespec_boundary): Remove.
5275 (symbol_not_found_error): New function.
5276 (find_method_overload_end): Remove function.
5277 (unexpected_linespec_error): New function.
5278 (keep_name_info): Remove.
5279 (linespec_parse_line_offset): New function.
5280 (linespec_parse_basic): New function.
5281 (canonicalize_linespec): New function.
5282 (decode_line_internal): Remove.
5283 (create_sals_line_offset): New function adapted from
5284 decode_all_digits.
5285 (convert_linespec_to_sals): New function.
5286 (parse_linespec): New function.
5287 (linespec_parser_new): New function.
5288 (linespec_state_destructor): Change parameter type to
5289 struct linespec_state *.
5290 Add language parameter.
5291 Remove freeing of moved members.
5292 (linespec_parser_delete): New function.
5293 (decode_line_full): Use parse_linespec and linespec_parser_new.
5294 (decode_line_1): Likewise.
5295 (decode_indirect): Rename to ...
5296 (linespec_expression_to_pc): ... this and rewrite
5297 to simply find CORE_ADDR, storing this result for later
5298 conversion to SALs.
5299 (locate_first_half): Remove.
5300 (deocde_objc): Add parameter LS.
5301 Initialize new struct collect_info members.
5302 Handle minimal symbols, too.
5303 (decode_compound): Delete.
5304 (lookup_prefix_sym): Rewrite.
5305 (compare_msymbols): New function.
5306 (find_method): Rewrite.
5307 Do not call cplusplus_error.
5308 (symtabs_from_filename): Rewrite.
5309 (collect_function_symbols): Delete.
5310 (find_function_symbols): Rewrite without ARGPTR-style
5311 processing.
5312 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
5313 (decode_dollar): Adapted and renamed to ...
5314 (linespec_parse_variable): ... this.
5315 (find_linespec_symbols): New function.
5316 (decode_label): Adapted and renamed to ...
5317 (find_label_symbols): ... this.
5318 (decode_digits_list_mode): Add and use LS argument.
5319 (decode_digits_ordinary): Likewise.
5320 (collect_symbols): Do not collect SALs, just symbols and msymbols.
5321 If in list mode, allow any symbol class. Otherwise, only
5322 permit LOC_BLOCK symbols.
5323 (minsym_found): Update comments.
5324 (search_minsyms_for_name): Do not convert the matching symbol
5325 into a SAL. Simply push the symbol and objfile into the
5326 result vector.
5327 (decode_variable): Delete. Contents adapted into
5328 find_linespec_symbols.
5329
5330 * cp-support.c (SKIP_SPACE): Remove.
5331 (operator_tokens): Remove unused global.
5332 (cp_validate_operator): Remove.
5333 * cp-support.h (cp_validate_operator): Remove declaration.
5334
a72c8f6a
JK
53352012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5336
5337 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
5338 for TYPE_VPTR_FIELDNO.
5339 * valprint.c (valprint_check_validity): Make it global, move the
5340 function comment ...
5341 * value.h (valprint_check_validity): ... to this new declaration.
5342
cf9bb588
TG
53432012-04-02 Tristan Gingold <gingold@adacore.com>
5344
5345 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
5346 the STATE32 api for i386 state.
5347 (i386_darwin_store_inferior_registers): Likewise.
5348
17092398
TG
53492012-04-02 Tristan Gingold <gingold@adacore.com>
5350
5351 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
5352 SS offset.
5353 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5354 format_string.
5355
ece0061f
TG
53562012-04-02 Tristan Gingold <gingold@adacore.com>
5357
5358 PR gdb/13901
d987a266 5359 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 5360
cf65ecd3
JK
53612012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5362
5363 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
5364
9bc3523d
TT
53652012-03-30 Tom Tromey <tromey@redhat.com>
5366
5367 * python/python.c (gdbpy_decode_line): Move cleanup creation out
5368 of TRY_CATCH. Fix error handling.
5369 * python/py-value.c (convert_value_from_python): Move 'old'
5370 declaration to innermost scope.
5371
b1ed564a
JB
53722012-03-29 Joel Brobecker <brobecker@adacore.com>
5373 Andrey Smirnov <andrew.smirnov@gmail.com>
5374
5375 -Wshadow warning fix.
5376 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
5377 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
5378 Adjust code accordingly.
5379
cb8e9b97
JB
53802012-03-29 Joel Brobecker <brobecker@adacore.com>
5381
5382 * ada-lang.c (symbol_completion_add): Rename parameter
5383 "encoded" into "encoded_p". Ajust code and documentation
5384 accordingly.
5385
c0af1706
JB
53862012-03-29 Joel Brobecker <brobecker@adacore.com>
5387 Andrey Smirnov <andrew.smirnov@gmail.com>
5388
5389 -Wshadow warning fix.
5390 * ada-lang.c (symbol_completion_add): Rename parameter
5391 "wild_match" into wild_match_p. Update code and documentation
5392 accordingly.
5393
6ea35997
JB
53942012-03-29 Joel Brobecker <brobecker@adacore.com>
5395
5396 * ada-lang.c (symbol_completion_match): Rename parameter
5397 "encoded" into "encoded_p". Ajust code and documentation
5398 accordingly.
5399
e701b3c0
JB
54002012-03-29 Joel Brobecker <brobecker@adacore.com>
5401 Andrey Smirnov <andrew.smirnov@gmail.com>
5402
5403 -Wshadow warning fix.
5404 * ada-lang.c (symbol_completion_match): Rename parameter
5405 "wild_match" into "wild_match_p". Adjust code and function
5406 documentation accordingly.
5407
5e2336be
JB
54082012-03-29 Joel Brobecker <brobecker@adacore.com>
5409 Andrey Smirnov <andrew.smirnov@gmail.com>
5410
5411 -Wshadow warning fix.
5412 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
5413 "symbol_info" into "info". Adjust code accordingly.
5414 (ada_lookup_symbol): Likewise.
5415
9f88c959
JB
54162012-03-29 Joel Brobecker <brobecker@adacore.com>
5417
5418 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
5419 of this function's documentation.
5420
82ccd55e
JB
54212012-03-29 Joel Brobecker <brobecker@adacore.com>
5422 Andrey Smirnov <andrew.smirnov@gmail.com>
5423
5424 -Wshadow warning fix.
5425 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
5426 variable into "wild_match_p". Adjust code accordingly.
5427
d0a8ab18
JB
54282012-03-29 Joel Brobecker <brobecker@adacore.com>
5429 Andrey Smirnov <andrew.smirnov@gmail.com>
5430
5431 -Wshadow warning fix.
5432 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
5433 parameter into "wild_match_p". Adjust code accordingly.
5434 Document this parameter in the function description.
5435
48b78332
JB
54362012-03-29 Joel Brobecker <brobecker@adacore.com>
5437 Andrey Smirnov <andrew.smirnov@gmail.com>
5438
5439 -Wshadow warning fix.
5440 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
5441 "wild_match" parameter to "wild_match_p" (-Wshadow).
5442
2e6e0353
JB
54432012-03-29 Joel Brobecker <brobecker@adacore.com>
5444
5445 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
5446 in function documentation.
5447
dc4024cd
JB
54482012-03-29 Joel Brobecker <brobecker@adacore.com>
5449 Andrey Smirnov <andrew.smirnov@gmail.com>
5450
5451 -Wshadow warning fix.
5452 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
5453 variable into wild_match_p. Adjust code accordingly.
5454
6c88661c
JB
54552012-03-29 Joel Brobecker <brobecker@adacore.com>
5456 Andrey Smirnov <andrew.smirnov@gmail.com>
5457
5458 * ada-valprint.c (ada_val_print_1): Move the code handling
5459 TYPE_CODE_ENUM inside its own lexical block. Declare
5460 variables len and val there, instead of in the function's
5461 top level block. Avoid declaring deref_val again in a way
5462 that shadows another variable of the same name declared
5463 in one of the up-level blocks. Just re-use the up-level
5464 variable instead.
5465
4e5c77fe
JB
54662012-03-29 Joel Brobecker <brobecker@adacore.com>
5467
5468 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
5469 Replace block_found argument by symbol_info. Adjust
5470 implementation accordingly. Add function documentation.
5471 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
5472 Fix documentation.
5473 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
5474 * ada-exp.y (write_object_renaming): Adjust to new
5475 ada_lookup_encoded_symbol API.
5476
1c0ac8c7
JB
54772012-03-29 Joel Brobecker <brobecker@adacore.com>
5478
5479 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
5480 documentation.
5481
2aaed979
KB
54822012-03-28 Rathish C <rathish.c@kpitcummins.com>
5483
5484 * v850-tdep.c: Add the enum values for mpu and fpu registers.
5485 (v850_register_name): Add the mpu and fpu register names.
5486 (v850e_register_name): Add the mpu and fpu register names.
5487 (v850e2_register_name): New function.
a09130f9 5488 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
5489 bfd_mach_v850e2v3.
5490
927fbba6
JB
54912012-03-28 Joel Brobecker <brobecker@adacore.com>
5492
5493 * NEWS: Add entry for Ada varobj support.
5494
d32cafc7
JB
54952012-03-28 Joel Brobecker <brobecker@adacore.com>
5496
5497 * varobj.c (default_value_is_changeable_p): New function,
5498 extracted from varobj_value_is_changeable_p. Add declaration.
5499 (ada_value_is_changeable_p): New function, extracted from
5500 varobj_value_is_changeable_p. Add declaration.
5501 (struct language_specific): New field "value_is_changeable_p".
5502 (languages): Add entries for new field.
5503 (varobj_create): Set language before calling install_new_value.
5504 (varobj_value_is_changeable_p): Reimplement to call the varobj's
5505 "value_is_changeable_p" language callback.
5506
181875a4
JB
55072012-03-28 Joel Brobecker <brobecker@adacore.com>
5508
5509 * ada-varobj.h, ada-varobj.c: New files.
5510 * Makefile.in (SFILES): Add ada-varobj.c.
5511 (HFILES_NO_SRCDIR): Add ada-varobj.h.
5512 (COMMON_OBS): Add ada-varobj.o.
5513
7a290c40
JB
55142012-03-28 Joel Brobecker <brobecker@adacore.com>
5515
5516 * varobj.c (ada_value_has_mutated): Add declaration. New function.
5517 (struct language_specific): New field "value_has_mutated".
5518 (languages): Set field "value_has_mutated" in each entry of array.
5519 (varobj_value_has_mutated): New function.
5520 (varobj_udpdate): Add handling of type mutation.
5521 (value_of_root): Add handling of type mutation.
5522 (ada_value_has_mutated): New function.
5523
ca9b8b9c
PA
55242012-03-28 Pedro Alves <palves@redhat.com>
5525
5526 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
5527 Always supply $fr0 as 0.0 and $fr1 as 1.0.
5528
cc0265cd
TT
55292012-03-28 Tom Tromey <tromey@redhat.com>
5530
5531 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
5532 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
5533 before returning.
5534
3ad2ec6f
TT
55352012-03-28 Tom Tromey <tromey@redhat.com>
5536
5537 * .dir-locals.el: New file.
5538
4a6510ba
PA
55392012-03-28 Pedro Alves <palves@redhat.com>
5540
5541 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
5542
5a75128f
JB
55432012-03-28 Joel Brobecker <brobecker@adacore.com>
5544
5545 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
5546 handling for r0.
5547
f99d8bf4
PA
55482012-03-27 Pedro Alves <palves@redhat.com>
5549
5550 Eliminate struct ui_stream.
5551
5552 * ui-out.h (struct ui_stream): Delete.
5553 (ui_out_field_stream): Adjust prototype.
5554 (ui_out_stream_new, ui_out_stream_delete)
5555 (make_cleanup_ui_out_stream_delete): Delete declarations.
5556 * ui-out.c (ui_out_field_stream): Change prototype to take a
5557 ui_file instead of a ui_stream. Adjust.
5558 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
5559 (make_cleanup_ui_out_stream_delete): Delete.
5560 * breakpoint.c (print_breakpoint_location)
5561 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
5562 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5563 * disasm.c (dump_insns): Ditto.
5564 (do_mixed_source_and_assembly, do_assembly_only): Adjust
5565 prototype.
5566 (gdb_disassembly): Use ui_file/mem_fileopen instead of
5567 ui_stream/ui_out_stream_new.
5568 * infcmd.c (print_return_value): Ditto.
5569 * osdata.c (info_osdata_command): Don't allocate a local
5570 ui_stream.
5571 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
5572 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
5573 * tracepoint.c (print_one_static_tracepoint_marker): Don't
5574 allocate a local ui_stream.
5575 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
5576 instead of ui_stream/ui_out_stream_new.
5577 (list_args_or_locals): Don't allocate a local ui_stream.
5578 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
5579 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
5580 ui_stream/ui_out_stream_new.
5581 * cli/cli-setshow.c (do_setshow_command): Ditto.
5582
6350a066 55832012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 5584
6350a066
PA
5585 * arm-linux-tdep.c (arm_linux_init_abi): Call
5586 set_gdbarch_process_record. Initialize `arm_swi_record' field.
5587 * arm-tdep.c (arm_process_record): New function.
5588 (deallocate_reg_mem): New function.
5589 (decode_insn): New function.
5590 (thumb_record_branch): New function.
5591 (thumb_record_ldm_stm_swi(): New function.
5592 (thumb_record_misc): New function.
5593 (thumb_record_ld_st_stack): New function.
5594 (thumb_record_ld_st_imm_offset): New function.
5595 (thumb_record_ld_st_reg_offset(): New function.
5596 (thumb_record_add_sub_cmp_mov): New function.
5597 (thumb_record_shift_add_sub): New function.
5598 (arm_record_coproc_data_proc): New function.
5599 (arm_record_coproc): New function.
5600 (arm_record_b_bl): New function.
5601 (arm_record_ld_st_multiple): New function.
5602 (arm_record_ld_st_reg_offset): New function.
5603 (arm_record_ld_st_imm_offset): New function.
5604 (arm_record_data_proc_imm): New function.
5605 (arm_record_data_proc_misc_ld_str): New function.
5606 (arm_record_extension_space): New function.
5607 (arm_record_strx): New function.
5608 (sbo_sbz): New function.
5609 (struct insn_decode_record): New structure for arm insn record.
5610 (REG_ALLOC): New macro for reg allocations.
5611 (MEM_ALLOC): New macro for memory allocations.
5612 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 5613
89e028e2
AS
56142012-03-27 Andreas Schwab <schwab@linux-m68k.org>
5615
5616 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
5617 (store_register): Likewise.
5618
6350a066 56192012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 5620
6350a066 5621 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 5622
5b43fab2
JK
56232012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
5624
5625 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
5626 Describe also the option "auto".
5627
b5453b95
RH
56282012-03-22 Richard Henderson <rth@redhat.com>
5629
5630 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
5631 * sparc-nat.c (sparc_xfer_wcookie): Make static.
5632
227ee7fc
RH
56332012-03-22 Richard Henderson <rth@redhat.com>
5634
5635 * jit.c (jit_read_code_entry): Compute alignment and offset of
5636 int64_t member before computing entry_size.
5637
7b282c5a
SCR
56382012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5639
5640 Python scripting: Add new method Value.referenced_value to
5641 gdb.Value which can dereference pointer as well as reference
5642 values.
5643 * NEWS: Add entry under 'Python scripting' about the new method
5644 Value.referenced_value on gdb.Value objects.
5645 * python/py-value.c (valpy_referenced_value): New function
5646 defining a new method on gdb.Value objects which can dereference
5647 pointer and reference values.
5648
0c83539f
SCR
56492012-03-22 Siva Chandra Reddy <sivachandra@google.com>
5650
5651 * MAINTAINERS (Write After Approval): Add myself to the list.
5652
7ccffd7c
KB
56532012-03-21 Kevin Buettner <kevinb@redhat.com>
5654
5655 * symtab.c (skip_prologue_sal): Change test to check for "main()"
5656 in addition to "main".
5657
bd0b9f9e
JB
56582012-03-21 Joel Brobecker <brobecker@adacore.com>
5659
5660 * expression.h (op_name): Add declaration.
5661 * expprint.c (op_name): Remove declaration. Make non-static.
5662 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
5663
a5362b9a
TS
56642012-03-21 Thomas Schwinge <thomas@codesourcery.com>
5665
5666 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
5667 of struct siginfo.
5668 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
5669 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5670 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
5671 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
5672 (linux_nat_get_siginfo): Likewise.
5673 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
5674 (linux_nat_get_siginfo): Likewise.
5675 * linux-tdep.c (linux_get_siginfo_type): Likewise.
5676 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
5677 * procfs.c (gdb_siginfo_t): Likewise.
5678
adcadaab
MF
56792012-03-21 Mike Frysinger <vapier@gentoo.org>
5680
5681 * .gitignore: Ignore more files.
5682
e278ad5b
PA
56832012-03-20 Pedro Alves <palves@redhat.com>
5684
5685 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
5686 returns.
5687
741e63d7
YQ
56882012-03-20 Yao Qi <yao@codesourcery.com>
5689
5690 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
5691 comment.
5692
b64f50a1
JK
56932012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5694
5695 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
5696 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
5697 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
5698 sect_offset.
5699 * dwarf2expr.h (cu_offset, sect_offset): New types.
5700 (struct dwarf_expr_context_funcs) <dwarf_call>
5701 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
5702 sect_offset.
5703 (struct dwarf_expr_context) <len>: Improve the comment.
5704 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
5705 cu_offset and sect_offset.
5706 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
5707 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
5708 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
5709 * dwarf2loc.h: Include dwarf2expr.h.
5710 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
5711 and sect_offset.
5712 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
5713 Improve the comment.
5714 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
5715 (struct signatured_type, struct line_header, struct partial_die_info)
5716 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
5717 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
5718 (get_die_type_at_offset, create_cus_from_index)
5719 (create_signatured_type_table_from_index, dw2_get_file_names)
5720 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
5721 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
5722 (create_debug_types_hash_table, process_psymtab_comp_unit)
5723 (load_partial_comp_unit, create_all_comp_units)
5724 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
5725 (load_full_comp_unit, dwarf2_physname, read_import_statement)
5726 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
5727 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
5728 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
5729 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
5730 (find_partial_die, read_attribute_value, lookup_die_type)
5731 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
5732 (is_ref_attr): New function comment.
5733 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
5734 Use cu_offset and sect_offset.
5735 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
5736 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
5737 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
5738 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
5739 (offset_and_type_hash, offset_and_type_eq, set_die_type)
5740 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
5741 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
5742 sect_offset.
5743
e97a38f7
JK
57442012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5745
5746 Code cleanup.
5747 * python/py-auto-load.c (source_section_scripts): New variable back_to.
5748 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
5749 with xfree.
5750 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
5751
8320cc4f
JK
57522012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5753
5754 * NEWS: Describe new options --init-command=FILE, -ix and
5755 --init-eval-command=COMMAND, -iex.
5756 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
5757 CMDARG_INIT_COMMAND.
5758 (captured_main): New enum items OPT_IX and OPT_IEX. Add
5759 "init-command", "init-eval-command", "ix" and "iex" to the variable
5760 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
5761 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
5762 (print_gdb_help): Describe --init-command=FILE, -ix and
5763 --init-eval-command=COMMAND, -iex.
5764
26743505
JK
57652012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
5766
5767 Code cleanup.
5768 * main.c (struct cmdarg): Move it here from main. Add more comments.
5769 (cmdarg_s, VEC (cmdarg_s)): New.
5770 (main): Move struct cmdarg from here. New variables cmdarg_vec and
5771 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
5772 Install cleanup for cmdarg_vec. Update filling for options 'x' and
5773 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
5774 of CMDARG.
5775
5ff5c7b4
TT
57762012-03-19 Tom Tromey <tromey@redhat.com>
5777
5778 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
5779
ab260dad
JK
57802012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
5781
5782 PR symtab/13777
5783 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
5784 GCC >=4.5.
5785
c366c1f0
TT
57862012-03-16 Chris January <chris.january@allinea.com>
5787
5788 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
5789 of clear.
5790
e16edb45
TT
57912012-03-16 Chris January <chris.january@allinea.com>
5792
5793 * source.c (add_path): Use memmove instead of strcpy because the
5794 strings overlap.
5795
53ba8333
JB
57962012-03-16 Joel Brobecker <brobecker@adacore.com>
5797
5798 * value.h (set_value_parent): Add declaration.
5799 * value.c (set_value_parent): New function.
5800 (value_address): If VALUE->PARENT is not NULL, then use it as
5801 the base address instead of VALUE->LOCATION.address.
5802 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
5803 the same as OBJ's address. Adjust V's offset accordingly.
5804 Set V's parent.
5805
481860b3
GB
58062012-03-16 Gary Benson <gbenson@redhat.com>
5807
5808 PR breakpoints/10738
5809 * dwarf2read.c (use_deprecated_index_sections): New global.
5810 (struct partial_die_info): New member may_be_inlined.
5811 (read_partial_die): Set may_be_inlined where appropriate.
5812 (add_partial_subprogram): Add partial symbols for partial
5813 DIEs that may be inlined.
5814 (new_symbol_full): Add inlined subroutines to the current
5815 scope.
5816 (write_psymtabs_to_index): Bump version number.
5817 (dwarf2_read_index): Read only version 6 indices unless
5818 use_deprecated_index_sections is set.
5819 * linespec.c (symbol_and_data_callback): New structure.
5820 (iterate_inline_only): New function.
5821 (iterate_over_all_matching_symtabs): New argument
5822 "include_inline". If nonzero, also call the callback for
5823 symbols representing inlined subroutines.
5824 (lookup_prefix_sym): Pass extra argument to the above.
5825 (find_function_symbols): Likewise.
5826 (add_matching_symbols_to_info): Likewise.
5827 * NEWS: Mention that GDB can now set breakpoints on inlined
5828 functions.
5829
d0e7e15a
PM
58302012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5831
5832 * p-typeprint.c (pascal_type_print_method_args):
5833 Fix display of parameter of methods.
5834
3d354654
PM
58352012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
5836
5837 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
5838 Add missing prototype.
5839
cafe75b0
JK
58402012-03-16 Yao Qi <yao@codesourcery.com>
5841 Jan Kratochvil <jan.kratochvil@redhat.com>
5842
5843 Fix false compilation warning.
5844 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
5845
25f8c692
JL
58462012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
5847 Pedro Alves <pedro@codesourcery.com>
5848
5849 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
5850 (arm_register_g_packet_guesses): New function.
5851 (arm_gdbarch_init): Don't force a target description with
5852 registers when the executable is detected as M-profile. Instead
5853 set gdbarch->tdep->is_m. Register `g' packet guesses.
5854 (_initialize_arm_tdep): Initialize the new target description.
5855 * features/arm-with-m-fpa-layout.xml: New description.
5856 * features/arm-with-m-fpa-layout.c: New, generated.
5857
35c63cd8
JB
58582012-03-15 Joel Brobecker <brobecker@adacore.com>
5859
5860 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
5861 Update function description.
5862 (insert_bp_location): Do not wipe bl->target_info out.
5863 * mem-break.c: #include "gdb_string.h".
5864 (default_memory_insert_breakpoint): Do not call target_read_memory
5865 with a pointer to the breakpoint's shadow_contents buffer. Use
5866 a local buffer instead.
5867 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
5868
57651221
TT
58692012-03-15 Tom Tromey <tromey@redhat.com>
5870
5871 * NEWS: Mention "info vtbl", not "info vtable".
5872 * cp-support.c (info_vtbl_command): Fix comment.
5873 (_initialize_cp_support): Fix text.
5874
410528f0
TT
58752012-03-15 Tom Tromey <tromey@redhat.com>
5876
5877 * cp-valprint.c (cp_print_value_fields): Use
5878 print_function_pointer_address for vtable slot.
5879
c4aeac85
TT
58802012-03-15 Tom Tromey <tromey@redhat.com>
5881
5882 * gnu-v3-abi.c (struct value_and_voffset): New.
5883 (hash_value_and_voffset, eq_value_and_voffset)
5884 (compare_value_and_voffset, compute_vtable_size)
5885 (print_one_vtable, gnuv3_print_vtable): New functions.
5886 (init_gnuv3_ops): Initialize 'print_vtable' field.
5887 * cp-support.c (info_vtbl_command): New function.
5888 (_initialize_cp_support): Add "info vtbl".
5889 * cp-abi.h (cplus_print_vtable): Declare.
5890 (struct cp_abi_ops) <print_vtable>: New field.
5891 * cp-abi.c (cplus_print_vtable): New function.
5892 * NEWS: Update.
5893
95cbceff
TT
58942012-03-15 Tom Tromey <tromey@redhat.com>
5895
5896 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
5897 iterate_over_symbols.
5898
589b4a32
DE
58992012-03-14 Doug Evans <dje@google.com>
5900
5901 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
5902 DW_OP_GNU_parameter_ref.
5903
e837f12a
JK
59042012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5905
5906 Fix double prompt of 'interpreter-exec mi'.
5907 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
5908 (mi_interpreter_resume): use it.
5909 (mi_execute_command_input_handler): New function.
5910 * mi/mi-main.c (mi_execute_command): Move prompt printing to
5911 mi_execute_command_input_handler.
5912
ff1e4526 59132012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
5914
5915 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
5916 prototype.
5917 (darwin_debug_port_info): Make static.
5918 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
5919 * machoread.c (_initialize_machoread): Add prototype.
5920 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
5921 (i386_darwin_set_control, i386_darwin_get_control)
5922 i386_darwin_dr_set_addr, i386_darwin_get_addr)
5923 i386_darwin_get_status, i386_darwin_get_control):
5924 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
5925
d8a5d6ee
JB
59262012-03-13 Joel Brobecker <brobecker@adacore.com>
5927
5928 * ax-gdb.c (gen_usual_unary): Remove special handling of
5929 enum and bool types.
5930
af381b8c
JB
59312012-03-13 Joel Brobecker <brobecker@adacore.com>
5932
5933 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
5934
786c562f
JB
59352012-03-13 Joel Brobecker <brobecker@adacore.com>
5936
5937 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
5938
e3ebf1bb
JB
59392012-03-13 Chris January <chris.january@allinea.com>
5940
5941 * aix-thread.c (fill_sprs): Store the floating point registers
5942 at the correct offsets into vals.
5943
c5b7e1cb
DE
59442012-03-13 Doug Evans <dje@google.com>
5945
16899756
DE
5946 * NEWS: Mention symbol-reloading has been deleted.
5947 * symfile.c (symbol_reloading): Delete.
5948 (show_symbol_reloading): Delete.
5949 (_initialize_symfile): Delete set/show symbol-reloading.
5950
c5b7e1cb
DE
5951 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
5952 read_in_chain until we have successfully read it in.
5953 (load_full_comp_unit): Ditto.
5954 (read_signatured_type): Add comment.
5955
46cb6474
JB
59562012-03-13 Chris January <chris.january@allinea.com>
5957
5958 * stabsread.c (fix_common_block): Change type of valu argument
5959 to CORE_ADDR.
5960
76219d77
JB
59612012-03-13 Chris January <chris.january@allinea.com>
5962
5963 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
5964 instruction.
5965
87b0bb13
JK
59662012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5967
5968 * common/linux-procfs.c (linux_proc_get_int): New, from
5969 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
5970 field.
5971 (linux_proc_get_tgid): Only call linux_proc_get_int.
5972 (linux_proc_get_tracerpid): New.
5973 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
5974 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
5975 linux_proc_pid_has_state.
5976 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
5977 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
5978 (linux_ptrace_attach_warnings): New.
5979 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
5980 New declaration.
5981 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
5982 (linux_nat_attach): New variables ex, buffer, message and message_s.
5983 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
5984
5f572dec
JK
59852012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5986
5987 * Makefile.in (linux-ptrace.o): New.
5988 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
5989 from linux-nat.c.
5990 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
5991 * common/linux-ptrace.c: New file.
5992 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
5993 * config/arm/linux.mh: Likewise.
5994 * config/i386/linux.mh: Likewise.
5995 * config/i386/linux64.mh: Likewise.
5996 * config/ia64/linux.mh: Likewise.
5997 * config/m32r/linux.mh: Likewise.
5998 * config/m68k/linux.mh: Likewise.
5999 * config/mips/linux.mh: Likewise.
6000 * config/pa/linux.mh: Likewise.
6001 * config/powerpc/linux.mh: Likewise.
6002 * config/powerpc/ppc64-linux.mh: Likewise.
6003 * config/powerpc/spu-linux.mh: Likewise.
6004 * config/s390/s390.mh: Likewise.
6005 * config/sparc/linux.mh: Likewise.
6006 * config/sparc/linux64.mh: Likewise.
6007 * config/xtensa/linux.mh: Likewise.
6008 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6009 common/linux-procfs.c.
6010 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6011
44f238bb
PA
60122012-03-13 Hui Zhu <teawater@gmail.com>
6013 Pedro Alves <palves@redhat.com>
6014
6015 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6016 CREATE_BREAKPOINT_FLAGS_INSERTED.
6017 (create_breakpoint_sal, create_breakpoints_sal)
6018 (base_breakpoint_create_breakpoints_sal)
6019 (tracepoint_create_breakpoints_sal)
6020 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6021 down.
6022 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6023 (ftrace_command, strace_command): Adjust.
6024 (create_tracepoint_from_upload): Pass
6025 CREATE_BREAKPOINT_FLAGS_INSERTED.
6026 * breakpoint.h (enum breakpoint_create_flags): New.
6027 (create_breakpoint): New flags parameter.
6028 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6029 * python/py-breakpoint.c (bppy_init): Adjust.
6030 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6031 * spu-tdep.c (spu_catch_start): Adjust.
6032
1e51243a
PA
60332012-03-13 Pedro Alves <palves@redhat.com>
6034 Hui Zhu <teawater@gmail.com>
6035 Yao Qi <yao@codesourcery.com>
6036
6037 * remote.c (struct remote_state): New field `starting_up'.
6038 (remote_start_remote): Set and clear it.
6039 (remote_can_download_tracepoint): If starting up, return false.
6040
fa3064dd
YQ
60412012-03-13 Yao Qi <yao@codesourcery.com>
6042
6043 * inferior.h (struct inferior): Remove fields any_syscall_count,
6044 syscalls_counts and total_syscalls_count. Move them to new
6045 struct catch_syscall_inferior_data in breakpoint.c.
6046 * breakpoint.c: Call DEF_VEC_I(int).
6047 (struct catch_syscall_inferior_data): New.
6048 (get_catch_syscall_inferior_data): New.
6049 (catch_syscall_inferior_data_cleanup): New.
6050 (insert_catch_syscall): Update to access data in
6051 struct catch_syscall_inferior_data.
6052 (insert_catch_syscall): Likewise.
6053 (remove_catch_syscall): Likewise.
6054 (remove_catch_syscall): Likewise.
6055 (is_syscall_catchpoint_enabled): Likewise.
6056 (add_catch_command): Likewise.
6057 (_initialize_breakpoint): Register cleanup.
6058 * breakpoint.h: Removed DEF_VEC_I(int).
6059 * dwarf2loc.c: Call DEF_VEC_I(int).
6060 * mi/mi-main.c: Likewise.
6061
460fac3c
MK
60622012-03-12 Mark Kettenis <kettenis@gnu.org>
6063
6064 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6065
e1aca11e
JB
60662012-03-12 Chris January <chris.january@allinea.com>
6067
6068 * aix-thread.c (_initialize_aix_thread): Add prototype.
6069 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6070 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6071
649c7061
JB
60722012-03-12 Joel Brobecker <brobecker@adacore.com>
6073
6074 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6075 include of "amd64-nat.h".
6076
0b49e518
TT
60772012-03-12 Tom Tromey <tromey@redhat.com>
6078
6079 * buildsym.c (record_pending_block): Now static.
6080 * buildsym.h: (record_pending_block): Remove.
6081
fd24fa94
AT
60822012-03-12 Andreas Tobler <andreast@fgznet.ch>
6083
6084 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6085
ba919b58
TT
60862012-03-09 Tom Tromey <tromey@redhat.com>
6087
6088 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6089 producer_is_gxx_lt_4_6>: New fields.
6090 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6091
a48e046c
TT
60922012-03-09 Tom Tromey <tromey@redhat.com>
6093
6094 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6095
6f5e9362
JB
60962012-03-08 Joel Brobecker <brobecker@adacore.com>
6097
6098 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6099 prototype.
6100
8d037db9
JB
61012012-03-08 Joel Brobecker <brobecker@adacore.com>
6102
6103 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6104
4e841acf
JK
61052012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6106
6107 Fix -Wmissing-prototypes build.
6108 * arm-linux-nat.c (get_thread_id): Make it static.
6109 * xtensa-linux-nat.c (get_thread_id): Likewise.
6110
c6030312
JB
61112012-03-08 Joel Brobecker <brobecker@adacore.com>
6112
6113 * server.c (process_point_options): If a conditional expression
6114 is found, only print a message if remote_debug is nonzero.
6115
52323be9
LM
61162012-03-08 Luis Machado <lgustavo@codesourcery.com>
6117
6118 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6119 of internal error for unknown/unsupported types.
6120
7fe25d9b
JK
61212012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6122
6123 Fix CU relative vs. absolute DIE offsets.
6124 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6125 offset to offset_in_cu.
6126 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6127 TYPE_OFFSET.
6128 (dwarf2_fetch_die_location_block): Rename parameter offset to
6129 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6130
05e7c244
JK
61312012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6132
6133 * libunwind-frame.c: Rename to ...
6134 * ia64-libunwind-tdep.c: ... here.
6135 * libunwind-frame.h: Rename to ...
6136 * ia64-libunwind-tdep.h: ... here.
6137 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6138 ia64-libunwind-tdep.h.
6139 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6140 * README (--with-libunwind): Rename to ...
6141 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6142 * config.in: Regenerate.
6143 * configure: Regenerate.
6144 * configure.ac: New option --with-libunwind-ia64, make the
6145 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6146 Remove AC_DEFINE for HAVE_LIBUNWIND.
6147 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6148 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6149 Rename libunwind-frame in the general comment.
6150 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6151 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6152 Move forward declarations inside #ifndef. Rename libunwind-frame in
6153 the general comment.
6154 * ia64-tdep.c: Rename libunwind-frame.h #include to
6155 ia64-libunwind-tdep.h.
6156 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6157 (ia64_libunwind_descr): Rename libunwind-frame to
6158 ia64-libunwind-tdep in these function comments.
6159 * ia64-tdep.h: Rename libunwind-frame.h #include to
6160 ia64-libunwind-tdep.h.
6161 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6162 ia64-libunwind-tdep in that data comment.
6163
3755cbfd
JK
61642012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6165
6166 * libunwind-frame.h (struct frame_unwind): New declaration.
6167
d1cda5d9
JB
61682012-03-08 Joel Brobecker <brobecker@adacore.com>
6169
6170 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6171 "set breakpoint condition-evaluation" command.
6172
a0ba0aa2
TG
61732012-03-08 Tristan Gingold <gingold@adacore.com>
6174
6175 * sparc-stub.c: Move to stubs/
6176 * sh-stub.c: Likewise.
6177 * m68k-stub.c: Likewise.
6178 * m32r-stub.c: Likewise.
6179 * i386-stub.c: Likewise.
6180
7b8b6d6d
AS
61812012-03-08 Andreas Schwab <schwab@linux-m68k.org>
6182
007cafee
AS
6183 * m68klinux-tdep.c (m68k_linux_init_abi): Register
6184 linux_get_siginfo_type.
6185
7b8b6d6d
AS
6186 * m68klinux-nat.c: Include "gdb_proc_service.h".
6187 (PTRACE_GET_THREAD_AREA): Define.
6188 (ps_get_thread_area): New function.
6189
bba74b36
YQ
61902012-03-08 Yao Qi <yao@codesourcery.com>
6191
6192 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
6193 `xsnprintf'.
6194 (remote_query_attached): Likewise.
6195 (remote_static_tracepoint_marker_at): Likewise.
6196 (remote_set_permissions): Likewise.
6197 (remote_detach_1, extended_remote_attach_1): Likewise.
6198 (send_g_packet, remote_vkill): Likewise.
6199 (extended_remote_disable_randomization): Likewise.
6200 (remote_add_target_side_condition): Likewise.
6201 (remote_insert_breakpoint): Likewise.
6202 (remote_remove_breakpoint): Likewise.
6203 (remote_insert_watchpoint): Likewise.
6204 (remote_remove_watchpoint): Likewise.
6205 (remote_insert_hw_breakpoint): Likewise.
6206 (remote_insert_hw_breakpoint): Likewise.
6207 (remote_remove_hw_breakpoint): Likewise.
6208 (remote_download_command_source): Likewise.
6209 (remote_download_tracepoint): Likewise.
6210 (remote_download_trace_state_variable): Likewise.
6211 (remote_disable_tracepoint): Likewise.
6212 (remote_trace_set_readonly_regions): Likewise.
6213 (remote_get_tracepoint_status): Likewise.
6214 (remote_trace_find): Likewise.
6215 (remote_get_trace_state_variable_value): Likewise.
6216 (remote_set_disconnected_tracing): Likewise.
6217 (remote_set_circular_trace_buffer): Likewise.
6218 (remote_get_min_fast_tracepoint_insn_len): Likewise.
6219 (remote_use_agent): Likewise.
6220 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
6221 Update callers.
6222
9b224c5e
PA
62232012-03-07 Pedro Alves <palves@redhat.com>
6224
6225 * NEWS: Mention QProgramSignals.
6226 * inferior.h (update_signals_program_target): Declare.
6227 * infrun.c: (update_signals_program_target): New.
6228 (handle_command): Update the target of the new program signals
6229 array changes.
6230 * remote.c (PACKET_QProgramSignals): New enum.
6231 (last_program_signals_packet): New global.
6232 (remote_program_signals): New.
6233 (remote_start_remote): Update the target with the program signals
6234 list.
6235 (remote_protocol_features): Add entry for QPassSignals.
6236 (remote_open_1): Free anc clear last_program_signals_packet.
6237 (init_remote_ops): Install remote_program_signals.
6238 * target.c (update_current_target): Adjust.
6239 (target_program_signals): New.
6240 * target.h (struct target_ops) <to_program_signals>: New field.
6241 (target_program_signals): Declare.
6242
74c48cbb
PA
62432012-03-07 Pedro Alves <palves@redhat.com>
6244
6245 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
6246 extensions.
6247
0c13fc49
AS
62482012-03-07 Andreas Schwab <schwab@linux-m68k.org>
6249
6250 * m68klinux-nat.c (getregs_supplies): Make static.
6251 (getfpregs_supplies): Likewise.
6252 (have_ptrace_getregs): Likewise.
6253
1281d2a3
JB
62542012-03-06 Joel Brobecker <brobecker@adacore.com>
6255
6256 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
6257 in call to get_die_type_at_offset.
6258
2b03b41d
SS
62592012-03-06 Stan Shebs <stan@codesourcery.com>
6260
6261 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
6262 * mi/mi-cmd-disas.c: Ditto.
6263 * mi/mi-cmd-env.c: Ditto.
6264 * mi/mi-cmd-file.c: Ditto.
6265 * mi/mi-cmd-stack.c: Ditto.
6266 * mi/mi-cmd-target.c: Ditto.
6267 * mi/mi-cmd-var.c: Ditto.
6268 * mi/mi-cmds.c: Ditto.
6269 * mi/mi-cmds.h: Ditto.
6270 * mi/mi-console.c: Ditto.
6271 * mi/mi-getopt.c: Ditto.
6272 * mi/mi-getopt.h: Ditto.
6273 * mi/mi-interp.c: Ditto.
6274 * mi/mi-main.c: Ditto.
6275 * mi/mi-out.c: Ditto.
6276 * mi/mi-parse.c: Ditto.
6277 * mi/mi-parse.h: Ditto.
6278 * mi/mi-symbol-cmds.c: Ditto.
6279
6280 * mi/mi-getopt.h: Move mi_opt struct up.
6281 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
6282 return.
6283 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
6284
c988ad87
TT
62852012-03-06 Tom Tromey <tromey@redhat.com>
6286
6287 * proc-service.c (ps_pglobal_lookup): Set the current program
6288 space.
6289
1b7c1b10
PA
62902012-03-06 Pedro Alves <palves@redhat.com>
6291
6292 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
6293
3c182069
JB
62942012-03-05 Joel Brobecker <brobecker@adacore.com>
6295
6296 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
6297
2e794194
JK
62982012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6299
6300 Code cleanup.
6301 * common/linux-osdata.c (linux_common_core_of_thread): New function
6302 comment.
6303 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
6304 call by linux_common_core_of_thread.
6305 (linux_nat_core_of_thread_1): Remove.
6306 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
6307 * linux-thread-db.c: Include linux-osdata.h.
6308 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
6309 linux_common_core_of_thread.
6310
9f9f1f31
TT
63112012-03-05 Tom Tromey <tromey@redhat.com>
6312
6313 * value.c (value_primitive_field): Don't fetch contents for
6314 non-virtual bases.
6315
b7b189f3
TT
63162012-03-05 Tom Tromey <tromey@redhat.com>
6317
6318 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
6319
05b8a789 63202012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 6321
5538f557
JB
6322 * s390-nat.c: Include "gregset.h".
6323
75528772
JK
63242012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6325
6326 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
6327 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
6328 (libunwind_load): New variable so_error, use it for dlerror. Try to
6329 load also LIBUNWIND_SO_7.
6330
275418ae
PA
63312012-03-05 Pedro Alves <palves@redhat.com>
6332
6333 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
6334 is not NULL, and remove resulting dead code.
6335
5cbb9812
TS
63362012-03-05 Thomas Schwinge <thomas@codesourcery.com>
6337
6338 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
6339 prologue to sh_analyze_prologue.
6340 (sh_analyze_prologue): Make better use of such an upper limit, and
6341 generally be more cautious about accessing memory.
6342
541515ad
TT
63432012-03-05 Tom Tromey <tromey@redhat.com>
6344
6345 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
6346 _initialize_ia64_hpux_tdep.
6347
b4d36fb8
PA
63482012-03-05 Pedro Alves <palves@redhat.com>
6349
24490249
PA
6350 PR gdb/13766
6351
b4d36fb8
PA
6352 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
6353 the register state is clear, supply explicit zero, instead of
6354 marking the register unavailable.
6355
60c9a3c0
TG
63562012-03-05 Tristan Gingold <gingold@adacore.com>
6357
6358 * NEWS: Mention OpenVMS ia64 new target.
6359
696759ad
TG
63602012-03-05 Tristan Gingold <gingold@adacore.com>
6361
6362 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
6363 (ia64_unw_accessors, ia64_unw_rse_accessors)
6364 (ia64_libunwind_descr): Declare.
6365 * ia64-vms-tdep.c: New file.
6366 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
6367 (ia64_libunwind_descr): Make them public.
6368 * configure.tgt: Add ia64-*-*vms*.
6369 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
6370 (ALLDEPFILES): Add ia64-vms-tdep.c
6371
34864976
TG
63722012-03-05 Tristan Gingold <gingold@adacore.com>
6373
169081d0
TG
6374 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
6375 * remote.c (PACKET_qXfer_uib): New enum value.
6376 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
6377 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
6378 (_initialize_remote): Call add_packet_config_cmd for
6379 xfer:uib packet.
6380
63812012-03-05 Tristan Gingold <gingold@adacore.com>
6382
6383 * osabi.c (gdb_osabi_names): Add OpenVMS.
6384 (generic_elf_osabi_sniffer): Likewise.
6385 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 6386
6597b100
JK
63872012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6388
6389 Removed unused code.
6390 * libunwind-frame.c (libunwind_frame_unwind)
6391 (libunwind_frame_base_address): Remove.
6392 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
6393
87399aa1
YQ
63942012-03-04 Yao Qi <yao@codesourcery.com>
6395
6396 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
6397 remove trailing new line.
6398 (agent_run_command, agent_run_command): Add _ markup.
6399 (agent_capability_check): Likewise.
6400
abf1152a
JK
64012012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6402
6403 * breakpoint.c (set_condition_evaluation_mode): Set
6404 CONDITION_EVALUATION_MODE unconditionally.
6405
5808517f
YQ
64062012-03-03 Yao Qi <yao@codesourcery.com>
6407
6408 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
6409 * common/agent.h: Update declaration.
6410 * inf-child.c (inf_child_use_agent): New.
6411 (inf_child_can_use_agent): New.
6412 (inf_child_target): Initialize fields `to_use_agent'
6413 and `to_can_use_agent'.
6414 * agent.c (agent_new_objfile): New.
89b7509a 6415 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
6416 observer.
6417
6418 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6419 New.
89b7509a 6420 (linux_target_install_ops): Initialize field
5808517f
YQ
6421 `to_static_tracepoint_markers_by_strid'.
6422 * remote.c (free_current_marker): Move it to ...
6423 * tracepoint.c (free_current_marker): ... here. New.
6424 (cleanup_target_stop): New.
6425 * tracepoint.h: Declare free_current_marker.
6426 * NEWS: Add one entry about `info static-tracepoint-marker'.
6427
58b4daa5
YQ
64282012-03-03 Yao Qi <yao@codesourcery.com>
6429
6430 * common/agent.c (agent_loaded_p): New.
89b7509a 6431 (agent_look_up_symbols): New global.
58b4daa5
YQ
6432 * common/agent.h: Declare agent_loaded_p.
6433
8ffcbaaf
YQ
64342012-03-03 Yao Qi <yao@codesourcery.com>
6435
6436 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
6437 (agent_capability_check, agent_capability_invalidate): New.
6438 (symbol_list): New array element.
6439 * common/agent.h (enum agent_capa): New.
6440 * target.c (target_pre_inferior): Call agent_capability_invalidate.
6441
d1feda86
YQ
64422012-03-03 Yao Qi <yao@codesourcery.com>
6443
6444 * target.h (struct target_ops) <to_use_agent>: New field.
6445 (struct target_ops) <to_can_use_agent>: New field.
6446 (target_use_agent, target_can_use_agent): New macro.
6447 * target.c (update_current_target): Update.
6448 * remote.c: New enum `PACKET_QAgent'.
6449 (remote_protocol_features): Add a new element.
6450 (remote_use_agent, remote_can_use_agent): New.
6451 (init_remote_ops): Initialize field `can_use_agent' with
6452 remote_can_use_agent. Intiailize field `use_agent' with
6453 remote_use_agent.
6454 * common/agent.c (use_agent): New global.
6455 * common/agent.h: Declare it.
6456 * tracepoint.c (info_static_tracepoint_markers_command): Add
6457 comment.
6458 * Makefile.in (SFILES): Add common/agent.c and agent.c.
6459 (COMMON_OBS): Add common/agent.o and agent.o
6460 (common-agent.o): New rule.
6461 * agent.c: New.
6462
2fa291ac
YQ
64632012-03-03 Yao Qi <yao@codesourcery.com>
6464
6465 * common/agent.c: New.
6466 * common/agent.h: New.
6467 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
6468 AC_CHECK_HEADERS.
6469 * configure, configh.in: Regenerated.
6470
9fc05685
KB
64712012-03-02 Kevin Buettner <kevinb@redhat.com>
6472
6473 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
6474 unless it exists for this architecture.
6475
a5ee536b
JB
64762012-03-02 Joel Brobecker <brobecker@adacore.com>
6477
6478 * language.h (struct language_defn): New "method" la_read_var_value.
6479 * findvar.c: #include "language.h".
6480 (default_read_var_value): Renames read_var_value. Rewrite
6481 function description.
6482 (read_var_value): New function.
6483 * value.h (default_read_var_value): Add prototype.
6484 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
6485 New functions.
6486 (ada_language_defn): Add entry for la_read_var_value.
6487 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
6488 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
6489 language_defn structures to add entry for new la_read_var_value
6490 field.
6491
f59f708a
PA
64922012-03-02 Tom Tromey <tromey@redhat.com>
6493 Pedro Alves <palves@redhat.com>
6494
6495 PR breakpoints/13776:
6496 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
6497 breakpoints.
6498 (delete_longjmp_breakpoint_at_next_stop): New.
6499 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
6500 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
6501 before deleting the inferior. Add comments.
6502 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
6503 breakpoints immediately, but only on next stop. Move that code
6504 next to where we mark other breakpoints for deletion.
6505
44099a67
JB
65062012-03-02 Joel Brobecker <brobecker@adacore.com>
6507
6508 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
6509 marker.
6510 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
6511 violation.
6512
2a2ef594
PA
65132012-03-02 Pedro Alves <palves@redhat.com>
6514
6515 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
6516
b261e0c5
UW
65172012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
6518
6519 Fix -Wmissing-prototypes build.
6520 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
6521 * remote-sim.c (gdbsim_has_all_memory): Likewise.
6522 (gdbsim_has_memory): Likewise.
6523
a95babbf
YQ
65242012-03-02 Yao Qi <yao@codesourcery.com>
6525
6526 Fix -Wmissing-prototypes build.
6527 * charset.c (phony_iconv_open): Make static.
6528 (phony_iconv_close, phony_iconv): Likewise.
6529 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
6530 * i386-windows-nat.c (_initialize_i386_windows_nat): New
6531 prototype.
6532 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
6533 * ser-mingw.c (create_select_thread): Make static.
6534 * windows-termcap.c (tgetent): New prototype.
6535 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
6536
d603d4b3
JK
65372012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
6538
6539 Fix -Wmissing-prototypes build.
6540 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
6541 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
6542 (_initialize_loadable): New prototypes.
6543
7fb3ad1f
DE
65442012-03-02 Doug Evans <dje@google.com>
6545
6546 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
6547 abbrev table, read_comp_unit will do it.
6548
693be288
JK
65492012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6550
6551 Fix -Wmissing-prototypes build.
6552 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
6553 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
6554 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
6555 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
6556 (_initialize_arm_symbian_tdep): New prototype.
6557 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
6558 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
6559 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
6560 static.
6561 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
6562 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
6563 prototype.
6564 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
6565 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
6566 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
6567 static.
6568 * moxie-tdep.c (moxie_process_record): Likewise.
6569 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
6570 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
6571 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
6572 (_initialize_rl78_tdep): New prototype.
6573 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
6574 (_initialize_rx_tdep): New prototype.
6575 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
6576 (_initialize_darwin_solib): New prototype.
6577 * solib-spu.c: Include solib-spu.h.
6578 (_initialize_spu_solib): New prototype.
6579 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
6580 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
6581 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
6582 (tic6x_software_single_step): Make it static.
6583 (_initialize_tic6x_tdep): New prototype.
6584
638234e5
JK
65852012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6586
6587 Fix -Wmissing-prototypes build.
6588 * cris-tdep.c (cris_can_use_hardware_watchpoint)
6589 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
6590
f4a6f16d
JK
65912012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6592
6593 Fix -Wmissing-prototypes build.
6594 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
6595 (frv_have_stopped_data_address): Remove.
6596
04dcf5fa
JK
65972012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6598
6599 Fix -Wmissing-prototypes build.
6600 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
6601 * sh-tdep.c: Include sh64-tdep.h.
6602 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
6603 * sh64-tdep.c: Include sh64-tdep.h.
6604 * sh64-tdep.h: New file.
6605
19080931
MR
66062012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6607
6608 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
6609
9aac7884
MR
66102012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6611
6612 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
6613 sp_regnum once the gdbarch_init_osabi hook has been called.
6614
a385295e
MR
66152012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
6616
6617 * mips-tdep.c (mips32_bc1_pc): New function.
6618 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
6619 BPOSGE32 and BPOSGE64 instructions.
6620 (deal_with_atomic_sequence): Likewise.
6621 (mips32_instruction_has_delay_slot): Likewise.
6622
1faeff08 66232012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
6624 Chris Dearman <chris@mips.com>
6625 Maciej W. Rozycki <macro@codesourcery.com>
6626 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
6627
6628 * features/mips-dsp.xml: New file.
6629 * features/mips64-dsp.xml: New file.
6630 * features/mips-dsp-linux.xml: New file.
6631 * features/mips64-dsp-linux.xml: New file.
6632 * features/Makefile (WHICH): Add mips-dsp-linux and
6633 mips64-dsp-linux.
6634 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
6635 * features/mips-dsp-linux.c: New file.
6636 * features/mips64-dsp-linux.c: New file.
6637 * regformats/mips-dsp-linux.dat: New file.
6638 * regformats/mips64-dsp-linux.dat: New file.
6639 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
6640 registers.
6641 (mips64_linux_register_addr): Likewise.
6642 (mips64_linux_regsets_fetch_registers): Likewise.
6643 (mips64_linux_regsets_store_registers): Likewise.
6644 (mips64_linux_fetch_registers): Update call to
6645 mips64_linux_regsets_fetch_registers.
6646 (mips64_linux_store_registers): Update call to
6647 mips64_linux_regsets_store_registers.
6648 (mips_linux_read_description): Probe for DSP registers.
6649 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
6650 and initialize_tdesc_mips64_dsp_linux.
6651 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
6652 Remove padding of no longer used embedded register slots.
6653 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
6654 (MIPS_RESTART_REGNUM): Redefine enum value.
6655 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
6656 strings.
6657 (mips_tx39_reg_names): Likewise.
6658 (mips_linux_reg_names): New array of register names for Linux
6659 targets.
6660 (mips_register_name): Check for a null pointer in
6661 mips_processor_reg_names and return an empty string.
6662 (mips_register_type): Exclude embedded registers for the IRIX
6663 and Linux ABIs.
6664 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
6665 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
6666 DSP registers.
6667 (mips_stab_reg_to_regnum): Handle DSP accumulators.
6668 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
6669 (mips_gdbarch_init): Likewise. Initialize internal register
6670 indices for the Linux ABI. Use dynamic numbers to refer to
6671 registers, as applicable, while parsing the target description.
6672 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
6673
263689d8
JB
66742012-03-01 Joel Brobecker <brobecker@adacore.com>
6675
6676 * frame.h (read_frame_register_unsigned): Fix typo in function
6677 description.
6678
f3b4f45c
PA
66792012-03-01 Pedro Alves <palves@redhat.com>
6680
6681 * jit-reader.in [!__cplusplus]
6682 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
6683
b03a2011
PA
66842012-03-01 Pedro Alves <palves@redhat.com>
6685
6686 * configure.ac (build_warnings): Add -Wmissing-prototypes.
6687 * configure: Regenerate.
6688
70221824
PA
66892012-03-01 Pedro Alves <palves@redhat.com>
6690
6691 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
6692 * breakpoint.c (create_exception_master_breakpoint, trace_command)
6693 (ftrace_command, strace_command): Make static.
6694 * d-lang.c (_initialize_d_language): Declare.
6695 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
6696 * dwarf2loc.c (_initialize_dwarf2loc):
6697 * dwarf2read.c (process_psymtab_comp_unit): Make static.
6698 * exec.c (exec_get_section_table): Make static.
6699 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
6700 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
6701 * inferior.c (remove_inferior_command, add_inferior_command)
6702 (clone_inferior_command): Make static.
6703 * linux-nat.c (linux_nat_thread_address_space)
6704 (linux_nat_core_of_thread): Make static.
6705 * linux-tdep.c (_initialize_linux_tdep): Declare.
6706 * objc-lang.c (_initialize_objc_lang): Declare.
6707 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
6708 Make static.
6709 (_initialize_opencl_language): Declare.
6710 * record.c (_initialize_record): Declare.
6711 * remote.c (demand_private_info, remote_get_tib_address)
6712 (remote_supports_cond_tracepoints)
6713 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
6714 Make static.
6715 * skip.c (_initialize_step_skip): Declare.
6716 * symtab.c (skip_prologue_using_lineinfo): Make static.
6717 * tracepoint.c (delete_trace_state_variable)
6718 (trace_variable_command, delete_trace_variable_command)
6719 (get_uploaded_tsv, find_matching_tracepoint_location)
6720 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
6721 Make static.
6722 * value.c (pack_unsigned_long): Make static.
6723 * varobj.c (varobj_ensure_python_env): Make static.
6724 * windows-tdep.c (_initialize_windows_tdep): Declare.
6725 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
6726
33fbcbee
PA
67272012-03-01 Pedro Alves <palves@redhat.com>
6728
6729 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
6730 gdbarch parameter.
6731 (linux_init_abi): Install it as has_shared_address_space gdbarch
6732 callback.
6733
44d0cd3b
PA
67342012-03-01 Pedro Alves <palves@redhat.com>
6735
6736 * observer.c (observer_test_first_notification_function)
6737 (observer_test_second_notification_function)
6738 (observer_test_third_notification_function): Add declarations.
6739
ed01b82c
PA
67402012-03-01 Pedro Alves <palves@redhat.com>
6741
6742 * common/signals.c (default_target_signal_to_host)
6743 (default_target_signal_from_host): Move ...
6744 * arch-utils.c: ... here.
6745 * arch-utils.h (default_target_signal_to_host)
6746 (default_target_signal_from_host): Declare.
6747
6748 * common/signals.c (target_signal_from_command): Move ...
6749 * infrun.c: ... here.
6750 * inferior.h (target_signal_from_command): Declare.
6751 * target.h (target_signal_from_command)
6752 (default_target_signal_from_host, default_target_signal_to_host):
6753 Delete declarations.
6754
6755 * common/signals.c (_initialize_signals): Delete.
6756
c9b87335
PA
67572012-03-01 Pedro Alves <palves@redhat.com>
6758
6759 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
6760 both __cplusplus and !__cplusplus.
6761
9340a6c0
PA
67622012-03-01 Pedro Alves <palves@redhat.com>
6763
6764 * psymtab.c (find_and_open_source): Delete declaration.
6765 * source.c (find_and_open_source): Move comment ...
6766 * source.h (find_and_open_source): ... to this new declaration.
6767
e451c4a1
PA
67682012-03-01 Pedro Alves <palves@redhat.com>
6769
6770 * inline-frame.c: Include inline-frame.h.
6771
983fb104
PA
67722012-03-01 Pedro Alves <palves@redhat.com>
6773
6774 * tui/tui-data.c (set_gen_win_origin): Delete.
6775 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
6776 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
6777
5fbce5df
PA
67782012-03-01 Pedro Alves <palves@redhat.com>
6779
6780 * remote.c (encode_actions): Delete declaration.
6781 * tracepoint.c (encode_actions): Make extern.
6782 * tracepoint.h (encode_actions): Declare.
6783
49a8461d
PA
67842012-03-01 Pedro Alves <palves@redhat.com>
6785
6786 * python/py-breakpoint.c: Include python.h.
6787 * python/py-continueevent.c (create_continue_event_object): Make
6788 static.
6789 * python/py-lazy-string.c (stpy_get_type): Make static.
6790 * python/py-newobjfileevent.c (create_new_objfile_event_object):
6791 Make static.
6792 * python/py-utils.c (unicode_to_target_python_string): Make
6793 static.
6794 * python/py-value.c: Include python.h.
6795
9079102f
PA
67962012-03-01 Pedro Alves <palves@redhat.com>
6797
6798 * inferior.c (delete_threads_of_inferior): Delete.
6799
a298c5e8
PA
68002012-03-01 Pedro Alves <palves@redhat.com>
6801
6802 Import fallback definitions from glibc.
6803
6804 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
6805 ps_prochandle): Forward declare.
6806 (ps_err_e): Use glibc's comments.
6807 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
6808 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
6809 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
6810 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
6811 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
6812 (struct ps_prochandle): Adjust comment.
6813
e3084549
PA
68142012-03-01 Pedro Alves <palves@redhat.com>
6815
6816 * ada-lang.c (ada_modulus_from_name): Delete.
6817 * ada-lex.l (lexer_init): Make static.
6818
ad5f7d6e
PA
68192012-03-01 Pedro Alves <palves@redhat.com>
6820
6821 PR gdb/13767
6822
6823 * frame.c (read_frame_register_unsigned): New.
6824 * frame.h (read_frame_register_unsigned): Declare.
6825 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
6826 Handle it.
6827 (print_i387_control_word): New parameter `control_p'. Handle it.
6828 (i387_print_float_info): Handle unavailable float registers.
6829
e0a4d108
KS
68302012-03-01 Keith Seitz <keiths@redhat.com>
6831
6832 * linespec.c (decode_line_2): Sort the list of methods
6833 alphabetically before presenting the user with a selection
6834 menu.
6835
122d1940
DE
68362012-03-01 Doug Evans <dje@google.com>
6837
6838 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
6839 has_namespace_info.
6840 (dwarf2_read_abbrevs): Remove corresponding initialization.
6841
7d74f244
DE
68422012-03-01 Scott J. Goldman <scottjg@vmware.com>
6843
6844 * NEWS: Mention new python command class gdb.COMMAND_USER.
6845 * cli/cli-cmds.c (show_user): Print error when used on a python
6846 command.
6847 (init_cli_cmds): Update documentation strings for "show user" and
6848 "set/show max-user-call-depth" to clarify that it does not apply to
6849 python commands.
6850 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
6851 error check.
6852 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
6853 gdb python api.
6854 * top.c (execute_command): Only execute a user-defined command as a
6855 legacy macro if c->user_commands is set.
6856
e88acd96
TT
68572012-03-01 Tom Tromey <tromey@redhat.com>
6858
6859 * valprint.h (struct generic_val_print_decorations): New.
6860 (generic_val_print): Declare.
6861 * valprint.c (generic_val_print): New function.
6862 * p-valprint.c (p_decorations): New global.
6863 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
6864 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
6865 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
6866 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
6867 * m2-valprint.c (m2_decorations): New global.
6868 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
6869 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
6870 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
6871 TYPE_CODE_ERROR>: Call generic_val_print.
6872 * f-valprint.c (f_decorations): New global.
6873 (f_val_print): Use print_function_pointer_address.
6874 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
6875 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
6876 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
6877 generic_val_print.
6878 * c-valprint.c (c_decorations): New global.
6879 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
6880 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
6881 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
6882 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
6883 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
6884 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
6885 case.
6886
d3eab38a
TT
68872012-03-01 Tom Tromey <tromey@redhat.com>
6888
6889 * valprint.c (val_print): Update.
6890 * p-valprint (pascal_val_print): Return void.
6891 * p-lang.h (pascal_val_print): Return void.
6892 * m2-valprint.c (m2_val_print): Return void.
6893 * m2-lang.h (m2_val_print): Return void.
6894 * language.h (struct language_defn) <la_val_print>: Return void.
6895 * language.c (unk_lang_val_print): Return void.
6896 * jv-valprint.c (java_val_print): Return void.
6897 * jv-lang.h (java_val_print): Return void.
6898 * f-valprint.c (f_val_print): Return void.
6899 * f-lang.h (f_val_print): Return void.
6900 * d-valprint.c (d_val_print): Return void.
6901 (dynamic_array_type): Update.
6902 * d-lang.h (d_val_print): Return void.
6903 * c-valprint.c (c_val_print): Return void.
6904 * c-lang.h (c_val_print): Return void.
6905 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
6906 void.
6907 * ada-lang.h (ada_val_print): Return void.
6908
35c0084b
TT
69092012-03-01 Tom Tromey <tromey@redhat.com>
6910
6911 * value.h (val_print): Return void.
6912 * valprint.c (val_print): Return void.
6913
a1f5dd1b
TT
69142012-03-01 Tom Tromey <tromey@redhat.com>
6915
6916 * value.h (common_val_print): Return void.
6917 * valprint.c (common_val_print): Return void.
6918
8e069a98
TT
69192012-03-01 Tom Tromey <tromey@redhat.com>
6920
6921 * value.h (value_print): Return void.
6922 * valprint.c (value_print): Return void.
6923 * p-valprint.c (pascal_value_print): Return void.
6924 * p-lang.h (pascal_value_print): Return void.
6925 * language.h (struct language_defn) <la_value_print>: Return
6926 void.
6927 * language.c (unk_lang_value_print): Return void.
6928 * jv-valprint.c (java_value_print): Return void.
6929 * jv-lang.h (java_value_print): Return void.
6930 * f-valprint.c (c_value_print): Don't declare.
6931 Include c-lang.h.
6932 * c-valprint.c (c_value_print): Return void.
6933 * c-lang.h (c_value_print): Return void.
6934 * ada-valprint.c (ada_value_print): Return void.
6935 * ada-lang.h (ada_value_print): Return void.
6936
be335936
TT
69372012-03-01 Tom Tromey <tromey@redhat.com>
6938
6939 * value.c (value_primitive_field): Handle virtual base classes.
6940
b0db66a7
TT
69412012-03-01 Tom Tromey <tromey@redhat.com>
6942
6943 * gdbtypes.h (struct vbase): Remove.
6944
132c57b4
TT
69452012-03-01 Tom Tromey <tromey@redhat.com>
6946
6947 * c-valprint.c (print_function_pointer_address): Move...
6948 * valprint.c: ... here. Make non-static.
6949 * m2-valprint.c (print_function_pointer_address): Remove.
6950 * valprint.h (print_function_pointer_address): Declare.
6951
e41eec66
JB
69522012-03-01 Joel Brobecker <brobecker@adacore.com>
6953
6954 * NEWS: Document the fact that one can provide a condition when
6955 creating an Ada exception catchpoint.
6956
19c37f24
TT
69572012-03-01 Tom Tromey <tromey@redhat.com>
6958
6959 * valprint.c (val_print_type_code_flags): Fix placement of
6960 trailing brace.
6961
f0fed3a3
JB
69622012-03-01 Joel Brobecker <brobecker@adacore.com>
6963
6964 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
6965 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
6966 environment variable before calling update-copyright.
6967
8ba85d85
JB
69682012-03-01 Joel Brobecker <brobecker@adacore.com>
6969
6970 * gnulib/extra/update-copyright: Update to the latest from
6971 gnulib's git repository.
6972 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
6973 variable to 2 instead of 1.
6974
8219b1e8
JB
69752012-02-29 Joel Brobecker <brobecker@adacore.com>
6976
6977 * varobj.c (c_value_of_variable): Remove dead code.
6978
718cb7da
JB
69792012-02-29 Joel Brobecker <brobecker@adacore.com>
6980
6981 * ada-lex.p (processId): Do not modify already encoded IDs.
6982 Update function documentation.
6983
739593e0
JB
69842012-02-29 Joel Brobecker <brobecker@adacore.com>
6985
6986 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
6987 "name" with "struct symbol *name_sym".
6988 * ada-exp.y (write_var_or_type): Update call to
6989 ada_find_renaming_symbol.
6990 "name" with "struct symbol *name_sym". Adjust Implementation
6991 accordingly. Adjust the function documentation.
6992
852dff6c
JB
69932012-02-29 Joel Brobecker <brobecker@adacore.com>
6994
6995 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
6996 * ada-lang.c (ada_find_any_type): Add advance declaration.
6997 Make static. Replace ada_find_any_symbol by
6998 ada_find_any_type_symbol.
6999 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7000 Improve function description. Make static.
7001 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7002 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7003
1b611343
JB
70042012-02-29 Joel Brobecker <brobecker@adacore.com>
7005
7006 * ada-lang.c (struct tag_args): Delete.
7007 (ada_get_tsd_type): Function body moved up in source file.
7008 (ada_tag_name_1, ada_tag_name_2): Delete.
7009 (ada_get_tsd_from_tag): New function.
7010 (ada_tag_name_from_tsd): New function.
7011 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7012 to determine the tag name.
7013
41246937
JB
70142012-02-29 Joel Brobecker <brobecker@adacore.com>
7015
7016 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7017 declaration.
7018 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7019 function.
7020
ffde82bf
JB
70212012-02-29 Joel Brobecker <brobecker@adacore.com>
7022
7023 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7024
2ad01556
JB
70252012-02-29 Joel Brobecker <brobecker@adacore.com>
7026
7027 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7028 full searches.
7029
99b1c762
JB
70302012-02-29 Joel Brobecker <brobecker@adacore.com>
7031
7032 * ada-lang.c (constrained_packed_array_type): If there is a
7033 parallel XA type, use it to determine the array index type.
7034
2d4a02ee
JB
70352012-02-29 Joel Brobecker <brobecker@adacore.com>
7036
7037 * ada-valprint.c (ada_val_print_1): If our value is a reference
7038 to an array descriptor, dereference it before converting it
7039 to a simple array.
7040
c48db5ca
JB
70412012-02-29 Joel Brobecker <brobecker@adacore.com>
7042
7043 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7044 creating fixed value.
7045 (ada_value_ind, ada_coerce_ref, assign_component)
7046 (ada_evaluate_subexp): Remove call to unwrap_value before
7047 call to ada_to_fixed_value.
7048
2e6fda7d
JB
70492012-02-29 Joel Brobecker <brobecker@adacore.com>
7050
7051 * ada-lang.c (to_fixed_array_type): Set result's type name.
7052
5845583d
JB
70532012-02-29 Joel Brobecker <brobecker@adacore.com>
7054
7055 * ada-lang.c (catch_ada_exception_command_split): Add new
7056 argument cond_string. Add support for condition at end of
7057 "catch exception" commands.
7058 (ada_decode_exception_location): Add new argument cond_string.
7059 Update call to catch_ada_exception_command_split.
7060 (create_ada_exception_catchpoint): Add new argument cond_string.
7061 Set the breakpoint condition if needed.
7062 (catch_ada_exception_command): Update call to
7063 ada_decode_exception_location.
7064 (ada_decode_assert_location): Add function documentation.
7065 Add support for condition at end of "catch assert" command.
7066 (catch_assert_command): Update calls to ada_decode_assert_location
7067 and create_ada_exception_catchpoint.
7068
9a7f938f
JK
70692012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7070
7071 Fix disp-step-syscall.exp: fork: single step over fork.
7072 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7073 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7074 comment, change parameters gdbarch and ptid to regcache. Remove
7075 parameter regcache, initialize gdbarch from regcache here.
7076 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7077 New functions.
7078 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7079 instead.
7080 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7081 'syscall'. Make the 'int' check more strict.
7082
ffdf6de5
JK
70832012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7084
7085 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7086 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7087 (i386_linux_intx80_sysenter_syscall_record): ... here.
7088 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7089 Use the renamed function name.
7090
c70a6932
JK
70912012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7092
7093 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7094 * breakpoint.c (until_break_command): Likewise.
7095 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7096 * infcall.c (call_function_by_hand): Likewise.
7097 * infcmd.c (finish_forward): Likewise.
7098 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7099
05b8a789 71002012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 7101
d4cd3da9
JB
7102 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7103 avoid variable assignments inside condition.
7104
6425366c
JK
71052012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7106
7107 Fix static analysis issue found by cppcheck.
7108 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7109 uninitialized BUF for size 2.
7110
c8cef75f 71112012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
7112 Nathan Froyd <froydnj@codesourcery.com>
7113 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
7114
7115 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7116 (mips16_instruction_has_delay_slot): Likewise.
7117 (mips_segment_boundary): Likewise.
7118 (mips_adjust_breakpoint_address): Likewise.
7119 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7120
473347ad 71212012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 7122 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
7123
7124 * infrun.c (handle_inferior_event): Don't proceed through
7125 shared library trampolines if stepping at the machine
7126 instruction level.
7127
cf233303
MR
71282012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7129
7130 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7131 too.
7132
cb2cf4ce
TS
71332012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7134
7135 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7136 (sh_stub_unwind_sniffer): New functions.
7137 (sh_stub_unwind): New variable.
7138 (sh_gdbarch_init): Wire everything.
7139
644cebc9
PA
71402012-02-27 Pedro Alves <palves@redhat.com>
7141
7142 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7143 (linux_nat_post_attach_wait): Adjust to use
7144 linux_proc_pid_is_stopped.
7145 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7146 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7147 based on pid_is_stopped from both linux-nat.c and
7148 gdbserver/linux-low.c, and renamed.
7149
283002cf
MR
71502012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7151
7152 * remote.c (remote_watchpoint_addr_within_range): New function.
7153 (init_remote_ops): Use it.
7154
9b3e86b1
MR
71552012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7156
7157 * target.h (target_watchpoint_addr_within_range): Document macro.
7158
e36930bb
PA
71592012-02-24 Pedro Alves <palves@redhat.com>
7160
7161 * stack.c (set_last_displayed_sal): Issue internal_error instead
7162 of warning, and issue it after clearing the last displayed sal.
7163
883bc8d1
PA
71642012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7165 Pedro Alves <palves@redhat.com>
7166
7167 * breakpoint.c (until_break_command): Install breakpoints after
7168 all frame manipulations.
7169
b775012e
LM
71702012-02-24 Luis Machado <lgustavo@codesourcery.com>
7171
7172 * remote.c (remote_supports_cond_breakpoints): New forward
7173 declaration.
7174 (remote_add_target_side_condition): New function.
7175 (remote_insert_breakpoint): Add target-side breakpoint
7176 conditional if supported.
7177 (remote_insert_hw_breakpoint): Likewise.
7178 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7179 hook.
7180
7181 * target.c (update_current_target): Inherit
7182 to_supports_evaluation_of_breakpoint_conditions.
7183 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
7184
7185 * target.h (struct target_ops)
7186 <to_supports_evaluation_of_breakpoint_conditions>: New field.
7187 (target_supports_evaluation_of_breakpoint_conditions): New #define.
7188
7189 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
7190 (condition_evaluation_both, condition_evaluation_auto,
7191 condition_evaluation_host, condition_evaluation_target,
7192 condition_evaluation_enums, condition_evaluation_mode_1,
7193 condition_evaluation_mode): New static globals.
7194 (translate_condition_evaluation_mode): New function.
7195 (breakpoint_condition_evaluation_mode): New function.
7196 (gdb_evaluates_breakpoint_condition_p): New function.
7197 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
7198 (mark_breakpoint_modified): New function.
7199 (mark_breakpoint_location_modified): New function.
7200 (set_condition_evaluation_mode): New function.
7201 (show_condition_evaluation_mode): New function.
7202 (bp_location_compare_addrs): New function.
7203 (get_first_location_gte_addr): New helper function.
7204 (set_breakpoint_condition): Free condition bytecode if locations
7205 has become unconditional. Call mark_breakpoint_modified (...).
7206 (condition_command): Call update_global_location_list (1) for
7207 breakpoints.
7208 (breakpoint_xfer_memory): Use is_breakpoint (...).
7209 (is_breakpoint): New function.
7210 (parse_cond_to_aexpr): New function.
7211 (build_target_condition_list): New function.
7212 (insert_bp_location): Handle target-side conditional
7213 breakpoints and call build_target_condition_list (...).
7214 (update_inserted_breakpoint_locations): New function.
7215 (insert_breakpoint_locations): Handle target-side conditional
7216 breakpoints.
7217 (bpstat_check_breakpoint_conditions): Add comment.
7218 (bp_condition_evaluator): New function.
7219 (bp_location_condition_evaluator): New function.
7220 (print_breakpoint_location): Print information on where the condition
7221 will be evaluated.
7222 (print_one_breakpoint_location): Likewise.
7223 (init_bp_location): Call mark_breakpoint_location_modified (...) for
7224 breakpoint location.
7225 (force_breakpoint_reinsertion): New functions.
7226 (update_global_location_list): Handle target-side breakpoint
7227 conditions.
7228 Reinsert locations that are already inserted if conditions have
7229 changed.
7230 (bp_location_dtor): Free agent expression bytecode.
7231 (disable_breakpoint): Call mark_breakpoint_modified (...).
7232 Call update_global_location_list (...) with parameter 1 for breakpoints.
7233 (disable_command): Call mark_breakpoint_location_modified (...).
7234 Call update_global_location_list (...) with parameter 1 for breakpoints.
7235 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
7236 (enable_command): mark_breakpoint_location_modified (...).
7237 (_initialize_breakpoint): Update documentation and add
7238 condition-evaluation breakpoint subcommand.
7239
7240 * breakpoint.h: Include ax.h.
7241 (condition_list): New data structure.
7242 (condition_status): New enum.
7243 (bp_target_info) <cond_list>: New field.
7244 (bp_location) <condition_changed, cond_bytecode>: New fields.
7245 (is_breakpoint): New prototype.
7246
3788aec7
LM
72472012-02-24 Luis Machado <lgustavo@codesourcery.com>
7248
7249 * remote.c (remote_state) <cond_breakpoints>: New field.
7250 (PACKET_ConditionalBreakpoints): New enum.
7251 (remote_cond_breakpoint_feature): New function.
7252 (remote_protocol_features): Add new ConditionalBreakpoints entry.
7253 (remote_supports_cond_breakpoints): New function.
7254 (_initialize_remote): Add new packet configuration for
7255 target-side conditional breakpoints.
7256
72895ff6
LM
72572012-02-24 Luis Machado <lgustavo@codesourcery.com>
7258
7259 * NEWS: Mention target-side conditional breakpoint support,
7260 new condition-evaluation breakpoint subcommand and remote
7261 packet extensions.
7262
dea2aa5f
LM
72632012-02-24 Luis Machado <lgustavo@codesourcery.com>
7264
7265 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
7266 number.
7267
8a8bc27f
TS
72682012-02-24 Thomas Schwinge <thomas@codesourcery.com>
7269
7270 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
7271 (after_prologue): Remove.
7272
6b446fdf
TT
72732012-02-23 Tom Tromey <tromey@redhat.com>
7274
7275 * jv-valprint.c (java_val_print): Remove dead code.
7276
ef59abfb
TG
72772012-02-23 Tristan Gingold <gingold@adacore.com>
7278
a09130f9
PA
7279 * ada-tasks.c (struct ada_tasks_inferior_data): Add
7280 known_tasks_element and known_tasks_length fields.
7281 (read_known_tasks_array): Change argument type. Use pointer type
7282 and number of elements from DATA. Adjust.
7283 (read_known_tasks_list): Likewise.
7284 (get_known_tasks_addr): Remove.
7285 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
7286 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
7287 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 7288
def166f6
JK
72892012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
7290
7291 PR backtrace/13716
7292 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
7293 it after set_momentary_breakpoint.
7294
aeaa2474
SA
72952012-02-22 Sterling Augustine <saugustine@google.com>
7296
7297 PR 13689:
7298 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
7299
feea76c2
GB
73002012-02-22 Gary Benson <gbenson@redhat.com>
7301
7302 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
7303 (find_slot_in_mapped_hash): Likewise.
7304
f06e05e0
JK
73052012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7306
7307 PR build/13638
7308 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
7309 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
7310 * configure: Regenerate.
7311
b54a8fd7
PA
73122012-02-21 Tristan Gingold <gingold@adacore.com>
7313 Pedro Alves <palves@redhat.com>
7314
7315 * ia64-tdep.c: Do not include libunwind-ia64.h.
7316 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
7317 Include libunwind-ia64.h instead of libunwind.h.
7318 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
7319 for libunwind.h existence.
7320 * configure, config.in: Regenerate.
7321
dfcee124
AG
73222012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7323
7324 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
7325 instead of value_rtti_target_type.
7326 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
7327 instead of value_rtti_target_type.
7328 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
7329 value_rtti_target_type.
7330 * valops.c (value_ind): Extract function readjust_indirect_value_type.
7331 (value_rtti_target_type): Rename to ...
7332 (value_rtti_indirect_type): ... here and make it indirect. Update
7333 function comment.
7334 * value.c (readjust_indirect_value_type): New function.
7335 (coerce_ref): Support for enclosing type setting for references
7336 with readjust_indirect_value_type.
7337 * value.h (readjust_value_type): New declaration.
7338 (value_rtti_target_type): Rename to ...
7339 (value_rtti_indirect_type): ... here.
7340
02568277
AG
73412012-02-21 Anton Gorenkov <xgsa@yandex.ru>
7342
7343 * MAINTAINERS (Write After Approval): Add myself to the list.
7344
10c07b7e 73452012-02-20 Doug Evans <dje@google.com>
28ee876a 7346
d82ea6a8
DE
7347 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
7348 Rename objfile_p_char parameter to objfilep.
7349 (build_objfile_section_table): Result is now void. All callers
7350 updated.
7351 * objfiles.h (struct objfile): Tweak comments, whitespace.
7352 (build_objfile_section_table): Update.
7353
28ee876a
DE
7354 * elfread.c (elf_symfile_segments): Fix warning text.
7355
24c79950
TT
73562012-02-20 Tom Tromey <tromey@redhat.com>
7357
7358 PR gdb/13498:
7359 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
7360 particular set of file names once.
7361 (dw2_map_symbol_filenames): Likewise.
7362
3a9b40b6
JK
73632012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7364
7365 Code cleanup.
7366 * main.c (write_files): Remove the declaration.
7367 (external_editor_command): Move the declaration ...
7368 [GDBTK] (external_editor_command): ... here. Fix the comment.
7369
4d0795ca
TT
73702012-02-20 Tom Tromey <tromey@redhat.com>
7371
7372 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
7373 extraneous block.
7374
637fd620
TG
73752012-02-20 Tristan Gingold <gingold@adacore.com>
7376
7377 * darwin-nat.h (enum darwin_msg_state): Add comments.
7378
6f124894
TG
73792012-02-20 Tristan Gingold <gingold@adacore.com>
7380
7381 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
7382 value.
7383
2e6e3d9c
JB
73842012-20-18 Joel Brobecker <brobecker@adacore.com>
7385
7386 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
7387 between function description and implementation.
7388
2e8265fd
TT
73892012-02-17 Tom Tromey <tromey@redhat.com>
7390
7391 PR python/12070:
7392 * python/py-event.c (event_object_getset): New global.
7393 (event_object_type): Reference it.
7394 * python/py-type.c (field_object_getset): New global.
7395 (field_object_type): Reference it.
7396 * python/python-internal.h (gdb_py_generic_dict): Declare.
7397 * python/py-utils.c (gdb_py_generic_dict): New function.
7398
8544a150 73992012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 7400
8544a150 7401 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 7402
ca193e27
TS
74032012-02-17 Thomas Schwinge <thomas@codesourcery.com>
7404
7405 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
7406 TYPE_CALLING_CONVENTION annotation.
7407
e5586183
KB
74082012-02-16 Kevin Buettner <kevinb@redhat.com>
7409
7410 * MAINTAINERS: Add rx to target ISA section.
7411 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
7412 (ALLDEPFILES): Add rx-tdep.c.
7413
7dcd53a0
TT
74142012-02-16 Tom Tromey <tromey@redhat.com>
7415
7416 * symfile.c (symbol_file_add_main_1): Use inferior's
7417 symfile_flags.
7418 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
7419 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
7420 inferior.
7421 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
7422 inferior.
7423 (follow_exec): Use inferior's symfile_flags.
7424 * inferior.h (struct inferior) <symfile_flags>: New field.
7425
ddd60447
MF
74262012-02-16 Mike Frysinger <vapier@gentoo.org>
7427
7428 PR gdb/9734:
7429 * remote-sim.c (gdbsim_create_inferior): Call error() when
7430 sim_create_inferior() fails.
7431
b0d32fb6
TG
74322012-02-16 Josh Matthews <josh@joshmatthews.net>
7433
7434 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
7435
9addecb9
TT
74362012-02-16 Tom Tromey <tromey@redhat.com>
7437
7438 PR c++/13653:
7439 * thread.c (struct current_thread_cleanup) <was_removable>: New
7440 field.
7441 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
7442 (make_cleanup_restore_current_thread): Initialize new field.
7443
a58b110a
KB
74442012-02-15 Kevin Buettner <kevinb@redhat.com>
7445
7446 * MAINTAINERS: Add rl78 to target ISA section.
7447 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
7448 (ALLDEPFILES): Add rl78-tdep.c.
7449 * NEWS: Mention rl78 as a new target.
7450
4cb6da1c
AR
74512012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
7452
7453 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
7454 data.
7455 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
7456
3af2590d
TT
74572012-02-15 Tom Tromey <tromey@redhat.com>
7458
7459 PR gdb/12659:
7460 * infcmd.c (registers_info): Print just the current register's
7461 name.
7462
c6910659
TT
74632012-02-15 Tom Tromey <tromey@redhat.com>
7464
7465 * python/py-symbol.c (sympy_value): Use _().
7466
7cee1e54
PA
74672012-02-15 Pedro Alves <palves@redhat.com>
7468
7469 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
7470 output to be like native targets'.
7471 (remote_pid_to_str): Special case the null ptid.
7472
816338b5
SS
74732012-02-14 Stan Shebs <stan@codesourcery.com>
7474
7475 * NEWS: Mention enable count command.
7476 * breakpoint.h (struct breakpoint): New field enable_count.
7477 * breakpoint.c (enable_breakpoint_disp): Add count argument.
7478 (enable_breakpoint): Add arg to call.
7479 (struct disp_data): New struct.
7480 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
7481 (do_map_enable_once_breakpoint): Create a struct and pass it.
7482 (do_map_enable_delete_breakpoint): Ditto.
7483 (do_map_enable_count_breakpoint): New function.
7484 (enable_count_command): New function.
7485 (bpstat_stop_status): Decrement enable_count.
7486 (print_one_breakpoint_location): Report enable count.
7487 (_initialize_breakpoint): Add enable count command.
7488
c47a44f4
KB
74892012-02-14 Kevin Buettner <kevinb@redhat.com>
7490
7491 * rl78-tdep.c (reggroups.h): Include.
7492 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
7493 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
7494 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
7495 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
7496 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
7497 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
7498 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
7499 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
7500 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
7501 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
7502 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
7503 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
7504 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
7505 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
7506 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
7507 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
7508 beginning of register list.
7509 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
7510 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
7511 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
7512 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
7513 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
7514 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
7515 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
7516 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
7517 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
7518 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
7519 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
7520 the pseudo registers. Rearrange other pseudo registers too so
7521 that the bank registers appear at the end.
7522 (rl78_register_type): Account for the fact that the byte sized
7523 bank registers are now pseudo-registers.
7524 (rl78_register_name): Rearrange the register name array. Make
7525 initial set of raw banked registers inaccessible.
7526 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
7527 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
7528 case for copying bytes back and forth between raw and pseudo
7529 versions of the banked registers. Update other cases to reflect
7530 the changed names.
7531 (rl78_return_value): Update to account for changed names of
7532 raw registers.
7533 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
7534 rl78_register_sim_regno().
7535
e4569f1e
KB
75362012-02-14 Kevin Buettner <kevinb@redhat.com>
7537
7538 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
7539 the name parameter being passed to find_pc_partial_function().
7540
7a05aae7
JK
75412012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
7542
7543 * MAINTAINERS: Step down from being ia64 target maintainer.
7544
11fde611
JK
75452012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7546
7547 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
7548 compilation warning.
7549
57008375
JK
75502012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7551
7552 Fix crash on loaded shlibs without loaded exec_bfd.
7553 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
7554 (set_section_command): Replace exec_bfd by p->bfd.
7555
ff3c9849
TT
75562012-02-10 Tom Tromey <tromey@redhat.com>
7557
7558 * linespec.c (decode_line_internal): Skip symtabs_from_filename
7559 when we have a C++ qualified name.
7560
db2b9fdd
PA
75612012-02-10 Pedro Alves <palves@redhat.com>
7562
7563 * inferior.c (inferior_pid_to_str): New.
7564 (print_inferior, inferior_command): Use it.
7565
12cd34f3
PA
75662012-02-10 Pedro Alves <palves@redhat.com>
7567
7568 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
7569 the test CFLAGS.
7570 * configure: Regenerate.
7571
e871429d
JK
75722012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7573
7574 * linespec.c (decode_line_internal): Fix comment correctness.
7575
1916efaf
PA
75762012-02-09 Valery Khromov <valery.khromov@gmail.com>
7577
7578 PR gdb/12953
7579 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
7580 * amd64bsd-nat.c: Add support for debug registers (adapted from
7581 i386bsd-nat.c).
7582 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
7583 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
7584 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
7585 (amd64bsd_dr_get_control): New functions.
7586 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
7587 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
7588 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
7589 watchpoints initialization.
7590 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
7591
f4859d94
JK
75922012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7593
7594 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
7595 flds_bnds.fields.
7596 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
7597
c56a97f9
JK
75982012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7599
7600 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
7601
1a119f36
JB
76022012-02-08 Joel Brobecker <brobecker@adacore.com>
7603
7604 * language.h (symbol_name_cmp_ftype): Renames
7605 symbol_name_match_p_ftype.
7606 (struct language_defn)[la_get_symbol_name_cmp]: Renames
7607 la_get_symbol_name_match_p.
7608 * ada-lang.c (ada_get_symbol_name_cmp): Renames
7609 ada_get_symbol_name_match_p. Update comment.
7610 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
7611 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
7612 Renames symbol_name_match_p. Update field type.
7613 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
7614 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
7615 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
7616 "la_get_symbol_name_cmp" in comments.
7617 * language.c: Likewise.
7618
c71bb1cf
RO
76192012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
7620
7621 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
7622 %eflags offset.
7623 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
7624 (amd64_sol2_gregset32_reg_offs): Likewise.
7625
4b2d20a5
TG
76262012-02-08 Joel Brobecker <brobecker@adacore.com>
7627
7628 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
7629 of the returned BFD is allocated by GDB.
7630
f0823d2c
TT
76312012-02-07 Tom Tromey <tromey@redhat.com>
7632
7633 PR python/12027:
7634 * python/python-internal.h (frame_object_type): Declare.
7635 * python/py-symbol.c (sympy_needs_frame): New function.
7636 (sympy_value): New function.
7637 (symbol_object_getset): Add "needs_frame".
7638 (symbol_object_methods): Add "value".
7639 * python/py-frame.c (frame_object_type): No longer static.
7640
64e7d9dd
TT
76412012-02-07 Tom Tromey <tromey@redhat.com>
7642
7643 PR python/13599:
7644 * python/py-symbol.c (sympy_line): New function.
7645 (symbol_object_getset): Add "line".
7646
1d6b2d2b
TT
76472012-02-07 Tom Tromey <tromey@redhat.com>
7648
7649 * charset.c (find_charset_names): Check 'in' against NULL.
7650
0d5cff50
DE
76512012-02-06 Doug Evans <dje@google.com>
7652
7653 * gdbtypes.h (struct main_type): Change type of name,tag_name,
7654 and fields.name members from char * to const char *. All uses updated.
7655 (struct cplus_struct_type): Change type of fn_fieldlists.name member
7656 from char * to const char *. All uses updated.
7657 (type_name_no_tag): Update.
7658 (lookup_unsigned_typename, lookup_signed_typename): Update.
7659 * gdbtypes.c (type_name_no_tag): Change result type
7660 from char * to const char *. All callers updated.
7661 (lookup_unsigned_typename, lookup_signed_typename): Change type of
7662 name parameter from char * to const char *.
7663 * symtab.h (struct cplus_specific): Change type of demangled_name
7664 member from char * to const char *. All uses updated.
7665 (struct general_symbol_info): Change type of name and
7666 mangled_lang.demangled_name members from char * to const char *.
7667 All uses updated.
7668 (symbol_get_demangled_name, symbol_natural_name): Update.
7669 (symbol_demangled_name, symbol_search_name): Update.
7670 * symtab.c (symbol_get_demangled_name): Change result type
7671 from char * to const char *. All callers updated.
7672 (symbol_natural_name, symbol_demangled_name): Ditto.
7673 (symbol_search_name): Ditto.
7674 (completion_list_add_name): Change type of symname,sym_text,
7675 text,word parameters from char * to const char *.
7676 (completion_list_objc_symbol): Change type of sym_text,
7677 text,word parameters from char * to const char *.
7678 * ada-lang.c (find_struct_field): Change type of name parameter
7679 from char * to const char *.
7680 (encoded_ordered_before): Similarly for N0,N1 parameters.
7681 (old_renaming_is_invisible): Similarly for function_name parameter.
7682 (ada_type_name): Change result type from char * to const char *.
7683 All callers updated.
7684 * ada-lang.h (ada_type_name): Update.
7685 * buildsym.c (hashname): Change type of name parameter
7686 from char * to const char *.
7687 * buildsym.h (hashname): Update.
7688 * dbxread.c (end_psymtab): Change type of include_list parameter
7689 from char ** to const char **.
7690 * dwarf2read.c (determine_prefix): Change result type
7691 from char * to const char *. All callers updated.
7692 * f-lang.c (find_common_for_function): Change type of name, funcname
7693 parameters from char * to const char *.
7694 * f-lang.c (find_common_for_function): Update.
7695 * f-valprint.c (list_all_visible_commons): Change type of funcname
7696 parameters from char * to const char *.
7697 * gdbarch.sh (static_transform_name): Change type of name parameter
7698 and result from char * to const char *.
7699 * gdbarch.c: Regenerate.
7700 * gdbarch.h: Regenerate.
7701 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
7702 of name parameter from char * to const char *.
7703 * jv-lang.c (java_primitive_type_from_name): Ditto.
7704 (java_demangled_signature_length): Similarly for signature parameter.
7705 (java_demangled_signature_copy): Ditto.
7706 (java_demangle_type_signature): Ditto.
7707 * jv-lang.h (java_primitive_type_from_name): Update.
7708 (java_demangle_type_signature): Update.
7709 * objc-lang.c (specialcmp): Change type of a,b parameters
7710 from char * to const char *.
7711 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
7712 from char * to const char *. All callers updated.
7713 * p-lang.h (is_pascal_string_type): Update.
7714 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
7715 of name parameter from char * to const char *.
7716 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
7717 * utils.c (fprintf_symbol_filtered): Ditto.
7718 * defs.h (fprintf_symbol_filtered): Update.
7719 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
7720 * stabsread.h (end_psymtab): Update.
7721 * stack.c (find_frame_funname): Change type of funname parameter
7722 from char ** to const char **.
7723 * stack.h (find_frame_funname): Update.
7724 * typeprint.c (type_print): Change type of varstring parameter
7725 from char * to const char *.
7726 * value.h (type_print): Update.
7727 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
7728 from char * to const char *. All callers updated.
7729 (xcoff_end_psymtab): Change type of include_list parameter
7730 from char ** to const char **. All callers updated.
7731 (swap_sym): Similarly for name parameter. All callers updated.
7732 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
7733 Use xstrdup.
7734 (process_coff_symbol): Use xstrdup.
7735 * stabsread.c (stabs_method_name_from_physname): Renamed from
7736 update_method_name_from_physname. Change result type from void
7737 to char *. All callers updated.
7738 (read_member_functions): In has_destructor case, store name in objfile
7739 obstack instead of malloc space. In !has_stub case, fix mem leak.
7740
5579a92e
TT
77412012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
7742
7743 * configure: Rebuild.
7744 * configure.ac: Put -L../bfd and -L../libiberty at the front of
7745 LDFLAGS.
7746
9058f767
KB
77472012-02-03 Kevin Buettner <kevinb@redhat.com>
7748
7749 * configure.tgt (rl78-*-elf): New target.
7750 * rl78-tdep.c: New file.
7751
5b37825d
PW
77522012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
7753
7754 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
7755 and continue the loop. Add QUIT statement.
7756
e009ee71
TT
77572012-02-03 Tom Tromey <tromey@redhat.com>
7758
7759 PR gdb/13596:
7760 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
7761 bfd_lookup_symbol_from_symtab.
7762 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7763 gdb_bfd_lookup_symbol_from_symtab.
7764
f7e44f65
JB
77652012-02-03 Joel Brobecker <brobecker@adacore.com>
7766
7767 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
7768 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
7769 symbol. Add assertion that sym2 is never NULL.
7770
2c02bd72
DE
77712012-02-02 Doug Evans <dje@google.com>
7772
7773 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
7774 "name" parameter to const char ** from char **. All callers updated.
7775 (find_pc_partial_function): Ditto.
7776 (cache_pc_function_name): Change type to const char * from char *.
7777 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
7778 (find_pc_partial_function): Update.
7779 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
7780 type of "name" parameter to const char * from char *.
7781 All uses updated.
7782 * arch-utils.c (generic_in_solib_return_trampoline): Change
7783 type of "name" parameter to const char * from char *.
7784 * arch-utils.h (generic_in_solib_return_trampoline): Update.
7785 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
7786 type of "name" parameter to const char * from char *.
7787 * gdbarch.sh (in_solib_return_trampoline): Ditto.
7788 * gdbarch.c: Regenerate.
7789 * gdbarch.h: Regenerate.
7790 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
7791 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
7792 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
7793 type of "name" parameter to const char * from char *.
7794 * skip.c (skip_function_pc): Ditto.
7795 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
7796 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
7797 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
7798 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
7799 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
7800 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
7801 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
7802 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
7803 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
7804
e886a173
PA
78052012-02-02 Pedro Alves <palves@redhat.com>
7806
7807 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
7808 the current inferior has no execution. Make sure the current
7809 remote process matches gdb's current inferior.
7810
c709a7c2
TT
78112012-02-02 Tom Tromey <tromey@redhat.com>
7812
7813 PR gdb/13405:
7814 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
7815 read-only memory.
7816
f149aabd
TT
78172012-02-02 Tom Tromey <tromey@redhat.com>
7818
7819 PR gdb/9307:
7820 * symtab.c (lookup_language_this): Set block_found.
7821
03bef283
TT
78222012-02-01 Tom Tromey <tromey@redhat.com>
7823
7824 PR gdb/13431:
7825 * jit.c (struct jit_inferior_data): Rewrite.
7826 (struct jit_objfile_data): New.
7827 (get_jit_objfile_data): New function.
7828 (add_objfile_entry): Update.
7829 (jit_read_descriptor): Return int. Replace descriptor_addr
7830 argument with inf_data. Update. Don't call error.
7831 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
7832 descriptor here.
7833 (jit_inferior_init): Don't look up descriptor. Don't call error.
7834 (jit_reset_inferior_data_and_breakpoints)
7835 (jit_inferior_created_observer): Remove.
7836 (jit_inferior_exit_hook): Update.
7837 (jit_executable_changed_observer): Remove.
7838 (jit_event_handler): Update.
7839 (free_objfile_data): Reset inferior data if needed.
7840 (_initialize_jit): Update.
7841
f0bbc364
TT
78422012-02-01 Tom Tromey <tromey@redhat.com>
7843
7844 * jit.c (bfd_open_from_target_memory): Move higher in file.
7845
47c1316c
TG
78462012-02-01 Tristan Gingold <gingold@adacore.com>
7847
7848 * libunwind-frame.c (libunwind_load): Display message if dlopen
7849 failed.
7850
8e704927
GB
78512012-02-01 Gary Benson <gbenson@redhat.com>
7852
09c7a31f 7853 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
7854 (iterate_over_symbols): Use the above.
7855 * symtab.c (iterate_over_symbols): Likewise.
7856 * language.h (language_defn->la_iterate_over_symbols): Likewise.
7857 * ada-lang.c (ada_iterate_over_symbols): Likewise.
7858 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
7859 (iterate_name_matcher): Document return values.
7860 (collect_one_symbol): Likewise.
7861 (collect_function_symbols): Likewise.
7862 (collect_symbols): Likewise.
7863
d9680e73
TT
78642012-02-01 Tom Tromey <tromey@redhat.com>
7865
7866 * ada-lang.c (resolve_subexp): Update.
7867 (ada_lookup_symbol_list): Add 'full_search' argument.
7868 (ada_iterate_over_symbols): Pass 0 as full_search argument to
7869 ada_lookup_symbol_list.
7870 (ada_lookup_encoded_symbol): Update.
7871 (get_var_value): Update.
7872 * ada-exp.y (block_lookup): Update.
7873 (write_var_or_type): Update.
7874 (write_name_assoc): Update.
7875 * ada-lang.h (ada_lookup_symbol_list): Update.
7876
72e1143f
TT
78772012-01-31 Tom Tromey <tromey@redhat.com>
7878
7879 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
7880 comment.
7881
ab2d2ad3
DE
78822012-01-31 Doug Evans <dje@google.com>
7883
7884 * symtab.h: Remove outdated comment.
e9111bf7 7885 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 7886
bc884eba
JB
78872012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
7888
7889 Fix build error in Darwin port.
7890 * i386-darwin-nat.c: Include i386-nat.h.
7891
8fc3fc34
TT
78922012-01-30 Tom Tromey <tromey@redhat.com>
7893
7894 PR breakpoints/13568:
7895 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
7896 argument. Check for recursive includes.
7897 (dwarf_decode_macros): Create an include hash.
7898
5d853008
ME
78992012-01-30 Michael Eager <eager@eagercon.com>
7900
7901 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
7902 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 7903 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
7904 (powerpc_linux_in_plt_stub): New function.
7905 (powerpc_linux_in_dynsym_resolve_code): New function.
7906 (ppc_skip_trampoline_code): New function.
7907 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
7908 Use glibc_skip_solib_resolver.
7909
40478521
JK
79102012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7911
7912 Code cleanup: Make 1440 bytes of data segment read-only.
7913 * arch-utils.c (endian_enum): Make it const char *const [].
7914 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
7915 Likewise.
7916 * breakpoint.c (always_inserted_enums): Likewise.
7917 * cli/cli-cmds.c (script_ext_enums): Likewise.
7918 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
7919 enumlist parameter const char *const *.
7920 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
7921 const char *const *.
7922 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
7923 parameter const char *const *.
7924 * cris-tdep.c (cris_modes): Make it const char *const [].
7925 * filesystem.c (target_file_system_kinds): Likewise.
7926 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
7927 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
7928 (can_use_displaced_stepping_enum, scheduler_enums)
7929 (exec_direction_names): Likewise.
7930 * language.c (_initialize_language): Make the type_or_range_names and
7931 case_sensitive_names variables const char *const [].
7932 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
7933 * python/python.c (python_excp_enums): Likewise.
7934 * remote.c (interrupt_sequence_modes): Likewise.
7935 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
7936 * serial.c (logbase_enums): Likewise.
7937 * sh-tdep.c (sh_cc_enum): Likewise.
7938 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
7939 Likewise.
7940 * symtab.c (multiple_symbols_modes): Likewise.
7941 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
7942 Likewise.
7943 * utils.c (internal_problem_modes): Likewise.
7944
b3b8b934
JK
79452012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
7946
7947 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
7948 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
7949 result.
7950
8c85a4e2
DE
79512012-01-27 Doug Evans <dje@google.com>
7952
7953 * configure.ac (with_python): Fix absolute path handling for win32.
7954 * configure: Regenerate.
7955
78d8b4d7
DE
79562012-01-26 Doug Evans <dje@google.com>
7957
eca864fe
DE
7958 * symtab.c: Whitespace cleanup, no code changes.
7959
7e082072
DE
7960 * symtab.c (lookup_symbol_in_language): Improve comment.
7961 (lookup_symbol_aux): Fix comment.
7962
7dc25483
DE
7963 * psymtab.c (add_psymbol_to_list): Result is now "void".
7964 * psympriv.h (add_psymbol_to_list): Update.
7965
78d8b4d7
DE
7966 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
7967
4c63965b
JK
79682012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 Do not open script filenames twice.
7971 * cli/cli-cmds.c (source_script_from_stream): Pass to
7972 source_python_script also STREAM.
7973 * python/py-auto-load.c (source_section_scripts): Pass to
7974 source_python_script_for_objfile also STREAM.
7975 (auto_load_objfile_script): Pass to source_python_script_for_objfile
7976 also INPUT.
7977 * python/python-internal.h (source_python_script_for_objfile): New
7978 parameter file, rename parameter file to filename.
7979 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
7980 instead if !_WIN32. Update the function comment.
7981 (source_python_script, source_python_script_for_objfile)
7982 (source_python_script): New parameter file, rename parameter file to
7983 filename. Pass FILENAME to python_run_simple_file.
7984 * python/python.h (source_python_script): New parameter file, rename
7985 parameter file to filename.
7986
88f38a04
PA
79872012-01-26 Pedro Alves <palves@redhat.com>
7988
7989 * corelow.c (core_has_fake_pid): Delete.
7990 (core_close): Delete references to `core_has_fake_pid'.
7991 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
7992 (core_open): Delete references to `core_has_fake_pid'.
7993 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
7994 the removed global.
7995
e078317b
JB
79962012-01-26 Joel Brobecker <brobecker@adacore.com>
7997
7998 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
7999 Remove language parameter from name_matcher. Adjust the comment.
8000 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8001 Remove language parameter.
8002 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8003 * linespec.c (iterate_name_matcher): Likewise.
8004 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8005 name_matcher. Adjust call accordingly.
8006 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8007 (maintenance_check_symtabs): Adjust type of parameter "fun".
8008 * psymtab.h (maintenance_check_symtabs): Likewise.
8009
74ccd7f5
JB
80102012-01-26 Joel Brobecker <brobecker@adacore.com>
8011
8012 * language.h (symbol_name_match_p_ftype): New typedef.
8013 (struct language_defn): Replace field la_symbol_name_compare
8014 by la_get_symbol_name_match_p.
8015 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8016 (ada_language_defn): Use it.
8017 * linespec.c (struct symbol_matcher_data): New type.
8018 (iterate_name_matcher): Rewrite.
8019 (iterate_over_all_matching_symtabs): Pass a pointer to
8020 a symbol_matcher_data struct to expand_symtabs_matching
8021 instead of just the lookup name.
8022 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8023 opencl-lang.c, p-lang.c, language.c: Delete field
8024 la_symbol_name_compare, and replace by NULL for new field
8025 la_get_symbol_name_match_p.
8026 * symfile.h (struct quick_symbol_functions): Update comment.
8027
5d268276
TT
80282012-01-25 Tom Tromey <tromey@redhat.com>
8029
8030 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8031 dereferencing.
8032
edcc5120
TT
80332012-01-24 Tom Tromey <tromey@redhat.com>
8034
8035 PR symtab/12406:
8036 * solib.c (update_solib_list): Update the program space's
8037 added_solibs and deleted_solibs fields.
8038 * progspace.h (struct program_space) <added_solibs,
8039 deleted_solibs>: New fields.
8040 (clear_program_space_solib_cache): Declare.
8041 * progspace.c (release_program_space): Call
8042 clear_program_space_solib_cache.
8043 (clear_program_space_solib_cache): New function.
8044 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8045 bpstat_stop_status. Use handle_solib_event.
8046 * breakpoint.c: Include gdb_regex.h.
8047 (print_solib_event): New function.
8048 (bpstat_print): Use print_solib_event.
8049 (bpstat_stop_status): Add special case for bp_shlib_event.
8050 (handle_solib_event): New function.
8051 (bpstat_what): Use handle_solib_event.
8052 (struct solib_catchpoint): New.
8053 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8054 (breakpoint_hit_catch_solib, check_status_catch_solib)
8055 (print_it_catch_solib, print_one_catch_solib)
8056 (print_mention_catch_solib, print_recreate_catch_solib): New
8057 functions.
8058 (catch_solib_breakpoint_ops): New global.
8059 (catch_load_or_unload, catch_load_command_1)
8060 (catch_unload_command_1): New functions.
8061 (internal_bkpt_check_status): Add special case for
8062 bp_shlib_event.
8063 (internal_bkpt_print_it): Use print_solib_event.
8064 (initialize_breakpoint_ops): Initialize
8065 catch_solib_breakpoint_ops.
8066 (_initialize_breakpoint): Register "catch load" and "catch
8067 unload".
8068 * breakpoint.h (handle_solib_event): Declare.
8069 * NEWS: Add entry for "catch load" and "catch unload".
8070
fa864999
TT
80712012-01-24 Tom Tromey <tromey@redhat.com>
8072
8073 * ada-lang.c: Include gdb_vecs.h.
8074 * charset.c: Include gdb_vecs.h.
8075 * tracepoint.h: Include gdb_vecs.h.
8076 * gdb_vecs.h: New file.
8077
f90263c1
TT
80782012-01-24 Pedro Alves <pedro@codesourcery.com>
8079
8080 * breakpoint.c (breakpoint_hit_catch_fork)
8081 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8082 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8083 * infrun.c (inferior_has_forked, inferior_has_vforked)
8084 (inferior_has_execd, inferior_has_called_syscall): Delete.
8085 (handle_syscall_event): Get syscall_number from the execution
8086 control state's wait status.
8087 (wait_for_inferior): Don't clear syscall_number.
8088
09ac7c10
TT
80892012-01-24 Pedro Alves <palves@redhat.com>
8090
8091 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8092 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8093 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8094 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8095 `ws' parameter.
8096 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8097 false for events other than TARGET_SIGNAL_TRAP.
8098 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8099 Add `ws' parameter.
8100 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8101 events other than TARGET_SIGNAL_TRAP.
8102 (tracepoint_breakpoint_hit): Add `ws' parameter.
8103 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8104 parameter.
8105 (bpstat_stop_status): Same.
8106 (pc_at_non_inline_function): Same.
8107 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8108 to pass the current event's waitstatus to bpstat_stop_status
8109 and pc_at_non_inline_function.
8110
86eb7e95
JK
81112012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8112
8113 Code cleanup.
8114 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8115 Update the function comment for it.
8116 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8117 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8118 for STREAM.
8119
a9b3a50f
PA
81202012-01-24 Pedro Alves <palves@redhat.com>
8121
8122 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8123 outside `bs->stop' block.
8124 (bpstat_what): Rework bp_shlib_event handling.
8125 (internal_bkpt_check_status): If the breakpoint is a
8126 bp_shlib_event, then set bs->stop and bs->print if
8127 stop_on_solib_events is set.
8128
53fe1783
GB
81292012-01-24 Gary Benson <gbenson@redhat.com>
8130
8131 Delete #if 0'd out code.
8132 * stack.c (print_frame_label_vars): Remove.
8133 (catch_info): Likewise.
8134 (_initialize_stack): Remove "info catch" command.
8135 * NEWS: Mention the above.
8136
49c62f2e
PA
81372012-01-24 Pedro Alves <palves@redhat.com>
8138
8139 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8140 it.
8141 (remote_notice_new_inferior): If the remote end doesn't support
8142 the multiprocess extensions, then the PID is fake.
8143 (add_current_inferior_and_thread): New.
8144 (remote_start_remote): Use it.
8145 (extended_remote_attach_1): Adjust.
8146 (extended_remote_create_inferior_1): Use
8147 add_current_inferior_and_thread.
8148
d0d8b0c6
JK
81492012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8150
8151 Fix watchpoints to be specific for each inferior.
8152 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8153 current_program_space.
8154 * i386-nat.c (i386_inferior_data_cleanup): New.
8155 (i386_inferior_data_get): Replace variable inf_data_local by an
8156 inferior_data call.
8157 (i386_use_watchpoints): Initialize i386_inferior_data.
8158 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8159 specific iterate_over_lwps.
8160
4403d8e9
JK
81612012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8162
8163 Fix watchpoints across inferior fork.
8164 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8165 comment for linux_nat_iterate_watchpoint_lwps.
8166 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8167 linux_nat_iterate_watchpoint_lwps.
8168 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8169 * i386-linux-nat.c (update_debug_registers_callback): Update the
8170 comment for linux_nat_iterate_watchpoint_lwps.
8171 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8172 linux_nat_iterate_watchpoint_lwps.
8173 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8174 * i386-nat.c: Include inferior.h.
8175 (dr_mirror): Remove.
8176 (i386_inferior_data, struct i386_inferior_data)
8177 (i386_inferior_data_get): New.
8178 (i386_debug_reg_state): Use i386_inferior_data_get.
8179 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8180 (i386_insert_watchpoint, i386_remove_watchpoint)
8181 (i386_stopped_data_address, i386_insert_hw_breakpoint)
8182 (i386_remove_hw_breakpoint): New variable state, use
8183 i386_debug_reg_state instead of DR_MIRROR.
8184 * linux-nat.c (delete_lwp): New declaration.
8185 (num_lwps): Move here from downwards.
8186 (delete_lwp_cleanup): New.
8187 (linux_child_follow_fork): Create new child_lp, call
8188 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
8189 PTRACE_DETACH.
8190 (num_lwps): Move upwards.
8191 (linux_nat_iterate_watchpoint_lwps): New.
8192 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
8193 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
8194
2992c9a7 81952012-01-24 Joel Brobecker <brobecker@adacore.com>
8196
8197 GDB 7.4 released.
8198
e360902b
PA
81992012-01-23 Pedro Alves <palves@redhat.com>
8200
8201 * top.c (caution): Rename to ...
8202 (confirm): ... this.
8203 (show_caution): Rename to ...
8204 (show_confirm): ... this.
8205 (quit_cover): Adjust.
8206 (init_main): Adjust.
8207 * top.h (caution): Rename to ...
8208 (confirm): ... this.
8209 * utils.c (internal_vproblem, defaulted_query): Adjust.
8210
050a2e1d
PA
82112012-01-23 Pedro Alves <palves@redhat.com>
8212
8213 * top.c (caution): Update comment.
8214 (execute_command): Don't consider the current value of `caution'.
8215
77a35dd8
JK
82162012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8217
8218 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
8219
a71b5a38
UW
82202012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
8221
8222 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
8223 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
8224 * target.c (target_fileio_pwrite): Remove buffer address from
8225 debug output.
8226 (target_fileio_pread): Likewise.
8227
d99bd577
UW
82282012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8229
8230 * NEWS: Document remote "info proc" and "generate-core-file".
8231
35c2fab7
UW
82322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8233
8234 * gdbarch.sh (find_memory_regions): New callback.
8235 * gdbarch.c, gdbarch.h: Regenerate.
8236
8237 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
8238 callback before falling back to target method.
8239
8240 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
8241 (linux_target_install_ops): No longer install it.
8242
8243 * linux-tdep.c (linux_find_memory_regions): New function.
8244 (linux_init_abi): Install it.
8245
6432734d
UW
82462012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8247
8248 * gdbarch.sh (make_corefile_notes): New architecture callback.
8249 * gdbarch.c: Regenerate.
8250 * gdbarch.h: Likewise.
8251
8252 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
8253 before target_make_corefile_notes. If NULL is returned, the
8254 target does not support core file generation.
8255
8256 * linux-nat.c: Include "linux-tdep.h".
8257 (find_signalled_thread, find_stop_signal): Remove.
8258 (linux_nat_do_thread_registers): Likewise.
8259 (struct linux_nat_corefile_thread_data): Likewise.
8260 (linux_nat_corefile_thread_callback): Likewise.
8261 (iterate_over_spus): Likewise.
8262 (struct linux_spu_corefile_data): Likewise.
8263 (linux_spu_corefile_callback): Likewise.
8264 (linux_spu_make_corefile_notes): Likewise.
8265 (linux_nat_collect_thread_registers): New function.
8266 (linux_nat_make_corefile_notes): Replace contents by call to
8267 linux_make_corefile_notes passing linux_nat_collect_thread_registers
8268 as native-only callback.
8269
8270 * linux-tdep.h: Include "bfd.h".
8271 (struct regcache): Add forward declaration.
8272 (linux_collect_thread_registers_ftype): New typedef.
8273 (linux_make_corefile_notes): Add prototype.
8274 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
8275 "regset.h", and "elf-bfd.h".
8276 (find_signalled_thread, find_stop_signal): New functions.
8277 (linux_spu_make_corefile_notes): Likewise.
8278 (linux_collect_thread_registers): Likewise.
8279 (struct linux_corefile_thread_data): New data structure.
8280 (linux_corefile_thread_callback): New funcion.
8281 (linux_make_corefile_notes): Likewise.
8282 (linux_make_corefile_notes_1): Likewise.
8283 (linux_init_abi): Install it.
8284
3030c96e
UW
82852012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8286
8287 * gdbarch.sh (info_proc): New callback.
8288 * gdbarch.c, gdbarch.h: Regenerate.
8289
8290 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
8291 before falling back to the target info_proc callback.
8292
8293 * linux-nat.c: Do not include "cli/cli-utils.h".
8294 (linux_nat_info_proc): Remove.
8295 (linux_target_install_ops): No longer install it.
8296
8297 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
8298 (read_mapping): New function.
8299 (linux_info_proc): Likewise.
8300 (linux_init_abi): Install it.
8301
145b16a9
UW
83022012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8303
8304 * defs.h (enum info_proc_what): Moved here from linux-nat.c
8305 * infcmd.c: (info_proc_cmd_1): New function.
8306 (info_proc_cmd): New function, moved here from equivalent routine
8307 orignally in linux-nat.c.
8308 (info_proc_cmd_mappings): Likewise.
8309 (info_proc_cmd_stat): Likewise.
8310 (info_proc_cmd_status): Likewise.
8311 (info_proc_cmd_cwd): Likewise.
8312 (info_proc_cmd_cmdline): Likewise.
8313 (info_proc_cmd_exe): Likewise.
8314 (info_proc_cmd_all): Likewise.
8315 (_initialize_infcmd): Install "info proc" command and subcommands.
8316
8317 * target.h (struct target_ops): Add to_info_proc.
8318 (target_info_proc): Add prototype.
8319 * target.c (target_info_proc): New function.
8320
8321 * procfs.c (procfs_info_proc): Add prototype.
8322 (info_proc_cmd): Rename into ...
8323 (procfs_info_proc): ... this. Update argument types as appropriate
8324 for a to_info_proc implementation. Handle "what" argument.
8325 (procfs_target): Install procfs_info_proc.
8326 (_initialize_procfs): No longer install "info proc" command.
8327
8328 * linux-nat.c: (enum info_proc_what): Remove.
8329 (linux_nat_info_proc_cmd_1): Rename into ...
8330 (linux_nat_info_proc): ... this. Update argument types as appropriate
8331 for a to_info_proc implementation.
8332 (linux_nat_info_proc_cmd): Remove.
8333 (linux_nat_info_proc_cmd_mappings): Likewise.
8334 (linux_nat_info_proc_cmd_stat): Likewise.
8335 (linux_nat_info_proc_cmd_status): Likewise.
8336 (linux_nat_info_proc_cmd_cwd): Likewise.
8337 (linux_nat_info_proc_cmd_cmdline): Likewise.
8338 (linux_nat_info_proc_cmd_exe): Likewise.
8339 (linux_nat_info_proc_cmd_all): Likewise.
8340 (linux_target_install_ops): Install linux_nat_info_proc.
8341 (_initialize_linux_nat): No longer install "info proc" command
8342 and subcommands.
8343
b9e7b9c3
UW
83442012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
8345
8346 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
8347 * config.in, configure: Regenerate.
8348
8349 * target.h (struct target_ops): Add to_fileio_readlink.
8350 (target_fileio_readlink): Add prototype.
8351 * target.c (target_fileio_readlink): New function.
8352
8353 * inf-child.c: Conditionally include <sys/param.h>.
8354 (inf_child_fileio_readlink): New function.
8355 (inf_child_target): Install it.
8356
8357 * remote.c (PACKET_vFile_readlink): New enum value.
8358 (remote_hostio_readlink): New function.
8359 (init_remote_ops): Install it.
8360 (_initialize_remote): Handle vFile:readlink packet type.
8361
7313baad
UW
83622012-01-20 Pedro Alves <palves@redhat.com>
8363 Ulrich Weigand <ulrich.weigand@linaro.org>
8364
8365 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
8366 * config.in, configure: Regenerate.
8367
8368 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
8369 to_fileio_pread, to_fileio_close, to_fileio_unlink.
8370 (target_fileio_open): Add prototype.
8371 (target_fileio_pwrite): Likewise.
8372 (target_fileio_pread): Likewise.
8373 (target_fileio_close): Likewise.
8374 (target_fileio_unlink): Likewise.
8375 (target_fileio_read_alloc): Likewise.
8376 (target_fileio_read_stralloc): Likewise.
8377
8378 * target.c: Include "gdb/fileio.h".
8379 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
8380 (default_fileio_target): New function.
8381 (target_fileio_open): Likewise.
8382 (target_fileio_pwrite): Likewise.
8383 (target_fileio_pread): Likewise.
8384 (target_fileio_close): Likewise.
8385 (target_fileio_unlink): Likewise.
8386 (target_fileio_close_cleanup): Likewise.
8387 (target_fileio_read_alloc_1): Likewise.
8388 (target_fileio_read_alloc): Likewise.
8389 (target_fileio_read_stralloc): Likewise.
8390
8391 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
8392 <fcntl.h>, and <unistd.h>.
8393 (inf_child_fileio_open_flags_to_host): New function.
8394 (inf_child_errno_to_fileio_error): Likewise.
8395 (inf_child_fileio_open): Likewise.
8396 (inf_child_fileio_pwrite): Likewise.
8397 (inf_child_fileio_pread): Likewise.
8398 (inf_child_fileio_close): Likewise.
8399 (inf_child_fileio_unlink): Likewise.
8400 (inf_child_target): Install to_fileio routines.
8401
8402 * remote.c (init_remote_ops): Install to_fileio routines.
8403
901f9912
UW
84042012-01-20 Pedro Alves <palves@redhat.com>
8405 Ulrich Weigand <ulrich.weigand@linaro.org>
8406
8407 * remote.c (remote_multi_process_p): Only check for multi-process
8408 protocol feature, do not check for extended protocol.
8409 (remote_supports_multi_process): Check for extended protocol here.
8410 (set_general_process): Likewise.
8411 (extended_remote_kill): Likewise.
8412 (remote_pid_to_str): Likewise.
8413 (remote_query_supported): Always query multiprocess mode.
8414
e714e1bf
UW
84152012-01-20 Pedro Alves <palves@redhat.com>
8416 Ulrich Weigand <ulrich.weigand@linaro.org>
8417
8418 * inferior.h (struct inferior): Add fake_pid_p.
8419 * inferior.c (exit_inferior_1): Clear fake_pid_p.
8420 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
8421 magic_null_ptid since the remote side doesn't provide a real PID.
8422
50897289
TT
84232012-01-19 Tom Tromey <tromey@redhat.com>
8424
8425 * NEWS: Combine the two Python sections.
8426
1afc2033
JK
84272012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8428
8429 * target.h (target_close): Update comment on the target's unpush state.
8430
305436e0
PA
84312012-01-19 Pedro Alves <palves@redhat.com>
8432
8433 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
8434 linux_nat_async directly instead of going through the target
8435 vector.
8436 * target.c (unpush_target): Close target after unpushing it, not
8437 before.
8438
49323895
GB
84392012-01-19 Gary Benson <gbenson@redhat.com>
8440
8441 * mdebugread.c (sort_blocks): Replace integer constants with ones
8442 derived from FIRST_LOCAL_BLOCK.
8443
1db33378
PP
84442012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
8445 Jan Kratochvil <jan.kratochvil@redhat.com>
8446
8447 PR gdb/9538
8448 * symfile.c (find_separate_debug_file): New function.
8449 (terminate_after_last_dir_separator): Likewise.
8450 (find_separate_debug_file_by_debuglink): Also try realpath.
8451 * configure.ac (AC_CHECK_FUNCS): Add lstat.
8452 * configure: Regenerate.
8453 * config.in: Regenerate.
8454
f83d8a90
DE
84552012-01-18 Doug Evans <dje@google.com>
8456
8457 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
8458 (main.o): Remove rule.
8459 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
8460 (--with-sysroot): Rewrite.
8461 * configure: Regenerate.
8462 * config.in: Regenerate.
8463
2dbca4d6
SDJ
84642012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
8465
8466 * parse.c (initialize_expout): New function.
8467 (reallocate_expout): Likewise.
8468 (parse_exp_in_context): Use `initialize_expout' and
8469 `reallocate_expout' when appropriate.
8470
0695b514
PA
84712012-01-18 Pedro Alves <palves@redhat.com>
8472
8473 * record.c (struct record_breakpoint, record_breakpoint_p)
8474 (record_breakpoints): New.
8475 (record_insert_breakpoint, record_remove_breakpoint): Manage
8476 record breakpoints list. Only remove breakpoints from the
8477 inferior if they had been inserted there in the first place.
8478
136e1c30
DE
84792012-01-17 Doug Evans <dje@google.com>
8480
8481 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
8482 if we know we don't have a file name to look for.
8483
c0bf857d
PA
84842012-01-17 Pedro Alves <palves@redhat.com>
8485
8486 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
8487 the frame's stop reason is UNWIND_UNAVAILABLE.
8488
b486de60
JK
84892012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8490
8491 Fix compilation error.
8492 * m2-exp.y (yyerror): Use ANSI C prototype.
8493
d04550a6
SDJ
84942012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8495
8496 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
8497 (growbuf_by_size): Likewise.
8498 (yyerror): Likewise.
8499 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
8500 (modblock): Remove variable (was #if 0'ed).
8501 (parse_number): Convert prototype from K&R to ANSI C.
8502 (yyerror): Likewise.
8503 * objc-exp.y (parse_number): Likewise.
8504 (yyerror): Likewise.
8505 (yylex): Remove #if 0'ed code.
8506 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
8507 (yyerror): Likewise.
8508
4aac40c8
TT
85092012-01-16 Tom Tromey <tromey@redhat.com>
8510
8511 * NEWS: Add item.
8512 * symtab.h (compare_filenames_for_search): Declare.
8513 * symtab.c (compare_filenames_for_search): New function.
8514 (iterate_over_some_symtabs): Use it.
8515 * symfile.h (struct quick_symbol_functions)
8516 <map_symtabs_matching_filename>: Change spec.
8517 * psymtab.c (partial_map_symtabs_matching_filename): Use
8518 compare_filenames_for_search. Update for new spec.
8519 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
8520 compare_filenames_for_search. Update for new spec.
8521 * breakpoint.c (clear_command): Use compare_filenames_for_search.
8522
cafec441
TT
85232012-01-16 Tom Tromey <tromey@redhat.com>
8524
8525 PR python/13281:
8526 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
8527 (struct main_type) <flag_flag_enum>: New field.
8528 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
8529 * NEWS: Add entries.
8530 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
8531 enums.
8532 * python/lib/gdb/printing.py (_EnumInstance): New class.
8533 (FlagEnumerationPrinter): Likewise.
8534
983af33b
SDJ
85352012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
8536
8537 * breakpoint.c (create_sals_from_address_default): New function.
8538 (create_breakpoints_sal_default): Likewise.
8539 (decode_linespec_default): Likewise.
8540 (is_marker_spec): Removed.
8541 (strace_marker_p): New function.
8542 (init_breakpoint_sal): Using `strace_marker_p' instead of
8543 `is_marker_spec'.
8544 (create_breakpoint): Call method `create_sals_from_address' from
8545 breakpoint_ops, replacing code that created SALs conditionally
8546 on the type of the breakpoint. Call method `create_breakpoints_sal',
8547 replacing code that created breakpoints conditionally on the type
8548 wanted.
8549 (base_breakpoint_create_sals_from_address): New function.
8550 (base_breakpoint_create_breakpoints_sal): Likewise.
8551 (base_breakpoint_decode_linespec): Likewise.
8552 (base_breakpoint_ops): Add methods
8553 `base_breakpoint_create_sals_from_address',
8554 `base_breakpoint_create_breakpoints_sal' and
8555 `base_breakpoint_decode_linespec'.
8556 (bkpt_create_sals_from_address): New function.
8557 (bkpt_create_breakpoints_sal): Likewise.
8558 (bkpt_decode_linespec): Likewise.
8559 (tracepoint_create_sals_from_address): Likewise.
8560 (tracepoint_create_breakpoints_sal): Likewise.
8561 (tracepoint_decode_linespec): Likewise.
8562 (strace_marker_create_sals_from_address): Likewise.
8563 (strace_marker_create_breakpoints_sal): Likewise.
8564 (strace_marker_decode_linespec): Likewise.
8565 (strace_marker_breakpoint_ops): New variable.
8566 (addr_string_to_sals): Remove `marker_spec'. Call method
8567 `decode_linespec' from breakpoint_ops, replacing code that decoded
8568 an address string into a SAL. Use `strace_marker_p' instead of
8569 `marker_spec'.
8570 (strace_command): Decide whether we are dealing with a static
8571 tracepoint with marker or not. Use the appropriate breakpoint_ops.
8572 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
8573 * breakpoint.h (linespec_result, linespec_sals): New forward
8574 declarations.
8575 (breakpoint_ops) <create_sals_from_address>,
8576 <create_breakpoints_sal>, <decode_linespec>: New methods.
8577
4795f398
DE
85782012-01-14 Doug Evans <dje@google.com>
8579
8580 * NEWS: Update text for "maint set python print-stack".
8581 It is deprecated in gdb 7.4 and deleted in 7.5.
8582
ee5106fe
EZ
85832012-01-13 Eli Zaretskii <eliz@gnu.org>
8584
8585 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
8586 including curses.h.
8587
b161e06f
JK
85882012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8589
8590 * configure: Regenerate.
8591 * config.in: Regenerate.
8592
85254831
KS
85932012-01-12 Keith Seitz <keiths@redhat.com>
8594
8595 PR mi/10586
8596 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
8597 (ANONYMOUS_UNION_NAME): Define.
8598 (is_path_expr_parent): New function.
8599 (get_path_expr_parent): New function.
8600 (is_anonymous_child): New function.
8601 (create_child_with_value): If the child is anonymous and without
8602 a name, assign an object name to it.
8603 (c_describe_child): Use get_path_expr_parent to determine
8604 the parent expression.
8605 If there field represents an anonymous struct or union and
8606 has no name, set an appropriate display name and expression.
8607 (cplus_describe_child): Likewise.
8608
620fa63a
PA
86092012-01-12 Pedro Alves <palves@redhat.com>
8610
8611 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
8612 available when %ebp is found to be zero (outermost).
8613
2efa2c79
AT
86142012-01-11 Andreas Tobler <andreast@fgznet.ch>
8615
8616 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
8617 an internal gdb_static_assert.
8618 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
8619
88e7d25d
TT
86202012-01-11 Tom Tromey <tromey@redhat.com>
8621
8622 PR gdb/9598:
8623 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
8624 catch" and "catch throw".
8625
72384ba3
PH
86262012-01-11 Paul Hilfinger <hilfingr@adacore.com>
8627
8628 * blockframe.c (block_innermost_frame): Start search from selected
8629 frame, if present, or otherwise the current frame.
8630
8631 * c-exp.y (variable): Update innermost_block for
8632 'block COLONCOLON NAME' clause.
8633 * m2-exp.y (variable): Ditto.
8634 * objc-exp.y (variable): Ditto.
8635
065a711f
TT
86362012-01-10 Tom Tromey <tromey@redhat.com>
8637
8638 PR python/13199:
8639 * python/python.c (finish_python_initialization): Set sys.argv.
8640
f3f5162e
DE
86412012-01-10 Doug Evans <dje@google.com>
8642
8643 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
8644 "want_line_info". All callers updated.
8645 (dwarf_decode_lines_1): New function.
8646 (handle_DW_AT_stmt_list): Add function comment.
8647 New arg "want_line_info". All callers updated.
8648 (read_file_scope,read_type_unit_scope): Move comment from
8649 handle_DW_AT_stmt_list to here.
8650
9934703b
JK
86512012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8652
8653 Fix regression after libiberty/ update for GCC PR 6057 and others.
8654 * c-exp.y (operator) <OPERATOR DELETE>
8655 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8656 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
8657 (make_builtin_type, make_name): New variable i, add gdb_assert.
8658 (operator) <OPERATOR NEW>: Update ARGS to 3.
8659 (operator) <OPERATOR DELETE>: Add trailing space.
8660 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
8661 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
8662 * cp-support.c (cp_canonicalize_string): Check NULL from
8663 cp_comp_to_string, call warning and return.
8664
06b9f45f
JK
86652012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8666
8667 Fix duplicate .o files after omitting libbfd.a.
8668 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
8669 (SFILES): Add corelow.c.
8670 (COMMON_OBS): Add corelow.o.
8671 (ALLDEPFILES): Remove corelow.c.
8672 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
8673 * config/alpha/alpha-osf3.mh: Likewise.
8674 * config/alpha/fbsd.mh: Likewise.
8675 * config/arm/nbsdaout.mh: Likewise.
8676 * config/arm/nbsdelf.mh: Likewise.
8677 * config/i386/i386gnu.mh: Likewise.
8678 * config/ia64/hpux.mh: Likewise.
8679 * config/ia64/linux.mh: Likewise.
8680 * config/m32r/linux.mh: Likewise.
8681 * config/m68k/linux.mh: Likewise.
8682 * config/mips/irix5.mh: Likewise.
8683 * config/mips/irix6.mh: Likewise.
8684 * config/pa/hpux.mh: Likewise.
8685 * config/pa/linux.mh: Likewise.
8686 * config/powerpc/aix.mh: Likewise.
8687 * config/sparc/linux.mh: Likewise.
8688 * config/sparc/linux64.mh: Likewise.
8689 * config/sparc/sol2.mh: Likewise.
8690 * config/vax/vax.mh: Likewise.
8691 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
8692 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
8693 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
8694 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
8695 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
8696 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
8697 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
8698 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
8699 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
8700 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
8701 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
8702 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
8703 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
8704 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
8705 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
8706 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
8707 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
8708 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
8709 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
8710 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
8711 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
8712 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
8713 corelow.o from gdb_target_obs.
8714 * corefile.c (core_target): Update the comment on NULL value.
8715 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
8716 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
8717 MATCHES. Drop YUMMY set on NULL.
8718 (core_close): Do not call exit_inferior_silent on zero PID. Do not
8719 reclaim CORE_DATA if it is already NULL.
8720
34365054
DE
87212012-01-09 Doug Evans <dje@google.com>
8722
8723 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
8724 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
8725
696166a3
KS
87262012-01-09 Keith Seitz <keiths@redhat.com>
8727
8728 * breakpoint.c (wrapper.h): Don't include.
8729
8e7b59a5
KS
87302012-01-09 Keith Seitz <keiths@redhat.com>
8731
8732 * Makefile.in (SFILES): Remove wrapper.c.
8733 (HFILES_NO_SRCDIR): Remove wrapper.h.
8734 (COMMON_OBS): Remove wrapper.o.
8735 * cli/cli-interp.c: Don't inlude wrapper.h.
8736 * corelow.c: Likewise.
8737 (core_open): Replace gdb_target_find_new_threads with
8738 TRY_CATCH around target_find_new_threads.
8739 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
8740 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
8741 * varobj.c (varobj_create): Likewise for parse_exp_1 and
8742 evaluate_expression.
8743 (varobj_set_value): Likewise for evaluate_expression and
8744 value_assign.
8745 (install_new_variable): Likewise for value_fetch_lazy.
8746 (adjust_value_for_child_access): Likewise for value_ind.
8747 (c_describe_child): Likewise for value_subscript and
8748 value_ind.
8749 (c_value_of_root): Likewise for evaluate_expression.
8750 * wrapper.c: Remove.
8751 * wrapper.h: Remove.
8752
1a4eeb98
DE
87532012-01-09 Doug Evans <dje@google.com>
8754
9ff913ba
DE
8755 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
8756 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
8757 "abfd" args with "section". All callers updated.
8758 Error checking code moved ...
8759 (error_check_comp_unit_head): ... here. New function.
8760 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
8761 Delete arg "abfd". New arg "type_offset". All callers updated.
8762 (create_debug_types_hash_table): Simplify by using
8763 read_and_check_type_unit_head.
8764
1a4eeb98
DE
8765 * parser-defs.h (namecopy): Delete.
8766 * parse.c (namecopy, namecopy_size): Move into copy_name.
8767
2e6af8c0
JK
87682012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8769
8770 Partially fix duplicate .o files after omitting libbfd.a.
8771 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
8772 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8773 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
8774 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8775 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
8776 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
8777 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
8778
9f2f828a
PA
87792012-01-09 Pedro Alves <palves@redhat.com>
8780
8781 * MAINTAINERS: Update my email address.
8782
4d72c0bc
DE
87832012-01-08 Doug Evans <dje@google.com>
8784
d467dd73
DE
8785 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
8786 n_type_units. Rename type_comp_units to all_type_units.
8787 All uses updated.
8788 (add_signatured_type_cu_to_table): Renamed from
8789 add_signatured_type_cu_to_list. All callers updated.
8790
4d72c0bc
DE
8791 * gdbtypes.h (struct cplus_struct_type): Delete member
8792 nfn_fields_total. All uses removed.
8793
21b2bd31
DE
87942012-01-06 Doug Evans <dje@google.com>
8795
8796 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
8797 to top of file.
8798 (dwarf2_find_comp_unit): Delete.
8799 (process_psymtab_comp_unit): Make result "void".
8800 Delete args buffer, info_ptr, buffer_size, and replace with
8801 "section". All callers updated.
8802 (dwarf2_build_psymtabs_hard): Simplify.
8803
bfd189b1
SDJ
88042012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
8805 Thiago Jung Bauermann <bauerman@br.ibm.com>
8806
8807 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
8808 before `struct gdb_exception'.
8809 * breakpoint.c (update_global_location_list_nothrow)
8810 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
8811 * cp-abi.c (value_rtti_type): Likewise.
8812 * cp-support.c (cp_validate_operator): Likewise.
8813 * infrun.c (insert_exception_resume_breakpoint)
8814 (check_exception_resume, keep_going): Likewise.
8815 * mi-interp.c (mi_breakpoint_created)
8816 (mi_breakpoint_modified): Likewise.
8817 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
8818 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
8819 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
8820
6b07635f
DE
88212012-01-05 Doug Evans <dje@google.com>
8822
0b30b85c
DE
8823 * dwarf2read.c (statement_prologue): Delete, unused.
8824
98714339
DE
8825 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
8826 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
8827
6b07635f
DE
8828 * dwarf2read.c (comp_unit_header): Delete, unused.
8829
761f4555
UW
88302012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
8831
8832 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
8833 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
8834
2ca0b532
PA
88352012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
8836
8837 * infrun.c (normal_stop): Don't skip calling the normal_stop
8838 observers if the thread was doing a multi-step, but stopped for
8839 some reason other than stepping.
8840
50aeff07
PA
88412012-01-05 Pedro Alves <alves.ped@gmail.com>
8842
8843 * cli/cli-decode.h: Add comments.
8844 (CMD_LIST_AMBIGUOUS): Moved to command.h
8845 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
8846 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
8847 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
8848 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
8849 (add_com, add_com_alias, add_info, add_info_alias)
8850 (complete_on_cmdlist, complete_on_enum, help_list): Remove
8851 declarations.
8852 * command.h: Add and adjust comments.
8853 (CMD_LIST_AMBIGUOUS): Moved here.
8854 (help_cmd, help_cmd_list): Delete declarations.
8855
5953832c
DE
88562012-01-04 Doug Evans <dje@google.com>
8857
e5fe5e75
DE
8858 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
8859 All callers updated.
8860 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
8861 Replace all arguments with "per_cu". All callers updated.
8862
28dee7f5
DE
8863 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
8864
23745b47
DE
8865 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
8866 New arg "per_cu". All callers updated.
8867
5953832c
DE
8868 Delete #if 0'd out code.
8869 * language.c (binop_result_type): Delete.
8870 (simple_type, ordered_type, same_type, integral_type): Delete.
8871 (numeric_type, character_type, string_type, boolean_type): Delete.
8872 (float_type, structured_type): Delete.
8873 * language.h: Update.
8874
0f5b7562
TT
88752012-01-04 Tom Tromey <tromey@redhat.com>
8876
8877 * python/py-value.c (valpy_binop): Initialize 'res_val'.
8878
78218f56
JB
88792012-01-04 Joel Brobecker <brobecker@adacore.com>
8880
8881 * corefile.c (close_exec_file): Delete.
8882 (reopen_exec_file): Remove commented out code that seems related
8883 to close_exec_file, which is being deleted here.
8884 * inferior.h (close_exec_file): Delete.
8885 * fork-child.c (fork_inferior): Remove call to fork_inferior.
8886
0fcd72ba
JB
88872012-01-04 Joel Brobecker <brobecker@adacore.com>
8888
8889 * ada-lang.c: #include "cli/cli-utils.h".
8890 (get_selections): Use skip_spaces.
8891 (ada_get_next_arg): Use skip_spaces and skip_to_space.
8892 (catch_ada_exception_command_split): Use skip_spaces.
8893 (ada_decode_assert_location): Likewise.
8894
1dabb4c4
JB
88952012-01-04 Joel Brobecker <brobecker@adacore.com>
8896
8897 * linespec.c (decode_line_internal): Check for C++ or Java
8898 compound constructs only if the current language is C, C++
8899 or Java.
8900
5931a2fa
JK
89012012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
8902
8903 Revert:
8904 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8905 Joel Brobecker <brobecker@adacore.com>
8906 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8907 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8908 3 times.
8909 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8910 fall through into AT_ENTRY_POINT.
8911 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
8912 DUMMY_ADDR with it.
8913 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
8914 PPC_INSN_SIZE skip to 3 times.
8915
1a2da5ee
JB
89162012-01-04 Joel Brobecker <brobecker@adacore.com>
8917
8918 * linespec.c (add_minsym): Preserve function descriptors.
8919
8645ff69
UW
89202012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
8921
8922 * breakpoint.c (all_locations_are_pending): Consider locations
8923 in program spaces executing during startup pending as well.
8924
0b302171
JB
89252012-01-04 Joel Brobecker <brobecker@adacore.com>
8926
8927 Copyright year update in most files of the GDB Project.
8928
8ba098ad
JB
89292012-01-04 Joel Brobecker <brobecker@adacore.com>
8930
8931 * copyright.sh: Delete.
8932 * copyright.py: Rewrite.
8933
09c01c30
JB
89342012-01-04 Joel Brobecker <brobecker@adacore.com>
8935
8936 * gnulib/extra/update-copyright: New file, imported from gnulib.
8937
3c36c0af
JB
89382012-01-04 Joel Brobecker <brobecker@adacore.com>
8939
8940 * README (Copyright and License Notices): New section.
8941
888fe1e1
TT
89422012-01-03 Tom Tromey <tromey@redhat.com>
8943
8944 PR python/12533:
8945 * python/py-value.c (valpy_dereference, valpy_get_address
8946 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
8947 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
8948 (valpy_absolute, valpy_richcompare): Free intermediate values.
8949
6e681866
JB
89502011-01-03 Joel Brobecker <brobecker@adacore.com>
8951
8952 * ada-lang.c: Reformat the copyright notice.
8953
0cd09acb
JK
89542012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8955
8956 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
8957 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
8958 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
8959 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
8960 Revert this part of:
8961 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8962 Build gdb directly from *.o files not using libgdb.a.
8963 * Makefile.in (COMMON_OBS): Remove solib-target.o.
8964
12c3e59c
JB
89652012-01-02 Joel Brobecker <brobecker@adacore.com>
8966
8967 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
8968 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
8969 Reformat the copyright header.
8970
11bf1490
JK
89712012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8972
8973 Revert this part of:
8974 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8975 Remove the gdbtui binary.
8976 * gdb.c (main): Remove args.interpreter_p initialization.
8977 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
8978 * main.h (struct captured_main_args): Remove interpreter_p.
8979
1fef196f
JB
89802012-01-02 Joel Brobecker <brobecker@adacore.com>
8981
8982 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
8983
67827812
JB
89842012-01-02 Joel Brobecker <brobecker@adacore.com>
8985
8986 * top.c (print_gdb_version): Update copyright year.
8987
a4d0b831
YQ
89882012-01-02 Yao Qi <yao@codesourcery.com>
8989
8990 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
8991
b5914469
JK
89922012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8993 Joel Brobecker <brobecker@adacore.com>
8994
8995 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
8996 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
8997 3 times.
8998 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
8999 fall through into AT_ENTRY_POINT.
9000 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9001 DUMMY_ADDR with it.
9002 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9003 PPC_INSN_SIZE skip to 3 times.
9004
8da828f7
JK
90052012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9006
9007 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9008 the return value.
9009 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9010
8574e74b
JK
90112012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9012
9013 Build gdb directly from *.o files not using libgdb.a.
9014 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9015 (COMMON_OBS): Remove solib-target.o.
9016 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9017 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9018 (LIBGDB_OBS, libgdb.a): Move it above.
9019 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9020 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9021 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9022 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9023 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9024 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9025 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9026 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9027 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9028 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9029 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9030 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9031 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9032 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9033 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9034 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9035 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9036 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9037 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9038 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9039 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9040 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9041 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9042 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9043 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9044 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9045 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9046
217bff3e
JK
90472012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9048
9049 Remove the gdbtui binary.
9050 * .gitignore (/gdbtui): Remove.
9051 * Makefile.in (TUI): Remove.
9052 (SUBDIR_TUI_OBS): Remove tui-main.o.
9053 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9054 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9055 (tui-main.o): Remove.
9056 (all_object_files): Remove tui-main.o.
9057 * NEWS: New note for the gdbtui removal.
9058 * configure: Rebuilt.
9059 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9060 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9061 CONFIG_UNINSTALL respectively.
9062 * gdb.c (main): Remove args.interpreter_p initialization.
9063 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9064 * main.h (struct captured_main_args): Remove interpreter_p.
9065 * tui/tui-main.c: Remove.
9066
9cdd5dbd
DE
90672012-01-01 Doug Evans <dje@google.com>
9068
bb5ed363
DE
9069 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9070 (dwarf2_physname, read_import_statement): Ditto.
9071 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9072 (process_structure_scope read_subroutine_type): Ditto.
9073 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9074 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9075 (dwarf2_fetch_die_location_block): Ditto.
9076 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9077
a0f42c21
DE
9078 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9079 All callers updated.
9080 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9081 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9082 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9083
2dc860c0
DE
9084 * dwarf2read.c (load_cu): Move assert to more useful location.
9085
68dc6402
DE
9086 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9087 All callers updated.
9088
9cdd5dbd
DE
9089 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9090 (dwarf2_elf_names): Minor reformat.
9091 (dwarf2_per_cu_data): Tweak comment.
9092 (dwarf2_read_section): Fix comment.
9093 (create_all_comp_units): Fix comment.
9094 (load_full_comp_unit): Fix comment.
9095 (process_full_comp_unit): Fix comment.
9096 (read_signatured_type): Fix comment.
9097
0c10e53e 9098For older changes see ChangeLog-2011.
c906108c
SS
9099\f
9100Local Variables:
9101mode: change-log
9102left-margin: 8
9103fill-column: 74
9104version-control: never
57da7796 9105coding: utf-8
c906108c 9106End:
This page took 1.91349 seconds and 4 git commands to generate.