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