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