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