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