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