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