PR 13697
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6a00aa1e
MR
12012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2
3 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4 variable.
5 (mips_eabi_push_dummy_call): Likewise.
6 (mips_n32n64_push_dummy_call): Likewise.
7 (mips_o32_push_dummy_call): Likewise.
8 (mips_o64_push_dummy_call): Likewise.
9
eaa05d59
MR
102012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
11
12 * mips-tdep.c (mips_convert_register_p): Correct coding style.
13
de13fcf2
MR
142012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
15
16 * mips-tdep.c (mips_pseudo_register_type): Use
17 mips_float_register_p.
18
c3a01a22
PA
192012-06-06 Pedro Alves <palves@redhat.com>
20
21 * infrun.c (handle_inferior_event): Remove calls to
22 reinit_frame_cache that follow a context_switch call.
23
d25f45d9
PA
242012-06-06 Pedro Alves <palves@redhat.com>
25
26 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
27 context_switch and remove stale comment.
28
359f5fe6
PA
292012-06-06 Pedro Alves <palves@redhat.com>
30
31 * infrun.c (struct execution_control_state): Remove
32 `new_thread_event' field.
33 (handle_inferior_event): Simplify new threads handling; don't
34 resume the inferior if we find a new thread.
35
2d4c29c5
TS
362012-06-06 Thomas Schwinge <thomas@codesourcery.com>
37
38 * NEWS: Document the deprecation of SH's 'regs' command.
39 * inferior.h (all_registers_info): Add function declaration.
40 * sh-tdep.c (sh_show_regs): Remove variable.
41 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
42 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
43 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
44 (sh_show_regs_command): Remove functions.
45 (sh_gdbarch_init): Don't set sh_show_regs.
46 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
47 'info all-registers'.
48 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
49 (sh64_show_regs): Remove functions.
50 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
51
f5f1cdb6
JK
522012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 * configure.ac: Move development=true below AC_INIT.
55 * configure: Regenerate.
56
bf6309af
SS
572012-06-05 Stan Shebs <stan@codesourcery.com>
58
59 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
60 gdb_stdout.
61
45aa4659
JK
622012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
63
64 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
65 argument as ssize_t.
66 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
67 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
68 * target.c (target_read_stack, target_write_memory)
69 (target_write_raw_memory): Likewise.
70 * target.h (target_read_stack, target_write_memory)
71 (target_write_raw_memory): Likewise.
72
1b162304
JK
732012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
74
75 * symfile-mem.c: Change gdb_static_assert to ssize_t.
76 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
77 * target.c (target_read_memory): Change LEN to ssize_t.
78 * target.h (target_read_memory): Change LEN to ssize_t.
79
8556afb4
PA
802012-06-05 Pedro Alves <palves@redhat.com>
81
82 PR backtrace/13866
83
84 * breakpoint.c (until_break_command): Only fetch the selected
85 frame after decode_line_1.
86
fb139f32
PA
872012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
88
89 * solib-svr4.c (enable_break): Don't fallback to setting the solib
90 event breakpoint at _start, __start or main if a program
91 interpreter is not found.
92
a8e1bb34
JB
932012-06-05 Joel Brobecker <brobecker@adacore.com>
94
95 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
96 Add declaration.
97 * windows-tdep.c: #include "objfiles.h".
98 (windows_iterate_over_objfiles_in_search_order): New function.
99 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
100 iterate_over_objfiles_in_search_order gdbarch method to
101 windows_iterate_over_objfiles_in_search_order.
102 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
103
19630284
JB
1042012-06-05 Joel Brobecker <brobecker@adacore.com>
105
106 * gdbarch.sh: Add generation of
107 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
108 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
109 (iterate_over_objfiles_in_search_order): New gdbarch method.
110 * gdbarch.h, gdbarch.c: Regenerate.
111 * objfiles.h (default_iterate_over_objfiles_in_search_order):
112 Add declaration.
113 * objfiles.c (default_iterate_over_objfiles_in_search_order):
114 New function.
115 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
116 out of lookup_symbol_aux_symtabs.
117 (lookup_symbol_aux_symtabs): Replace extracted-out code by
118 call to lookup_symbol_aux_objfile.
119 (struct global_sym_lookup_data): New type.
120 (lookup_symbol_global_iterator_cb): New function.
121 (lookup_symbol_global): Search for symbol using
122 gdbarch_iterate_over_objfiles_in_search_order and
123 lookup_symbol_global_iterator_cb.
124 * findvar.c (struct minsym_lookup_data): New type.
125 (minsym_lookup_iterator_cb): New function.
126 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
127 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
128 and minsym_lookup_iterator_cb.
129
67ff19f7
JB
1302012-06-05 Joel Brobecker <brobecker@adacore.com>
131
132 Revert the following patch:
133 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
134 try locating the symbol in the symbol's own objfile first, before
135 extending the search to all objfiles.
136 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
137 out of lookup_symbol_aux_symtabs.
138 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
139 Replace extracted-out code by call to lookup_symbol_aux_objfile.
140 Do not search EXCLUDE_OBJFILE.
141 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
142 (lookup_symbol_global): Search for matches in the block's objfile
143 first, before searching all other objfiles.
144
ccab2054
JB
1452012-06-05 Joel Brobecker <brobecker@adacore.com>
146
147 * breakpoint.c (find_condition_and_thread): Stop parsing
148 as soon as the first invalid keyword is found.
149
e23d4a9c
JB
1502012-06-05 Joel Brobecker <brobecker@adacore.com>
151
152 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
153
70160166
JB
1542012-06-05 Joel Brobecker <brobecker@adacore.com>
155
156 * config/djgpp/djcheck.sh: Add copyright header.
157
399501a5
JB
1582012-06-05 Joel Brobecker <brobecker@adacore.com>
159
160 * copyright.py (update_files, main): Fix path to update-copyright
161 script.
162
3770a159
JB
1632012-06-05 Joel Brobecker <brobecker@adacore.com>
164
165 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
166 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
167 for which a reminder to update by hand is printed.
168
4aad0dfc
DE
1692012-06-04 Doug Evans <dje@google.com>
170
171 * buildsym.c (make_blockvector): Add comment.
172
1f8cf220
PA
1732012-06-04 Pedro Alves <palves@redhat.com>
174
175 * arch-utils.c (default_gdb_signal_from_target): Delete.
176 * arch-utils.h (default_gdb_signal_from_target): Delete.
177 * corelow.c (core_open) <signal mapping>: Extended comment. Check
178 gdbarch_gdb_signal_from_target_p.
179 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
180 predicate).
181 * gdbarch.h: Regenerate.
182 * gdbarch.c: Regenerate.
183
86b49880
PA
1842012-06-04 Pedro Alves <palves@redhat.com>
185
186 * gdbarch.sh (gdb_signal_from_target): Mention that the
187 implementation of the method must be host independent.
188 * gdbarch.h: Regenerate.
189
fe78531d
JK
1902012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
191
192 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
193 parameters.
194 (target_read_memory_bfd): New function.
195 (symbol_file_add_from_memory): Use it.
196
d790cf0a
DE
1972012-06-03 Doug Evans <dje@google.com>
198
78e5175a
DE
199 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
200 of primary symtab.
201 (basic_lookup_transparent_type): Ditto.
202
d790cf0a
DE
203 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
204 (ALL_PRIMARY_SYMTABS): Use it.
205 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
206 * dwarf2read.c (dw2_find_symbol_file): Ditto.
207 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
208 * symtab.c (lookup_symbol_aux_objfile): Ditto.
209 (basic_lookup_transparent_type): Ditto.
210
c6e5ee5e
SDJ
2112012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
212
213 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
214 it to optimize resolution of demangled name.
215
a68ffae9
JK
2162012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
217
218 * configure.ac (development): Define new variable.
219 Call AC_CHECK_LIB for mcheck if $development.
220 (ERROR_ON_WARNING): Enable it by default only if $development.
221 * config.in: Regenerate.
222 * configure: Regenerate.
223
5299c1c4
JK
2242012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
225
226 * target.c (target_read_memory): Make LEN argument as size_t.
227 * target.h (target_read_memory): Likewise.
228
2292012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
230
231 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
232
0c56f59b
EBM
2332012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
234
235 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
236 BookE interface for PowerPC server processors if not available
237 in the Linux Kernel.
238
71bdabee
KS
2392012-05-31 Keith Seitz <keiths@redhat.com>
240
241 * linespec.c (decode_objc): Add cleanup to free
242 INFO.FILE_SYMTABS.
243 (find_linespec_symbols): Add cleanup to free CLASSES.
244 * symfile.c (find_separate_debug_file_by_debuglink): Add
245 cleanup to free DEBUGLINK.
246 * ui-out.c (clear_header_list): No need to check if
247 HEADER_NEXT.COLHDR is NULL.
248 Free HEADER_NEXT.COL_NAME.
249
acbd605d
MGD
2502012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
251
252 * ada-lang.c (standard_lookup): Prevent uninitialized variable
253 warning.
254
65662cde
PA
2552012-05-30 Jeff Kenton <jkenton@tilera.com>
256
257 * configure.host (gdb_host_cpu): Handle tilegx*.
258 (gdb_host): Handle tilegx-*-linux*.
259 * tilegx-linux-nat.c: New file.
260 * config/tilegx/linux.mh: New file.
261
ade64f0e
PA
2622012-05-30 Jeff Kenton <jkenton@tilera.com>
263
264 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
265 tilegx-linux-tdep.o.
266 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
267 tilegx-linux-tdep.c.
268 * configure.tgt: Handle tilegx-*-linux*.
269 * tilegx-tdep.h: New file.
270 * tilegx-tdep.c: New file.
271 * tilegx-linux-tdep.c: New file.
272 * regformats/reg-tilegx.dat: New file.
273
bb08bdbd
EBM
2742012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
275
276 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
277 accounting of hw watchpoints on ppc.
278
ebd86fb5
TJB
2792012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
280
281 * source.c (openp): Expand tilde in path entries.
282
0a0edcd5
DE
2832012-05-29 Doug Evans <dje@google.com>
284
98cc87bd
DE
285 * buildsym.c (block_compar): Fix comment.
286 (end_symtab): Fix and clarify some comments.
287
0a0edcd5
DE
288 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
289 cleanup_undefined_types.
290 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
291 All callers updated.
292
6f0c7050
TT
2932012-05-29 Tom Tromey <tromey@redhat.com>
294
295 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
296 fails.
297 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
298 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
299 fails.
300 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
301 fails.
302
ec95993c
TG
3032012-05-29 Tristan Gingold <gingold@adacore.com>
304
305 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
306 (struct darwin_info): ... New struct.
307 (solib_darwin_pspace_data): New variable.
308 (darwin_pspace_data_cleanup): New function.
309 (get_darwin_info): Likewise.
310 (darwin_dyld_version_ok, darwin_load_image_infos)
311 (darwin_solib_get_all_image_info_addr_at_init)
312 (darwin_solib_read_all_image_info_addr): Add info argument.
313 Adjust code.
314 (darwin_current_sos): Use per pspace structure.
315 (darwin_solib_create_inferior_hook): Likewise.
316 (darwin_clear_solib): Likewise.
317 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
318
ae25568b
PA
3192012-05-28 Pedro Alves <palves@redhat.com>
320
321 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
322 block that uses them. Clear ecss before handling each event.
323
0c5bf5a9
JK
3242012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
325
326 * solib-svr4.c (svr4_current_sos): New comment on
327 svr4_current_sos_via_xfer_libraries fall back.
328
bfb05775
JK
3292012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
330
331 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
332 it as a fallback for TYPE_IS_OPAQUE.
333 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
334 symbols for lookup_symbol.
335
685b1105
JK
3362012-05-24 John Steele Scott <toojays@toojays.net>
337
338 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
339 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
340 (producer_is_gxx_lt_4_6): Move the checking and caching to...
341 (check_producer): ... this new function, which also checks for ICC
342 and caches the result.
343 (producer_is_icc): New function.
344 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
345 producer was ICC.
346
22203bbf
PA
3472012-05-24 Pedro Alves <palves@redhat.com>
348
349 PR gdb/7205
350
351 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
352 (default_gdb_signal_to_target): ... this. Add comment.
353 (default_gdb_signal_from_host): Rename to ...
354 (default_gdb_signal_from_target): ... this. Add comment.
355 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
356 (default_gdb_signal_to_target): ... this.
357 (default_gdb_signal_from_host): Rename to ...
358 (default_gdb_signal_from_target): ... this.
359 * corelow.c (core_open): Adjust to naming change. Replace comment.
360 * gdbarch.sh (gdb_signal_from_host): Rename to ...
361 (gdb_signal_from_target): ... this. Adjust to
362 default_gdb_signal_from_host naming change. Extend comment.
363 (gdb_signal_to_host): Rename to ...
364 (gdb_signal_to_target): ... this. Adjust to
365 default_gdb_signal_to_host naming change.
366 * gdbarch.h, gdbarch.c: Renegerate.
367
a493e3e2
PA
3682012-05-24 Pedro Alves <palves@redhat.com>
369
370 PR gdb/7205
371
372 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
373
2ea28649
PA
3742012-05-24 Pedro Alves <palves@redhat.com>
375
376 PR gdb/7205
377
378 Replace target_signal with gdb_signal throughout.
379
b09846a9
PA
3802012-05-24 Pedro Alves <palves@redhat.com>
381
382 PR tui/14159
383
384 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
385 string, instead of reusing the va_list argument.
386
e77c107e
TT
3872012-05-24 Tom Tromey <tromey@redhat.com>
388
389 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
390 Remove.
391
9fccedf7
DE
3922012-05-23 Doug Evans <dje@google.com>
393
d50bd42b
DE
394 * symtab.c (search_symbols): Formatting fixes.
395 (print_symbol_info): Formatting fixes.
396
9fccedf7
DE
397 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
398 int64_t change to leb128 API.
399 (read_encoded_value, decode_frame_entry_1): Ditto.
400 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
401 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
402 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
403 (execute_stack_op): Ditto.
404 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
405 (safe_read_uleb128, safe_read_sleb128): Ditto.
406 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
407 (dwarf2_compile_expr_to_ax): Ditto.
408 (locexpr_describe_location_piece): Ditto.
409 (disassemble_dwarf_expression): Ditto.
410 (locexpr_describe_location_1): Ditto.
411
f3e0e960
SS
4122012-05-23 Stan Shebs <stan@codesourcery.com>
413 Kwok Cheung Yeung <kcy@codesourcery.com>
414
415 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
416 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
417 (mi-cmd-info.o): New rule.
418 * osdata.h (info_osdata_command): New declaration.
419 * osdata.c (info_osdata_command): Change to non-static.
420 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
421 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
422 * mi/mi-cmd-info.c: New file.
423
c51fe631
DE
4242012-05-23 Doug Evans <dje@google.com>
425
71cddcc1
DE
426 * symtab.c (search_symbols): Pass NULL for file_matcher to
427 expand_symtabs_matching if there are no files to match.
428
c51fe631
DE
429 * gdbtypes.c (lookup_typename): Simplify.
430
a79378d4
PA
4312012-05-23 Pedro Alves <palves@redhat.com>
432
433 * arch-utils.h (default_target_signal_to_host): Delete.
434 * arch-utils.c (default_target_signal_to_host): Delete.
435 * gdbarch.sh (target_signal_to_host): Remove.
436 * gdbarch.h, gdbarch.c: Regenerate.
437
f664829e
DE
4382012-05-22 Doug Evans <dje@google.com>
439
440 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
441 "const gdb_byte *".
442 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
443 (execute_cfa_program): Update to match API of leb128 functions.
444 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
445 "const gdb_byte *".
446 (read_unsigned_leb128, read_signed_leb128): Delete.
447 (read_initial_length): Change type of buf argument to
448 "const gdb_byte *".
449 (read_encoded_value): Update to match API of leb128 functions.
450 (decode_frame_entry): Change result to "const gdb_byte *", and
451 similarly for "start" parameter.
452 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
453 (dwarf2_build_frame_info): Change local frame_ptr to
454 "const gdb_byte *".
455 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
456 read_uleb128, read_sleb128. All callers updated.
457 (safe_skip_leb128): New function.
458 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
459 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
460 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
461 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
462 read_uleb128, read_sleb128.
463 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
464 (execute_stack_op): Update to match API of leb128 functions.
465 * dwarf2expr.h: #include "leb128.h".
466 (read_uleb128, read_sleb128): Delete.
467 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
468 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
469 * dwarf2loc.c (debug_loc_kind): New enum.
470 (decode_debug_loc_addresses): New function.
471 (decode_debug_loc_dwo_addresses): New function.
472 (dwarf2_find_location_expression): Rewrite.
473 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
474 (locexpr_describe_location_piece): Ditto.
475 (disassemble_dwarf_expression): Ditto.
476 (locexpr_describe_location_1): Ditto.
477 (loclist_describe_location): Rewrite.
478 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
479 * dwarf2read.c (die_reader_specs): New member "buffer_end".
480 (dwarf2_section_buffer_overflow_complaint): Renamed from
481 dwarf2_macros_too_long_complaint. All callers updated.
482 (skip_leb128): Delete.
483 (init_cu_die_reader): Initialize reader->buffer_end.
484 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
485 (skip_form_bytes): New arg buffer_end. All callers updated.
486 Replace call to skip_leb128 with gdb_skip_leb128.
487 (skip_unknown_opcode): New arg mac_end. All callers updated.
488 (fill_in_loclist_baton): Initialize baton->from_dwo.
489
837a1b32
MR
4902012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
491
492 * mips-linux-nat.c (mips_linux_read_description): Use a more
493 verbose error message.
494
d0e64392
MR
4952012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
496
497 * NEWS: Add MIPS/Linux DSP support.
498 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
499 (SIGCONTEXT_DSPCTL): New macro.
500 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
501 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
502 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
503 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
504 (N64_SIGCONTEXT_HI3): Likewise.
505 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
506 (N64_SIGCONTEXT_LO3): Likewise.
507 (N64_SIGCONTEXT_DSPCTL): Likewise.
508 (N64_SIGCONTEXT_FPCSR): Clarify definition.
509 (mips_linux_o32_sigframe_init): Handle DSP registers.
510 (mips_linux_n32n64_sigframe_init): Likewise.
511
8bea7ed1
PM
5122012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
513
514 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
515 call to abort.
516
dab06dbe
PA
5172012-05-22 Pedro Alves <palves@redhat.com>
518
519 * target.h (store_waitstatus): Move declaration ...
520 * inf-child.h (store_waitstatus): ... here.
521 * target.c: Move inclusion of gdb_wait.h, and ...
522 (store_waitstatus): ... this ...
523 * inf-child.c: ... here.
524 * linux-nat.c: Include inf-child.h.
525 * rs6000-nat.c: Include inf-child.h.
526 * spu-linux-nat.c: Include inf-child.h.
527
43011e52
PM
5282012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
529
530 * tracepoint.c (start_tracing): Add missing i18n markup.
531 (stop_tracing, set_trace_user): Ditto.
532 (set_trace_notes, set_trace_stop_notes): Ditto.
533
b1af9e97
TT
5342012-05-21 Tom Tromey <tromey@redhat.com>
535
536 PR c++/7173:
537 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
538 types.
539 * value.h (value_cast_pointers): Update.
540 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
541 (value_cast): Update.
542 (update_search_result): New function.
543 (do_search_struct_field): New, from search_struct_field. Check
544 for ambiguous results.
545 (search_struct_field): Rewrite.
546 * infcall.c (value_arg_coerce): Update.
547 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
548 value_cast_pointers.
549 * ada-lang.c (ada_convert_actual): Update.
550
e9e5e6b3
TT
5512012-05-21 Tom Tromey <tromey@redhat.com>
552
553 * macroexp.c (macro_stringify): Terminate the string.
554
1564a261
JK
5552012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
556
557 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
558 Describe it.
559 * auto-load.c (auto_load_expand_dir_vars): New function.
560 (auto_load_safe_path_vec_update): Use it, remove the
561 substitute_path_component call thanks to it.
562 (auto_load_objfile_script): Remove the debug_file_directory processing.
563 Use auto_load_expand_dir_vars, remove the substitute_path_component
564 call thanks to it.
565 * configure: Regenerate.
566 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
567 path. Escape $ also for $debugdir.
568 (--with_auto_load_safe_path): Escape $ also for $debugdir.
569 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
570
a3ec0bb1
DE
5712012-05-20 Doug Evans <dje@google.com>
572
573 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
574 before use. Check for symtab->includes == NULL before scanning it.
575
d467df4e
MR
5762012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
577
578 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
579
4cc0665f
MR
5802012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
581
582 * NEWS: Add microMIPS support and "set mips compression",
583 "show mips compression" commands.
584 * mips-tdep.h (mips_isa): New enum.
585 (gdbarch_tdep): Add mips_isa.
586 (mips_pc_is_mips16): Update prototype.
587 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
588 * mips-tdep.c (mips_compression_mips16): New variable.
589 (mips_compression_micromips): Likewise.
590 (mips_compression_strings): Likewise.
591 (mips_compression_string): Likewise.
592 (is_mips16_isa, is_micromips_isa): New functions.
593 (is_mips16_addr): Rename to...
594 (is_compact_addr): ... this.
595 (unmake_mips16_addr): Likewise to...
596 (unmake_compact_addr): ... this.
597 (make_mips16_addr): Likewise to...
598 (make_compact_addr): ... this.
599 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
600 functions.
601 (mips_elf_make_msymbol_special): Handle microMIPS code.
602 (msymbol_is_special): Rename to...
603 (msymbol_is_mips16): ... this.
604 (mips_make_symbol_special, mips_pc_is_mips16): Update
605 accordingly.
606 (msymbol_is_mips, msymbol_is_micromips): New functions.
607 (mips16_to_32_reg): Rename to...
608 (mips_reg3_to_reg): ... this.
609 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
610 (mips_pc_isa): Likewise.
611 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
612 code.
613 (mips_fetch_instruction): Pass return status instead of printing
614 an error message if requested. Handle microMIPS code. Bail out
615 on an invalid ISA.
616 (micromips_op): New macro.
617 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
618 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
619 (b6s4_op, b7s3_reg): Likewise.
620 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
621 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
622 (mips_insn_size): New function.
623 (mips32_next_pc): Update mips_fetch_instruction call.
624 (micromips_relative_offset7): New function.
625 (micromips_relative_offset10): Likewise.
626 (micromips_relative_offset16): Likewise.
627 (micromips_pc_insn_size): Likewise.
628 (micromips_bc1_pc): Likewise.
629 (micromips_next_pc): Likewise.
630 (unpack_mips16): Update mips_fetch_instruction call.
631 (extended_mips16_next_pc): Update according to change to
632 mips16_to_32_reg.
633 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
634 code.
635 (mips16_scan_prologue): Update mips_fetch_instruction call.
636 Update according to change to mips16_to_32_reg.
637 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
638 (mips_insn16_frame_base_sniffer): Likewise.
639 (micromips_decode_imm9): New function.
640 (micromips_scan_prologue): Likewise.
641 (mips_micro_frame_cache): Likewise.
642 (mips_micro_frame_this_id): Likewise.
643 (mips_micro_frame_prev_register): Likewise.
644 (mips_micro_frame_sniffer): Likewise.
645 (mips_micro_frame_unwind): New variable.
646 (mips_micro_frame_base_address): New function.
647 (mips_micro_frame_base): New variable.
648 (mips_micro_frame_base_sniffer): New function.
649 (mips32_scan_prologue): Update mips_fetch_instruction call.
650 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
651 rather than for MIPS16.
652 (mips_insn32_frame_base_sniffer): Likewise.
653 (mips_addr_bits_remove): Handle microMIPS code.
654 (deal_with_atomic_sequence): Rename to...
655 (mips_deal_with_atomic_sequence): ... this. Update the type
656 of the variable used to hold an instruction. Remove the ISA bit
657 check. Update mips_fetch_instruction call.
658 (micromips_deal_with_atomic_sequence): New function.
659 (deal_with_atomic_sequence): Likewise.
660 (mips_about_to_return): Handle microMIPS code. Update
661 mips_fetch_instruction call.
662 (heuristic_proc_start): Check for the standard MIPS ISA rather
663 than for MIPS16. Update mips_pc_is_mips16 and
664 mips_fetch_instruction calls. Handle microMIPS code.
665 (mips_push_dummy_code): Handle microMIPS code.
666 (mips_eabi_push_dummy_call): Likewise.
667 (mips_o32_return_value): Update mips_pc_is_mips16 call.
668 (mips_o64_push_dummy_call): Handle microMIPS code.
669 (mips_o64_return_value): Update mips_pc_is_mips16 call.
670 (is_delayed): Remove function.
671 (mips_single_step_through_delay): Replace the call to is_delayed
672 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
673 Handle microMIPS code.
674 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
675 microMIPS code.
676 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
677 call.
678 (micromips_in_function_epilogue_p): New function.
679 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
680 call.
681 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
682 Handle microMIPS.
683 (gdb_print_insn_mips): Likewise.
684 (mips_breakpoint_from_pc): Likewise.
685 (mips_remote_breakpoint_from_pc): New function.
686 (mips32_instruction_has_delay_slot): Simplify making use of the
687 updated mips_fetch_instruction interface.
688 (micromips_instruction_has_delay_slot): New function.
689 (mips16_instruction_has_delay_slot): Simplify making use of the
690 updated mips_fetch_instruction interface.
691 (mips_adjust_breakpoint_address): Check for the standard MIPS
692 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
693 calls. Handle microMIPS code.
694 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
695 (mips_skip_trampoline_code): Handle microMIPS code.
696 (global_mips_compression): New function.
697 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
698 file flags. Register the microMIPS remote breakpoint handler
699 and heuristic frame unwinder.
700 (show_mips_compression): New function.
701 (_initialize_mips_tdep): Add the "set mips compression" and
702 "show mips compression" commands.
703
22e048c9
SDJ
7042012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
705
706 * ada-lang.c:
707 * ada-tasks.c:
708 * ada-varobj.c:
709 * amd64-darwin-tdep.c:
710 * arm-symbian-tdep.c:
711 * arm-tdep.c:
712 * avr-tdep.c:
713 * ax-gdb.c:
714 * bfin-linux-tdep.c:
715 * breakpoint.c:
716 * c-valprint.c:
717 * cli/cli-cmds.c:
718 * coffread.c:
719 * cp-support.c:
720 * cris-tdep.c:
721 * dwarf2-frame-tailcall.c:
722 * dwarf2-frame.c:
723 * dwarf2expr.c:
724 * dwarf2loc.c:
725 * dwarf2read.c:
726 * elfread.c:
727 * eval.c:
728 * expprint.c:
729 * f-valprint.c:
730 * frv-tdep.c:
731 * h8300-tdep.c:
732 * hppa-hpux-tdep.c:
733 * hppa-tdep.c:
734 * hppanbsd-tdep.c:
735 * i386-nto-tdep.c:
736 * i386-tdep.c:
737 * i387-tdep.c:
738 * ia64-tdep.c:
739 * jit.c:
740 * linespec.c:
741 * linux-tdep.c:
742 * lm32-tdep.c:
743 * m2-valprint.c:
744 * m32c-tdep.c:
745 * m32r-rom.c:
746 * m32r-tdep.c:
747 * m68k-tdep.c:
748 * m68klinux-tdep.c:
749 * mi/mi-main.c:
750 * microblaze-tdep.c:
751 * mips-linux-tdep.c:
752 * mips-tdep.c:
753 * mn10300-tdep.c:
754 * p-valprint.c:
755 * parse.c:
756 * ppc-linux-tdep.c:
757 * ppc-sysv-tdep.c:
758 * printcmd.c:
759 * python/py-finishbreakpoint.c:
760 * python/py-inferior.c:
761 * python/py-infthread.c:
762 * python/py-type.c:
763 * python/python.c:
764 * remote-fileio.c:
765 * remote-m32r-sdi.c:
766 * remote-mips.c:
767 * reverse.c:
768 * rl78-tdep.c:
769 * rs6000-aix-tdep.c:
770 * rs6000-tdep.c:
771 * s390-tdep.c:
772 * score-tdep.c:
773 * sh64-tdep.c:
774 * skip.c:
775 * solib-darwin.c:
776 * solib-dsbt.c:
777 * solib-frv.c:
778 * sparc-tdep.c:
779 * spu-multiarch.c:
780 * spu-tdep.c:
781 * stack.c:
782 * symfile.c:
783 * symtab.c:
784 * tic6x-tdep.c:
785 * tracepoint.c:
786 * v850-tdep.c:
787 * valarith.c:
788 * valprint.c:
789 * value.c:
790 * xcoffread.c:
791 * xtensa-tdep.c:
792 * ada-lang.c:
793 * ada-tasks.c:
794 * ada-varobj.c:
795 * amd64-darwin-tdep.c:
796 * arm-symbian-tdep.c:
797 * arm-tdep.c: Delete unused variables.
798
aff139ff
JK
7992012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
800
801 Rename $ddir to $datadir.
802 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
803 * auto-load.c (auto_load_safe_path_vec_update)
804 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
805 * configure: Regenerate.
806 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
807 Likewise. Remove the 'use $ddir' help string.
808
f7bfa992
JK
8092012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
810
811 * auto-load.c (show_auto_load_safe_path): Accept any combination of
812 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
813
9cb709b6
TT
8142012-05-18 Tom Tromey <tromey@redhat.com>
815
816 PR exp/13907:
817 * valprint.h (struct value_print_options) <symbol_print>: New
818 field.
819 * valprint.c (user_print_options): Add default for symbol_print.
820 (show_symbol_print): New function.
821 (generic_val_print): Respect symbol_print.
822 (_initialize_valprint): Add "print symbol" setting.
823 * f-valprint.c (f_val_print): Respect symbol_print.
824 * c-valprint.c (c_val_print): Respect symbol_print.
825 * NEWS: Update.
826 * printcmd.c (print_address_symbolic): Return int. Ignore some
827 zero-size symbols.
828 (print_address_demangle): Return int.
829 * defs.h: (print_address_symbolic): Return int.
830 * value.h (print_address_demangle): Return int.
831
b012acdd
TT
8322012-05-18 Tom Tromey <tromey@redhat.com>
833
834 * valprint.c (val_print_string): Don't print leading space.
835 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
836 print space before string or vtbl.
837 * m2-valprint.c (print_unpacked_pointer): Optionally print space
838 before string.
839 * jv-valprint.c (java_value_print): Print space before string.
840 * go-valprint.c (print_go_string): Print space before string.
841 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
842 space before string.
843 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
844 space before string or vtbl.
845 * auxv.c (fprint_target_auxv): Print space after address.
846
1d51a733
TT
8472012-05-18 Tom Tromey <tromey@redhat.com>
848
849 * printcmd.c (print_address_demangle): Remove special case for 0.
850
edf0c1b7
TT
8512012-05-18 Tom Tromey <tromey@redhat.com>
852
853 * printcmd.c (print_address_demangle): Add 'opts' argument.
854 * p-valprint.c (pascal_val_print): Update.
855 * jv-valprint.c (java_val_print): Update.
856 * value.h: Update.
857 * valprint.c (generic_val_print): Update.
858 (print_function_pointer_address): Add 'options' argument. Remove
859 'addressprint' argument. Update.
860 * m2-valprint.c (print_unpacked_pointer): Update.
861 * gnu-v3-abi.c (print_one_vtable): Update.
862 (gnuv3_print_method_ptr): Update.
863 * f-valprint.c (f_val_print): Update.
864 * cp-valprint.c (cp_print_value_fields): Update.
865 * valprint.h (print_function_pointer_address): Update.
866 * c-valprint.c (c_val_print): Update.
867
9703b513
TT
8682012-05-18 Tom Tromey <tromey@redhat.com>
869
870 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
871 directly corresponding to the found psymtab.
872 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
873 (dw2_find_pc_sect_symtab): Use it.
874 * block.h (blockvector_contains_pc): Declare.
875 * block.c (find_block_in_blockvector): New function.
876 (blockvector_for_pc_sect): Use it.
877 (blockvector_contains_pc): New function.
878
5a439849
MR
8792012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
880
881 * mips-tdep.h (mips_write_pc): New prototype.
882 * mips-tdep.c (mips_write_pc): Make external, add description.
883 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
884 add description.
885
8376de04
MR
8862012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
887
888 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
889 mips_regnum->pc.
890 (mips_unwind_pc, mips_write_pc): Likewise.
891 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
892 gdbarch_read_pc.
893
d3581e61
JB
8942012-05-17 Joel Brobecker <brobecker@adacore.com>
895
896 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
897 proc_warn, proc_error, proc_get_status, proc_flags,
898 proc_why, proc_what, proc_nsysarg, proc_sysargs,
899 proc_set_run_on_last_close, proc_unset_run_on_last_close,
900 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
901 proc_stop_process, proc_wait_for_stop, proc_run_process,
902 proc_set_traced_signals, proc_set_traced_faults,
903 proc_set_traced_sysentry, proc_set_traced_sysexit,
904 proc_set_held_signals, proc_get_held_signals,
905 proc_get_traced_signals, proc_get_traced_faults,
906 proc_get_traced_sysentry, proc_get_traced_sysexit,
907 proc_clear_current_fault, proc_set_current_signal,
908 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
909 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
910 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
911 proc_get_current_thread, proc_get_current_thread,
912 proc_get_current_thread, proc_update_threads,
913 proc_update_threads, proc_update_threads, proc_update_threads,
914 proc_iterate_over_threads, procfs_find_new_threads,
915 procfs_pid_to_str): Make static. Remove advance declaration.
916 (proc_cursig): Make static. Conditionalized defintion on
917 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
918 (proc_syscall, proc_set_kill_on_last_close,
919 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
920 proc_get_pending_signals, proc_get_signal_actions,
921 proc_trace_signal, proc_ignore_signal): Delete.
922
81b9b86e
SDJ
9232012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
924
925 * coffread.c (cs_section_address): Passing proper argument for
926 `bfd_get_section_vma'.
927 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
928 `bfd_get_section_flags'.
929 * remote.c (remote_trace_set_readonly_regions): Likewise, for
930 `bfd_get_section_vma'.
931
abc9d0dc
TT
9322012-05-16 Tom Tromey <tromey@redhat.com>
933
934 PR macros/13205:
935 * macrotab.h: (macro_define_special): Declare.
936 (enum macro_special_kind): New.
937 (struct macro_definition) <argc, replacement>: Update comments.
938 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
939 (macro_define_object_internal): New function.
940 (macro_define_object): Use it.
941 (macro_define_special): New function.
942 (fixup_definition): New function.
943 (macro_lookup_definition, foreach_macro_in_scope)
944 (foreach_macro): Use fixup_definition.
945 * macroexp.h (macro_stringify): Declare.
946 * macroexp.c (free_buffer_return_text): New function.
947 (stringify): Constify "arg".
948 (macro_stringify): New function.
949 * dwarf2read.c (macro_start_file): Call macro_define_special.
950
6a3a010b
MR
9512012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
952 Maciej W. Rozycki <macro@mips.com>
953
954 * breakpoint.h (bp_location): Add related_address member.
955 * inferior.h (get_return_value): Take a pointer to struct value
956 instead of struct type for the function requested.
957 * value.h (using_struct_return): Likewise.
958 * gdbarch.sh (return_value): Take a pointer to struct value
959 instead of struct type for the function requested.
960 * breakpoint.c (set_breakpoint_location_function): Initialize
961 related_address for bp_gnu_ifunc_resolver breakpoints.
962 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
963 requested function's address to gdbarch_return_value.
964 * eval.c (evaluate_subexp_standard): Pass the requested
965 function's address to using_struct_return.
966 * infcall.c (call_function_by_hand): Pass the requested
967 function's address to using_struct_return and
968 gdbarch_return_value.
969 * infcmd.c (get_return_value): Take a pointer to struct value
970 instead of struct type for the function requested.
971 (print_return_value): Update accordingly.
972 (finish_command_continuation): Likewise.
973 * stack.c (return_command): Pass the requested function's
974 address to using_struct_return and gdbarch_return_value.
975 * value.c (using_struct_return): Take a pointer to struct value
976 instead of struct type for the function requested. Pass the
977 requested function's address to gdbarch_return_value.
978 * python/py-finishbreakpoint.c (finish_breakpoint_object):
979 New function_value member, replacing function_type.
980 (bpfinishpy_dealloc): Update accordingly.
981 (bpfinishpy_pre_stop_hook): Likewise.
982 (bpfinishpy_init): Likewise. Record the requested function's
983 address.
984 * mips-tdep.c (mips_fval_reg): New enum.
985 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
986 words put in GP registers.
987 (mips_o64_push_dummy_call): Update a comment.
988 (mips_o32_return_value): Take a pointer to struct value instead
989 of struct type for the function requested and use it to check if
990 using the MIPS16 calling convention. Return the designated
991 general purpose registers for floating-point values returned in
992 MIPS16 mode.
993 (mips_o64_return_value): Likewise.
994 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
995 (ppc_sysv_abi_broken_return_value): Likewise.
996 (ppc64_sysv_abi_return_value): Likewise.
997 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
998 value instead of struct type for the function requested.
999 * amd64-tdep.c (amd64_return_value): Likewise.
1000 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1001 * arm-tdep.c (arm_return_value): Likewise.
1002 * avr-tdep.c (avr_return_value): Likewise.
1003 * bfin-tdep.c (bfin_return_value): Likewise.
1004 * cris-tdep.c (cris_return_value): Likewise.
1005 * frv-tdep.c (frv_return_value): Likewise.
1006 * h8300-tdep.c (h8300_return_value): Likewise.
1007 (h8300h_return_value): Likewise.
1008 * hppa-tdep.c (hppa32_return_value): Likewise.
1009 (hppa64_return_value): Likewise.
1010 * i386-tdep.c (i386_return_value): Likewise.
1011 * ia64-tdep.c (ia64_return_value): Likewise.
1012 * iq2000-tdep.c (iq2000_return_value): Likewise.
1013 * lm32-tdep.c (lm32_return_value): Likewise.
1014 * m32c-tdep.c (m32c_return_value): Likewise.
1015 * m32r-tdep.c (m32r_return_value): Likewise.
1016 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1017 * m68k-tdep.c (m68k_return_value): Likewise.
1018 (m68k_svr4_return_value): Likewise.
1019 * m88k-tdep.c (m88k_return_value): Likewise.
1020 * mep-tdep.c (mep_return_value): Likewise.
1021 * microblaze-tdep.c (microblaze_return_value): Likewise.
1022 * mn10300-tdep.c (mn10300_return_value): Likewise.
1023 * moxie-tdep.c (moxie_return_value): Likewise.
1024 * mt-tdep.c (mt_return_value): Likewise.
1025 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1026 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1027 (ppc_sysv_abi_broken_return_value): Likewise.
1028 (ppc64_sysv_abi_return_value): Likewise.
1029 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1030 * rl78-tdep.c (rl78_return_value): Likewise.
1031 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1032 * rx-tdep.c (rx_return_value): Likewise.
1033 * s390-tdep.c (s390_return_value): Likewise.
1034 * score-tdep.c (score_return_value): Likewise.
1035 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1036 (sh_return_value_fpu): Likewise.
1037 * sh64-tdep.c (sh64_return_value): Likewise.
1038 * sparc-tdep.c (sparc32_return_value): Likewise.
1039 * sparc64-tdep.c (sparc64_return_value): Likewise.
1040 * spu-tdep.c (spu_return_value): Likewise.
1041 * tic6x-tdep.c (tic6x_return_value): Likewise.
1042 * v850-tdep.c (v850_return_value): Likewise.
1043 * vax-tdep.c (vax_return_value): Likewise.
1044 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1045 * xtensa-tdep.c (xtensa_return_value): Likewise.
1046 * gdbarch.c: Regenerate.
1047 * gdbarch.h: Regenerate.
1048
29ca12b3
TT
10492012-05-15 Tom Tromey <tromey@redhat.com>
1050
1051 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1052
588ae58c
JB
10532012-05-15 Joel Brobecker <brobecker@adacore.com>
1054
1055 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1056 of command in two error message.
1057
855a6e68
JB
10582012-05-15 Joel Brobecker <brobecker@adacore.com>
1059
1060 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1061
d634f2de
JB
10622012-05-15 Joel Brobecker <brobecker@adacore.com>
1063
1064 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1065
9cc815f5
JK
10662012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1067
1068 * NEWS (show auto-load scripts-directory): Add forgotten command.
1069
6a609e58
JK
10702012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1071
1072 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1073 parameters.
1074
ac1438b5
L
10752012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1076
1077 * amd64-tdep.c: Include features/i386/x32.c and
1078 features/i386/x32-avx.c.
1079 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1080 initialize_tdesc_x32_avx.
1081
e7e0cddf
SS
10822012-05-14 Stan Shebs <stan@codesourcery.com>
1083
1084 Add dynamic printf.
1085 * breakpoint.h (enum bptype): New type bp_dprintf.
1086 (struct breakpoint): New field extra_string.
1087 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1088 (create_breakpoint): Add extra_string arg.
1089 * breakpoint.c (dprintf_breakpoint_ops): New.
1090 (is_breakpoint): Add bp_dprintf.
1091 (bpstat_what): Add dprintf case.
1092 (bptype_string): Ditto.
1093 (print_one_breakpoint_location): Ditto.
1094 (init_bp_location): Ditto.
1095 (bkpt_print_mention): Ditto.
1096 (dprintf_style_enums): New array.
1097 (dprintf_style): New global.
1098 (dprintf_function): New global.
1099 (dprintf_channel): New global.
1100 (update_dprintf_command_list): New function.
1101 (update_dprintf_commands): New function.
1102 (init_breakpoint_sal): Add extra_string argument, handle it.
1103 (create_breakpoint_sal): Add extra_string argument.
1104 (create_breakpoints_sal): Add extra_string argument, update callers.
1105 (find_condition_and_thread): Add extra argument.
1106 (create_breakpoint): Add extra_string argument, record it.
1107 (dprintf_command): New function.
1108 (break_command_1): Add arg to create_breakpoint call.
1109 (handle_gnu_v3_exceptions): Ditto.
1110 (trace_command): Ditto.
1111 (ftrace_command): Ditto.
1112 (strace_command): Ditto.
1113 (bkpt_print_mention): Add dprintf case.
1114 (create_breakpoint_sal_default): Add extra_string argument.
1115 (_initialize_breakpoint): Add new commands.
1116 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1117 * python/py-breakpoint.c (bppy_init): Ditto.
1118 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1119
8ae38c14
MR
11202012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1121
1122 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1123
9f676e66
SCR
11242012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1125
1126 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1127 unsigned long long.
1128
7efc75aa
SCR
11292012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1130
1131 Add a new function gdb.find_pc_line to the Python API.
1132 * NEWS (Python Scripting): Add entry about the new function.
1133 * python/python.c (gdbpy_find_pc_line): New function which
1134 implements gdb.find_pc_line.
1135 (GdbMethods): Add entry for the new function.
1136
70af3797
PA
11372012-05-12 Pedro Alves <palves@redhat.com>
1138
1139 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1140 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1141
06da564e
EZ
11422012-05-12 Eli Zaretskii <eliz@gnu.org>
1143
1144 * inferior.c: Include completer.h
1145 (initialize_inferiors): Set completer of add-inferior to
1146 filename_completer.
1147
0288cee2
L
11482012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1149
1150 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1151 gdbarch_ptr_bit for x32 core dump.
1152
f6537a2c
L
11532012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1154
1155 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1156 and features/i386/x32-avx-linux.c.
1157
85d4a676
SS
11582012-05-11 Stan Shebs <stan@codesourcery.com>
1159 Kwok Cheung Yeung <kcy@codesourcery.com>
1160
1161 * NEWS: Describe new info os commands.
1162 * common/linux-osdata.c (PID_T, TIME_T): Define.
1163 (MAX_PID_T_STRLEN): New.
1164 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1165 MAX_PID_T_STRLEN.
1166 (command_from_pid): Add comment. Change to use PID_T.
1167 (commandline_from_pid): Change to use PID_T.
1168 (user_from_pid): Add comment.
1169 (get_process_owner): Add comment. Change to use PID_T and
1170 MAX_PID_T_STRLEN.
1171 (get_number_of_cpu_cores): Add comment.
1172 (get_cores_used_by_process): Add comment. Change to use PID_T and
1173 MAX_PID_T_STRLEN.
1174 (linux_xfer_osdata_processes): Change to use PID_T and
1175 MAX_PID_T_STRLEN.
1176 (compare_processes): New function.
1177 (linux_xfer_osdata_processgroups): New function.
1178 (linux_xfer_osdata_threads): Change to use PID_T.
1179 (linux_xfer_osdata_fds): New function.
1180 (format_socket_state, print_sockets): New functions.
1181 (union socket_addr): New union.
1182 (linux_xfer_osdata_isockets): New function.
1183 (time_from_time_t, group_from_gid): New functions.
1184 (linux_xfer_osdata_shm): New function.
1185 (linux_xfer_osdata_sem): New function.
1186 (linux_xfer_osdata_msg): New function.
1187 (linux_xfer_osdata_modules): New function.
1188 (osdata_table): Add new entries.
1189 * common/buffer.c (buffer_xml_printf): Add support for long and
1190 long long format specifiers.
1191
f24afd6d
L
11922012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1193
1194 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1195 (tdesc_x32_avx_linux): Likewise.
1196
7349ff92
JK
11972012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1198
1199 Implement multi-component --with-auto-load-dir.
1200 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1201 entries.
1202 (--with-auto-load-safe-path): Update the default value description.
1203 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1204 New.
1205 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1206 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1207 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1208 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1209 "set auto-load scripts-directory".
1210 * config.in: Regenerate.
1211 * configure: Regenerate.
1212 * configure.ac (--with-auto-load-dir): New configure option.
1213 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1214
6dea1fbd
JK
12152012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1216
1217 Provide $ddir substitution for --with-auto-load-safe-path.
1218 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1219 entries.
1220 * auto-load.c: Include observer.h.
1221 (auto_load_safe_path_vec_update): Call substitute_path_component for
1222 each component. New variable ddir_subst.
1223 (auto_load_gdb_datadir_changed): New function.
1224 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1225 AUTO_LOAD_SAFE_PATH. New comment.
1226 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1227 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1228 * config.in: Regenerate.
1229 * configure: Regenerate.
1230 * configure.ac (--auto-load-safe-path): Rename
1231 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1232 GDB_DATADIR/auto-load.
1233 * defs.h (substitute_path_component): New declaration.
1234 * top.c: Include observer.h.
1235 (set_gdb_datadir): New function.
1236 (init_main): Install it for "set data-directory".
1237 * utils.c (substitute_path_component): New function.
1238
b09aca3a
JK
12392012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1240
1241 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1242 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1243 DEBUG_FILE_DIRECTORY. Handle multiple components of
1244 DEBUG_FILE_DIRECTORY.
1245
95554aad
TT
12462012-05-10 Tom Tromey <tromey@redhat.com>
1247
1248 * dwarf2read.c (recursively_write_psymbols): New function.
1249 (write_psymtabs_to_index): Use it.
1250
1251 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1252 field.
1253 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1254 (load_partial_comp_unit): Update.
1255 (queue_comp_unit): Add argument 'pretend_language'.
1256 (process_queue): Update.
1257 (psymtab_to_symtab_1): Skip dependencies that have a user.
1258 (load_partial_comp_unit_reader): Give meaning to the 'data'
1259 argument.
1260 (load_full_comp_unit): Add 'pretend_language' argument.
1261 (process_full_comp_unit): Add 'pretend_language' argument. Set
1262 language on CU.
1263 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1264 Update.
1265 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1266 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1267 Update.
1268 (prepare_one_comp_unit): Add 'pretend_language' argument.
1269
1270 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1271 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1272 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1273 (dw2_do_instantiate_symtab): Check whether symtab was read in
1274 before queueing.
1275 (dw2_instantiate_symtab): Add assertion. Call
1276 process_cu_includes.
1277 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1278 (partial_symtab_p): New typedef.
1279 (set_partial_user): New function.
1280 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1281 (scan_partial_symbols): Add imported CU to imported_symtabs.
1282 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1283 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1284 (get_symtab, recursively_compute_inclusions)
1285 (compute_symtab_includes, process_cu_includes)
1286 (process_imported_unit_die): New functions.
1287 (process_die) <DW_TAG_imported_unit>: New case.
1288 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1289
1290 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1291 comment.
1292 (struct partial_die_info) <locdesc>: Remove.
1293 <d>: New field.
1294 (process_psymtab_comp_unit): Add 'read_partial' argument.
1295 Update.
1296 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1297 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1298 (add_partial_symbol): Update.
1299 (process_die): Handle DW_TAG_partial_unit.
1300 (read_file_scope): Update comment.
1301 (load_partial_dies): Handle DW_TAG_imported_unit.
1302 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
1303 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
1304
e871fbb9
TT
13052012-05-10 Tom Tromey <tromey@redhat.com>
1306
1307 * cc-with-dwz.sh: New file.
1308
b5b04b5b
TT
13092012-05-10 Tom Tromey <tromey@redhat.com>
1310
1311 * symtab.h (struct symtab) <includes, user>: New fields.
1312 * block.h (struct block_iterator) <d, idx, which>: New fields.
1313 * block.c (initialize_block_iterator, find_iterator_symtab)
1314 (block_iterator_step, block_iter_name_step)
1315 (block_iter_match_step): New functions.
1316 (block_iterator_first, block_iterator_next)
1317 (block_iter_name_first, block_iter_name_next)
1318 (block_iter_match_first, block_iter_match_next): Rewrite.
1319 (get_block_symtab): New function.
1320
84a146c9
TT
13212012-05-10 Tom Tromey <tromey@redhat.com>
1322
1323 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
1324 set_block_symtab.
1325 * jit.c (finalize_symtab): Use allocate_global_block,
1326 set_block_symtab.
1327 * buildsym.c (finish_block_internal): New function, from old
1328 finish_block.
1329 (finish_block): Rewrite.
1330 (end_symtab): Use finish_block_internal, set_block_symtab.
1331 * block.h (struct global_block): New.
1332 (allocate_global_block, set_block_symtab): Declare.
1333 * block.c (allocate_global_block, set_block_symtab): New
1334 functions.
1335
9439a077
TT
13362012-05-10 Tom Tromey <tromey@redhat.com>
1337
1338 * psymtab.c (partial_map_expand_apply): Add assertion.
1339 (partial_map_symtabs_matching_filename): Skip included psymtabs.
1340 (psymtab_to_symtab): Find unshared psymtab.
1341 (dump_psymtab): Print including psymtabs.
1342 (recursively_search_psymtabs): New function.
1343 (expand_symtabs_matching_via_partial): Use it.
1344 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
1345 fields.
1346 (enum psymtab_search_status): New.
1347
8157b174
TT
13482012-05-10 Tom Tromey <tromey@redhat.com>
1349
1350 * tracepoint.c (scope_info): Update.
1351 * symtab.c (lookup_block_symbol, iterate_over_symbols)
1352 (find_pc_sect_symtab, search_symbols)
1353 (default_make_symbol_completion_list_break_on)
1354 (make_file_symbol_completion_list): Update.
1355 * symmisc.c (dump_symtab_1): Update.
1356 * stack.c (print_frame_args, iterate_over_block_locals)
1357 (print_frame_labels, iterate_over_block_arg_vars): Update.
1358 * python/py-block.c (block_object) <dict>: Remove.
1359 <block>: New field.
1360 <iter>: Change type.
1361 (blpy_iter): Update.
1362 (blpy_block_syms_iternext): Update.
1363 * psymtab.c (map_block): Use block iterators.
1364 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
1365 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
1366 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
1367 * infrun.c (check_exception_resume): Update.
1368 * cp-support.c (make_symbol_overload_list_block): Update.
1369 * coffread.c (patch_opaque_types): Update.
1370 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
1371 * block.h (struct block_iterator): New.
1372 (block_iterator_first, block_iterator_next, block_iter_name_first)
1373 (block_iter_name_next, block_iter_match_first)
1374 (block_iter_match_next): Declare.
1375 (ALL_BLOCK_SYMBOLS): Redefine.
1376 * block.c (block_iterator_first, block_iterator_next)
1377 (block_iter_name_first, block_iter_name_next)
1378 (block_iter_match_first, block_iter_match_next): New functions.
1379 * ada-lang.c (ada_add_block_symbols)
1380 (ada_make_symbol_completion_list): Use block iterator.
1381
a2ca7a52
TT
13822012-05-10 Tom Tromey <tromey@redhat.com>
1383
1384 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
1385 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
1386 (lookup_partial_symbol, find_last_source_symtab_from_partial)
1387 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
1388 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
1389 Update.
1390
64ea88dc
JB
13912012-05-10 Joel Brobecker <brobecker@adacore.com>
1392
1393 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
1394 print-file-var-lib2.c, print-file-var-main.c and
1395 print-file-var.exp (located in gdb/testsuite/gdb.base).
1396
99a547d6
JB
13972012-05-10 Joel Brobecker <brobecker@adacore.com>
1398
1399 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
1400 try locating the symbol in the symbol's own objfile first, before
1401 extending the search to all objfiles.
1402 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
1403 out of lookup_symbol_aux_symtabs.
1404 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
1405 Replace extracted-out code by call to lookup_symbol_aux_objfile.
1406 Do not search EXCLUDE_OBJFILE.
1407 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
1408 (lookup_symbol_global): Search for matches in the block's objfile
1409 first, before searching all other objfiles.
1410
0ece64fd
TG
14112012-05-10 Tristan Gingold <gingold@adacore.com>
1412
1413 * printcmd.c (set_command): Add pre/post inc/dec.
1414
3d16a105
FCE
14152012-05-09 Frank Ch. Eigler <fche@redhat.com>
1416
1417 * gdb.1: Document -ex option.
1418
2efbc0f7
JB
14192012-05-09 Joel Brobecker <brobecker@adacore.com>
1420
1421 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
1422 * inferior.h (AT_SYMBOL): Delete.
1423
2c76a0c7
JB
14242012-05-09 Joel Brobecker <brobecker@adacore.com>
1425
1426 * mips-tdep.c (mips_push_dummy_code): New function.
1427 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
1428 ON_STACK and install mips_push_dummy_code as our gdbarch
1429 push_dummy_code routine.
1430
9401a810
PA
14312012-05-09 Pedro Alves <palves@redhat.com>
1432
1433 * target.c (set_maintenance_target_async_permitted): Rename to ...
1434 (set_target_async_command): ... this.
1435 (show_maintenance_target_async_permitted): Rename to ...
1436 (show_target_async_command): ... this.
1437 (initialize_targets): Adjust.
1438
3929b321
DE
14392012-05-08 Doug Evans <dje@google.com>
1440
1441 * go-exp.y (classify_name): Add missing assignment of fields of
1442 yylval.ssym.
1443
c41535fd
EZ
14442012-05-08 Eli Zaretskii <eliz@gnu.org>
1445
1446 Display the ">" prompt in interactive mode while reading canned
1447 commands, even when the current interpreter is MI.
1448
1449 * interps.c (interp_set_temp): New function.
1450
1451 * interps.h (interp_set_temp): Add prototype.
1452
1453 * cli/cli-script.c (restore_interp): New cleanup function.
1454 (read_command_lines): Temporarily override the current interpreter
1455 with CLI and arrange for restoring the original one.
1456
c0749c4d
JS
14572012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
1458
1459 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
1460
d7333987
SDJ
14612012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1462
1463 * probe.c (parse_probes): Move conditional to check for
1464 debuginfo files from here...
1465 * stap-probe.c (stap_get_probes): ... to here.
1466
649e6d92
MK
14672012-05-07 Mark Kettenis <kettenis@gnu.org>
1468 H.J. Lu <hongjiu.lu@intel.com>
1469
1470 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
1471 `movl %esp, %ebp' for the X32 ABI.
1472
f39c6ffd
TT
14732012-05-07 Tom Tromey <tromey@redhat.com>
1474
1475 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
1476 get_DW_TAG_name.
1477 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
1478 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
1479 (dwarf_stack_op_name): Remove.
1480 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
1481 (decode_locdesc): Use get_DW_OP_name.
1482 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
1483 (dwarf2_compile_expr_to_ax): Likewise.
1484 (disassemble_dwarf_expression): Likewise.
1485 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
1486
1e1f6591
CLT
14872012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
1488
1489 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
1490 (sh_linux_sigtramp_cache): New function.
1491 (sh_linux_sigreturn_init): New function.
1492 (sh_linux_rt_sigreturn_init): New function.
1493 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
1494 patterns.
1495 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
1496 syscall codes.
1497 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
1498 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
1499 (sh_linux_init_abi): Add init calls to register new tramp_frame
1500 definitions under 32-bit SH, update comments.
1501
545c08b4
PA
15022012-05-07 Pedro Alves <palves@redhat.com>
1503
daac165e
PA
1504 PR gdb/10952
1505
545c08b4
PA
1506 * amd64-linux-tdep.c: Include glibc-tdep.h.
1507 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
1508 gdbarch_skip_solib_resolver callback.
1509
af2c1515
JK
15102012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1511
1512 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
1513 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
1514 (show_auto_load_safe_path): Check any-directory by comparison with "/".
1515 (add_auto_load_safe_path): Change the error message.
1516 (_initialize_auto_load): Change the "safe-path" help text.
1517 * configure: Regenerate
1518 * configure.ac (--without-auto-load-safe-path): Set
1519 WITH_AUTO_LOAD_SAFE_PATH to /.
1520
1067f998
SDJ
15212012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
1522
1523 * stap-probe.h: Do not include unecessary `probe.h'.
1524
45dfa85a
AM
15252012-05-05 Alan Modra <amodra@gmail.com>
1526
1527 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
1528 bfd_und_section_ptr.
1529 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
1530 and bfd_com_section_ptr.
1531
cf093994
JB
15322012-05-04 Joel Brobecker <brobecker@adacore.com>
1533
762ebb75 1534 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 1535
d40dc7a8
JB
15362012-05-04 Joel Brobecker <brobecker@adacore.com>
1537
1538 * windows-nat.h (segment_register_p_ftype): New typedef.
1539 (windows_set_segment_register_p): Add declaration.
1540 * windows-nat.c (segment_register_p): New static global.
1541 (windows_set_segment_register_p): New function.
1542 (do_windows_fetch_inferior_registers): Add special handling
1543 for segment registers.
1544 * amd64-windows-nat.c: #include "amd64-tdep.h".
1545 (amd64_windows_segment_register_p): New function.
1546 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
1547 * i386-windows-nat.c: #include "i386-tdep.h".
1548 (i386_windows_segment_register_p): New function.
1549 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
1550
52b3699b
TG
15512012-05-04 Tristan Gingold <gingold@adacore.com>
1552
1553 * printcmd.c (set_command): Emit a warning if the expression is not
1554 an assignment.
1555
94c74239
JB
15562012-05-03 Joel Brobecker <brobecker@adacore.com>
1557
1558 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
1559 Make static.
1560
fcf57f19
SDJ
15612012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
1562
1563 * stap-probe.c (stap_is_operator): Change declaration.
1564 (stap_get_opcode): Change return value.
1565 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
1566 `stap_parse_argument_1'.
1567
27d2932e
PA
15682012-05-03 Pedro Alves <pedro@codesourcery.com>
1569
1570 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
1571 debug log.
1572
a20ee7a4
SCR
15732012-05-03 Siva Chandra Reddy <sivachandra@google.com>
1574
1575 Add two new methods global_block and static_block to gdb.Symtab
1576 objects.
1577 * NEWS (Python scripting): Add entry about the new methods.
1578 * python/py-symtab.c (stpy_global_block): New function which
1579 implements the gdb.Symtab.global_block() method.
1580 (stpy_static_block): New function which implements the
1581 gdb.Symtab.static_block() method.
1582 (symtab_object_methods): Add entries for the two new methods.
1583
943cb756
DE
15842012-05-03 Doug Evans <dje@google.com>
1585
1586 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
1587 files.
1588
f4644a3f
YQ
15892012-05-03 Yao Qi <yao@codesourcery.com>
1590
1591 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
1592 space.
1593 (i386_process_record): Ditto.
1594
ef61f180
JB
15952012-05-02 Joel Brobecker <brobecker@adacore.com>
1596
1597 * infcall.c (unwind_on_signal_p): Make static.
1598
02f1df11
JB
15992012-05-02 Joel Brobecker <brobecker@adacore.com>
1600
1601 * sol-thread.c (solaris_pid_to_str): Make static.
1602 (_initialize_sol_thread): Add prototype.
1603
39023530
JB
16042012-05-02 Joel Brobecker <brobecker@adacore.com>
1605
1606 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
1607
c6b0c501
CF
16082012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
1609
1610 * MAINTAINERS: Remove myself.
1611
1ef71717
JK
16122012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1613
1614 Fix --without-auto-load-safe-path for MS-Windows host platform.
1615 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
1616
b31b86a7
EZ
16172012-05-02 Eli Zaretskii <eliz@gnu.org>
1618
1619 * gdb_curses.h: Undefine KEY_EVENT before including curses
1620 headers. Move "#undef MOUSE_MOVED" before any curses header
1621 inclusion.
1622
777532fc
SDJ
16232012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1624
1625 * features/i386/i386-mmx-linux.c: Regenerate.
1626 * features/rs6000/powerpc-32.c: Likewise.
1627 * features/rs6000/powerpc-32l.c: Likewise.
1628 * features/rs6000/powerpc-403.c: Likewise.
1629 * features/rs6000/powerpc-403gc.c: Likewise.
1630 * features/rs6000/powerpc-405.c: Likewise.
1631 * features/rs6000/powerpc-505.c: Likewise.
1632 * features/rs6000/powerpc-601.c: Likewise.
1633 * features/rs6000/powerpc-602.c: Likewise.
1634 * features/rs6000/powerpc-603.c: Likewise.
1635 * features/rs6000/powerpc-604.c: Likewise.
1636 * features/rs6000/powerpc-64.c: Likewise.
1637 * features/rs6000/powerpc-64l.c: Likewise.
1638 * features/rs6000/powerpc-750.c: Likewise.
1639 * features/rs6000/powerpc-860.c: Likewise.
1640 * features/rs6000/powerpc-e500.c: Likewise.
1641 * features/rs6000/powerpc-e500l.c: Likewise.
1642 * features/rs6000/powerpc-isa205-32l.c: Likewise.
1643 * features/rs6000/powerpc-isa205-64l.c: Likewise.
1644 * features/rs6000/rs6000.c: Likewise.
1645
d71871bc
SDJ
16462012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
1647
1648 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
1649 variable.
1650 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
1651 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
1652 (stap_parse_argument) <e>: Likewise.
1653 (handle_stap_probe) <byte_order>: Likewise.
1654
fd820528
DE
16552012-04-30 Doug Evans <dje@google.com>
1656
1657 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
1658 init_and_read_dies_worker. All callers updated.
1659 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
1660 replaced with init_cutu_and_read_dies.
1661 (load_partial_comp_unit): Pass 1 for use_existing_cu.
1662 (find_partial_die): Remove FIXME. Don't free current CU.
1663
ec3f619d 16642012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
1665
1666 * contrib: New directory.
1667 * contrib/test_pubnames_and_indexes.py: New file.
1668
fceca515
DE
16692012-04-30 Doug Evans <dje@google.com>
1670
1671 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
1672 All callers updated.
1673 (init_cu_die_reader): Verify the section is non-empty.
1674 (dwarf_decode_line_header): Don't dereference section->asection
1675 until we know the section is present.
1676
311fe7e1
SDJ
16772012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
1678
1679 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
1680 probes.
1681
5977971a
YQ
16822012-04-29 Yao Qi <yao@codesourcery.com>
1683
1684 * gdb-code-style.el: New hook gdb-markup-hook
1685 and gdb-comment-hook.
1686
dee91e82
DE
16872012-04-28 Doug Evans <dje@google.com>
1688
3019eac3
DE
1689 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
1690 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
1691 objfile->obfd.
1692 * symfile.h (dwarf2_debug_sections): New member addr.
1693 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
1694 (ctx_no_get_addr_index): New function.
1695 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
1696 (ctx_no_get_addr_index): Declare.
1697 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
1698 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
1699 (dwarf_expr_ctx_funcs): Update.
1700 (needs_get_addr_index): New function.
1701 (needs_frame_ctx_funcs): Update.
1702 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
1703 * dwarf2read.c: #include "gdbcore.h".
1704 (dwarf2_per_objfile): New members addr, dwo_files.
1705 (dwarf2_elf_names): Add entry for addr.
1706 (struct dwo_section_names): New type.
1707 (dwo_section_names): New static global.
1708 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
1709 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
1710 old debug_types_section member updated to use this.
1711 Rename member debug_types_section to info_or_types_section,
1712 all uses updated.
1713 (signatured_type): Rename member type_offset to type_offset_in_tu,
1714 all uses updated. New member type_offset_in_section.
1715 (struct dwo_sections): New type.
1716 (struct dwo_unit): New type.
1717 (struct dwo_file): New type.
1718 (die_reader_specs): New member dwo_file.
1719 (dwarf2_locate_sections): Watch for .debug_addr.
1720 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
1721 (dwarf2_read_section): Get bfd of section from bfd's asection,
1722 instead of objfile.
1723 (create_cus_from_index): Initialize the_cu->info_or_types_section.
1724 (create_signatured_type_table_from_index): Initialize
1725 sig_type->info_or_types_section.
1726 (dw2_get_file_names): Statement lists for type units with DWO files
1727 live in the DWO file.
1728 (create_debug_types_hash_table): New function.
1729 (create_all_type_units): Rewrite.
1730 (init_cu_die_reader): New arg dwo_file, all callers updated.
1731 (init_and_read_dies_worker): Get section from
1732 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
1733 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
1734 continue reading the CU/TU from there.
1735 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
1736 updated. Get section from this_cu->info_or_types_section.
1737 (create_all_comp_units): Initialize this_cu->info_or_types_section.
1738 (skip_one_die): New cases DW_FORM_GNU_addr_index,
1739 DW_FORM_GNU_str_index.
1740 (hash_dwo_file, eq_dwo_file): New functions.
1741 (allocate_dwo_file_hash_table): New function.
1742 (hash_dwo_unit, eq_dwo_unit): New functions.
1743 (allocate_dwo_unit_table): New function.
1744 (dwarf2_locate_dwo_sections): New function.
1745 (struct create_dwo_info_table_data): New type.
1746 (create_debug_info_hash_table_reader): New function.
1747 (create_debug_info_hash_table): New function.
1748 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
1749 (lookup_dwo_file): New function.
1750 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
1751 (free_dwo_file, free_dwo_file_cleanup): New functions.
1752 (free_dwo_file_from_slot, free_dwo_files): New functions.
1753 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
1754 (dwarf2_record_block_ranges): Ditto.
1755 (read_partial_die): Ditto.
1756 (process_enumeration_scope): Update to use type_offset_in_section.
1757 (read_full_die_1): New function.
1758 (read_full_die): Rewrite.
1759 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
1760 DW_FORM_GNU_str_index.
1761 (read_addr_index_1, read_addr_index): New functions.
1762 (read_addr_index_from_leb128): New function.
1763 (struct dwarf2_read_addr_index_data): New type.
1764 (dwarf2_read_addr_index_reader): New function.
1765 (dwarf2_read_addr_index): New function.
1766 (read_str_index): New function.
1767 (leb128_size): New function.
1768 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
1769 If processing a type unit from a DWO file, get the line section
1770 from the DWO file.
1771 (var_decode_location): Watch for DW_OP_GNU_addr_index.
1772 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
1773 DW_FORM_GNU_str_index.
1774 (lookup_die_type): Check whether section offset of type's die is
1775 known before looking it up. Remove assert. Condition can
1776 legimately happen for inter-cu type references.
1777 (dwarf_attr_name): Handle Fission attributes.
1778 (dwarf_form_name): Handle Fission forms.
1779 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
1780 DW_FORM_GNU_str_index.
1781 (follow_die_sig): Update to use type_offset_in_section.
1782 (decode_locdesc): New case DW_OP_GNU_addr_index.
1783 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
1784 DW_FORM_GNU_str_index.
1785 (cu_debug_loc_section): New function.
1786 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
1787 (dwarf2_per_objfile_free): Unmap .debug_addr section.
1788 Free DWO files if present.
1789 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
1790
dee91e82
DE
1791 Refactor DIE reading.
1792 * dwarf2read.c (dwarf2_per_objfile): Replace members
1793 debug_info_type_hash and debug_types_type_hash with die_type_hash.
1794 (die_reader_specs): New member "die_section". Temporarily make
1795 member "buffer" non-const, pending constifying all info_ptr uses.
1796 (die_reader_func_ftype): New typedef.
1797 (dw2_get_file_names_reader): New function.
1798 (dw2_get_file_names): Rewrite.
1799 (read_and_check_type_unit_head): Rename arg type_offset to
1800 type_offset_in_tu.
1801 (create_all_type_units): Improve debugging message.
1802 Improve dummy type unit check.
1803 (init_cu_die_reader): New arg "section". All callers updated.
1804 (init_and_read_dies_worker): New function.
1805 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
1806 (init_cutu_and_read_dies_no_follow): New function.
1807 (init_cutu_and_read_dies_simple): New function.
1808 (process_psymtab_comp_unit_reader): New function.
1809 (process_psymtab_comp_unit): Delete args section,
1810 is_debug_types_section. Rewrite. All callers updated.
1811 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
1812 All callers updated. Rewrite.
1813 (load_partial_comp_unit_reader): New function.
1814 (load_partial_comp_unit): Rewrite.
1815 (skip_children): New arg reader. Delete args buffer, cu.
1816 All callers updated.
1817 (skip_one_die): New arg reader. Delete args buffer, cu.
1818 All callers updated.
1819 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
1820 All callers updated.
1821 (load_full_comp_unit_reader): New function.
1822 (load_full_comp_unit): Rewrite.
1823 (read_comp_unit): Delete.
1824 (read_die_and_children_1): Delete, contents moved ...
1825 (read_die_and_children): ... here.
1826 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
1827 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
1828 All callers updated.
1829 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
1830 All callers updated.
1831 (find_partial_die): Rewrite load_all_dies support.
1832 (read_attribute_value): New arg reader. Delete args abfd, cu.
1833 All callers updated.
1834 (read_attribute): New arg reader. Delete args abfd, cu.
1835 All callers updated.
1836 (load_full_type_unit): Add assert.
1837 (read_signatured_type_reader): New function.
1838 (read_signatured_type): Rewrite.
1839 (free_stack_comp_unit): Remove call to age_cached_comp_units.
1840 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
1841 All callers updated. Set per_cu->cu = NULL after freeing it.
1842 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
1843 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
1844 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
1845 (set_die_type): Update.
1846 (get_die_type_at_offset): Update.
1847 (read_file_scope): Call prepare_one_comp_unit.
1848 (read_type_unit_scope): Ditto.
1849 (prepare_one_comp_unit): Set producer if present.
1850
72d59e0d
SDJ
18512012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
1852
1853 * probe.c (compile_rx_or_error): Silence ARI warning about missing
1854 gettext function on `error'.
1855
0fefef59
DE
18562012-04-27 Doug Evans <dje@google.com>
1857
1858 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
1859 is empty.
1860
28106bc2
SDJ
18612012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1862 Tom Tromey <tromey@redhat.com>
1863
1864 * breakpoint.c (struct breakpoint_objfile_data)
1865 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
1866 <exception_probes>: New fields.
1867 (free_breakpoint_probes): New function.
1868 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
1869 `_Unwind_DebugHook'.
1870 (create_exception_master_breakpoint): Likewise.
1871 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
1872 * infrun.c: Including necessary header files for handling SystemTap
1873 probes.
1874 (handle_inferior_event): Handling longjmp breakpoint and exceptions
1875 via SystemTap probes.
1876 (check_exception_resume): Remove `func' argument. Handle exception
1877 unwinding breakpoint set via a SystemTap probe.
1878 (insert_exception_resume_from_probe): New function.
1879
55aa24fb
SDJ
18802012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
1881 Tom Tromey <tromey@redhat.com>
1882 Jan Kratochvil <jan.kratochvil@redhat.com>
1883
1884 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
1885 (COMMON_OBS): Likewise.
1886 (HFILES_NO_SRCDIR): Add `probe'.
1887 * NEWS: Mention support for static and SystemTap probes.
1888 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
1889 SystemTap probes' arguments parser.
1890 * arm-linux-tdep.c: Including headers needed to perform the parsing
1891 of SystemTap probes' arguments.
1892 (arm_stap_is_single_operand): New function.
1893 (arm_stap_parse_special_token): Likewise.
1894 (arm_linux_init_abi): Initializing proper fields used by SystemTap
1895 probes' arguments parser.
1896 * ax-gdb.c (require_rvalue): Removing static declaration.
1897 (gen_expr): Likewise.
1898 * ax-gdb.h (gen_expr): Declaring function.
1899 (require_rvalue): Likewise.
1900 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
1901 (bkpt_probe_breakpoint_ops): New variable.
1902 (momentary_breakpoint_from_master): Set the `probe' value.
1903 (add_location_to_breakpoint): Likewise.
1904 (break_command_1): Using proper breakpoint_ops according to the
1905 argument passed by the user in the command line.
1906 (bkpt_probe_insert_location): New function.
1907 (bkpt_probe_remove_location): Likewise.
1908 (bkpt_probe_create_sals_from_address): Likewise.
1909 (bkpt_probe_decode_linespec): Likewise.
1910 (tracepoint_probe_create_sals_from_address): Likewise.
1911 (tracepoint_probe_decode_linespec): Likewise.
1912 (tracepoint_probe_breakpoint_ops): New variable.
1913 (trace_command): Using proper breakpoint_ops according to the
1914 argument passed by the user in the command line.
1915 (initialize_breakpoint_ops): Initializing breakpoint_ops for
1916 static probes on breakpoints and tracepoints.
1917 * breakpoint.h (struct bp_location) <probe>: New field.
1918 * cli-utils.c (skip_spaces_const): New function.
1919 (extract_arg): Likewise.
1920 * cli-utils.h (skip_spaces_const): Likewise.
1921 (extract_arg): Likewise.
1922 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
1923 * configure.ac: Append `stap-probe.o' to be generated when ELF
1924 support is present.
1925 * configure: Regenerate.
1926 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
1927 * elfread.c: Include `probe.h' and `arch-utils.h'.
1928 (probe_key): New variable.
1929 (elf_get_probes): New function.
1930 (elf_get_probe_argument_count): Likewise.
1931 (elf_evaluate_probe_argument): Likewise.
1932 (elf_compile_to_ax): Likewise.
1933 (elf_symfile_relocate_probe): Likewise.
1934 (stap_probe_key_free): Likewise.
1935 (elf_probe_fns): New variable.
1936 (elf_sym_fns): Add `sym_probe_fns' value.
1937 (elf_sym_fns_lazy_psyms): Likewise.
1938 (elf_sym_fns_gdb_index): Likewise.
1939 (_initialize_elfread): Initialize objfile cache for static
1940 probes.
1941 * gdb_vecs.h (struct probe): New forward declaration.
1942 (probe_p): New VEC declaration.
1943 * gdbarch.c: Regenerate.
1944 * gdbarch.h: Regenerate.
1945 * gdbarch.sh (stap_integer_prefix): New variable.
1946 (stap_integer_suffix): Likewise.
1947 (stap_register_prefix): Likewise.
1948 (stap_register_suffix): Likewise.
1949 (stap_register_indirection_prefix): Likewise.
1950 (stap_register_indirection_suffix): Likewise.
1951 (stap_gdb_register_prefix): Likewise.
1952 (stap_gdb_register_suffix): Likewise.
1953 (stap_is_single_operand): New function.
1954 (stap_parse_special_token): Likewise.
1955 (struct stap_parse_info): Forward declaration.
1956 * i386-tdep.c: Including headers needed to perform the parsing
1957 of SystemTap probes' arguments.
1958 (i386_stap_is_single_operand): New function.
1959 (i386_stap_parse_special_token): Likewise.
1960 (i386_elf_init_abi): Initializing proper fields used by SystemTap
1961 probes' arguments parser.
1962 * i386-tdep.h (i386_stap_is_single_operand): New function.
1963 (i386_stap_parse_special_token): Likewise.
1964 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
1965 * mipsread.c (ecoff_sym_fns): Likewise.
1966 * objfiles.c (objfile_relocate1): Support relocation for static
1967 probes.
1968 * parse.c (prefixify_expression): Remove static declaration.
1969 (initialize_expout): Likewise.
1970 (reallocate_expout): Likewise.
1971 * parser-defs.h (initialize_expout): Declare function.
1972 (reallocate_expout): Likewise.
1973 (prefixify_expression): Likewise.
1974 * ppc-linux-tdep.c: Including headers needed to perform the parsing
1975 of SystemTap probes' arguments.
1976 (ppc_stap_is_single_operand): New function.
1977 (ppc_stap_parse_special_token): Likewise.
1978 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
1979 probes' arguments parser.
1980 * probe.c: New file, for generic statically defined probe support.
1981 * probe.h: Likewise.
1982 * s390-tdep.c: Including headers needed to perform the parsing of
1983 SystemTap probes' arguments.
1984 (s390_stap_is_single_operand): New function.
1985 (s390_gdbarch_init): Initializing proper fields used by SystemTap
1986 probes' arguments parser.
1987 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
1988 * stap-probe.c: New file, for SystemTap probe support.
1989 * stap-probe.h: Likewise.
1990 * symfile.h: Include `gdb_vecs.h'.
1991 (struct sym_probe_fns): New struct.
1992 (struct sym_fns) <sym_probe_fns>: New field.
1993 * symtab.c (init_sal): Initialize `probe' field.
1994 * symtab.h (struct probe): Forward declaration.
1995 (struct symtab_and_line) <probe>: New field.
1996 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
1997 locations.
1998 (stop_tracing): Likewise.
1999 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2000
22d2b532
SDJ
20012012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2002 Tom Tromey <tromey@redhat.com>
2003
2004 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2005 and to compile agent expressions.
2006 * infrun.c (siginfo_make_value): New argument `ignore'.
2007 (siginfo_funcs): New struct.
2008 (_initialize_infrun): New argument when calling
2009 `create_internalvar_type_lazy'.
2010 * thread.c (thread_id_make_value): New argument `ignore'.
2011 (thread_funcs): New struct.
2012 (_initialize_thread): New argument when calling
2013 `create_internalvar_type_lazy'.
2014 * tracepoint.c (sdata_make_value): New argument `ignore'.
2015 (sdata_funcs): New struct.
2016 (_initialize_tracepoint): New argument when calling
2017 `create_internalvar_type_lazy'.
2018 * value.c (make_value): New struct.
2019 (create_internalvar_type_lazy): New argument `data'.
2020 (compile_internalvar_to_ax): New function.
2021 (value_of_internalvar): Properly handling `make_value' case.
2022 (clear_internalvar): Likewise.
2023 (show_convenience): Adding `TRY_CATCH' block.
2024 * value.h (internalvar_make_value): Delete, replace by...
2025 (struct internalvar_funcs): ... this.
2026 (create_internalvar_type_lazy) <fun>: Delete argument.
2027 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2028 (compile_internalvar_to_ax): New function.
2029 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2030 (tlb_funcs): New struct.
2031 (_initialize_windows_tdep): New argument when calling
2032 `create_internalvar_type_lazy'.
2033
91da1414
MW
20342012-04-27 Mark Wielaard <mjw@redhat.com>
2035
2036 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2037 see whether it is an address or a constant offset from DW_AT_low_pc.
2038 (dwarf2_record_block_ranges): Likewise.
2039 (read_partial_die): Likewise.
2040
4ab9d8ec
MW
20412012-04-26 Mark Wielaard <mjw@redhat.com>
2042
2043 * MAINTAINERS (Write After Approval): Add myself to the list.
2044
a0911fd0
MR
20452012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2046
2047 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2048 (proc_prettyprint_signal): Likewise.
2049 (proc_prettyprint_faultset): Likewise.
2050 (proc_prettyprint_fault): Likewise.
2051 (proc_prettyprint_actionset): Likewise.
2052 (proc_prettyprint_flags): Move to new proc-flags.c section.
2053 (proc_prettyfprint_flags): New prototype.
2054 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2055 (proc_syscall, proc_cursig): Likewise.
2056 (proc_set_kill_on_last_close): Likewise.
2057 (proc_unset_kill_on_last_close): Likewise.
2058 (proc_set_watchpoint): Make static.
2059 (proc_delete_dead_threads): Likewise.
2060 (procfs_set_watchpoint): Likewise.
2061 (_initialize_procfs): Add prototype.
2062 * proc-events.c: Include proc-utils.h.
2063 (init_syscall_table): Make static.
2064 * proc-api.c (_initialize_proc_api): Add prototype.
2065 * proc-flags.c: Include proc-utils.h.
2066
9009e1ae
MR
20672012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2068
2069 * configure.ac: Add AC_ARG_PROGRAM.
2070 * configure: Regenerate.
2071
4fae6e18
JK
20722012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2073
2074 Fix DW_AT_lower_bound defaults for DWARF-4+.
2075 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2076 high. New variable low_default_is_valid. Implement DWARF-4+
2077 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2078 no default by the DWARF standard.
2079
14132e89
MR
20802012-04-26 Maciej W. Rozycki <macro@mips.com>
2081 Maciej W. Rozycki <macro@codesourcery.com>
2082
2083 * infrun.c (handle_inferior_event): Move the check for return
2084 trampolines ahead of the check for function trampolines.
2085 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2086 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2087 (mips_str_mips16_ret_stub): Likewise.
2088 (mips_str_call_fp_stub): Likewise.
2089 (mips_str_call_stub): Likewise.
2090 (mips_str_fn_stub): Likewise.
2091 (mips_str_pic): Likewise.
2092 (mips_in_frame_stub): New function.
2093 (mips_unwind_pc): Return the return address rather than the PC
2094 if the PC of an intermediate frame is inside a call thunk.
2095 (mips_is_stub_suffix): New function.
2096 (mips_is_stub_mode): Likewise.
2097 (mips_get_mips16_fn_stub_pc): Likewise.
2098 (mips_skip_mips16_trampoline_code): Update to handle all the
2099 currently generated stub types. Don't recurse into __fn_stub
2100 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2101 Use cooked register accesses.
2102 (mips_in_return_stub): Reintroduce function.
2103 (mips_skip_trampoline_code): Traverse trampolines recursively.
2104 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2105
518f0db5 21062012-04-26 Joel Brobecker <brobecker@adacore.com>
2107
2108 GDB 7.4.1 released.
2109
3184d3f9
JL
21102012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2111
2112 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2113 * features/arm-with-m-vfp-d16.xml: New file. Describes
2114 Cortex-M with VFPv4-sp-d16 FPU register layout.
2115 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2116 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2117 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2118 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2119 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2120
b6201d44
DE
21212012-04-25 Doug Evans <dje@google.com>
2122
2123 * cli/cli-decode.c (print_doc_line): Use stream instead of
2124 current_uiout.
2125
4e2f8df6
SDJ
21262012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2127
2128 * features/arm-with-iwmmxt.c: Regenerate.
2129 * features/arm-with-m-fpa-layout.c: Likewise.
2130 * features/arm-with-m.c: Likewise.
2131 * features/arm-with-neon.c: Likewise.
2132 * features/arm-with-vfpv2.c: Likewise.
2133 * features/arm-with-vfpv3.c: Likewise.
2134 * features/mips-dsp-linux.c: Likewise.
2135 * features/mips-linux.c: Likewise.
2136 * features/mips64-dsp-linux.c: Likewise.
2137 * features/mips64-linux.c: Likewise.
2138 * features/s390-linux32.c: Likewise.
2139 * features/s390-linux32v1.c: Likewise.
2140 * features/s390-linux32v2.c: Likewise.
2141 * features/s390-linux64.c: Likewise.
2142 * features/s390-linux64v1.c: Likewise.
2143 * features/s390-linux64v2.c: Likewise.
2144 * features/s390x-linux64.c: Likewise.
2145 * features/s390x-linux64v1.c: Likewise.
2146 * features/s390x-linux64v2.c: Likewise.
2147 * features/tic6x-c62x-linux.c: Likewise.
2148 * features/tic6x-c62x.c: Likewise.
2149 * features/tic6x-c64x-linux.c: Likewise.
2150 * features/tic6x-c64x.c: Likewise.
2151 * features/tic6x-c64xp-linux.c: Likewise.
2152 * features/tic6x-c64xp.c: Likewise.
2153 * target-descriptions.c: Only generate `field_type' and `type'
2154 variables when needed.
2155
2def3e66
JB
21562012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2157
2158 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2159
a766d390
DE
21602012-04-25 Doug Evans <dje@google.com>
2161
2162 Initial pass at Go language support.
2163 * NEWS: Mention Go.
2164 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2165 go-valprint.c.
2166 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2167 (YYFILES): Add go-exp.c.
2168 (YYOBJ): Add go-exp.o.
2169 (local-maintainer-clean): Delete go-exp.c.
2170 * defs.h (enum language): Add language_go.
2171 * dwarf2read.c: #include "go-lang.h".
2172 (fixup_go_packaging): New function.
2173 (process_full_comp_unit): Call it when processing Go CUs.
2174 (dwarf2_physname): Add Go support.
2175 (read_file_scope): Handle missing language spec for GNU Go.
2176 (set_cu_language): Handle DW_LANG_Go.
2177 * go-exp.y: New file.
2178 * go-lang.h: New file.
2179 * go-lang.c: New file.
2180 * go-typeprint.c: New file.
2181 * go-valprint.c: New file.
2182 * symtab.c: #include "go-lang.h".
2183 (symbol_set_language): Handle language_go.
2184 (symbol_find_demangled_name, symbol_set_names): Ditto.
2185 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2186
4e2af517
JM
21872012-04-24 Jim Meyering <meyering@redhat.com>
2188
2189 avoid a few strncpy-induced buffer overruns
2190 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2191 fname and psargs before trying to concatenate.
2192 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2193 "name" before applying strchr.
2194
b77b7f52
SCR
21952012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2196
2197 * CONTRIBUTE: Use unified diff instead of context diff when
2198 generating patches.
2199
6321c22a
MR
22002012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2201
2202 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2203 code. Handle JR.HB correctly.
2204
742c84f6
MR
22052012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2206
2207 * mips-tdep.c
2208 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2209 with the other MIPS16 helpers.
2210
7fc7e0c3
SDJ
22112012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2212
2213 * observer.sh: Conditionally declare `args', thus cleaning up
2214 unused instances of this variable.
2215
20388dd6
YQ
22162012-04-24 Yao Qi <yao@codesourcery.com>
2217
2218 Revert this patch to allow breakpoint always-inserted
2219 in record target.
2220 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2221 * breakpoint.c: Include record.h.
2222 (breakpoints_always_inserted_mode): Return false when the record
2223 target is in use.
2224
2225 * breakpoint.c (iterate_over_bp_locations): New.
2226 * breakpoint.h: Declare.
2227 New typedef walk_bp_location_callback.
2228 * record.c (record_open): Call record_init_record_breakpoints.
2229 (record_sync_record_breakpoints): New.
2230 (record_init_record_breakpoints): New.
2231 * NEWS: Mention supporting breakpoint always-inserted mode in
2232 record target.
2233
4734f50e
MK
22342012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2235
2236 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2237 any thread.
2238
c326b90e
YQ
22392012-04-24 Yao Qi <yao@codesourcery.com>
2240
2241 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2242 (is_catchpoint): ... it.
2243 (print_one_breakpoint_location): Caller update.
2244 * breakpoint.h: Update declaration.
2245
d8fb5a1e
DM
22462012-04-23 David S. Miller <davem@davemloft.net>
2247
2248 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2249
34431a2a
TT
22502012-04-23 Tom Tromey <tromey@redhat.com>
2251
2252 * buildsym.c (add_free_pendings): Remove.
2253 * buildsym.h (add_free_pendings): Remove.
2254
4568ecf9
DE
22552012-04-23 Doug Evans <dje@google.com>
2256
2257 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2258 attr.u.unsnd instead of attr.u.addr.
2259 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2260 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2261 DW_FORM_ref_udata.
2262 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2263 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2264 DW_FORM_ref_udata.
2265 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2266
dca9aa3a
MR
22672012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2268
2269 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2270 (mips_o32_return_value): Likewise.
2271 (mips_o64_return_value): Likewise.
2272
c8ea1972
PH
22732012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2274
2275 * ada-lang.c (ada_evaluate_subexp): Add cases for
2276 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2277 their treatment in eval.c.
2278
8d1b3521
DM
22792012-04-21 David S. Miller <davem@davemloft.net>
2280
2281 * sparc-tdep.c (X_DISP10): Define.
2282 (sparc_analyze_control_transfer): Handle compare-and-branch.
2283
03145bf4
JL
22842012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2285
2286 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2287 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2288
004159a2
MR
22892012-04-20 Nigel Stephens <nigel@mips.com>
2290 Maciej W. Rozycki <macro@codesourcery.com>
2291
2292 * mips-tdep.c (mips_float_register_p): New function.
2293 (mips_convert_register_float_case_p): Use mips_float_register_p.
2294 (mips_register_type): Likewise.
2295 (mips_print_register): Likewise.
2296 (print_gp_register_row): Likewise.
2297 (mips_print_registers_info): Likewise.
2298
7f0e6aae
MR
22992012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2300
2301 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2302 of mips16 symbols.
2303
bc17beea
AP
23042012-04-20 Andrew Pinski <apinski@cavium.com>
2305
2306 * MAINTAINERS (Write After Approval): Add myself to the list.
2307
1730a5a5
SDJ
23082012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2309
2310 * MAINTAINERS: Update my e-mail address.
2311
38ea300a
PA
23122012-04-20 Pedro Alves <palves@redhat.com>
2313
2314 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
2315 $srcdir.
2316 * configure: Regenerate.
2317
111dfaae
SDJ
23182012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
2319
2320 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
2321 declaration.
2322 * gdb_vecs.h: Declare `const_char_ptr' VEC.
2323
4fb2c64a
JK
23242012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2325
2326 Fix compilation compatibility with python-2.4
2327 * python/py-type.c (convert_field): Cast ADDRSTRING for
2328 PyObject_SetAttrString as non-const. New comment.
2329
6328eb38
TT
23302012-04-19 Tom Tromey <tromey@redhat.com>
2331
2332 * top.c (quit_target): Use all_cleanups.
2333 * main.c (captured_command_loop): Use all_cleanups.
2334 * exceptions.c (throw_exception): Use all_cleanups.
2335
c971b7fa
PA
23362012-04-19 Pedro Alves <palves@redhat.com>
2337
2338 * Makefile.in (GNULIB_BUILDDIR): New.
2339 (LIBGNU, INCGNU, GNULIB_H): Adjust.
2340 (SUBDIRS): Add $(GNULIB_BUILDDIR).
2341 (CLEANDIRS). Remove gnulib/import.
2342 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
2343 (all-lib): Ditto.
2344 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
2345 (gnulib/import/Makefile): Replace gnulib/import with
2346 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
2347 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
2348 (aclocal_m4_deps): Remove the gnulib dependencies. Add
2349 acx_configure_dir.m4.
2350 * acinclude.m4: Include acx_configure_dir.m4.
2351 * acx_configure_dir.m4: New file.
2352 * aclocal.m4: Regenerate.
a09130f9
PA
2353 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
2354 calls. Configure gnulib using ACX_CONFIGURE_DIR.
2355 (GNULIB): New variable.
2356 (GNULIB_STDINT_H): Adjust.
2357 (AC_OUTPUT): Don't output gnulib/Makefile.
2358 * gdb/defs.h: Include build-gnulib/config.h.
2359 * aclocal.m4: Regenerate.
2360 * config.in: Regenerate.
2361 * configure: Regenerate.
2362
2363 * gnulib/Makefile.in: New file.
2364 * gnulib/configure.ac: New file.
2365 * gnulib/aclocal.m4: New file.
2366 * gnulib/config.in: New file.
2367 * gnulib/configure: New file.
c971b7fa
PA
2368 * gnulib/: Re-run gnulib-tool to adjust.
2369
b10faa68
DE
23702012-04-19 Doug Evans <dje@google.com>
2371
2372 * cleanups.h (struct cleanup): Move to cleanups.c.
2373 (make_cleanup_dtor_ftype): New typedef.
2374 (make_cleanup_dtor): Use it.
2375 (ALL_CLEANUPS): Replace with ...
2376 (all_cleanups): ... this. Declare. All uses updated.
2377 * cleanups.c: #include "gdb_assert.h".
2378 (sentinel_cleanup): New static global.
2379 (SENTINEL_CLEANUP): Define.
2380 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
2381 (make_my_cleanup2): Assert result is non-NULL.
2382 (all_cleanups): New function.
2383 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
2384 of NULL.
2385
d8c267cc
PA
23862012-04-19 Pedro Alves <palves@redhat.com>
2387
2388 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
2389 Adjust paths to gnulib imported files.
2390
809277f8
PA
23912012-04-19 Pedro Alves <palves@redhat.com>
2392
2393 * gnulib/: Move whole directory ...
2394 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
2395 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
2396 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
2397 (aclocal_m4_deps): Adjust.
2398 * aclocal.m4: Regenerate.
2399 * configure: Regenerate.
2400 * configure.ac: Adjust AC_OUTPUT output.
2401
aad9eab9
YQ
24022012-04-19 Yao Qi <yao@codesourcery.com>
2403
2404 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
2405 (vec.o): New rule.
2406 * vec.c: Move it ...
2407 * common/vec.c: ... here.
2408 * vec.h: Move it ...
2409 * common/vec.h: ... here.
2410
48fe4669
YQ
24112012-04-19 Yao Qi <yao@codesourcery.com>
2412
2413 * gdb-code-style.el: New.
2414
770d76d7
PA
24152012-04-18 Pedro Alves <palves@redhat.com>
2416
2417 Update gnulib from latest git.
2418 (639ea5ae15e39fe48d43e04864b2997301e4b969)
2419
2420 * gnulib/Makefile.am: Update.
2421 * gnulib/dummy.c: Update.
2422 * gnulib/extra/arg-nonnull.h: Update.
2423 * gnulib/extra/c++defs.h: Update.
2424 * gnulib/extra/update-copyright: Update.
2425 * gnulib/extra/warn-on-use.h: Update.
2426 * gnulib/inttypes.in.h: Update.
2427 * gnulib/m4/00gnulib.m4: Update.
2428 * gnulib/m4/extensions.m4: Update.
2429 * gnulib/m4/gnulib-cache.m4: Update.
2430 * gnulib/m4/gnulib-common.m4: Update.
2431 * gnulib/m4/gnulib-comp.m4: Update.
2432 * gnulib/m4/gnulib-tool.m4: Update.
2433 * gnulib/m4/include_next.m4: Update.
2434 * gnulib/m4/inttypes-pri.m4: Update.
2435 * gnulib/m4/inttypes.m4: Update.
2436 * gnulib/m4/longlong.m4: Update.
2437 * gnulib/m4/memchr.m4: Update.
2438 * gnulib/m4/memmem.m4: Update.
2439 * gnulib/m4/mmap-anon.m4: Update.
2440 * gnulib/m4/multiarch.m4: Update.
2441 * gnulib/m4/onceonly.m4: Update.
2442 * gnulib/m4/stddef_h.m4: Update.
2443 * gnulib/m4/stdint.m4: Update.
2444 * gnulib/m4/string_h.m4: Update.
2445 * gnulib/m4/warn-on-use.m4: Update.
2446 * gnulib/m4/wchar_h.m4: Update.
2447 * gnulib/m4/wchar_t.m4: Update.
2448 * gnulib/m4/wint_t.m4: Update.
2449 * gnulib/memchr.c: Update.
2450 * gnulib/memmem.c: Update.
2451 * gnulib/stddef.in.h: Update.
2452 * gnulib/stdint.in.h: Update.
2453 * gnulib/str-two-way.h: Update.
2454 * gnulib/string.in.h: Update.
2455 * gnulib/wchar.in.h: Update.
2456
2457 * gnulib/extra/arg-nonnull.h: Delete.
2458 * gnulib/extra/c++defs.h: Delete.
2459 * gnulib/extra/warn-on-use.h: Delete.
2460 * gnulib/m4/wchar_h.m4: Delete.
2461 * gnulib/m4/wint_t.m4: Delete.
2462 * gnulib/wchar.in.h: Delete.
2463
2464 * gnulib/extra/snippets/arg-nonnull.h: New.
2465 * gnulib/extra/snippets/c++defs.h: New.
2466 * gnulib/extra/snippets/warn-on-use.h: New.
2467
2468 * aclocal.m4: Regenerate.
2469 * config.in: Regenerate.
2470 * configure: Regenerate.
2471 * gnulib/Makefile.in: Regenerate.
2472
174e088e
PA
24732012-04-18 Pedro Alves <palves@redhat.com>
2474
2475 Reimport the update-copyright module from gnulib
2476 (250b80067c1e1d8faa0c42fb572f721975b929c5).
2477
2478 * configure: Regenerate.
2479 * gnulib/Makefile.am: Update.
2480 * gnulib/Makefile.in: Regenerate.
2481 * gnulib/extra/update-copyright: Update.
2482 * gnulib/m4/gnulib-cache.m4: Update.
2483 * gnulib/m4/gnulib-comp.m4: Update.
2484
7f533142
JB
24852012-04-18 Tristan Gingold <gingold@adacore.com>
2486
2487 * configure.ac (aix): Put -lpthread into libs.
2488 * configure: Regenerate.
2489
001822aa
TT
24902012-04-18 Tom Tromey <tromey@redhat.com>
2491
2492 * linespec.c (convert_linespec_to_sals): Don't use
2493 SYMBOL_OBJ_SECTION.
2494 (compare_msymbols): Arguments are minsym_and_objfile, not
2495 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
2496
db026a31
PA
24972012-04-18 Pedro Alves <palves@redhat.com>
2498
2499 Revert gnulib/ part of:
2500 2011-01-01 Joel Brobecker <brobecker@adacore.com>
2501 Copyright year update in most files (performed by copyright.sh).
2502
12df843f
JK
25032012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2504
2505 Fix 64-bit constants on 32-bit hosts.
2506 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
2507 from unsigned long to ULONGEST.
2508 (read_signed_leb128): Change declaration return type from long to
2509 LONGEST.
2510 (dwarf2_const_value_attr): Change declaration parameter value from long
2511 to LONGEST.
2512 (dwarf2_compute_name): Change variable value from long to LONGEST.
2513 (read_unsigned_leb128): Change return type, variable result and some
2514 casts from unsigned long to ULONGEST.
2515 (read_signed_leb128): Change return type, variable result and some
2516 casts from long to LONGEST.
2517 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
2518 value from long to LONGEST.
2519 (dwarf2_const_value): Change variable value from long to LONGEST.
2520 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
2521 plongest and hex_string.
2522 * symtab.h (struct general_symbol_info): Change ivalue from long to
2523 LONGEST, remove the comment.
2524 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
2525 Change SYMBOL_VALUE format strings to use plongest and hex_string.
2526
14e75d8e
JK
25272012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
2528
2529 PR symtab/7259:
2530 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
2531 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
2532 (ada_discrete_type_low_bound): Fix function comment. Use
2533 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
2534 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
2535 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2536 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
2537 Use TYPE_FIELD_ENUMVAL.
2538 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
2539 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2540 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
2541 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
2542 TYPE_CODE_ENUM.
2543 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
2544 * dwarf2read.c (process_enumeration_scope): Likewise.
2545 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
2546 field.bitpos.
2547 (class StructMainTypePrettyPrinter): Support also
2548 FIELD_LOC_KIND_ENUMVAL.
2549 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
2550 TYPE_CODE_ENUM.
2551 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2552 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
2553 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
2554 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
2555 field enumval.
2556 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
2557 accommodate enumval.
2558 (struct call_site): Adjust loc_kind to accommodate enumval.
2559 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
2560 (TYPE_FIELD_ENUMVAL): New macros.
2561 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
2562 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
2563 TYPE_CODE_ENUM.
2564 * p-typeprint.c (pascal_type_print_base): Likewise.
2565 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
2566 enumval.
2567 * python/lib/gdb/types.py (make_enum_dict): Likewise.
2568 * python/py-type.c (convert_field): New variable addrstring. Use
2569 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
2570 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
2571 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
2572 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
2573 TYPE_CODE_ENUM.
2574 * valprint.c (generic_val_print): Likewise.
2575
380bca97
DE
25762012-04-17 Doug Evans <dje@google.com>
2577
dcc07052
DE
2578 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
2579
380bca97
DE
2580 * dwarf2read.c: Whitespace fixes.
2581 (lookup_signatured_type): Tweak comment.
2582 (get_die_type_at_offset): Fix comment.
2583
ec92004f
JB
25842012-04-17 Joel Brobecker <brobecker@adacore.com>
2585
2586 * xcoffread.c (xcoff_secnum_to_sections): New function.
2587 (secnum_to_section, secnum_to_bfd_section): Reimplement
2588 using xcoff_secnum_to_sections. Rename "secnum" parameter
2589 into "n_scnum".
2590 (RECORD_MINIMAL_SYMBOL): Delete.
2591 (record_minimal_symbol): New function.
2592 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
2593 by call to record_minimal_symbol and set misc_func_recorded
2594 to 1. Set last_csect_sec to the XCOFF section index instead
2595 of GDB's section_offset index. Update calls to
2596 prim_record_minimal_symbol_and_info to pass the BFD section
2597 as well.
2598
40301fb7
JB
25992012-04-17 Joel Brobecker <brobecker@adacore.com>
2600
2601 * xcoffread.c (read_xcoff_symtab): Delete variables
2602 last_csect_val and last_csect_sec and associated code.
2603
e0088cfd
DE
26042012-04-17 Doug Evans <dje@google.com>
2605
58d5e2c3
DE
2606 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
2607 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2608 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
2609 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
2610
c27f5738
DE
2611 * cleanups.h: New file.
2612 * cleanups.c: New file.
2613 * Makefile.in (SFILES): Add cleanups.c.
2614 (HFILES_NO_SRCDIR): Add cleanups.h.
2615 (COMMON_OBS): Add cleanups.o.
2616 * defs.h (struct cleanup): Moved to cleanups.h.
2617 (do_cleanups,do_final_cleanups): Ditto.
2618 (discard_cleanups,discard_final_cleanups): Ditto
2619 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2620 (save_cleanups,save_final_cleanups): Ditto.
2621 (restore_cleanups,restore_final_cleanups): Ditto.
2622 (null_cleanup): Ditto.
2623 (make_my_cleanup,make_my_cleanup2): Ditto.
2624 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2625 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
2626 (do_cleanups,do_final_cleanups): Ditto.
2627 (discard_cleanups,discard_final_cleanups): Ditto
2628 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
2629 (save_cleanups,save_final_cleanups): Ditto.
2630 (restore_cleanups,restore_final_cleanups): Ditto.
2631 (null_cleanup): Ditto.
2632 (make_my_cleanup,make_my_cleanup2): Ditto.
2633 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
2634
e0088cfd
DE
2635 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
2636 make_my_cleanup.
2637 (make_cleanup_dyn_string_delete): Ditto.
2638 (make_cleanup_ui_file_delete): Ditto.
2639 (make_cleanup_ui_out_redirect_pop): Ditto.
2640 (make_cleanup_free_section_addr_info): Ditto.
2641 (make_cleanup_restore_integer): Ditto.
2642 (make_cleanup_unpush_target): Ditto.
2643 (make_cleanup_value_free_to_mark): Ditto.
2644 (make_cleanup_value_free): Ditto.
2645 (make_cleanup_free_so): Ditto.
2646
4dc84fd1
JK
26472012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2648
2649 New option "set debug auto-load".
2650 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
2651 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
2652 (auto_load_safe_path_vec_update)
2653 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
2654 if DEBUG_AUTO_LOAD.
2655 (file_is_auto_load_safe): New parameters debug_fmt and ....
2656 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
2657 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
2658 caller by explanatory string.
2659 (_initialize_auto_load): Register "set debug auto-load".
2660 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
2661 and ....
2662 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2663 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
2664 by explanatory string.
2665 * main.c (captured_main): Likewise.
2666 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
2667 (source_section_scripts): Likewise.
2668
bccbefd2
JK
26692012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2670
2671 New option "set auto-load safe-path".
2672 * NEWS: New commands "set auto-load safe-path"
2673 and "show auto-load safe-path".
2674 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
2675 (auto_load_safe_path, auto_load_safe_path_vec)
2676 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
2677 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
2678 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
2679 (source_gdb_script_for_objfile): New variable is_safe. Call
2680 file_is_auto_load_safe. Return if it is not.
2681 (struct loaded_script): New field loaded.
2682 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
2683 (print_script): Use LOADED indicator instead of FULL_PATH. Change
2684 output "Missing" to "No".
2685 (_initialize_auto_load): New variable cmd. Initialize
2686 auto_load_safe_path. Register "set auto-load safe-path",
2687 "show auto-load safe-path" and "add-auto-load-safe-path".
2688 * auto-load.h (maybe_add_script): Add parameter loaded.
2689 (file_is_auto_load_safe): New declaration.
2690 * config.in: Regenerate.
2691 * configure: Regenerate.
2692 * configure.ac: New parameters --with-auto-load-safe-path
2693 and --without-auto-load-safe-path.
2694 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
2695 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
2696 * main.c (captured_main): Check file_is_auto_load_safe for
2697 LOCAL_GDBINIT.
2698 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
2699 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
2700 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
2701 not.
2702
bf88dd68
JK
27032012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2704
2705 auto-load: Implementation.
2706 * NEWS: New descriptions for "info auto-load",
2707 "info auto-load gdb-scripts", "info auto-load python-scripts",
2708 "info auto-load local-gdbinit" and "info auto-load libthread-db".
2709 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
2710 and "show auto-load-scripts". New description for "set auto-load",
2711 "show auto-load", "set auto-load gdb-scripts",
2712 "show auto-load gdb-scripts", "set auto-load python-scripts",
2713 "show auto-load python-scripts", "set auto-load local-gdbinit",
2714 "show auto-load local-gdbinit", "set auto-load libthread-db" and
2715 "show auto-load libthread-db".
2716 * auto-load.c: Remove include python/python-internal.h. Add includes
2717 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
2718 cli/cli-setshow.h.
2719 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
2720 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
2721 (gdbpy_global_auto_load): Rename to ...
2722 (global_auto_load): ... here.
2723 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2724 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
2725 (script_language_gdb, source_gdb_script_for_objfile): New.
2726 (struct loaded_script): New field language.
2727 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
2728 LANGUAGE.
2729 (maybe_add_script): Add parameter language. Drop redundant
2730 entry.full_path initialization. Initialize entry.language and
2731 (*slot)->language.
2732 (auto_load_objfile_script): Change parameter suffix to language.
2733 Remove the call of maybe_add_script.
2734 Call language->source_script_for_objfile.
2735 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
2736 New.
2737 (collect_matching_scripts): Adjust it for
2738 struct collect_matching_scripts_data.
2739 (auto_load_info_scripts_pattern_nl): New variable.
2740 (info_auto_load_scripts): Rename to ...
2741 (auto_load_info_scripts): ... here, add parameter language. Adjust it
2742 for struct collect_matching_scripts_data.
2743 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
2744 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
2745 (auto_load_show_cmdlist_get, info_auto_load_cmd)
2746 (auto_load_info_cmdlist_get): New.
2747 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
2748 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
2749 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
2750 "info auto-load local-gdbinit".
2751 * auto-load.h (struct script_language): New.
2752 (gdbpy_global_auto_load): Rename to ...
2753 (global_auto_load): ... here.
2754 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
2755 (auto_load_local_gdbinit_loaded): New declarations.
2756 (maybe_add_script): New parameter language.
2757 (auto_load_objfile_script): Change parameter suffix to language.
2758 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
2759 (auto_load_info_scripts, auto_load_set_cmdlist_get)
2760 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
2761 declarations.
2762 * linux-thread-db.c: Include auto-load.h and ctype.h.
2763 (auto_load_thread_db, show_auto_load_thread_db): New.
2764 (struct thread_db_info): New field filename.
2765 (delete_thread_db_info): Call xfree for FILENAME.
2766 (try_thread_db_load): Initialize FILENAME.
2767 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
2768 if !AUTO_LOAD_THREAD_DB.
2769 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
2770 (_initialize_thread_db): Install auto_load_thread_db
2771 as "set auto-load libthread-db" and install info_auto_load_libthread_db
2772 as "info auto-load libthread-db".
2773 * main.c (captured_main): Rename gdbpy_global_auto_load to
2774 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
2775 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
2776 (print_gdb_help): Extend the help for 'local init file'.
2777 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
2778 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
2779 (auto_load_scripts): Rename to ...
2780 (auto_load_python_scripts): ... here, update the comment.
2781 (gdbpy_load_auto_script_for_objfile): New declaration.
2782 (show_auto_load_python_scripts, script_language_python)
2783 (gdbpy_load_auto_script_for_objfile): New.
2784 (source_section_scripts): Refactor the code.
2785 (load_auto_scripts_for_objfile): Rename to ...
2786 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
2787 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
2788 (info_auto_load_python_scripts): New.
2789 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
2790 Rename "set auto-load-scripts" to "set auto-load python-scripts".
2791 Register "set auto-load-scripts" as its deprecated alias. Register
2792 "info auto-load python-scripts". Register "info auto-load-scripts" as
2793 its deprecated alias.
2794 (load_auto_scripts_for_objfile): Rename to ...
2795 (gdbpy_load_auto_scripts_for_objfile): ... here.
2796 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
2797 (gdbpy_load_auto_scripts_for_objfile): ... here.
2798
e2207b9a
JK
27992012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2800
2801 auto-load: Move files.
2802 * Makefile.in (SFILES): Add auto-load.c.
2803 (HFILES_NO_SRCDIR): Add auto-load.h.
2804 (COMMON_OBS): Add auto-load.o.
2805 (distclean): Change .gdbinit for gdb-gdb.gdb.
2806 * auto-load.c: New file, with parts from python/py-auto-load.c.
2807 * auto-load.h: New file, with parts from python/python.h.
2808 * configure: Regenerate.
2809 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
2810 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
2811 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
2812 * main.c: Include auto-load.h.
2813 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
2814 command.h, observer.h and progspace.h to auto-load.c. Add include
2815 auto-load.h.
2816 (gdbpy_global_auto_load, struct auto_load_pspace_info)
2817 (struct loaded_script, auto_load_pspace_data)
2818 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
2819 (hash_loaded_script_entry, eq_loaded_script_entry)
2820 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
2821 (maybe_add_script): Move to auto-load.c.
2822 (source_section_scripts): Change maybe_add_script parameters passing,
2823 use script_not_found_warning_print.
2824 (clear_section_scripts, auto_load_objfile_script)
2825 (auto_load_new_objfile, loaded_script_ptr)
2826 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
2827 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
2828 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
2829 auto_load_new_objfile and info_auto_load_scripts initizations to
2830 auto-load.c.
2831 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
2832
e4ab2fad
JK
28332012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2834
2835 Code cleanup.
2836 * charset.c (find_charset_names): Remove variables ix and elt.
2837 Use free_char_ptr_vec.
2838 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
2839 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2840 debugdir_end. New variable debugdir_len.
2841 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
2842 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
2843 declarations.
2844 * progspace.c (clear_program_space_solib_cache): Remove variables ix
2845 and elt. Use free_char_ptr_vec.
2846 * source.c (add_path): Remove variables argv, arg and argv_index.
2847 New variables dir_vec, back_to, ix and name.
2848 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
2849 make_cleanup_freeargv. Remove variable separator. Simplify the code
2850 no longer expecting DIRNAME_SEPARATOR.
2851 (openp): Remove variable p, p1 and len. New variables dir_vec,
2852 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
2853 no longer expecting DIRNAME_SEPARATOR.
2854 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
2855 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
2856 debugdir_end.
2857 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
2858 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
2859 (dirnames_to_char_ptr_vec): New functions.
2860
5ee4ed9f
JK
28612012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2862
2863 Code cleanup.
2864 * source.c (add_path): Remove always true conditional 'p == 0' and
2865 unindent its code block.
2866
f41f5e61
PA
28672012-04-17 Pedro Alves <palves@redhat.com>
2868
2869 * gdbtypes.h (FIELD_BITPOS): Rename to ...
2870 (FIELD_BITPOS_LVAL): ... this.
2871 (FIELD_BITPOS): New.
2872 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
2873 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
2874 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
2875 SET_FIELD_BITPOS.
2876 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
2877 SET_FIELD_BITPOS.
2878 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
2879 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
2880 * target-descriptions.c (tdesc_gdb_type): Adjust to use
2881 SET_FIELD_BITPOS.
2882
945b3a32
JK
28832012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2884
2885 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
2886 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
2887 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
2888 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
2889 * jv-lang.c (java_link_class_type): Likewise, once.
2890 * stabsread.c (read_enum_type): Likewise.
2891
42476b70
YQ
28922012-04-16 Yao Qi <yao@codesourcery.com>
2893
2894 * common/agent.c (agent_run_command): Add one more parameter `len'.
2895 Update callers.
2896 * common/agent.h: Update declaration.
2897 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2898 Update.
2899 (linux_child_static_tracepoint_markers_by_strid): Ditto.
2900
8264ba82
AG
29012012-04-14 Anton Gorenkov <xgsa@yandex.ru>
2902
2903 PR mi/13393
2904 * value.c (value_actual_type): New function.
2905 * value.h (value_actual_type): New declaration.
2906 * varobj.c (update_type_if_necessary): New function.
2907 (varobj_create): Call value_actual_type instead of
2908 value_type.
2909 (install_dynamic_child): distinct changed and type changed MI variable
2910 objects.
2911 (update_dynamic_varobj_children): Updated for install_dynamic_child
2912 change. All callers updated.
a09130f9 2913 (varobj_update): Support for MI variable object type change if
8264ba82
AG
2914 the value changed and RTTI is used to determine the type.
2915 (create_child_with_value): Call value_actual_type instead of
2916 value_type.
a09130f9 2917 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
2918 specify whether the given value should be casted to enclosing type.
2919 All callers updated.
2920
55a8c076
YQ
29212012-04-14 Yao Qi <yao@codesourcery.com>
2922
2923 Import gnulib module inttypes from git
2924 (250b80067c1e1d8faa0c42fb572f721975b929c5)
2925 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
2926 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
2927 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
2928 * aclocal.m4, config.in, configure: Regenerated.
2929 * gnulib/Makefile.am: Update.
2930 * gnulib/Makefile.in: Update.
2931 * gnulib/m4/gnulib-cache.m4: Update.
2932 * gnulib/m4/gnulib-comp.m4: Update.
2933 * gnulib/inttypes.in.h: New.
2934 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 2935 * gnulib/m4/inttypes.m4: New.
55a8c076 2936
ca7781d2
LM
29372012-04-13 Luis Machado <lgustavo@codesourcery.com>
2938
2939 * infrun.c (resume): Update PC address to the real PC after
2940 preparing to do displaced stepping.
2941
e319fa28
DE
29422012-04-12 Doug Evans <dje@google.com>
2943
2944 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
2945 All callers updated.
2946
15add3f5
MK
29472012-04-12 Mark Kettenis <kettenis@gnu.org>
2948
2949 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
2950
52dc124a
DE
29512012-04-12 Doug Evans <dje@google.com>
2952
0e50663e
DE
2953 * dwarf2read.c (create_all_type_units): Renamed from
2954 create_debug_types_hash_table. All callers updated.
2955
52dc124a
DE
2956 * dwarf2read.c (create_signatured_type_table_from_index): Rename
2957 local type_sig to sig_type, type_offset to type_offset_in_tu.
2958 (hash_signatured_type): Renamed from hash_type_signature,
2959 all callers updated.
2960 (eq_signatured_type): Renamed from eq_type_signature,
2961 all callers updated.
2962 (create_debug_types_hash_table): Rename local type_sig to sig_type.
2963 (process_enumeration_scope): Ditto.
2964 (lookup_signatured_type_at_offset): Ditto.
2965 (load_full_type_unit, read_signatured_type): Ditto.
2966
248fd3bf
YQ
29672012-04-12 Yao Qi <yao@codesourcery.com>
2968
2969 * remote.c (async_remote_interrupt): Correct function name in
2970 debug message.
2971 (async_remote_interrupt_twice): Ditto.
2972
bc3aa6c3
DE
29732012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
2974
2975 * source.c (find_and_open_source): Consistently pass resulting
2976 full path through xfullpath.
2977
9e529e1d
JK
29782012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2979
2980 Provide more specific displaced-stepping memory error message.
2981 * infrun.c (displaced_step_prepare): New variable status. Call
2982 target_read_memory instead of read_memory, provide more specific
2983 error message.
2984
82e0cec1
TG
29852012-04-11 Tristan Gingold <gingold@adacore.com>
2986
2987 PR gdb/13901
2988 * darwin-nat.c (darwin_execvp): Revert previous patch.
2989
d987a266
TG
29902012-04-11 Tristan Gingold <gingold@adacore.com>
2991
2992 PR gdb/13901
2993 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
2994 in case of change.
2995
016b7430
TG
29962012-04-11 Tristan Gingold <gingold@adacore.com>
2997
2998 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
2999 warning.
3000
06fc020f
SCR
30012012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3002
3003 New command 'explore' which helps explore values and types in
3004 scope.
3005 * NEWS: Add an entry about the new 'explore' command.
3006 * data-directory/Makefile.in: Add gdb/command/explore.py
3007 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 3008 command using the GDB Python API.
06fc020f 3009
de0919f8 30102012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
3011
3012 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3013 extension in jump target calculation.
3014
de0919f8 30152012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
3016
3017 * mips-tdep.c (mips32_next_pc): Handle JALX.
3018
2f26ef89
YQ
30192012-04-10 Yao Qi <yao@codesourcery.com>
3020
3021 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3022
2e505b66
YQ
30232012-04-10 Yao Qi <yao@codesourcery.com>
3024
3025 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3026 and gnulib/m4/gnulib-tool.m4.
3027
0d99eb77
DE
30282012-04-10 Doug Evans <dje@google.com>
3029
3030 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3031 (load_partial_dies): Clarify comment.
3032 (find_partial_die): Support rereading type units.
3033 Clarify CU handling, if we know offset is in CU, don't search for the
3034 containing CU. Add comment regarding memory waste.
3035
9a82b8ff
L
30362012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3037
3038 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3039 i386/x32-avx and i386/x32-avx-linux.
3040 (i386/x32-expedite): New.
3041 (i386/x32-linux-expedite): Likewise.
3042 (i386/x32-avx-expedite): Likewise.
3043 (i386/x32-avx-linux-expedite): Likewise.
3044 ($(outdir)/i386/x32.dat): Likewise.
3045 ($(outdir)/i386/x32-linux.dat): Likewise.
3046 ($(outdir)/i386/x32-avx.dat): Likewise.
3047 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3048
3049 * features/i386/x32-avx-linux.xml: New file.
3050 * features/i386/x32-avx.xml: Likewise.
3051 * features/i386/x32-core.xml: Likewise.
3052 * features/i386/x32-linux.xml: Likewise.
3053 * features/i386/x32.xml: Likewise.
3054
3055 * features/i386/x32-avx-linux.c: New. Generated.
3056 * features/i386/x32-avx.c: Likewise.
3057 * features/i386/x32-linux.c: Likewise.
3058 * features/i386/x32.c: Likewise.
3059 * regformats/i386/x32-avx-linux.dat: Likewise.
3060 * regformats/i386/x32-avx.dat: Likewise.
3061 * regformats/i386/x32-linux.dat: Likewise.
3062 * regformats/i386/x32.dat: Likewise.
3063
ee41036f
TG
30642012-04-10 Tristan Gingold <gingold@adacore.com>
3065
3066 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3067 code to kill the inferior.
3068
a7aa5b8a
MK
30692012-04-09 Mark Kettenis <kettenis@gnu.org>
3070
3071 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3072 defines.
3073 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3074 defines.
a09130f9 3075 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
3076 (yyvsp): New defines.
3077 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3078 defines.
3079 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3080 defines.
3081 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3082 defines.
3083 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3084 defines.
3085 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3086 defines.
3087
fb57d452
MK
30882012-04-09 Mark Kettenis <kettenis@gnu.org>
3089
a09130f9 3090 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
3091 (sparc64_store_arguments): Fix coding style.
3092
cdc7b32f
MK
30932012-04-07 Mark Kettenis <kettenis@gnu.org>
3094
3095 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3096 complex floats, adjust some related comments and tighten a related
3097 assertion.
3098 (sparc64_extract_return_value): Handle complex floats.
3099
7adf1e79
DE
31002012-04-07 Doug Evans <dje@google.com>
3101
3102 * dwarf2read.c (load_partial_dies): Change condition to assert.
3103
50f1ae7b
DE
31042012-04-06 Doug Evans <dje@google.com>
3105
3106 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3107 "mov %rsp,%rbp".
3108
55fa75c3
KB
31092012-04-05 Kevin Buettner <kevinb@redhat.com>
3110
3111 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3112 fencepost error.
3113 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3114 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3115 architecture.
3116
40e084e1
KS
31172012-04-05 Keith Seitz <keiths@redhat.com>
3118
3119 * linespec.c (decode_compound): Remove.
3120 (enum offset_relative_sign): New enum.
3121 (struct line_offset): New struct.
3122 (struct linespec): New struct.
3123 (struct linespec_state): Move file_symtabs,
3124 user_filename, and user_function into struct linespec.
3125 Make result an anonymous struct holding vectors of
3126 symbolp and minsym_and_objfile_d.
3127 Add language member.
3128 (enum ls_token_type): New enum.
3129 (linespec_keywords): New array.
3130 (struct ls_token): New struct.
3131 (struct ls_parser): New struct.
3132 (linespec_lexer_lex_number): New function.
3133 (linespec_lexer_lex_keyword): New function.
3134 (is_ada_operator): New function.
3135 (skip_quote_char): New function.
3136 (copy_token_string): New function.
3137 (is_closing_quote_enclosed): New function.
3138 (find_parameter_list_end): New function.
3139 (linespec_lexer_lex_string): New function.
3140 (linespec_lexer_lex_one): New function.
3141 (linespec_lexer_consume_token): New function.
3142 (linespec_lexer_peek_token): New function.
3143 (cplusplus_error): Remove unused function.
3144 (find_methods): Update comment.
3145 (find_toplevel_char): Return const.
3146 (is_objc_method_format): Remove unused function.
3147 (find_toplevel_string): New function.
3148 (is_linespec_boundary): Remove.
3149 (symbol_not_found_error): New function.
3150 (find_method_overload_end): Remove function.
3151 (unexpected_linespec_error): New function.
3152 (keep_name_info): Remove.
3153 (linespec_parse_line_offset): New function.
3154 (linespec_parse_basic): New function.
3155 (canonicalize_linespec): New function.
3156 (decode_line_internal): Remove.
3157 (create_sals_line_offset): New function adapted from
3158 decode_all_digits.
3159 (convert_linespec_to_sals): New function.
3160 (parse_linespec): New function.
3161 (linespec_parser_new): New function.
3162 (linespec_state_destructor): Change parameter type to
3163 struct linespec_state *.
3164 Add language parameter.
3165 Remove freeing of moved members.
3166 (linespec_parser_delete): New function.
3167 (decode_line_full): Use parse_linespec and linespec_parser_new.
3168 (decode_line_1): Likewise.
3169 (decode_indirect): Rename to ...
3170 (linespec_expression_to_pc): ... this and rewrite
3171 to simply find CORE_ADDR, storing this result for later
3172 conversion to SALs.
3173 (locate_first_half): Remove.
3174 (deocde_objc): Add parameter LS.
3175 Initialize new struct collect_info members.
3176 Handle minimal symbols, too.
3177 (decode_compound): Delete.
3178 (lookup_prefix_sym): Rewrite.
3179 (compare_msymbols): New function.
3180 (find_method): Rewrite.
3181 Do not call cplusplus_error.
3182 (symtabs_from_filename): Rewrite.
3183 (collect_function_symbols): Delete.
3184 (find_function_symbols): Rewrite without ARGPTR-style
3185 processing.
3186 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3187 (decode_dollar): Adapted and renamed to ...
3188 (linespec_parse_variable): ... this.
3189 (find_linespec_symbols): New function.
3190 (decode_label): Adapted and renamed to ...
3191 (find_label_symbols): ... this.
3192 (decode_digits_list_mode): Add and use LS argument.
3193 (decode_digits_ordinary): Likewise.
3194 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3195 If in list mode, allow any symbol class. Otherwise, only
3196 permit LOC_BLOCK symbols.
3197 (minsym_found): Update comments.
3198 (search_minsyms_for_name): Do not convert the matching symbol
3199 into a SAL. Simply push the symbol and objfile into the
3200 result vector.
3201 (decode_variable): Delete. Contents adapted into
3202 find_linespec_symbols.
3203
3204 * cp-support.c (SKIP_SPACE): Remove.
3205 (operator_tokens): Remove unused global.
3206 (cp_validate_operator): Remove.
3207 * cp-support.h (cp_validate_operator): Remove declaration.
3208
a72c8f6a
JK
32092012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3210
3211 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3212 for TYPE_VPTR_FIELDNO.
3213 * valprint.c (valprint_check_validity): Make it global, move the
3214 function comment ...
3215 * value.h (valprint_check_validity): ... to this new declaration.
3216
cf9bb588
TG
32172012-04-02 Tristan Gingold <gingold@adacore.com>
3218
3219 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3220 the STATE32 api for i386 state.
3221 (i386_darwin_store_inferior_registers): Likewise.
3222
17092398
TG
32232012-04-02 Tristan Gingold <gingold@adacore.com>
3224
3225 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3226 SS offset.
3227 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3228 format_string.
3229
ece0061f
TG
32302012-04-02 Tristan Gingold <gingold@adacore.com>
3231
3232 PR gdb/13901
d987a266 3233 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 3234
cf65ecd3
JK
32352012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3236
3237 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3238
9bc3523d
TT
32392012-03-30 Tom Tromey <tromey@redhat.com>
3240
3241 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3242 of TRY_CATCH. Fix error handling.
3243 * python/py-value.c (convert_value_from_python): Move 'old'
3244 declaration to innermost scope.
3245
b1ed564a
JB
32462012-03-29 Joel Brobecker <brobecker@adacore.com>
3247 Andrey Smirnov <andrew.smirnov@gmail.com>
3248
3249 -Wshadow warning fix.
3250 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3251 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3252 Adjust code accordingly.
3253
cb8e9b97
JB
32542012-03-29 Joel Brobecker <brobecker@adacore.com>
3255
3256 * ada-lang.c (symbol_completion_add): Rename parameter
3257 "encoded" into "encoded_p". Ajust code and documentation
3258 accordingly.
3259
c0af1706
JB
32602012-03-29 Joel Brobecker <brobecker@adacore.com>
3261 Andrey Smirnov <andrew.smirnov@gmail.com>
3262
3263 -Wshadow warning fix.
3264 * ada-lang.c (symbol_completion_add): Rename parameter
3265 "wild_match" into wild_match_p. Update code and documentation
3266 accordingly.
3267
6ea35997
JB
32682012-03-29 Joel Brobecker <brobecker@adacore.com>
3269
3270 * ada-lang.c (symbol_completion_match): Rename parameter
3271 "encoded" into "encoded_p". Ajust code and documentation
3272 accordingly.
3273
e701b3c0
JB
32742012-03-29 Joel Brobecker <brobecker@adacore.com>
3275 Andrey Smirnov <andrew.smirnov@gmail.com>
3276
3277 -Wshadow warning fix.
3278 * ada-lang.c (symbol_completion_match): Rename parameter
3279 "wild_match" into "wild_match_p". Adjust code and function
3280 documentation accordingly.
3281
5e2336be
JB
32822012-03-29 Joel Brobecker <brobecker@adacore.com>
3283 Andrey Smirnov <andrew.smirnov@gmail.com>
3284
3285 -Wshadow warning fix.
3286 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3287 "symbol_info" into "info". Adjust code accordingly.
3288 (ada_lookup_symbol): Likewise.
3289
9f88c959
JB
32902012-03-29 Joel Brobecker <brobecker@adacore.com>
3291
3292 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3293 of this function's documentation.
3294
82ccd55e
JB
32952012-03-29 Joel Brobecker <brobecker@adacore.com>
3296 Andrey Smirnov <andrew.smirnov@gmail.com>
3297
3298 -Wshadow warning fix.
3299 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3300 variable into "wild_match_p". Adjust code accordingly.
3301
d0a8ab18
JB
33022012-03-29 Joel Brobecker <brobecker@adacore.com>
3303 Andrey Smirnov <andrew.smirnov@gmail.com>
3304
3305 -Wshadow warning fix.
3306 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
3307 parameter into "wild_match_p". Adjust code accordingly.
3308 Document this parameter in the function description.
3309
48b78332
JB
33102012-03-29 Joel Brobecker <brobecker@adacore.com>
3311 Andrey Smirnov <andrew.smirnov@gmail.com>
3312
3313 -Wshadow warning fix.
3314 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
3315 "wild_match" parameter to "wild_match_p" (-Wshadow).
3316
2e6e0353
JB
33172012-03-29 Joel Brobecker <brobecker@adacore.com>
3318
3319 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
3320 in function documentation.
3321
dc4024cd
JB
33222012-03-29 Joel Brobecker <brobecker@adacore.com>
3323 Andrey Smirnov <andrew.smirnov@gmail.com>
3324
3325 -Wshadow warning fix.
3326 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
3327 variable into wild_match_p. Adjust code accordingly.
3328
6c88661c
JB
33292012-03-29 Joel Brobecker <brobecker@adacore.com>
3330 Andrey Smirnov <andrew.smirnov@gmail.com>
3331
3332 * ada-valprint.c (ada_val_print_1): Move the code handling
3333 TYPE_CODE_ENUM inside its own lexical block. Declare
3334 variables len and val there, instead of in the function's
3335 top level block. Avoid declaring deref_val again in a way
3336 that shadows another variable of the same name declared
3337 in one of the up-level blocks. Just re-use the up-level
3338 variable instead.
3339
4e5c77fe
JB
33402012-03-29 Joel Brobecker <brobecker@adacore.com>
3341
3342 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
3343 Replace block_found argument by symbol_info. Adjust
3344 implementation accordingly. Add function documentation.
3345 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
3346 Fix documentation.
3347 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
3348 * ada-exp.y (write_object_renaming): Adjust to new
3349 ada_lookup_encoded_symbol API.
3350
1c0ac8c7
JB
33512012-03-29 Joel Brobecker <brobecker@adacore.com>
3352
3353 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
3354 documentation.
3355
2aaed979
KB
33562012-03-28 Rathish C <rathish.c@kpitcummins.com>
3357
3358 * v850-tdep.c: Add the enum values for mpu and fpu registers.
3359 (v850_register_name): Add the mpu and fpu register names.
3360 (v850e_register_name): Add the mpu and fpu register names.
3361 (v850e2_register_name): New function.
a09130f9 3362 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
3363 bfd_mach_v850e2v3.
3364
927fbba6
JB
33652012-03-28 Joel Brobecker <brobecker@adacore.com>
3366
3367 * NEWS: Add entry for Ada varobj support.
3368
d32cafc7
JB
33692012-03-28 Joel Brobecker <brobecker@adacore.com>
3370
3371 * varobj.c (default_value_is_changeable_p): New function,
3372 extracted from varobj_value_is_changeable_p. Add declaration.
3373 (ada_value_is_changeable_p): New function, extracted from
3374 varobj_value_is_changeable_p. Add declaration.
3375 (struct language_specific): New field "value_is_changeable_p".
3376 (languages): Add entries for new field.
3377 (varobj_create): Set language before calling install_new_value.
3378 (varobj_value_is_changeable_p): Reimplement to call the varobj's
3379 "value_is_changeable_p" language callback.
3380
181875a4
JB
33812012-03-28 Joel Brobecker <brobecker@adacore.com>
3382
3383 * ada-varobj.h, ada-varobj.c: New files.
3384 * Makefile.in (SFILES): Add ada-varobj.c.
3385 (HFILES_NO_SRCDIR): Add ada-varobj.h.
3386 (COMMON_OBS): Add ada-varobj.o.
3387
7a290c40
JB
33882012-03-28 Joel Brobecker <brobecker@adacore.com>
3389
3390 * varobj.c (ada_value_has_mutated): Add declaration. New function.
3391 (struct language_specific): New field "value_has_mutated".
3392 (languages): Set field "value_has_mutated" in each entry of array.
3393 (varobj_value_has_mutated): New function.
3394 (varobj_udpdate): Add handling of type mutation.
3395 (value_of_root): Add handling of type mutation.
3396 (ada_value_has_mutated): New function.
3397
ca9b8b9c
PA
33982012-03-28 Pedro Alves <palves@redhat.com>
3399
3400 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
3401 Always supply $fr0 as 0.0 and $fr1 as 1.0.
3402
cc0265cd
TT
34032012-03-28 Tom Tromey <tromey@redhat.com>
3404
3405 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
3406 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
3407 before returning.
3408
3ad2ec6f
TT
34092012-03-28 Tom Tromey <tromey@redhat.com>
3410
3411 * .dir-locals.el: New file.
3412
4a6510ba
PA
34132012-03-28 Pedro Alves <palves@redhat.com>
3414
3415 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
3416
5a75128f
JB
34172012-03-28 Joel Brobecker <brobecker@adacore.com>
3418
3419 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
3420 handling for r0.
3421
f99d8bf4
PA
34222012-03-27 Pedro Alves <palves@redhat.com>
3423
3424 Eliminate struct ui_stream.
3425
3426 * ui-out.h (struct ui_stream): Delete.
3427 (ui_out_field_stream): Adjust prototype.
3428 (ui_out_stream_new, ui_out_stream_delete)
3429 (make_cleanup_ui_out_stream_delete): Delete declarations.
3430 * ui-out.c (ui_out_field_stream): Change prototype to take a
3431 ui_file instead of a ui_stream. Adjust.
3432 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
3433 (make_cleanup_ui_out_stream_delete): Delete.
3434 * breakpoint.c (print_breakpoint_location)
3435 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
3436 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3437 * disasm.c (dump_insns): Ditto.
3438 (do_mixed_source_and_assembly, do_assembly_only): Adjust
3439 prototype.
3440 (gdb_disassembly): Use ui_file/mem_fileopen instead of
3441 ui_stream/ui_out_stream_new.
3442 * infcmd.c (print_return_value): Ditto.
3443 * osdata.c (info_osdata_command): Don't allocate a local
3444 ui_stream.
3445 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
3446 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
3447 * tracepoint.c (print_one_static_tracepoint_marker): Don't
3448 allocate a local ui_stream.
3449 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
3450 instead of ui_stream/ui_out_stream_new.
3451 (list_args_or_locals): Don't allocate a local ui_stream.
3452 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
3453 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
3454 ui_stream/ui_out_stream_new.
3455 * cli/cli-setshow.c (do_setshow_command): Ditto.
3456
6350a066 34572012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 3458
6350a066
PA
3459 * arm-linux-tdep.c (arm_linux_init_abi): Call
3460 set_gdbarch_process_record. Initialize `arm_swi_record' field.
3461 * arm-tdep.c (arm_process_record): New function.
3462 (deallocate_reg_mem): New function.
3463 (decode_insn): New function.
3464 (thumb_record_branch): New function.
3465 (thumb_record_ldm_stm_swi(): New function.
3466 (thumb_record_misc): New function.
3467 (thumb_record_ld_st_stack): New function.
3468 (thumb_record_ld_st_imm_offset): New function.
3469 (thumb_record_ld_st_reg_offset(): New function.
3470 (thumb_record_add_sub_cmp_mov): New function.
3471 (thumb_record_shift_add_sub): New function.
3472 (arm_record_coproc_data_proc): New function.
3473 (arm_record_coproc): New function.
3474 (arm_record_b_bl): New function.
3475 (arm_record_ld_st_multiple): New function.
3476 (arm_record_ld_st_reg_offset): New function.
3477 (arm_record_ld_st_imm_offset): New function.
3478 (arm_record_data_proc_imm): New function.
3479 (arm_record_data_proc_misc_ld_str): New function.
3480 (arm_record_extension_space): New function.
3481 (arm_record_strx): New function.
3482 (sbo_sbz): New function.
3483 (struct insn_decode_record): New structure for arm insn record.
3484 (REG_ALLOC): New macro for reg allocations.
3485 (MEM_ALLOC): New macro for memory allocations.
3486 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 3487
89e028e2
AS
34882012-03-27 Andreas Schwab <schwab@linux-m68k.org>
3489
3490 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
3491 (store_register): Likewise.
3492
6350a066 34932012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 3494
6350a066 3495 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 3496
5b43fab2
JK
34972012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3498
3499 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
3500 Describe also the option "auto".
3501
b5453b95
RH
35022012-03-22 Richard Henderson <rth@redhat.com>
3503
3504 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
3505 * sparc-nat.c (sparc_xfer_wcookie): Make static.
3506
227ee7fc
RH
35072012-03-22 Richard Henderson <rth@redhat.com>
3508
3509 * jit.c (jit_read_code_entry): Compute alignment and offset of
3510 int64_t member before computing entry_size.
3511
7b282c5a
SCR
35122012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3513
3514 Python scripting: Add new method Value.referenced_value to
3515 gdb.Value which can dereference pointer as well as reference
3516 values.
3517 * NEWS: Add entry under 'Python scripting' about the new method
3518 Value.referenced_value on gdb.Value objects.
3519 * python/py-value.c (valpy_referenced_value): New function
3520 defining a new method on gdb.Value objects which can dereference
3521 pointer and reference values.
3522
0c83539f
SCR
35232012-03-22 Siva Chandra Reddy <sivachandra@google.com>
3524
3525 * MAINTAINERS (Write After Approval): Add myself to the list.
3526
7ccffd7c
KB
35272012-03-21 Kevin Buettner <kevinb@redhat.com>
3528
3529 * symtab.c (skip_prologue_sal): Change test to check for "main()"
3530 in addition to "main".
3531
bd0b9f9e
JB
35322012-03-21 Joel Brobecker <brobecker@adacore.com>
3533
3534 * expression.h (op_name): Add declaration.
3535 * expprint.c (op_name): Remove declaration. Make non-static.
3536 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
3537
a5362b9a
TS
35382012-03-21 Thomas Schwinge <thomas@codesourcery.com>
3539
3540 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
3541 of struct siginfo.
3542 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
3543 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3544 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
3545 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
3546 (linux_nat_get_siginfo): Likewise.
3547 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
3548 (linux_nat_get_siginfo): Likewise.
3549 * linux-tdep.c (linux_get_siginfo_type): Likewise.
3550 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
3551 * procfs.c (gdb_siginfo_t): Likewise.
3552
adcadaab
MF
35532012-03-21 Mike Frysinger <vapier@gentoo.org>
3554
3555 * .gitignore: Ignore more files.
3556
e278ad5b
PA
35572012-03-20 Pedro Alves <palves@redhat.com>
3558
3559 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
3560 returns.
3561
741e63d7
YQ
35622012-03-20 Yao Qi <yao@codesourcery.com>
3563
3564 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
3565 comment.
3566
b64f50a1
JK
35672012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3568
3569 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
3570 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
3571 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
3572 sect_offset.
3573 * dwarf2expr.h (cu_offset, sect_offset): New types.
3574 (struct dwarf_expr_context_funcs) <dwarf_call>
3575 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
3576 sect_offset.
3577 (struct dwarf_expr_context) <len>: Improve the comment.
3578 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
3579 cu_offset and sect_offset.
3580 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
3581 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
3582 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
3583 * dwarf2loc.h: Include dwarf2expr.h.
3584 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
3585 and sect_offset.
3586 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
3587 Improve the comment.
3588 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
3589 (struct signatured_type, struct line_header, struct partial_die_info)
3590 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
3591 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
3592 (get_die_type_at_offset, create_cus_from_index)
3593 (create_signatured_type_table_from_index, dw2_get_file_names)
3594 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
3595 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
3596 (create_debug_types_hash_table, process_psymtab_comp_unit)
3597 (load_partial_comp_unit, create_all_comp_units)
3598 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
3599 (load_full_comp_unit, dwarf2_physname, read_import_statement)
3600 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
3601 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
3602 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
3603 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
3604 (find_partial_die, read_attribute_value, lookup_die_type)
3605 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
3606 (is_ref_attr): New function comment.
3607 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
3608 Use cu_offset and sect_offset.
3609 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
3610 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
3611 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
3612 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
3613 (offset_and_type_hash, offset_and_type_eq, set_die_type)
3614 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
3615 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
3616 sect_offset.
3617
e97a38f7
JK
36182012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3619
3620 Code cleanup.
3621 * python/py-auto-load.c (source_section_scripts): New variable back_to.
3622 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
3623 with xfree.
3624 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
3625
8320cc4f
JK
36262012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3627
3628 * NEWS: Describe new options --init-command=FILE, -ix and
3629 --init-eval-command=COMMAND, -iex.
3630 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
3631 CMDARG_INIT_COMMAND.
3632 (captured_main): New enum items OPT_IX and OPT_IEX. Add
3633 "init-command", "init-eval-command", "ix" and "iex" to the variable
3634 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
3635 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
3636 (print_gdb_help): Describe --init-command=FILE, -ix and
3637 --init-eval-command=COMMAND, -iex.
3638
26743505
JK
36392012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3640
3641 Code cleanup.
3642 * main.c (struct cmdarg): Move it here from main. Add more comments.
3643 (cmdarg_s, VEC (cmdarg_s)): New.
3644 (main): Move struct cmdarg from here. New variables cmdarg_vec and
3645 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
3646 Install cleanup for cmdarg_vec. Update filling for options 'x' and
3647 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
3648 of CMDARG.
3649
5ff5c7b4
TT
36502012-03-19 Tom Tromey <tromey@redhat.com>
3651
3652 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
3653
ab260dad
JK
36542012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3655
3656 PR symtab/13777
3657 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
3658 GCC >=4.5.
3659
c366c1f0
TT
36602012-03-16 Chris January <chris.january@allinea.com>
3661
3662 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
3663 of clear.
3664
e16edb45
TT
36652012-03-16 Chris January <chris.january@allinea.com>
3666
3667 * source.c (add_path): Use memmove instead of strcpy because the
3668 strings overlap.
3669
53ba8333
JB
36702012-03-16 Joel Brobecker <brobecker@adacore.com>
3671
3672 * value.h (set_value_parent): Add declaration.
3673 * value.c (set_value_parent): New function.
3674 (value_address): If VALUE->PARENT is not NULL, then use it as
3675 the base address instead of VALUE->LOCATION.address.
3676 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
3677 the same as OBJ's address. Adjust V's offset accordingly.
3678 Set V's parent.
3679
481860b3
GB
36802012-03-16 Gary Benson <gbenson@redhat.com>
3681
3682 PR breakpoints/10738
3683 * dwarf2read.c (use_deprecated_index_sections): New global.
3684 (struct partial_die_info): New member may_be_inlined.
3685 (read_partial_die): Set may_be_inlined where appropriate.
3686 (add_partial_subprogram): Add partial symbols for partial
3687 DIEs that may be inlined.
3688 (new_symbol_full): Add inlined subroutines to the current
3689 scope.
3690 (write_psymtabs_to_index): Bump version number.
3691 (dwarf2_read_index): Read only version 6 indices unless
3692 use_deprecated_index_sections is set.
3693 * linespec.c (symbol_and_data_callback): New structure.
3694 (iterate_inline_only): New function.
3695 (iterate_over_all_matching_symtabs): New argument
3696 "include_inline". If nonzero, also call the callback for
3697 symbols representing inlined subroutines.
3698 (lookup_prefix_sym): Pass extra argument to the above.
3699 (find_function_symbols): Likewise.
3700 (add_matching_symbols_to_info): Likewise.
3701 * NEWS: Mention that GDB can now set breakpoints on inlined
3702 functions.
3703
d0e7e15a
PM
37042012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3705
3706 * p-typeprint.c (pascal_type_print_method_args):
3707 Fix display of parameter of methods.
3708
3d354654
PM
37092012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
3710
3711 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
3712 Add missing prototype.
3713
cafe75b0
JK
37142012-03-16 Yao Qi <yao@codesourcery.com>
3715 Jan Kratochvil <jan.kratochvil@redhat.com>
3716
3717 Fix false compilation warning.
3718 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
3719
25f8c692
JL
37202012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
3721 Pedro Alves <pedro@codesourcery.com>
3722
3723 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
3724 (arm_register_g_packet_guesses): New function.
3725 (arm_gdbarch_init): Don't force a target description with
3726 registers when the executable is detected as M-profile. Instead
3727 set gdbarch->tdep->is_m. Register `g' packet guesses.
3728 (_initialize_arm_tdep): Initialize the new target description.
3729 * features/arm-with-m-fpa-layout.xml: New description.
3730 * features/arm-with-m-fpa-layout.c: New, generated.
3731
35c63cd8
JB
37322012-03-15 Joel Brobecker <brobecker@adacore.com>
3733
3734 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
3735 Update function description.
3736 (insert_bp_location): Do not wipe bl->target_info out.
3737 * mem-break.c: #include "gdb_string.h".
3738 (default_memory_insert_breakpoint): Do not call target_read_memory
3739 with a pointer to the breakpoint's shadow_contents buffer. Use
3740 a local buffer instead.
3741 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
3742
57651221
TT
37432012-03-15 Tom Tromey <tromey@redhat.com>
3744
3745 * NEWS: Mention "info vtbl", not "info vtable".
3746 * cp-support.c (info_vtbl_command): Fix comment.
3747 (_initialize_cp_support): Fix text.
3748
410528f0
TT
37492012-03-15 Tom Tromey <tromey@redhat.com>
3750
3751 * cp-valprint.c (cp_print_value_fields): Use
3752 print_function_pointer_address for vtable slot.
3753
c4aeac85
TT
37542012-03-15 Tom Tromey <tromey@redhat.com>
3755
3756 * gnu-v3-abi.c (struct value_and_voffset): New.
3757 (hash_value_and_voffset, eq_value_and_voffset)
3758 (compare_value_and_voffset, compute_vtable_size)
3759 (print_one_vtable, gnuv3_print_vtable): New functions.
3760 (init_gnuv3_ops): Initialize 'print_vtable' field.
3761 * cp-support.c (info_vtbl_command): New function.
3762 (_initialize_cp_support): Add "info vtbl".
3763 * cp-abi.h (cplus_print_vtable): Declare.
3764 (struct cp_abi_ops) <print_vtable>: New field.
3765 * cp-abi.c (cplus_print_vtable): New function.
3766 * NEWS: Update.
3767
95cbceff
TT
37682012-03-15 Tom Tromey <tromey@redhat.com>
3769
3770 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
3771 iterate_over_symbols.
3772
589b4a32
DE
37732012-03-14 Doug Evans <dje@google.com>
3774
3775 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
3776 DW_OP_GNU_parameter_ref.
3777
e837f12a
JK
37782012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3779
3780 Fix double prompt of 'interpreter-exec mi'.
3781 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
3782 (mi_interpreter_resume): use it.
3783 (mi_execute_command_input_handler): New function.
3784 * mi/mi-main.c (mi_execute_command): Move prompt printing to
3785 mi_execute_command_input_handler.
3786
ff1e4526 37872012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
3788
3789 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
3790 prototype.
3791 (darwin_debug_port_info): Make static.
3792 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
3793 * machoread.c (_initialize_machoread): Add prototype.
3794 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
3795 (i386_darwin_set_control, i386_darwin_get_control)
3796 i386_darwin_dr_set_addr, i386_darwin_get_addr)
3797 i386_darwin_get_status, i386_darwin_get_control):
3798 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
3799
d8a5d6ee
JB
38002012-03-13 Joel Brobecker <brobecker@adacore.com>
3801
3802 * ax-gdb.c (gen_usual_unary): Remove special handling of
3803 enum and bool types.
3804
af381b8c
JB
38052012-03-13 Joel Brobecker <brobecker@adacore.com>
3806
3807 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
3808
786c562f
JB
38092012-03-13 Joel Brobecker <brobecker@adacore.com>
3810
3811 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
3812
e3ebf1bb
JB
38132012-03-13 Chris January <chris.january@allinea.com>
3814
3815 * aix-thread.c (fill_sprs): Store the floating point registers
3816 at the correct offsets into vals.
3817
c5b7e1cb
DE
38182012-03-13 Doug Evans <dje@google.com>
3819
16899756
DE
3820 * NEWS: Mention symbol-reloading has been deleted.
3821 * symfile.c (symbol_reloading): Delete.
3822 (show_symbol_reloading): Delete.
3823 (_initialize_symfile): Delete set/show symbol-reloading.
3824
c5b7e1cb
DE
3825 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
3826 read_in_chain until we have successfully read it in.
3827 (load_full_comp_unit): Ditto.
3828 (read_signatured_type): Add comment.
3829
46cb6474
JB
38302012-03-13 Chris January <chris.january@allinea.com>
3831
3832 * stabsread.c (fix_common_block): Change type of valu argument
3833 to CORE_ADDR.
3834
76219d77
JB
38352012-03-13 Chris January <chris.january@allinea.com>
3836
3837 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
3838 instruction.
3839
87b0bb13
JK
38402012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3841
3842 * common/linux-procfs.c (linux_proc_get_int): New, from
3843 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
3844 field.
3845 (linux_proc_get_tgid): Only call linux_proc_get_int.
3846 (linux_proc_get_tracerpid): New.
3847 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
3848 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
3849 linux_proc_pid_has_state.
3850 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
3851 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
3852 (linux_ptrace_attach_warnings): New.
3853 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
3854 New declaration.
3855 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
3856 (linux_nat_attach): New variables ex, buffer, message and message_s.
3857 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
3858
5f572dec
JK
38592012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3860
3861 * Makefile.in (linux-ptrace.o): New.
3862 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
3863 from linux-nat.c.
3864 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
3865 * common/linux-ptrace.c: New file.
3866 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
3867 * config/arm/linux.mh: Likewise.
3868 * config/i386/linux.mh: Likewise.
3869 * config/i386/linux64.mh: Likewise.
3870 * config/ia64/linux.mh: Likewise.
3871 * config/m32r/linux.mh: Likewise.
3872 * config/m68k/linux.mh: Likewise.
3873 * config/mips/linux.mh: Likewise.
3874 * config/pa/linux.mh: Likewise.
3875 * config/powerpc/linux.mh: Likewise.
3876 * config/powerpc/ppc64-linux.mh: Likewise.
3877 * config/powerpc/spu-linux.mh: Likewise.
3878 * config/s390/s390.mh: Likewise.
3879 * config/sparc/linux.mh: Likewise.
3880 * config/sparc/linux64.mh: Likewise.
3881 * config/xtensa/linux.mh: Likewise.
3882 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
3883 common/linux-procfs.c.
3884 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
3885
44f238bb
PA
38862012-03-13 Hui Zhu <teawater@gmail.com>
3887 Pedro Alves <palves@redhat.com>
3888
3889 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
3890 CREATE_BREAKPOINT_FLAGS_INSERTED.
3891 (create_breakpoint_sal, create_breakpoints_sal)
3892 (base_breakpoint_create_breakpoints_sal)
3893 (tracepoint_create_breakpoints_sal)
3894 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
3895 down.
3896 (break_command_1, handle_gnu_v3_exceptions, trace_command)
3897 (ftrace_command, strace_command): Adjust.
3898 (create_tracepoint_from_upload): Pass
3899 CREATE_BREAKPOINT_FLAGS_INSERTED.
3900 * breakpoint.h (enum breakpoint_create_flags): New.
3901 (create_breakpoint): New flags parameter.
3902 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
3903 * python/py-breakpoint.c (bppy_init): Adjust.
3904 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
3905 * spu-tdep.c (spu_catch_start): Adjust.
3906
1e51243a
PA
39072012-03-13 Pedro Alves <palves@redhat.com>
3908 Hui Zhu <teawater@gmail.com>
3909 Yao Qi <yao@codesourcery.com>
3910
3911 * remote.c (struct remote_state): New field `starting_up'.
3912 (remote_start_remote): Set and clear it.
3913 (remote_can_download_tracepoint): If starting up, return false.
3914
fa3064dd
YQ
39152012-03-13 Yao Qi <yao@codesourcery.com>
3916
3917 * inferior.h (struct inferior): Remove fields any_syscall_count,
3918 syscalls_counts and total_syscalls_count. Move them to new
3919 struct catch_syscall_inferior_data in breakpoint.c.
3920 * breakpoint.c: Call DEF_VEC_I(int).
3921 (struct catch_syscall_inferior_data): New.
3922 (get_catch_syscall_inferior_data): New.
3923 (catch_syscall_inferior_data_cleanup): New.
3924 (insert_catch_syscall): Update to access data in
3925 struct catch_syscall_inferior_data.
3926 (insert_catch_syscall): Likewise.
3927 (remove_catch_syscall): Likewise.
3928 (remove_catch_syscall): Likewise.
3929 (is_syscall_catchpoint_enabled): Likewise.
3930 (add_catch_command): Likewise.
3931 (_initialize_breakpoint): Register cleanup.
3932 * breakpoint.h: Removed DEF_VEC_I(int).
3933 * dwarf2loc.c: Call DEF_VEC_I(int).
3934 * mi/mi-main.c: Likewise.
3935
460fac3c
MK
39362012-03-12 Mark Kettenis <kettenis@gnu.org>
3937
3938 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
3939
e1aca11e
JB
39402012-03-12 Chris January <chris.january@allinea.com>
3941
3942 * aix-thread.c (_initialize_aix_thread): Add prototype.
3943 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
3944 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
3945
649c7061
JB
39462012-03-12 Joel Brobecker <brobecker@adacore.com>
3947
3948 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
3949 include of "amd64-nat.h".
3950
0b49e518
TT
39512012-03-12 Tom Tromey <tromey@redhat.com>
3952
3953 * buildsym.c (record_pending_block): Now static.
3954 * buildsym.h: (record_pending_block): Remove.
3955
fd24fa94
AT
39562012-03-12 Andreas Tobler <andreast@fgznet.ch>
3957
3958 * amd64bsd-nat.c: Include amd64bsd-nat.h.
3959
ba919b58
TT
39602012-03-09 Tom Tromey <tromey@redhat.com>
3961
3962 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
3963 producer_is_gxx_lt_4_6>: New fields.
3964 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
3965
a48e046c
TT
39662012-03-09 Tom Tromey <tromey@redhat.com>
3967
3968 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
3969
6f5e9362
JB
39702012-03-08 Joel Brobecker <brobecker@adacore.com>
3971
3972 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
3973 prototype.
3974
8d037db9
JB
39752012-03-08 Joel Brobecker <brobecker@adacore.com>
3976
3977 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
3978
4e841acf
JK
39792012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981 Fix -Wmissing-prototypes build.
3982 * arm-linux-nat.c (get_thread_id): Make it static.
3983 * xtensa-linux-nat.c (get_thread_id): Likewise.
3984
c6030312
JB
39852012-03-08 Joel Brobecker <brobecker@adacore.com>
3986
3987 * server.c (process_point_options): If a conditional expression
3988 is found, only print a message if remote_debug is nonzero.
3989
52323be9
LM
39902012-03-08 Luis Machado <lgustavo@codesourcery.com>
3991
3992 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
3993 of internal error for unknown/unsupported types.
3994
7fe25d9b
JK
39952012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
3996
3997 Fix CU relative vs. absolute DIE offsets.
3998 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
3999 offset to offset_in_cu.
4000 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4001 TYPE_OFFSET.
4002 (dwarf2_fetch_die_location_block): Rename parameter offset to
4003 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4004
05e7c244
JK
40052012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4006
4007 * libunwind-frame.c: Rename to ...
4008 * ia64-libunwind-tdep.c: ... here.
4009 * libunwind-frame.h: Rename to ...
4010 * ia64-libunwind-tdep.h: ... here.
4011 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4012 ia64-libunwind-tdep.h.
4013 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4014 * README (--with-libunwind): Rename to ...
4015 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4016 * config.in: Regenerate.
4017 * configure: Regenerate.
4018 * configure.ac: New option --with-libunwind-ia64, make the
4019 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4020 Remove AC_DEFINE for HAVE_LIBUNWIND.
4021 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4022 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4023 Rename libunwind-frame in the general comment.
4024 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4025 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4026 Move forward declarations inside #ifndef. Rename libunwind-frame in
4027 the general comment.
4028 * ia64-tdep.c: Rename libunwind-frame.h #include to
4029 ia64-libunwind-tdep.h.
4030 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4031 (ia64_libunwind_descr): Rename libunwind-frame to
4032 ia64-libunwind-tdep in these function comments.
4033 * ia64-tdep.h: Rename libunwind-frame.h #include to
4034 ia64-libunwind-tdep.h.
4035 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4036 ia64-libunwind-tdep in that data comment.
4037
3755cbfd
JK
40382012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4039
4040 * libunwind-frame.h (struct frame_unwind): New declaration.
4041
d1cda5d9
JB
40422012-03-08 Joel Brobecker <brobecker@adacore.com>
4043
4044 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4045 "set breakpoint condition-evaluation" command.
4046
a0ba0aa2
TG
40472012-03-08 Tristan Gingold <gingold@adacore.com>
4048
4049 * sparc-stub.c: Move to stubs/
4050 * sh-stub.c: Likewise.
4051 * m68k-stub.c: Likewise.
4052 * m32r-stub.c: Likewise.
4053 * i386-stub.c: Likewise.
4054
7b8b6d6d
AS
40552012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4056
007cafee
AS
4057 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4058 linux_get_siginfo_type.
4059
7b8b6d6d
AS
4060 * m68klinux-nat.c: Include "gdb_proc_service.h".
4061 (PTRACE_GET_THREAD_AREA): Define.
4062 (ps_get_thread_area): New function.
4063
bba74b36
YQ
40642012-03-08 Yao Qi <yao@codesourcery.com>
4065
4066 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4067 `xsnprintf'.
4068 (remote_query_attached): Likewise.
4069 (remote_static_tracepoint_marker_at): Likewise.
4070 (remote_set_permissions): Likewise.
4071 (remote_detach_1, extended_remote_attach_1): Likewise.
4072 (send_g_packet, remote_vkill): Likewise.
4073 (extended_remote_disable_randomization): Likewise.
4074 (remote_add_target_side_condition): Likewise.
4075 (remote_insert_breakpoint): Likewise.
4076 (remote_remove_breakpoint): Likewise.
4077 (remote_insert_watchpoint): Likewise.
4078 (remote_remove_watchpoint): Likewise.
4079 (remote_insert_hw_breakpoint): Likewise.
4080 (remote_insert_hw_breakpoint): Likewise.
4081 (remote_remove_hw_breakpoint): Likewise.
4082 (remote_download_command_source): Likewise.
4083 (remote_download_tracepoint): Likewise.
4084 (remote_download_trace_state_variable): Likewise.
4085 (remote_disable_tracepoint): Likewise.
4086 (remote_trace_set_readonly_regions): Likewise.
4087 (remote_get_tracepoint_status): Likewise.
4088 (remote_trace_find): Likewise.
4089 (remote_get_trace_state_variable_value): Likewise.
4090 (remote_set_disconnected_tracing): Likewise.
4091 (remote_set_circular_trace_buffer): Likewise.
4092 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4093 (remote_use_agent): Likewise.
4094 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4095 Update callers.
4096
9b224c5e
PA
40972012-03-07 Pedro Alves <palves@redhat.com>
4098
4099 * NEWS: Mention QProgramSignals.
4100 * inferior.h (update_signals_program_target): Declare.
4101 * infrun.c: (update_signals_program_target): New.
4102 (handle_command): Update the target of the new program signals
4103 array changes.
4104 * remote.c (PACKET_QProgramSignals): New enum.
4105 (last_program_signals_packet): New global.
4106 (remote_program_signals): New.
4107 (remote_start_remote): Update the target with the program signals
4108 list.
4109 (remote_protocol_features): Add entry for QPassSignals.
4110 (remote_open_1): Free anc clear last_program_signals_packet.
4111 (init_remote_ops): Install remote_program_signals.
4112 * target.c (update_current_target): Adjust.
4113 (target_program_signals): New.
4114 * target.h (struct target_ops) <to_program_signals>: New field.
4115 (target_program_signals): Declare.
4116
74c48cbb
PA
41172012-03-07 Pedro Alves <palves@redhat.com>
4118
4119 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4120 extensions.
4121
0c13fc49
AS
41222012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4123
4124 * m68klinux-nat.c (getregs_supplies): Make static.
4125 (getfpregs_supplies): Likewise.
4126 (have_ptrace_getregs): Likewise.
4127
1281d2a3
JB
41282012-03-06 Joel Brobecker <brobecker@adacore.com>
4129
4130 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4131 in call to get_die_type_at_offset.
4132
2b03b41d
SS
41332012-03-06 Stan Shebs <stan@codesourcery.com>
4134
4135 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4136 * mi/mi-cmd-disas.c: Ditto.
4137 * mi/mi-cmd-env.c: Ditto.
4138 * mi/mi-cmd-file.c: Ditto.
4139 * mi/mi-cmd-stack.c: Ditto.
4140 * mi/mi-cmd-target.c: Ditto.
4141 * mi/mi-cmd-var.c: Ditto.
4142 * mi/mi-cmds.c: Ditto.
4143 * mi/mi-cmds.h: Ditto.
4144 * mi/mi-console.c: Ditto.
4145 * mi/mi-getopt.c: Ditto.
4146 * mi/mi-getopt.h: Ditto.
4147 * mi/mi-interp.c: Ditto.
4148 * mi/mi-main.c: Ditto.
4149 * mi/mi-out.c: Ditto.
4150 * mi/mi-parse.c: Ditto.
4151 * mi/mi-parse.h: Ditto.
4152 * mi/mi-symbol-cmds.c: Ditto.
4153
4154 * mi/mi-getopt.h: Move mi_opt struct up.
4155 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4156 return.
4157 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4158
c988ad87
TT
41592012-03-06 Tom Tromey <tromey@redhat.com>
4160
4161 * proc-service.c (ps_pglobal_lookup): Set the current program
4162 space.
4163
1b7c1b10
PA
41642012-03-06 Pedro Alves <palves@redhat.com>
4165
4166 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4167
3c182069
JB
41682012-03-05 Joel Brobecker <brobecker@adacore.com>
4169
4170 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4171
2e794194
JK
41722012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4173
4174 Code cleanup.
4175 * common/linux-osdata.c (linux_common_core_of_thread): New function
4176 comment.
4177 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4178 call by linux_common_core_of_thread.
4179 (linux_nat_core_of_thread_1): Remove.
4180 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4181 * linux-thread-db.c: Include linux-osdata.h.
4182 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4183 linux_common_core_of_thread.
4184
9f9f1f31
TT
41852012-03-05 Tom Tromey <tromey@redhat.com>
4186
4187 * value.c (value_primitive_field): Don't fetch contents for
4188 non-virtual bases.
4189
b7b189f3
TT
41902012-03-05 Tom Tromey <tromey@redhat.com>
4191
4192 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4193
05b8a789 41942012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 4195
5538f557
JB
4196 * s390-nat.c: Include "gregset.h".
4197
75528772
JK
41982012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4199
4200 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4201 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4202 (libunwind_load): New variable so_error, use it for dlerror. Try to
4203 load also LIBUNWIND_SO_7.
4204
275418ae
PA
42052012-03-05 Pedro Alves <palves@redhat.com>
4206
4207 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4208 is not NULL, and remove resulting dead code.
4209
5cbb9812
TS
42102012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4211
4212 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4213 prologue to sh_analyze_prologue.
4214 (sh_analyze_prologue): Make better use of such an upper limit, and
4215 generally be more cautious about accessing memory.
4216
541515ad
TT
42172012-03-05 Tom Tromey <tromey@redhat.com>
4218
4219 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4220 _initialize_ia64_hpux_tdep.
4221
b4d36fb8
PA
42222012-03-05 Pedro Alves <palves@redhat.com>
4223
24490249
PA
4224 PR gdb/13766
4225
b4d36fb8
PA
4226 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4227 the register state is clear, supply explicit zero, instead of
4228 marking the register unavailable.
4229
60c9a3c0
TG
42302012-03-05 Tristan Gingold <gingold@adacore.com>
4231
4232 * NEWS: Mention OpenVMS ia64 new target.
4233
696759ad
TG
42342012-03-05 Tristan Gingold <gingold@adacore.com>
4235
4236 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4237 (ia64_unw_accessors, ia64_unw_rse_accessors)
4238 (ia64_libunwind_descr): Declare.
4239 * ia64-vms-tdep.c: New file.
4240 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4241 (ia64_libunwind_descr): Make them public.
4242 * configure.tgt: Add ia64-*-*vms*.
4243 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4244 (ALLDEPFILES): Add ia64-vms-tdep.c
4245
34864976
TG
42462012-03-05 Tristan Gingold <gingold@adacore.com>
4247
169081d0
TG
4248 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4249 * remote.c (PACKET_qXfer_uib): New enum value.
4250 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4251 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4252 (_initialize_remote): Call add_packet_config_cmd for
4253 xfer:uib packet.
4254
42552012-03-05 Tristan Gingold <gingold@adacore.com>
4256
4257 * osabi.c (gdb_osabi_names): Add OpenVMS.
4258 (generic_elf_osabi_sniffer): Likewise.
4259 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 4260
6597b100
JK
42612012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4262
4263 Removed unused code.
4264 * libunwind-frame.c (libunwind_frame_unwind)
4265 (libunwind_frame_base_address): Remove.
4266 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4267
87399aa1
YQ
42682012-03-04 Yao Qi <yao@codesourcery.com>
4269
4270 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4271 remove trailing new line.
4272 (agent_run_command, agent_run_command): Add _ markup.
4273 (agent_capability_check): Likewise.
4274
abf1152a
JK
42752012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4276
4277 * breakpoint.c (set_condition_evaluation_mode): Set
4278 CONDITION_EVALUATION_MODE unconditionally.
4279
5808517f
YQ
42802012-03-03 Yao Qi <yao@codesourcery.com>
4281
4282 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4283 * common/agent.h: Update declaration.
4284 * inf-child.c (inf_child_use_agent): New.
4285 (inf_child_can_use_agent): New.
4286 (inf_child_target): Initialize fields `to_use_agent'
4287 and `to_can_use_agent'.
4288 * agent.c (agent_new_objfile): New.
89b7509a 4289 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
4290 observer.
4291
4292 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4293 New.
89b7509a 4294 (linux_target_install_ops): Initialize field
5808517f
YQ
4295 `to_static_tracepoint_markers_by_strid'.
4296 * remote.c (free_current_marker): Move it to ...
4297 * tracepoint.c (free_current_marker): ... here. New.
4298 (cleanup_target_stop): New.
4299 * tracepoint.h: Declare free_current_marker.
4300 * NEWS: Add one entry about `info static-tracepoint-marker'.
4301
58b4daa5
YQ
43022012-03-03 Yao Qi <yao@codesourcery.com>
4303
4304 * common/agent.c (agent_loaded_p): New.
89b7509a 4305 (agent_look_up_symbols): New global.
58b4daa5
YQ
4306 * common/agent.h: Declare agent_loaded_p.
4307
8ffcbaaf
YQ
43082012-03-03 Yao Qi <yao@codesourcery.com>
4309
4310 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
4311 (agent_capability_check, agent_capability_invalidate): New.
4312 (symbol_list): New array element.
4313 * common/agent.h (enum agent_capa): New.
4314 * target.c (target_pre_inferior): Call agent_capability_invalidate.
4315
d1feda86
YQ
43162012-03-03 Yao Qi <yao@codesourcery.com>
4317
4318 * target.h (struct target_ops) <to_use_agent>: New field.
4319 (struct target_ops) <to_can_use_agent>: New field.
4320 (target_use_agent, target_can_use_agent): New macro.
4321 * target.c (update_current_target): Update.
4322 * remote.c: New enum `PACKET_QAgent'.
4323 (remote_protocol_features): Add a new element.
4324 (remote_use_agent, remote_can_use_agent): New.
4325 (init_remote_ops): Initialize field `can_use_agent' with
4326 remote_can_use_agent. Intiailize field `use_agent' with
4327 remote_use_agent.
4328 * common/agent.c (use_agent): New global.
4329 * common/agent.h: Declare it.
4330 * tracepoint.c (info_static_tracepoint_markers_command): Add
4331 comment.
4332 * Makefile.in (SFILES): Add common/agent.c and agent.c.
4333 (COMMON_OBS): Add common/agent.o and agent.o
4334 (common-agent.o): New rule.
4335 * agent.c: New.
4336
2fa291ac
YQ
43372012-03-03 Yao Qi <yao@codesourcery.com>
4338
4339 * common/agent.c: New.
4340 * common/agent.h: New.
4341 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
4342 AC_CHECK_HEADERS.
4343 * configure, configh.in: Regenerated.
4344
9fc05685
KB
43452012-03-02 Kevin Buettner <kevinb@redhat.com>
4346
4347 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
4348 unless it exists for this architecture.
4349
a5ee536b
JB
43502012-03-02 Joel Brobecker <brobecker@adacore.com>
4351
4352 * language.h (struct language_defn): New "method" la_read_var_value.
4353 * findvar.c: #include "language.h".
4354 (default_read_var_value): Renames read_var_value. Rewrite
4355 function description.
4356 (read_var_value): New function.
4357 * value.h (default_read_var_value): Add prototype.
4358 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
4359 New functions.
4360 (ada_language_defn): Add entry for la_read_var_value.
4361 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
4362 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
4363 language_defn structures to add entry for new la_read_var_value
4364 field.
4365
f59f708a
PA
43662012-03-02 Tom Tromey <tromey@redhat.com>
4367 Pedro Alves <palves@redhat.com>
4368
4369 PR breakpoints/13776:
4370 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
4371 breakpoints.
4372 (delete_longjmp_breakpoint_at_next_stop): New.
4373 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
4374 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
4375 before deleting the inferior. Add comments.
4376 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
4377 breakpoints immediately, but only on next stop. Move that code
4378 next to where we mark other breakpoints for deletion.
4379
44099a67
JB
43802012-03-02 Joel Brobecker <brobecker@adacore.com>
4381
4382 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
4383 marker.
4384 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
4385 violation.
4386
2a2ef594
PA
43872012-03-02 Pedro Alves <palves@redhat.com>
4388
4389 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
4390
b261e0c5
UW
43912012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
4392
4393 Fix -Wmissing-prototypes build.
4394 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
4395 * remote-sim.c (gdbsim_has_all_memory): Likewise.
4396 (gdbsim_has_memory): Likewise.
4397
a95babbf
YQ
43982012-03-02 Yao Qi <yao@codesourcery.com>
4399
4400 Fix -Wmissing-prototypes build.
4401 * charset.c (phony_iconv_open): Make static.
4402 (phony_iconv_close, phony_iconv): Likewise.
4403 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
4404 * i386-windows-nat.c (_initialize_i386_windows_nat): New
4405 prototype.
4406 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
4407 * ser-mingw.c (create_select_thread): Make static.
4408 * windows-termcap.c (tgetent): New prototype.
4409 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
4410
d603d4b3
JK
44112012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
4412
4413 Fix -Wmissing-prototypes build.
4414 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
4415 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
4416 (_initialize_loadable): New prototypes.
4417
7fb3ad1f
DE
44182012-03-02 Doug Evans <dje@google.com>
4419
4420 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
4421 abbrev table, read_comp_unit will do it.
4422
693be288
JK
44232012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4424
4425 Fix -Wmissing-prototypes build.
4426 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
4427 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
4428 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
4429 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
4430 (_initialize_arm_symbian_tdep): New prototype.
4431 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
4432 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
4433 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
4434 static.
4435 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
4436 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
4437 prototype.
4438 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
4439 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
4440 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
4441 static.
4442 * moxie-tdep.c (moxie_process_record): Likewise.
4443 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
4444 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
4445 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
4446 (_initialize_rl78_tdep): New prototype.
4447 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
4448 (_initialize_rx_tdep): New prototype.
4449 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
4450 (_initialize_darwin_solib): New prototype.
4451 * solib-spu.c: Include solib-spu.h.
4452 (_initialize_spu_solib): New prototype.
4453 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
4454 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
4455 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
4456 (tic6x_software_single_step): Make it static.
4457 (_initialize_tic6x_tdep): New prototype.
4458
638234e5
JK
44592012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4460
4461 Fix -Wmissing-prototypes build.
4462 * cris-tdep.c (cris_can_use_hardware_watchpoint)
4463 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
4464
f4a6f16d
JK
44652012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4466
4467 Fix -Wmissing-prototypes build.
4468 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
4469 (frv_have_stopped_data_address): Remove.
4470
04dcf5fa
JK
44712012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4472
4473 Fix -Wmissing-prototypes build.
4474 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
4475 * sh-tdep.c: Include sh64-tdep.h.
4476 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
4477 * sh64-tdep.c: Include sh64-tdep.h.
4478 * sh64-tdep.h: New file.
4479
19080931
MR
44802012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4481
4482 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
4483
9aac7884
MR
44842012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4485
4486 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
4487 sp_regnum once the gdbarch_init_osabi hook has been called.
4488
a385295e
MR
44892012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
4490
4491 * mips-tdep.c (mips32_bc1_pc): New function.
4492 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
4493 BPOSGE32 and BPOSGE64 instructions.
4494 (deal_with_atomic_sequence): Likewise.
4495 (mips32_instruction_has_delay_slot): Likewise.
4496
1faeff08 44972012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
4498 Chris Dearman <chris@mips.com>
4499 Maciej W. Rozycki <macro@codesourcery.com>
4500 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
4501
4502 * features/mips-dsp.xml: New file.
4503 * features/mips64-dsp.xml: New file.
4504 * features/mips-dsp-linux.xml: New file.
4505 * features/mips64-dsp-linux.xml: New file.
4506 * features/Makefile (WHICH): Add mips-dsp-linux and
4507 mips64-dsp-linux.
4508 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
4509 * features/mips-dsp-linux.c: New file.
4510 * features/mips64-dsp-linux.c: New file.
4511 * regformats/mips-dsp-linux.dat: New file.
4512 * regformats/mips64-dsp-linux.dat: New file.
4513 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
4514 registers.
4515 (mips64_linux_register_addr): Likewise.
4516 (mips64_linux_regsets_fetch_registers): Likewise.
4517 (mips64_linux_regsets_store_registers): Likewise.
4518 (mips64_linux_fetch_registers): Update call to
4519 mips64_linux_regsets_fetch_registers.
4520 (mips64_linux_store_registers): Update call to
4521 mips64_linux_regsets_store_registers.
4522 (mips_linux_read_description): Probe for DSP registers.
4523 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
4524 and initialize_tdesc_mips64_dsp_linux.
4525 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
4526 Remove padding of no longer used embedded register slots.
4527 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
4528 (MIPS_RESTART_REGNUM): Redefine enum value.
4529 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
4530 strings.
4531 (mips_tx39_reg_names): Likewise.
4532 (mips_linux_reg_names): New array of register names for Linux
4533 targets.
4534 (mips_register_name): Check for a null pointer in
4535 mips_processor_reg_names and return an empty string.
4536 (mips_register_type): Exclude embedded registers for the IRIX
4537 and Linux ABIs.
4538 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
4539 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
4540 DSP registers.
4541 (mips_stab_reg_to_regnum): Handle DSP accumulators.
4542 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
4543 (mips_gdbarch_init): Likewise. Initialize internal register
4544 indices for the Linux ABI. Use dynamic numbers to refer to
4545 registers, as applicable, while parsing the target description.
4546 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
4547
263689d8
JB
45482012-03-01 Joel Brobecker <brobecker@adacore.com>
4549
4550 * frame.h (read_frame_register_unsigned): Fix typo in function
4551 description.
4552
f3b4f45c
PA
45532012-03-01 Pedro Alves <palves@redhat.com>
4554
4555 * jit-reader.in [!__cplusplus]
4556 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
4557
b03a2011
PA
45582012-03-01 Pedro Alves <palves@redhat.com>
4559
4560 * configure.ac (build_warnings): Add -Wmissing-prototypes.
4561 * configure: Regenerate.
4562
70221824
PA
45632012-03-01 Pedro Alves <palves@redhat.com>
4564
4565 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
4566 * breakpoint.c (create_exception_master_breakpoint, trace_command)
4567 (ftrace_command, strace_command): Make static.
4568 * d-lang.c (_initialize_d_language): Declare.
4569 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
4570 * dwarf2loc.c (_initialize_dwarf2loc):
4571 * dwarf2read.c (process_psymtab_comp_unit): Make static.
4572 * exec.c (exec_get_section_table): Make static.
4573 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
4574 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
4575 * inferior.c (remove_inferior_command, add_inferior_command)
4576 (clone_inferior_command): Make static.
4577 * linux-nat.c (linux_nat_thread_address_space)
4578 (linux_nat_core_of_thread): Make static.
4579 * linux-tdep.c (_initialize_linux_tdep): Declare.
4580 * objc-lang.c (_initialize_objc_lang): Declare.
4581 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
4582 Make static.
4583 (_initialize_opencl_language): Declare.
4584 * record.c (_initialize_record): Declare.
4585 * remote.c (demand_private_info, remote_get_tib_address)
4586 (remote_supports_cond_tracepoints)
4587 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
4588 Make static.
4589 * skip.c (_initialize_step_skip): Declare.
4590 * symtab.c (skip_prologue_using_lineinfo): Make static.
4591 * tracepoint.c (delete_trace_state_variable)
4592 (trace_variable_command, delete_trace_variable_command)
4593 (get_uploaded_tsv, find_matching_tracepoint_location)
4594 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
4595 Make static.
4596 * value.c (pack_unsigned_long): Make static.
4597 * varobj.c (varobj_ensure_python_env): Make static.
4598 * windows-tdep.c (_initialize_windows_tdep): Declare.
4599 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
4600
33fbcbee
PA
46012012-03-01 Pedro Alves <palves@redhat.com>
4602
4603 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
4604 gdbarch parameter.
4605 (linux_init_abi): Install it as has_shared_address_space gdbarch
4606 callback.
4607
44d0cd3b
PA
46082012-03-01 Pedro Alves <palves@redhat.com>
4609
4610 * observer.c (observer_test_first_notification_function)
4611 (observer_test_second_notification_function)
4612 (observer_test_third_notification_function): Add declarations.
4613
ed01b82c
PA
46142012-03-01 Pedro Alves <palves@redhat.com>
4615
4616 * common/signals.c (default_target_signal_to_host)
4617 (default_target_signal_from_host): Move ...
4618 * arch-utils.c: ... here.
4619 * arch-utils.h (default_target_signal_to_host)
4620 (default_target_signal_from_host): Declare.
4621
4622 * common/signals.c (target_signal_from_command): Move ...
4623 * infrun.c: ... here.
4624 * inferior.h (target_signal_from_command): Declare.
4625 * target.h (target_signal_from_command)
4626 (default_target_signal_from_host, default_target_signal_to_host):
4627 Delete declarations.
4628
4629 * common/signals.c (_initialize_signals): Delete.
4630
c9b87335
PA
46312012-03-01 Pedro Alves <palves@redhat.com>
4632
4633 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
4634 both __cplusplus and !__cplusplus.
4635
9340a6c0
PA
46362012-03-01 Pedro Alves <palves@redhat.com>
4637
4638 * psymtab.c (find_and_open_source): Delete declaration.
4639 * source.c (find_and_open_source): Move comment ...
4640 * source.h (find_and_open_source): ... to this new declaration.
4641
e451c4a1
PA
46422012-03-01 Pedro Alves <palves@redhat.com>
4643
4644 * inline-frame.c: Include inline-frame.h.
4645
983fb104
PA
46462012-03-01 Pedro Alves <palves@redhat.com>
4647
4648 * tui/tui-data.c (set_gen_win_origin): Delete.
4649 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
4650 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
4651
5fbce5df
PA
46522012-03-01 Pedro Alves <palves@redhat.com>
4653
4654 * remote.c (encode_actions): Delete declaration.
4655 * tracepoint.c (encode_actions): Make extern.
4656 * tracepoint.h (encode_actions): Declare.
4657
49a8461d
PA
46582012-03-01 Pedro Alves <palves@redhat.com>
4659
4660 * python/py-breakpoint.c: Include python.h.
4661 * python/py-continueevent.c (create_continue_event_object): Make
4662 static.
4663 * python/py-lazy-string.c (stpy_get_type): Make static.
4664 * python/py-newobjfileevent.c (create_new_objfile_event_object):
4665 Make static.
4666 * python/py-utils.c (unicode_to_target_python_string): Make
4667 static.
4668 * python/py-value.c: Include python.h.
4669
9079102f
PA
46702012-03-01 Pedro Alves <palves@redhat.com>
4671
4672 * inferior.c (delete_threads_of_inferior): Delete.
4673
a298c5e8
PA
46742012-03-01 Pedro Alves <palves@redhat.com>
4675
4676 Import fallback definitions from glibc.
4677
4678 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
4679 ps_prochandle): Forward declare.
4680 (ps_err_e): Use glibc's comments.
4681 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
4682 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
4683 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
4684 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
4685 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
4686 (struct ps_prochandle): Adjust comment.
4687
e3084549
PA
46882012-03-01 Pedro Alves <palves@redhat.com>
4689
4690 * ada-lang.c (ada_modulus_from_name): Delete.
4691 * ada-lex.l (lexer_init): Make static.
4692
ad5f7d6e
PA
46932012-03-01 Pedro Alves <palves@redhat.com>
4694
4695 PR gdb/13767
4696
4697 * frame.c (read_frame_register_unsigned): New.
4698 * frame.h (read_frame_register_unsigned): Declare.
4699 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
4700 Handle it.
4701 (print_i387_control_word): New parameter `control_p'. Handle it.
4702 (i387_print_float_info): Handle unavailable float registers.
4703
e0a4d108
KS
47042012-03-01 Keith Seitz <keiths@redhat.com>
4705
4706 * linespec.c (decode_line_2): Sort the list of methods
4707 alphabetically before presenting the user with a selection
4708 menu.
4709
122d1940
DE
47102012-03-01 Doug Evans <dje@google.com>
4711
4712 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
4713 has_namespace_info.
4714 (dwarf2_read_abbrevs): Remove corresponding initialization.
4715
7d74f244
DE
47162012-03-01 Scott J. Goldman <scottjg@vmware.com>
4717
4718 * NEWS: Mention new python command class gdb.COMMAND_USER.
4719 * cli/cli-cmds.c (show_user): Print error when used on a python
4720 command.
4721 (init_cli_cmds): Update documentation strings for "show user" and
4722 "set/show max-user-call-depth" to clarify that it does not apply to
4723 python commands.
4724 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
4725 error check.
4726 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
4727 gdb python api.
4728 * top.c (execute_command): Only execute a user-defined command as a
4729 legacy macro if c->user_commands is set.
4730
e88acd96
TT
47312012-03-01 Tom Tromey <tromey@redhat.com>
4732
4733 * valprint.h (struct generic_val_print_decorations): New.
4734 (generic_val_print): Declare.
4735 * valprint.c (generic_val_print): New function.
4736 * p-valprint.c (p_decorations): New global.
4737 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
4738 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
4739 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
4740 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
4741 * m2-valprint.c (m2_decorations): New global.
4742 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
4743 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
4744 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
4745 TYPE_CODE_ERROR>: Call generic_val_print.
4746 * f-valprint.c (f_decorations): New global.
4747 (f_val_print): Use print_function_pointer_address.
4748 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
4749 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
4750 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
4751 generic_val_print.
4752 * c-valprint.c (c_decorations): New global.
4753 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
4754 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
4755 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
4756 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
4757 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
4758 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
4759 case.
4760
d3eab38a
TT
47612012-03-01 Tom Tromey <tromey@redhat.com>
4762
4763 * valprint.c (val_print): Update.
4764 * p-valprint (pascal_val_print): Return void.
4765 * p-lang.h (pascal_val_print): Return void.
4766 * m2-valprint.c (m2_val_print): Return void.
4767 * m2-lang.h (m2_val_print): Return void.
4768 * language.h (struct language_defn) <la_val_print>: Return void.
4769 * language.c (unk_lang_val_print): Return void.
4770 * jv-valprint.c (java_val_print): Return void.
4771 * jv-lang.h (java_val_print): Return void.
4772 * f-valprint.c (f_val_print): Return void.
4773 * f-lang.h (f_val_print): Return void.
4774 * d-valprint.c (d_val_print): Return void.
4775 (dynamic_array_type): Update.
4776 * d-lang.h (d_val_print): Return void.
4777 * c-valprint.c (c_val_print): Return void.
4778 * c-lang.h (c_val_print): Return void.
4779 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
4780 void.
4781 * ada-lang.h (ada_val_print): Return void.
4782
35c0084b
TT
47832012-03-01 Tom Tromey <tromey@redhat.com>
4784
4785 * value.h (val_print): Return void.
4786 * valprint.c (val_print): Return void.
4787
a1f5dd1b
TT
47882012-03-01 Tom Tromey <tromey@redhat.com>
4789
4790 * value.h (common_val_print): Return void.
4791 * valprint.c (common_val_print): Return void.
4792
8e069a98
TT
47932012-03-01 Tom Tromey <tromey@redhat.com>
4794
4795 * value.h (value_print): Return void.
4796 * valprint.c (value_print): Return void.
4797 * p-valprint.c (pascal_value_print): Return void.
4798 * p-lang.h (pascal_value_print): Return void.
4799 * language.h (struct language_defn) <la_value_print>: Return
4800 void.
4801 * language.c (unk_lang_value_print): Return void.
4802 * jv-valprint.c (java_value_print): Return void.
4803 * jv-lang.h (java_value_print): Return void.
4804 * f-valprint.c (c_value_print): Don't declare.
4805 Include c-lang.h.
4806 * c-valprint.c (c_value_print): Return void.
4807 * c-lang.h (c_value_print): Return void.
4808 * ada-valprint.c (ada_value_print): Return void.
4809 * ada-lang.h (ada_value_print): Return void.
4810
be335936
TT
48112012-03-01 Tom Tromey <tromey@redhat.com>
4812
4813 * value.c (value_primitive_field): Handle virtual base classes.
4814
b0db66a7
TT
48152012-03-01 Tom Tromey <tromey@redhat.com>
4816
4817 * gdbtypes.h (struct vbase): Remove.
4818
132c57b4
TT
48192012-03-01 Tom Tromey <tromey@redhat.com>
4820
4821 * c-valprint.c (print_function_pointer_address): Move...
4822 * valprint.c: ... here. Make non-static.
4823 * m2-valprint.c (print_function_pointer_address): Remove.
4824 * valprint.h (print_function_pointer_address): Declare.
4825
e41eec66
JB
48262012-03-01 Joel Brobecker <brobecker@adacore.com>
4827
4828 * NEWS: Document the fact that one can provide a condition when
4829 creating an Ada exception catchpoint.
4830
19c37f24
TT
48312012-03-01 Tom Tromey <tromey@redhat.com>
4832
4833 * valprint.c (val_print_type_code_flags): Fix placement of
4834 trailing brace.
4835
f0fed3a3
JB
48362012-03-01 Joel Brobecker <brobecker@adacore.com>
4837
4838 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
4839 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
4840 environment variable before calling update-copyright.
4841
8ba85d85
JB
48422012-03-01 Joel Brobecker <brobecker@adacore.com>
4843
4844 * gnulib/extra/update-copyright: Update to the latest from
4845 gnulib's git repository.
4846 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
4847 variable to 2 instead of 1.
4848
8219b1e8
JB
48492012-02-29 Joel Brobecker <brobecker@adacore.com>
4850
4851 * varobj.c (c_value_of_variable): Remove dead code.
4852
718cb7da
JB
48532012-02-29 Joel Brobecker <brobecker@adacore.com>
4854
4855 * ada-lex.p (processId): Do not modify already encoded IDs.
4856 Update function documentation.
4857
739593e0
JB
48582012-02-29 Joel Brobecker <brobecker@adacore.com>
4859
4860 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
4861 "name" with "struct symbol *name_sym".
4862 * ada-exp.y (write_var_or_type): Update call to
4863 ada_find_renaming_symbol.
4864 "name" with "struct symbol *name_sym". Adjust Implementation
4865 accordingly. Adjust the function documentation.
4866
852dff6c
JB
48672012-02-29 Joel Brobecker <brobecker@adacore.com>
4868
4869 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
4870 * ada-lang.c (ada_find_any_type): Add advance declaration.
4871 Make static. Replace ada_find_any_symbol by
4872 ada_find_any_type_symbol.
4873 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
4874 Improve function description. Make static.
4875 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
4876 Replace ada_find_any_symbol by ada_find_any_type_symbol.
4877
1b611343
JB
48782012-02-29 Joel Brobecker <brobecker@adacore.com>
4879
4880 * ada-lang.c (struct tag_args): Delete.
4881 (ada_get_tsd_type): Function body moved up in source file.
4882 (ada_tag_name_1, ada_tag_name_2): Delete.
4883 (ada_get_tsd_from_tag): New function.
4884 (ada_tag_name_from_tsd): New function.
4885 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
4886 to determine the tag name.
4887
41246937
JB
48882012-02-29 Joel Brobecker <brobecker@adacore.com>
4889
4890 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
4891 declaration.
4892 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
4893 function.
4894
ffde82bf
JB
48952012-02-29 Joel Brobecker <brobecker@adacore.com>
4896
4897 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
4898
2ad01556
JB
48992012-02-29 Joel Brobecker <brobecker@adacore.com>
4900
4901 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
4902 full searches.
4903
99b1c762
JB
49042012-02-29 Joel Brobecker <brobecker@adacore.com>
4905
4906 * ada-lang.c (constrained_packed_array_type): If there is a
4907 parallel XA type, use it to determine the array index type.
4908
2d4a02ee
JB
49092012-02-29 Joel Brobecker <brobecker@adacore.com>
4910
4911 * ada-valprint.c (ada_val_print_1): If our value is a reference
4912 to an array descriptor, dereference it before converting it
4913 to a simple array.
4914
c48db5ca
JB
49152012-02-29 Joel Brobecker <brobecker@adacore.com>
4916
4917 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
4918 creating fixed value.
4919 (ada_value_ind, ada_coerce_ref, assign_component)
4920 (ada_evaluate_subexp): Remove call to unwrap_value before
4921 call to ada_to_fixed_value.
4922
2e6fda7d
JB
49232012-02-29 Joel Brobecker <brobecker@adacore.com>
4924
4925 * ada-lang.c (to_fixed_array_type): Set result's type name.
4926
5845583d
JB
49272012-02-29 Joel Brobecker <brobecker@adacore.com>
4928
4929 * ada-lang.c (catch_ada_exception_command_split): Add new
4930 argument cond_string. Add support for condition at end of
4931 "catch exception" commands.
4932 (ada_decode_exception_location): Add new argument cond_string.
4933 Update call to catch_ada_exception_command_split.
4934 (create_ada_exception_catchpoint): Add new argument cond_string.
4935 Set the breakpoint condition if needed.
4936 (catch_ada_exception_command): Update call to
4937 ada_decode_exception_location.
4938 (ada_decode_assert_location): Add function documentation.
4939 Add support for condition at end of "catch assert" command.
4940 (catch_assert_command): Update calls to ada_decode_assert_location
4941 and create_ada_exception_catchpoint.
4942
9a7f938f
JK
49432012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4944
4945 Fix disp-step-syscall.exp: fork: single step over fork.
4946 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
4947 (i386_linux_get_syscall_number_from_regcache): ... here, new function
4948 comment, change parameters gdbarch and ptid to regcache. Remove
4949 parameter regcache, initialize gdbarch from regcache here.
4950 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
4951 New functions.
4952 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
4953 instead.
4954 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
4955 'syscall'. Make the 'int' check more strict.
4956
ffdf6de5
JK
49572012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4958
4959 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
4960 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
4961 (i386_linux_intx80_sysenter_syscall_record): ... here.
4962 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
4963 Use the renamed function name.
4964
c70a6932
JK
49652012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
4966
4967 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
4968 * breakpoint.c (until_break_command): Likewise.
4969 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
4970 * infcall.c (call_function_by_hand): Likewise.
4971 * infcmd.c (finish_forward): Likewise.
4972 * infrun.c (insert_exception_resume_breakpoint): Likewise.
4973
05b8a789 49742012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 4975
d4cd3da9
JB
4976 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
4977 avoid variable assignments inside condition.
4978
6425366c
JK
49792012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4980
4981 Fix static analysis issue found by cppcheck.
4982 * microblaze-tdep.c (microblaze_extract_return_value): Fix
4983 uninitialized BUF for size 2.
4984
c8cef75f 49852012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
4986 Nathan Froyd <froydnj@codesourcery.com>
4987 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
4988
4989 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
4990 (mips16_instruction_has_delay_slot): Likewise.
4991 (mips_segment_boundary): Likewise.
4992 (mips_adjust_breakpoint_address): Likewise.
4993 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
4994
473347ad 49952012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 4996 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
4997
4998 * infrun.c (handle_inferior_event): Don't proceed through
4999 shared library trampolines if stepping at the machine
5000 instruction level.
5001
cf233303
MR
50022012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5003
5004 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5005 too.
5006
cb2cf4ce
TS
50072012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5008
5009 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5010 (sh_stub_unwind_sniffer): New functions.
5011 (sh_stub_unwind): New variable.
5012 (sh_gdbarch_init): Wire everything.
5013
644cebc9
PA
50142012-02-27 Pedro Alves <palves@redhat.com>
5015
5016 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5017 (linux_nat_post_attach_wait): Adjust to use
5018 linux_proc_pid_is_stopped.
5019 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5020 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5021 based on pid_is_stopped from both linux-nat.c and
5022 gdbserver/linux-low.c, and renamed.
5023
283002cf
MR
50242012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5025
5026 * remote.c (remote_watchpoint_addr_within_range): New function.
5027 (init_remote_ops): Use it.
5028
9b3e86b1
MR
50292012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5030
5031 * target.h (target_watchpoint_addr_within_range): Document macro.
5032
e36930bb
PA
50332012-02-24 Pedro Alves <palves@redhat.com>
5034
5035 * stack.c (set_last_displayed_sal): Issue internal_error instead
5036 of warning, and issue it after clearing the last displayed sal.
5037
883bc8d1
PA
50382012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5039 Pedro Alves <palves@redhat.com>
5040
5041 * breakpoint.c (until_break_command): Install breakpoints after
5042 all frame manipulations.
5043
b775012e
LM
50442012-02-24 Luis Machado <lgustavo@codesourcery.com>
5045
5046 * remote.c (remote_supports_cond_breakpoints): New forward
5047 declaration.
5048 (remote_add_target_side_condition): New function.
5049 (remote_insert_breakpoint): Add target-side breakpoint
5050 conditional if supported.
5051 (remote_insert_hw_breakpoint): Likewise.
5052 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5053 hook.
5054
5055 * target.c (update_current_target): Inherit
5056 to_supports_evaluation_of_breakpoint_conditions.
5057 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5058
5059 * target.h (struct target_ops)
5060 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5061 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5062
5063 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5064 (condition_evaluation_both, condition_evaluation_auto,
5065 condition_evaluation_host, condition_evaluation_target,
5066 condition_evaluation_enums, condition_evaluation_mode_1,
5067 condition_evaluation_mode): New static globals.
5068 (translate_condition_evaluation_mode): New function.
5069 (breakpoint_condition_evaluation_mode): New function.
5070 (gdb_evaluates_breakpoint_condition_p): New function.
5071 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5072 (mark_breakpoint_modified): New function.
5073 (mark_breakpoint_location_modified): New function.
5074 (set_condition_evaluation_mode): New function.
5075 (show_condition_evaluation_mode): New function.
5076 (bp_location_compare_addrs): New function.
5077 (get_first_location_gte_addr): New helper function.
5078 (set_breakpoint_condition): Free condition bytecode if locations
5079 has become unconditional. Call mark_breakpoint_modified (...).
5080 (condition_command): Call update_global_location_list (1) for
5081 breakpoints.
5082 (breakpoint_xfer_memory): Use is_breakpoint (...).
5083 (is_breakpoint): New function.
5084 (parse_cond_to_aexpr): New function.
5085 (build_target_condition_list): New function.
5086 (insert_bp_location): Handle target-side conditional
5087 breakpoints and call build_target_condition_list (...).
5088 (update_inserted_breakpoint_locations): New function.
5089 (insert_breakpoint_locations): Handle target-side conditional
5090 breakpoints.
5091 (bpstat_check_breakpoint_conditions): Add comment.
5092 (bp_condition_evaluator): New function.
5093 (bp_location_condition_evaluator): New function.
5094 (print_breakpoint_location): Print information on where the condition
5095 will be evaluated.
5096 (print_one_breakpoint_location): Likewise.
5097 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5098 breakpoint location.
5099 (force_breakpoint_reinsertion): New functions.
5100 (update_global_location_list): Handle target-side breakpoint
5101 conditions.
5102 Reinsert locations that are already inserted if conditions have
5103 changed.
5104 (bp_location_dtor): Free agent expression bytecode.
5105 (disable_breakpoint): Call mark_breakpoint_modified (...).
5106 Call update_global_location_list (...) with parameter 1 for breakpoints.
5107 (disable_command): Call mark_breakpoint_location_modified (...).
5108 Call update_global_location_list (...) with parameter 1 for breakpoints.
5109 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5110 (enable_command): mark_breakpoint_location_modified (...).
5111 (_initialize_breakpoint): Update documentation and add
5112 condition-evaluation breakpoint subcommand.
5113
5114 * breakpoint.h: Include ax.h.
5115 (condition_list): New data structure.
5116 (condition_status): New enum.
5117 (bp_target_info) <cond_list>: New field.
5118 (bp_location) <condition_changed, cond_bytecode>: New fields.
5119 (is_breakpoint): New prototype.
5120
3788aec7
LM
51212012-02-24 Luis Machado <lgustavo@codesourcery.com>
5122
5123 * remote.c (remote_state) <cond_breakpoints>: New field.
5124 (PACKET_ConditionalBreakpoints): New enum.
5125 (remote_cond_breakpoint_feature): New function.
5126 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5127 (remote_supports_cond_breakpoints): New function.
5128 (_initialize_remote): Add new packet configuration for
5129 target-side conditional breakpoints.
5130
72895ff6
LM
51312012-02-24 Luis Machado <lgustavo@codesourcery.com>
5132
5133 * NEWS: Mention target-side conditional breakpoint support,
5134 new condition-evaluation breakpoint subcommand and remote
5135 packet extensions.
5136
dea2aa5f
LM
51372012-02-24 Luis Machado <lgustavo@codesourcery.com>
5138
5139 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5140 number.
5141
8a8bc27f
TS
51422012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5143
5144 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5145 (after_prologue): Remove.
5146
6b446fdf
TT
51472012-02-23 Tom Tromey <tromey@redhat.com>
5148
5149 * jv-valprint.c (java_val_print): Remove dead code.
5150
ef59abfb
TG
51512012-02-23 Tristan Gingold <gingold@adacore.com>
5152
a09130f9
PA
5153 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5154 known_tasks_element and known_tasks_length fields.
5155 (read_known_tasks_array): Change argument type. Use pointer type
5156 and number of elements from DATA. Adjust.
5157 (read_known_tasks_list): Likewise.
5158 (get_known_tasks_addr): Remove.
5159 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5160 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5161 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 5162
def166f6
JK
51632012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5164
5165 PR backtrace/13716
5166 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5167 it after set_momentary_breakpoint.
5168
aeaa2474
SA
51692012-02-22 Sterling Augustine <saugustine@google.com>
5170
5171 PR 13689:
5172 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5173
feea76c2
GB
51742012-02-22 Gary Benson <gbenson@redhat.com>
5175
5176 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5177 (find_slot_in_mapped_hash): Likewise.
5178
f06e05e0
JK
51792012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5180
5181 PR build/13638
5182 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5183 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5184 * configure: Regenerate.
5185
b54a8fd7
PA
51862012-02-21 Tristan Gingold <gingold@adacore.com>
5187 Pedro Alves <palves@redhat.com>
5188
5189 * ia64-tdep.c: Do not include libunwind-ia64.h.
5190 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5191 Include libunwind-ia64.h instead of libunwind.h.
5192 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5193 for libunwind.h existence.
5194 * configure, config.in: Regenerate.
5195
dfcee124
AG
51962012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5197
5198 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5199 instead of value_rtti_target_type.
5200 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5201 instead of value_rtti_target_type.
5202 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5203 value_rtti_target_type.
5204 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5205 (value_rtti_target_type): Rename to ...
5206 (value_rtti_indirect_type): ... here and make it indirect. Update
5207 function comment.
5208 * value.c (readjust_indirect_value_type): New function.
5209 (coerce_ref): Support for enclosing type setting for references
5210 with readjust_indirect_value_type.
5211 * value.h (readjust_value_type): New declaration.
5212 (value_rtti_target_type): Rename to ...
5213 (value_rtti_indirect_type): ... here.
5214
02568277
AG
52152012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5216
5217 * MAINTAINERS (Write After Approval): Add myself to the list.
5218
10c07b7e 52192012-02-20 Doug Evans <dje@google.com>
28ee876a 5220
d82ea6a8
DE
5221 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5222 Rename objfile_p_char parameter to objfilep.
5223 (build_objfile_section_table): Result is now void. All callers
5224 updated.
5225 * objfiles.h (struct objfile): Tweak comments, whitespace.
5226 (build_objfile_section_table): Update.
5227
28ee876a
DE
5228 * elfread.c (elf_symfile_segments): Fix warning text.
5229
24c79950
TT
52302012-02-20 Tom Tromey <tromey@redhat.com>
5231
5232 PR gdb/13498:
5233 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5234 particular set of file names once.
5235 (dw2_map_symbol_filenames): Likewise.
5236
3a9b40b6
JK
52372012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5238
5239 Code cleanup.
5240 * main.c (write_files): Remove the declaration.
5241 (external_editor_command): Move the declaration ...
5242 [GDBTK] (external_editor_command): ... here. Fix the comment.
5243
4d0795ca
TT
52442012-02-20 Tom Tromey <tromey@redhat.com>
5245
5246 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5247 extraneous block.
5248
637fd620
TG
52492012-02-20 Tristan Gingold <gingold@adacore.com>
5250
5251 * darwin-nat.h (enum darwin_msg_state): Add comments.
5252
6f124894
TG
52532012-02-20 Tristan Gingold <gingold@adacore.com>
5254
5255 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5256 value.
5257
2e6e3d9c
JB
52582012-20-18 Joel Brobecker <brobecker@adacore.com>
5259
5260 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5261 between function description and implementation.
5262
2e8265fd
TT
52632012-02-17 Tom Tromey <tromey@redhat.com>
5264
5265 PR python/12070:
5266 * python/py-event.c (event_object_getset): New global.
5267 (event_object_type): Reference it.
5268 * python/py-type.c (field_object_getset): New global.
5269 (field_object_type): Reference it.
5270 * python/python-internal.h (gdb_py_generic_dict): Declare.
5271 * python/py-utils.c (gdb_py_generic_dict): New function.
5272
8544a150 52732012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 5274
8544a150 5275 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 5276
ca193e27
TS
52772012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5278
5279 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5280 TYPE_CALLING_CONVENTION annotation.
5281
e5586183
KB
52822012-02-16 Kevin Buettner <kevinb@redhat.com>
5283
5284 * MAINTAINERS: Add rx to target ISA section.
5285 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5286 (ALLDEPFILES): Add rx-tdep.c.
5287
7dcd53a0
TT
52882012-02-16 Tom Tromey <tromey@redhat.com>
5289
5290 * symfile.c (symbol_file_add_main_1): Use inferior's
5291 symfile_flags.
5292 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5293 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5294 inferior.
5295 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5296 inferior.
5297 (follow_exec): Use inferior's symfile_flags.
5298 * inferior.h (struct inferior) <symfile_flags>: New field.
5299
ddd60447
MF
53002012-02-16 Mike Frysinger <vapier@gentoo.org>
5301
5302 PR gdb/9734:
5303 * remote-sim.c (gdbsim_create_inferior): Call error() when
5304 sim_create_inferior() fails.
5305
b0d32fb6
TG
53062012-02-16 Josh Matthews <josh@joshmatthews.net>
5307
5308 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
5309
9addecb9
TT
53102012-02-16 Tom Tromey <tromey@redhat.com>
5311
5312 PR c++/13653:
5313 * thread.c (struct current_thread_cleanup) <was_removable>: New
5314 field.
5315 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
5316 (make_cleanup_restore_current_thread): Initialize new field.
5317
a58b110a
KB
53182012-02-15 Kevin Buettner <kevinb@redhat.com>
5319
5320 * MAINTAINERS: Add rl78 to target ISA section.
5321 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
5322 (ALLDEPFILES): Add rl78-tdep.c.
5323 * NEWS: Mention rl78 as a new target.
5324
4cb6da1c
AR
53252012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
5326
5327 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
5328 data.
5329 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
5330
3af2590d
TT
53312012-02-15 Tom Tromey <tromey@redhat.com>
5332
5333 PR gdb/12659:
5334 * infcmd.c (registers_info): Print just the current register's
5335 name.
5336
c6910659
TT
53372012-02-15 Tom Tromey <tromey@redhat.com>
5338
5339 * python/py-symbol.c (sympy_value): Use _().
5340
7cee1e54
PA
53412012-02-15 Pedro Alves <palves@redhat.com>
5342
5343 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
5344 output to be like native targets'.
5345 (remote_pid_to_str): Special case the null ptid.
5346
816338b5
SS
53472012-02-14 Stan Shebs <stan@codesourcery.com>
5348
5349 * NEWS: Mention enable count command.
5350 * breakpoint.h (struct breakpoint): New field enable_count.
5351 * breakpoint.c (enable_breakpoint_disp): Add count argument.
5352 (enable_breakpoint): Add arg to call.
5353 (struct disp_data): New struct.
5354 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
5355 (do_map_enable_once_breakpoint): Create a struct and pass it.
5356 (do_map_enable_delete_breakpoint): Ditto.
5357 (do_map_enable_count_breakpoint): New function.
5358 (enable_count_command): New function.
5359 (bpstat_stop_status): Decrement enable_count.
5360 (print_one_breakpoint_location): Report enable count.
5361 (_initialize_breakpoint): Add enable count command.
5362
c47a44f4
KB
53632012-02-14 Kevin Buettner <kevinb@redhat.com>
5364
5365 * rl78-tdep.c (reggroups.h): Include.
5366 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
5367 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
5368 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
5369 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
5370 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
5371 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
5372 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
5373 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
5374 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
5375 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
5376 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
5377 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
5378 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
5379 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
5380 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
5381 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
5382 beginning of register list.
5383 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
5384 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
5385 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
5386 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
5387 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
5388 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
5389 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
5390 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
5391 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
5392 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
5393 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
5394 the pseudo registers. Rearrange other pseudo registers too so
5395 that the bank registers appear at the end.
5396 (rl78_register_type): Account for the fact that the byte sized
5397 bank registers are now pseudo-registers.
5398 (rl78_register_name): Rearrange the register name array. Make
5399 initial set of raw banked registers inaccessible.
5400 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
5401 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
5402 case for copying bytes back and forth between raw and pseudo
5403 versions of the banked registers. Update other cases to reflect
5404 the changed names.
5405 (rl78_return_value): Update to account for changed names of
5406 raw registers.
5407 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
5408 rl78_register_sim_regno().
5409
e4569f1e
KB
54102012-02-14 Kevin Buettner <kevinb@redhat.com>
5411
5412 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
5413 the name parameter being passed to find_pc_partial_function().
5414
7a05aae7
JK
54152012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
5416
5417 * MAINTAINERS: Step down from being ia64 target maintainer.
5418
11fde611
JK
54192012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5420
5421 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
5422 compilation warning.
5423
57008375
JK
54242012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
5425
5426 Fix crash on loaded shlibs without loaded exec_bfd.
5427 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
5428 (set_section_command): Replace exec_bfd by p->bfd.
5429
ff3c9849
TT
54302012-02-10 Tom Tromey <tromey@redhat.com>
5431
5432 * linespec.c (decode_line_internal): Skip symtabs_from_filename
5433 when we have a C++ qualified name.
5434
db2b9fdd
PA
54352012-02-10 Pedro Alves <palves@redhat.com>
5436
5437 * inferior.c (inferior_pid_to_str): New.
5438 (print_inferior, inferior_command): Use it.
5439
12cd34f3
PA
54402012-02-10 Pedro Alves <palves@redhat.com>
5441
5442 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
5443 the test CFLAGS.
5444 * configure: Regenerate.
5445
e871429d
JK
54462012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5447
5448 * linespec.c (decode_line_internal): Fix comment correctness.
5449
1916efaf
PA
54502012-02-09 Valery Khromov <valery.khromov@gmail.com>
5451
5452 PR gdb/12953
5453 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
5454 * amd64bsd-nat.c: Add support for debug registers (adapted from
5455 i386bsd-nat.c).
5456 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
5457 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
5458 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
5459 (amd64bsd_dr_get_control): New functions.
5460 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
5461 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
5462 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
5463 watchpoints initialization.
5464 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
5465
f4859d94
JK
54662012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5467
5468 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
5469 flds_bnds.fields.
5470 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
5471
c56a97f9
JK
54722012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
5473
5474 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
5475
1a119f36
JB
54762012-02-08 Joel Brobecker <brobecker@adacore.com>
5477
5478 * language.h (symbol_name_cmp_ftype): Renames
5479 symbol_name_match_p_ftype.
5480 (struct language_defn)[la_get_symbol_name_cmp]: Renames
5481 la_get_symbol_name_match_p.
5482 * ada-lang.c (ada_get_symbol_name_cmp): Renames
5483 ada_get_symbol_name_match_p. Update comment.
5484 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
5485 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
5486 Renames symbol_name_match_p. Update field type.
5487 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
5488 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5489 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
5490 "la_get_symbol_name_cmp" in comments.
5491 * language.c: Likewise.
5492
c71bb1cf
RO
54932012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
5494
5495 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
5496 %eflags offset.
5497 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
5498 (amd64_sol2_gregset32_reg_offs): Likewise.
5499
4b2d20a5
TG
55002012-02-08 Joel Brobecker <brobecker@adacore.com>
5501
5502 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
5503 of the returned BFD is allocated by GDB.
5504
f0823d2c
TT
55052012-02-07 Tom Tromey <tromey@redhat.com>
5506
5507 PR python/12027:
5508 * python/python-internal.h (frame_object_type): Declare.
5509 * python/py-symbol.c (sympy_needs_frame): New function.
5510 (sympy_value): New function.
5511 (symbol_object_getset): Add "needs_frame".
5512 (symbol_object_methods): Add "value".
5513 * python/py-frame.c (frame_object_type): No longer static.
5514
64e7d9dd
TT
55152012-02-07 Tom Tromey <tromey@redhat.com>
5516
5517 PR python/13599:
5518 * python/py-symbol.c (sympy_line): New function.
5519 (symbol_object_getset): Add "line".
5520
1d6b2d2b
TT
55212012-02-07 Tom Tromey <tromey@redhat.com>
5522
5523 * charset.c (find_charset_names): Check 'in' against NULL.
5524
0d5cff50
DE
55252012-02-06 Doug Evans <dje@google.com>
5526
5527 * gdbtypes.h (struct main_type): Change type of name,tag_name,
5528 and fields.name members from char * to const char *. All uses updated.
5529 (struct cplus_struct_type): Change type of fn_fieldlists.name member
5530 from char * to const char *. All uses updated.
5531 (type_name_no_tag): Update.
5532 (lookup_unsigned_typename, lookup_signed_typename): Update.
5533 * gdbtypes.c (type_name_no_tag): Change result type
5534 from char * to const char *. All callers updated.
5535 (lookup_unsigned_typename, lookup_signed_typename): Change type of
5536 name parameter from char * to const char *.
5537 * symtab.h (struct cplus_specific): Change type of demangled_name
5538 member from char * to const char *. All uses updated.
5539 (struct general_symbol_info): Change type of name and
5540 mangled_lang.demangled_name members from char * to const char *.
5541 All uses updated.
5542 (symbol_get_demangled_name, symbol_natural_name): Update.
5543 (symbol_demangled_name, symbol_search_name): Update.
5544 * symtab.c (symbol_get_demangled_name): Change result type
5545 from char * to const char *. All callers updated.
5546 (symbol_natural_name, symbol_demangled_name): Ditto.
5547 (symbol_search_name): Ditto.
5548 (completion_list_add_name): Change type of symname,sym_text,
5549 text,word parameters from char * to const char *.
5550 (completion_list_objc_symbol): Change type of sym_text,
5551 text,word parameters from char * to const char *.
5552 * ada-lang.c (find_struct_field): Change type of name parameter
5553 from char * to const char *.
5554 (encoded_ordered_before): Similarly for N0,N1 parameters.
5555 (old_renaming_is_invisible): Similarly for function_name parameter.
5556 (ada_type_name): Change result type from char * to const char *.
5557 All callers updated.
5558 * ada-lang.h (ada_type_name): Update.
5559 * buildsym.c (hashname): Change type of name parameter
5560 from char * to const char *.
5561 * buildsym.h (hashname): Update.
5562 * dbxread.c (end_psymtab): Change type of include_list parameter
5563 from char ** to const char **.
5564 * dwarf2read.c (determine_prefix): Change result type
5565 from char * to const char *. All callers updated.
5566 * f-lang.c (find_common_for_function): Change type of name, funcname
5567 parameters from char * to const char *.
5568 * f-lang.c (find_common_for_function): Update.
5569 * f-valprint.c (list_all_visible_commons): Change type of funcname
5570 parameters from char * to const char *.
5571 * gdbarch.sh (static_transform_name): Change type of name parameter
5572 and result from char * to const char *.
5573 * gdbarch.c: Regenerate.
5574 * gdbarch.h: Regenerate.
5575 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
5576 of name parameter from char * to const char *.
5577 * jv-lang.c (java_primitive_type_from_name): Ditto.
5578 (java_demangled_signature_length): Similarly for signature parameter.
5579 (java_demangled_signature_copy): Ditto.
5580 (java_demangle_type_signature): Ditto.
5581 * jv-lang.h (java_primitive_type_from_name): Update.
5582 (java_demangle_type_signature): Update.
5583 * objc-lang.c (specialcmp): Change type of a,b parameters
5584 from char * to const char *.
5585 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
5586 from char * to const char *. All callers updated.
5587 * p-lang.h (is_pascal_string_type): Update.
5588 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
5589 of name parameter from char * to const char *.
5590 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
5591 * utils.c (fprintf_symbol_filtered): Ditto.
5592 * defs.h (fprintf_symbol_filtered): Update.
5593 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
5594 * stabsread.h (end_psymtab): Update.
5595 * stack.c (find_frame_funname): Change type of funname parameter
5596 from char ** to const char **.
5597 * stack.h (find_frame_funname): Update.
5598 * typeprint.c (type_print): Change type of varstring parameter
5599 from char * to const char *.
5600 * value.h (type_print): Update.
5601 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
5602 from char * to const char *. All callers updated.
5603 (xcoff_end_psymtab): Change type of include_list parameter
5604 from char ** to const char **. All callers updated.
5605 (swap_sym): Similarly for name parameter. All callers updated.
5606 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
5607 Use xstrdup.
5608 (process_coff_symbol): Use xstrdup.
5609 * stabsread.c (stabs_method_name_from_physname): Renamed from
5610 update_method_name_from_physname. Change result type from void
5611 to char *. All callers updated.
5612 (read_member_functions): In has_destructor case, store name in objfile
5613 obstack instead of malloc space. In !has_stub case, fix mem leak.
5614
5579a92e
TT
56152012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
5616
5617 * configure: Rebuild.
5618 * configure.ac: Put -L../bfd and -L../libiberty at the front of
5619 LDFLAGS.
5620
9058f767
KB
56212012-02-03 Kevin Buettner <kevinb@redhat.com>
5622
5623 * configure.tgt (rl78-*-elf): New target.
5624 * rl78-tdep.c: New file.
5625
5b37825d
PW
56262012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
5627
5628 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
5629 and continue the loop. Add QUIT statement.
5630
e009ee71
TT
56312012-02-03 Tom Tromey <tromey@redhat.com>
5632
5633 PR gdb/13596:
5634 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5635 bfd_lookup_symbol_from_symtab.
5636 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
5637 gdb_bfd_lookup_symbol_from_symtab.
5638
f7e44f65
JB
56392012-02-03 Joel Brobecker <brobecker@adacore.com>
5640
5641 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
5642 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
5643 symbol. Add assertion that sym2 is never NULL.
5644
2c02bd72
DE
56452012-02-02 Doug Evans <dje@google.com>
5646
5647 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
5648 "name" parameter to const char ** from char **. All callers updated.
5649 (find_pc_partial_function): Ditto.
5650 (cache_pc_function_name): Change type to const char * from char *.
5651 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
5652 (find_pc_partial_function): Update.
5653 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
5654 type of "name" parameter to const char * from char *.
5655 All uses updated.
5656 * arch-utils.c (generic_in_solib_return_trampoline): Change
5657 type of "name" parameter to const char * from char *.
5658 * arch-utils.h (generic_in_solib_return_trampoline): Update.
5659 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
5660 type of "name" parameter to const char * from char *.
5661 * gdbarch.sh (in_solib_return_trampoline): Ditto.
5662 * gdbarch.c: Regenerate.
5663 * gdbarch.h: Regenerate.
5664 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
5665 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
5666 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
5667 type of "name" parameter to const char * from char *.
5668 * skip.c (skip_function_pc): Ditto.
5669 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
5670 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
5671 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
5672 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
5673 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
5674 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
5675 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
5676 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
5677 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
5678
e886a173
PA
56792012-02-02 Pedro Alves <palves@redhat.com>
5680
5681 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
5682 the current inferior has no execution. Make sure the current
5683 remote process matches gdb's current inferior.
5684
c709a7c2
TT
56852012-02-02 Tom Tromey <tromey@redhat.com>
5686
5687 PR gdb/13405:
5688 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
5689 read-only memory.
5690
f149aabd
TT
56912012-02-02 Tom Tromey <tromey@redhat.com>
5692
5693 PR gdb/9307:
5694 * symtab.c (lookup_language_this): Set block_found.
5695
03bef283
TT
56962012-02-01 Tom Tromey <tromey@redhat.com>
5697
5698 PR gdb/13431:
5699 * jit.c (struct jit_inferior_data): Rewrite.
5700 (struct jit_objfile_data): New.
5701 (get_jit_objfile_data): New function.
5702 (add_objfile_entry): Update.
5703 (jit_read_descriptor): Return int. Replace descriptor_addr
5704 argument with inf_data. Update. Don't call error.
5705 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
5706 descriptor here.
5707 (jit_inferior_init): Don't look up descriptor. Don't call error.
5708 (jit_reset_inferior_data_and_breakpoints)
5709 (jit_inferior_created_observer): Remove.
5710 (jit_inferior_exit_hook): Update.
5711 (jit_executable_changed_observer): Remove.
5712 (jit_event_handler): Update.
5713 (free_objfile_data): Reset inferior data if needed.
5714 (_initialize_jit): Update.
5715
f0bbc364
TT
57162012-02-01 Tom Tromey <tromey@redhat.com>
5717
5718 * jit.c (bfd_open_from_target_memory): Move higher in file.
5719
47c1316c
TG
57202012-02-01 Tristan Gingold <gingold@adacore.com>
5721
5722 * libunwind-frame.c (libunwind_load): Display message if dlopen
5723 failed.
5724
8e704927
GB
57252012-02-01 Gary Benson <gbenson@redhat.com>
5726
09c7a31f 5727 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
5728 (iterate_over_symbols): Use the above.
5729 * symtab.c (iterate_over_symbols): Likewise.
5730 * language.h (language_defn->la_iterate_over_symbols): Likewise.
5731 * ada-lang.c (ada_iterate_over_symbols): Likewise.
5732 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
5733 (iterate_name_matcher): Document return values.
5734 (collect_one_symbol): Likewise.
5735 (collect_function_symbols): Likewise.
5736 (collect_symbols): Likewise.
5737
d9680e73
TT
57382012-02-01 Tom Tromey <tromey@redhat.com>
5739
5740 * ada-lang.c (resolve_subexp): Update.
5741 (ada_lookup_symbol_list): Add 'full_search' argument.
5742 (ada_iterate_over_symbols): Pass 0 as full_search argument to
5743 ada_lookup_symbol_list.
5744 (ada_lookup_encoded_symbol): Update.
5745 (get_var_value): Update.
5746 * ada-exp.y (block_lookup): Update.
5747 (write_var_or_type): Update.
5748 (write_name_assoc): Update.
5749 * ada-lang.h (ada_lookup_symbol_list): Update.
5750
72e1143f
TT
57512012-01-31 Tom Tromey <tromey@redhat.com>
5752
5753 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
5754 comment.
5755
ab2d2ad3
DE
57562012-01-31 Doug Evans <dje@google.com>
5757
5758 * symtab.h: Remove outdated comment.
e9111bf7 5759 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 5760
bc884eba
JB
57612012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
5762
5763 Fix build error in Darwin port.
5764 * i386-darwin-nat.c: Include i386-nat.h.
5765
8fc3fc34
TT
57662012-01-30 Tom Tromey <tromey@redhat.com>
5767
5768 PR breakpoints/13568:
5769 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
5770 argument. Check for recursive includes.
5771 (dwarf_decode_macros): Create an include hash.
5772
5d853008
ME
57732012-01-30 Michael Eager <eager@eagercon.com>
5774
5775 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
5776 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 5777 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
5778 (powerpc_linux_in_plt_stub): New function.
5779 (powerpc_linux_in_dynsym_resolve_code): New function.
5780 (ppc_skip_trampoline_code): New function.
5781 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
5782 Use glibc_skip_solib_resolver.
5783
40478521
JK
57842012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5785
5786 Code cleanup: Make 1440 bytes of data segment read-only.
5787 * arch-utils.c (endian_enum): Make it const char *const [].
5788 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
5789 Likewise.
5790 * breakpoint.c (always_inserted_enums): Likewise.
5791 * cli/cli-cmds.c (script_ext_enums): Likewise.
5792 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
5793 enumlist parameter const char *const *.
5794 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
5795 const char *const *.
5796 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
5797 parameter const char *const *.
5798 * cris-tdep.c (cris_modes): Make it const char *const [].
5799 * filesystem.c (target_file_system_kinds): Likewise.
5800 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
5801 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
5802 (can_use_displaced_stepping_enum, scheduler_enums)
5803 (exec_direction_names): Likewise.
5804 * language.c (_initialize_language): Make the type_or_range_names and
5805 case_sensitive_names variables const char *const [].
5806 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
5807 * python/python.c (python_excp_enums): Likewise.
5808 * remote.c (interrupt_sequence_modes): Likewise.
5809 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
5810 * serial.c (logbase_enums): Likewise.
5811 * sh-tdep.c (sh_cc_enum): Likewise.
5812 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
5813 Likewise.
5814 * symtab.c (multiple_symbols_modes): Likewise.
5815 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
5816 Likewise.
5817 * utils.c (internal_problem_modes): Likewise.
5818
b3b8b934
JK
58192012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
5820
5821 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
5822 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
5823 result.
5824
8c85a4e2
DE
58252012-01-27 Doug Evans <dje@google.com>
5826
5827 * configure.ac (with_python): Fix absolute path handling for win32.
5828 * configure: Regenerate.
5829
78d8b4d7
DE
58302012-01-26 Doug Evans <dje@google.com>
5831
eca864fe
DE
5832 * symtab.c: Whitespace cleanup, no code changes.
5833
7e082072
DE
5834 * symtab.c (lookup_symbol_in_language): Improve comment.
5835 (lookup_symbol_aux): Fix comment.
5836
7dc25483
DE
5837 * psymtab.c (add_psymbol_to_list): Result is now "void".
5838 * psympriv.h (add_psymbol_to_list): Update.
5839
78d8b4d7
DE
5840 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
5841
4c63965b
JK
58422012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5843
5844 Do not open script filenames twice.
5845 * cli/cli-cmds.c (source_script_from_stream): Pass to
5846 source_python_script also STREAM.
5847 * python/py-auto-load.c (source_section_scripts): Pass to
5848 source_python_script_for_objfile also STREAM.
5849 (auto_load_objfile_script): Pass to source_python_script_for_objfile
5850 also INPUT.
5851 * python/python-internal.h (source_python_script_for_objfile): New
5852 parameter file, rename parameter file to filename.
5853 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
5854 instead if !_WIN32. Update the function comment.
5855 (source_python_script, source_python_script_for_objfile)
5856 (source_python_script): New parameter file, rename parameter file to
5857 filename. Pass FILENAME to python_run_simple_file.
5858 * python/python.h (source_python_script): New parameter file, rename
5859 parameter file to filename.
5860
88f38a04
PA
58612012-01-26 Pedro Alves <palves@redhat.com>
5862
5863 * corelow.c (core_has_fake_pid): Delete.
5864 (core_close): Delete references to `core_has_fake_pid'.
5865 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
5866 (core_open): Delete references to `core_has_fake_pid'.
5867 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
5868 the removed global.
5869
e078317b
JB
58702012-01-26 Joel Brobecker <brobecker@adacore.com>
5871
5872 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
5873 Remove language parameter from name_matcher. Adjust the comment.
5874 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
5875 Remove language parameter.
5876 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
5877 * linespec.c (iterate_name_matcher): Likewise.
5878 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
5879 name_matcher. Adjust call accordingly.
5880 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
5881 (maintenance_check_symtabs): Adjust type of parameter "fun".
5882 * psymtab.h (maintenance_check_symtabs): Likewise.
5883
74ccd7f5
JB
58842012-01-26 Joel Brobecker <brobecker@adacore.com>
5885
5886 * language.h (symbol_name_match_p_ftype): New typedef.
5887 (struct language_defn): Replace field la_symbol_name_compare
5888 by la_get_symbol_name_match_p.
5889 * ada-lang.c (ada_get_symbol_name_match_p): New function.
5890 (ada_language_defn): Use it.
5891 * linespec.c (struct symbol_matcher_data): New type.
5892 (iterate_name_matcher): Rewrite.
5893 (iterate_over_all_matching_symtabs): Pass a pointer to
5894 a symbol_matcher_data struct to expand_symtabs_matching
5895 instead of just the lookup name.
5896 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
5897 opencl-lang.c, p-lang.c, language.c: Delete field
5898 la_symbol_name_compare, and replace by NULL for new field
5899 la_get_symbol_name_match_p.
5900 * symfile.h (struct quick_symbol_functions): Update comment.
5901
5d268276
TT
59022012-01-25 Tom Tromey <tromey@redhat.com>
5903
5904 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
5905 dereferencing.
5906
edcc5120
TT
59072012-01-24 Tom Tromey <tromey@redhat.com>
5908
5909 PR symtab/12406:
5910 * solib.c (update_solib_list): Update the program space's
5911 added_solibs and deleted_solibs fields.
5912 * progspace.h (struct program_space) <added_solibs,
5913 deleted_solibs>: New fields.
5914 (clear_program_space_solib_cache): Declare.
5915 * progspace.c (release_program_space): Call
5916 clear_program_space_solib_cache.
5917 (clear_program_space_solib_cache): New function.
5918 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
5919 bpstat_stop_status. Use handle_solib_event.
5920 * breakpoint.c: Include gdb_regex.h.
5921 (print_solib_event): New function.
5922 (bpstat_print): Use print_solib_event.
5923 (bpstat_stop_status): Add special case for bp_shlib_event.
5924 (handle_solib_event): New function.
5925 (bpstat_what): Use handle_solib_event.
5926 (struct solib_catchpoint): New.
5927 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
5928 (breakpoint_hit_catch_solib, check_status_catch_solib)
5929 (print_it_catch_solib, print_one_catch_solib)
5930 (print_mention_catch_solib, print_recreate_catch_solib): New
5931 functions.
5932 (catch_solib_breakpoint_ops): New global.
5933 (catch_load_or_unload, catch_load_command_1)
5934 (catch_unload_command_1): New functions.
5935 (internal_bkpt_check_status): Add special case for
5936 bp_shlib_event.
5937 (internal_bkpt_print_it): Use print_solib_event.
5938 (initialize_breakpoint_ops): Initialize
5939 catch_solib_breakpoint_ops.
5940 (_initialize_breakpoint): Register "catch load" and "catch
5941 unload".
5942 * breakpoint.h (handle_solib_event): Declare.
5943 * NEWS: Add entry for "catch load" and "catch unload".
5944
fa864999
TT
59452012-01-24 Tom Tromey <tromey@redhat.com>
5946
5947 * ada-lang.c: Include gdb_vecs.h.
5948 * charset.c: Include gdb_vecs.h.
5949 * tracepoint.h: Include gdb_vecs.h.
5950 * gdb_vecs.h: New file.
5951
f90263c1
TT
59522012-01-24 Pedro Alves <pedro@codesourcery.com>
5953
5954 * breakpoint.c (breakpoint_hit_catch_fork)
5955 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
5956 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
5957 * infrun.c (inferior_has_forked, inferior_has_vforked)
5958 (inferior_has_execd, inferior_has_called_syscall): Delete.
5959 (handle_syscall_event): Get syscall_number from the execution
5960 control state's wait status.
5961 (wait_for_inferior): Don't clear syscall_number.
5962
09ac7c10
TT
59632012-01-24 Pedro Alves <palves@redhat.com>
5964
5965 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
5966 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
5967 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
5968 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
5969 `ws' parameter.
5970 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
5971 false for events other than TARGET_SIGNAL_TRAP.
5972 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
5973 Add `ws' parameter.
5974 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
5975 events other than TARGET_SIGNAL_TRAP.
5976 (tracepoint_breakpoint_hit): Add `ws' parameter.
5977 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
5978 parameter.
5979 (bpstat_stop_status): Same.
5980 (pc_at_non_inline_function): Same.
5981 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
5982 to pass the current event's waitstatus to bpstat_stop_status
5983 and pc_at_non_inline_function.
5984
86eb7e95
JK
59852012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5986
5987 Code cleanup.
5988 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
5989 Update the function comment for it.
5990 (source_script_with_search): Call make_cleanup_fclose for STREAM.
5991 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
5992 for STREAM.
5993
a9b3a50f
PA
59942012-01-24 Pedro Alves <palves@redhat.com>
5995
5996 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
5997 outside `bs->stop' block.
5998 (bpstat_what): Rework bp_shlib_event handling.
5999 (internal_bkpt_check_status): If the breakpoint is a
6000 bp_shlib_event, then set bs->stop and bs->print if
6001 stop_on_solib_events is set.
6002
53fe1783
GB
60032012-01-24 Gary Benson <gbenson@redhat.com>
6004
6005 Delete #if 0'd out code.
6006 * stack.c (print_frame_label_vars): Remove.
6007 (catch_info): Likewise.
6008 (_initialize_stack): Remove "info catch" command.
6009 * NEWS: Mention the above.
6010
49c62f2e
PA
60112012-01-24 Pedro Alves <palves@redhat.com>
6012
6013 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6014 it.
6015 (remote_notice_new_inferior): If the remote end doesn't support
6016 the multiprocess extensions, then the PID is fake.
6017 (add_current_inferior_and_thread): New.
6018 (remote_start_remote): Use it.
6019 (extended_remote_attach_1): Adjust.
6020 (extended_remote_create_inferior_1): Use
6021 add_current_inferior_and_thread.
6022
d0d8b0c6
JK
60232012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6024
6025 Fix watchpoints to be specific for each inferior.
6026 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6027 current_program_space.
6028 * i386-nat.c (i386_inferior_data_cleanup): New.
6029 (i386_inferior_data_get): Replace variable inf_data_local by an
6030 inferior_data call.
6031 (i386_use_watchpoints): Initialize i386_inferior_data.
6032 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6033 specific iterate_over_lwps.
6034
4403d8e9
JK
60352012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6036
6037 Fix watchpoints across inferior fork.
6038 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6039 comment for linux_nat_iterate_watchpoint_lwps.
6040 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6041 linux_nat_iterate_watchpoint_lwps.
6042 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6043 * i386-linux-nat.c (update_debug_registers_callback): Update the
6044 comment for linux_nat_iterate_watchpoint_lwps.
6045 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6046 linux_nat_iterate_watchpoint_lwps.
6047 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6048 * i386-nat.c: Include inferior.h.
6049 (dr_mirror): Remove.
6050 (i386_inferior_data, struct i386_inferior_data)
6051 (i386_inferior_data_get): New.
6052 (i386_debug_reg_state): Use i386_inferior_data_get.
6053 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6054 (i386_insert_watchpoint, i386_remove_watchpoint)
6055 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6056 (i386_remove_hw_breakpoint): New variable state, use
6057 i386_debug_reg_state instead of DR_MIRROR.
6058 * linux-nat.c (delete_lwp): New declaration.
6059 (num_lwps): Move here from downwards.
6060 (delete_lwp_cleanup): New.
6061 (linux_child_follow_fork): Create new child_lp, call
6062 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6063 PTRACE_DETACH.
6064 (num_lwps): Move upwards.
6065 (linux_nat_iterate_watchpoint_lwps): New.
6066 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6067 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6068
2992c9a7 60692012-01-24 Joel Brobecker <brobecker@adacore.com>
6070
6071 GDB 7.4 released.
6072
e360902b
PA
60732012-01-23 Pedro Alves <palves@redhat.com>
6074
6075 * top.c (caution): Rename to ...
6076 (confirm): ... this.
6077 (show_caution): Rename to ...
6078 (show_confirm): ... this.
6079 (quit_cover): Adjust.
6080 (init_main): Adjust.
6081 * top.h (caution): Rename to ...
6082 (confirm): ... this.
6083 * utils.c (internal_vproblem, defaulted_query): Adjust.
6084
050a2e1d
PA
60852012-01-23 Pedro Alves <palves@redhat.com>
6086
6087 * top.c (caution): Update comment.
6088 (execute_command): Don't consider the current value of `caution'.
6089
77a35dd8
JK
60902012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6093
a71b5a38
UW
60942012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6095
6096 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6097 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6098 * target.c (target_fileio_pwrite): Remove buffer address from
6099 debug output.
6100 (target_fileio_pread): Likewise.
6101
d99bd577
UW
61022012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6103
6104 * NEWS: Document remote "info proc" and "generate-core-file".
6105
35c2fab7
UW
61062012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6107
6108 * gdbarch.sh (find_memory_regions): New callback.
6109 * gdbarch.c, gdbarch.h: Regenerate.
6110
6111 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6112 callback before falling back to target method.
6113
6114 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6115 (linux_target_install_ops): No longer install it.
6116
6117 * linux-tdep.c (linux_find_memory_regions): New function.
6118 (linux_init_abi): Install it.
6119
6432734d
UW
61202012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6121
6122 * gdbarch.sh (make_corefile_notes): New architecture callback.
6123 * gdbarch.c: Regenerate.
6124 * gdbarch.h: Likewise.
6125
6126 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6127 before target_make_corefile_notes. If NULL is returned, the
6128 target does not support core file generation.
6129
6130 * linux-nat.c: Include "linux-tdep.h".
6131 (find_signalled_thread, find_stop_signal): Remove.
6132 (linux_nat_do_thread_registers): Likewise.
6133 (struct linux_nat_corefile_thread_data): Likewise.
6134 (linux_nat_corefile_thread_callback): Likewise.
6135 (iterate_over_spus): Likewise.
6136 (struct linux_spu_corefile_data): Likewise.
6137 (linux_spu_corefile_callback): Likewise.
6138 (linux_spu_make_corefile_notes): Likewise.
6139 (linux_nat_collect_thread_registers): New function.
6140 (linux_nat_make_corefile_notes): Replace contents by call to
6141 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6142 as native-only callback.
6143
6144 * linux-tdep.h: Include "bfd.h".
6145 (struct regcache): Add forward declaration.
6146 (linux_collect_thread_registers_ftype): New typedef.
6147 (linux_make_corefile_notes): Add prototype.
6148 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6149 "regset.h", and "elf-bfd.h".
6150 (find_signalled_thread, find_stop_signal): New functions.
6151 (linux_spu_make_corefile_notes): Likewise.
6152 (linux_collect_thread_registers): Likewise.
6153 (struct linux_corefile_thread_data): New data structure.
6154 (linux_corefile_thread_callback): New funcion.
6155 (linux_make_corefile_notes): Likewise.
6156 (linux_make_corefile_notes_1): Likewise.
6157 (linux_init_abi): Install it.
6158
3030c96e
UW
61592012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6160
6161 * gdbarch.sh (info_proc): New callback.
6162 * gdbarch.c, gdbarch.h: Regenerate.
6163
6164 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6165 before falling back to the target info_proc callback.
6166
6167 * linux-nat.c: Do not include "cli/cli-utils.h".
6168 (linux_nat_info_proc): Remove.
6169 (linux_target_install_ops): No longer install it.
6170
6171 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6172 (read_mapping): New function.
6173 (linux_info_proc): Likewise.
6174 (linux_init_abi): Install it.
6175
145b16a9
UW
61762012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6177
6178 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6179 * infcmd.c: (info_proc_cmd_1): New function.
6180 (info_proc_cmd): New function, moved here from equivalent routine
6181 orignally in linux-nat.c.
6182 (info_proc_cmd_mappings): Likewise.
6183 (info_proc_cmd_stat): Likewise.
6184 (info_proc_cmd_status): Likewise.
6185 (info_proc_cmd_cwd): Likewise.
6186 (info_proc_cmd_cmdline): Likewise.
6187 (info_proc_cmd_exe): Likewise.
6188 (info_proc_cmd_all): Likewise.
6189 (_initialize_infcmd): Install "info proc" command and subcommands.
6190
6191 * target.h (struct target_ops): Add to_info_proc.
6192 (target_info_proc): Add prototype.
6193 * target.c (target_info_proc): New function.
6194
6195 * procfs.c (procfs_info_proc): Add prototype.
6196 (info_proc_cmd): Rename into ...
6197 (procfs_info_proc): ... this. Update argument types as appropriate
6198 for a to_info_proc implementation. Handle "what" argument.
6199 (procfs_target): Install procfs_info_proc.
6200 (_initialize_procfs): No longer install "info proc" command.
6201
6202 * linux-nat.c: (enum info_proc_what): Remove.
6203 (linux_nat_info_proc_cmd_1): Rename into ...
6204 (linux_nat_info_proc): ... this. Update argument types as appropriate
6205 for a to_info_proc implementation.
6206 (linux_nat_info_proc_cmd): Remove.
6207 (linux_nat_info_proc_cmd_mappings): Likewise.
6208 (linux_nat_info_proc_cmd_stat): Likewise.
6209 (linux_nat_info_proc_cmd_status): Likewise.
6210 (linux_nat_info_proc_cmd_cwd): Likewise.
6211 (linux_nat_info_proc_cmd_cmdline): Likewise.
6212 (linux_nat_info_proc_cmd_exe): Likewise.
6213 (linux_nat_info_proc_cmd_all): Likewise.
6214 (linux_target_install_ops): Install linux_nat_info_proc.
6215 (_initialize_linux_nat): No longer install "info proc" command
6216 and subcommands.
6217
b9e7b9c3
UW
62182012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6219
6220 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6221 * config.in, configure: Regenerate.
6222
6223 * target.h (struct target_ops): Add to_fileio_readlink.
6224 (target_fileio_readlink): Add prototype.
6225 * target.c (target_fileio_readlink): New function.
6226
6227 * inf-child.c: Conditionally include <sys/param.h>.
6228 (inf_child_fileio_readlink): New function.
6229 (inf_child_target): Install it.
6230
6231 * remote.c (PACKET_vFile_readlink): New enum value.
6232 (remote_hostio_readlink): New function.
6233 (init_remote_ops): Install it.
6234 (_initialize_remote): Handle vFile:readlink packet type.
6235
7313baad
UW
62362012-01-20 Pedro Alves <palves@redhat.com>
6237 Ulrich Weigand <ulrich.weigand@linaro.org>
6238
6239 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6240 * config.in, configure: Regenerate.
6241
6242 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6243 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6244 (target_fileio_open): Add prototype.
6245 (target_fileio_pwrite): Likewise.
6246 (target_fileio_pread): Likewise.
6247 (target_fileio_close): Likewise.
6248 (target_fileio_unlink): Likewise.
6249 (target_fileio_read_alloc): Likewise.
6250 (target_fileio_read_stralloc): Likewise.
6251
6252 * target.c: Include "gdb/fileio.h".
6253 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6254 (default_fileio_target): New function.
6255 (target_fileio_open): Likewise.
6256 (target_fileio_pwrite): Likewise.
6257 (target_fileio_pread): Likewise.
6258 (target_fileio_close): Likewise.
6259 (target_fileio_unlink): Likewise.
6260 (target_fileio_close_cleanup): Likewise.
6261 (target_fileio_read_alloc_1): Likewise.
6262 (target_fileio_read_alloc): Likewise.
6263 (target_fileio_read_stralloc): Likewise.
6264
6265 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6266 <fcntl.h>, and <unistd.h>.
6267 (inf_child_fileio_open_flags_to_host): New function.
6268 (inf_child_errno_to_fileio_error): Likewise.
6269 (inf_child_fileio_open): Likewise.
6270 (inf_child_fileio_pwrite): Likewise.
6271 (inf_child_fileio_pread): Likewise.
6272 (inf_child_fileio_close): Likewise.
6273 (inf_child_fileio_unlink): Likewise.
6274 (inf_child_target): Install to_fileio routines.
6275
6276 * remote.c (init_remote_ops): Install to_fileio routines.
6277
901f9912
UW
62782012-01-20 Pedro Alves <palves@redhat.com>
6279 Ulrich Weigand <ulrich.weigand@linaro.org>
6280
6281 * remote.c (remote_multi_process_p): Only check for multi-process
6282 protocol feature, do not check for extended protocol.
6283 (remote_supports_multi_process): Check for extended protocol here.
6284 (set_general_process): Likewise.
6285 (extended_remote_kill): Likewise.
6286 (remote_pid_to_str): Likewise.
6287 (remote_query_supported): Always query multiprocess mode.
6288
e714e1bf
UW
62892012-01-20 Pedro Alves <palves@redhat.com>
6290 Ulrich Weigand <ulrich.weigand@linaro.org>
6291
6292 * inferior.h (struct inferior): Add fake_pid_p.
6293 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6294 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6295 magic_null_ptid since the remote side doesn't provide a real PID.
6296
50897289
TT
62972012-01-19 Tom Tromey <tromey@redhat.com>
6298
6299 * NEWS: Combine the two Python sections.
6300
1afc2033
JK
63012012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6302
6303 * target.h (target_close): Update comment on the target's unpush state.
6304
305436e0
PA
63052012-01-19 Pedro Alves <palves@redhat.com>
6306
6307 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
6308 linux_nat_async directly instead of going through the target
6309 vector.
6310 * target.c (unpush_target): Close target after unpushing it, not
6311 before.
6312
49323895
GB
63132012-01-19 Gary Benson <gbenson@redhat.com>
6314
6315 * mdebugread.c (sort_blocks): Replace integer constants with ones
6316 derived from FIRST_LOCAL_BLOCK.
6317
1db33378
PP
63182012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
6319 Jan Kratochvil <jan.kratochvil@redhat.com>
6320
6321 PR gdb/9538
6322 * symfile.c (find_separate_debug_file): New function.
6323 (terminate_after_last_dir_separator): Likewise.
6324 (find_separate_debug_file_by_debuglink): Also try realpath.
6325 * configure.ac (AC_CHECK_FUNCS): Add lstat.
6326 * configure: Regenerate.
6327 * config.in: Regenerate.
6328
f83d8a90
DE
63292012-01-18 Doug Evans <dje@google.com>
6330
6331 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
6332 (main.o): Remove rule.
6333 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
6334 (--with-sysroot): Rewrite.
6335 * configure: Regenerate.
6336 * config.in: Regenerate.
6337
2dbca4d6
SDJ
63382012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
6339
6340 * parse.c (initialize_expout): New function.
6341 (reallocate_expout): Likewise.
6342 (parse_exp_in_context): Use `initialize_expout' and
6343 `reallocate_expout' when appropriate.
6344
0695b514
PA
63452012-01-18 Pedro Alves <palves@redhat.com>
6346
6347 * record.c (struct record_breakpoint, record_breakpoint_p)
6348 (record_breakpoints): New.
6349 (record_insert_breakpoint, record_remove_breakpoint): Manage
6350 record breakpoints list. Only remove breakpoints from the
6351 inferior if they had been inserted there in the first place.
6352
136e1c30
DE
63532012-01-17 Doug Evans <dje@google.com>
6354
6355 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
6356 if we know we don't have a file name to look for.
6357
c0bf857d
PA
63582012-01-17 Pedro Alves <palves@redhat.com>
6359
6360 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
6361 the frame's stop reason is UNWIND_UNAVAILABLE.
6362
b486de60
JK
63632012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6364
6365 Fix compilation error.
6366 * m2-exp.y (yyerror): Use ANSI C prototype.
6367
d04550a6
SDJ
63682012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6369
6370 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
6371 (growbuf_by_size): Likewise.
6372 (yyerror): Likewise.
6373 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
6374 (modblock): Remove variable (was #if 0'ed).
6375 (parse_number): Convert prototype from K&R to ANSI C.
6376 (yyerror): Likewise.
6377 * objc-exp.y (parse_number): Likewise.
6378 (yyerror): Likewise.
6379 (yylex): Remove #if 0'ed code.
6380 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
6381 (yyerror): Likewise.
6382
4aac40c8
TT
63832012-01-16 Tom Tromey <tromey@redhat.com>
6384
6385 * NEWS: Add item.
6386 * symtab.h (compare_filenames_for_search): Declare.
6387 * symtab.c (compare_filenames_for_search): New function.
6388 (iterate_over_some_symtabs): Use it.
6389 * symfile.h (struct quick_symbol_functions)
6390 <map_symtabs_matching_filename>: Change spec.
6391 * psymtab.c (partial_map_symtabs_matching_filename): Use
6392 compare_filenames_for_search. Update for new spec.
6393 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
6394 compare_filenames_for_search. Update for new spec.
6395 * breakpoint.c (clear_command): Use compare_filenames_for_search.
6396
cafec441
TT
63972012-01-16 Tom Tromey <tromey@redhat.com>
6398
6399 PR python/13281:
6400 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
6401 (struct main_type) <flag_flag_enum>: New field.
6402 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
6403 * NEWS: Add entries.
6404 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
6405 enums.
6406 * python/lib/gdb/printing.py (_EnumInstance): New class.
6407 (FlagEnumerationPrinter): Likewise.
6408
983af33b
SDJ
64092012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
6410
6411 * breakpoint.c (create_sals_from_address_default): New function.
6412 (create_breakpoints_sal_default): Likewise.
6413 (decode_linespec_default): Likewise.
6414 (is_marker_spec): Removed.
6415 (strace_marker_p): New function.
6416 (init_breakpoint_sal): Using `strace_marker_p' instead of
6417 `is_marker_spec'.
6418 (create_breakpoint): Call method `create_sals_from_address' from
6419 breakpoint_ops, replacing code that created SALs conditionally
6420 on the type of the breakpoint. Call method `create_breakpoints_sal',
6421 replacing code that created breakpoints conditionally on the type
6422 wanted.
6423 (base_breakpoint_create_sals_from_address): New function.
6424 (base_breakpoint_create_breakpoints_sal): Likewise.
6425 (base_breakpoint_decode_linespec): Likewise.
6426 (base_breakpoint_ops): Add methods
6427 `base_breakpoint_create_sals_from_address',
6428 `base_breakpoint_create_breakpoints_sal' and
6429 `base_breakpoint_decode_linespec'.
6430 (bkpt_create_sals_from_address): New function.
6431 (bkpt_create_breakpoints_sal): Likewise.
6432 (bkpt_decode_linespec): Likewise.
6433 (tracepoint_create_sals_from_address): Likewise.
6434 (tracepoint_create_breakpoints_sal): Likewise.
6435 (tracepoint_decode_linespec): Likewise.
6436 (strace_marker_create_sals_from_address): Likewise.
6437 (strace_marker_create_breakpoints_sal): Likewise.
6438 (strace_marker_decode_linespec): Likewise.
6439 (strace_marker_breakpoint_ops): New variable.
6440 (addr_string_to_sals): Remove `marker_spec'. Call method
6441 `decode_linespec' from breakpoint_ops, replacing code that decoded
6442 an address string into a SAL. Use `strace_marker_p' instead of
6443 `marker_spec'.
6444 (strace_command): Decide whether we are dealing with a static
6445 tracepoint with marker or not. Use the appropriate breakpoint_ops.
6446 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
6447 * breakpoint.h (linespec_result, linespec_sals): New forward
6448 declarations.
6449 (breakpoint_ops) <create_sals_from_address>,
6450 <create_breakpoints_sal>, <decode_linespec>: New methods.
6451
4795f398
DE
64522012-01-14 Doug Evans <dje@google.com>
6453
6454 * NEWS: Update text for "maint set python print-stack".
6455 It is deprecated in gdb 7.4 and deleted in 7.5.
6456
ee5106fe
EZ
64572012-01-13 Eli Zaretskii <eliz@gnu.org>
6458
6459 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
6460 including curses.h.
6461
b161e06f
JK
64622012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6463
6464 * configure: Regenerate.
6465 * config.in: Regenerate.
6466
85254831
KS
64672012-01-12 Keith Seitz <keiths@redhat.com>
6468
6469 PR mi/10586
6470 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
6471 (ANONYMOUS_UNION_NAME): Define.
6472 (is_path_expr_parent): New function.
6473 (get_path_expr_parent): New function.
6474 (is_anonymous_child): New function.
6475 (create_child_with_value): If the child is anonymous and without
6476 a name, assign an object name to it.
6477 (c_describe_child): Use get_path_expr_parent to determine
6478 the parent expression.
6479 If there field represents an anonymous struct or union and
6480 has no name, set an appropriate display name and expression.
6481 (cplus_describe_child): Likewise.
6482
620fa63a
PA
64832012-01-12 Pedro Alves <palves@redhat.com>
6484
6485 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
6486 available when %ebp is found to be zero (outermost).
6487
2efa2c79
AT
64882012-01-11 Andreas Tobler <andreast@fgznet.ch>
6489
6490 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
6491 an internal gdb_static_assert.
6492 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
6493
88e7d25d
TT
64942012-01-11 Tom Tromey <tromey@redhat.com>
6495
6496 PR gdb/9598:
6497 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
6498 catch" and "catch throw".
6499
72384ba3
PH
65002012-01-11 Paul Hilfinger <hilfingr@adacore.com>
6501
6502 * blockframe.c (block_innermost_frame): Start search from selected
6503 frame, if present, or otherwise the current frame.
6504
6505 * c-exp.y (variable): Update innermost_block for
6506 'block COLONCOLON NAME' clause.
6507 * m2-exp.y (variable): Ditto.
6508 * objc-exp.y (variable): Ditto.
6509
065a711f
TT
65102012-01-10 Tom Tromey <tromey@redhat.com>
6511
6512 PR python/13199:
6513 * python/python.c (finish_python_initialization): Set sys.argv.
6514
f3f5162e
DE
65152012-01-10 Doug Evans <dje@google.com>
6516
6517 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
6518 "want_line_info". All callers updated.
6519 (dwarf_decode_lines_1): New function.
6520 (handle_DW_AT_stmt_list): Add function comment.
6521 New arg "want_line_info". All callers updated.
6522 (read_file_scope,read_type_unit_scope): Move comment from
6523 handle_DW_AT_stmt_list to here.
6524
9934703b
JK
65252012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6526
6527 Fix regression after libiberty/ update for GCC PR 6057 and others.
6528 * c-exp.y (operator) <OPERATOR DELETE>
6529 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6530 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
6531 (make_builtin_type, make_name): New variable i, add gdb_assert.
6532 (operator) <OPERATOR NEW>: Update ARGS to 3.
6533 (operator) <OPERATOR DELETE>: Add trailing space.
6534 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
6535 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
6536 * cp-support.c (cp_canonicalize_string): Check NULL from
6537 cp_comp_to_string, call warning and return.
6538
06b9f45f
JK
65392012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 Fix duplicate .o files after omitting libbfd.a.
6542 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
6543 (SFILES): Add corelow.c.
6544 (COMMON_OBS): Add corelow.o.
6545 (ALLDEPFILES): Remove corelow.c.
6546 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
6547 * config/alpha/alpha-osf3.mh: Likewise.
6548 * config/alpha/fbsd.mh: Likewise.
6549 * config/arm/nbsdaout.mh: Likewise.
6550 * config/arm/nbsdelf.mh: Likewise.
6551 * config/i386/i386gnu.mh: Likewise.
6552 * config/ia64/hpux.mh: Likewise.
6553 * config/ia64/linux.mh: Likewise.
6554 * config/m32r/linux.mh: Likewise.
6555 * config/m68k/linux.mh: Likewise.
6556 * config/mips/irix5.mh: Likewise.
6557 * config/mips/irix6.mh: Likewise.
6558 * config/pa/hpux.mh: Likewise.
6559 * config/pa/linux.mh: Likewise.
6560 * config/powerpc/aix.mh: Likewise.
6561 * config/sparc/linux.mh: Likewise.
6562 * config/sparc/linux64.mh: Likewise.
6563 * config/sparc/sol2.mh: Likewise.
6564 * config/vax/vax.mh: Likewise.
6565 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
6566 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
6567 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
6568 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
6569 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
6570 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
6571 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
6572 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
6573 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
6574 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
6575 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
6576 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
6577 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6578 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
6579 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
6580 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6581 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
6582 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
6583 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
6584 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
6585 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
6586 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
6587 corelow.o from gdb_target_obs.
6588 * corefile.c (core_target): Update the comment on NULL value.
6589 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
6590 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
6591 MATCHES. Drop YUMMY set on NULL.
6592 (core_close): Do not call exit_inferior_silent on zero PID. Do not
6593 reclaim CORE_DATA if it is already NULL.
6594
34365054
DE
65952012-01-09 Doug Evans <dje@google.com>
6596
6597 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
6598 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
6599
696166a3
KS
66002012-01-09 Keith Seitz <keiths@redhat.com>
6601
6602 * breakpoint.c (wrapper.h): Don't include.
6603
8e7b59a5
KS
66042012-01-09 Keith Seitz <keiths@redhat.com>
6605
6606 * Makefile.in (SFILES): Remove wrapper.c.
6607 (HFILES_NO_SRCDIR): Remove wrapper.h.
6608 (COMMON_OBS): Remove wrapper.o.
6609 * cli/cli-interp.c: Don't inlude wrapper.h.
6610 * corelow.c: Likewise.
6611 (core_open): Replace gdb_target_find_new_threads with
6612 TRY_CATCH around target_find_new_threads.
6613 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
6614 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
6615 * varobj.c (varobj_create): Likewise for parse_exp_1 and
6616 evaluate_expression.
6617 (varobj_set_value): Likewise for evaluate_expression and
6618 value_assign.
6619 (install_new_variable): Likewise for value_fetch_lazy.
6620 (adjust_value_for_child_access): Likewise for value_ind.
6621 (c_describe_child): Likewise for value_subscript and
6622 value_ind.
6623 (c_value_of_root): Likewise for evaluate_expression.
6624 * wrapper.c: Remove.
6625 * wrapper.h: Remove.
6626
1a4eeb98
DE
66272012-01-09 Doug Evans <dje@google.com>
6628
9ff913ba
DE
6629 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
6630 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
6631 "abfd" args with "section". All callers updated.
6632 Error checking code moved ...
6633 (error_check_comp_unit_head): ... here. New function.
6634 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
6635 Delete arg "abfd". New arg "type_offset". All callers updated.
6636 (create_debug_types_hash_table): Simplify by using
6637 read_and_check_type_unit_head.
6638
1a4eeb98
DE
6639 * parser-defs.h (namecopy): Delete.
6640 * parse.c (namecopy, namecopy_size): Move into copy_name.
6641
2e6af8c0
JK
66422012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6643
6644 Partially fix duplicate .o files after omitting libbfd.a.
6645 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
6646 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6647 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
6648 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6649 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
6650 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
6651 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
6652
9f2f828a
PA
66532012-01-09 Pedro Alves <palves@redhat.com>
6654
6655 * MAINTAINERS: Update my email address.
6656
4d72c0bc
DE
66572012-01-08 Doug Evans <dje@google.com>
6658
d467dd73
DE
6659 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
6660 n_type_units. Rename type_comp_units to all_type_units.
6661 All uses updated.
6662 (add_signatured_type_cu_to_table): Renamed from
6663 add_signatured_type_cu_to_list. All callers updated.
6664
4d72c0bc
DE
6665 * gdbtypes.h (struct cplus_struct_type): Delete member
6666 nfn_fields_total. All uses removed.
6667
21b2bd31
DE
66682012-01-06 Doug Evans <dje@google.com>
6669
6670 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
6671 to top of file.
6672 (dwarf2_find_comp_unit): Delete.
6673 (process_psymtab_comp_unit): Make result "void".
6674 Delete args buffer, info_ptr, buffer_size, and replace with
6675 "section". All callers updated.
6676 (dwarf2_build_psymtabs_hard): Simplify.
6677
bfd189b1
SDJ
66782012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
6679 Thiago Jung Bauermann <bauerman@br.ibm.com>
6680
6681 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
6682 before `struct gdb_exception'.
6683 * breakpoint.c (update_global_location_list_nothrow)
6684 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
6685 * cp-abi.c (value_rtti_type): Likewise.
6686 * cp-support.c (cp_validate_operator): Likewise.
6687 * infrun.c (insert_exception_resume_breakpoint)
6688 (check_exception_resume, keep_going): Likewise.
6689 * mi-interp.c (mi_breakpoint_created)
6690 (mi_breakpoint_modified): Likewise.
6691 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
6692 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
6693 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
6694
6b07635f
DE
66952012-01-05 Doug Evans <dje@google.com>
6696
0b30b85c
DE
6697 * dwarf2read.c (statement_prologue): Delete, unused.
6698
98714339
DE
6699 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
6700 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
6701
6b07635f
DE
6702 * dwarf2read.c (comp_unit_header): Delete, unused.
6703
761f4555
UW
67042012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
6705
6706 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
6707 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
6708
2ca0b532
PA
67092012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
6710
6711 * infrun.c (normal_stop): Don't skip calling the normal_stop
6712 observers if the thread was doing a multi-step, but stopped for
6713 some reason other than stepping.
6714
50aeff07
PA
67152012-01-05 Pedro Alves <alves.ped@gmail.com>
6716
6717 * cli/cli-decode.h: Add comments.
6718 (CMD_LIST_AMBIGUOUS): Moved to command.h
6719 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
6720 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
6721 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
6722 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
6723 (add_com, add_com_alias, add_info, add_info_alias)
6724 (complete_on_cmdlist, complete_on_enum, help_list): Remove
6725 declarations.
6726 * command.h: Add and adjust comments.
6727 (CMD_LIST_AMBIGUOUS): Moved here.
6728 (help_cmd, help_cmd_list): Delete declarations.
6729
5953832c
DE
67302012-01-04 Doug Evans <dje@google.com>
6731
e5fe5e75
DE
6732 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
6733 All callers updated.
6734 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
6735 Replace all arguments with "per_cu". All callers updated.
6736
28dee7f5
DE
6737 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
6738
23745b47
DE
6739 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
6740 New arg "per_cu". All callers updated.
6741
5953832c
DE
6742 Delete #if 0'd out code.
6743 * language.c (binop_result_type): Delete.
6744 (simple_type, ordered_type, same_type, integral_type): Delete.
6745 (numeric_type, character_type, string_type, boolean_type): Delete.
6746 (float_type, structured_type): Delete.
6747 * language.h: Update.
6748
0f5b7562
TT
67492012-01-04 Tom Tromey <tromey@redhat.com>
6750
6751 * python/py-value.c (valpy_binop): Initialize 'res_val'.
6752
78218f56
JB
67532012-01-04 Joel Brobecker <brobecker@adacore.com>
6754
6755 * corefile.c (close_exec_file): Delete.
6756 (reopen_exec_file): Remove commented out code that seems related
6757 to close_exec_file, which is being deleted here.
6758 * inferior.h (close_exec_file): Delete.
6759 * fork-child.c (fork_inferior): Remove call to fork_inferior.
6760
0fcd72ba
JB
67612012-01-04 Joel Brobecker <brobecker@adacore.com>
6762
6763 * ada-lang.c: #include "cli/cli-utils.h".
6764 (get_selections): Use skip_spaces.
6765 (ada_get_next_arg): Use skip_spaces and skip_to_space.
6766 (catch_ada_exception_command_split): Use skip_spaces.
6767 (ada_decode_assert_location): Likewise.
6768
1dabb4c4
JB
67692012-01-04 Joel Brobecker <brobecker@adacore.com>
6770
6771 * linespec.c (decode_line_internal): Check for C++ or Java
6772 compound constructs only if the current language is C, C++
6773 or Java.
6774
5931a2fa
JK
67752012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6776
6777 Revert:
6778 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6779 Joel Brobecker <brobecker@adacore.com>
6780 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6781 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6782 3 times.
6783 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6784 fall through into AT_ENTRY_POINT.
6785 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6786 DUMMY_ADDR with it.
6787 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6788 PPC_INSN_SIZE skip to 3 times.
6789
1a2da5ee
JB
67902012-01-04 Joel Brobecker <brobecker@adacore.com>
6791
6792 * linespec.c (add_minsym): Preserve function descriptors.
6793
8645ff69
UW
67942012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
6795
6796 * breakpoint.c (all_locations_are_pending): Consider locations
6797 in program spaces executing during startup pending as well.
6798
0b302171
JB
67992012-01-04 Joel Brobecker <brobecker@adacore.com>
6800
6801 Copyright year update in most files of the GDB Project.
6802
8ba098ad
JB
68032012-01-04 Joel Brobecker <brobecker@adacore.com>
6804
6805 * copyright.sh: Delete.
6806 * copyright.py: Rewrite.
6807
09c01c30
JB
68082012-01-04 Joel Brobecker <brobecker@adacore.com>
6809
6810 * gnulib/extra/update-copyright: New file, imported from gnulib.
6811
3c36c0af
JB
68122012-01-04 Joel Brobecker <brobecker@adacore.com>
6813
6814 * README (Copyright and License Notices): New section.
6815
888fe1e1
TT
68162012-01-03 Tom Tromey <tromey@redhat.com>
6817
6818 PR python/12533:
6819 * python/py-value.c (valpy_dereference, valpy_get_address
6820 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
6821 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
6822 (valpy_absolute, valpy_richcompare): Free intermediate values.
6823
6e681866
JB
68242011-01-03 Joel Brobecker <brobecker@adacore.com>
6825
6826 * ada-lang.c: Reformat the copyright notice.
6827
0cd09acb
JK
68282012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6829
6830 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
6831 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
6832 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
6833 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
6834 Revert this part of:
6835 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6836 Build gdb directly from *.o files not using libgdb.a.
6837 * Makefile.in (COMMON_OBS): Remove solib-target.o.
6838
12c3e59c
JB
68392012-01-02 Joel Brobecker <brobecker@adacore.com>
6840
6841 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
6842 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
6843 Reformat the copyright header.
6844
11bf1490
JK
68452012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6846
6847 Revert this part of:
6848 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6849 Remove the gdbtui binary.
6850 * gdb.c (main): Remove args.interpreter_p initialization.
6851 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6852 * main.h (struct captured_main_args): Remove interpreter_p.
6853
1fef196f
JB
68542012-01-02 Joel Brobecker <brobecker@adacore.com>
6855
6856 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
6857
67827812
JB
68582012-01-02 Joel Brobecker <brobecker@adacore.com>
6859
6860 * top.c (print_gdb_version): Update copyright year.
6861
a4d0b831
YQ
68622012-01-02 Yao Qi <yao@codesourcery.com>
6863
6864 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
6865
b5914469
JK
68662012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6867 Joel Brobecker <brobecker@adacore.com>
6868
6869 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
6870 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
6871 3 times.
6872 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
6873 fall through into AT_ENTRY_POINT.
6874 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
6875 DUMMY_ADDR with it.
6876 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
6877 PPC_INSN_SIZE skip to 3 times.
6878
8da828f7
JK
68792012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6880
6881 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
6882 the return value.
6883 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
6884
8574e74b
JK
68852012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6886
6887 Build gdb directly from *.o files not using libgdb.a.
6888 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
6889 (COMMON_OBS): Remove solib-target.o.
6890 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
6891 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
6892 (LIBGDB_OBS, libgdb.a): Move it above.
6893 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
6894 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
6895 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
6896 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
6897 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
6898 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
6899 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
6900 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
6901 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
6902 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
6903 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
6904 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
6905 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
6906 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
6907 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
6908 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
6909 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
6910 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
6911 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
6912 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
6913 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
6914 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
6915 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
6916 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
6917 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
6918 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
6919 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
6920
217bff3e
JK
69212012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6922
6923 Remove the gdbtui binary.
6924 * .gitignore (/gdbtui): Remove.
6925 * Makefile.in (TUI): Remove.
6926 (SUBDIR_TUI_OBS): Remove tui-main.o.
6927 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
6928 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
6929 (tui-main.o): Remove.
6930 (all_object_files): Remove tui-main.o.
6931 * NEWS: New note for the gdbtui removal.
6932 * configure: Rebuilt.
6933 * configure.ac: No longer add all-tui, clean-tui, install-tui and
6934 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
6935 CONFIG_UNINSTALL respectively.
6936 * gdb.c (main): Remove args.interpreter_p initialization.
6937 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
6938 * main.h (struct captured_main_args): Remove interpreter_p.
6939 * tui/tui-main.c: Remove.
6940
9cdd5dbd
DE
69412012-01-01 Doug Evans <dje@google.com>
6942
bb5ed363
DE
6943 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
6944 (dwarf2_physname, read_import_statement): Ditto.
6945 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
6946 (process_structure_scope read_subroutine_type): Ditto.
6947 (read_typedef, load_partial_dies, read_partial_die): Ditto.
6948 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
6949 (dwarf2_fetch_die_location_block): Ditto.
6950 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
6951
a0f42c21
DE
6952 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
6953 All callers updated.
6954 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
6955 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
6956 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
6957
2dc860c0
DE
6958 * dwarf2read.c (load_cu): Move assert to more useful location.
6959
68dc6402
DE
6960 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
6961 All callers updated.
6962
9cdd5dbd
DE
6963 * dwarf2read.c (dwarf2_per_objfile): Add comment.
6964 (dwarf2_elf_names): Minor reformat.
6965 (dwarf2_per_cu_data): Tweak comment.
6966 (dwarf2_read_section): Fix comment.
6967 (create_all_comp_units): Fix comment.
6968 (load_full_comp_unit): Fix comment.
6969 (process_full_comp_unit): Fix comment.
6970 (read_signatured_type): Fix comment.
6971
0c10e53e 6972For older changes see ChangeLog-2011.
c906108c
SS
6973\f
6974Local Variables:
6975mode: change-log
6976left-margin: 8
6977fill-column: 74
6978version-control: never
57da7796 6979coding: utf-8
c906108c 6980End:
This page took 3.717049 seconds and 4 git commands to generate.