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