gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
80480540
YQ
12012-12-20 Yao Qi <yao@codesourcery.com>
2
3 * maint.c (_initialize_maint_cmds): Move code ...
4 * symmisc.c (_initialize_symmisc): ... to here.
5 (maintenance_print_msymbols): Make it static.
6 (maintenance_print_objfiles): Likewise.
7 (maintenance_print_symbols): Likewise.
8 (maintenance_info_symtabs): Likewise.
9 * symtab.h (maintenance_print_msymbols): Remove declaration.
10 (maintenance_print_objfiles, maintenance_print_symbols): Likewise.
11 (maintenance_info_symtabs): Likewise.
12
dfc7bb5b
YQ
132012-12-20 Yao Qi <yao@codesourcery.com>
14
15 * maint.c (_initialize_maint_cmds): Move code to ...
16 * psymtab.c (_initialize_psymtab): ... here. New.
17 Include "gdbcmd.h".
18 (maintenance_print_psymbols): Make it static.
19 (maintenance_info_psymtabs, maintenance_check_symtabs): Likewise.
20 * symtab.h (maintenance_print_psymbols): Remove declaration.
21 (maintenance_check_symtabs, maintenance_info_psymtabs): Likewise.
22
64e4f34f
MK
232012-12-19 Maxim Kuvyrkov <maxim@codesourcery.com>
24
25 * MAINTAINERS: Add myself to write-after-approval maintainers.
26
4b844a38
AT
272012-12-19 Andreas Tobler <andreast@neon.andreas.nets>
28
29 * mips-tdep.c (micromips_deal_with_atomic_sequence): Initialize
30 branch_bp to keep gcc happy.
31
bf6be9db
JB
322012-12-19 Joel Brobecker <brobecker@adacore.com>
33
34 * gdbarch.sh (copyright): Update copyright years.
35 * gdbarch.h, gdbarch.c: Regenerate.
36 * copyright.py (EXCLUDE_LIST): Remove gdbarch.h and gdbarch.c.
37 (MULTIPLE_COPYRIGHT_HEADERS): Add 'gdb/gdbarch.sh'.
38
7785b880
JB
392012-12-19 Joel Brobecker <brobecker@adacore.com>
40
41 * acinclude.m4: Update contact info in copyright notice.
42
025cfdb2
YQ
432012-12-19 Yao Qi <yao@codesourcery.com>
44
45 * maint.c (maintenance_print_statistics): Make it static.
46 * symtab.h (maintenance_print_statistics): Remove declaration.
47
249729c4
JB
482012-12-19 Joel Brobecker <brobecker@adacore.com>
49
50 * NEWS: Add entry announcing ppc-lynx178 support.
51
a143c6de
JB
522012-12-19 Joel Brobecker <brobecker@adacore.com>
53
54 Revert the following change (compatibility issues with libiconv):
55 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
56 * gnulib/import/errno.in.h: Import.
57 * gnulib/import/m4/errno_h.m4: Import.
58 * gnulib/aclocal.m4: Regenerate.
59 * gnulib/configure: Regenerate.
60 * gnulib/import/Makefile.am: Update.
61 * gnulib/import/Makefile.in: Update.
62 * gnulib/import/m4/gnulib-cache.m4: Update.
63 * gnulib/import/m4/gnulib-comp.m4: Update.
64
28da1647
TT
652012-12-18 Tom Tromey <tromey@redhat.com>
66
67 * defs.h (directory_command): Don't declare.
68 * source.c (directory_command): Now static.
69
1dd5fedc
TT
702012-12-18 Tom Tromey <tromey@redhat.com>
71
72 * infcmd.c (all_registers_info, nexti_command, stepi_command)
73 (continue_command, interrupt_target_command): Now static.
74 (registers_info): Remove declaration.
75 * inferior.h (all_registers_info, nexti_command, stepi_command)
76 (continue_command, interrupt_target_command): Don't declare.
77
d8a4f928 782012-12-18 Tom Tromey <tromey@redhat.com>
c419cfba
TT
79
80 * cli/cli-cmds.c (apropos_command): Now static.
81
d8a4f928 822012-12-18 Tom Tromey <tromey@redhat.com>
da821c7b
TT
83
84 * breakpoint.c (dprintf_command): Now static.
85
d8a4f928 862012-12-18 Tom Tromey <tromey@redhat.com>
ca7b0bbc
TT
87
88 * Makefile.in (init.c): Declare initialize_all_files;
89 don't include call-cmds.h.
90 * call-cmds.h: Remove.
91 * symtab.c: Don't include call-cmds.h.
92 * top.c: Don't include call-cmds.h. Declare
93 initialize_all_files.
94
d8a4f928 952012-12-18 Tom Tromey <tromey@redhat.com>
5d3055ad
TT
96
97 * symfile.c (list_overlays_command, map_overlay_command)
98 (unmap_overlay_command): Now static.
99
d8a4f928 1002012-12-18 Tom Tromey <tromey@redhat.com>
2370e853
TT
101
102 * cli/cli-cmds.c (_initialize_cli_cmds): Remove "document",
103 "define", "while", and "if" commands.
104 * cli/cli-script.c (while_command, if_command, define_command)
105 (document_command): Now static.
106 (_initialize_cli_script): New function.
107 * cli/cli-script.h (while_command, if_command, define_command)
108 (document_command): Don't declare.
109
d8a4f928 1102012-12-18 Tom Tromey <tromey@redhat.com>
43e4916f
TT
111
112 * cli/cli-cmds.c (_initialize_cli_cmds): New function.
113 (init_cli_cmds): Move most code into new function.
114
d8a4f928 1152012-12-18 Tom Tromey <tromey@redhat.com>
c9630d9c
TT
116
117 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
118 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
119 declare.
120
d5367fe1
JB
1212012-12-18 Joel Brobecker <brobecker@adacore.com>
122
123 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
124 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
125 * xcoffread.c (xcoff_get_core_n_import_files): New function.
126 (xcoff_get_n_import_files): New function.
127 * xcoffread.h (xcoffread.h): Add declaration.
128 * rs6000-aix-tdep.c: #include "xcoffread.h".
129 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
130 XCOFF executables that do not depend on any shared library.
131 * rs6000-lynx178-tdep.c: New file.
132 * configure.tgt: Add powerpc-*-lynx*178 handling.
133 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
134 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
135
2a9d5ccf
HZ
1362012-12-18 Hui Zhu <hui_zhu@mentor.com>
137
138 * ui-file.c (ui_file): Add to_fseek.
139 (ui_file_new): Call set_ui_file_fseek.
140 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
141 stdio_file_fseek): New functions.
142 (stdio_file_new): Call set_ui_file_fseek.
143 * ui-file.h (ui_file_fseek_ftype): New typedef.
144 (set_ui_file_fseek, ui_file_fseek): New externs.
145
3f453875
HZ
1462012-12-18 Hui Zhu <hui_zhu@mentor.com>
147
148 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
149 (set_ui_file_isatty): Change isatty to isatty_ptr.
150 (set_ui_file_rewind): Change rewind to rewind_ptr.
151 (set_ui_file_put): Change put to put_ptr.
152 (set_ui_file_write): Change write to write_ptr.
153 (set_ui_file_write_async_safe): Change write_async_safe to
154 write_async_safe_ptr.
155 (set_ui_file_read): Change read to read_ptr.
156 (set_ui_file_fputs): Change fputs to fputs_ptr.
157 (set_ui_file_data): Change delete to delete_ptr.
158
4141a416
JB
1592012-12-18 Joel Brobecker <brobecker@adacore.com>
160
161 * solib-darwin.c (darwin_current_sos): Fix indentation.
162 (darwin_read_exec_load_addr): New function.
163 (darwin_solib_create_inferior_hook): Rebase executable.
164 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
165 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
166
c0fc7f8b
JB
1672012-12-18 Joel Brobecker <brobecker@adacore.com>
168
169 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add errno.
170 * gnulib/import/errno.in.h: Import.
171 * gnulib/import/m4/errno_h.m4: Import.
172 * gnulib/aclocal.m4: Regenerate.
173 * gnulib/configure: Regenerate.
174 * gnulib/import/Makefile.am: Update.
175 * gnulib/import/Makefile.in: Update.
176 * gnulib/import/m4/gnulib-cache.m4: Update.
177 * gnulib/import/m4/gnulib-comp.m4: Update.
178
a512b375
JB
1792012-12-18 Joel Brobecker <brobecker@adacore.com>
180
181 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
182 8d5bd1402003bd0153984b138735adf537d960b0.
183 * gnulib/aclocal.m4, configure, config.in: Regenerate.
184 * gnulib/import/m4/extern-inline.m4: Import.
185 * gnulib/import/wctype-h.c: Import.
186 * gnulib/import/Makefile.am: Update.
187 * gnulib/import/Makefile.in: Update.
188 * gnulib/import/alloca.in.h: Update.
189 * gnulib/import/extra/snippet/warn-on-use.h: Update.
190 * gnulib/import/localcharset.c: Update.
191 * gnulib/import/m4/fcntl-o.m4: Update.
192 * gnulib/import/m4/gnulib-cache.m4: Update.
193 * gnulib/import/m4/gnulib-comp.m4: Update.
194 * gnulib/import/m4/wctype_h.m4: Update.
195 * gnulib/import/stdbool.in.h: Update.
196 * gnulib/import/verify.h: Update.
197 * gnulib/import/wctype.in.h: Update.
198
cc0f0618 1992012-12-18 Joel Brobecker <brobecker@adacore.com>
48c95e5f
JB
200
201 * gnulib/update-gnulib.sh: Add call to autoheader.
202
e4acb24c
TT
2032012-12-17 Tom Tromey <tromey@redhat.com>
204
205 * top.c (xgdb_verbose): Remove.
206
3d745be3
JK
2072012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
208
209 Code cleanup.
210 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
211 unused forward declarations.
212 (skip_file_command): Make variables symtab and filename targets const.
213 Use proper 0 vs. NULL constant everywhere.
214 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
215 Include empty line after declarations. Use GNU spacing in a comment.
216 Do not use strlen for end of string check.
217 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
218 comments.
219 (skip_enable_command, skip_disable_command, skip_delete_command)
220 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
221 (function_pc_is_marked_for_skip): Make variable filename target const.
222 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
223 comment formatting.
224 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
225 NULL constant everywhere. Include empty line after declarations. Make
226 variable symtab target const. Do not use strlen for end of string
227 check.
228
b57a636e
JK
2292012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
230
231 Code cleanup.
232 * breakpoint.c (clear_command): Remove variable sal_name_len and its
233 initialization, remove it from the compare_filenames_for_search call.
234 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
235 name_len and its initialization, remove it from the
236 compare_filenames_for_search calls.
237 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
238 * symtab.c (compare_filenames_for_search): Remove the search_len
239 parameter, update the function comment, new variable search_len
240 initialized from SEARCH_NAME.
241 (iterate_over_some_symtabs): Remove variable name_len and its
242 initialization, remove it from the compare_filenames_for_search calls.
243 * symtab.h (compare_filenames_for_search): Remove the search_len
244 parameter,
245
67c50e6e
JB
2462012-12-16 Joel Brobecker <brobecker@adacore.com>
247
248 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
249 (ALLDEPFILES): ... to there.
250
5d214698
JB
2512012-12-15 Joel Brobecker <brobecker@adacore.com>
252
253 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
254
debb1f09
JB
2552012-12-15 Joel Brobecker <brobecker@adacore.com>
256
257 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
258 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
259 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
260 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
261 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
262 to gdb_target_obs for every target that uses rs6000-tdep.o.
263 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
264 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
265 or register_ppc_ravenscar_ops.
266
c16998a7
JB
2672012-12-15 Joel Brobecker <brobecker@adacore.com>
268
269 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
270 RAVENSCAR_SPARC_THREAD_H.
271 * sparc-ravenscar-thread.c: Rename all global entities
272 whose name is uses "ravenscar_sparc" as the prefix to use
273 "sparc_ravenscar" instead.
274
e6f9c00b
JB
2752012-12-15 Joel Brobecker <brobecker@adacore.com>
276
277 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
278 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
279 Adjust sparc-ravenscar-thread.h #include.
280 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
281 accordingly.
282 * Makefile.in: Replace ravenscar-sparc-thread with
283 sparc-ravenscar-thread throughout.
284 * configure.tgt: Likewise.
285
7e35103a
JB
2862012-12-15 Joel Brobecker <brobecker@adacore.com>
287
e924e903 288 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
7e35103a
JB
289 declaration.
290 (ravenscar_ops): New gdbarch variable.
291 * gdbarch.h, gdbarch.c: Regenerate.
292 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
293 * ravenscar-thread.c (current_arch_ops): Delete.
294 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
295 from the gdbarch.
296 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
297 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
298 (ravenscar_register_arch_ops): Delete.
299 * ravenscar-sparc-thread.h: New file.
300 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
301 (ravenscar_sparc_ops): Define value statically.
302 (_initialize_ravenscar_sparc): Delete.
303 (register_sparc_ravenscar_ops): New function.
304 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
305 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
306 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
307 ravenscar-sparc-thread.o.
308 (SFILES): Add ravenscar-thread.c.
309 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
310 (ALLDEPFILES): ravenscar-sparc-thread.c.
311 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
312 to gdb_target_obs
313 for all the targets that use sparc-tdep.o.
314
25abf4de
JB
3152012-12-15 Joel Brobecker <brobecker@adacore.com>
316
317 * ravenscar-thread.c (ravenscar_is_open): Delete.
318 (ravenscar_initialize): Move most of the code from here...
319 (ravenscar_inferior_created): ... to there. Invert logic.
320 (ravenscar_close): Delete.
321 (init_ravenscar_thread_ops): Remove setting of
322 ravenscar_ops.to_close.
323
3d6e24f0
JB
3242012-12-15 Joel Brobecker <brobecker@adacore.com>
325
326 * objfiles.c (init_entry_point_info): Move function from here...
327 * symfile.c (init_entry_point_info): ... to there. Make static.
328 * objfiles.h (objfiles.h): Delete declaration.
329
36e4d068
JB
3302012-12-15 Joel Brobecker <brobecker@adacore.com>
331
332 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
333 Remove call to init_entry_point_info. Add OBJFILE's
334 section_offsets and num_sections initialization. Add note
335 about entry info in the function documentation.
336 (syms_from_objfile): New function.
337 * coffread.c (coff_symfile_init): Remove call to
338 init_entry_point_info.
339 * machoread.c (macho_symfile_init): Likewise.
340 * xcoffread.c(xcoff_symfile_init): Likewise.
341
c9b6281a
YQ
3422012-12-15 Yao Qi <yao@codesourcery.com>
343
344 * remote-notif.c (_initialize_notif): Add new commands
345 'set debug notification' and 'show debug notification'.
346 * NEWS: Mention these new commands.
347
722247f1
YQ
3482012-12-15 Yao Qi <yao@codesourcery.com>
349
350 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
351 (SFILES): Add "remote-notif.c".
352 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
353 * remote-notif.c: New. Factored out from remote.c.
354 * remote-notif.h: New.
355 * remote.c: Include "remote-notif.h".
356 (stop_reply_xmalloc, do_stop_reply_xfree):
357 (remote_parse_stop_reply, remote_get_pending_stop_replies):
358 (remote_async_get_pending_events_handler): Remove declarations.
359 (remote_parse_stop_reply): Declare.
360 (pending_stop_reply): Remove.
361 (remote_async_get_pending_events_token): Move to
362 remote-notif.c.
363 (remote_close): Replace 'delete_async_event_handler' with
364 remote_notif_unregister_async_event_handler.
365 Don't call discard_pending_stop_replies.
366 (remote_start_remote): Replace code with remote_notif_parse
367 and remote_notif_get_pending_replies.
368 (remote_open_1): Replace 'create_async_event_handler' with
369 remote_notif_register_async_event_handler.
370 (extended_remote_attach_1): Call remote_notif_parse and
371 notif_stop_reply_push.
372 (struct stop_reply) <next>: Remove.
373 <base>: New field.
374 Callers update.
375 (stop_reply_queue): Change its type.
376 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
377 (remote_notif_remove_all): New.
378 (discard_pending_stop_replies): Update.
379 (remote_notif_stop_ack, stop_reply_dtr): New.
380 (remote_notif_stop_alloc_event): New.
381 (notif_client_stop): New variable.
382 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
383 (queued_stop_reply, peek_stop_reply): Adjust.
384 (remote_get_pending_stop_replies): Rename to
385 remote_notif_get_pending_events.
386 (handle_notification): Move to remote-notif.c.
387 (remote_async_get_pending_events_handler): Likewise.
388 (remote_wait_as): Adjust to call remote_notif_parse.
389 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
390 Return minus_one_ptid early if gets a notification.
391 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
392 (_initialize_remote): Call QUEUE_alloc. Update caller.
393 (remote_resume): Call 'remote_notif_process' in all-stop mode.
394 * remote.h: Include "remote-notif.h".
395 (remote_notif_get_pending_replies): Declare.
396
5f4cf0bb
YQ
3972012-12-15 Yao Qi <yao@codesourcery.com>
398
399 * remote.c (discard_pending_stop_replies): Update declaration.
400 (remote_detach_1, extended_remote_mourn_1): Likewise.
401 (discard_pending_stop_replies): Change parameter from PID to
402 INF.
403 (remote_close): Update caller.
404 (_initialize_remote): Attach discard_pending_stop_replies to
405 inferior_exit observer.
406
fee9eda9
YQ
4072012-12-15 Yao Qi <yao@codesourcery.com>
408
409 * remote.c (getpkt_or_notif_sane): Add one more argument in
410 its declaration.
411 (getpkt_or_notif_sane_1): Add one more argument.
412 (getpkt_sane): Update caller.
413 (getpkt_or_notif_sane): Likewise. Update call
414 togetpkt_or_notif_sane_1.
415 (remote_wait_ns): Update caller.
416
dbb0cf06
YQ
4172012-12-15 Yao Qi <yao@codesourcery.com>
418 Doug Evans <dje@google.com>
419
420 * common/queue.h: New.
421
f2a8bc8a
YQ
4222012-12-15 Yao Qi <yao@codesourcery.com>
423
424 * breakpoint.c (print_one_breakpoint_location): Display the
425 state of 'installed' of each non-pending location of a tracepoint
426 in both CLI and MI.
427 (download_tracepoint_locations): Notify 'breakpoint-modified'
428 observer if any tracepoint location is downloaded.
429 * tracepoint.c (start_tracing): Likewise.
430 (merge_uploaded_tracepoints): Record all modified
431 tracepoints and notify 'breakpoint-modified' observer for them.
432
433 * NEWS: Mention the change for CLI and MI.
434
7ed2c994
YQ
4352012-12-15 Yao Qi <yao@codesourcery.com>
436
437 * breakpoint.c (download_tracepoint_locations): Iterate over
438 ALL_TRACEPOINTS first and then iterate over locations of
439 each tracepoint.
440
b25d79d4
PM
4412012-12-14 Pierre Muller <muller@sourceware.org>
442 Pedro Alves <palves@redhat.com>
443
444 * solib-target.c (solib_target_current_sos): Remove 'const'
445 qualifier from type of library_document local variable to be
446 able to free it and avoid a memory leak.
447 Use cleanup chain to avoid leak even if exceptino is generated.
448
6592e36f
TT
4492012-12-14 Tom Tromey <tromey@redhat.com>
450
451 PR c++/8888:
452 * symtab.c (lookup_symbol_aux): If constructor is found, consider
453 returning the type instead.
454 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
455 found.
456
7d27a96d
TT
4572012-12-14 Tom Tromey <tromey@redhat.com>
458
459 Partial fix for PR c++/14160:
460 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
461 * dwarf2read.c (dwarf2_is_constructor): New function.
462 (dwarf2_add_member_fn): Use it.
463 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
464 TYPE_FN_FIELD_CONSTRUCTOR.
465 * jv-typeprint.c (java_type_print_base): Use
466 TYPE_FN_FIELD_CONSTRUCTOR.
467 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
468 <dummy>: Shrink.
469 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
470
1993b719
TT
4712012-12-14 Tom Tromey <tromey@redhat.com>
472
473 * c-exp.y (block, variable, name_not_typename, lex_one_token,
474 classify_name): Update.
475 * c-valprint.c (c_val_print): Update.
476 * f-exp.y (yylex): Update.
477 * go-exp.y (package_name_p, classify_packaged_name)
478 (classify_name): Update.
479 * jv-exp.y (push_variable): Update.
480 * m2-exp.y (variable): Update.
481 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
482 * p-exp.y (block, variable, yylex): Update.
483 * p-valprint.c (pascal_val_print): Update.
484 * parse.c (write_dollar_variable): Update.
485 * printcmd.c (address_info): Update.
486 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
487 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
488 (lookup_symbol): Change type of 'is_a_field_of_this'.
489 (check_field): Add 'is_a_field_of_this' argument.
490 * symtab.h (struct field_of_this_result): New.
491 (lookup_symbol, lookup_symbol_in_language): Update.
492
2dc3df72
TT
4932012-12-14 Tom Tromey <tromey@redhat.com>
494
495 * symtab.c (check_field): Now static. Move from...
496 * valops.c (check_field): ... here. Remove.
497 * value.h (check_field): Don't declare.
498
451b7c33
TT
4992012-12-14 Tom Tromey <tromey@redhat.com>
500
501 * NEWS: Mention "info proc" and core files.
502 * corelow.c (core_info_proc): New function.
503 (init_core_ops): Set to_info_proc.
504 * gdbarch.c, gdbarch.h: Rebuild.
505 * gdbarch.sh (core_info_proc): New method.
506 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
507 * linux-tdep.c (linux_core_info_proc_mappings)
508 (linux_core_info_proc): New functions.
509 (linux_find_memory_region_ftype): New typedef.
510 (linux_find_memory_regions_full): New function, from
511 linux_find_memory_regions.
512 (struct linux_find_memory_regions_data): New.
513 (linux_find_memory_regions_thunk): New function.
514 (linux_find_memory_regions): Rewrite.
515 (struct linux_make_mappings_data): New.
516 (linux_make_mappings_callback)
517 (linux_make_mappings_corefile_notes): New functions.
518 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
519 (linux_init_abi): Call set_gdbarch_core_info_proc.
520 * target.c (target_info_proc): Return 'int'.
521 * target.h (target_info_proc): Update.
522
49dc7f4b
PM
5232012-12-14 Pierre Muller <muller@sourceware.org>
524
525 * windows-nat.c (windows_xfer_shared_libraries): Avoid
526 memory leak when OFFSET >= LEN_AVAIL.
527
e03e6279
TT
5282012-12-13 Tom Tromey <tromey@redhat.com>
529
530 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
531
7b9c0bfb
TT
5322012-12-13 Tom Tromey <tromey@redhat.com>
533
534 * acinclude.m4 (CY_AC_C_WORKS): Remove.
535
d8f4a83e
PM
5362012-12-13 Pierre Muller <muller@sourceware.org>
537
538 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
539 local variable and zero terminate it to avoid possible problems
540 in strcmp.
541
aab2f004
PA
5422012-12-13 Pedro Alves <palves@redhat.com>
543
544 * coff-pe-read.c: Include coff/internal.h.
545 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
546 Null terminate buffer explicitly instead of memset the whole
547 buffer.
548
78ea0eca
PM
5492012-12-13 Pierre Muller <muller@sourceware.org>
550
551 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
552 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
553 for already defined macros.
554
3999122f
PM
5552012-12-13 Pierre Muller <muller@sourceware.org>
556
557 * coff-pe-read.h (pe_text_section_offset): Declare new function.
558 * coff-pe-read.c (debug_coff_pe_read): New static variable.
559 (struct read_pe_section_data): Add section_name field.
560 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
561 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
562 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
563 (get_pe_section_index): New function.
564 (struct pe_sections_info): New type.
565 (get_section_vmas): Use new struct pe_sections_info.
566 (add_pe_exported_sym): Handle unnamed exported function.
567 (add_pe_forwarded_sym): New function.
568 (read_pe_truncate_name): Truncate at last dot.
569 (pe_as16): New function.
570 (read_pe_exported_syms): Use ordinal of function to
571 retrieve correct RVA address of function and handle
572 forwarded symbol.
573 (pe_text_section_offset): New function.
574 (show_debug_coff_pe_read): New function.
575 (_initialize_coff_pe_read): New function adding
576 'set/show debug coff_pe_read' commands.
577
578 * windows-tdep.c (windows_xfer_shared_library): Use
579 pe_text_section_offset function instead of possibly wrong
580 0x1000 constant for .text sextion offset.
581
c9023fb3
PA
5822012-12-13 Pedro Alves <palves@redhat.com>
583
584 * gdbarch.sh (do_read): Set IFS to blank.
585
3fa7bf06
MG
5862012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
587
588 * NEWS: Mention the -catch-load/-catch-unload MI commands.
589
91985142 5902012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
f87e3f15 591
91985142
MG
592 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
593 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
594 * breakpoint.c (add_solib_catchpoint): New function that
595 can be used by both CLI and MI, factored out from
596 catch_load_or_unload.
597 (catch_load_or_unload): Strip it down and make it use the
598 new add_solib_catchpoint.
599 * breakpoint.h (add_solib_catchpoint): Declare it.
600 * mi/mi-cmd-break.h: New file.
601 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
602 (setup_breakpoint_reporting): New function used for both
603 catchpoints and breakpoints.
604 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
605 * mi/mi-cmd-catch.c: New file.
606 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
607 and -catch-unload.
608 * mi/mi-cmds.h: Declare the handlers for -catch-load and
609 -catch-unload.
610
5c80ed9d
TT
6112012-11-28 Tom Tromey <tromey@redhat.com>
612
613 * dbxread.c (read_dbx_symtab): Update.
614 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
615 (read_ofile_symtab): Add 'objfile' argument.
616 * dwarf2read.c (process_psymtab_comp_unit_reader)
617 (build_type_psymtabs_reader): Update.
618 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
619 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
620 argument.
621 (parse_procedure, parse_partial_symbols): Update.
622 (psymtab_to_symtab_1): Add 'objfile' argument.
623 * psympriv.h (struct partial_symtab) <objfile>: Remove.
624 <read_symtab>: Add 'objfile' argument.
625 (sort_pst_symbols, discard_psymtab): Update.
626 * psymtab.c (partial_map_expand_apply): Update.
627 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
628 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
629 (find_pc_sect_psymbol): Add 'objfile' argument.
630 (lookup_symbol_aux_psymtabs): Update.
631 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
632 Add 'objfile' argument.
633 (find_last_source_symtab_from_partial, dump_psymtab)
634 (dump_psymtabs_for_objfile, read_symtabs_for_function)
635 (expand_partial_symbol_tables, read_psymtabs_with_filename)
636 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
637 (expand_symtabs_matching_via_partial): Update.
638 (sort_pst_symbols): Add 'objfile' argument.
639 (allocate_psymtab): Update.
640 (discard_psymtab): Add 'objfile' argument.
641 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
642 * stabsread.h (end_psymtab): Update.
643 * xcoffread.c (this_symtab_objfile): New global.
644 (process_linenos, enter_line_range, xcoff_next_symbol_text):
645 Update.
646 (read_xcoff_symtab): Add 'objfile' argument.
647 (read_symbol, read_symbol_lineno): Update.
648 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
649 (xcoff_end_psymtab): Add 'objfile' argument.
650 (scan_xcoff_symtab): Update.
651
9a27f2c6
PK
6522012-12-12 Paul Koning <paul_koning@dell.com>
653
654 Add support for Python 3.
655 * NEWS: Mention Python 3 support.
656 * varobj.c (value_get_print_value): Use
657 python_string_to_target_string.
658 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
659 of type objects.
660 * python/py-breakpoint.c: Ditto.
661 * python/py-cmd.c: Ditto.
662 * python/py-event.c: Ditto.
663 * python/py-event.h: Ditto.
664 * python/py-evtregistry.c: Ditto.
665 * python/py-finishbreakpoint.c: Ditto.
666 * python/py-frame.c: Ditto.
667 * python/py-function.c: Ditto.
668 * python/py-infthread.c: Ditto.
669 * python/py-lazy-string.c: Ditto.
670 * python/py-progspace.c: Ditto.
671 * /python/py-symbol.c: Ditto.
672 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
673 initialization for Python 3.
674 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
675 of type objects.
676 (infpy_read_memory): Return memoryview object if Python 3.
677 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
678 (infpy_search_memory): Ditto.
679 (get_buffer): New function for Python 3.
680 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
681 of type objects.
682 (objfpy_dealloc): Use Py_TYPE to call tp_free.
683 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
684 of type objects.
685 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
686 (set_attr): Ditto.
687 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
688 instead of PyString methods if Python 3.
689 (print_children): Skip push_dummy_python_frame call if Python 3.
690 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
691 of type objects.
692 (salpy_dealloc): Use Py_TYPE to call tp_free.
693 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
694 of type objects.
695 (field_dealloc): Use Py_TYPE to call tp_free.
696 (typy_dealloc): Ditto.
697 (type_object_as_number): Adjust struct initializations for
698 differences in layout for Python 2 vs. Python 3.
699 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
700 string case for Python 3.
701 (unicode_to_encoded_python_string): Shorten code (no functional
f87e3f15 702 change).
9a27f2c6
PK
703 (python_string_to_target_python_string): Comment that in Python 3
704 returned value is a Python "bytes" type.
705 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
706 (gdb_py_object_from_longest): Omit non-long integer case in Python
707 3.
708 (gdb_py_object_from_ulongest): Ditto.
709 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
710 of type objects.
711 (valpy_dealloc): Use Py_TYPE to call tp_free.
712 (valpy_int): Omit function if Python 3.
713 (convert_value_from_python): Use "%S" format (Python object as a
714 string) if Python 3.
715 (value_object_as_number): Adjust struct initializations for
716 differences in layout for Python 2 vs. Python 3.
717 * python/python-config.py: Adjust syntax for Python 3
f87e3f15 718 compatibility.
9a27f2c6
PK
719 Include "sys.abiflags" string as part of python library name, if
720 that attribute exists (Python 3).
721 * python/python-internal.h (IS_PY3): Define if Python 3.
722 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
723 placeholder value if Python 3.
724 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
725 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
726 analogous Python 3 API function if Python 3.
727 (PyVarObject_HEAD_INIT): Define if not already defined.
728 (Py_TYPE): Ditto.
729 * python/python.c (eval_python_command): Omit Py_FlushLine call if
730 Python 3.
731 Check return values of all Python API calls for error.
732 Supply dummy "python" and "python-interactive" commands if Python
733 initialization failed.
734 (_initialize_python): Convert argc to wchar_t** if Python 3.
735 Add module initialization for Python 3.
736 (finish_python_initialization): Pass wchar_t * argument to
737 PySys_SetPath if Python 3.
738 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
739 (_GdbFile): New class for common output file behavior.
740 (GdbOutFile): Subclass from _GdbFile.
741 (GdbOutputErrorFile): Ditto.
742 (auto_load_packages): Adjust syntax for Python 3 compatibility.
743 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
744 * python/lib/gdb/prompt.py: Use sorted() function rather than
745 sort() method.
746 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
747 Adjust syntax for Python 3 compatibility.
748 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
749 rather than sort() method.
750 Adjust syntax for Python 3 compatibility.
751 * python/lib/gdb/command/type_printers.py: Ditto.
752 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
753 value is a memoryview object if Python 3.
754
b8b98ad1
TT
7552012-12-12 Tom Tromey <tromey@redhat.com>
756
757 * coffread.c (coff_objfile_data_key): New global.
758 (coff_symfile_init): Use set_objfile_data.
759 (coff_symfile_read): Use objfile_data.
760 (coff_symfile_finish): Don't free deprecated_sym_private.
761 (coff_free_info): New function.
762 (_initialize_coffread): Initialize coff_objfile_data_key.
763 * mdebugread.c (pending_list): Update comment.
764 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
765 * symfile.c (reread_symbols): Don't mention
766 deprecated_sym_private.
767 * xcoffread.c (xcoff_objfile_data_key): New global.
768 (XCOFF_DATA): New macro.
769 (process_linenos, enter_line_range, xcoff_next_symbol_text)
770 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
771 XCOFF_DATA.
772 (xcoff_new_init) Use set_objfile_data.
773 (xcoff_symfile_finish): Don't free deprecated_sym_private.
774 (init_stringtab, swap_sym, scan_xcoff_symtab)
775 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
776 (xcoff_free_info): New function.
777 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
778
afedb563
MG
7792012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
780
781 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
782
d2f4b8fe
TT
7832012-12-12 Tom Tromey <tromey@redhat.com>
784
785 * coffread.c (coff_symfile_init): Use set_objfile_data.
786 (coff_symfile_read): Use DBX_SYMFILE_INFO.
787 * dbxread.c (dbx_objfile_data_key): New global.
788 (dbx_symfile_init): Use set_objfile_data.
789 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
790 (dbx_free_symfile_info): New function.
791 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
792 DBX_SYMFILE_INFO.
793 (stabsect_build_psymtabs): Use set_objfile_data.
794 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
795 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
796 set_objfile_data.
797 (free_elfinfo): Use DBX_SYMFILE_INFO.
798 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
799 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
800 * gdb-stabs.h (dbx_objfile_data_key): Declare.
801 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
802 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
803 * somread.c (som_symfile_finish): Don't free
804 deprecated_sym_stab_info.
805
6f112b18
JB
8062012-12-12 Joel Brobecker <brobecker@adacore.com>
807
808 * gdbarch.sh (software_single_step): Remove trailing space in
809 comment (gdbarch.h is already correct).
810
8d2cc612
TT
8112012-12-11 Tom Tromey <tromey@redhat.com>
812
813 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
814
735522c2
TT
8152012-12-11 Tom Tromey <tromey@redhat.com>
816
817 * dsrec.c (report_transfer_performance): Don't declare.
818 (load_srec): Use gettimeofday, print_transfer_performance.
819 * symfile.c (report_transfer_performance): Remove.
820
3e3420f6
PA
8212012-12-11 Pedro Alves <pedro@codesourcery.com>
822 Pedro Alves <palves@redhat.com>
823
824 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
825 NT_PSTATUS note.
826 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
827 differently from LWP IDs.
828
05b4bd79
PA
8292012-12-11 Pedro Alves <palves@redhat.com>
830
831 * configure.ac (detect type of /proc): Remove Unixware handling.
832 * configure: Regenerate.
833 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
834 (ioctl_table) [PCRESET]: Remove entry.
835 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
836 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
837 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
838 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
839 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
840 Unixware in comments throughout.
841 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
842 and remove mention of Unixware.
843
072cabfe
DE
8442012-12-10 Doug Evans <dje@google.com>
845
ab435259
DE
846 * dwarf2read.c (dwarf2_cu): Enhance comment.
847 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
848 the DWO file.
849 (dwarf2_record_block_ranges): Ditto.
850
c766f7ec
DE
851 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
852
072cabfe
DE
853 * symtab.c (find_pc_sect_symtab): Add comment.
854
660ff106
TT
8552012-12-10 Tom Tromey <tromey@redhat.com>
856
857 * defs.h: Don't check for definition of LONGEST.
858 (min, max): Remove duplicates.
859
8b9737bf
TT
8602012-12-10 Tom Tromey <tromey@redhat.com>
861
862 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
863 (dwarf2_fetch_die_loc_cu_off): Rename from
864 dwarf2_fetch_die_location_block. Rewrite to use
865 dwarf2_fetch_die_loc_sect_off.
866 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
867 (dwarf2_fetch_die_loc_cu_off): Rename.
868 * dwarf2loc.c (indirect_pieced_value): Use
869 dwarf2_fetch_die_loc_sect_off.
870 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
871 comment.
872 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
873 * dwarf2expr.c (add_piece): Update.
874 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
875
93eed41f
TT
8762012-12-10 Tom Tromey <tromey@redhat.com>
877
878 * buildsym.c (struct pending_block): Move from buildsym.h.
879 (pending_blocks): Likewise; now static.
880 (pending_block_obstack): New global.
881 (free_pending_blocks): Free blocks.
882 (record_pending_block): Use pending_block_obstack.
883 * buildsym.h (struct pending_block): Move definition to
884 buildsym.c.
885 (pending_blocks): Don't declare.
886
d2e5c99a
PA
8872012-12-10 Pedro Alves <palves@redhat.com>
888
889 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
890 dead SCO code, and adjust function description comment.
891
74a0d9f6
JK
8922012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
893
894 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
895 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
896 CC_HAS_LONG_LONG.
897 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
898 * dwarf2read.c (extract_cu_value): Remove the function.
899 (create_cus_from_index_list): Make the return type void, inline the
900 extract_cu_value caller, include new gdb_static_assert.
901 (create_cus_from_index): Make the return type void, update the function
902 comment, update the create_cus_from_index_list caller.
903 (create_signatured_type_table_from_index): Make the return type void,
904 inline the extract_cu_value caller, include new gdb_static_assert.
905 (dwarf2_read_index): Update the create_cus_from_index and
906 create_signatured_type_table_from_index caller.
907 * printcmd.c (ui_printf): Remove conditionalizations for
908 CC_HAS_LONG_LONG.
909 * config.in: Regenerate.
910 * configure: Regenerate.
911
1b80a9fa
JK
9122012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
913
914 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
915 Update the comment for checked_producer.
916 (check_producer): New forward declaration.
917 (producer_is_gcc_lt_4_3): New function.
918 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
919 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
920
2f68a895
TT
9212012-12-07 Tom Tromey <tromey@redhat.com>
922
923 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
924 argument, assertion.
925 * c-exp.y (typebase): Add completion productions.
926 * completer.c (expression_completer): Handle tag completion.
927 * expression.h (parse_expression_for_completion): Add argument.
928 * f-lang.c (f_make_symbol_completion_list): Add 'code'
929 argument.
930 * language.h (struct language_defn)
931 <la_make_symbol_completion_list>: Add 'code' argument.
932 * parse.c (expout_tag_completion_type, expout_completion_name):
933 New globals.
934 (mark_struct_expression): Add assertion.
935 (mark_completion_tag): New function.
936 (parse_exp_in_context): Initialize new globals.
937 (parse_expression_for_completion): Add 'code' argument. Handle
938 tag completion.
939 * parser-defs.h (mark_completion_tag): Declare.
940 * symtab.c (default_make_symbol_completion_list_break_on): Add
941 'code' argument. Update.
942 (default_make_symbol_completion_list): Add 'code' argument.
943 (make_symbol_completion_list): Update.
944 (make_symbol_completion_type): New function.
945 * symtab.h (default_make_symbol_completion_list_break_on)
946 (default_make_symbol_completion_list): Update.
947 (make_symbol_completion_type): Declare.
948
155da517
TT
9492012-12-07 Tom Tromey <tromey@redhat.com>
950
951 * expression.h (parse_expression_for_completion): Rename
952 from parse_field_expression.
953 (parse_completion): Rename from in_parse_field.
954 * c-exp.y (lex_one_token): Update.
955 * completer.c (expression_completer): Update.
956 * go-exp.y (lex_one_token): Update.
957 * p-exp.y (yylex): Update.
958 * parse.c (parse_completion): Rename from in_parse_field.
959 (parse_exp_in_context): Update.
960 (parse_expression_for_completion): Rename from
961 parse_field_expression. Update.
962
4fc5d43e
TT
9632012-12-07 Tom Tromey <tromey@redhat.com>
964
965 * typeprint.c (_initialize_typeprint): Set completer
966 for "whatis" and "ptype".
967
ab39020b
JB
9682012-12-07 Joel Brobecker <brobecker@adacore.com>
969
970 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
971 "sim/common/cgen-fpu.h". Remove invalid entries
972 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
973 which actually have an FSF copyright header.
974
2cb50f9d
JB
9752012-12-07 Joel Brobecker <brobecker@adacore.com>
976
977 * osf-share/AT386/cma_thread_io.h: Delete.
978 * osf-share/HP800/cma_thread_io.h: Delete.
979 * osf-share/README: Delete.
980 * osf-share/RIOS/cma_thread_io.h: Delete.
981 * osf-share/cma_attr.h: Delete.
982 * osf-share/cma_deb_core.h: Delete.
983 * osf-share/cma_debug_client.h: Delete.
984 * osf-share/cma_errors.h: Delete.
985 * osf-share/cma_handle.h: Delete.
986 * osf-share/cma_init.h: Delete.
987 * osf-share/cma_list.h: Delete.
988 * osf-share/cma_mutex.h: Delete.
989 * osf-share/cma_sched.h: Delete.
990 * osf-share/cma_semaphore_defs.h: Delete.
991 * osf-share/cma_sequence.h: Delete.
992 * osf-share/cma_stack.h: Delete.
993 * osf-share/cma_stack_int.h: Delete.
994 * osf-share/cma_tcb_defs.h: Delete.
995 * osf-share/cma_util.h: Delete.
996 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
997 in osf-share.
998 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
999 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
1000 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
1001
0ba2eb0f
TT
10022012-12-06 Pedro Alves <palves@redhat.com>
1003 Tom Tromey <tromey@redhat.com>
1004
1005 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
1006
731145cb
TT
10072012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
1008
1009 PR mi/14741:
1010 * mi/mi-cmd-var.c (varobj_update_one): Take value of
1011 attribute "dynamic" and "displayhint" from printed child,
1012 not the root variable.
1013
eff44fea
JB
10142012-12-06 Joel Brobecker <brobecker@adacore.com>
1015
1016 * aix-thread.c (getthrds): Fix type of 4th parameter.
1017 (get_signaled_thread): Change type of variable ktid to tid_t.
1018
c90a0773
HZ
10192012-12-06 Hui Zhu <hui_zhu@mentor.com>
1020
1021 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
1022 value of get_frame_block.
1023
5bc81a00
PM
10242012-12-05 Pierre Muller <muller@sourceware.org>
1025
1026 Avoid memory leaks on struct cmd_list_element.doc field.
1027 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
1028 if flags contains DOC_ALLOCATED.
1029 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
1030 flags.
1031 (delete_cmd): Handle DOC_ALLOCATED flag.
1032 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
1033 in flags filed of struct cmd_list_element.
1034 (struct cmd_list_element): Document new flag item.
1035
b5ebcee6
DE
10362012-12-04 Doug Evans <dje@google.com>
1037
1038 * symmisc.c: Whitespace fixes.
1039
56bf0743
KB
10402012-12-04 Karthik Bhat <kv.bhat@samsung.com>
1041
1042 * i386-tdep.c (i386_skip_prologue): Using symbol table
1043 to find the end of prologue for clang compiled binaries.
1044 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
1045 to find the end of prologue for clang compiled binaries.
1046
56e64610
DE
10472012-12-03 Doug Evans <dje@google.com>
1048
1049 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
1050 (dw2_find_symbol_file): Delete unused local file_data.
1051
270140bd
TT
10522012-12-03 Tom Tromey <tromey@redhat.com>
1053
1054 * ada-exp.y (write_object_renaming, write_var_or_type)
1055 (write_ambiguous_var, write_var_from_sym): Make blocks const.
1056 * ada-lang.c (replace_operator_with_call)
1057 (find_old_style_renaming_symbol): Make blocks const.
1058 * ada-lang.h (ada_find_renaming_symbol): Update.
1059 (struct ada_symbol_info) <block>: Now const.
1060 * breakpoint.c (watch_command_1): Update.
1061 * breakpoint.h (struct watchpoint) <exp_valid_block,
1062 cond_exp_valid_block>: Now const.
1063 * c-exp.y (classify_inner_name, classify_name): Make block
1064 argument const.
1065 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
1066 const.
1067 * expression.h (innermost_block, parse_exp_1): Update.
1068 (union exp_element) <block>: Now const.
1069 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
1070 (lookup_struct): Make block argument const.
1071 * gdbtypes.h (lookup_template_type): Update.
1072 * go-exp.y (classify_name, classify_packaged_name)
1073 (package_name_p): Make block argument const.
1074 * objc-lang.c (lookup_struct_typedef): Make block argument const.
1075 * objc-lang.h (lookup_struct_typedef): Update.
1076 * parse.c (parse_exp_in_context, parse_exp_1)
1077 (write_exp_elt_block): Make block arguments const.
1078 (expression_context_block, innermost_block): Now const.
1079 * parser-defs.h (write_exp_elt_block): Update.
1080 (expression_context_block, innermost_block, block_found): Now
1081 const.
1082 * printcmd.c (struct display) <block>: Now const.
1083 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
1084 * valops.c (address_of_variable): Make block argument const.
1085 * value.h (value_of_variable): Update.
1086 * varobj.c (struct varobj_root) <valid_block>: Now const.
1087
31f56a27
YQ
10882012-11-30 Yao Qi <yao@codesourcery.com>
1089
1090 * breakpoint.c (print_one_breakpoint_location): Indent code.
1091
556ec64d
YQ
10922012-11-30 Yao Qi <yao@codesourcery.com>
1093
1094 * breakpoint.c (print_one_breakpoint_location): Combine two
1095 blocks handling 'hit count' together.
1096
3d3fef6b
YQ
10972012-11-30 Yao Qi <yao@codesourcery.com>
1098
1099 * infrun.c (error_is_running, ensure_not_running): Move them
1100 to ...
1101 * infcmd.c (error_is_running, ensure_not_running): ... here.
1102 Make them 'static'.
1103 * inferior.h: Remove declarations of error_is_running and
1104 ensure_not_running.
1105
7cd12a76
YQ
11062012-11-30 Yao Qi <yao@codesourcery.com>
1107
1108 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
1109 check REGNUM >= 0.
1110
7a76f5b8
YQ
11112012-11-30 Yao Qi <yao@codesourcery.com>
1112
1113 * infrun.c: Make the declaration of 'init_infwait_state'
1114 static.
1115 (init_infwait_state): Make it 'static'.
1116
b1209b03
UW
11172012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1118
1119 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1120 return value to void to avoid compiler warning.
1121
ea5e6b0e
UW
11222012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
1123
1124 * opencl-lang.c (opencl_print_type): New function.
1125 (opencl_language_arch_info): Install it.
1126
a93478ea
TT
11272012-11-29 Tom Tromey <tromey@redhat.com>
1128
1129 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1130 xvasprintf.
1131 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1132 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1133
ac4a2da4
JG
11342012-11-29 Jerome Guitton <guitton@adacore.com>
1135
1136 * ada-lang.c (ada_is_interface_tag): New function.
1137 (ada_is_ignored_field): Add interface tags to the list
1138 of ignored fields.
1139
b50d69b5
JG
11402012-11-29 Jerome Guitton <guitton@adacore.com>
1141
f87e3f15 1142 * ada-lang.h (ada_tag_value_at_base_address): New function
b50d69b5
JG
1143 declaration.
1144 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1145 New functions.
1146 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1147 relocate the class-wide value if need be.
1148 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1149 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1150 before dereferencing it.
1151 * ada-valprint.c (ada_val_print_1): Relocate to base address
1152 before displaying the content of an interface-wide ref.
1153
ca1f964d
JG
11542012-11-29 Jerome Guitton <guitton@adacore.com>
1155
1156 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1157
38d03cf1 11582012-11-29 Joel Brobecker <brobecker@adacore.com>
1159
1160 GDB 7.5.1 released.
1161
f5682501
YQ
11622012-11-29 Yao Qi <yao@codesourcery.com>
1163 Tom Tromey <tromey@redhat.com>
1164
1165 * eval.c (evaluate_subexp_standard): Get the correct pointer
1166 type for TYPE_CODE_MEMBERPTR.
1167
f359d716
EBM
11682012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
1169
1170 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1171 since now it is being done by binutils' powerpc_init_dialect().
1172
0cd61f44
TT
11732012-11-28 Tom Tromey <tromey@redhat.com>
1174
1175 PR gdb/14290:
1176 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1177 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1178 Use it.
1179 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1180 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1181 (gdb_bfd_openr_next_archived_file): Use it.
1182
02d403bf 11832012-11-28 Markus Metzger <markus.t.metzger@intel.com>
945bf713
MM
1184
1185 * configure.ac: Check for linux/perf_event.h.
1186 * config.in: Regenerated.
1187 * configure: Regenerated.
1188
7e20dfcd
YQ
11892012-11-28 Yao Qi <yao@codesourcery.com>
1190
1191 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1192 abbreviate 'delete tracepoints' to 'delete tr'.
1193 * corefile.c (_initialize_core): Call add_alias_cmd to
1194 abbreviate 'set gnutarget' to 'set g'.
1195 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1196 'show convenience' to 'show conv'.
1197
b8293cc8
JB
11982012-11-27 Joel Brobecker <brobecker@adacore.com>
1199
1200 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1201 call to sparc_supply_fpregset.
1202 (fill_fpregset): Fix first parameter in call to
1203 sparc_collect_fpregset.
1204
8c2b9656
YQ
12052012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1206 Kazu Hirata <kazu@codesourcery.com>
1207 Yao Qi <yao@codesourcery.com>
1208
1209 * objfiles.c (init_entry_point_info): Call
1210 gdbarch_convert_from_func_ptr_addr and
1211 gdbarch_addr_bits_remove here ...
1212 (entry_point_address_query): ... instead of here.
1213 * solib-svr4.c (exec_entry_point): Call
1214 gdbarch_addr_bits_remove.
1215 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1216 the entry address.
1217
5edf51fe
YQ
12182012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1219 Yao Qi <yao@codesourcery.com>
1220
1221 * eval.c (evaluate_subexp_standard): Add handling of
1222 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1223 result of ptype for calling a TYPE_CODE_METHODPTR.
1224
ca242aad
YQ
12252012-11-27 Yao Qi <yao@codesourcery.com>
1226
1227 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1228 warning.
1229 Add i18n markup.
1230
608e2dbb
TT
12312012-11-26 Alexander Larsson <alexl@redhat.com>
1232 Jan Kratochvil <jan.kratochvil@redhat.com>
1233 Tom Tromey <tromey@redhat.com>
1234
1235 * NEWS: Mention mini debuginfo feature.
1236 * minidebug.c: New file.
1237 * configure.ac: Check for lzma.
1238 * configure, config.in: Rebuild.
1239 * Makefile.in (LIBLZMA): New variable.
1240 (CLIBS): Include LIBLZMA.
1241 (SFILES): Mention minidebug.c.
1242 (COMMON_OBS): Mention minidebug.o.
1243 * symfile.c (read_symbols): New function.
1244 (syms_from_objfile, reread_symbols): Call it.
1245 * symfile.h (find_separate_debug_file_in_section): Declare.
1246
17d6efc4
JB
12472012-11-26 Keith Seitz <keiths@redhat.com>
1248
1249 * exec.c (exec_file_attach): Move cleanup after verifying that
1250 memory has in fact been allocated.
1251
210bbc17
TT
12522012-11-26 Tom Tromey <tromey@redhat.com>
1253
1254 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1255 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1256 SYMBOL_SYMTAB.
1257 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1258
0270a750
PA
12592012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1260 Pedro Alves <palves@redhat.com>
1261
1262 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1263 size parameter passed to readlink by one byte.
1264 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1265 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1266 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1267 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1268 size by one byte.
1269
9c16be9a
YQ
12702012-11-26 Yao Qi <yao@codesourcery.com>
1271
1272 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1273 extraneous parentheses.
1274
e6f3fa52
YQ
12752012-11-26 Yao Qi <yao@codesourcery.com>
1276
1277 * remote.c (remote_start_remote): Typo fix.
1278
db75c717
DM
12792012-11-23 David S. Miller <davem@davemloft.net>
1280
1281 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1282 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1283 sparc32_sol2_fpregset): Declare new globals.
1284 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1285 'fpregset' argument.
1286 * sparc64-tdep.h (sparc64_supply_fpregset,
1287 sparc64_collect_fpregset): Likewise.
1288 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1289 globals.
1290 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1291 (sparc_fpregset): Declare new global.
1292 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1293 'fpregset' argument.
1294 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1295 into handler.
1296 (fill_fpregset): Likewise.
1297 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1298 sparc32_bsd_fpregset.
1299 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1300 sparc32_bsd_fpregset down into handler.
1301 (sparc32_linux_collect_core_fpregset): Likewise.
1302 * sparc-nat.c (sparc_fpregset): Define.
1303 (sparc_supply_fpregset): Add 'fpregset' argument.
1304 (sparc_collect_fpregset): Likewise.
1305 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1306 into fpregset handler.
1307 (sparc_store_inferior_registers): Likewise.
1308 (_initialize_sparc_nat): Set sparc_fpregset to
1309 sparc32_sunos4_fpregset if NULL.
1310 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1311 down into handler.
1312 (fill_fpregset): Likewise.
1313 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1314 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1315 use it to compute offsets.
1316 (sparc32_collect_fpregset): Likewise.
1317 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1318 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1319 down into handler.
1320 (fill_fpregset): Likewise.
1321 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1322 Likewise.
1323 (sparc64_linux_collect_core_fpregset): Likewise.
1324 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1325 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1326 use it to compute offsets.
1327 (sparc64_collect_fpregset): Likewise.
1328 (sparc64_bsd_fpregset): Define.
1329 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1330 sparc64_bsd_fpregset down into handler.
1331 (sparc64fbsd_collect_fpregset): Likewise.
1332 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1333 and pass sparc{32,64}_bsd_fpregset down into handler.
1334 (sparc64nbsd_collect_fpregset): Likewise.
1335 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1336 sparc64_bsd_fpregset down into handler.
1337 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1338 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1339 to sparc32_bsd_fpregset.
1340 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1341 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1342 (sparc32nbsd_supply_fpregset): Likewise.
1343
cfcad218
TT
13442012-11-21 Tom Tromey <tromey@redhat.com>
1345
1346 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1347 field.
1348 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1349 Remove.
1350 * c-typeprint.c (c_type_print_base): Update.
1351
85ddcc70
YQ
13522012-11-21 Yao Qi <yao@codesourcery.com>
1353
1354 PR tdep/7438
1355 * gdbarch.sh (smash_text_address): Remove.
1356 * gdbarch.c, gdbarch.h: Regenerate.
1357 * arm-tdep.c (arm_smash_text_address): Remove.
1358 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1359 * hppa-tdep.c (hppa_smash_text_address): Remove.
1360 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1361 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1362 Caller update.
1363 * coffread.c (coff_symtab_read): Caller update.
1364 * dbxread.c (process_one_symbol): Likewise.
1365 * elfread.c (record_minimal_symbol): Likewise.
1366 * somread.c (som_symtab_read): Likewise.
1367
11522069
PM
13682012-11-20 Pierre Muller <muller@sourceware.org>
1369
1370 ARI fixes: sprintf rule.
1371 Replace sprintf function calls for char arrays by
1372 calls to xsnprintf calls.
1373 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1374 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1375 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1376 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1377 * breakpoint.c (condition_completer): Ditto.
1378 (create_tracepoint_from_upload): Ditto.
1379 * dwarf2read.c (file_full_name): Ditto.
1380 * gcore.c (gcore_command): Ditto.
1381 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1382 * go32-nat.c (go32_sysinfo): Ditto.
1383 * interps.c (interp_set): Ditto.
1384 * m32c-tdep.c (make_types): Ditto.
1385 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1386 * remote-m32r-sdi.c (m32r_open): Ditto.
1387 * sol-thread.c (td_err_string): Ditto.
1388 (td_state_string, solaris_pid_to_str): Ditto.
1389 * symtab.c (gdb_mangle_name): Ditto.
1390 * cli/cli-script.c (execute_control_command): Ditto.
1391 (define_command, document_command): Ditto.
1392 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1393 * tui/tui-stack.c (tui_make_status_line): Ditto.
1394 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1395
ace21957
MF
13962012-11-20 Mike Frysinger <vapier@gentoo.org>
1397
1398 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1399 it when looking at ptr->func.
1400 * command.h (complete_on_cmdlist): Add a fourth arg.
1401 * completer.c (complete_line_internal): Add local ignore_help_classes,
1402 and set it to 1 when reason is not handle_help. Pass this down to
1403 lookup_cmd_1 and complete_on_cmdlist.
1404
ec6632d7
TT
14052012-11-20 Tom Tromey <tromey@redhat.com>
1406
1407 * completer.c (count_struct_fields): Remove.
1408 (expression_completer): Don't call count_struct_fields.
1409
ef37bb07
PA
14102012-11-20 Pedro Alves <palves@redhat.com>
1411
1412 * annotate.c (breakpoints_changed): Rename to ...
1413 (annotate_breakpoints_changed): ... this.
1414 (annotate_stopped, breakpoint_changed): Adjust caller.
1415 * annotate.h (breakpoints_changed): Rename to ...
1416 (annotate_breakpoints_changed): ... this.
1417 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1418 (do_map_commands_command, init_raw_breakpoint, clear_command)
1419 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1420
b245bdfc
DM
14212012-11-20 David S. Miller <davem@davemloft.net>
1422
1423 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1424 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1425 sysconf.
1426 (get_cores_used_by_process): Update comment.
1427
bd0cfc4d
YQ
14282012-11-20 Yao Qi <yao@codesourcery.com>
1429
1430 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1431
de9f1b68
YQ
14322012-11-20 Yao Qi <yao@codesourcery.com>
1433
1434 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1435 to deprecated_context_hook.
1436
8870954f
YQ
14372012-11-19 Yao Qi <yao@codesourcery.com>
1438
1439 * infrun.c (infwait_state): Add static.
1440
8dea366b
KS
14412012-11-16 Keith Seitz <keiths@redhat.com>
1442
1443 PR c++/13615
1444 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1445 parameter and pass it to lookup_symbol_file.
1446 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1447 to search base classes.
1448 (cp_lookup_symbol_namespace): Likewise.
1449 (lookup_namespace_scope): Likewise.
1450 (lookup_symbol_file): Add SEARCH parameter.
1451 If SEARCH is non-zero and no symbol is found, lookup the class
1452 and call cp_lookup_nested_symbol.
1453 (find_symbol_in_baseclass): New function.
1454 (cp_lookup_nested_symbol): Do not let
1455 cp_lookup_symbol_in_namespace search through base classes.
1456 Do that later when there is no global symbol match.
1457
e64e0392
DE
14582012-11-16 Doug Evans <dje@google.com>
1459
1460 * main.c (gdb_datadir_provided): New static global.
1461 (get_init_files): If --data-directory is provided,
1462 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1463 * NEWS: Mention it.
1464
8bdce1ff
PM
14652012-11-15 Pierre Muller <muller@sourceware.org>
1466
1467 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1468 * gdb_stat.h: Delete. Moved to common directory.
1469 * common/gdb_stat.h: New file.
1470 * gdb_wait.h: Delete. Moved to common directory.
1471 * common/gdb_wait.h: New file.
1472 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1473 location.
1474 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1475 location.
1476 (stat.h rule): Adapt to new gdb_stat.h location.
1477 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1478 <sys/stat.h> header.
1479 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1480 <sys/wait.h> header.
1481
3a731e0f
PM
14822012-11-15 Pierre Muller <muller@sourceware.org>
1483
1484 * configure.ac (AC_HEADER_STAT): Remove.
1485 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1486 and corresponding code.
1487 * configure: Regenerate.
1488 * config.in: Regenerate.
1489
2792b94d
PM
14902012-11-15 Pierre Muller <muller@sourceware.org>
1491
1492 ARI xasprintf rule fixes.
1493 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1494 instead of xasprintf.
1495 (open_and_init_dwp_file): Ditto.
1496
5e34c6c3
LM
14972012-11-14 Luis Machado <lgustavo@codesourcery.com>
1498
1499 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1500 target types.
1501
e68227b9
TT
15022012-11-14 Tom Tromey <tromey@redhat.com>
1503
1504 * configure, config.in: Rebuild.
1505 * configure.ac: Don't check for ctype.h, time.h.
1506 * expprint.c: Don't use HAVE_CTYPE_H.
1507
aff68abb
TT
15082012-11-13 Tom Tromey <tromey@redhat.com>
1509
1510 * gdbarch.h, gdbarch.c: Rebuild.
1511 * gdbarch.sh (set_target_gdbarch): Rename from
1512 deprecated_target_gdbarch_select_hack.
1513 * arch-utils.c (gdbarch_update_p): Update.
1514 (set_gdbarch_from_file): Update.
1515
84277139 15162012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
1517
1518 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1519 as responsible of contrib/ari directory.
1520
2ae28aa9
YQ
15212012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1522 Yao Qi <yao@codesourcery.com>
1523
1524 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1525 bit of EXC_RETURN.
1526 (arm_m_exception_cache, arm_m_exception_this_id)
1527 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1528 (arm_m_exception_unwind): New.
1529 (arm_gdbarch_init): Register arm_m_exception_unwind.
1530
62747a60
TT
15312012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1532
1533 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1534 parameter COUNT, for pattern filling of memory regions.
1535 * NEWS: Mention it.
1536
02d403bf 15372012-11-13 Markus Metzger <markus.t.metzger@intel.com>
4cd29721
MM
1538
1539 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1540 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1541 to print_source_lines ().
1542 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1543 flag.
1544 * source.c (print_source_lines_base): Prefix source line with
1545 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1546
02d403bf 15472012-11-13 Markus Metzger <markus.t.metzger@intel.com>
dfaae886
MM
1548
1549 * symtab.h (print_source_lines_flags): New enum.
1550 * source.c (print_source_lines_base): Change noerror to flags.
1551 (print_source_lines): Change noerror to flags.
1552
08850b56
PM
15532012-11-13 Pierre Muller <muller@sourceware.org>
1554
1555 ARI fixes: Avoid sprintf function use rule.
1556 * charset.c (convert_between_encodings): Use xsnprintf.
1557 * cli-out.c (cli_field_int): Likewise.
1558 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1559 * expprint.c (op_name_standard): Likewise.
1560 * frv-tdep.c (set_variant_num_gprs): Likewise.
1561 (set_variant_num_fprs): Likewise.
1562 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1563 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1564 (nto_init_solib_absolute_prefix): Likewise.
1565 * source.c (init_source_path): Likewise.
1566 (print_source_lines_base): Likewise.
1567 * valprint.c (print_wchar): Likewise.
1568 * mi/mi-out.c (mi_field_int): Likewise.
1569 windows-nat.c (windows_pid_to_exec_file): Likewise.
1570 (windows_create_inferior): Likewise.
1571 (_initialize_check_for_gdb_ini): Likewise.
1572
ca9d61b9
JB
15732012-11-12 Joel Brobecker <brobecker@adacore.com>
1574
1575 * frame.h (deprecated_frame_register_read): Renames
1576 frame_register_read.
1577 * frame.c (deprecated_frame_register_read): Renames
1578 frame_register_read. Update all callers.
1579 * i386-tdep.c: Update all callers of frame_register_read.
1580 * infcmd.c: Likewise.
1581 * jit.c: Likewise.
1582 * mips-tdep.c: Likewise.
1583 * mt-tdep.c: Likewise.
1584 * sh64-tdep.c: Likewise.
1585
b2c7d45a
JB
15862012-11-12 Joel Brobecker <brobecker@adacore.com>
1587
1588 * frame.h (frame_register_read): Remove FIXME comment.
1589 * frame.c (frame_register_read): Add suggestion explaining
1590 which function to use in place of this one.
1591
31594462
TT
15922012-11-12 Tom Tromey <tromey@redhat.com>
1593
1594 * python/python.c (start_type_printers): Initialize 'result_obj'.
1595
18a9fc12
TT
15962012-11-12 Tom Tromey <tromey@redhat.com>
1597
1598 * NEWS: Update.
1599 * data-directory/Makefile.in (PYTHON_FILES): Add
1600 type_printers.py.
1601 * python/lib/gdb/command/type_printers.py: New file.
1602 * python/lib/gdb/command/types.py (TypePrinter): New class.
1603 (_get_some_type_recognizers, get_type_recognizers,
1604 apply_type_recognizers, register_type_printer): New
1605 functions.
1606 * python/py-objfile.c (objfile_object) <type_printers>: New
1607 field.
1608 (objfpy_dealloc): Decref new field.
1609 (objfpy_new): Set new field.
1610 (objfpy_get_type_printers, objfpy_set_type_printers): New
1611 functions.
1612 (objfile_to_objfile_object): Set new field.
1613 (objfile_getset): Add "type_printers".
1614 * python/py-progspace.c (pspace_object) <type_printers>: New
1615 field.
1616 (pspy_dealloc): Decref new field.
1617 (pspy_new): Set new field.
1618 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1619 (pspace_to_pspace_object): Set new field.
1620 (pspace_getset): Add "type_printers".
1621 * python/python.c (start_type_printers, apply_type_printers,
1622 free_type_printers): New functions.
1623 (_initialize_python): Set gdb.type_printers.
1624 * python/python.h (start_type_printers, apply_type_printers,
1625 free_type_printers): Declare.
1626 * typeprint.c (type_print_raw_options, default_ptype_flags):
1627 Update for new fields.
1628 (do_free_global_table, create_global_typedef_table,
1629 find_global_typedef): New functions.
1630 (find_typedef_in_hash): Use find_global_typedef.
1631 (whatis_exp): Use create_global_typedef_table. Change cleanup
1632 handling.
1633 * typeprint.h (struct type_print_options) <global_typedefs,
1634 global_printers>: New fields.
1635
bd69fc68
TT
16362012-11-12 Tom Tromey <tromey@redhat.com>
1637
1638 * c-typeprint.c (find_typedef_for_canonicalize,
1639 print_name_maybe_canonical): New functions.
1640 (c_print_type): Look up type name.
1641 (cp_type_print_derivation_info): Add flags argument. Use
1642 print_name_maybe_canonical.
1643 (cp_type_print_method_args): Add wrapping.
1644 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1645 (c_type_print_template_args): New function.
1646 (c_type_print_base): Change wrapping. Use
1647 print_name_maybe_canonical.
1648 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1649 type name lookups.
1650 * gdbtypes.c (types_equal): No longer static.
1651 * gdbtypes.h (types_equal): Declare.
1652 * typeprint.c (type_print_raw_options, default_ptype_flags):
1653 Update.
1654 (struct typedef_hash_table): New.
1655 (hash_typedef_field, eq_typedef_field,
1656 recursively_update_typedef_hash, add_template_parameters,
1657 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1658 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1659 copy_typedef_hash, find_typedef_in_hash): New functions.
1660 * typeprint.h (struct type_print_options) <local_typedefs>:
1661 New field.
1662 (recursively_update_typedef_hash, add_template_parameters,
1663 create_typedef_hash, free_typedef_hash,
1664 make_cleanup_free_typedef_hash, copy_typedef_hash,
1665 find_typedef_in_hash): Declare.
1666
2621e0fd
TT
16672012-11-12 Tom Tromey <tromey@redhat.com>
1668
1669 * cp-support.c (inspect_type,
1670 replace_typedefs_qualified_name, replace_typedefs): Add
1671 finder, data arguments. Call as needed.
1672 (cp_canonicalize_string_full): New function.
1673 (cp_canonicalize_string_no_typedefs): Rewrite.
1674 * cp-support.h (canonicalization_ftype): New typedef.
1675 (cp_canonicalize_string_full): Declare.
1676
53342f27
TT
16772012-11-12 Tom Tromey <tromey@redhat.com>
1678
1679 * NEWS: Update.
1680 * c-typeprint.c (c_type_print_base): Handle print_method and
1681 print_typedefs flags.
1682 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1683 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1684 options.
1685 * typeprint.c (type_print_raw_options, default_ptype_flags):
1686 Update for new field.s
1687 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1688 (setprinttypelist, showprinttypelist, print_methods,
1689 print_typedefs): New globals.
1690 (set_print_type, show_print_type, set_print_type_methods,
1691 show_print_type_methods, set_print_type_typedefs,
1692 show_print_type_typedefs): New functions.
1693 (_initialize_typeprint): Update documentation. Add "print
1694 type methods" and "print type typedefs" parameters.
1695 * typeprint.h (struct type_print_options) <print_methods,
1696 print_typedefs>: New fields.
1697
6c8702eb
TT
16982012-11-12 Tom Tromey <tromey@redhat.com>
1699
1700 * c-typeprint.c (cp_type_print_method_args): Add flags
1701 argument. Call c_print_type, not type_print.
1702 (c_type_print_base): Call c_print_type, not type_print.
1703 Update.
1704
79d43c61
TT
17052012-11-12 Tom Tromey <tromey@redhat.com>
1706
1707 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1708 to type-printing functions.
1709 * ada-lang.h (ada_print_type): Add argument.
1710 * ada-typeprint.c (print_array_type, print_variant_clauses,
1711 print_variant_part, print_selected_record_field_types,
1712 print_record_field_types, print_unchecked_union_type,
1713 print_func_type, ada_print_type): Add flags argument.
1714 (ada_print_typedef): Update.
1715 * c-exp.y (OPERATOR conversion_type_id): Update.
1716 * c-lang.h (c_print_type, c_type_print_base): Update.
1717 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1718 c_type_print_modifier, c_type_print_args,
1719 c_type_print_varspec_suffix, c_type_print_base): Add flags
1720 argument.
1721 * cp-valprint.c (cp_print_class_member): Update.
1722 * dwarf2read.c (dwarf2_compute_name): Update.
1723 * f-lang.h (f_print_type): Add argument.
1724 * f-typeprint.c (f_print_type): Add flags argument.
1725 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1726 * go-lang.h (go_print_type): Add argument.
1727 * go-typeprint.c (go_print_type): Add flags argument.
1728 * jv-lang.h (java_print_type): Add argument.
1729 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1730 flags argument.
1731 * language.c (unk_lang_print_type): Add flags argument.
1732 * language.h (struct language_defn) <la_print_type>: Add flags
1733 argument.
1734 (LA_PRINT_TYPE): Likewise.
1735 * m2-lang.h (m2_print_type): Add argument.
1736 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1737 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1738 m2_unbounded_array, m2_record_fields): Add flags argument.
1739 * p-lang.h (pascal_print_type, pascal_type_print_base,
1740 pascal_type_print_varspec_prefix): Add argument.
1741 * p-typeprint.c (pascal_print_type,
1742 pascal_type_print_varspec_prefix, pascal_print_func_args,
1743 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1744 flags argument.
1745 * symmisc.c (print_symbol): Update.
1746 * typeprint.c (type_print_raw_options, default_ptype_flags):
1747 New globals.
1748 (type_print): Update.
1749 * typeprint.h (struct type_print_options): New.
1750 (type_print_raw_options): Declare.
1751 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1752
cf4ded82
KS
17532012-11-10 Keith Seitz <keiths@redhat.com>
1754
1755 * breakpoint.c (clear_command): Add cleanup for
1756 sals.sals if an argument is given.
1757
1758 * linespec.c (parse_linespec): Do cleanups after
1759 parsing a convenience variable.
1760
0d63ecda
KS
17612012-11-10 Keith Seitz <keiths@redhat.com>
1762
1763 PR gdb/14288
1764 * c-valprint.c (c_val_print): For character arrays
1765 with "print null" option on, print ellipses if
1766 the output is truncated and the next character is not \000.
1767 * valprint.c (MAX_WCHARS): Define.
1768 (WCHAR_BUFLEN): Likewise.
1769 (WCHAR_BUFLEN_MAX): Likewise.
1770 (struct converted_character): New structure.
1771 (count_next_character): New function.
1772 (print_converted_chars_to_obstack): New function.
1773 (generic_printstr): Rewrite using count_next_character
1774 and print_converted_chars_to_obstack.
1775
9b8d6827
SC
17762012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1777
1778 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1779 while executing the gdb command.
1780 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1781 are called from prompt_for_continue.
1782 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1783
e840f632
SC
17842012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1785
1786 PR tui/9584
1787
1788 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1789 but insert the command to execute in readline's buffer.
1790
f5656ead
TT
17912012-11-09 Tom Tromey <tromey@redhat.com>
1792
1793 * gdbarch.sh (target_gdbarch): Remove macro.
1794 (get_target_gdbarch): Rename to target_gdbarch.
1795 * gdbarch.c, gdbarch.h: Rebuild.
1796 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1797 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1798 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1799 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1800 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1801 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1802 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1803 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1804 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1805 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1806 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1807 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1808 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1809 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1810 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1811 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1812 target-descriptions.c, target.c, target.h, tracepoint.c,
1813 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1814 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1815 python/py-inferior.c, python/python.c: Update.
1816
ed8a1c2d
AB
18172012-11-09 Andrew Burgess <aburgess@broadcom.com>
1818
1819 * source.c (print_source_lines_base): Add fullname field giving
1820 full path to file in mi output.
1821 * NEWS: Mention the new fullname field.
1822
504b36fd
YQ
18232012-11-09 Yao Qi <yao@codesourcery.com>
1824
1825 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1826
9107fc8d
PA
18272012-11-09 Pedro Alves <palves@redhat.com>
1828
1829 PR gdb/14306
1830
1831 * infrun.c: Include target-descriptions.h.
1832 (follow_exec): Fetch new target description.
1833
30f8135b
YQ
18342012-11-09 Yao Qi <yao@codesourcery.com>
1835
1836 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1837 0x8d (lea).
1838
558a9d82
YQ
18392012-11-09 Yao Qi <yao@codesourcery.com>
1840
1841 * breakpoint.c: Declare set_tracepoint_count.
1842 (install_breakpoint): Call set_tracepoint_count if B is a
1843 tracepoint.
1844 (trace_command): Don't call set_tracepoint_count. Re-indent.
1845 (strace_command, ftrace_command):
1846 (create_tracepoint_from_upload): Likewise.
1847
6ecd4729
PA
18482012-11-09 Pedro Alves <palves@redhat.com>
1849
1850 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1851 (get_target_gdbarch) <gdbarch.h>: New function.
1852 (startup_gdbarch) <gdbarch.h>: Declare.
1853 <gdbarch.c> (target_gdbarch): Delete.
1854 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1855 current inferior's gdbarch.
1856 <gdbarch.c> (get_target_gdbarch): New function.
1857 * inferior.c: Include target-descriptions.h.
1858 (free_inferior): Free target description info.
1859 (add_inferior_with_spaces): Set the inferior's initial
1860 architecture.
1861 (clone_inferior_command): Copy the original inferior's target
1862 description if it was user specified.
1863 (initialize_inferiors): Add comment.
1864 * inferior.h (struct target_desc_info): Forward declare.
1865 (struct inferior) <gdbarch>: New field.
1866 * linux-nat.c: Include target-descriptions.h.
1867 (linux_child_follow_fork): Copy the parent's architecture and
1868 target description to the child.
1869 * target-descriptions.c: Include inferior.h.
1870 (struct target_desc_info): New structure, holding the equivalents
1871 of ...
1872 (target_desc_fetched, current_target_desc)
1873 (target_description_filename): ... these removed globals.
1874 (get_tdesc_info, target_desc_info_from_user_p)
1875 (copy_inferior_target_desc_info, target_desc_info_free): New.
1876 (target_desc_fetched, current_target_desc)
1877 (target_description_filename): Reimplemented as convenience
1878 macros.
1879 (tdesc_filename_cmd_string): New global.
1880 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1881 tdescs filename ..." commands to the per-inferior equivalent.
1882 (show_tdesc_filename_cmd): Get the value to show from the
1883 per-inferior description filename.
1884 (_initilize_target_descriptions): Change the "set/show tdesc
1885 filename" commands' variable.
1886 * target-descriptions.h (struct target_desc, struct target_desc_info)
1887 (struct inferior): Forward declare.
1888 (target_find_description, target_clear_description)
1889 (target_current_description): Adjust comments.
1890 (copy_inferior_target_desc_info, target_desc_info_free)
1891 (target_desc_info_from_user_p). Declare.
1892
4ca4d161
SC
18932012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1894
1895 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1896 (tui_target_wait_hook): Remove.
1897 (tui_install_hooks): Install the about_to_proceed observer.
1898 (tui_remove_hooks): And remove it here.
1899
9015683b
TT
19002012-11-08 Tom Tromey <tromey@redhat.com>
1901
1902 * linux-tdep.c (linux_make_siginfo_note): New function.
1903 (linux_make_corefile_notes): Use it.
1904 * corelow.c (get_core_siginfo): New function.
1905 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1906
ea9f10bb
TT
19072012-11-08 Tom Tromey <tromey@redhat.com>
1908
1909 PR gdb/14704:
1910 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1911 (zlib_decompress_section): Remove.
1912 (gdb_bfd_map_section): Only check for compressed section
1913 in mmap case. Use bfd_get_full_section_contents.
1914 * osabi.c (check_note): Add 'sectsize' argument. Read
1915 section data.
1916 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1917 section data. Update for check_note change.
1918 * xcoffread.c (xcoff_initial_scan): Use
1919 bfd_get_full_section_contents.
1920 * py-auto-load.c (auto_load_section_scripts): Use
1921 bfd_get_full_section_contents.
1922 * contrib/cc-with-tweaks.sh: Add -Z option.
1923
d071a26b
TT
19242012-11-08 Tom Tromey <tromey@redhat.com>
1925
1926 * python/py-bpevent.c: Include defs.h.
1927 * python/py-continueevent.c: Include defs.h.
1928 * python/py-event.c: Include defs.h.
1929 * python/py-event.h: Don't include defs.h.
1930 * python/py-events.h: Don't include defs.h.
1931 * python/py-evts.c: Include defs.h.
1932 * python/py-exitedevent.c: Include defs.h.
1933 * python/py-newobjfileevent.c: Include defs.h.
1934 * python/py-signalevent.c: Include defs.h.
1935 * python/py-stopevent.c: Include defs.h.
1936 * python/py-threadevent.c: Include defs.h.
1937
4574b35a
PM
19382012-11-08 Pierre Muller <muller@sourceware.org>
1939
1940 * update-web-ari.sh (print_heading): Add number of files
1941 checked.
1942 (nb_files): New variable counting the number of sources
1943 files found by gdb_find.sh script.
1944 (debug_awk): New variable to allow extra debug output.
1945 (indexes): Add more information if DEBUG_AWK is set.
1946
2834ab42
EBM
19472012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1948
1949 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1950 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1951 following the change in PLT call stubs on linker.
1952
84f13595
PM
19532012-11-08 Pierre Muller <muller@sourceware.org>
1954
1955 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1956 as default language.
1957 (AWK): Use = instead of == for sh test to avoid warning.
1958 (Linux rule): Correct [:digit] into [[:digit:]].
1959 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1960 (vasprintf rule): Adapt to common subdirectory moves.
1961 (xasprintf rule): Idem.
1962 (xvasprintf rule): Idem.
1963 (var_boolean rule): Accept occurence in == or != test.
1964
1965 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1966
d69e6a33
SC
19672012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1968
1969 * tui/tui-hooks.c (tui_inferior_exit): New function.
1970 (tui_detach_hook): Remove.
1971 (tui_install_hooks): Install the inferior exit observer.
1972 (tui_remove_hooks): Remove it.
1973
1e96de83
YQ
19742012-11-08 Yao Qi <yao@codesourcery.com>
1975
1976 PR gdb/14777.
1977 * source.c (_initialize_source): Call add_com_alias to abbreviate
1978 'forward-search' as 'fo'.
1979
0baeab03
PA
19802012-11-07 Pedro Alves <palves@redhat.com>
1981
1982 * arm-tdep.c: Make defs.h be the first include.
1983 * coff-pe-read.c: Ditto.
1984 * gnu-nat.c: Ditto.
1985 * go32-nat.c: Ditto.
1986 * i386-nat.c: Ditto.
1987 * ppcnbsd-nat.c: Ditto.
1988 * ada-varobj.h: Don't include defs.h.
1989 * i386-darwin-tdep.h: Ditto.
1990 * i386-nat.h: Ditto.
1991
892a8570
PA
19922012-11-07 Pedro Alves <palves@redhat.com>
1993
1994 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1995 Committee.
1996
719502e9
PM
19972012-11-07 Pierre Muller <muller@sourceware.org>
1998
1999 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
2000 File already uses "gdb_dirent.h" header.
2001
ed86b350
YQ
20022012-11-07 Yao Qi <yao@codesourcery.com>
2003
2004 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
2005 tracepoint_count'.
2006
9a4f1e4f
TT
20072012-11-06 Tom Tromey <tromey@redhat.com>
2008
2009 * target.h (inferior_has_forked, inferior_has_vforked)
2010 (inferior_has_execd, inferior_has_called_syscall): Remove
2011 declarations.
2012
0316657e
PM
20132012-11-06 Pierre Muller <muller@sourceware.org>
2014
2015 * remote.c (remote_insert_hw_breakpoint): ARI fix,
2016 add missing internalization markup.
2017
f6592439
PA
20182012-11-06 Pedro Alves <palves@redhat.com>
2019
2020 PR gdb/14810
2021
2022 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
2023
01f2564a
PM
20242012-11-06 Pierre Muller <muller@sourceware.org>
2025
2026 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
2027 is not executable.
2028
f37c4431
JB
20292012-11-05 Joel Brobecker <brobecker@adacore.com>
2030
2031 * gnulib/update-gnulib.sh: New script.
2032
550889c3
JB
20332012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
2034
2035 * MAINTAINERS: Update my email address.
2036
954b50b3
TT
20372012-11-05 Tom Tromey <tromey@redhat.com>
2038
2039 * frame.c (put_frame_register): Don't use temporary buffer.
2040
68c9da30
PA
20412012-11-05 Pedro Alves <palves@redhat.com>
2042
2043 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
2044 child. Clear 'pending_detach'.
2045 * infrun.c (handle_vfork_child_exec_or_exit): Clear
2046 'pending_detach' in the vfork parent.
2047
80626a55
DE
20482012-11-05 Doug Evans <dje@google.com>
2049
2050 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
2051 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
2052 * dwarf2read.c: #include "elf-bfd.h".
2053 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
2054 (dwop_section_names): Renamed from dwo_section names. All uses
2055 updated. Add entries for .debug_cu_index, .debug_tu_index.
2056 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
2057 All uses updated.
2058 (struct dwp_sections): New type.
2059 (struct virtual_dwo_sections): New type.
2060 (struct dwp_hash_table): New type.
2061 (struct dwp_file): New type.
2062 (init_cutu_and_read_dies): Ensure DWO info/types section has been
2063 read in. Handle DWOs coming from DWP files.
2064 (lookup_dwo_file_slot): New function.
2065 (dwarf2_locate_dwo_sections): Move definition closer to use.
2066 (create_dwo_debug_info_hash_table_reader): Renamed from
2067 create_debug_info_hash_table_reader. All callers updated.
2068 (create_dwo_debug_info_hash_table): Renamed from
2069 create_debug_info_hash_table. All callers updated.
2070 (create_dwp_hash_table): New function.
2071 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
2072 (lookup_dwo_in_dwp): New function.
2073 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
2074 is_dwp. All callers updated.
2075 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
2076 (open_and_init_dwo_file): Renamed from init_dwo_file.
2077 All callers updated.
2078 (lookup_dwo_file): Delete.
2079 (dwarf2_locate_dwp_sections): New function.
2080 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
2081 (allocate_dwp_loaded_cutus_table): New function.
2082 (open_and_init_dwp_file): New function.
2083 (lookup_dwo_cutu): New function.
2084 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
2085
6f6484cd
YQ
20862012-11-03 Yao Qi <yao@codesourcery.com>
2087
2088 Fix PR gdb/14617.
2089 * breakpoint.c (trace_pass_set_count): Call
2090 observer_notify_breakpoint_modified instead of
2091 observer_notify_tracepoint_modified.
2092 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
2093
b45627a0
TT
20942012-11-02 Tom Tromey <tromey@redhat.com>
2095
2096 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
2097 argument to complete_on_enum.
2098
d4fb63e1
TT
20992012-11-02 Tom Tromey <tromey@redhat.com>
2100
2101 * configure: Rebuild.
2102 * configure.ac (build_warnings): Add -Wempty-body.
2103 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
2104 * remote.c (handle_notification): Use braces for empty 'else' body.
2105 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
2106 'else' body.
2107 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
2108 'else' body.
2109 * solib-som.c (som_relocate_section_addresses): Use braces
2110 for empty 'else' body.
2111 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
2112 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
2113
f50f4e56
PA
21142012-11-02 Pedro Alves <palves@redhat.com>
2115
2116 PR gdb/14766
2117
2118 * infrun.c (handle_inferior_event)
2119 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2120 null_ptid before handling a vfork child exec or exit. Switch to
2121 the event ptid afterwards.
2122
f0559fff
YQ
21232012-11-02 Yao Qi <yao@codesourcery.com>
2124
2125 * std-operator.def: Remove OP_LABELED.
2126 * eval.c: Remove the declaration of 'get_label'.
2127 (get_label): Remove.
2128 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2129 Update comment.
2130 Remove local variable 'variantno' and related code.
2131 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2132 with 'fieldno'.
2133 * expprint.c (print_subexp_standard): Likewise.
2134 (dump_subexp_body_standard): Likewise.
2135 * parse.c (operator_length_standard): Likewise.
2136
e5496e3e
PM
21372012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
2138
2139 Incorporate ARI web page generator into GDB sources.
2140 * contrib/ari/create-web-ari-in-src.sh: New file.
2141 * contrib/ari/gdb_ari.sh: New file.
2142 * contrib/ari/gdb_find.sh: New file.
2143 * contrib/ari/update-web-ari.sh: New file.
2144
c66fb220
TT
21452012-10-31 Tom Tromey <tromey@redhat.com>
2146
2147 * gdbarch.c: Rebuild.
2148 * gdbarch.sh: Remove references to gdbarch_swap.
2149 * corelow.c (core_open): Remove obsolete comment.
2150
2f27adfe
AB
21512012-10-31 Andrew Burgess <aburgess@broadcom.com>
2152
2153 PR cli/14772
2154 * c-typeprint.c (c_print_type): Don't print a space for vector
2155 types, this is handled within the suffix.
2156 (c_type_print_varspec_suffix): Add a space to vector suffix.
2157
144db827
PA
21582012-10-26 Pedro Alves <palves@redhat.com>
2159
2160 * amd64-tdep.c (amd64_relocate_instruction): Use
2161 store_unsigned_integer instead of memcpy.
2162 * i386-tdep.c (i386_relocate_instruction): Ditto.
2163
940c3c06
PA
21642012-10-26 Pedro Alves <palves@redhat.com>
2165
2166 * infrun.c (handle_inferior_event): Merge handling of
2167 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2168 switch case.
2169
47b19065
PA
21702012-10-26 Pedro Alves <palves@redhat.com>
2171
2172 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2173 Remove comment.
2174
87d2d2a4
PA
21752012-10-26 Pedro Alves <palves@redhat.com>
2176
2177 * target.c (target_waitstatus_to_string): Handle
2178 TARGET_WAITKIND_VFORK_DONE.
2179
fed708ed
PA
21802012-10-26 Pedro Alves <palves@redhat.com>
2181
2182 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2183 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2184
2590b645
JB
21852012-10-24 Tristan Gingold <gingold@adacore.com>
2186
2187 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2188 Add comments.
2189
bed0c243
JB
21902012-10-24 Joel Brobecker <brobecker@adacore.com>
2191
2192 * ravenscar-thread.c (ravenscar_wait): Only update the list
2193 of threads and inferior_ptid if the inferior is still alive.
2194
f69c91ad
JB
21952012-10-24 Joel Brobecker <brobecker@adacore.com>
2196
2197 * ada-lang.c (is_known_support_routine): Use lbasename when
2198 matching the symtab's filename against
2199 known_runtime_file_name_patterns.
2200
d99dcf51
JB
22012012-10-24 Joel Brobecker <brobecker@adacore.com>
2202
2203 * ada-lang.c (ada_same_array_size_p): New function.
2204 (ada_promote_array_of_integrals): New function.
2205 (coerce_for_assign): Add handling of arrays where the elements
2206 are integrals of a smaller size than the size of the target
2207 array element type.
2208
32560274
JB
22092012-10-24 Joel Brobecker <brobecker@adacore.com>
2210
2211 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2212 against maximum exponent value.
2213
5a04cc98
JB
22142012-10-24 Joel Brobecker <brobecker@adacore.com>
2215
2216 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2217 "unwind-seh.c".
2218
5ded5331
JB
22192012-10-24 Joel Brobecker <brobecker@adacore.com>
2220
2221 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2222 strip typedef layer when computing the fixed type's field type,
2223 only when computing its size.
2224
2445fd7b
MK
22252012-10-24 Mark Kettenis <kettenis@gnu.org>
2226
2227 PR gdb/12783
2228 * i386-tdep.c (i386_return_value): Handle complex double and long
2229 double.
2230
8f205f9c
JB
22312012-10-24 Joel Brobecker <brobecker@adacore.com>
2232
2233 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2234 New local variable args_len.
2235 Quote the name of the executable when computing the command line.
2236
7f7930dd
MK
22372012-10-23 Mark Kettenis <kettenis@gnu.org>
2238
2239 PR gdb/12796
2240 PR gdb/12798
2241 PR gdb/12800
2242 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2243 AMD64_FTAG_REGNUM.
2244 * amd64-tdep.c (amd64_classify): Classify complex types.
2245 (amd64_return_value): Handle the COMPLEX_X87 class.
2246
38a69d0a
JB
22472012-10-23 Joel Brobecker <brobecker@adacore.com>
2248
2249 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2250 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2251
83ab93c6
JB
22522012-10-23 Joel Brobecker <brobecker@adacore.com>
2253
2254 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2255 function.
2256 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2257 to amd64_windows_auto_wide_charset.
2258
f6fbab7d
YQ
22592012-10-23 Yao Qi <yao@codesourcery.com>
2260
2261 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2262 * event-top.h: Remove its declaration.
2263 (async_request_quit): Call mark_async_signal_handler instead of
2264 mark_async_signal_handler_wrapper.
2265 (async_do_nothing, async_disconnect): Likewise.
2266 (async_stop_sig): Likewise.
2267 * remote.c (handle_remote_sigint): Likewise.
2268 (handle_remote_sigint_twice): Likewise.
2269
05fa9251
YQ
22702012-10-23 Yao Qi <yao@codesourcery.com>
2271
2272 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2273 with 'static struct async_signal_handler *'.
2274 (sighup_token, sigquit_token, sigstp_token): Likewise.
2275
08af7a40
AA
22762012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2277
2278 * gdbarch.sh (function_list): Use 'pstring' when printing
2279 a variable which could return NULL.
2280 * gdbarch.c: Regenerate.
2281
beb4b03c 22822012-10-10 Joel Brobecker <brobecker@adacore.com>
f87e3f15 2283 Tom Tromey <tromey@redhat.com>
beb4b03c
JB
2284
2285 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2286 inneffective if condition by gdb assertion. Add function
2287 description comment.
2288
a5b12627
JB
22892012-10-19 Joel Brobecker <brobecker@adacore.com>
2290
2291 * parser-defs.h (struct exp_descriptor): Document constraint
2292 on return value for "op_name" callbacks.
2293
0b0865da
TT
22942012-10-18 Tom Tromey <tromey@redhat.com>
2295
2296 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2297 * symtab.c (iterate_over_some_symtabs): Constify.
2298 * source.h (symtab_to_fullname): Return 'const char *'.
2299 * source.c (symtab_to_fullname): Return 'const char *'.
2300 * python/py-symtab.c (stpy_fullname): Constify.
2301 * cli/cli-cmds.c (edit_command): Constify.
2302 * breakpoint.c (print_breakpoint_location)
2303 (update_static_tracepoint): Constify.
2304
94b0e70d
TT
23052012-10-18 Tom Tromey <tromey@redhat.com>
2306
2307 * breakpoint.c (compare_breakpoints): Fix comparison.
2308
fff10684
TT
23092012-10-18 Tom Tromey <tromey@redhat.com>
2310
2311 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2312 gdb_wchar_t to convert_between_encodings.
2313
8de0566d
YQ
23142012-10-17 Yao Qi <yao@codesourcery.com>
2315
2316 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2317 more parameter 'inferior'.
2318 * corefile.c (write_memory_with_notification): Caller update.
2319
2320 * mi/mi-cmd-var.c: Include "mi-main.h".
2321 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2322 to 1 and restore it later.
2323 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2324 and "data-write-memory-bytes.
2325 * mi/mi-interp.c: Include objfiles.h.
2326 (mi_interpreter_init): Call observer_attach_memory_changed.
2327 (mi_memory_changed): New.
2328 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2329 New field.
2330
2331 * NEWS: Mention new MI notification "memory-changed".
2332
6235cdd1
JK
23332012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2334
2335 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2336
07540c15
DE
23372012-10-15 Doug Evans <dje@google.com>
2338
2339 New option -nh: inhibit loading of ~/.gdbinit.
2340 * NEWS: Mention -nh.
2341 * main.c (captured_main): Recognize and process -nh.
2342 (print_gdb_help): Mention -nh.
2343 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2344
eab09350
L
23452012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2346
2347 PR backtrace/14646
2348 PR gdb/14647
2349 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2350 pc_regnum_from_eax.
2351 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2352 nor pc_regnum_from_eax.
2353 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2354 nor pc_regnum_from_eax.
2355
9e3a7d65
JK
23562012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2357
2358 Fix entry values resolving in inlined frames.
2359 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2360 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2361 entries of FRAME.
2362
c83393b9
JB
23632012-10-15 Joel Brobecker <brobecker@adacore.com>
2364
2365 * configure.ac: Build with -DMS_WIN64 if building with Python
2366 enabled using GCC on amd64-windows.
2367 * configure: Regenerate.
2368
801e4185
TT
23692012-10-15 Tom Tromey <tromey@redhat.com>
2370
2371 PR python/14635:
2372 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2373 to Py_None.
2374
74f910c8
TT
23752012-10-15 Tom Tromey <tromey@redhat.com>
2376
2377 PR python/14634:
2378 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2379
2a7c8fd5
AB
23802012-10-11 Andrew Burgess <aburgess@broadcom.com>
2381
2382 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2383 reset thread numbering back to 1.
2384
7c09e5a0
DE
23852012-10-11 Doug Evans <dje@google.com>
2386
2387 PR breakpoints/14643.
2388 * linespec.c (struct ls_parser): New member keyword_ok.
2389 (linespec_lexer_lex_string): Add comment.
2390 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2391 for one.
2392 (parse_linespec): Set keyword_ok.
2393
a1855c1d
DE
23942012-10-10 Doug Evans <dje@google.com>
2395
844226d6
DE
2396 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2397 "0x" prefix on address in log message.
2398
a1855c1d
DE
2399 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2400 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2401 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2402 (lookup_dwo_file): Add const to dwo_name parameter.
2403 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2404
2e24f4aa
JK
24052012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2406
2407 Fix crash during stepping on ppc32.
2408 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2409 SYM.
2410
aa14df25
DE
24112012-10-03 Doug Evans <dje@google.com>
2412
2413 PR symtab/14601
2414 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2415
3d468296
AB
24162012-10-02 Andrew Burgess <aburgess@broadcom.com>
2417
2418 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2419 output and use uint32_t not long to ensure 4 byte size.
2420
8f0ee2eb
JB
24212012-10-02 Joel Brobecker <brobecker@adacore.com>
2422
2423 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2424 unref'ed it.
2425
b3dc46ff
AB
24262012-10-01 Andrew Burgess <aburgess@broadcom.com>
2427
2428 * target.c (simple_search_memory): Include access length in
2429 warning message.
2430
f712f01f
EBM
24312012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2432 Edjunior Machado <emachado@linux.vnet.ibm.com>
2433
2434 PR gdb/13989
2435 * solib.c (solib_find): Prevent GDB from loading native libraries when
2436 debugging a cross-target corefile.
2437
39181896
PA
24382012-09-28 selven <pcthegreat@gmail.com>
2439
2440 Make definition match declaration.
2441
2442 * regcache.c (regcache_register_status): Change return type to
2443 enum register_status.
2444
4c2786ba
YQ
24452012-09-28 Yao Qi <yao@codesourcery.com>
2446
2447 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2448 write_memory_with_notification instead of write_memory.
2449 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2450 instead of target_write_memory.
2451
1ae0c35e
YQ
24522012-09-28 Yao Qi <yao@codesourcery.com>
2453
2454 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2455 when the length of content is not an even number.
2456
7977e5d2
TT
24572012-09-27 Tom Tromey <tromey@redhat.com>
2458
2459 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2460 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2461
807160da
JB
24622012-09-27 Joel Brobecker <brobecker@adacore.com>
2463
2464 * sol-thread.c (sol_thread_fetch_registers)
2465 (sol_thread_store_registers): Delete commented out code.
2466
43c75337
JB
24672012-09-27 Joel Brobecker <brobecker@adacore.com>
2468
2469 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2470 Move these functions to sparc-sol-thread.c.
2471 * sparc-sol-thread.c: New file.
2472 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2473 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2474 configurations.
2475 * configure: Regenerate.
2476
d292a972
JB
24772012-09-27 Joel Brobecker <brobecker@adacore.com>
2478
2479 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2480 Remove commented-out code.
2481
8c3da003
JB
24822012-09-27 Joel Brobecker <brobecker@adacore.com>
2483
2484 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2485 Enable this code for sparc hosts only.
2486
f00482b6
JB
24872012-09-27 Joel Brobecker <brobecker@adacore.com>
2488
2489 * procfs.h (procfs_find_LDT_entry): Add declaration.
2490 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2491 function procfs_find_LDT_entry.
2492
337c776f
JB
24932012-09-27 Joel Brobecker <brobecker@adacore.com>
2494
2495 * procfs.c (proc_get_LDT_entry): Make static.
2496
1a04d88f
JB
24972012-09-27 Joel Brobecker <brobecker@adacore.com>
2498
2499 * procfs.c (proc_find_memory_regions): Fix declaration.
2500
bad43aa5
SP
25012012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2502
2503 * amd64-tdep.c (amd64_return_value): Revert previous change
2504 that used TYPE_LENGTH directly.
2505 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2506 (bfin_store_return_value): Likewise.
2507 * cris-tdep.c (cris_store_return_value): Likewise.
2508 (cris_extract_return_value): Likewise.
2509 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2510 * hppa-tdep.c (hppa64_return_value): Likewise.
2511 * lm32-tdep.c (lm32_store_return_value): Likewise.
2512 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2513 * spu-tdep.c (spu_value_from_register): Likewise.
2514 * vax-tdep.c (vax_return_value): Likewise.
2515
63375b74
SP
25162012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2517
2518 * gdbtypes.c (lookup_array_range_type): Expand parameters
2519 LOW_BOUND and HIGH_BOUND to LONGEST.
2520 (lookup_string_range_type): Likewise.
2521 * gdbtypes.h (lookup_array_range_type): Likewise.
2522 (lookup_string_range_type): Likewise.
2523 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2524 Expand HIGHBOUND to ssize_t.
2525 (value_string): Likewise.
2526 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2527 (value_string): Likewise.
2528
19ca11c5
YQ
25292012-09-27 Yao Qi <yao@codesourcery.com>
2530
2531 PR breakpoints/13898
2532 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2533 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2534 per breakpoint type.
2535
92107356
PM
25362012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2537
2538 * procfs.c: Add gdb_bfd header.
2539 * rs6000-nat.c: Likewise.
2540 * solib-pa64.c: Likewise.
2541 * spu-linux-nat.c: Likewise.
2542 * windows-nat.c: Likewise.
2543
9742094a
TT
25442012-09-26 Tom Tromey <tromey@redhat.com>
2545
2546 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2547
0971de02
TT
25482012-09-26 Tom Tromey <tromey@redhat.com>
2549
2550 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2551 (read_common_block): Handle child DIEs with
2552 DW_AT_data_member_location.
2553 (new_symbol_full): Add special case for common blocks.
2554
4357ac6c
TT
25552012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2556 Tom Tromey <tromey@redhat.com>
2557
2558 * dwarf2read.c (read_common_block): Rewrite.
2559 (new_symbol_full): Handle DW_TAG_common_block.
2560 * f-lang.c (head_common_list, find_common_for_function):
2561 Remove.
2562 * f-lang.h (struct common_entry, struct saved_f77_common,
2563 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2564 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2565 BLANK_COMMON_NAME_LOCAL): Remove.
2566 (struct common_block): New.
2567 * f-valprint.c (list_all_visible_commons): Remove.
2568 (info_common_command_for_block): New function.
2569 (info_common_command): Use it.
2570 * stack.c (iterate_over_block_locals): Special case for
2571 COMMON_BLOCK_DOMAIN.
2572 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2573 constant.
2574 (struct general_symbol_info) <value.common_block>: New field.
2575 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2576
965f07a8
TT
25772012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2578 Tom Tromey <tromey@redhat.com>
2579
2580 * f-lang.c (allocate_saved_bf_node,
2581 allocate_saved_function_node, allocate_saved_f77_common_node,
2582 allocate_common_entry_node, tail_common_list, current_common,
2583 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2584 tmp_bf_ptr, add_common_block, add_common_entry,
2585 find_first_common_named, patch_common_entries,
2586 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2587 global_remote_debug, get_bf_for_fcn, saved_function_list,
2588 saved_function_list_end, clear_function_list, struct saved_fcn,
2589 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2590 SAVED_BF, SAVED_BF_PTR): Remove.
2591 * f-lang.h (tail_common_list, current_common,
2592 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2593 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2594 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2595 real_main_c_value): Remove.
2596 * f-valprint.c (there_is_a_visible_common_named): Remove.
2597
6f380991
AB
25982012-09-26 Andrew Burgess <aburgess@broadcom.com>
2599
2600 * breakpoint.c (update_global_location_list): Ignore previous
2601 duplicate status of a breakpoint when starting a new scan for
2602 duplicate breakpoints.
2603
9ead7ae4 26042012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 2605 PR breakpoints/14419
2536b51c
YQ
2606 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2607 support LLVM compiler.
9ead7ae4 2608
8f8a23a2
SP
26092012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2610
2611 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2612 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2613 (bfin_store_return_value): Likewise.
2614 * cris-tdep.c (cris_store_return_value): Likewise.
2615 (cris_extract_return_value): Likewise.
2616 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2617 * hppa-tdep.c (hppa64_return_value): Likewise.
2618 * lm32-tdep.c (lm32_store_return_value): Likewise.
2619 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2620 * spu-tdep.c (spu_value_from_register): Likewise.
2621 * vax-tdep.c (vax_return_value): Likewise.
2622
d7019589
SP
26232012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2624
2625 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2626 parameter LEN to ssize_t.
2627
744a8059
SP
26282012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2629
2630 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2631 variable LEN.
2632 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2633 directly.
2634 (alpha_store_return_value): Likewise.
2635 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2636 (amd64_push_arguments): Likewise.
2637 * ax-gdb.c (gen_trace_static_fields): Likewise.
2638 (gen_traced_pop): Likewise.
2639 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2640 * breakpoint.c (update_watchpoint): Likewise.
2641 * findcmd.c (parse_find_args): Use local variable for type
2642 instead of length.
2643 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2644 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2645 (h8300_store_return_value): Likewise.
2646 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2647 Use i386_darwin_arg_type_alignment directly.
2648 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2649 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2650 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2651 (m68hc11_extract_return_value): Likewise.
2652 * mep-tdep.c (mep_push_dummy_call): Likewise.
2653 * printcmd.c (float_type_from_length): Likewise.
2654 * s390-tdep.c (s390_value_from_register): Likewise.
2655 * stack.c (read_frame_arg): Likewise.
2656 * tracepoint.c (encode_actions_1): Likewise.
2657 * valops.c (value_fetch_lazy): Use local variable for type
2658 instead of length. Use TYPE_LENGTH directly.
2659 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2660
a4b411d6
JB
26612012-09-25 Joel Brobecker <brobecker@adacore.com>
2662
2663 * symtab.c (skip_prologue_sal): Fix typo in comment.
2664
11dba07a
JB
26652012-09-25 Joel Brobecker <brobecker@adacore.com>
2666
2667 * linespec.c (create_sals_line_offset): Fix typo in comment.
2668
318102b9
SP
26692012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2670
2671 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2672 use plongest to print the array size.
2673
b4aa388a
SP
26742012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2675
2676 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2677 * p-valprint.c (pascal_type_print_base): Likewise.
2678
84cebc4a
YQ
26792012-09-22 Yao Qi <yao@codesourcery.com>
2680
2681 * remote.c (remote_get_trace_status): Remove setting default
2682 values of fields of 'ts'.
2683
04e7407c
JK
26842012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2685
2686 Fix internal error on canonicalization of clang types.
2687 * cp-name-parser.y (operator): New comment at make_operator call for
2688 new, delete, new[] and delete[].
2689 (exp): Use "sizeof ". Add new comment at make_operator call.
2690
9bf4bce9
JK
26912012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2692
2693 Fix disassemble without parameters in tailcall frame.
2694 * cli/cli-cmds.c (disassemble_current_function): Use
2695 get_frame_address_in_block.
2696
1c5b7826
TT
26972012-09-21 Tom Tromey <tromey@redhat.com>
2698
2699 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2700 TYPE_CODE_UNION>: Unify, removing a goto.
2701
62a49610
TT
27022012-09-21 Tom Tromey <tromey@redhat.com>
2703
2704 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2705
2603f7ee
AB
27062012-09-21 Andrew Burgess <aburgess@broadcom.com>
2707
2708 * findvar.c (read_frame_register_value): Mark the result value as
2709 optimized out if any of the input registers have been optimized out.
2710
810849a3
AS
27112012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2712
2713 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2714
0953dec1
SP
27152012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2716
2717 * eval.c (evaluate_subexp_standard): Eliminate single-use
2718 variable LOWER.
2719
82a90ccf
YQ
27202012-09-21 Yao Qi <yao@codesourcery.com>
2721
2722 * mi/mi-interp.c: Declare mi_record_changed.
2723 (mi_interpreter_init): Call observer_attach_record_changed.
2724 (mi_record_changed): New.
2725 * record.c (record_open): Call observer_notify_record_changed.
2726 (cmd_record_stop): Call observer_notify_record_changed.
2727 * NEWS: Mention it.
2728
d7de8e3c
TT
27292012-09-20 Tom Tromey <tromey@redhat.com>
2730
2731 * NEWS: Update.
2732 * python/python.c (finalize_python): New function.
2733 (_initialize_python): Make a final cleanup.
2734
43c7c83d
DE
27352012-09-19 Doug Evans <dje@google.com>
2736
2737 * buildsym.h (param_symbols): Delete, unused.
2738 (context_stack): Delete member "params", unused.
2739 * buildsym.c (push_context): Update.
2740 * dwarf2read.c (read_func_scope): Update.
2741
aa9259cc
TS
27422012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2743
a6521d9a
TS
2744 * sh-tdep.c (sh_register_convert_to_virtual)
2745 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2746 all callers. Just do a memcpy if not the little-endian case.
2747
f92589cb
TS
2748 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2749 set_gdbarch_double_format and set_gdbarch_long_double_format.
2750 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2751 set_gdbarch_double_format.
2752 * sh-tdep.c (sh_gdbarch_init): Likewise.
2753
aa9259cc
TS
2754 * NEWS: Document the removal of SH's 'regs' command.
2755 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2756 command.
2757
c1d780c2
SDJ
27582012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2759
2760 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2761 `jump'.
2762
4ae24af0
JB
27632012-09-18 Joel Brobecker <brobecker@adacore.com>
2764
2765 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2766 language when iterating over symbols.
2767
bb25a15c
YQ
27682012-09-18 Yao Qi <yao@codesourcery.com>
2769
2770 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2771 (mi_interpreter_init): Call observer_attach_tsv_created and
2772 observer_attach_tsv_deleted.
2773 (mi_tsv_created, mi_tsv_deleted): New.
2774 * tracepoint.c (delete_trace_state_variable): Call
2775 observer_notify_tsv_deleted.
2776 (trace_variable_command): Call observer_notify_tsv_created.
2777 (delete_trace_variable_command): Call
2778 observer_notify_tsv_deleted.
2779 (create_tsv_from_upload): Call observer_notify_tsv_created.
2780 * NEWS: Mention it.
2781
201b4506
YQ
27822012-09-18 Yao Qi <yao@codesourcery.com>
2783
2784 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2785 if traceframe changed.
2786 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2787 "trace-find".
2788 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2789 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2790 'traceframe_changed'.
2791 (mi_traceframe_changed): New.
2792 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2793 New field.
2794 * NEWS: Mention the new MI notification.
2795
eaeb12db
MW
27962012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2797
2798 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2799
6e3c039e
JK
28002012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2801
2802 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2803 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2804 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2805 Extend code also for PaX support. Convert all gdb_assert to warning
2806 calls.
2807
9a950c7c
JK
28082012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2809
2810 Implement auto-load user conveniences suggested by Doug Evans.
2811 * auto-load.c: Include top.h.
2812 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2813 (_initialize_auto_load): New variable scripts_directory_help. Mention
2814 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2815 scripts-directory. Document in online help one can use also files for
2816 set auto-load safe-path.
2817 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2818 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2819
deec9a9d
SP
28202012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2821
2822 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2823 of LEN.
2824
354ecfd5
SP
28252012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2826
2827 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2828 ELTLEN and use TYPE_LENGTH directly.
2829 (m2_val_print): Likewise.
2830 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2831 variable LEN and use TYPE_LENGTH directly.
2832 (m68k_svr4_store_return_value): Likewise.
2833 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2834 ARGLEN and use TYPE_LENGTH directly.
2835 (mips_o64_push_dummy_call): Likewise.
2836 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2837 variable LENGTH and use TYPE_LENGTH directly.
2838 (s390_function_arg_float): Likewise.
2839 (s390_function_arg_integer): Likewise.
2840 (s390_push_dummy_call): Likewise.
2841 (s390_return_value_convention): Likewise.
2842 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2843 TYPE_LENGTH directly.
2844
6fc1c773
YQ
28452012-09-17 Yao Qi <yao@codesourcery.com>
2846
2847 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2848 Update comment to add_setshow_integer_cmd.
2849 * cli/cli-setshow.c (do_set_command): Handle case
2850 'var_zuinteger_unlimited'.
2851 (do_show_command): Likewise.
2852 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2853 for command 'remotetimeout'.
2854 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2855 to var_integer.
f87e3f15
PA
2856 * source.c (_initialize_source): Call
2857 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
6fc1c773 2858
6acef6cd
SP
28592012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2860
2861 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2862 variable LEN.
2863
1ab3b62c
JK
28642012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2865
2866 PR 14119
2867 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2868 (frame_pop): Drop also TAILCALL_FRAME frames.
2869 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2870
acf9414f
JK
28712012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2872 Pedro Alves <palves@redhat.com>
2873
2874 PR 14548
2875 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2876 function start if we are already at function start. Both for
2877 reverse-next and for reverse-step into function without line number
2878 info.
2879
193facb3
JK
28802012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2881
2882 Code cleanup - rename 'inline' depth to 'artificial' depth.
2883 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2884 frame_id_artificial_p, extend the comment.
2885 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2886 * frame.c (fprint_frame_id): Rename at a user, change debug output
2887 text to "artificial=".
2888 (skip_inlined_frames): Rename to ...
2889 (skip_artificial_frames): ... here. Extend the comment.
2890 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2891 (frame_id_inlined_p): Rename to ...
2892 (frame_id_artificial_p): ... here. Rename at a user.
2893 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2894 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2895 at a user.
2896 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2897 Extend the comment.
2898 (frame_id_inlined_p): Rename to ...
2899 (frame_id_artificial_p): ... here.
2900 * inline-frame.c (inline_frame_this_id): Rename at a user.
2901
42056501
AB
29022012-09-14 Andrew Burgess <aburgess@broadcom.com>
2903
2904 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2905 vector variables using vector_size syntax rather than array
2906 syntax.
2907
84c47588
SP
29082012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2909
2910 * valarith.c (value_concat): Replace unsafe ALLOCA with
2911 XMALLOC/XFREE.
2912
f4045bcb
PA
29132012-09-14 Pedro Alves <palves@redhat.com>
2914
2915 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2916
63b46266
YPK
29172012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2918
2919 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2920 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2921 data-directory as appropriate.
2922
ddd7a8e7
SP
29232012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2924
2925 * printcmd.c (ui_printf): Eliminate single-use variable
2926 PARAM_LEN.
2927
d649a38e
YQ
29282012-09-14 Yao Qi <yao@codesourcery.com>
2929 Pedro Alves <palves@redhat.com>
2930
2931 * valops.c (value_assign): Move observer_notify_target_changed
2932 below to replace reinit_frame_cache.
2933
b9516fa1
YPK
29342012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2935
2936 Refactor Python "gdb" module into a proper Python package, by
2937 introducing a new "_gdb" module for code implemented in C, and
2938 using reload/__import__ instead of exec.
2939 * python/lib/gdb/__init__.py: Import * from _gdb.
2940 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2941 prompt_hook, sys.argv): Moved from finish_python_initialization.
2942 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2943 (packages, auto_load_packages): New list and function replacing
2944 module_dict and auto-loading code, using __file__ instead of
2945 gdb.PYTHONDIR and reload/__import__ instead of exec.
2946 (GdbSetPythonDirectory): Replacing function of the same name
2947 from finish_python_initialization, using reload/__import__ instead
2948 of exec, as well as call auto_load_packages.
2949 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2950 gdb_python_module and not gdb_module.
2951 * python/python-internal.h (gdb_python_module): Declare.
2952 * python/python.c (gdb_python_module): New global.
2953 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2954 (_initialize_python): Rename gdb module to _gdb.
2955 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2956 (finish_python_initialization): Move Python code to
2957 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2958 __main__.
2959
aa0fbdd8
PA
29602012-09-13 Pedro Alves <palves@redhat.com>
2961
2962 * Makefile.in (COMMON_OBS): Add registry.o.
2963 * registry.c: New file.
2964 * registry.h (struct registry_container): Declare.
2965 (registry_data_callback): New typedef.
2966 (struct registry_data, struct registry_data_registration, struct
2967 registry_data_registry): New type.
2968 (register_data_with_cleanup, registry_alloc_data)
2969 (registry_callback_adaptor, registry_clear_data)
2970 (registry_container_free_data, registry_set_data, registry_data):
2971 Declare.
2972 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2973 the new common structures and functions.
2974 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2975 callback typedefs.
2976
42b5c53d
MW
29772012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2978
2979 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2980 there is an error inserting hardware breakpoints and use the
2981 error message from the target.
2982
2983 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
f87e3f15
PA
2984 Catch this exception and print the error message contained within.
2985 Do not print the default hardware error breakpoint message in this
2986 case.
42b5c53d 2987
a1b64ce1
DE
29882012-09-12 Doug Evans <dje@google.com>
2989
2990 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2991 cu == NULL.
2992
83a788b8
DE
29932012-09-11 Doug Evans <dje@google.com>
2994
2995 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2996 .gdb_index symbol attributes if there are none.
2997
d9eaeb59
JB
29982012-09-11 Joel Brobecker <brobecker@adacore.com>
2999
3000 * symtab.h (struct minimal_symbol) [has_size]: New field.
3001 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
3002 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
3003 * printcmd.c (build_address_symbolic): Only filter out zero-sized
3004 minimal symbols if the symbol's size is actually known.
3005 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
3006 of msymbol's size field. Add comment.
3007 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
3008 SET_MSYMBOL_SIZE to set the minimal symbol size.
3009
a83e9154
JB
30102012-09-11 Joel Brobecker <brobecker@adacore.com>
3011
3012 * minsyms.c (install_minimal_symbols): Use memset to fill entire
3013 minimal_symbol struct object, rather than setting some of its
3014 fields one by one.
3015
350b1b26
AB
30162012-09-11 Andrew Burgess <aburgess@broadcom.com>
3017
3018 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
3019 passed_a_ptr flag when displaying typedef types.
3020
2fa15f23
JB
30212012-09-10 Joel Brobecker <brobecker@adacore.com>
3022
3023 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
3024 the optimized_out flag is preserved.
3025
5152ff90
AG
30262012-09-10 Anthony Green <green@moxielogic.com>
3027
3028 * moxie-tdep.c (moxie_analyze_prologue): Update for function
3029 prologue changes in GCC.
3030
5b4f6e25
KS
30312012-09-10 Keith Seitz <keiths@redhat.com>
3032
3033 PR gdb/13483
3034 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
3035 (BOOL_CONVERSION_BADNESS): ... this.
3036 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
3037 (rank_one_type): Allow all boolean conversions
3038 permitted by the standard.
3039
f1070426
TT
30402012-09-06 Tom Tromey <tromey@redhat.com>
3041
3042 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3043 Don't decref py_objfile.
3044
a8db4212
YPK
30452012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
3046
3047 Do not enable -lmcheck by default when Python is enabled with
3048 threading support.
3049 * configure.ac: (python_has_threads) New variable, by testing
3050 if WITH_THREAD is defined in Python.h.
3051 Move --enable-lmcheck after --with-python.
3052 Do not enable -lmcheck by default if python_has_threads=yes.
3053 Warn if --enable-lmcheck and python_has_threads=yes.
3054 * configure: Regenerate.
3055
648beb2b
YQ
30562012-08-31 Yao Qi <yao@codesourcery.com>
3057
3058 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
3059 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
3060 Update some commands.
3061 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
f87e3f15
PA
3062 * mi/mi-main.c (mi_cmd_execute): Set
3063 '*parse->cmd->suppress_notification' to 1.
648beb2b 3064
ef07a9f7
YQ
30652012-08-31 Yao Qi <yao@codesourcery.com>
3066
3067 * mi/mi-cmds.c (mi_cmds): Add 'static'.
3068
fda395cf
YPK
30692012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
3070
3071 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
3072
8efd8e78
DE
30732012-08-29 Doug Evans <dje@google.com>
3074
3075 * main.c (print_gdb_help): Remove reference to
3076 --use-deprecated-index-sections.
3077
883b9c6c
YQ
30782012-08-28 Yao Qi <yao@codesourcery.com>
3079
3080 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
3081 (init_cmds): Call add_setshow_uinteger_cmd for command
3082 'max-user-call-depth'.
3083 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
3084 declaration of 'max_user_call_depth'.
3085 * frame.c (backtrace_limit): Add 'unsigned'.
3086 (_initialize_frame): Call add_setshow_uinteger_cmd for command
3087 'limit'.
3088 * remote.c (remoteaddresssize): Add 'unsigned'.
3089 (remote_address_masked): Change local var 'address_size' to
3090 'unsigned'.
3091 (_initialize_remote): Call add_setshow_uinteger_cmd for
3092 'remoteaddresssize'.
3093 * top.c (history_size): Add 'unsigned'.
3094 (show_commands): Change local variables to 'unsigned'.
3095 (set_history_size_command): Don't check history_size is negative.
3096 Adjust the condition to call unstifle_history and set history_size
3097 to UNIT_MAX.
3098
1292279a
PA
30992012-08-28 Pedro Alves <palves@redhat.com>
3100
3101 PR gdb/14428
3102
3103 * infcmd.c (default_print_one_register_info): New, factored out
3104 from default_print_registers_info.
3105 (default_print_registers_info): Use it. Mark value unavailable if
3106 necessary.
3107 (registers_info): Print user registers with
3108 default_print_one_register_info.
3109
f629cd75
L
31102010-08-27 H.J. Lu <hongjiu.lu@intel.com>
3111
3112 PR tui/14486
3113 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3114 is not NULL before referencing it.
3115
1c8cdcb1
JK
31162012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3117
3118 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3119 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3120 original PC for it.
3121
e9687799
JK
31222012-08-27 Eli Zaretskii <eliz@gnu.org>
3123 Jan Kratochvil <jan.kratochvil@redhat.com>
3124
3125 * auto-load.c (auto_load_objfile_script): Rename to ...
3126 (auto_load_objfile_script_1): ... here, change variable realname to
3127 parameter realname, document it, add return value, add variable retval.
3128 (auto_load_objfile_script): New function.
3129
7afa1642
JK
31302012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3133 followed by a whitespace.
3134
dc7650b8
JK
31352012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
28e66c70 3137 PR gdb/14494.
dc7650b8
JK
3138 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3139 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3140 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3141 here.
3142
1591a1e8
PA
31432012-08-27 Wei-cheng Wang <cole945@gmail.com>
3144
3145 * memattr.c (create_mem_region): Fix memory region overlapping
3146 checking.
3147
ecfb0d68
SP
31482012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
3149
3150 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3151 with xmalloc/cleanup.
3152 * mt-tdep.c (mt_push_dummy_call): Likewise.
3153 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3154 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3155
8c56c1b9
YQ
31562012-08-24 Yao Qi <yao@codesourcery.com>
3157
3158 * jv-exp.y (push_expression_name): Add "." at the end of error
3159 message.
3160
e3480f4a
YPK
31612012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
3162
3163 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
3164 * python/python.c (_initialize_python): Update documentation.
3165
dfbd5e7b
PA
31662012-08-23 Pedro Alves <palves@redhat.com>
3167
3168 * infrun.c (_initialize_infrun) <handle command help text>:
3169 Mention that multiple signals are supported.
3170
2edda2ff
PA
31712012-08-23 Pedro Alves <palves@redhat.com>
3172
3173 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3174 string.
3175
8d735b87
YQ
31762012-08-23 Yao Qi <yao@codesourcery.com>
3177
3178 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3179 (tfind_1): Don't call registers_changed, set_traceframe_num,
3180 and clear_traceframe_info.
3181 Call set_current_traceframe.
3182 (set_current_traceframe): call set_traceframe_num.
3183
c5d9b215
SDJ
31842012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
3185
3186 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3187 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3188
037bbc8e
YPK
31892012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3190
3191 Enable readline in Python in a GDB-specific way and block the
3192 standard Python readline module to prevent conflicts with GDB.
3193 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3194 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3195 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3196 * python/py-gdb-readline.c: New file.
3197 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3198 prototype.
3199 * python/python.c (_initialize_python): Call
3200 gdbpy_initialize_gdb_readline.
3201
406b1477
KS
32022012-08-22 Keith Seitz <keiths@redhat.com>
3203
3204 * defs.h: Include build-gnulib/config.h
3205
6ca1b147
JM
32062012-08-22 Joseph Myers <joseph@codesourcery.com>
3207
3208 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3209 and blx pc.
3210
8315665e
YPK
32112012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3212
3213 Add a new "python-interactive" command that starts a standard
3214 Python interactive prompt with "pi" as alias, and add "py" as
3215 an alias to "python".
3216 * NEWS: Mention the new commands.
8315665e
YPK
3217 * python/python.c (eval_python_command): New function.
3218 (python_interactive_command): For "python-interactive" with
3219 arguments, call eval_python_command. For "python-interactive"
3220 without arguments, call PyRun_InteractiveLoop.
3221 (_initialize_python): Add "python-interactive" command with
3222 "pi" as alias, and add "py" as an alias to "python".
3223
522002f9
TT
32242012-08-22 Tom Tromey <tromey@redhat.com>
3225
3226 * defs.h (quit_flag): Don't declare.
3227 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3228 (QUIT): Use new functions.
3229 * event-top.c (command_handler): Use clear_quit_flag.
3230 (handle_sigint): Use set_quit_flag.
3231 (async_request_quit): Use check_quit_flag. Don't check
3232 immediate_quit.
3233 * exceptions.c (throw_exception): Use clear_quit_flag.
3234 * main.c (captured_main): Use clear_quit_flag.
3235 * python/python.c (clear_quit_flag, set_quit_flag)
3236 (check_quit_flag): New functions.
3237 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3238 clear_quit_flag.
3239 * remote.c (remote_wait_as): Use check_quit_flag,
3240 clear_quit_flag.
3241 (remote_start_remote): Call QUIT.
3242 * symfile.c (load_progress): Use check_quit_flag.
3243 * top.c (command_loop): Use clear_quit_flag.
3244 (command_line_input): Call QUIT.
3245 * utils.c (quit_flag): Conditionally define.
3246 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3247 functions.
3248 (prompt_for_continue): Call QUIT. Use quit, not
3249 async_request_quit.
3250 * remote-mips.c (mips_expect_timeout): Call QUIT.
3251 * monitor.c (monitor_expect): Call QUIT.
3252
b583003e
TT
32532012-08-22 Tom Tromey <tromey@redhat.com>
3254
3255 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3256 (async_init_signals): Update.
3257 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3258 (SIGWINCH_HANDLER_BODY): Remove.
3259
e1507e95
TT
32602012-08-22 Tom Tromey <tromey@redhat.com>
3261
3262 * jit.c (jit_object_close_impl): Don't malloc the objfile
3263 name.
3264 * objfiles.c (allocate_objfile): Don't malloc the objfile
3265 name.
3266 (free_objfile): Don't free the objfile name.
3267 * objfiles.h (struct objfile) <name>: Update comment.
3268 * symfile.c (reread_symbols): Fix reference counting. Don't
3269 malloc objfile name.
3270
1c00ec6b
TT
32712012-08-22 Tom Tromey <tromey@redhat.com>
3272
3273 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3274 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3275 (symfile_bfd_open): Likewise.
3276 (generic_load): Likewise.
3277 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3278 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3279 gdb_bfd_open.
3280 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3281 Use gdb_bfd_open.
3282 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3283 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3284 (pmon_load_fast): Likewise.
3285 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3286 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3287 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3288 (macho_check_dsym): Likewise.
3289 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3290 (m32r_upload_command): Likewise.
3291 * gdb_bfd.h (gdb_bfd_cache): Declare.
3292 * gdb_bfd.c (struct gdb_bfd_data): New.
3293 (gdb_bfd_cache): New global.
3294 (struct gdb_bfd_cache_search): New.
3295 (hash_bfd): New function.
3296 (eq_bfd): Likewise.
3297 (gdb_bfd_open): Likewise.
3298 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3299 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3300 gdb_bfd_data.
3301 * exec.c (exec_file_attach): Use gdb_bfd_open.
3302 * dsrec.c (load_srec): Use gdb_bfd_open.
3303
6532ff36
TT
33042012-08-22 Tom Tromey <tromey@redhat.com>
3305
3306 * dwarf2read.c (macro_start_file): Update.
3307 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3308 (free_objfile_per_bfd_storage): Destroy macro_cache.
3309 (allocate_objfile, free_objfile): Update.
3310 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3311 New field.
3312 (struct objfile) <macro_cache>: Remove.
3313 * symfile.c (reread_symbols): Update.
3314 * symmisc.c (print_symbol_bcache_statistics): Update.
3315 (print_objfile_statistics): Update.
3316
706e3705
TT
33172012-08-22 Tom Tromey <tromey@redhat.com>
3318
3319 * elfread.c (elf_symtab_read): Update.
3320 * objfiles.c (objfiles_bfd_data): New global.
3321 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3322 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3323 (allocate_objfile, free_objfile): Update.
3324 (_initialize_objfiles): Initialize objfiles_bfd_data.
3325 * objfiles.h (struct objfile_per_bfd_storage): New.
3326 (struct objfile) <per_bfd>: New field.
3327 <filename_cache>: Remove.
3328 (set_objfile_per_bfd): Declare.
3329 * symfile.c (reread_symbols): Update. Call
3330 set_objfile_per_bfd.
3331 (allocate_symtab): Update.
3332 * symmisc.c (print_symbol_bcache_statistics): Update.
3333 (print_objfile_statistics): Print the size of the BFD obstack.
3334
e992eda4
TT
33352012-08-22 Tom Tromey <tromey@redhat.com>
3336
3337 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3338 * gdb_bfd.c: Use DEFINE_REGISTRY.
3339 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3340 (gdb_bfd_ref): Call bfd_alloc_data.
3341 (gdb_bfd_unref): Call bfd_free_data.
3342
6b81941e
TT
33432012-08-22 Tom Tromey <tromey@redhat.com>
3344
3345 * registry.h (struct registry_fields): New.
3346 (REGISTRY_FIELDS): Redefine.
3347 (REGISTRY_ACCESS_FIELD): New macro.
3348 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3349 functions.
3350
8e260fc0
TT
33512012-08-22 Tom Tromey <tromey@redhat.com>
3352
3353 * auto-load.c (_initialize_auto_load): Update.
3354 * solib-svr4.c (_initialize_svr4_solib): Update
3355 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3356 * solib-darwin.c (_initialize_darwin_solib): Update.
3357 * registry.h: New file.
3358 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3359 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3360 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3361 (register_program_space_data_with_cleanup)
3362 (register_program_space_data, program_space_alloc_data)
3363 (clear_program_space_data, set_program_space_data)
3364 (program_space_data): Don't declare.
3365 * progspace.c: Use DEFINE_REGISTRY.
3366 (struct program_space_data, struct
3367 program_space_data_registration, struct
3368 program_space_data_registry, program_space_data_registry)
3369 (register_program_space_data_with_cleanup)
3370 (register_program_space_data, program_space_alloc_data)
3371 (program_space_free_data, clear_program_space_data)
3372 (set_program_space_data, program_space_data): Remove.
3373 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3374 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3375 (register_objfile_data_with_cleanup, register_objfile_data)
3376 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3377 declare.
3378 * objfiles.c: Use DEFINE_REGISTRY.
3379 (struct objfile_data, struct objfile_data_registration, struct
3380 objfile_data_registry, objfile_data_registry)
3381 (register_objfile_data_with_cleanup, register_objfile_data)
3382 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3383 (set_objfile_data, objfile_data): Remove.
3384 (_initialize_objfiles): Update.
3385 * jit.c (_initialize_jit): Update.
3386 * inflow.c (_initialize_inflow): Update.
3387 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3388 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3389 (register_inferior_data_with_cleanup, register_inferior_data)
3390 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3391 declare.
3392 * inferior.c: Use DEFINE_REGISTRY.
3393 (struct inferior_data, struct inferior_data_registration, struct
3394 inferior_data_registry, inferior_data_registry)
3395 (register_inferior_data_with_cleanup, register_inferior_data)
3396 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3397 (set_inferior_data, inferior_data): Remove.
3398 * auxv.c (_initialize_auxv): Update.
3399 * ada-lang.c (_initialize_ada_language): Update.
3400 * breakpoint.c (_initialize_breakpoint): Update.
3401 * i386-nat.c (i386_use_watchpoints): Update.
3402
ed9eebaf
TT
34032012-08-22 Tom Tromey <tromey@redhat.com>
3404
3405 * exec.c (exec_close, exec_file_attach): Update.
3406 (add_to_section_table): Initialize 'key' field.
3407 (add_target_sections, remove_target_sections): Add 'key' argument.
3408 * exec.h (add_target_sections, remove_target_sections): Add
3409 'key' argument.
3410 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3411 (reload_shared_libraries_1): Update.
3412 * target.h (struct target_section) <key>: New field.
3413
2f2e97fa
TT
34142012-08-22 Tom Tromey <tromey@redhat.com>
3415
3416 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3417
b3dbbd6f
PM
34182012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3419
3420 * symfile.c (allocate_symtab): Use host_address_to_string
3421 function instead of cast of pointer to long which is not
3422 compatible with x86_64-w64-mingw32 build.
3423
f94363d7
AP
34242012-08-19 Andrew Pinski <apinski@cavium.com>
3425
3426 * mips-tdep.c (is_octeon): New function.
3427 (is_octeon_bbit_op): New function.
3428 (mips32_next_pc): Handle Octeon's bbit instructions.
3429 (mips32_instruction_has_delay_slot): Likewise.
3430
78a59c2f
AP
34312012-08-19 Andrew Pinski <apinski@cavium.com>
3432
3433 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3434 before the function.
3435
4f5bcb50
AP
34362012-08-19 Andrew Pinski <apinski@cavium.com>
3437
3438 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3439
e5afdbd7
KS
34402012-08-19 Keith Seitz <keiths@redhat.com>
3441
3442 PR c++/14365
3443 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3444 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3445
13c9750e
EZ
34462012-08-18 Eli Zaretskii <eliz@gnu.org>
3447
3448 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3449 The typo broke "make TAGS".
3450
db761810 34512012-08-17 Joel Brobecker <brobecker@adacore.com>
3452
3453 GDB 7.5 released.
3454
a451cb65
KS
34552012-08-17 Keith Seitz <keiths@redhat.com>
3456
3457 PR c++/13356
3458 * gdbtypes.c (strict_type_checking): New variable.
3459 (show_strict_type_checking): New function.
3460 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3461 if strict type checking is disabled.
3462 (_initialize_gdbtypes): Add "check type" subcommand.
3463 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3464
34652012-08-17 Keith Seitz <keiths@redhat.com>
3466
3467 * language.h (type_mode): Remove.
3468 (type_check): Remove.
3469 (struct language_defn): Remove la_type_check.
3470 (STRICT_TYPE): Remove unused macro.
3471 (type_error): Remove.
3472 * language.c (set_type_range_case): Renamed to ...
3473 (set_range_case): ... this. Update all callers.
3474 Remove type_mode/type_check.
3475 (type_mode): Remove.
3476 (type_check): Remove.
3477 (show_type_command): Remove.
3478 (set_type_command): Remove.
3479 (language_info): Remove type checking output.
3480 (type_error): Remove unused function.
3481 (range_error): Update comment.
3482 (unknown_language_defn): Remove la_type_check.
3483 (auto_language_defn): Likewise.
3484 (local_language_defn): Likewise.
3485 (_initialize_language): Remove "check type" subcommand.
3486 * ada-lang.c (ada_language_defn): Remove la_type_check.
3487 * c-lang.c (c_language_defn): Likewise.
3488 (cplus_language_defn): Likewise.
3489 (asm_language_defn): Likewise.
3490 (minimal_language_defn): Likewise.
3491 * d-lang.c (d_language_defn): Likewise.
3492 * f-lang.c (f_language_defn): Likewise.
3493 * go-lang.c (go_language_defn): Likewise.
3494 * jv-lang.c (java_language_defn): Likewise.
3495 * m2-lang.c (m2_language_defn): Likewise.
3496 * objc-lang.c (objc_language_defn): Likewise.
3497 * opencl-lang.c (opencl_language_defn): Likewise.
3498 * p-lang.c (pascal_language_defn): Likewise.
3499
dbf6a605
MF
35002012-08-16 Mike Frysinger <vapier@gentoo.org>
3501
3502 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3503
973e3cf7
JB
35042012-08-16 Joel Brobecker <brobecker@adacore.com>
3505
3506 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3507 New function.
3508 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3509 using the regache. Use ia64_hpux_get_register_from_save_state_t
3510 to access the bsp and bspstore registers if not.
3511
d80ee84f
JB
35122012-08-16 Joel Brobecker <brobecker@adacore.com>
3513
3514 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3515 * breakpoint.c (detach_breakpoints): Change pid parameter into
3516 a ptid. Adjust code accordingly.
3517 * infrun.c (handle_inferior_event): Delete variable child_pid.
3518 Update call to detach_breakpoints to pass the child ptid for
3519 fork events.
3520 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3521 assert that inferior_ptid's lwp is zero.
3522 (linux_handle_extended_wait): Update call to detach_breakpoints.
3523 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3524 detach_breakpoints.
3525
2dcc6086
JB
35262012-08-16 Joel Brobecker <brobecker@adacore.com>
3527
3528 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3529 parent, only call detach_breakpoints if tts.tts_event ==
3530 TTEVT_VFORK.
3531
0c92d8c1
JB
35322012-08-16 Joel Brobecker <brobecker@adacore.com>
3533
3534 * dwarf2-frame.c (dwarf2_frame_cache): Use
3535 get_frame_address_in_block instead of get_frame_pc as
3536 the bound for executing the frame's FDE.
3537
6b1755ce
YQ
35382012-08-16 Yao Qi <yao@codesourcery.com>
3539
3540 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3541 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3542 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3543 (c_type_print_varspec_suffix): Likewise.
3544 * eval.c (evaluate_subexp_standard): Likewise.
3545 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3546 (f_type_print_varspec_suffix): Likewise.
3547 * gdbtypes.c (is_scalar_type): Likewise.
3548 (recursive_dump_type): Likewise.
3549 * infcall.c (value_arg_coerce): Likewise.
3550 * m2-valprint.c (m2_val_print): Likewise.
3551 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3552 (pascal_type_print_varspec_suffix): Likewise.
3553 (pascal_type_print_base): Likewise.
3554 * p-valprint.c (pascal_val_print): Likewise.
3555 (pascal_val_print): Likewise.
3556 * valops.c (value_slice): Likewise.
3557 * valprint.c (scalar_type_p): Likewise.
3558 * valarith.c (value_bitstring_subscript): Remove.
3559 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3560 Remove comment on TYPE_CODE_BITSTRING.
3561
3562 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3563 TYPE_CODE_BITSTRING.
3564
3565 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3566 slot 0.
3567
8acc4065
YQ
35682012-08-16 Yao Qi <yao@codesourcery.com>
3569
3570 * tracepoint.c (trace_find_none_command): Remove.
3571 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3572
8128fd8e
YQ
35732012-08-16 Yao Qi <yao@codesourcery.com>
3574
3575 * remote.c (handle_notification): Remove parameter 'length'.
3576 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3577
2873700e
KS
35782012-08-15 Keith Seitz <keiths@redhat.com>
3579
3580 * gdbtypes.c (opaque_type_resolution): Make static.
3581 Add missing comment.
3582 (overload_debug): Add missing comment.
3583 (show_opaque_type_resolution): Likewise.
3584 (show_overload_debug): Likewise.
3585 (print_bit_vector): Remove unnecessary forward declaration.
3586 (print_arg_types): Likewise.
3587 (dump_fn_fieldlists): Likewise.
3588 (print_cplus_stuff): Likewise.
3589
b82d08cd
TT
35902012-08-15 Tom Tromey <tromey@redhat.com>
3591
3592 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3593 (gdb_bfd_ref): Initialize new field.
3594 (gdb_bfd_unref): Unref the archive BFD.
3595 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3596 parent archive.
3597
db6573d6
TT
35982012-08-15 Tom Tromey <tromey@redhat.com>
3599
3600 PR python/14387:
3601 * python/py-bpevent.c (create_breakpoint_event_object): Update
3602 comment.
3603 * python/py-event.c (evpy_add_attribute): Update comment.
3604 * python/py-exitedevent.c (create_exited_event_object): Fix
3605 reference counting and error handling.
3606 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3607 Fix reference counting.
3608 * python/py-signalevent.c (create_signal_event_object): Fix
3609 reference counting and error handling.
3610 * python/py-stopevent.c (emit_stop_event): Fix reference
3611 counting.
3612 * python/py-threadevent.c (get_event_thread): Return a
3613 borrowed reference.
3614 * python/py-type.c (convert_field): Fix reference counting.
3615
a036ba48
TT
36162012-08-15 Tom Tromey <tromey@redhat.com>
3617
3618 * dwarf2read.c (dwarf_decode_macro_bytes)
3619 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3620 as hash key.
3621
486c7739
MF
36222012-08-14 Mike Frysinger <vapier@gentoo.org>
3623
3624 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3625 stepi, nexti, finish, next, step, jump, and continue commands.
3626 * infrun.c (_initialize_infrun): Update help text for the handle
3627 command.
3628
4cf93a03
DE
36292012-08-14 Doug Evans <dje@google.com>
3630
70b099cf
DE
3631 * gdbtypes.c (struct extra): Delete, unused.
3632
5212577a
DE
3633 * gdbtypes.c: Whitespace cleanup.
3634 (address_space_name_to_int): Remove "extern" from definition.
3635 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3636
4cf93a03
DE
3637 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3638 TYPE_POINTER_TYPE (type).
3639
3756ef7e
GB
36402012-08-14 Gary Benson <gbenson@redhat.com>
3641
3642 * solib-svr4.c (svr4_free_library_list): Use free_so.
3643
40d72643
MF
36442012-08-13 Mike Frysinger <vapier@gentoo.org>
3645
3646 * .gitignore: Add go-exp.c.
3647
f47f77df
DE
36482012-08-13 Doug Evans <dje@google.com>
3649
3650 * value.c (show_convenience): Tweak comment.
3651 (_initialize_values): Mention convenience functions in the help text
3652 for "show convenience".
3653
7507c54a
YQ
36542012-08-13 Yao Qi <yao@codesourcery.com>
3655
3656 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3657 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3658 TERNOP_SLICE_COUNT.
3659 * eval.c (evaluate_subexp_standard): Likewise.
3660 * expprint.c (print_subexp_standard): Likewise.
3661 (dump_subexp_body_standard): Likewise.
3662 * parse.c (operator_length_standard): Likewise.
3663
5cad9736
YQ
36642012-08-13 Yao Qi <yao@codesourcery.com>
3665
3666 * std-operator.def: Remove OP_BITSTRING.
3667 * breakpoint.c (watchpoint_exp_is_const): Update.
3668 * eval.c (evaluate_subexp_standard): Remove handling to
3669 OP_BITSTRING.
3670 * expprint.c (print_subexp_standard): Likewise.
3671 (dump_subexp_body_standard): Likewise.
3672 * parse.c (operator_length_standard): Likewise.
3673 * valops.c (value_bitstring): Remove.
3674 * value.h: Remove the declaration of 'value_bitstring'.
3675
bad7670a
SDJ
36762012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3677
3678 * linespec.c (find_methods): Remove unused variables `i1' and
3679 `name_len'.
3680 (decode_line_full): Likewise for `arg_start'.
3681
d9dce7fa
SDJ
36822012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3683
3684 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3685 (zlib_decompress_section): Likewise for `section_data'.
3686 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3687
a72c3253
DE
36882012-08-10 Doug Evans <dje@google.com>
3689
3690 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3691 * NEWS: Document them.
3692 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3693 function/strfns.py.
3694 * python/py-type.c (typy_array_1): New function.
3695 (typy_array): Call it.
3696 (typy_vector): New function.
3697 (type_object_methods): Add "vector".
3698 * python/lib/gdb/function/__init__.py: New file.
3699 * python/lib/gdb/function/strfns.py: New file.
3700
200bc880
SP
37012012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3702
3703 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3704 for TYPE_FIELD_BITPOS.
3705 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3706
de0bea00
MF
37072012-08-10 Mike Frysinger <vapier@gentoo.org>
3708
3709 PR cli/10436:
3710 * common/vec.h (VEC_merge): Define.
3711 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3712 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3713 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3714 * completer.c: Include gdb_signals.h.
3715 (signal_completer): Define.
3716 * completer.h (signal_completer): Add prototype.
3717 * infcmd.c (_initialize_infcmd): Assign the command
3718 completer for "signal" to handle_completer.
3719 * infrun.c: Include completer.h.
3720 (handle_completer): Define.
3721 (_initialize_infrun): Declare a new local variable c. Store the
3722 result of add_com("handle") to it. Assign the command
3723 completer for "handle" to handle_completer.
3724
5b9afe8a
YQ
37252012-08-09 Yao Qi <yao@codesourcery.com>
3726
3727 * cli/cli-decode.c (set_cmd_prefix): New.
3728 (lookup_cmd_for_prefixlist): New.
3729 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3730 of each cmd_list_element in *prefixlist.
3731 (add_setshow_cmd_full): set_cmd_prefix.
3732 (add_alias_cmd): Likewise.
3733 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3734 Declare 'auto_boolean_enums'.
3735 * cli/cli-setshow.c: Include "observer.h".
3736 (notify_command_param_changed_p): New.
3737 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3738 Remove 'static'.
3739 (do_setshow_command): Split it to ...
3740 (do_set_command, do_show_command): ... them. New.
3741 (do_set_command): Call observer_notify_command_param_changed if
3742 notify_command_param_changed_p returns true.
3743 (cmd_show_list): Caller update.
3744 * auto-load.c (set_auto_load_cmd): Likewise.
3745 * remote.c (show_remote_cmd): Likewise.
3746 * cli/cli-setshow.h: Update declarations.
3747 * top.c (execute_command): Call do_set_command and do_show_command.
3748
3749 * NEWS: Mention new MI notification.
3750 * mi/mi-interp.c: Declare mi_command_param_changed.
3751 (mi_interpreter_init): Attach mi_command_param_changed to
3752 observer command_param_changed.
3753 (mi_command_param_changed): New.
3754 Remove mi_suppress_breakpoint_notifications.
3755 Define global variable mi_suppress_notification.
3756 (mi_breakpoint_created): Update.
3757 (mi_breakpoint_deleted): Likewise.
3758 (mi_breakpoint_modified): Likewise.
3759 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3760 'gdb-set' and set mi_suppress_notification.
3761 * mi/mi-main.h: (mi_suppress_notification): New struct.
3762
1969df89
JK
37632012-08-09 Andreas Tobler <andreast@fgznet.ch>
3764 Jan Kratochvil <jan.kratochvil@redhat.com>
3765
3766 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3767
8bfd80db
YQ
37682012-08-09 Yao Qi <yao@codesourcery.com>
3769
3770 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3771 (skiplist): Move it to skip.c.
3772 (init_cmd_lists): Remove code setting enablebreaklist and
3773 skiplist to NULL.
3774 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3775 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3776 skiplist.
3777 * gdbcmd.h: Likewise.
3778 * skip.c (_initialize_step_skip): Move 'skiplist' from
3779 cli/cli-cmds.c.
3780
28578e6b
YQ
37812012-08-09 Yao Qi <yao@codesourcery.com>
3782
3783 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3784 * gnu-nat.c, symfile.c: Likewise.
3785
260c0b2a
DE
37862012-08-08 Aaron Gamble <agamble@google.com>
3787
3788 * utils.c (prompt_for_continue_wait_time): New static global.
3789 (make_command_stats_cleanup): Initialize it.
3790 (report_command_stats): Subtract time waiting for user.
3791 (prompt_for_continue): Track time waiting for user.
3792 (defaulted_query): Track time waiting for user.
3793
4f485ebc
DE
37942012-08-08 Doug Evans <dje@google.com>
3795
3796 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3797 UNOP_MEMVAL_TYPE.
3798 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3799 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3800 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3801 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3802 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3803 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3804 elt.
3805 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3806 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3807 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3808 (dump_prefix_expression): Handle OP_TYPE.
3809
2acf2b39
KS
38102012-08-08 Keith Seitz <keiths@redhat.com>
3811
3812 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3813 addr_start.
3814
e6712ff1
DE
38152012-08-08 Doug Evans <dje@google.com>
3816
3817 * linux-thread-db.c: #include "gdb_vecs.h".
3818 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3819 updated.
3820 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3821 (thread_db_load_search): Use a vector to iterate over path elements.
3822 Handle text appearing after "$pdir".
3823
3824 * gdb_string.h: Moved to ...
3825 * common/gdb_string.h: ... here.
3826 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3827 gdb_string.h and gdb_assert.h.
3828
ab854e54
YQ
38292012-08-08 Yao Qi <yao@codesourcery.com>
3830
3831 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3832 (tic6x_value_to_register): Likewise.
3833 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3834 and set_gdbarch_value_to_register.
3835
4f69f4c2
JK
38362012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3837 Jean-Marc Saffroy <saffroy@gmail.com>
3838
3839 PR 11804
3840 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3841 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3842 * gcore.c (gcore_create_callback): New function comment. Add modified
3843 parameter. Only write modified regions. Set SEC_READONLY exactly
3844 according to MODIFIED.
3845 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3846 the passed modified value to FUNC.
3847 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3848 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3849 first. New variables modified and has_anonymous. Parse the lines of
3850 smaps file. Add the passed MODIFIED value to FUNC.
3851 * procfs.c (find_memory_regions_callback): Add the passed modified
3852 value.
3853
78ac5f83
TT
38542012-08-06 Tom Tromey <tromey@redhat.com>
3855
3856 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3857 (dwarf2_frame_cache): Use it.
3858 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3859 cache initialization constraint.
3860
2c12abee
TT
38612012-08-06 Tom Tromey <tromey@redhat.com>
3862
3863 PR python/14386:
3864 * varobj.c (update_dynamic_varobj_children): Don't call
3865 PyIter_Check.
3866
4979d7f0
TT
38672012-08-06 Tom Tromey <tromey@redhat.com>
3868
3869 PR cli/14392:
3870 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3871
f3c8a52a
JK
38722012-08-06 Nathaniel Flath <flat0103@gmail.com>
3873
3874 * NEWS: New entry for 'cd' default parameters.
3875 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3876
5a1cf4d6
TT
38772012-08-03 Tom Tromey <tromey@redhat.com>
3878
3879 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3880 return.
3881
7c3270ae
UW
38822012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3883
3884 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3885 to attempting lseek/write.
3886 (inf_child_fileio_pread): Likewise for pread.
3887
ccce17b0
YQ
38882012-08-02 Yao Qi <yao@codesourcery.com>
3889
3890 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3891 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3892 add_setshow_zinteger_cmd.
3893 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3894 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3895 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3896 instead of add_setshow_zinteger_cmd.
3897 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3898 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3899 instead of add_setshow_zinteger_cmd.
3900 * frame.c (frame_debug): Add 'unsigned'.
3901 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3902 add_setshow_zinteger_cmd.
3903 * frame.h: Update the declaration of 'frame_debug'.
3904 * gdbtypes.c (overload_debug): Add 'unsigned'.
3905 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3906 add_setshow_zinteger_cmd.
3907 * inferior.h: Update declaration of 'debug_infrun'.
3908 * infrun.c (debug_infrun): Add 'unsigned'.
3909 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3910 add_setshow_zinteger_cmd.
3911 * jit.c (jit_debug): Add 'unsigned'.
3912 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3913 add_setshow_zinteger_cmd.
3914 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3915 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3916 instead of add_setshow_zinteger_cmd.
3917 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3918 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3919 add_setshow_zinteger_cmd.
3920 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3921 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3922 instead of add_setshow_zinteger_cmd.
3923 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3924 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3925 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3926 intead of add_setshow_zinteger_cmd.
3927 * mips-tdep.c (mips_debug): Add 'unsigned'.
3928 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3929 instead of add_setshow_zinteger_cmd.
3930 * monitor.c (monitor_debug): Add 'unsigned'.
3931 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3932 add_setshow_zinteger_cmd.
3933 * observer.c (observer_debug): Add 'unsigned'.
3934 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3935 add_setshow_zinteger_cmd.
3936 * parse.c (expressiondebug): Add 'unsigned'.
3937 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3938 add_setshow_zinteger_cmd.
3939 * record.c (record_debug): Add 'unsigned'.
3940 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3941 add_setshow_zinteger_cmd.
3942 * record.h: Update the declaration of 'record_debug'.
3943 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3944 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3945 add_setshow_zinteger_cmd.
3946 * serial.c (global_serial_debug_p): Add 'unsigned'.
3947 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3948 add_setshow_zinteger_cmd.
3949 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3950 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3951 add_setshow_zinteger_cmd.
3952 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3953 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3954 add_setshow_zinteger_cmd.
3955 * target.c (targetdebug): Add 'unsigned'.
3956 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3957 add_setshow_zinteger_cmd.
3958 * valops.c (overload_debug): Add 'unsigned'.
3959 * varobj.c (varobjdebug): Add 'unsigned'.
3960 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3961 add_setshow_zinteger_cmd.
3962 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3963 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3964 instead of add_setshow_zinteger_cmd.
3965
3966 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3967 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3968 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3969 instead of add_setshow_zinteger_cmd.
3970 * gdbarch.c, gdbarch.h: Re-generated.
3971
95b07c96
YQ
39722012-08-02 Yao Qi <yao@codesourcery.com>
3973
3974 * nto-tdep.c: Don't include cli/cli-decode.h and
3975 cli/cli-cmds.h.
3976 (_initialize_nto_tdep): Remove.
3977 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3978 Remove field.
3979 Remove macro nto_internal_debugging.
3980
57295b0b
RH
39812012-08-01 Richard Henderson <rth@redhat.com>
3982
3983 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3984 (mep-*-*) [gdb_target_obs]: Likewise.
3985
f782ad9b
AS
39862012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3987
3988 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3989 linux_get_siginfo_type.
3990
a14dd77e
JK
39912012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3992
3993 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3994 AT_ENTRY_POINT.
3995 (call_function_by_hand) <ON_STACK>: Call write_memory with
3996 gdbarch_breakpoint_from_pc, if possible.
3997 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3998 here.
3999
1467929f
YQ
40002012-07-31 Yao Qi <yao@codesourcery.com>
4001
4002 * tracepoint.c: Add 'static' for some variables.
4003
70976b65
YQ
40042012-07-31 Yao Qi <yao@codesourcery.com>
4005
4006 * go32-nat.c: Declare _initialize_go32_nat.
4007 * ser-go32.c: Declare _initialize_ser_dos.
4008 * top.c (do_chdir_cleanup): Add 'static'.
4009
eff9c3e6
KS
40102012-07-30 Keith Seitz <keiths@redhat.com>
4011
4012 * linespec.c (linespec_lex_number): A number followed
4013 by quotes is a valid number, too.
4014
728400d7
TT
40152012-07-30 Tom Tromey <tromey@redhat.com>
4016
4017 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
4018
fcf303ab
UW
40192012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
4020
4021 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
4022 attempt to 4-byte-align HW breakpoint addresses for Thumb.
4023
4e969b4f
AB
40242012-07-30 Andrew Burgess <aburgess@broadcom.com>
4025
4026 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
4027 invalid or reevaluated to prevent prevent references to possibly
4028 delete'd type objects being left in the varobj.
4029
c4bfde41
JK
40302012-07-27 Tom Tromey <tromey@redhat.com>
4031 Jan Kratochvil <jan.kratochvil@redhat.com>
4032
4033 * copying.awk: Print buffer-read-only and vi ro markers.
4034 * copying.c: Rebuild.
4035 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
4036 * gdbarch.c, gdbarch.h: Rebuild.
4037 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
4038 buffer-read-only and vi ro markers.
4039 * features/arm-with-iwmmxt.c: Rebuild.
4040 * features/arm-with-m-fpa-layout.c: Rebuild.
4041 * features/arm-with-m-vfp-d16.c: Rebuild.
4042 * features/arm-with-m.c: Rebuild.
4043 * features/arm-with-neon.c: Rebuild.
4044 * features/arm-with-vfpv2.c: Rebuild.
4045 * features/arm-with-vfpv3.c: Rebuild.
4046 * features/i386/amd64-avx-linux.c: Rebuild.
4047 * features/i386/amd64-avx.c: Rebuild.
4048 * features/i386/amd64-linux.c: Rebuild.
4049 * features/i386/amd64.c: Rebuild.
4050 * features/i386/i386-avx-linux.c: Rebuild.
4051 * features/i386/i386-avx.c: Rebuild.
4052 * features/i386/i386-linux.c: Rebuild.
4053 * features/i386/i386-mmx-linux.c: Rebuild.
4054 * features/i386/i386-mmx.c: Rebuild.
4055 * features/i386/i386.c: Rebuild.
4056 * features/i386/x32-avx-linux.c: Rebuild.
4057 * features/i386/x32-avx.c: Rebuild.
4058 * features/i386/x32-linux.c: Rebuild.
4059 * features/i386/x32.c: Rebuild.
4060 * features/mips-dsp-linux.c: Rebuild.
4061 * features/mips-linux.c: Rebuild.
4062 * features/mips64-dsp-linux.c: Rebuild.
4063 * features/mips64-linux.c: Rebuild.
4064 * features/rs6000/powerpc-32.c: Rebuild.
4065 * features/rs6000/powerpc-32l.c: Rebuild.
4066 * features/rs6000/powerpc-403.c: Rebuild.
4067 * features/rs6000/powerpc-403gc.c: Rebuild.
4068 * features/rs6000/powerpc-405.c: Rebuild.
4069 * features/rs6000/powerpc-505.c: Rebuild.
4070 * features/rs6000/powerpc-601.c: Rebuild.
4071 * features/rs6000/powerpc-602.c: Rebuild.
4072 * features/rs6000/powerpc-603.c: Rebuild.
4073 * features/rs6000/powerpc-604.c: Rebuild.
4074 * features/rs6000/powerpc-64.c: Rebuild.
4075 * features/rs6000/powerpc-64l.c: Rebuild.
4076 * features/rs6000/powerpc-7400.c: Rebuild.
4077 * features/rs6000/powerpc-750.c: Rebuild.
4078 * features/rs6000/powerpc-860.c: Rebuild.
4079 * features/rs6000/powerpc-altivec32.c: Rebuild.
4080 * features/rs6000/powerpc-altivec32l.c: Rebuild.
4081 * features/rs6000/powerpc-altivec64.c: Rebuild.
4082 * features/rs6000/powerpc-altivec64l.c: Rebuild.
4083 * features/rs6000/powerpc-cell32l.c: Rebuild.
4084 * features/rs6000/powerpc-cell64l.c: Rebuild.
4085 * features/rs6000/powerpc-e500.c: Rebuild.
4086 * features/rs6000/powerpc-e500l.c: Rebuild.
4087 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
4088 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
4089 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
4090 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
4091 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
4092 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
4093 * features/rs6000/powerpc-vsx32.c: Rebuild.
4094 * features/rs6000/powerpc-vsx32l.c: Rebuild.
4095 * features/rs6000/powerpc-vsx64.c: Rebuild.
4096 * features/rs6000/powerpc-vsx64l.c: Rebuild.
4097 * features/rs6000/rs6000.c: Rebuild.
4098 * features/s390-linux32.c: Rebuild.
4099 * features/s390-linux32v1.c: Rebuild.
4100 * features/s390-linux32v2.c: Rebuild.
4101 * features/s390-linux64.c: Rebuild.
4102 * features/s390-linux64v1.c: Rebuild.
4103 * features/s390-linux64v2.c: Rebuild.
4104 * features/s390x-linux64.c: Rebuild.
4105 * features/s390x-linux64v1.c: Rebuild.
4106 * features/s390x-linux64v2.c: Rebuild.
4107 * features/tic6x-c62x-linux.c: Rebuild.
4108 * features/tic6x-c62x.c: Rebuild.
4109 * features/tic6x-c64x-linux.c: Rebuild.
4110 * features/tic6x-c64x.c: Rebuild.
4111 * features/tic6x-c64xp-linux.c: Rebuild.
4112 * features/tic6x-c64xp.c: Rebuild.
4113
826f0041
TT
41142012-07-27 Tom Tromey <tromey@redhat.com>
4115
4116 * c-exp.y (classify_name): Avoid assignment in condition.
4117
84552b16
PA
41182012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
4119
4120 * amd64-windows-tdep.c: Include "frame.h".
4121 (amd64_windows_skip_trampoline_code): New function.
4122 (amd64_windows_init_abi): Add trampoline registration.
4123
a8a64aa8
YQ
41242012-07-27 Yao Qi <yao@codesourcery.com>
4125
4126 * tracepoint.c (cur_traceframe_number): Remove.
4127 (set_tfile_traceframe): Remove.
4128 (tfile_trace_find, tfile_fetch_registers): Update callers.
4129 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4130 (tfile_open, tfile_trace_find): Likewise.
4131
d99067cb
YQ
41322012-07-27 Yao Qi <yao@codesourcery.com>
4133
4134 * thread.c (switch_to_thread): Don't call registers_changed.
4135
f2e8016f
TT
41362012-07-26 Tom Tromey <tromey@redhat.com>
4137
f782ad9b
AS
4138 * Makefile.in (SFILES): Remove objc-exp.y.
4139 (YYFILES): Remove objc-exp.c.
4140 (YYOBJ): Remove objc-exp.o.
4141 (local-maintainer-clean): Don't mention objc-exp.c.
4142 * c-exp.y: Include objc-lang.h.
4143 (%union) <class>: New field.
4144 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4145 (exp): Clone subscript production for OBJC_LBRAC. Add various
4146 Objective C productions.
4147 (msglist, msgarglist, msgarg): New productions.
4148 (array_mod, func_mod, operator): Clone productions for
4149 OBJC_LBRAC.
4150 (parse_string_or_char): Handle '@' strings.
4151 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4152 (classify_name): Check la_name_of_this. Recognize ObjC class
4153 names.
4154 * objc-exp.y: Remove.
4155 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4156 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 4157
f66713d2
JK
41582012-07-26 Markus Metzger <markus.t.metzger@intel.com>
4159
4160 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4161
7cfe01b4
JK
41622012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
4163
4164 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4165 and decrement.
4166
5ba19b4c
TT
41672012-07-26 Tom Tromey <tromey@redhat.com>
4168
4169 * copying.c: Rebuild.
4170 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4171 'no_class'.
4172
27618ce4
TT
41732012-07-26 Tom Tromey <tromey@redhat.com>
4174
4175 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4176 immediate_quit.
4177 (print_objfile_statistics): Likewise.
4178 (maintenance_print_symbols): Likewise.
4179 (maintenance_print_msymbols): Likewise.
4180 (maintenance_print_objfiles): Likewise.
4181 * psymtab.c (print_partial_symbols): Call QUIT.
4182 (maintenance_print_psymbols): Likewise. Don't modify
4183 immediate_quit.
4184 * copying.c (show_copying_command): Don't modify immediate_quit.
4185 (show_warranty_command): Likewise.
4186 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4187
dd3818c8
KS
41882012-07-26 Keith Seitz <keiths@redhat.com>
4189
4190 * linespec.c (linespec_lexer_lex_number): The input
4191 is also a valid number if the next character is a comma
4192 or colon.
4193
23a80689
JB
41942012-07-26 Joel Brobecker <brobecker@adacore.com>
4195
4196 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4197 configure options.
4198
29f77997
TG
41992012-07-26 Tristan Gingold <gingold@adacore.com>
4200
4201 * machoread.c: Include gdb_bfd.h.
4202
a55c1f32
TG
42032012-07-26 Tristan Gingold <gingold@adacore.com>
4204
4205 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4206 offset.
4207
56eb65bd
SP
42082012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4209
4210 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4211 SIZE to size_t.
4212 (dwarf2_evaluate_loc_desc): Likewise.
4213 (dwarf2_loc_desc_needs_frame): Likewise.
4214 (locexpr_describe_location_1): Likewise.
4215 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4216 size_t.
4217 (struct dwarf2_loclist_baton): Likewise.
4218 * dwarf2read.c (struct dwarf_block): Likewise.
4219 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4220 (decode_locdesc): Expand SIZE and I to size_t.
4221
aec8845c
JK
42222012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4223
4224 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4225
33d7655b
JB
42262012-07-25 Joel Brobecker <brobecker@adacore.com>
4227
4228 * doublest.c (convert_doublest_to_floatformat): If the exponent
4229 is too small, treat the value as zero. If the exponent is too
4230 large, treat the value as infinity.
4231
a22d44ff
JB
42322012-07-25 Joel Brobecker <brobecker@adacore.com>
4233
4234 * configure.ac: Add --enable-lmcheck configure option.
4235 * configure: Regenerate.
4236
d6b28940
TT
42372012-07-25 Tom Tromey <tromey@redhat.com>
4238
f782ad9b
AS
4239 * NEWS: Mention maint info bfds.
4240 * gdb_bfd.c (all_bfds): New global.
4241 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4242 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4243 New functions.
d6b28940 4244
6e73ba20
RC
42452012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4246
4247 * configure.tgt: Add v850*-*-rtems*.
4248
d560eebd
TT
42492012-07-25 Tom Tromey <tromey@redhat.com>
4250
4251 * macrotab.c (macro_bcache_str): Remove cast.
4252
d7cbec71
HZ
42532012-07-25 Hui Zhu <hui_zhu@mentor.com>
4254
4255 * linespec.c (linespec_lexer_lex_number): Update comments,
4256 change the return and add check to make sure the input is
4257 the decimal numbers.
4258 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4259 false, call linespec_lexer_lex_string.
4260
882f447f
TT
42612012-07-24 Tom Tromey <tromey@redhat.com>
4262
4263 * symfile.c (symbol_file_add): Don't open BFD twice.
4264
53ab4066 42652012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
4266
4267 * breakpoint.c (create_breakpoint): Store condition for pending
4268 breakpoints.
4269
108fb0f7
AS
42702012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4271
4272 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4273 (m68k_return_value): Handle complex types like structures.
4274 (m68k_svr4_return_value): Likewise.
4275
1634dcbe
JK
42762012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4277
4278 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4279 parameters to bfd_get_section_name.
4280
e2d12c21
YQ
42812012-07-24 Yao Qi <yao@codesourcery.com>
4282
4283 * cli/cli-setshow.c: Handle case 'var_uinteger'
4284 and 'var_zuninteger' together. Handle case 'var_integer' and
4285 'var_zinteger' together.
4286
64b92e45
KS
42872012-07-23 Keith Seitz <keiths@redhat.com>
4288
4289 * linespec.c (convert_linespec_to_sal): Don't add
4290 any symbols to the result vector if symbol_to_sal
4291 returns zero.
4292
0f5f4ffe
KS
42932012-07-23 Keith Seitz <keiths@redhat.com>
4294
4295 * linespec.c (decode_objc): Record the function name
4296 in the linespec.
4297
da1cc82f
TT
42982012-07-23 Tom Tromey <tromey@redhat.com>
4299
4300 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4301 counting.
4302 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4303 (map_vmap): Acquire a reference to the BFD.
4304
6c18f3e0
SP
43052012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4306
4307 * p-valprint.c (pascal_object_print_value): Replace potentially
4308 unsafe alloca with xmalloc/xfree.
4309 * valops.c (search_struct_method): Likewise.
4310
695c3173
TT
43112012-07-23 Tom Tromey <tromey@redhat.com>
4312
4313 * solib-svr4.c (enable_break): Update.
4314 * bfd-target.h (target_bfd_reopen): Update documentation.
4315
08d2cd74
TT
43162012-07-23 Tom Tromey <tromey@redhat.com>
4317
4318 * symfile.c (separate_debug_file_exists): Update.
4319 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4320 (reread_symbols): Update.
4321 * elfread.c (build_id_verify): Update.
4322 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4323 bfd_open_maybe_remote.
4324
596f7d67
TT
43252012-07-23 Tom Tromey <tromey@redhat.com>
4326
4327 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4328
8ac244b4
TT
43292012-07-23 Tom Tromey <tromey@redhat.com>
4330
4331 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4332 and 'abfd'.
4333 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4334 and 'abfd'.
4335 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4336 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4337 'abfd'.
4338 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4339 * objfiles.c (allocate_objfile): Acquire a new reference.
4340 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4341 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4342 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4343 a cleanup for 'nbfd'.
4344 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4345 for 'nbfd'.
4346 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4347 make a cleanup for 'abfd'.
4348 (symbol_file_add): Make a BFD cleanup.
4349
64c31149
TT
43502012-07-23 Tom Tromey <tromey@redhat.com>
4351
4352 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4353 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4354 * corelow.c (core_open): Use gdb_bfd_fopen.
4355 * dsrec.c (load_srec): Use gdb_bfd_openr.
4356 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4357 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4358 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4359 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4360 (gdb_bfd_fdopenr): New functions.
4361 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4362 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4363 (gdb_bfd_fdopenr): Declare.
4364 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4365 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4366 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4367 gdb_bfd_openr_next_archived_file.
4368 (macho_check_dsym): Use gdb_bfd_openr.
4369 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4370 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4371 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4372 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4373 gdb_bfd_openr.
4374 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4375 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4376 gdb_bfd_openr_next_archived_file.
4377 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4378 Use gdb_bfd_openr.
4379 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4380 gdb_bfd_openr.
4381 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4382 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4383 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4384 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4385 (symfile_bfd_open): Use gdb_bfd_fopen.
4386 (generic_load): Use gdb_bfd_openr.
4387 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4388
520b0001
TT
43892012-07-23 Tom Tromey <tromey@redhat.com>
4390
4391 * bfd-target.c (target_bfd_reopen): Update.
4392 * cli/cli-dump.c (bfd_openr_with_cleanup)
4393 (bfd_openw_with_cleanup): Update.
4394 * corelow.c (core_open): Update.
4395 * dsrec.c (load_srec): Update.
4396 * exec.c (exec_file_attach): Update.
4397 * gcore.c (create_gcore_bfd): Update.
4398 * gdb_bfd.c (gdb_bfd_ref): Return void.
4399 (gdb_bfd_open): Update.
4400 * gdb_bfd.h (gdb_bfd_ref): Return void.
4401 Update comments.
4402 * jit.c (jit_bfd_try_read_symtab): Update.
4403 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4404 * machoread.c (macho_symfile_read_all_oso): Update.
4405 (macho_check_dsym): Update.
4406 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4407 * remote-m32r-sdi.c (m32r_load): Update.
4408 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4409 * rs6000-nat.c (add_vmap): Update.
4410 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4411 Update.
4412 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4413 * solib-spu.c (spu_bfd_open): Update.
4414 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4415 * spu-linux-nat.c (spu_bfd_open): Update.
4416 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4417 (generic_load): Update.
4418 * windows-nat.c (windows_make_so): Update.
4419
2322ff16
SP
44202012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4421
4422 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4423
3def0b36
PA
44242012-07-20 Jeff Kenton <jkenton@tilera.com>
4425
4426 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4427 SIGTRAMP_FRAME unwinding.
4428
e615022a
DE
44292012-07-20 Doug Evans <dje@google.com>
4430
4431 * NEWS: Document new options "set/show use-deprecated-index-sections",
4432 and delete reference to --use-deprecated-index-sections.
4433 * symfile.h (use_deprecated_index_sections): Delete.
4434 * dwarf2read.c (use_deprecated_index_sections): Make static.
4435 (read_index_from_section): Update wording of how to load
4436 deprecated index sections.
4437 (_initialize_dwarf2_read): New options
4438 "set/show use-deprecated-index-sections".
4439 * main.c (captured_main): Delete --use-deprecated-index-sections.
4440
64776a0b
PA
44412012-07-20 Pedro Alves <palves@redhat.com>
4442
4443 PR threads/11692
4444 PR gdb/12203
4445
4446 * infrun.c (handle_inferior_event) <new thread>: Don't special
4447 case minus_one_ptid.
4448 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4449 * linux-thread-db.c (thread_get_info_callback): Don't return early
4450 if the thread is zombie.
4451 (thread_from_lwp): Change return type to void. Rewrite stale
4452 comment.
4453 (attach_thread): Don't return early if the thread is zombie,
4454 instead set its "dying" flag.
4455 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4456 (find_new_threads_callback): Don't return early if the thread is
4457 zombie.
4458
09826ec5
PA
44592012-07-20 Pedro Alves <palves@redhat.com>
4460
4461 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4462 * target.c (target_wait): Likewise.
4463 (str_comma_list_concat_elem, do_option, target_options_to_string):
4464 New functions.
4465 * target.h (target_options_to_string): Declare.
4466
f7a35f02
TT
44672012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4468 Tom Tromey <tromey@redhat.com>
4469
4470 * dwarf2read.c (dwarf_decode_macros)
4471 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4472 DW_MACRO_GNU_transparent_include_alt>: New cases.
4473 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4474 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4475
b81e1ee0
TT
44762012-07-20 Tom Tromey <tromey@redhat.com>
4477
4478 * dwarf2read.c (try_open_dwo_file): Don't call
4479 gdb_bfd_stash_filename.
4480
99c1624c
PA
44812012-07-20 Pedro Alves <palves@redhat.com>
4482
4483 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4484 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4485 (i386_process_record): Tweak description comments.
4486
4ffa4fc7
PA
44872012-07-20 Pedro Alves <palves@redhat.com>
4488
4489 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4490 (i386_process_record): Use record_read_memory.
4491 * record.c (record_read_memory): New function.
4492 (record_arch_list_add_mem, record_exec_insn): Use
4493 record_read_memory.
4494 * record.h (record_read_memory): Declare.
4495
c24343e2
YQ
44962012-07-20 Yao Qi <yao@codesourcery.com>
4497
4498 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4499 NULL for xfree.
4500
90f47860
PA
45012012-07-19 Pedro Alves <palves@redhat.com>
4502
4503 * record.c (record_resume): Ask the target beneath to report all
4504 signals.
4505
01093045
DE
45062012-07-19 Doug Evans <dje@google.com>
4507
4508 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4509 there's no section at address zero.
4510 (dwarf2_record_block_ranges): Ditto.
4511
a7c3d162
YQ
45122012-07-19 Yao Qi <yao@codesourcery.com>
4513
4514 * command.h, remote.c: Fix a typo in comment.
4515
608b4967
TT
45162012-07-19 Tom Tromey <tromey@redhat.com>
4517
4518 PR exp/13206:
4519 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4520 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4521 OP_DECLTYPE>: New cases.
4522 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4523 (type_exp): Add new productions.
4524 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4525 and decltype.
4526 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4527 New case.
4528 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4529 OP_DECLTYPE>: New case.
4530 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4531 New case.
4532 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4533 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4534
274b54d7
TT
45352012-07-19 Tom Tromey <tromey@redhat.com>
4536
4537 * c-exp.y (enum token_flags): New.
4538 (struct token) <cxx_only>: Remove.
4539 <flags>: New field.
4540 (tokentab3, tokentab2, ident_tokens): Update.
4541 (lex_one_token): Update. Handle FLAG_SHADOW.
4542
9eaf6705
TT
45432012-07-19 Tom Tromey <tromey@redhat.com>
4544
4545 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4546 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4547 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4548 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4549 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4550 type_exp production where appropriate.
4551 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4552 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4553 <UNOP_MEMVAL_TYPE>: New case.
4554 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4555 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4556 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4557 <UNOP_MEMVAL_TYPE>: New case.
4558 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4559 UNOP_REINTERPRET_CAST>: Update.
4560 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4561 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4562 UNOP_REINTERPRET_CAST>: Update.
4563 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4564 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4565 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4566 constants.
4567
6ace3df1
YQ
45682012-07-19 Yao Qi <yao@codesourcery.com>
4569 Jan Kratochvil <jan.kratochvil@redhat.com>
4570
4571 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4572 and case 'var_optional_filename' together.
4573 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4574 instead of add_setshow_optional_filename_cmd for setshow command
4575 'args'. Set completer for 'set args'.
4576
48faced0
DE
45772012-07-18 Doug Evans <dje@google.com>
4578
4579 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4580 * common/gdb_vecs.c: New file, contents from utils.c.
4581 * common/host-defs.h: New file, contents from defs.h.
4582 * utils.h: New file, contents from defs.h.
4583 * defs.h: Move all declarations of objects defined in utils.c
4584 to utils.h (except QUIT() and related).
4585 #include "utils.h", "host-defs.h".
4586 * probe.h (probe_p): Move here from gdb_vecs.h.
4587 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4588 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4589 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4590 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4591 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4592 (COMMON_OBS): Add gdb_vecs.o.
4593 (gdb_vecs.o): New rule.
4594
66f1999b
KS
45952012-07-18 Keith Seitz <keiths@redhat.com>
4596
4597 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4598 parameter. If non-zero, use SYMNAME as the canonical name
4599 for the SaL.
4600 Update all callers.
4601 (convert_linespec_to_sals): Use add_sal_to_sals for
4602 expressions, too.
4603 (decode_line_full): No need to "fill in missing canonical names"
4604 anymore. Simply make cleanups for the allocated names.
4605
5d94e27b
KS
46062012-07-18 Keith Seitz <keiths@redhat.com>
4607
4608 * linespec.c (struct linespec): Constify expression,
4609 source_filename, function_name, and label_name.
4610 (symbol_not_found_error): Make all parameters const.
4611 (linespec_parser_delete): No need to check for NULL
4612 when using xfree. Cast const char * to char * for xfree.
4613
af4908ba
KS
46142012-07-18 Keith Seitz <keiths@redhat.com>
4615
4616 * breakpoint.c (invalid_thread_id_error): New function.
4617 (find_condition_and_thread): Use invalid_thread_id_error.
4618 (watch_command_1): Likewise.
4619
853254db
TT
46202012-07-18 Tom Tromey <tromey@redhat.com>
4621
4622 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4623 * contrib/cc-with-tweaks.sh: New file.
4624
2ec9a5e0
TT
46252012-07-18 Tom Tromey <tromey@redhat.com>
4626
4627 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4628 (locate_dwz_sections): Recognize .gdb_index.
4629 (create_cus_from_index_list): New function.
4630 (create_cus_from_index): Use it. Handle .dwz data.
4631 (read_index_from_section): New function, extracted from
4632 dwarf2_read_index.
4633 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4634 if needed.
4635
36586728
TT
46362012-07-18 Tom Tromey <tromey@redhat.com>
4637
4638 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4639 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4640 <is_dwz>: New field.
4641 (struct dwz_file): New.
4642 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4643 (locate_dwz_sections, dwarf2_get_dwz_file)
4644 (get_abbrev_section_for_cu): New functions.
4645 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4646 (read_and_check_type_unit_head): Add abbrev_section argument.
4647 (create_debug_types_hash_table): Update.
4648 (init_cutu_and_read_dies): Use proper abbrev section.
4649 (init_cutu_and_read_dies_no_follow): Likewise.
4650 (set_partial_user): Do nothing if PST==NULL.
4651 (read_comp_units_from_section): New function.
4652 (create_all_comp_units): Use it.
4653 (scan_partial_symbols, partial_die_parent_scope): Update.
4654 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4655 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4656 (find_partial_die): Add offset_in_dwz argument. Update.
4657 (guess_partial_die_structure_name, fixup_partial_die): Update.
4658 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4659 DW_FORM_GNU_strp_alt.
4660 (read_indirect_string_from_dwz): New function.
4661 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4662 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4663 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4664 (follow_die_offset): Add offset_in_dwz argument.
4665 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4666 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4667 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4668 Handle new macro forms.
4669 (dwarf_decode_macros): Update.
4670 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4671 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4672 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4673 (create_debug_types_hash_table): Use correct abbrev section.
4674 (get_debug_line_section): New function.
4675 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4676 (process_full_comp_unit): Pass 'required' argument to
4677 end_symtab_get_static_block.
4678 * buildsym.h (end_symtab_get_static_block): Update.
4679 * buildsym.c (end_symtab_get_static_block): Add 'required'
4680 argument.
4681 (end_symtab, end_expandable_symtab): Update.
4682
4bf44c1c
TT
46832012-07-18 Tom Tromey <tromey@redhat.com>
4684
4685 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4686 (pagesize): Remove.
4687 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4688 (zlib_decompress_section): Remove.
4689 (dwarf2_read_section): Use gdb_bfd_map_section.
4690 (munmap_section_buffer): Remove.
4691 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4692 munmap_section_buffer.
4693 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4694 (struct gdb_bfd_section_data): New.
4695 (free_one_bfd_section): New function.
4696 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4697 (get_section_descriptor, zlib_decompress_section)
4698 (gdb_bfd_map_section): New functions.
4699 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4700
bb397797
TT
47012012-07-18 Tom Tromey <tromey@redhat.com>
4702
4703 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4704
6ec53d05
TT
47052012-07-18 Tom Tromey <tromey@redhat.com>
4706
4707 * gdb_bfd.c (struct gdb_bfd_data): New.
4708 (gdb_bfd_cache): New global.
4709 (struct gdb_bfd_cache_search): New.
4710 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4711 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4712 * gdb_bfd.h (gdb_bfd_open): Declare.
4713
f9a062ff
TT
47142012-07-18 Tom Tromey <tromey@redhat.com>
4715
4716 * utils.c (make_cleanup_bfd_unref): Rename from
4717 make_cleanup_bfd_close.
4718 * defs.h (make_cleanup_bfd_unref): Rename from
4719 make_cleanup_bfd_close.
4720 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4721 (bfd_openw_with_cleanup): Update.
4722 * corelow.c (core_open): Update.
4723 * dsrec.c (load_srec): Update.
4724 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4725 * remote-m32r-sdi.c (m32r_load): Update.
4726 * remote-mips.c (mips_load_srec): Update.
4727 (pmon_load_fast): Update.
4728 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4729 Update.
4730 (darwin_bfd_open): Update.
4731 * solib.c (solib_bfd_fopen): Update.
4732 * symfile-mem.c (symbol_file_add_from_memory): Update.
4733 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4734 (symfile_bfd_open): Update.
4735 (generic_load): Update.
4736
d6ad71ba
TT
47372012-07-18 Tom Tromey <tromey@redhat.com>
4738
4739 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4740 (pmon_load_fast): Likewise.
4741 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4742 (m32r_upload_command): Likewise.
4743 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4744 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4745 Use make_cleanup_bfd_close.
4746
a4453b7e
TT
47472012-07-18 Tom Tromey <tromey@redhat.com>
4748
4749 * symfile.c (symfile_bfd_open): Don't copy name. Call
4750 gdb_bfd_stash_filename.
4751 (load_command): Open the new BFD before freeing the old.
4752 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4753 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4754 Call gdb_bfd_stash_filename.
4755 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4756 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4757 gdb_bfd_stash_filename.
4758 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4759 Free found_pathname.
4760 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4761 gdb_bfd_stash_filename.
4762 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4763 * machoread.c (macho_add_oso_symfile): Call
4764 gdb_bfd_stash_filename.
4765 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4766 gdb_bfd_stash_filename.
4767 (macho_check_dsym): Don't copy filename. Call
4768 gdb_bfd_stash_filename.
4769 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4770 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4771 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4772 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4773 * exec.c (exec_close): Don't free the BFD's filename.
4774 (exec_file_attach): Don't copy the filename. Call
4775 gdb_bfd_stash_filename.
4776 * corelow.c (core_close): Don't free the BFD's filename.
4777 (core_open): Call gdb_bfd_stash_filename.
4778 * corefile.c (reopen_exec_file): Remove #if 0 code.
4779 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4780 pathname.
4781 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4782
cbb099e8
TT
47832012-07-18 Tom Tromey <tromey@redhat.com>
4784
4785 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4786 gdb_bfd_unref.
4787 (free_dwo_file): Use gdb_bfd_unref.
4788 * cli/cli-dump.c: Include gdb_bfd.h.
4789 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4790 (bfd_openr_with_cleanup): Likewise.
4791 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4792 gdb_bfd_unref.
4793 * utils.c: Include gdb_bfd.h.
4794 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4795 * symfile.c: Include gdb_bfd.h.
4796 (separate_debug_file_exists): Use gdb_bfd_unref.
4797 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4798 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4799 (generic_load): Use gdb_bfd_ref.
4800 (reread_symbols): Use gdb_bfd_unref.
4801 * symfile-mem.c: Include gdb_bfd.h.
4802 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4803 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4804 * solib.c: Include gdb_bfd.h.
4805 (solib_bfd_fopen): Use gdb_bfd_ref.
4806 (solib_bfd_open): Use gdb_bfd_unref.
4807 (free_so_symbols): Use gdb_bfd_unref.
4808 (reload_shared_libraries_1): Use gdb_bfd_unref.
4809 * solib-spu.c: Include gdb_bfd.h.
4810 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4811 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4812 gdb_bfd_unref.
4813 * solib-frv.c: Include gdb_bfd.h.
4814 (enable_break2): Use gdb_bfd_unref.
4815 * solib-dsbt.c: Include gdb_bfd.h.
4816 (enable_break2): Use gdb_bfd_unref.
4817 * solib-darwin.c: Include gdb_bfd.h.
4818 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4819 gdb_bfd_unref.
4820 (darwin_bfd_open): Use gdb_bfd_unref.
4821 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4822 * remote-mips.c: Include gdb_bfd.h.
4823 (mips_load_srec): Use gdb_bfd_ref.
4824 (pmon_load_fast): Use gdb_bfd_ref.
4825 * remote-m32r-sdi.c: Include gdb_bfd.h.
4826 (m32r_load): Use gdb_bfd_ref.
4827 * record.c: Include gdb_bfd.h.
4828 (record_save_cleanups): Use gdb_bfd_unref.
4829 (cmd_record_save): Use gdb_bfd_unref.
4830 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4831 gdb_bfd_unref.
4832 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4833 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4834 * objfiles.c: Include gdb_bfd.h.
4835 (free_objfile): Use gdb_bfd_unref.
4836 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4837 gdb_bfd.c.
4838 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4839 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4840 (macho_check_dsym): Likewise.
4841 * m32r-rom.c: Include gdb_bfd.h.
4842 (m32r_load): Use gdb_bfd_ref.
4843 (m32r_upload_command): Use gdb_bfd_ref.
4844 * jit.c: Include gdb_bfd.h.
4845 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4846 * gdb_bfd.h: New file.
4847 * gdb_bfd.c: New file.
4848 * gcore.c: Include gdb_bfd.h.
4849 (create_gcore_bfd): Use gdb_bfd_ref.
4850 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4851 (gcore_command): Use gdb_bfd_unref.
4852 * exec.c: Include gdb_bfd.h.
4853 (exec_close): Use gdb_bfd_unref.
4854 (exec_close_1): Use gdb_bfd_unref.
4855 (exec_file_attach): Use gdb_bfd_ref.
4856 * elfread.c: Include gdb_bfd.h.
4857 (build_id_verify): Use gdb_bfd_unref.
4858 * dsrec.c: Include gdb_bfd.h.
4859 (load_srec): Use gdb_bfd_ref.
4860 * corelow.c: Include gdb_bfd.h.
4861 (core_close): Use gdb_bfd_unref.
4862 (core_open): Use gdb_bfd_ref.
4863 * bfd-target.c: Include gdb_bfd.h.
4864 (target_bfd_xclose): Use gdb_bfd_unref.
4865 (target_bfd_reopen): Use gdb_bfd_ref.
4866 * Makefile.in (SFILES): Add gdb_bfd.c.
4867 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4868 (COMMON_OBS): Add gdb_bfd.o.
4869
ed1d1739
KS
48702012-07-18 Keith Seitz <keiths@redhat.com>
4871
4872 * breakpoint.c (find_condition_and_thread): Initialize
4873 TASK and REST.
4874 (create_breakpiont): find_condition_and_thread will now
4875 initialize COND_STRING, THREAD, and REST (and TASK).
4876 (addr_string_to_sals): Likewise.
4877
eab402df
PA
48782012-07-18 Pedro Alves <palves@redhat.com>
4879
4880 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4881 Pull the single step breakpoints out of the target.
4882
2b963b68
SDJ
48832012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4884
4885 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4886 * stap-probe.c (compile_probe_arg): Likewise.
4887
6bac7473
SDJ
48882012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4889
4890 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4891 (elf_compile_to_ax): Likewise.
4892 * infrun.c (insert_exception_resume_from_probe): Likewise.
4893 (check_exception_resume): Remove `objfile' variable.
4894 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4895 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4896 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4897 (compare_entries): Rename to...
4898 (compare_probes): ...this. Adjust function to work with
4899 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4900 respectively.
4901 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4902 `VEC (probe_p) *'.
4903 (print_ui_out_info): Adjust argument to be `struct probe *'.
4904 (info_probes_for_ops): Adjust internal computations to use
4905 `VEC (probe_p) *'.
4906 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4907 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4908 gen_info_probes_table_values>: Remove `objfile' argument.
4909 (struct probe) <objfile>: New field.
4910 (find_probe_by_pc): Remove `objfile' argument.
4911 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4912 (stap_get_probe_argument_count): Likewise.
4913 (stap_get_arg): Likewise.
4914 (stap_evaluate_probe_argument): Likewise.
4915 (stap_compile_to_ax): Likewise.
4916 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4917 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4918 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4919 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4920 sym_compile_to_ax>: Likewise.
4921
3347eb1a 49222012-07-18 Terry Guo <terry.guo@arm.com>
4923
4924 PR 14329
4925 * defs.h (GDB_MI_MSG_WIDTH): New.
4926 * ser_base (ser_base_read_error_fd): New function.
4927 (do_ser_base_readchar): Poll error file descriptor as well as
4928 standard output.
f782ad9b 4929 (generic_readchar): Refactor error handling.
3347eb1a 4930
80c8d323
JB
49312012-07-18 Joel Brobecker <brobecker@adacore.com>
4932
4933 * NEWS: Create a new section for the next release branch.
4934 Rename the section of the current branch, now that it has
4935 been cut.
4936
b45a0664 49372012-07-18 Joel Brobecker <brobecker@adacore.com>
4938
4939 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4940 * version.in: Bump version to 7.5.50.20120718-cvs.
4941
09cf2b22
KS
49422012-07-17 Keith Seitz <keiths@redhat.com>
4943
4944 * linespec.c (linespec_parse_line_offset): Make parameter
4945 const.
4946
8f043999
JK
49472012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4948
4949 PR 11914
4950 * f-valprint.c (info_common_command): New variable frame_id.
4951 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4952 * printcmd.c (print_variable_and_value): Extend function comment.
4953 Add comment for invalidated FRAME.
4954 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4955 FI form FRAME_ID after each print_frame_local_vars.
4956 (struct print_variable_and_value_data): Change frame to frame_id.
4957 (do_print_variable_and_value): New variable frame, initialize it from
4958 p->frame_id. Add comment for invalidated FRAME.
4959 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4960 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4961 for invalidated FRAME.
4962
ae5e0686
MK
49632012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4964 Pedro Alves <palves@redhat.com>
4965
4966 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4967 loop.
4968
5049c5be
TT
49692012-07-16 Tom Tromey <tromey@redhat.com>
4970
4971 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4972
2908cac6
DE
49732012-07-15 Doug Evans <dje@google.com>
4974
094b34ac
DE
4975 * dwarf2read.c (stmt_list_hash): New struct.
4976 (type_unit_group): Embed "per_cu" member, remove pointer.
4977 New union member "t", move member "tus" into it, all uses updated.
4978 New member "hash", replaces member "line_offset, all uses updated.
4979 (quick_file_names): Replace member "offset" with "hash", all uses
4980 updated.
4981 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4982 (hash_file_name_entry, eq_file_name_entry): Call them.
4983 (hash_type_unit_group, eq_type_unit_group): Ditto.
4984 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4985 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4986 (dw2_get_file_names): Update.
4987 (create_type_unit_group): Replace "per_cu" arg with "cu".
4988 All callers updated. Fix "quick" (.gdb_index) handling.
4989 (get_type_unit_group): Replace "per_cu" arg with "cu".
4990 All callers updated.
4991 (build_type_unit_groups): Don't reset tu_stats.
4992
2908cac6
DE
4993 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4994 "tab_cur_size". Change member "tab" to be a htab_t.
4995 (create_filename_seen_cache): Update.
4996 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4997 (filename_seen): Update.
4998
a2b6eff5
DE
49992012-07-13 Doug Evans <dje@google.com>
5000
5001 * symtab.c (filename_seen): Update comment.
5002
4359dff1
JK
50032012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5004 Doug Evans <dje@google.com>
5005
5006 * buildsym.c (end_symtab_1): Split it to ...
5007 (end_symtab_get_static_block): ... this ...
5008 (end_symtab_from_static_block): ... and this function.
5009 (end_symtab, end_expandable_symtab): Call them.
5010 * buildsym.h (end_symtab_get_static_block)
5011 (end_symtab_from_static_block): New declarations.
5012 * dwarf2read.c (process_full_comp_unit): New variable static_block.
5013 Set its valid CU ranges.
5014
a24f71ab
JK
50152012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5016
5017 * dwarf2loc.c (disassemble_dwarf_expression): Handle
5018 DW_OP_GNU_parameter_ref.
5019
d76b7dbc
JK
50202012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5021
5022 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
5023 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
5024
9fdc877b
DE
50252012-07-13 Doug Evans <dje@google.com>
5026
5027 * symtab.c (output_source_filename): Delete unnecessary forward decl.
5028 (filename_seen_cache): New struct.
5029 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
5030 (create_filename_seen_cache): New function.
5031 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
5032 (filename_seen): Delete arg "first". New arg "cache". All callers
5033 updated.
5034 (output_source_filename_data): New struct.
5035 (output_source_filename): Delete arg "first". New arg "data".
5036 All callers updated.
5037 (sources_info): Delete local "first". New locals "data", "cleanups".
5038 Rewrite to use filename_seen_cache.
5039 (add_partial_filename_data): Delete member "first". New member
5040 "filename_seen_cache". All uses updated.
5041 (make_source_files_completion_list): Rewrite to use
5042 filename_seen_cache.
5043
f80c6f3f
DE
50442012-07-12 Doug Evans <dje@google.com>
5045
5046 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
5047
0bfa869d
DE
50482012-07-10 Doug Evans <dje@google.com>
5049
f4dc4d17
DE
5050 PR gdb/13498
5051 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
5052 all_type_unit_groups, type_unit_groups, tu_stats.
5053 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
5054 All uses updated. Add type_unit_group to union "s".
5055 (type_unit_group): New struct.
5056 (IS_TYPE_UNIT_GROUP): New macro.
5057 (abbrev_table): Delete unused member "section".
5058 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
5059 (dw2_get_cu): Assert not used with type_unit_group.
5060 (dw2_get_primary_cu): New function.
5061 (dw2_build_type_unit_groups_reader): New function.
5062 (dw2_build_type_unit_groups): New function.
5063 (dw2_get_file_names): Assert not called on type units.
5064 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
5065 Redo loop to iterate over type unit groups instead of type units.
5066 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
5067 (read_abbrev_offset): New function.
5068 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
5069 updated.
5070 (create_partial_symtab): New function.
5071 (process_psymtab_comp_unit_reader): Assert not used with type units.
5072 Call create_partial_symtab.
5073 (process_psymtab_type_unit): Delete.
5074 (hash_type_unit_group, eq_type_unit_group): New functions.
5075 (allocate_type_unit_groups_table): New function.
5076 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
5077 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
5078 (create_type_unit_group, get_type_unit_group): New functions.
5079 (tu_abbrev_offset): New struct.
5080 (sort_tu_by_abbrev_offset): New function.
5081 (add_type_unit_group_to_table): New function.
5082 (build_type_unit_groups): New function.
5083 (build_type_psymtabs_reader): New function.
5084 (build_type_psymtab_dependencies): New function.
5085 (build_type_psymtabs): Rewrite.
5086 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
5087 is seen in a type unit.
5088 (process_queue): Move symtab expansion debugging printfs here.
5089 Call process_full_type_unit for type units.
5090 (compute_symtab_includes): Assert not called for type units.
5091 (process_cu_includes): Don't call compute_symtab_includes for
5092 type units.
5093 (process_full_type_unit): New function.
5094 (process_imported_unit_die): Flag an error if called for type units.
5095 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
5096 updated. Assert not called for type units.
5097 (read_file_scope): Call dwarf2_start_symtab.
5098 (setup_type_unit_groups): New function.
5099 (read_type_unit_scope): Rewrite.
5100 (abbrev_table_read_table): Initialize abbrev_table->offset.
5101 (abbrev_table_free_cleanup): New function.
5102 (dwarf2_start_symtab): New function.
5103 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
5104 * buildsym.c (finish_block_internal): New arg "expandable".
5105 All callers updated.
5106 (start_symtab): Move most contents to ...
5107 (restart_symtab): ... here. New function.
5108 (reset_symtab_globals): New function.
5109 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
5110 Call reset_symtab_globals.
5111 (end_symtab, end_expandable_symtab): New functions.
5112 (set_missing_symtab, augment_type_symtab): New functions.
5113 * buildsym.h (end_expandable_symtab): Declare.
5114 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
5115 * psympriv.h (struct partial_symtab): New member "anonymous".
5116 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5117 anonymous psymtabs.
5118 (read_psymtabs_with_filename): Ditto.
5119 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5120 (expand_symtabs_matching_via_partial): Ditto.
5121 (dump_psymtab): Update.
0bfa869d
DE
5122 * dictionary.c (dict_add_pending): New function.
5123 * dictionary.h (dict_add_pending): Declare.
5124
45e58e77
DE
51252012-07-09 Doug Evans <dje@google.com>
5126
b74db436
DE
5127 * buildsym.c (start_subfile): Remove unnecessary check for
5128 name == NULL.
5129
fd55216c
DE
5130 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5131
6721b2ec
DE
5132 * dwarf2read.c (load_full_type_unit): Simplify.
5133
b4dd5633
DE
5134 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5135 to struct signatured_type **. All uses updated.
5136
45e58e77
DE
5137 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5138 All callers updated.
5139
e314d629
TT
51402012-07-09 Tom Tromey <tromey@redhat.com>
5141
5142 * c-exp.y (check_parameter_typelist): New function.
5143 (parameter_typelist): Call it.
5144 * eval.c (make_params): Handle '(void)' case.
5145 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5146 '(void)' case.
5147
aa7c7447
JK
51482012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5149
5150 * common/linux-ptrace.c: Include gdb_assert.h.
5151 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5152 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5153 stdint.h.
5154 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5155 functions.
5156 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5157 * linux-nat.c (linux_child_post_attach)
5158 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5159
889003ed
JK
51602012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
5161
5162 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5163 nptl <2.7 bug workaround for core files.
5164
da559b09
JK
51652012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5166
5167 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5168 clearing.
5169 (save_siginfo): Remove.
5170 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5171 call.
5172 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5173 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5174 * linux-nat.h (struct lwp_info): Remove field siginfo.
5175
f865ee35
JK
51762012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5177
5178 Code cleanup for the next patch.
5179 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5180 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5181 call for it.
5182 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5183 (ia64_linux_stopped_data_address):
5184 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5185 the return value.
5186 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5187 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5188 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5189 call for it.
5190
76b83c51
JK
51912012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5192
5193 PR 14321
5194 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5195 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5196
a6fb9c08
TT
51972012-07-06 Tom Tromey <tromey@redhat.com>
5198
5199 * c-exp.y (DOTDOTDOT): New token.
5200 (func_mod, exp): Use parameter_typelist.
5201 (parameter_typelist): New production.
5202 (tokentab3): Add "..." token.
5203 * eval.c (make_params): Handle varargs.
5204 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5205 varargs.
5206
71918a86
TT
52072012-07-06 Tom Tromey <tromey@redhat.com>
5208
5209 PR exp/9608:
5210 * c-exp.y (%union) <tvec>: Change type.
5211 (func_mod): Now uses <tvec> type.
5212 (exp): Update for tvec change.
5213 (direct_abs_decl): Push the typelist.
5214 (func_mod): Return a typelist.
5215 (nonempty_typelist): Update for tvec change.
5216 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5217 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5218 * parse.c (pop_type_list): New function.
5219 (push_typelist): New function.
5220 (follow_types): Handle tp_function_with_arguments.
5221 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5222 (enum type_pieces) <tp_function_with_arguments>: New constant.
5223 (union type_stack_elt) <typelist_val>: New field.
5224 (push_typelist): Declare.
5225
fcde5961
TT
52262012-07-06 Tom Tromey <tromey@redhat.com>
5227
5228 * c-exp.y (%union) <type_stack>: New field.
5229 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5230 (ptr_operator_ts): New production.
5231 (ptype): Update.
5232 * parse.c (type_stack_reserve): New function.
5233 (check_type_stack_depth): Use it.
5234 (pop_type_stack, append_type_stack, push_type_stack)
5235 (get_type_stack, type_stack_cleanup): New functions.
5236 (follow_types): Handle tp_type_stack.
5237 (_initialize_parse): Simplify initialization.
5238 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5239 constant.
5240 (union type_stack_elt) <stack_val>: New field.
5241 (get_type_stack, append_type_stack, push_type_stack)
5242 (type_stack_cleanup): Declare.
5243
1a7d0ce4
TT
52442012-07-06 Tom Tromey <tromey@redhat.com>
5245
5246 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5247 Remove.
5248 (struct type_stack): New.
5249 * parse.c (type_stack, type_stack_size, type_stack_depth):
5250 Remove.
5251 (type_stack): New global.
5252 (parse_exp_in_context, check_type_stack_depth)
5253 (insert_into_type_stack, insert_type, push_type, push_type_int)
5254 (insert_type_address_space, pop_type, pop_type_int)
5255 (_initialize_parse): Update.
5256
16d01384
TT
52572012-07-06 Tom Tromey <tromey@redhat.com>
5258
5259 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5260 Remove %type.
5261
9bfc60bf
SP
52622012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5263
5264 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5265
d5161074
SP
52662012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5267 Jan Kratochvil <jan.kratochvil@redhat.com>
5268
5269 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5270 alloca with xmalloc/xfree.
5271
a74bc576
SP
52722012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5273
5274 * MAINTAINERS (Write After Approval): Add myself to the list.
5275
667e0a4b
DE
52762012-07-05 Doug Evans <dje@google.com>
5277
5278 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5279
34b536a8
HZ
52802012-07-05 Hui Zhu <hui_zhu@mentor.com>
5281
5282 * ax-gdb.c (cli/cli-utils.h): New include.
5283 (linespec.h): Ditto.
5284 (agent_eval_command_one): New function.
5285 (agent_command_1): Ditto.
5286 (agent_command): Call function agent_command_1.
5287 (agent_eval_command): Ditto.
5288 (_initialize_ax_gdb): Change help for "maint agent"
5289 and "maint agent-eval".
5290
e6f0bce7
HZ
52912012-07-05 Hui Zhu <hui_zhu@mentor.com>
5292
5293 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5294 * cli/cli-utils.c (check_for_argument): New function.
5295 * cli/cli-utils.h (check_for_argument): Ditto.
5296
1b3371b1
L
52972012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5298
5299 * NEWS: Mention x32 ABI support.
5300
23e2d720
L
53012012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5302
5303 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5304 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5305
5306 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5307 and pc_regnum_from_eax to -1. Update SP regnum from
5308 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5309 needed.
5310
5311 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5312 pc_regnum_from_eax.
5313
836bf454
JK
53142012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5315
5316 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5317 * dwarf2expr.h: Include gdbtypes.h.
5318 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5319 these forward declarations.
5320 (cu_offset, sect_offset): Move these ...
5321 * gdbtypes.h: Remove include dwarf2expr.h.
5322 (cu_offset, sect_offset): ... here.
5323
1e55e04f
L
53242012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5325
5326 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5327 (amd64_linux_sigtramp_code): This.
5328 (amd64_x32_linux_sigtramp_code): New.
5329 (LINUX_SIGTRAMP_LEN): Updated.
5330 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5331
7d0e21ad
JK
53322012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5333
5334 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5335
8775fd2d
JK
53362012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5337
5338 * config.in: Regenerate.
5339 * configure: Regenerate.
5340 * configure.ac: Remove check for gnu/libc-version.h.
5341 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5342 gnu/libc-version.h.
5343 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5344 variables libc_version, libc_major and libc_minor. Replace sscanf by
5345 inferior_has_bug. Extend the comment.
5346
fcb44371
JK
53472012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5348
5349 * linux-thread-db.c (inferior_has_bug): New function.
5350 (thread_db_find_new_threads_silently): Return boolean as checked by
5351 inferior_has_bug, describe it in the comments.
5352 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5353 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 5354 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
5355 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5356 if UNTIL_NO_NEW,
5357
09406207
DE
53582012-07-02 Doug Evans <dje@google.com>
5359
0907af0c
DE
5360 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5361 related to queue management.
5362
09406207
DE
5363 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5364 instead of "debug dwarf2-die" in debugging printfs.
5365 (create_debug_info_hash_table_reader): Ditto.
5366 (create_debug_info_hash_table): Ditto.
5367 (init_dwo_file): Ditto.
5368 (init_cutu_and_read_dies): Add debugging printf.
5369 (init_cutu_and_read_dies_no_follow): Ditto.
5370 (process_psymtab_comp_unit_reader): Ditto.
5371
d3ce09f5
SS
53722012-07-02 Stan Shebs <stan@codesourcery.com>
5373
5374 Add target-side support for dynamic printf.
5375 * NEWS: Mention the additional style.
5376 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5377 (struct bp_location): New field cmd_bytecode.
5378 * breakpoint.c: Include format.h.
5379 (disconnected_dprintf): New global.
5380 (parse_cmd_to_aexpr): New function.
5381 (build_target_command_list): New function.
5382 (insert_bp_location): Call it.
5383 (remove_breakpoints_pid): Skip dprintf breakpoints.
5384 (print_one_breakpoint_location): Ditto.
5385 (dprintf_style_agent): New global.
5386 (dprintf_style_enums): Add dprintf_style_agent.
5387 (update_dprintf_command_list): Add agent case.
5388 (agent_printf_command): New function.
5389 (_initialize_breakpoint): Add new commands.
5390 * common/ax.def (printf): New bytecode.
5391 * ax.h (ax_string): Declare.
5392 * ax-gdb.h (gen_printf): Declare.
5393 * ax-gdb.c: Include cli-utils.h, format.h.
5394 (gen_printf): New function.
5395 (maint_agent_print_command): New function.
5396 (_initialize_ax_gdb): Add maint agent-printf command.
5397 * ax-general.c (ax_string): New function.
5398 (ax_print): Add printf disassembly.
5399 * Makefile.in (SFILES): Add format.c
5400 (COMMON_OBS): Add format.o.
5401 * common/format.h: New file.
5402 * common/format.c: New file.
5403 * printcmd.c: Include format.h.
5404 (ui_printf): Call parse_format_string.
5405 * remote.c (remote_state): New field breakpoint_commands.
5406 (PACKET_BreakpointCommands): New enum.
5407 (remote_breakpoint_commands_feature): New function.
5408 (remote_protocol_features): Add new BreakpointCommands entry.
5409 (remote_can_run_breakpoint_commands): New function.
5410 (remote_add_target_side_commands): New function.
5411 (remote_insert_breakpoint): Call it.
5412 (remote_insert_hw_breakpoint): Ditto.
5413 (_initialize_remote): Add new packet configuration for
5414 target-side breakpoint commands.
5415 * target.h (struct target_ops): New field
5416 to_can_run_breakpoint_commands.
5417 (target_can_run_breakpoint_commands): New macro.
5418 * target.c (update_current_target): Handle
5419 to_can_run_breakpoint_commands.
5420
2d7b58e8
JK
54212012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5422
5423 Execute -ix and -iex only after system and user gdbinit files.
5424 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5425 processing down after gdbinit files.
5426
8690e634
JK
54272012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5428
5429 Add fnmatch-gnu module.
5430 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5431 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5432 * gnulib/aclocal.m4: Regenerate.
5433 * gnulib/config.in: Regenerate.
5434 * gnulib/configure: Regenerate.
5435 * gnulib/import/dummy.c: Remove.
5436 * gnulib/import/Makefile.am: Regenerate.
5437 * gnulib/import/Makefile.in: Likewise.
5438 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5439 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5440 * gnulib/import/alloca.c: New file.
5441 * gnulib/import/alloca.in.h: Likewise.
5442 * gnulib/import/config.charset: Likewise.
5443 * gnulib/import/fnmatch.c: Likewise.
5444 * gnulib/import/fnmatch.in.h: Likewise.
5445 * gnulib/import/fnmatch_loop.c: Likewise.
5446 * gnulib/import/localcharset.c: Likewise.
5447 * gnulib/import/localcharset.h: Likewise.
5448 * gnulib/import/m4/alloca.m4: Likewise.
5449 * gnulib/import/m4/codeset.m4: Likewise.
5450 * gnulib/import/m4/configmake.m4: Likewise.
5451 * gnulib/import/m4/fcntl-o.m4: Likewise.
5452 * gnulib/import/m4/fnmatch.m4: Likewise.
5453 * gnulib/import/m4/glibc21.m4: Likewise.
5454 * gnulib/import/m4/localcharset.m4: Likewise.
5455 * gnulib/import/m4/locale-fr.m4: Likewise.
5456 * gnulib/import/m4/locale-ja.m4: Likewise.
5457 * gnulib/import/m4/locale-zh.m4: Likewise.
5458 * gnulib/import/m4/mbrtowc.m4: Likewise.
5459 * gnulib/import/m4/mbsinit.m4: Likewise.
5460 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5461 * gnulib/import/m4/mbstate_t.m4: Likewise.
5462 * gnulib/import/m4/stdbool.m4: Likewise.
5463 * gnulib/import/m4/wchar_h.m4: Likewise.
5464 * gnulib/import/m4/wctype_h.m4: Likewise.
5465 * gnulib/import/m4/wint_t.m4: Likewise.
5466 * gnulib/import/mbrtowc.c: Likewise.
5467 * gnulib/import/mbsinit.c: Likewise.
5468 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5469 * gnulib/import/mbsrtowcs-state.c: Likewise.
5470 * gnulib/import/mbsrtowcs.c: Likewise.
5471 * gnulib/import/ref-add.sin: Likewise.
5472 * gnulib/import/ref-del.sin: Likewise.
5473 * gnulib/import/stdbool.in.h: Likewise.
5474 * gnulib/import/streq.h: Likewise.
5475 * gnulib/import/strnlen1.c: Likewise.
5476 * gnulib/import/strnlen1.h: Likewise.
5477 * gnulib/import/verify.h: Likewise.
5478 * gnulib/import/wchar.in.h: Likewise.
5479 * gnulib/import/wctype.in.h: Likewise.
5480
202cbf1c
JK
54812012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5482
5483 Support shell wildcards for 'set auto-load safe-path'.
5484 * auto-load.c: Include fnmatch.h.
5485 (filename_is_in_dir): Rename to ...
5486 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5487 it. Update function comment. Rename dir_len to pattern_len. New
5488 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5489 messages. Use gdb_filename_fnmatch.
5490 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5491 pattern.
5492 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5493 * defs.h (gdb_filename_fnmatch): New declaration.
5494 * utils.c: Include fnmatch.h.
5495 (gdb_filename_fnmatch): New function.
5496
fb7b5af4
SDJ
54972012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5498
5499 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5500 `-probe' and `-probe-stap' options.
5501
72d0e2c5
YQ
55022012-07-01 Yao Qi <yao@codesourcery.com>
5503
5504 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5505 always_inserted_off, and always_inserted_enums.
5506 Change always_inserted_mode's type to 'enum auto_boolean'.
5507 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5508 callers.
5509 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5510 of add_setshow_enum_cmd.
5511 * infrun.c: Remove can_use_displaced_stepping_auto,
5512 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5513 can_use_displaced_stepping_enum.
5514 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
f87e3f15
PA
5515 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5516 callers.
72d0e2c5
YQ
5517 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5518 add_setshow_enum_cmd.
5519
42e7ad6c
DE
55202012-06-30 Doug Evans <dje@google.com>
5521
5522 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5523 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5524 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5525
39cf75f7
DE
55262012-06-29 Doug Evans <dje@google.com>
5527
5528 * linespec.c: #include "stack.h".
5529 (decode_line_with_current_source): Moved here from symtab.c and
5530 renamed from decode_line_spec. All callers updated.
5531 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5532 renamed from decode_line_spec_1. All callers updated.
5533 * linespec.h (decode_line_with_current_source): Move declaration here
5534 from symtab.h and renamed from decode_line_spec.
5535 (decode_line_with_last_displayed): Move declaration here from symtab.h
5536 and renamed from decode_line_spec_1.
5537 * macrocmd.c: #include "linespec.h".
5538 * symtab.c: Remove #include "linespec.h".
5539
433df2d4
DE
55402012-06-28 Doug Evans <dje@google.com>
5541
1ce1cefd
DE
5542 * dwarf2read.c (get_cu_length): New function.
5543 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5544 (create_debug_types_hash_table): Ditto.
5545 (init_cutu_and_read_dies): Ditto.
5546 (init_cutu_and_read_dies_no_follow): Ditto.
5547
3b80fe9b
DE
5548 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5549
433df2d4
DE
5550 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5551 (struct abbrev_table): Define.
5552 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5553 abbrev_table.
5554 (init_cutu_and_read_dies): Update.
5555 (abbrev_table_alloc_abbrev): New function. Replaces
5556 dwarf_alloc_abbrev. All callers updated.
5557 (abbrev_table_add_abbrev): New function.
5558 (abbrev_table_lookup_abbrev): New function. Replaces
5559 dwarf2_lookup_abbrev. All callers updated.
5560 (abbrev_table_read_table): New function. Contents moved here from
5561 dwarf2_read_abbrevs.
5562 (dwarf2_read_abbrevs): Call it.
5563 (abbrev_table_free): New function.
5564 (dwarf2_free_abbrev_table): Call it.
5565
71caed83
SS
55662012-06-28 Stan Shebs <stan@codesourcery.com>
5567
5568 * osdata.c (info_osdata_command): Filter out "Title" columns
5569 from non-MI uses.
5570 * common/linux-osdata.c (struct osdata_type): Add title field.
5571 (osdata_table): Add titles to each entry.
5572 (linux_command_xfer_osdata): Add a column for title data.
5573
37ce89eb
SS
55742012-06-28 Stan Shebs <stan@codesourcery.com>
5575
5576 Make logging work for MI.
5577 * NEWS: Mention it.
5578 * interps.h (interp_set_logging_ftype): New typedef.
5579 (struct interp_procs): New field set_logging_proc.
5580 (current_interp_set_logging): Declare.
5581 * interps.c (current_interp_set_logging): New function.
5582 * cli/cli-logging.c: Include interps.h.
5583 (set_logging_redirect): Call current_interp_set_logging.
5584 (pop_output_files): Ditto.
5585 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5586 * mi/mi-console.h (mi_console_set_raw): Declare.
5587 * mi/mi-console.c (mi_console_set_raw): New function.
5588 * mi/mi-interp.c (saved_raw_stdout): New global.
5589 (mi_set_logging): New function.
5590 (_initialize_mi_interp): Add it to interp procs.
5591
659c9f3a
DE
55922012-06-28 Doug Evans <dje@google.com>
5593
a743abeb
DE
5594 * symtab.c (lookup_symbol_aux_objfile): Use
5595 ALL_OBJFILE_PRIMARY_SYMTABS.
5596
659c9f3a
DE
5597 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5598
da2d6d3d
JK
55992012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5600
5601 * common/buffer.c: Include inttypes.h and stdint.h.
5602 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5603
e5ef252a
PA
56042012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5605 Pedro Alves <palves@redhat.com>
5606
5607 * gdbthread.h (ALL_THREADS): New macro.
5608 (thread_list): Declare.
5609 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5610 going, but instead fall through to the stepping handling.
5611 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5612 the passed in signal. Adjust debug output.
5613 (resume_callback): Rename to ...
5614 (linux_nat_resume_callback): ... this. Pass the thread's last
5615 stop signal, if in "pass" state.
5616 (linux_nat_resume): Adjust to rename.
5617 (stop_wait_callback): New assertion. Don't respawn signals;
5618 instead let the LWP remain with SIGNALLED set.
5619 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5620 * remote.c (append_pending_thread_resumptions): New.
5621 (remote_vcont_resume): Call it.
5622 * target.h (target_resume): Extend comment.
5623
1d7975eb
IS
56242012-06-28 Iain Sandoe <iain@codesourcery.com>
5625
5626 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5627
2e3cf129
DE
56282012-06-27 Doug Evans <dje@google.com>
5629
5630 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5631 Delete have_addr_base, unused. All uses updated.
5632 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5633 (dwarf2_get_pc_bounds): Add ranges_base.
5634 (dwarf2_record_block_ranges): Ditto.
5635
1bb9788d
TT
56362012-06-27 Tom Tromey <tromey@redhat.com>
5637
5638 PR macros/7961:
5639 * varobj.c (varobj_create): Update.
5640 (varobj_set_value): Update.
5641 * tracepoint.c (validate_actionline): Update.
5642 (encode_actions_1): Update.
5643 * parse.c (parse_exp_1): Add 'pc' argument.
5644 (parse_exp_in_context): Add 'pc' argument. Change how
5645 expression_context_pc is set.
5646 (parse_expression): Update.
5647 (parse_field_expression): Update.
5648 * expression.h (parse_exp_1): Update.
5649 * eval.c (parse_to_comma_and_eval): Update.
5650 * breakpoint.c (set_breakpoint_condition): Update.
5651 (update_watchpoint): Update.
5652 (init_breakpoint_sal): Update
5653 (find_condition_and_thread): Update.
5654 (watch_command_1): Update.
5655 (update_breakpoint_locations): Update.
5656 * ada-lang.c (ada_read_renaming_var_value): Update.
5657 (create_excep_cond_exprs): Update.
5658
0bc3a05c
DE
56592012-06-27 Doug Evans <dje@google.com>
5660
5661 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5662 type units.
5663
4bdcc0c1
DE
56642012-06-26 Doug Evans <dje@google.com>
5665
5666 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5667 prototype.
5668 (error_check_comp_unit_head): New arg abbrev_section. All callers
5669 updated.
5670 (read_and_check_comp_unit_head): Ditto.
5671 (read_and_check_type_unit_head): Ditto.
5672
ee0bf529
SCR
56732012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5674
5675 New attribute 'last' for gdb.Symtab_and_line.
5676 * NEWS (Python Scripting): Add entry about the new attribute.
5677 * python/py-symtab.c (salpy_get_last): New function which
5678 implements the get method for the 'last' attribute of
5679 gdb.Symtab_and_line.
5680 (sal_object_getset): Add entry for the 'last' attribute.
5681
1c658ad5
DE
56822012-06-26 Doug Evans <dje@google.com>
5683
09262596
DE
5684 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5685 (dwo_sections): Add macinfo, macro.
5686 (dwarf2_locate_dwo_sections): Watch for macro sections.
5687 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5688 All callers updated. Handle DWO files.
5689
45cfd468
DE
5690 * NEWS: Mention new options "set debug dwarf2-read" and
5691 "set debug symtab-create".
5692 * dwarf2read.c (dwarf2_read_debug): New static global.
5693 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5694 (process_queue): Ditto.
5695 (process_full_comp_unit): Ditto.
5696 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5697 * elfread.c (elf_symfile_read): Add debugging printf.
5698 * minsyms.c (install_minimal_symbols): Ditto.
5699 * psymtab.c (allocate_psymtab): Ditto.
5700 * symfile.c (allocate_symtab): Ditto.
5701 * symtab.c (symtab_create_debug): New global.
5702 (_initialize_symtab): Add new option "set debug symtab-create".
5703 * symtab.h (symtab_create_debug): Declare.
5704
1c658ad5
DE
5705 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5706 (lookup_dwo_type_unit): Ditto.
5707
6fea9e18
L
57082012-06-26 Roland McGrath <roland@hack.frob.com>
5709 H.J. Lu <hongjiu.lu@intel.com>
5710
5711 * amd64-linux-nat.c: Include <sys/user.h>.
5712 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5713 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5714 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5715
5716 * configure.ac: Check if the fs_base and gs_base members of
5717 `struct user_regs_struct' exist.
5718 * config.in: Regenerated.
5719 * configure: Likewise.
5720
adb4fe3b
ME
57212012-06-25 Michael Eager <eager@eagercon.com>
5722
5723 PR python/14291
f782ad9b 5724 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 5725
fc51cce1
MGD
57262012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5727
5728 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5729 register as a stack alignment in ARM mode.
5730
40a73391
JK
57312012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5732
5733 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5734 * gnulib/config.in: Regenerate.
5735 * gnulib/configure: Likewise.
5736 * gnulib/import/m4/extensions.m4: Update it.
5737 * gnulib/import/m4/gnulib-common.m4: Likewise.
5738 * gnulib/import/m4/memmem.m4: Likewise.
5739 * gnulib/import/m4/mmap-anon.m4: Likewise.
5740 * gnulib/import/m4/multiarch.m4: Likewise.
5741 * gnulib/import/stdint.in.h: Likewise.
5742
972daa01
YQ
57432012-06-24 Yao Qi <yao@codesourcery.com>
5744
5745 * corefile.c (write_memory_with_notification): New.
5746 * gdbcore.h: Declare write_memory_with_notification.
5747 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5748 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5749 * valops.c (value_assign): Likewise.
5750 * python/py-inferior.c (infpy_write_memory): Call
5751 'write_memory_with_notification'.
5752
8d6e0714
JK
57532012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5754
5755 * cc-with-index.sh: Use also -ex "set auto-load no".
5756
156942c7
DE
57572012-06-23 Doug Evans <dje@google.com>
5758
5759 PR 14125
5760 * NEWS: Document additions to .gdb_index.
5761 * dwarf2read.c: #include "gdb/gdb-index.h".
5762 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5763 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5764 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5765 (dwarf2_read_index): Recognize version 7.
5766 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5767 block_kind, domain): All callers updated.
5768 (dw2_find_symbol_file): Handle new index CU values.
5769 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5770 (add_index_entry): New args is_static, kind. All callers updated.
5771 (offset_type_compare, uniquify_cu_indices): New functions
5772 (symbol_kind): New function.
5773 (write_psymtabs_to_index): Remove duplicate CU values.
5774 (write_psymtabs_to_index): Write .gdb_index version 7.
5775
352b3eda
JB
57762012-06-22 Joel Brobecker <brobecker@adacore.com>
5777
5778 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5779 * configure: Regenerate.
5780
2678e2af
YQ
57812012-06-20 Yao Qi <yao@codesourcery.com>
5782
5783 * python/py-inferior.c: Update comments of infpy_read_memory
5784 and infpy_write_memory.
5785
95c391b6
TT
57862012-06-19 Tom Tromey <tromey@redhat.com>
5787
5788 PR exp/9514:
5789 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5790 (push_type_address_space): Remove.
5791 * parse.c (insert_into_type_stack): New function.
5792 (insert_type): Likewise.
5793 (insert_type_address_space): Rename from push_type_address_space.
5794 Insert tp_space_identifier.
5795 * c-exp.y (ptr_operator): New production.
5796 (abs_decl): Use ptr_operator.
5797 (space_identifier): Call insert_type_address_space.
5798 (ptype): Don't use const_or_volatile_or_space_identifier.
5799 (const_or_volatile_noopt): Call insert_type.
5800 (conversion_type_id, conversion_declarator): New productions.
5801 (operator): Use conversion_type_id.
5802
6ac9ef80
DE
58032012-06-18 Doug Evans <dje@google.com>
5804
422d65e7
DE
5805 * symtab.h (minimal_symbol): New member created_by_gdb.
5806 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5807 created by gdb.
5808 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5809 (search_symbols): Call it instead of lookup_symbol.
5810 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5811
49f6c839
DE
5812 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5813 Adjust address for DW_OP_GNU_addr_index.
5814 * dwarf2expr.h (dwarf_expr_context): Update comment.
5815 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5816 all callers updated. Handle TLS vars described with
5817 DW_OP_GNU_const_index.
5818 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5819 and DW_OP_GNU_const_index.
5820 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5821
6ac9ef80
DE
5822 * block.c (find_block_in_blockvector): Make explicit the fact that we
5823 ignore GLOBAL_BLOCK.
5824
4cd18215
TT
58252012-06-18 Tom Tromey <tromey@redhat.com>
5826
5827 * c-exp.y (operator): Remove trailing space after "delete" and
5828 "delete[]".
5829
a9b8d892
JK
58302012-06-18 Mark Kettenis <kettenis@gnu.org>
5831 Jan Kratochvil <jan.kratochvil@redhat.com>
5832
5833 Switch i386 and derived targets to ON_STACK.
5834 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5835 (amd64_dicos_init_abi): Remove its installment.
5836 * dicos-tdep.c (dicos_init_abi): Remove the
5837 set_gdbarch_call_dummy_location call. Update the comment here.
5838 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5839 (i386_dicos_init_abi): Remove its installment.
5840 * i386-tdep.c (i386_push_dummy_code): New function.
5841 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5842 i386_push_dummy_code.
5843
e2e4d78b
JK
58442012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5845
5846 Remove stale dummy frames.
5847 * breakpoint.c: Include dummy-frame.h.
5848 (longjmp_breakpoint_ops): New variable.
5849 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5850 bp_longjmp_call_dummy.
5851 (bpstat_what, bptype_string, print_one_breakpoint_location)
5852 (init_bp_location): Support bp_longjmp_call_dummy.
5853 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5854 (set_longjmp_breakpoint_for_call_dummy)
5855 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5856 functions.
5857 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5858 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5859 FIXME comment and extend the other comment for bp_call_dummy.
5860 (set_longjmp_breakpoint_for_call_dummy)
5861 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5862 * dummy-frame.c: Include gdbthread.h.
5863 (pop_dummy_frame_bpt): New function.
5864 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5865 (dummy_frame_discard): New function.
5866 (cleanup_dummy_frames): Update the comment about longjmps.
5867 * dummy-frame.h (dummy_frame_discard): New declaration.
5868 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5869 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5870 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5871 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5872 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5873 keep_going if IS_LONGJMP and there is no other reason to stop.
5874
09d5912c
TT
58752012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5876
5877 * remote-sim.c (sim_command_completer): Initialize
5878 variable 'result'.
5879
1788b2d3
JK
58802012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5881
5882 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5883 * dwarf2loc.c (call_site_parameter_matches): Support
5884 CALL_SITE_PARAMETER_PARAM_OFFSET.
5885 (needs_dwarf_reg_entry_value): Push stub value.
5886 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5887 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5888 * gdbtypes.h (enum call_site_parameter_kind): New item
5889 CALL_SITE_PARAMETER_PARAM_OFFSET.
5890 (struct call_site.parameter.u): New field param_offset.
5891
24c5c679
JK
58922012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5893
5894 Code cleanup: Generalize call_site.parameter key.
5895 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5896 variable dwarf_reg. New variable kind_u. Update parameters to
5897 push_dwarf_reg_entry_value.
5898 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5899 * dwarf2expr.h (enum call_site_parameter_kind)
5900 (union call_site_parameter_u): Forward declarations.
5901 (struct dwarf_expr_context_funcs): Update parameters and their
5902 description for push_dwarf_reg_entry_value.
5903 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5904 * dwarf2loc.c (call_site_parameter_matches): New function.
5905 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5906 description. Use call_site_parameter_matches.
5907 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5908 Update parameters and their description.
5909 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5910 New variable kind_u. Adjust the caller for updated parameters.
5911 (needs_dwarf_reg_entry_value): Update parameters.
5912 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5913 instead of attr. Update for the changed fields of struct
5914 call_site_parameter.
5915 * gdbtypes.h: Include dwarf2expr.h.
5916 (enum call_site_parameter_kind): New.
5917 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5918 fb_offset into new union u.
5919
ac142d96
L
59202012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5921
5922 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5923 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5924 for x32.
5925
ba224c70
L
59262012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5927
5928 * amd64-linux-nat.c (compat_x32_clock_t): New.
5929 (compat_x32_siginfo_t): Likewise.
5930 (compat_x32_siginfo_from_siginfo): Likewise.
5931 (siginfo_from_compat_x32_siginfo): Likewise.
5932 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5933 and siginfo_from_compat_x32_siginfo for x32.
5934
7ecbc825
HZ
59352012-06-15 Hui Zhu <hui_zhu@mentor.com>
5936
5937 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5938
233dfcf0
L
59392012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5940
5941 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5942 instead of gdbarch_ptr_bit.
5943 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5944 (amd64_supply_native_gregset): Likewise.
5945 (amd64_collect_native_gregset): Likewise.
5946 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5947 (amd64_supply_xsave): Likewise.
5948 (amd64_collect_fxsave): Likewise.
5949 (amd64_collect_xsave): Likewise.
5950
6da38f42
L
59512012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5952
5953 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5954 (amd64_linux_read_description): Check DS segment register for
5955 x32 process.
5956
663b969e
TT
59572012-06-15 Tom Tromey <tromey@redhat.com>
5958
5959 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5960 init_cutu_and_read_dies.
5961
d6f05027
IS
59622012-06-15 Iain Sandoe <iain@codesourcery.com>
5963
5964 * MAINTAINERS (Write After Approval): Add myself to the list.
5965
6598ed07
TT
59662012-06-15 Tom Tromey <tromey@redhat.com>
5967
5968 * valops.c (value_find_oload_method_list): Now static.
5969 * value.h (value_find_oload_method_list): Don't declare.
5970
2b214ea6
TT
59712012-06-15 Tom Tromey <tromey@redhat.com>
5972
5973 * valops.c (find_overload_match): Use value_ind.
5974
a210c238
MR
59752012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5976
5977 * infrun.c (handle_inferior_event): Correct indentation.
5978
3771a44c
DE
59792012-06-14 Doug Evans <dje@google.com>
5980
5981 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5982 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5983 All uses updated.
5984 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5985 updated. Handle DEBUG_LOC_START_LENGTH.
5986 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5987 (loclist_describe_location): Ditto.
5988
1c5a993e
MR
59892012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5990
5991 PR backtrace/13866
5992 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5993 after hiding inline functions.
5994
0b155465
JB
59952012-06-13 Joel Brobecker <brobecker@adacore.com>
5996
5997 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5998 _initialize_inf_ttrace.
5999
45717bac
JB
60002012-06-13 Joel Brobecker <brobecker@adacore.com>
6001
6002 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
6003 _initialize_hppa_hpux_nat.
6004
34370865
JB
60052012-06-13 Joel Brobecker <brobecker@adacore.com>
6006
6007 * remote-sim.c (sim_command_completer): Change type of return
6008 value to "VEC (char_ptr) *". Adjust implementation accordingly.
6009
284c5a60
MK
60102012-06-13 Mark Kettenis <kettenis@gnu.org>
6011 Jan Kratochvil <jan.kratochvil@redhat.com>
6012
6013 PR tdep/14222
6014 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
6015 stack on a 16-byte boundary.
6016
2535757a
TT
60172012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
6018
6019 * jit.c (finalize_symtab): Set function's return type to 'void' by
6020 default.
6021
fff4548b
MK
60222012-06-13 Mark Kettenis <kettenis@gnu.org>
6023 H.J. Lu <hongjiu.lu@intel.com>
6024
5a83521a
MK
6025 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
6026 Move bits common to both the classic LP64 and the new x32 ILP32
6027 ABI here.
6028 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
6029 (amd64_x32_linux_init_abi): New function.
6030 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
6031 subtype.
6032
fff4548b
MK
6033 * i386-tdep.h (i386_pseudo_register_name): New prototype.
6034 * i386-tdep.c (i386_pseudo_register_name): Make public.
6035 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
6036 * amd64-tdep.c (amd64_dword_names): Add "eip".
6037 (amd64_x32_pseudo_register_type): New function
6038 (amd64_x32_init_abi): New function.
6039
dd80ea3c
JK
60402012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6041
6042 PR build/14003
6043 * inferior.h (struct inferior_suspend_state): Comment out.
6044 (struct inferior): Comment out the field suspend.
6045 * infrun.c (struct infcall_suspend_state): Comment out the field
6046 inferior_suspend.
6047 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
6048 out its assignment.
6049
50af5481
JK
60502012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6051
6052 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
6053 * c-exp.y (classify_inner_name): Remove caller assumptions in the
6054 function comment. Return ERROR for unresolved cases. Implement
6055 returning proper NAME.
6056 (yylex): Accept also NAME from classify_inner_name.
6057 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
6058 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
6059 LOC_TYPEDEF type.
6060 * cp-support.h (cp_lookup_nested_type): Update its declaration.
6061
d55637df
TT
60622012-06-13 Tom Tromey <tromey@redhat.com>
6063
6064 * breakpoint.c (condition_completer): New function.
6065 (_initialize_breakpoint): Use it.
6066 * value.c (complete_internalvar): New function.
6067 * value.h (complete_internalvar): Declare.
6068
49c4e619
TT
60692012-06-13 Tom Tromey <tromey@redhat.com>
6070
6071 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
6072 * breakpoint.c (catch_syscall_completer): Return a VEC.
6073 * cli/cli-cmds.c (complete_command): Update.
6074 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
6075 (complete_on_enum): Likewise.
6076 * command.h: Include gdb_vecs.h.
6077 (completer_ftype): Change return type.
6078 (complete_on_cmdlist, complete_on_enum): Likewise.
6079 * completer.c (noop_completer, filename_completer)
6080 (location_completer): Return a VEC.
6081 (add_struct_fields): Remove 'nextp' argument. Change 'output'
6082 to a VEC.
6083 (expression_completer, complete_line_internal, complete_line)
6084 (command_completer): Return a VEC.
6085 (gdb_completion_word_break_characters, line_completion_function):
6086 Update.
6087 * completer.h: Include gdb_vecs.h.
6088 (complete_line, noop_completer, filename_completer)
6089 (expression_completer, location_completer, command_completer):
6090 Update.
6091 * f-lang.c (f_word_break_characters): Return a VEC.
6092 * interps.c (interpreter_completer): Return a VEC.
6093 * language.h (struct language_defn)
6094 <la_make_symbol_completion_list>: Return a VEC.
6095 * python/py-cmd.c (cmdpy_completer): Return a VEC.
6096 * symtab.c (free_completion_list): Take a VEC.
6097 (return_val_size, return_val_index): Remove.
6098 (return_val): Now a VEC.
6099 (completion_list_add_name): Update.
6100 (default_make_symbol_completion_list_break_on)
6101 (default_make_symbol_completion_list, make_symbol_completion_list)
6102 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
6103 Return a VEC.
6104 (add_filename_to_list): Update.
6105 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
6106 <list>: Now a VEC.
6107 (maybe_add_partial_symtab_filename): Update.
6108 (make_source_files_completion_list): Return a VEC.
6109 * symtab.h (default_make_symbol_completion_list_break_on)
6110 (default_make_symbol_completion_list, make_symbol_completion_list)
6111 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
6112 (make_source_files_completion_list): Update.
6113
625e8578
TT
61142012-06-13 Tom Tromey <tromey@redhat.com>
6115
6116 * breakpoint.c (add_catch_command): Use completer_ftype.
6117 * breakpoint.h: Include command.h.
6118 (add_catch_command): Use completer_ftype.
6119 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6120 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6121 Use completer_ftype.
6122 * command.h (completer_ftype): New typedef.
6123 (set_cmd_completer): Use it.
6124 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6125 completer_ftype.
6126
5eb3b062
PA
61272012-06-13 Pedro Alves <palves@redhat.com>
6128
6129 Partial revert of previous change.
6130
6131 * serial.c (scb_base): New global.
6132 (serial_for_fd): New.
6133 (serial_open, serial_fdopen_ops): Link new serial in open serials
6134 chain.
6135 (do_serial_close): Unlink serial from the open serials chain.
6136
8b3ee56d
PA
61372012-06-12 Pedro Alves <palves@redhat.com>
6138
6139 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6140 threads here.
6141 (prepare_for_detach): No longer context switch here in non-stop
6142 mode.
6143 (fetch_inferior_event): Ditto.
6144 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6145 to the event thread before removing breakpoints. Switch to the
6146 event thread before inserting breakpoints and resuming.
6147 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6148 event thread before resuming.
6149 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6150 Switch to the event thread before removing breakpoints.
6151
5d60742e
EZ
61522012-06-12 Eli Zaretskii <eliz@gnu.org>
6153
6154 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6155 special characters correctly for the Windows shells. See
6156 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6157 report.
6158 [!__MINGW32__]: Remove extra double quote character from special
6159 characters.
6160
a6feecf7
SS
61612012-06-11 Stan Shebs <stan@codesourcery.com>
6162
6163 * ui-out.h: Remove #if 0 declarations.
6164 * ui-out.c: Remove #if 0 functions.
6165
ddefb60f
PA
61662012-06-11 Pedro Alves <palves@redhat.com>
6167
6168 * ser-base.c (run_async_handler_and_reschedule): New.
6169 (fd_event, push_event): Use it.
6170 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6171 reference count to 1.
6172 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6173 instead of xfree.
6174 (serial_is_open, serial_ref, serial_unref): New.
6175 * serial.h (serial_open): Adjust comment.
6176 (serial_is_open): Declare.
6177 (serial_close): Adjust comment.
6178 (serial_ref, serial_unref) Declare.
6179 (struct serial): New field 'refcnt'.
6180
d5ad6aa5
PA
61812012-06-11 Pedro Alves <palves@redhat.com>
6182
6183 Remove #if 0'd "connect" command, and unnecessary associated
6184 refcounting and serial reuse bits.
6185
6186 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6187 * serial.c (last_serial_opened): Delete.
6188 (scb_base): Delete.
6189 (serial_open): Adjust.
6190 (serial_for_fd): Delete.
6191 (serial_fdopen_ops, do_serial_close): Adjust.
6192 (serial_fdopen_ops): Adjust.
6193
318aa544
PA
61942012-06-11 Pedro Alves <palves@redhat.com>
6195
6196 * serial.c (do_serial_close): Remove early return when SCB is
6197 null.
6198
07261596
TT
61992012-06-11 Tom Tromey <tromey@redhat.com>
6200
6201 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6202
cc80f267
JK
62032012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6204
6205 Fix regression by the "ambiguous linespec" series.
6206 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6207 get_last_displayed_symtab and get_last_displayed_line and depending
6208 on CURSAL.
6209
356d9f9d
TT
62102012-06-11 Tom Tromey <tromey@redhat.com>
6211
6212 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6213 (dw2_find_symbol_file): Use it.
6214
232b8704
ME
62152012-06-11 Michael Eager <eager@eagercon.com>
6216
6217 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6218 * mips-linux-tdep.h (mips_signals): New
6219
e81a37f7
TT
62202012-06-11 Tom Tromey <tromey@redhat.com>
6221
6222 * infrun.c (handle_inferior_event)
6223 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6224 breakpoint.
6225 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6226 exception logic in all cases. Update comments.
6227 (insert_longjmp_resume_breakpoint): Set the exception resume
6228 breakpoint.
6229
2e81047f
MR
62302012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6231
6232 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6233
4e32eda7
SCR
62342012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6235
6236 * valarith.c (binop_types_user_defined_p): Fix a typo.
6237
18648a37 62382012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 6239 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
6240
6241 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6242 * arch-utils.h: Declare.
6243 * gdbarch.sh: Add return_in_first_hidden_param_p.
6244 * gdbarch.c, gdbarch.h: Regenerated.
6245 * infcall.c (call_function_by_hand): Call
6246 gdbarch_return_in_first_hidden_param_p instead of
6247 language_pass_by_reference.
6248
6249 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6250 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6251 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6252 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6253 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6254 `cplus_return_struct_by_reference'.
6255 (tic6x_return_value): Handle language cplusplus.
6256 (tic6x_return_in_first_hidden_param_p): New.
6257 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6258
034e5797
DE
62592012-06-07 Doug Evans <dje@google.com>
6260
6261 * dwarf2read.c (dwarf2_cu): Add comment.
6262
6a00aa1e
MR
62632012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6264
6265 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6266 variable.
6267 (mips_eabi_push_dummy_call): Likewise.
6268 (mips_n32n64_push_dummy_call): Likewise.
6269 (mips_o32_push_dummy_call): Likewise.
6270 (mips_o64_push_dummy_call): Likewise.
6271
eaa05d59
MR
62722012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6273
6274 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6275
de13fcf2
MR
62762012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6277
6278 * mips-tdep.c (mips_pseudo_register_type): Use
6279 mips_float_register_p.
6280
c3a01a22
PA
62812012-06-06 Pedro Alves <palves@redhat.com>
6282
6283 * infrun.c (handle_inferior_event): Remove calls to
6284 reinit_frame_cache that follow a context_switch call.
6285
d25f45d9
PA
62862012-06-06 Pedro Alves <palves@redhat.com>
6287
6288 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6289 context_switch and remove stale comment.
6290
359f5fe6
PA
62912012-06-06 Pedro Alves <palves@redhat.com>
6292
6293 * infrun.c (struct execution_control_state): Remove
6294 `new_thread_event' field.
6295 (handle_inferior_event): Simplify new threads handling; don't
6296 resume the inferior if we find a new thread.
6297
2d4c29c5
TS
62982012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6299
6300 * NEWS: Document the deprecation of SH's 'regs' command.
6301 * inferior.h (all_registers_info): Add function declaration.
6302 * sh-tdep.c (sh_show_regs): Remove variable.
6303 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6304 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6305 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6306 (sh_show_regs_command): Remove functions.
6307 (sh_gdbarch_init): Don't set sh_show_regs.
6308 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6309 'info all-registers'.
6310 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6311 (sh64_show_regs): Remove functions.
6312 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6313
f5f1cdb6
JK
63142012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6315
6316 * configure.ac: Move development=true below AC_INIT.
6317 * configure: Regenerate.
6318
bf6309af
SS
63192012-06-05 Stan Shebs <stan@codesourcery.com>
6320
6321 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6322 gdb_stdout.
6323
45aa4659
JK
63242012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6325
6326 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6327 argument as ssize_t.
6328 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6329 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6330 * target.c (target_read_stack, target_write_memory)
6331 (target_write_raw_memory): Likewise.
6332 * target.h (target_read_stack, target_write_memory)
6333 (target_write_raw_memory): Likewise.
6334
1b162304
JK
63352012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6336
6337 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6338 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6339 * target.c (target_read_memory): Change LEN to ssize_t.
6340 * target.h (target_read_memory): Change LEN to ssize_t.
6341
8556afb4
PA
63422012-06-05 Pedro Alves <palves@redhat.com>
6343
6344 PR backtrace/13866
6345
6346 * breakpoint.c (until_break_command): Only fetch the selected
6347 frame after decode_line_1.
6348
fb139f32
PA
63492012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6350
6351 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6352 event breakpoint at _start, __start or main if a program
6353 interpreter is not found.
6354
a8e1bb34
JB
63552012-06-05 Joel Brobecker <brobecker@adacore.com>
6356
6357 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6358 Add declaration.
6359 * windows-tdep.c: #include "objfiles.h".
6360 (windows_iterate_over_objfiles_in_search_order): New function.
6361 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6362 iterate_over_objfiles_in_search_order gdbarch method to
6363 windows_iterate_over_objfiles_in_search_order.
6364 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6365
19630284
JB
63662012-06-05 Joel Brobecker <brobecker@adacore.com>
6367
6368 * gdbarch.sh: Add generation of
6369 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6370 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6371 (iterate_over_objfiles_in_search_order): New gdbarch method.
6372 * gdbarch.h, gdbarch.c: Regenerate.
6373 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6374 Add declaration.
6375 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6376 New function.
6377 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6378 out of lookup_symbol_aux_symtabs.
6379 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6380 call to lookup_symbol_aux_objfile.
6381 (struct global_sym_lookup_data): New type.
6382 (lookup_symbol_global_iterator_cb): New function.
6383 (lookup_symbol_global): Search for symbol using
6384 gdbarch_iterate_over_objfiles_in_search_order and
6385 lookup_symbol_global_iterator_cb.
6386 * findvar.c (struct minsym_lookup_data): New type.
6387 (minsym_lookup_iterator_cb): New function.
6388 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6389 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6390 and minsym_lookup_iterator_cb.
6391
67ff19f7
JB
63922012-06-05 Joel Brobecker <brobecker@adacore.com>
6393
6394 Revert the following patch:
6395 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6396 try locating the symbol in the symbol's own objfile first, before
6397 extending the search to all objfiles.
6398 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6399 out of lookup_symbol_aux_symtabs.
6400 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6401 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6402 Do not search EXCLUDE_OBJFILE.
6403 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6404 (lookup_symbol_global): Search for matches in the block's objfile
6405 first, before searching all other objfiles.
6406
ccab2054
JB
64072012-06-05 Joel Brobecker <brobecker@adacore.com>
6408
6409 * breakpoint.c (find_condition_and_thread): Stop parsing
6410 as soon as the first invalid keyword is found.
6411
e23d4a9c
JB
64122012-06-05 Joel Brobecker <brobecker@adacore.com>
6413
6414 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6415
70160166
JB
64162012-06-05 Joel Brobecker <brobecker@adacore.com>
6417
6418 * config/djgpp/djcheck.sh: Add copyright header.
6419
399501a5
JB
64202012-06-05 Joel Brobecker <brobecker@adacore.com>
6421
6422 * copyright.py (update_files, main): Fix path to update-copyright
6423 script.
6424
3770a159
JB
64252012-06-05 Joel Brobecker <brobecker@adacore.com>
6426
6427 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6428 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6429 for which a reminder to update by hand is printed.
6430
4aad0dfc
DE
64312012-06-04 Doug Evans <dje@google.com>
6432
6433 * buildsym.c (make_blockvector): Add comment.
6434
1f8cf220
PA
64352012-06-04 Pedro Alves <palves@redhat.com>
6436
6437 * arch-utils.c (default_gdb_signal_from_target): Delete.
6438 * arch-utils.h (default_gdb_signal_from_target): Delete.
6439 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6440 gdbarch_gdb_signal_from_target_p.
6441 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6442 predicate).
6443 * gdbarch.h: Regenerate.
6444 * gdbarch.c: Regenerate.
6445
86b49880
PA
64462012-06-04 Pedro Alves <palves@redhat.com>
6447
6448 * gdbarch.sh (gdb_signal_from_target): Mention that the
6449 implementation of the method must be host independent.
6450 * gdbarch.h: Regenerate.
6451
fe78531d
JK
64522012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6453
6454 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6455 parameters.
6456 (target_read_memory_bfd): New function.
6457 (symbol_file_add_from_memory): Use it.
6458
d790cf0a
DE
64592012-06-03 Doug Evans <dje@google.com>
6460
78e5175a
DE
6461 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6462 of primary symtab.
6463 (basic_lookup_transparent_type): Ditto.
6464
d790cf0a
DE
6465 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6466 (ALL_PRIMARY_SYMTABS): Use it.
6467 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6468 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6469 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6470 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6471 (basic_lookup_transparent_type): Ditto.
6472
c6e5ee5e
SDJ
64732012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6474
6475 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6476 it to optimize resolution of demangled name.
6477
a68ffae9
JK
64782012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6479
6480 * configure.ac (development): Define new variable.
6481 Call AC_CHECK_LIB for mcheck if $development.
6482 (ERROR_ON_WARNING): Enable it by default only if $development.
6483 * config.in: Regenerate.
6484 * configure: Regenerate.
6485
5299c1c4
JK
64862012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6487
6488 * target.c (target_read_memory): Make LEN argument as size_t.
6489 * target.h (target_read_memory): Likewise.
6490
64912012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
6492
6493 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6494
0c56f59b
EBM
64952012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6496
6497 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6498 BookE interface for PowerPC server processors if not available
6499 in the Linux Kernel.
6500
71bdabee
KS
65012012-05-31 Keith Seitz <keiths@redhat.com>
6502
6503 * linespec.c (decode_objc): Add cleanup to free
6504 INFO.FILE_SYMTABS.
6505 (find_linespec_symbols): Add cleanup to free CLASSES.
6506 * symfile.c (find_separate_debug_file_by_debuglink): Add
6507 cleanup to free DEBUGLINK.
6508 * ui-out.c (clear_header_list): No need to check if
6509 HEADER_NEXT.COLHDR is NULL.
6510 Free HEADER_NEXT.COL_NAME.
6511
acbd605d
MGD
65122012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6513
6514 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6515 warning.
6516
65662cde
PA
65172012-05-30 Jeff Kenton <jkenton@tilera.com>
6518
6519 * configure.host (gdb_host_cpu): Handle tilegx*.
6520 (gdb_host): Handle tilegx-*-linux*.
6521 * tilegx-linux-nat.c: New file.
6522 * config/tilegx/linux.mh: New file.
6523
ade64f0e
PA
65242012-05-30 Jeff Kenton <jkenton@tilera.com>
6525
6526 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6527 tilegx-linux-tdep.o.
6528 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6529 tilegx-linux-tdep.c.
6530 * configure.tgt: Handle tilegx-*-linux*.
6531 * tilegx-tdep.h: New file.
6532 * tilegx-tdep.c: New file.
6533 * tilegx-linux-tdep.c: New file.
6534 * regformats/reg-tilegx.dat: New file.
6535
bb08bdbd
EBM
65362012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6537
6538 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6539 accounting of hw watchpoints on ppc.
6540
ebd86fb5
TJB
65412012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6542
6543 * source.c (openp): Expand tilde in path entries.
6544
0a0edcd5
DE
65452012-05-29 Doug Evans <dje@google.com>
6546
98cc87bd
DE
6547 * buildsym.c (block_compar): Fix comment.
6548 (end_symtab): Fix and clarify some comments.
6549
0a0edcd5
DE
6550 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6551 cleanup_undefined_types.
6552 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6553 All callers updated.
6554
6f0c7050
TT
65552012-05-29 Tom Tromey <tromey@redhat.com>
6556
6557 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6558 fails.
6559 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6560 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6561 fails.
6562 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6563 fails.
6564
ec95993c
TG
65652012-05-29 Tristan Gingold <gingold@adacore.com>
6566
6567 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6568 (struct darwin_info): ... New struct.
6569 (solib_darwin_pspace_data): New variable.
6570 (darwin_pspace_data_cleanup): New function.
6571 (get_darwin_info): Likewise.
6572 (darwin_dyld_version_ok, darwin_load_image_infos)
6573 (darwin_solib_get_all_image_info_addr_at_init)
6574 (darwin_solib_read_all_image_info_addr): Add info argument.
6575 Adjust code.
6576 (darwin_current_sos): Use per pspace structure.
6577 (darwin_solib_create_inferior_hook): Likewise.
6578 (darwin_clear_solib): Likewise.
6579 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6580
ae25568b
PA
65812012-05-28 Pedro Alves <palves@redhat.com>
6582
6583 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6584 block that uses them. Clear ecss before handling each event.
6585
0c5bf5a9
JK
65862012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6587
6588 * solib-svr4.c (svr4_current_sos): New comment on
6589 svr4_current_sos_via_xfer_libraries fall back.
6590
bfb05775
JK
65912012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6592
6593 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6594 it as a fallback for TYPE_IS_OPAQUE.
6595 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6596 symbols for lookup_symbol.
6597
685b1105
JK
65982012-05-24 John Steele Scott <toojays@toojays.net>
6599
6600 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6601 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6602 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6603 (check_producer): ... this new function, which also checks for ICC
6604 and caches the result.
6605 (producer_is_icc): New function.
6606 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6607 producer was ICC.
6608
22203bbf
PA
66092012-05-24 Pedro Alves <palves@redhat.com>
6610
6611 PR gdb/7205
6612
6613 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6614 (default_gdb_signal_to_target): ... this. Add comment.
6615 (default_gdb_signal_from_host): Rename to ...
6616 (default_gdb_signal_from_target): ... this. Add comment.
6617 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6618 (default_gdb_signal_to_target): ... this.
6619 (default_gdb_signal_from_host): Rename to ...
6620 (default_gdb_signal_from_target): ... this.
6621 * corelow.c (core_open): Adjust to naming change. Replace comment.
6622 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6623 (gdb_signal_from_target): ... this. Adjust to
6624 default_gdb_signal_from_host naming change. Extend comment.
6625 (gdb_signal_to_host): Rename to ...
6626 (gdb_signal_to_target): ... this. Adjust to
6627 default_gdb_signal_to_host naming change.
6628 * gdbarch.h, gdbarch.c: Renegerate.
6629
a493e3e2
PA
66302012-05-24 Pedro Alves <palves@redhat.com>
6631
6632 PR gdb/7205
6633
f782ad9b 6634 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 6635
2ea28649
PA
66362012-05-24 Pedro Alves <palves@redhat.com>
6637
6638 PR gdb/7205
6639
6640 Replace target_signal with gdb_signal throughout.
6641
b09846a9
PA
66422012-05-24 Pedro Alves <palves@redhat.com>
6643
6644 PR tui/14159
6645
6646 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6647 string, instead of reusing the va_list argument.
6648
e77c107e
TT
66492012-05-24 Tom Tromey <tromey@redhat.com>
6650
6651 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6652 Remove.
6653
9fccedf7
DE
66542012-05-23 Doug Evans <dje@google.com>
6655
d50bd42b
DE
6656 * symtab.c (search_symbols): Formatting fixes.
6657 (print_symbol_info): Formatting fixes.
6658
9fccedf7
DE
6659 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6660 int64_t change to leb128 API.
6661 (read_encoded_value, decode_frame_entry_1): Ditto.
6662 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6663 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6664 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6665 (execute_stack_op): Ditto.
6666 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6667 (safe_read_uleb128, safe_read_sleb128): Ditto.
6668 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6669 (dwarf2_compile_expr_to_ax): Ditto.
6670 (locexpr_describe_location_piece): Ditto.
6671 (disassemble_dwarf_expression): Ditto.
6672 (locexpr_describe_location_1): Ditto.
6673
f3e0e960
SS
66742012-05-23 Stan Shebs <stan@codesourcery.com>
6675 Kwok Cheung Yeung <kcy@codesourcery.com>
6676
6677 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6678 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6679 (mi-cmd-info.o): New rule.
6680 * osdata.h (info_osdata_command): New declaration.
6681 * osdata.c (info_osdata_command): Change to non-static.
6682 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6683 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6684 * mi/mi-cmd-info.c: New file.
6685
c51fe631
DE
66862012-05-23 Doug Evans <dje@google.com>
6687
71cddcc1
DE
6688 * symtab.c (search_symbols): Pass NULL for file_matcher to
6689 expand_symtabs_matching if there are no files to match.
6690
c51fe631
DE
6691 * gdbtypes.c (lookup_typename): Simplify.
6692
a79378d4
PA
66932012-05-23 Pedro Alves <palves@redhat.com>
6694
6695 * arch-utils.h (default_target_signal_to_host): Delete.
6696 * arch-utils.c (default_target_signal_to_host): Delete.
6697 * gdbarch.sh (target_signal_to_host): Remove.
6698 * gdbarch.h, gdbarch.c: Regenerate.
6699
f664829e
DE
67002012-05-22 Doug Evans <dje@google.com>
6701
6702 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6703 "const gdb_byte *".
6704 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6705 (execute_cfa_program): Update to match API of leb128 functions.
6706 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6707 "const gdb_byte *".
6708 (read_unsigned_leb128, read_signed_leb128): Delete.
6709 (read_initial_length): Change type of buf argument to
6710 "const gdb_byte *".
6711 (read_encoded_value): Update to match API of leb128 functions.
6712 (decode_frame_entry): Change result to "const gdb_byte *", and
6713 similarly for "start" parameter.
6714 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6715 (dwarf2_build_frame_info): Change local frame_ptr to
6716 "const gdb_byte *".
6717 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6718 read_uleb128, read_sleb128. All callers updated.
6719 (safe_skip_leb128): New function.
6720 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6721 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6722 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6723 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6724 read_uleb128, read_sleb128.
6725 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6726 (execute_stack_op): Update to match API of leb128 functions.
6727 * dwarf2expr.h: #include "leb128.h".
6728 (read_uleb128, read_sleb128): Delete.
6729 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6730 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6731 * dwarf2loc.c (debug_loc_kind): New enum.
6732 (decode_debug_loc_addresses): New function.
6733 (decode_debug_loc_dwo_addresses): New function.
6734 (dwarf2_find_location_expression): Rewrite.
6735 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6736 (locexpr_describe_location_piece): Ditto.
6737 (disassemble_dwarf_expression): Ditto.
6738 (locexpr_describe_location_1): Ditto.
6739 (loclist_describe_location): Rewrite.
6740 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6741 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6742 (dwarf2_section_buffer_overflow_complaint): Renamed from
6743 dwarf2_macros_too_long_complaint. All callers updated.
6744 (skip_leb128): Delete.
6745 (init_cu_die_reader): Initialize reader->buffer_end.
6746 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6747 (skip_form_bytes): New arg buffer_end. All callers updated.
6748 Replace call to skip_leb128 with gdb_skip_leb128.
6749 (skip_unknown_opcode): New arg mac_end. All callers updated.
6750 (fill_in_loclist_baton): Initialize baton->from_dwo.
6751
837a1b32
MR
67522012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6753
6754 * mips-linux-nat.c (mips_linux_read_description): Use a more
6755 verbose error message.
6756
d0e64392
MR
67572012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6758
6759 * NEWS: Add MIPS/Linux DSP support.
6760 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6761 (SIGCONTEXT_DSPCTL): New macro.
6762 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6763 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6764 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6765 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6766 (N64_SIGCONTEXT_HI3): Likewise.
6767 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6768 (N64_SIGCONTEXT_LO3): Likewise.
6769 (N64_SIGCONTEXT_DSPCTL): Likewise.
6770 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6771 (mips_linux_o32_sigframe_init): Handle DSP registers.
6772 (mips_linux_n32n64_sigframe_init): Likewise.
6773
8bea7ed1
PM
67742012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6775
6776 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6777 call to abort.
6778
dab06dbe
PA
67792012-05-22 Pedro Alves <palves@redhat.com>
6780
6781 * target.h (store_waitstatus): Move declaration ...
6782 * inf-child.h (store_waitstatus): ... here.
6783 * target.c: Move inclusion of gdb_wait.h, and ...
6784 (store_waitstatus): ... this ...
6785 * inf-child.c: ... here.
6786 * linux-nat.c: Include inf-child.h.
6787 * rs6000-nat.c: Include inf-child.h.
6788 * spu-linux-nat.c: Include inf-child.h.
6789
43011e52
PM
67902012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6791
6792 * tracepoint.c (start_tracing): Add missing i18n markup.
6793 (stop_tracing, set_trace_user): Ditto.
6794 (set_trace_notes, set_trace_stop_notes): Ditto.
6795
b1af9e97
TT
67962012-05-21 Tom Tromey <tromey@redhat.com>
6797
6798 PR c++/7173:
6799 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6800 types.
6801 * value.h (value_cast_pointers): Update.
6802 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6803 (value_cast): Update.
6804 (update_search_result): New function.
6805 (do_search_struct_field): New, from search_struct_field. Check
6806 for ambiguous results.
6807 (search_struct_field): Rewrite.
6808 * infcall.c (value_arg_coerce): Update.
6809 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6810 value_cast_pointers.
6811 * ada-lang.c (ada_convert_actual): Update.
6812
e9e5e6b3
TT
68132012-05-21 Tom Tromey <tromey@redhat.com>
6814
6815 * macroexp.c (macro_stringify): Terminate the string.
6816
1564a261
JK
68172012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6818
6819 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6820 Describe it.
6821 * auto-load.c (auto_load_expand_dir_vars): New function.
6822 (auto_load_safe_path_vec_update): Use it, remove the
6823 substitute_path_component call thanks to it.
6824 (auto_load_objfile_script): Remove the debug_file_directory processing.
6825 Use auto_load_expand_dir_vars, remove the substitute_path_component
6826 call thanks to it.
6827 * configure: Regenerate.
6828 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6829 path. Escape $ also for $debugdir.
6830 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6831 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6832
a3ec0bb1
DE
68332012-05-20 Doug Evans <dje@google.com>
6834
6835 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6836 before use. Check for symtab->includes == NULL before scanning it.
6837
d467df4e
MR
68382012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6839
6840 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6841
4cc0665f
MR
68422012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6843
6844 * NEWS: Add microMIPS support and "set mips compression",
6845 "show mips compression" commands.
6846 * mips-tdep.h (mips_isa): New enum.
6847 (gdbarch_tdep): Add mips_isa.
6848 (mips_pc_is_mips16): Update prototype.
6849 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6850 * mips-tdep.c (mips_compression_mips16): New variable.
6851 (mips_compression_micromips): Likewise.
6852 (mips_compression_strings): Likewise.
6853 (mips_compression_string): Likewise.
6854 (is_mips16_isa, is_micromips_isa): New functions.
6855 (is_mips16_addr): Rename to...
6856 (is_compact_addr): ... this.
6857 (unmake_mips16_addr): Likewise to...
6858 (unmake_compact_addr): ... this.
6859 (make_mips16_addr): Likewise to...
6860 (make_compact_addr): ... this.
6861 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6862 functions.
6863 (mips_elf_make_msymbol_special): Handle microMIPS code.
6864 (msymbol_is_special): Rename to...
6865 (msymbol_is_mips16): ... this.
6866 (mips_make_symbol_special, mips_pc_is_mips16): Update
6867 accordingly.
6868 (msymbol_is_mips, msymbol_is_micromips): New functions.
6869 (mips16_to_32_reg): Rename to...
6870 (mips_reg3_to_reg): ... this.
6871 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6872 (mips_pc_isa): Likewise.
6873 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6874 code.
6875 (mips_fetch_instruction): Pass return status instead of printing
6876 an error message if requested. Handle microMIPS code. Bail out
6877 on an invalid ISA.
6878 (micromips_op): New macro.
6879 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6880 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6881 (b6s4_op, b7s3_reg): Likewise.
6882 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6883 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6884 (mips_insn_size): New function.
6885 (mips32_next_pc): Update mips_fetch_instruction call.
6886 (micromips_relative_offset7): New function.
6887 (micromips_relative_offset10): Likewise.
6888 (micromips_relative_offset16): Likewise.
6889 (micromips_pc_insn_size): Likewise.
6890 (micromips_bc1_pc): Likewise.
6891 (micromips_next_pc): Likewise.
6892 (unpack_mips16): Update mips_fetch_instruction call.
6893 (extended_mips16_next_pc): Update according to change to
6894 mips16_to_32_reg.
6895 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6896 code.
6897 (mips16_scan_prologue): Update mips_fetch_instruction call.
6898 Update according to change to mips16_to_32_reg.
6899 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6900 (mips_insn16_frame_base_sniffer): Likewise.
6901 (micromips_decode_imm9): New function.
6902 (micromips_scan_prologue): Likewise.
6903 (mips_micro_frame_cache): Likewise.
6904 (mips_micro_frame_this_id): Likewise.
6905 (mips_micro_frame_prev_register): Likewise.
6906 (mips_micro_frame_sniffer): Likewise.
6907 (mips_micro_frame_unwind): New variable.
6908 (mips_micro_frame_base_address): New function.
6909 (mips_micro_frame_base): New variable.
6910 (mips_micro_frame_base_sniffer): New function.
6911 (mips32_scan_prologue): Update mips_fetch_instruction call.
6912 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6913 rather than for MIPS16.
6914 (mips_insn32_frame_base_sniffer): Likewise.
6915 (mips_addr_bits_remove): Handle microMIPS code.
6916 (deal_with_atomic_sequence): Rename to...
6917 (mips_deal_with_atomic_sequence): ... this. Update the type
6918 of the variable used to hold an instruction. Remove the ISA bit
6919 check. Update mips_fetch_instruction call.
6920 (micromips_deal_with_atomic_sequence): New function.
6921 (deal_with_atomic_sequence): Likewise.
6922 (mips_about_to_return): Handle microMIPS code. Update
6923 mips_fetch_instruction call.
6924 (heuristic_proc_start): Check for the standard MIPS ISA rather
6925 than for MIPS16. Update mips_pc_is_mips16 and
6926 mips_fetch_instruction calls. Handle microMIPS code.
6927 (mips_push_dummy_code): Handle microMIPS code.
6928 (mips_eabi_push_dummy_call): Likewise.
6929 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6930 (mips_o64_push_dummy_call): Handle microMIPS code.
6931 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6932 (is_delayed): Remove function.
6933 (mips_single_step_through_delay): Replace the call to is_delayed
6934 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6935 Handle microMIPS code.
6936 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6937 microMIPS code.
6938 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6939 call.
6940 (micromips_in_function_epilogue_p): New function.
6941 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6942 call.
6943 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6944 Handle microMIPS.
6945 (gdb_print_insn_mips): Likewise.
6946 (mips_breakpoint_from_pc): Likewise.
6947 (mips_remote_breakpoint_from_pc): New function.
6948 (mips32_instruction_has_delay_slot): Simplify making use of the
6949 updated mips_fetch_instruction interface.
6950 (micromips_instruction_has_delay_slot): New function.
6951 (mips16_instruction_has_delay_slot): Simplify making use of the
6952 updated mips_fetch_instruction interface.
6953 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6954 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6955 calls. Handle microMIPS code.
6956 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6957 (mips_skip_trampoline_code): Handle microMIPS code.
6958 (global_mips_compression): New function.
6959 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6960 file flags. Register the microMIPS remote breakpoint handler
6961 and heuristic frame unwinder.
6962 (show_mips_compression): New function.
6963 (_initialize_mips_tdep): Add the "set mips compression" and
6964 "show mips compression" commands.
6965
22e048c9
SDJ
69662012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6967
6968 * ada-lang.c:
6969 * ada-tasks.c:
6970 * ada-varobj.c:
6971 * amd64-darwin-tdep.c:
6972 * arm-symbian-tdep.c:
6973 * arm-tdep.c:
6974 * avr-tdep.c:
6975 * ax-gdb.c:
6976 * bfin-linux-tdep.c:
6977 * breakpoint.c:
6978 * c-valprint.c:
6979 * cli/cli-cmds.c:
6980 * coffread.c:
6981 * cp-support.c:
6982 * cris-tdep.c:
6983 * dwarf2-frame-tailcall.c:
6984 * dwarf2-frame.c:
6985 * dwarf2expr.c:
6986 * dwarf2loc.c:
6987 * dwarf2read.c:
6988 * elfread.c:
6989 * eval.c:
6990 * expprint.c:
6991 * f-valprint.c:
6992 * frv-tdep.c:
6993 * h8300-tdep.c:
6994 * hppa-hpux-tdep.c:
6995 * hppa-tdep.c:
6996 * hppanbsd-tdep.c:
6997 * i386-nto-tdep.c:
6998 * i386-tdep.c:
6999 * i387-tdep.c:
7000 * ia64-tdep.c:
7001 * jit.c:
7002 * linespec.c:
7003 * linux-tdep.c:
7004 * lm32-tdep.c:
7005 * m2-valprint.c:
7006 * m32c-tdep.c:
7007 * m32r-rom.c:
7008 * m32r-tdep.c:
7009 * m68k-tdep.c:
7010 * m68klinux-tdep.c:
7011 * mi/mi-main.c:
7012 * microblaze-tdep.c:
7013 * mips-linux-tdep.c:
7014 * mips-tdep.c:
7015 * mn10300-tdep.c:
7016 * p-valprint.c:
7017 * parse.c:
7018 * ppc-linux-tdep.c:
7019 * ppc-sysv-tdep.c:
7020 * printcmd.c:
7021 * python/py-finishbreakpoint.c:
7022 * python/py-inferior.c:
7023 * python/py-infthread.c:
7024 * python/py-type.c:
7025 * python/python.c:
7026 * remote-fileio.c:
7027 * remote-m32r-sdi.c:
7028 * remote-mips.c:
7029 * reverse.c:
7030 * rl78-tdep.c:
7031 * rs6000-aix-tdep.c:
7032 * rs6000-tdep.c:
7033 * s390-tdep.c:
7034 * score-tdep.c:
7035 * sh64-tdep.c:
7036 * skip.c:
7037 * solib-darwin.c:
7038 * solib-dsbt.c:
7039 * solib-frv.c:
7040 * sparc-tdep.c:
7041 * spu-multiarch.c:
7042 * spu-tdep.c:
7043 * stack.c:
7044 * symfile.c:
7045 * symtab.c:
7046 * tic6x-tdep.c:
7047 * tracepoint.c:
7048 * v850-tdep.c:
7049 * valarith.c:
7050 * valprint.c:
7051 * value.c:
7052 * xcoffread.c:
7053 * xtensa-tdep.c:
7054 * ada-lang.c:
7055 * ada-tasks.c:
7056 * ada-varobj.c:
7057 * amd64-darwin-tdep.c:
7058 * arm-symbian-tdep.c:
7059 * arm-tdep.c: Delete unused variables.
7060
aff139ff
JK
70612012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7062
7063 Rename $ddir to $datadir.
7064 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
7065 * auto-load.c (auto_load_safe_path_vec_update)
7066 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
7067 * configure: Regenerate.
7068 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
7069 Likewise. Remove the 'use $ddir' help string.
7070
f7bfa992
JK
70712012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7072
7073 * auto-load.c (show_auto_load_safe_path): Accept any combination of
7074 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
7075
9cb709b6
TT
70762012-05-18 Tom Tromey <tromey@redhat.com>
7077
7078 PR exp/13907:
7079 * valprint.h (struct value_print_options) <symbol_print>: New
7080 field.
7081 * valprint.c (user_print_options): Add default for symbol_print.
7082 (show_symbol_print): New function.
7083 (generic_val_print): Respect symbol_print.
7084 (_initialize_valprint): Add "print symbol" setting.
7085 * f-valprint.c (f_val_print): Respect symbol_print.
7086 * c-valprint.c (c_val_print): Respect symbol_print.
7087 * NEWS: Update.
7088 * printcmd.c (print_address_symbolic): Return int. Ignore some
7089 zero-size symbols.
7090 (print_address_demangle): Return int.
7091 * defs.h: (print_address_symbolic): Return int.
7092 * value.h (print_address_demangle): Return int.
7093
b012acdd
TT
70942012-05-18 Tom Tromey <tromey@redhat.com>
7095
7096 * valprint.c (val_print_string): Don't print leading space.
7097 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
7098 print space before string or vtbl.
7099 * m2-valprint.c (print_unpacked_pointer): Optionally print space
7100 before string.
7101 * jv-valprint.c (java_value_print): Print space before string.
7102 * go-valprint.c (print_go_string): Print space before string.
7103 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
7104 space before string.
7105 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
7106 space before string or vtbl.
7107 * auxv.c (fprint_target_auxv): Print space after address.
7108
1d51a733
TT
71092012-05-18 Tom Tromey <tromey@redhat.com>
7110
7111 * printcmd.c (print_address_demangle): Remove special case for 0.
7112
edf0c1b7
TT
71132012-05-18 Tom Tromey <tromey@redhat.com>
7114
7115 * printcmd.c (print_address_demangle): Add 'opts' argument.
7116 * p-valprint.c (pascal_val_print): Update.
7117 * jv-valprint.c (java_val_print): Update.
7118 * value.h: Update.
7119 * valprint.c (generic_val_print): Update.
7120 (print_function_pointer_address): Add 'options' argument. Remove
7121 'addressprint' argument. Update.
7122 * m2-valprint.c (print_unpacked_pointer): Update.
7123 * gnu-v3-abi.c (print_one_vtable): Update.
7124 (gnuv3_print_method_ptr): Update.
7125 * f-valprint.c (f_val_print): Update.
7126 * cp-valprint.c (cp_print_value_fields): Update.
7127 * valprint.h (print_function_pointer_address): Update.
7128 * c-valprint.c (c_val_print): Update.
7129
9703b513
TT
71302012-05-18 Tom Tromey <tromey@redhat.com>
7131
7132 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7133 directly corresponding to the found psymtab.
7134 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7135 (dw2_find_pc_sect_symtab): Use it.
7136 * block.h (blockvector_contains_pc): Declare.
7137 * block.c (find_block_in_blockvector): New function.
7138 (blockvector_for_pc_sect): Use it.
7139 (blockvector_contains_pc): New function.
7140
5a439849
MR
71412012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7142
7143 * mips-tdep.h (mips_write_pc): New prototype.
7144 * mips-tdep.c (mips_write_pc): Make external, add description.
7145 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7146 add description.
7147
8376de04
MR
71482012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
7149
7150 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7151 mips_regnum->pc.
7152 (mips_unwind_pc, mips_write_pc): Likewise.
7153 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7154 gdbarch_read_pc.
7155
d3581e61
JB
71562012-05-17 Joel Brobecker <brobecker@adacore.com>
7157
7158 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7159 proc_warn, proc_error, proc_get_status, proc_flags,
7160 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7161 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7162 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7163 proc_stop_process, proc_wait_for_stop, proc_run_process,
7164 proc_set_traced_signals, proc_set_traced_faults,
7165 proc_set_traced_sysentry, proc_set_traced_sysexit,
7166 proc_set_held_signals, proc_get_held_signals,
7167 proc_get_traced_signals, proc_get_traced_faults,
7168 proc_get_traced_sysentry, proc_get_traced_sysexit,
7169 proc_clear_current_fault, proc_set_current_signal,
7170 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7171 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7172 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7173 proc_get_current_thread, proc_get_current_thread,
7174 proc_get_current_thread, proc_update_threads,
7175 proc_update_threads, proc_update_threads, proc_update_threads,
7176 proc_iterate_over_threads, procfs_find_new_threads,
7177 procfs_pid_to_str): Make static. Remove advance declaration.
7178 (proc_cursig): Make static. Conditionalized defintion on
7179 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7180 (proc_syscall, proc_set_kill_on_last_close,
7181 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7182 proc_get_pending_signals, proc_get_signal_actions,
7183 proc_trace_signal, proc_ignore_signal): Delete.
7184
81b9b86e
SDJ
71852012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
7186
7187 * coffread.c (cs_section_address): Passing proper argument for
7188 `bfd_get_section_vma'.
7189 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7190 `bfd_get_section_flags'.
7191 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7192 `bfd_get_section_vma'.
7193
abc9d0dc
TT
71942012-05-16 Tom Tromey <tromey@redhat.com>
7195
7196 PR macros/13205:
7197 * macrotab.h: (macro_define_special): Declare.
7198 (enum macro_special_kind): New.
7199 (struct macro_definition) <argc, replacement>: Update comments.
7200 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7201 (macro_define_object_internal): New function.
7202 (macro_define_object): Use it.
7203 (macro_define_special): New function.
7204 (fixup_definition): New function.
7205 (macro_lookup_definition, foreach_macro_in_scope)
7206 (foreach_macro): Use fixup_definition.
7207 * macroexp.h (macro_stringify): Declare.
7208 * macroexp.c (free_buffer_return_text): New function.
7209 (stringify): Constify "arg".
7210 (macro_stringify): New function.
7211 * dwarf2read.c (macro_start_file): Call macro_define_special.
7212
6a3a010b 72132012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 7214 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
7215
7216 * breakpoint.h (bp_location): Add related_address member.
7217 * inferior.h (get_return_value): Take a pointer to struct value
7218 instead of struct type for the function requested.
7219 * value.h (using_struct_return): Likewise.
7220 * gdbarch.sh (return_value): Take a pointer to struct value
7221 instead of struct type for the function requested.
7222 * breakpoint.c (set_breakpoint_location_function): Initialize
7223 related_address for bp_gnu_ifunc_resolver breakpoints.
7224 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7225 requested function's address to gdbarch_return_value.
7226 * eval.c (evaluate_subexp_standard): Pass the requested
7227 function's address to using_struct_return.
7228 * infcall.c (call_function_by_hand): Pass the requested
7229 function's address to using_struct_return and
7230 gdbarch_return_value.
7231 * infcmd.c (get_return_value): Take a pointer to struct value
7232 instead of struct type for the function requested.
7233 (print_return_value): Update accordingly.
7234 (finish_command_continuation): Likewise.
7235 * stack.c (return_command): Pass the requested function's
7236 address to using_struct_return and gdbarch_return_value.
7237 * value.c (using_struct_return): Take a pointer to struct value
7238 instead of struct type for the function requested. Pass the
7239 requested function's address to gdbarch_return_value.
7240 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7241 New function_value member, replacing function_type.
7242 (bpfinishpy_dealloc): Update accordingly.
7243 (bpfinishpy_pre_stop_hook): Likewise.
7244 (bpfinishpy_init): Likewise. Record the requested function's
7245 address.
7246 * mips-tdep.c (mips_fval_reg): New enum.
7247 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7248 words put in GP registers.
7249 (mips_o64_push_dummy_call): Update a comment.
7250 (mips_o32_return_value): Take a pointer to struct value instead
7251 of struct type for the function requested and use it to check if
7252 using the MIPS16 calling convention. Return the designated
7253 general purpose registers for floating-point values returned in
7254 MIPS16 mode.
7255 (mips_o64_return_value): Likewise.
7256 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7257 (ppc_sysv_abi_broken_return_value): Likewise.
7258 (ppc64_sysv_abi_return_value): Likewise.
7259 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7260 value instead of struct type for the function requested.
7261 * amd64-tdep.c (amd64_return_value): Likewise.
7262 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7263 * arm-tdep.c (arm_return_value): Likewise.
7264 * avr-tdep.c (avr_return_value): Likewise.
7265 * bfin-tdep.c (bfin_return_value): Likewise.
7266 * cris-tdep.c (cris_return_value): Likewise.
7267 * frv-tdep.c (frv_return_value): Likewise.
7268 * h8300-tdep.c (h8300_return_value): Likewise.
7269 (h8300h_return_value): Likewise.
7270 * hppa-tdep.c (hppa32_return_value): Likewise.
7271 (hppa64_return_value): Likewise.
7272 * i386-tdep.c (i386_return_value): Likewise.
7273 * ia64-tdep.c (ia64_return_value): Likewise.
7274 * iq2000-tdep.c (iq2000_return_value): Likewise.
7275 * lm32-tdep.c (lm32_return_value): Likewise.
7276 * m32c-tdep.c (m32c_return_value): Likewise.
7277 * m32r-tdep.c (m32r_return_value): Likewise.
7278 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7279 * m68k-tdep.c (m68k_return_value): Likewise.
7280 (m68k_svr4_return_value): Likewise.
7281 * m88k-tdep.c (m88k_return_value): Likewise.
7282 * mep-tdep.c (mep_return_value): Likewise.
7283 * microblaze-tdep.c (microblaze_return_value): Likewise.
7284 * mn10300-tdep.c (mn10300_return_value): Likewise.
7285 * moxie-tdep.c (moxie_return_value): Likewise.
7286 * mt-tdep.c (mt_return_value): Likewise.
7287 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7288 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7289 (ppc_sysv_abi_broken_return_value): Likewise.
7290 (ppc64_sysv_abi_return_value): Likewise.
7291 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7292 * rl78-tdep.c (rl78_return_value): Likewise.
7293 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7294 * rx-tdep.c (rx_return_value): Likewise.
7295 * s390-tdep.c (s390_return_value): Likewise.
7296 * score-tdep.c (score_return_value): Likewise.
7297 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7298 (sh_return_value_fpu): Likewise.
7299 * sh64-tdep.c (sh64_return_value): Likewise.
7300 * sparc-tdep.c (sparc32_return_value): Likewise.
7301 * sparc64-tdep.c (sparc64_return_value): Likewise.
7302 * spu-tdep.c (spu_return_value): Likewise.
7303 * tic6x-tdep.c (tic6x_return_value): Likewise.
7304 * v850-tdep.c (v850_return_value): Likewise.
7305 * vax-tdep.c (vax_return_value): Likewise.
7306 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7307 * xtensa-tdep.c (xtensa_return_value): Likewise.
7308 * gdbarch.c: Regenerate.
7309 * gdbarch.h: Regenerate.
7310
29ca12b3
TT
73112012-05-15 Tom Tromey <tromey@redhat.com>
7312
7313 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7314
588ae58c
JB
73152012-05-15 Joel Brobecker <brobecker@adacore.com>
7316
7317 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7318 of command in two error message.
7319
855a6e68
JB
73202012-05-15 Joel Brobecker <brobecker@adacore.com>
7321
7322 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7323
d634f2de
JB
73242012-05-15 Joel Brobecker <brobecker@adacore.com>
7325
7326 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7327
9cc815f5
JK
73282012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7329
7330 * NEWS (show auto-load scripts-directory): Add forgotten command.
7331
6a609e58
JK
73322012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7333
7334 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7335 parameters.
7336
ac1438b5
L
73372012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7338
7339 * amd64-tdep.c: Include features/i386/x32.c and
7340 features/i386/x32-avx.c.
7341 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7342 initialize_tdesc_x32_avx.
7343
e7e0cddf
SS
73442012-05-14 Stan Shebs <stan@codesourcery.com>
7345
7346 Add dynamic printf.
7347 * breakpoint.h (enum bptype): New type bp_dprintf.
7348 (struct breakpoint): New field extra_string.
7349 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7350 (create_breakpoint): Add extra_string arg.
7351 * breakpoint.c (dprintf_breakpoint_ops): New.
7352 (is_breakpoint): Add bp_dprintf.
7353 (bpstat_what): Add dprintf case.
7354 (bptype_string): Ditto.
7355 (print_one_breakpoint_location): Ditto.
7356 (init_bp_location): Ditto.
7357 (bkpt_print_mention): Ditto.
7358 (dprintf_style_enums): New array.
7359 (dprintf_style): New global.
7360 (dprintf_function): New global.
7361 (dprintf_channel): New global.
7362 (update_dprintf_command_list): New function.
7363 (update_dprintf_commands): New function.
7364 (init_breakpoint_sal): Add extra_string argument, handle it.
7365 (create_breakpoint_sal): Add extra_string argument.
7366 (create_breakpoints_sal): Add extra_string argument, update callers.
7367 (find_condition_and_thread): Add extra argument.
7368 (create_breakpoint): Add extra_string argument, record it.
7369 (dprintf_command): New function.
7370 (break_command_1): Add arg to create_breakpoint call.
7371 (handle_gnu_v3_exceptions): Ditto.
7372 (trace_command): Ditto.
7373 (ftrace_command): Ditto.
7374 (strace_command): Ditto.
7375 (bkpt_print_mention): Add dprintf case.
7376 (create_breakpoint_sal_default): Add extra_string argument.
7377 (_initialize_breakpoint): Add new commands.
7378 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7379 * python/py-breakpoint.c (bppy_init): Ditto.
7380 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7381
8ae38c14
MR
73822012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7383
7384 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7385
9f676e66
SCR
73862012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7387
7388 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7389 unsigned long long.
7390
7efc75aa
SCR
73912012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7392
7393 Add a new function gdb.find_pc_line to the Python API.
7394 * NEWS (Python Scripting): Add entry about the new function.
7395 * python/python.c (gdbpy_find_pc_line): New function which
7396 implements gdb.find_pc_line.
7397 (GdbMethods): Add entry for the new function.
7398
70af3797
PA
73992012-05-12 Pedro Alves <palves@redhat.com>
7400
7401 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7402 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7403
06da564e
EZ
74042012-05-12 Eli Zaretskii <eliz@gnu.org>
7405
7406 * inferior.c: Include completer.h
7407 (initialize_inferiors): Set completer of add-inferior to
7408 filename_completer.
7409
0288cee2
L
74102012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7411
7412 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7413 gdbarch_ptr_bit for x32 core dump.
7414
f6537a2c
L
74152012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7416
7417 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7418 and features/i386/x32-avx-linux.c.
7419
85d4a676
SS
74202012-05-11 Stan Shebs <stan@codesourcery.com>
7421 Kwok Cheung Yeung <kcy@codesourcery.com>
7422
7423 * NEWS: Describe new info os commands.
7424 * common/linux-osdata.c (PID_T, TIME_T): Define.
7425 (MAX_PID_T_STRLEN): New.
7426 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7427 MAX_PID_T_STRLEN.
7428 (command_from_pid): Add comment. Change to use PID_T.
7429 (commandline_from_pid): Change to use PID_T.
7430 (user_from_pid): Add comment.
7431 (get_process_owner): Add comment. Change to use PID_T and
7432 MAX_PID_T_STRLEN.
7433 (get_number_of_cpu_cores): Add comment.
7434 (get_cores_used_by_process): Add comment. Change to use PID_T and
7435 MAX_PID_T_STRLEN.
7436 (linux_xfer_osdata_processes): Change to use PID_T and
7437 MAX_PID_T_STRLEN.
7438 (compare_processes): New function.
7439 (linux_xfer_osdata_processgroups): New function.
7440 (linux_xfer_osdata_threads): Change to use PID_T.
7441 (linux_xfer_osdata_fds): New function.
7442 (format_socket_state, print_sockets): New functions.
7443 (union socket_addr): New union.
7444 (linux_xfer_osdata_isockets): New function.
7445 (time_from_time_t, group_from_gid): New functions.
7446 (linux_xfer_osdata_shm): New function.
7447 (linux_xfer_osdata_sem): New function.
7448 (linux_xfer_osdata_msg): New function.
7449 (linux_xfer_osdata_modules): New function.
7450 (osdata_table): Add new entries.
7451 * common/buffer.c (buffer_xml_printf): Add support for long and
7452 long long format specifiers.
7453
f24afd6d
L
74542012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7455
7456 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7457 (tdesc_x32_avx_linux): Likewise.
7458
7349ff92
JK
74592012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7460
7461 Implement multi-component --with-auto-load-dir.
7462 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7463 entries.
7464 (--with-auto-load-safe-path): Update the default value description.
7465 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7466 New.
7467 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7468 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7469 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7470 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7471 "set auto-load scripts-directory".
7472 * config.in: Regenerate.
7473 * configure: Regenerate.
7474 * configure.ac (--with-auto-load-dir): New configure option.
7475 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7476
6dea1fbd
JK
74772012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7478
7479 Provide $ddir substitution for --with-auto-load-safe-path.
7480 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7481 entries.
7482 * auto-load.c: Include observer.h.
7483 (auto_load_safe_path_vec_update): Call substitute_path_component for
7484 each component. New variable ddir_subst.
7485 (auto_load_gdb_datadir_changed): New function.
7486 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7487 AUTO_LOAD_SAFE_PATH. New comment.
7488 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7489 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7490 * config.in: Regenerate.
7491 * configure: Regenerate.
7492 * configure.ac (--auto-load-safe-path): Rename
7493 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7494 GDB_DATADIR/auto-load.
7495 * defs.h (substitute_path_component): New declaration.
7496 * top.c: Include observer.h.
7497 (set_gdb_datadir): New function.
7498 (init_main): Install it for "set data-directory".
7499 * utils.c (substitute_path_component): New function.
7500
b09aca3a
JK
75012012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7502
7503 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7504 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7505 DEBUG_FILE_DIRECTORY. Handle multiple components of
7506 DEBUG_FILE_DIRECTORY.
7507
95554aad
TT
75082012-05-10 Tom Tromey <tromey@redhat.com>
7509
7510 * dwarf2read.c (recursively_write_psymbols): New function.
7511 (write_psymtabs_to_index): Use it.
7512
7513 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7514 field.
7515 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7516 (load_partial_comp_unit): Update.
7517 (queue_comp_unit): Add argument 'pretend_language'.
7518 (process_queue): Update.
7519 (psymtab_to_symtab_1): Skip dependencies that have a user.
7520 (load_partial_comp_unit_reader): Give meaning to the 'data'
7521 argument.
7522 (load_full_comp_unit): Add 'pretend_language' argument.
7523 (process_full_comp_unit): Add 'pretend_language' argument. Set
7524 language on CU.
7525 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7526 Update.
7527 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7528 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7529 Update.
7530 (prepare_one_comp_unit): Add 'pretend_language' argument.
7531
7532 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7533 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7534 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7535 (dw2_do_instantiate_symtab): Check whether symtab was read in
7536 before queueing.
7537 (dw2_instantiate_symtab): Add assertion. Call
7538 process_cu_includes.
7539 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7540 (partial_symtab_p): New typedef.
7541 (set_partial_user): New function.
7542 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7543 (scan_partial_symbols): Add imported CU to imported_symtabs.
7544 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7545 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7546 (get_symtab, recursively_compute_inclusions)
7547 (compute_symtab_includes, process_cu_includes)
7548 (process_imported_unit_die): New functions.
7549 (process_die) <DW_TAG_imported_unit>: New case.
7550 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7551
7552 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7553 comment.
7554 (struct partial_die_info) <locdesc>: Remove.
7555 <d>: New field.
7556 (process_psymtab_comp_unit): Add 'read_partial' argument.
7557 Update.
7558 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7559 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7560 (add_partial_symbol): Update.
7561 (process_die): Handle DW_TAG_partial_unit.
7562 (read_file_scope): Update comment.
7563 (load_partial_dies): Handle DW_TAG_imported_unit.
7564 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7565 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7566
e871fbb9
TT
75672012-05-10 Tom Tromey <tromey@redhat.com>
7568
7569 * cc-with-dwz.sh: New file.
7570
b5b04b5b
TT
75712012-05-10 Tom Tromey <tromey@redhat.com>
7572
7573 * symtab.h (struct symtab) <includes, user>: New fields.
7574 * block.h (struct block_iterator) <d, idx, which>: New fields.
7575 * block.c (initialize_block_iterator, find_iterator_symtab)
7576 (block_iterator_step, block_iter_name_step)
7577 (block_iter_match_step): New functions.
7578 (block_iterator_first, block_iterator_next)
7579 (block_iter_name_first, block_iter_name_next)
7580 (block_iter_match_first, block_iter_match_next): Rewrite.
7581 (get_block_symtab): New function.
7582
84a146c9
TT
75832012-05-10 Tom Tromey <tromey@redhat.com>
7584
7585 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7586 set_block_symtab.
7587 * jit.c (finalize_symtab): Use allocate_global_block,
7588 set_block_symtab.
7589 * buildsym.c (finish_block_internal): New function, from old
7590 finish_block.
7591 (finish_block): Rewrite.
7592 (end_symtab): Use finish_block_internal, set_block_symtab.
7593 * block.h (struct global_block): New.
7594 (allocate_global_block, set_block_symtab): Declare.
7595 * block.c (allocate_global_block, set_block_symtab): New
7596 functions.
7597
9439a077
TT
75982012-05-10 Tom Tromey <tromey@redhat.com>
7599
7600 * psymtab.c (partial_map_expand_apply): Add assertion.
7601 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7602 (psymtab_to_symtab): Find unshared psymtab.
7603 (dump_psymtab): Print including psymtabs.
7604 (recursively_search_psymtabs): New function.
7605 (expand_symtabs_matching_via_partial): Use it.
7606 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7607 fields.
7608 (enum psymtab_search_status): New.
7609
8157b174
TT
76102012-05-10 Tom Tromey <tromey@redhat.com>
7611
7612 * tracepoint.c (scope_info): Update.
7613 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7614 (find_pc_sect_symtab, search_symbols)
7615 (default_make_symbol_completion_list_break_on)
7616 (make_file_symbol_completion_list): Update.
7617 * symmisc.c (dump_symtab_1): Update.
7618 * stack.c (print_frame_args, iterate_over_block_locals)
7619 (print_frame_labels, iterate_over_block_arg_vars): Update.
7620 * python/py-block.c (block_object) <dict>: Remove.
7621 <block>: New field.
7622 <iter>: Change type.
7623 (blpy_iter): Update.
7624 (blpy_block_syms_iternext): Update.
7625 * psymtab.c (map_block): Use block iterators.
7626 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7627 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7628 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7629 * infrun.c (check_exception_resume): Update.
7630 * cp-support.c (make_symbol_overload_list_block): Update.
7631 * coffread.c (patch_opaque_types): Update.
7632 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7633 * block.h (struct block_iterator): New.
7634 (block_iterator_first, block_iterator_next, block_iter_name_first)
7635 (block_iter_name_next, block_iter_match_first)
7636 (block_iter_match_next): Declare.
7637 (ALL_BLOCK_SYMBOLS): Redefine.
7638 * block.c (block_iterator_first, block_iterator_next)
7639 (block_iter_name_first, block_iter_name_next)
7640 (block_iter_match_first, block_iter_match_next): New functions.
7641 * ada-lang.c (ada_add_block_symbols)
7642 (ada_make_symbol_completion_list): Use block iterator.
7643
a2ca7a52
TT
76442012-05-10 Tom Tromey <tromey@redhat.com>
7645
7646 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7647 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7648 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7649 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7650 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7651 Update.
7652
64ea88dc
JB
76532012-05-10 Joel Brobecker <brobecker@adacore.com>
7654
7655 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7656 print-file-var-lib2.c, print-file-var-main.c and
7657 print-file-var.exp (located in gdb/testsuite/gdb.base).
7658
99a547d6
JB
76592012-05-10 Joel Brobecker <brobecker@adacore.com>
7660
7661 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7662 try locating the symbol in the symbol's own objfile first, before
7663 extending the search to all objfiles.
7664 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7665 out of lookup_symbol_aux_symtabs.
7666 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7667 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7668 Do not search EXCLUDE_OBJFILE.
7669 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7670 (lookup_symbol_global): Search for matches in the block's objfile
7671 first, before searching all other objfiles.
7672
0ece64fd
TG
76732012-05-10 Tristan Gingold <gingold@adacore.com>
7674
7675 * printcmd.c (set_command): Add pre/post inc/dec.
7676
3d16a105
FCE
76772012-05-09 Frank Ch. Eigler <fche@redhat.com>
7678
7679 * gdb.1: Document -ex option.
7680
2efbc0f7
JB
76812012-05-09 Joel Brobecker <brobecker@adacore.com>
7682
7683 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7684 * inferior.h (AT_SYMBOL): Delete.
7685
2c76a0c7
JB
76862012-05-09 Joel Brobecker <brobecker@adacore.com>
7687
7688 * mips-tdep.c (mips_push_dummy_code): New function.
7689 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7690 ON_STACK and install mips_push_dummy_code as our gdbarch
7691 push_dummy_code routine.
7692
9401a810
PA
76932012-05-09 Pedro Alves <palves@redhat.com>
7694
7695 * target.c (set_maintenance_target_async_permitted): Rename to ...
7696 (set_target_async_command): ... this.
7697 (show_maintenance_target_async_permitted): Rename to ...
7698 (show_target_async_command): ... this.
7699 (initialize_targets): Adjust.
7700
3929b321
DE
77012012-05-08 Doug Evans <dje@google.com>
7702
7703 * go-exp.y (classify_name): Add missing assignment of fields of
7704 yylval.ssym.
7705
c41535fd
EZ
77062012-05-08 Eli Zaretskii <eliz@gnu.org>
7707
7708 Display the ">" prompt in interactive mode while reading canned
7709 commands, even when the current interpreter is MI.
7710
7711 * interps.c (interp_set_temp): New function.
7712
7713 * interps.h (interp_set_temp): Add prototype.
7714
7715 * cli/cli-script.c (restore_interp): New cleanup function.
7716 (read_command_lines): Temporarily override the current interpreter
7717 with CLI and arrange for restoring the original one.
7718
c0749c4d
JS
77192012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7720
7721 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7722
d7333987
SDJ
77232012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7724
7725 * probe.c (parse_probes): Move conditional to check for
7726 debuginfo files from here...
7727 * stap-probe.c (stap_get_probes): ... to here.
7728
649e6d92
MK
77292012-05-07 Mark Kettenis <kettenis@gnu.org>
7730 H.J. Lu <hongjiu.lu@intel.com>
7731
7732 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7733 `movl %esp, %ebp' for the X32 ABI.
7734
f39c6ffd
TT
77352012-05-07 Tom Tromey <tromey@redhat.com>
7736
7737 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7738 get_DW_TAG_name.
7739 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7740 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7741 (dwarf_stack_op_name): Remove.
7742 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7743 (decode_locdesc): Use get_DW_OP_name.
7744 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7745 (dwarf2_compile_expr_to_ax): Likewise.
7746 (disassemble_dwarf_expression): Likewise.
7747 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7748
1e1f6591
CLT
77492012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7750
7751 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7752 (sh_linux_sigtramp_cache): New function.
7753 (sh_linux_sigreturn_init): New function.
7754 (sh_linux_rt_sigreturn_init): New function.
7755 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7756 patterns.
7757 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7758 syscall codes.
7759 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7760 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7761 (sh_linux_init_abi): Add init calls to register new tramp_frame
7762 definitions under 32-bit SH, update comments.
7763
545c08b4
PA
77642012-05-07 Pedro Alves <palves@redhat.com>
7765
daac165e
PA
7766 PR gdb/10952
7767
545c08b4
PA
7768 * amd64-linux-tdep.c: Include glibc-tdep.h.
7769 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7770 gdbarch_skip_solib_resolver callback.
7771
af2c1515
JK
77722012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7773
7774 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7775 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7776 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7777 (add_auto_load_safe_path): Change the error message.
7778 (_initialize_auto_load): Change the "safe-path" help text.
7779 * configure: Regenerate
7780 * configure.ac (--without-auto-load-safe-path): Set
7781 WITH_AUTO_LOAD_SAFE_PATH to /.
7782
1067f998
SDJ
77832012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7784
7785 * stap-probe.h: Do not include unecessary `probe.h'.
7786
45dfa85a
AM
77872012-05-05 Alan Modra <amodra@gmail.com>
7788
7789 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7790 bfd_und_section_ptr.
7791 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7792 and bfd_com_section_ptr.
7793
cf093994
JB
77942012-05-04 Joel Brobecker <brobecker@adacore.com>
7795
762ebb75 7796 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 7797
d40dc7a8
JB
77982012-05-04 Joel Brobecker <brobecker@adacore.com>
7799
7800 * windows-nat.h (segment_register_p_ftype): New typedef.
7801 (windows_set_segment_register_p): Add declaration.
7802 * windows-nat.c (segment_register_p): New static global.
7803 (windows_set_segment_register_p): New function.
7804 (do_windows_fetch_inferior_registers): Add special handling
7805 for segment registers.
7806 * amd64-windows-nat.c: #include "amd64-tdep.h".
7807 (amd64_windows_segment_register_p): New function.
7808 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7809 * i386-windows-nat.c: #include "i386-tdep.h".
7810 (i386_windows_segment_register_p): New function.
7811 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7812
52b3699b
TG
78132012-05-04 Tristan Gingold <gingold@adacore.com>
7814
7815 * printcmd.c (set_command): Emit a warning if the expression is not
7816 an assignment.
7817
94c74239
JB
78182012-05-03 Joel Brobecker <brobecker@adacore.com>
7819
7820 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7821 Make static.
7822
fcf57f19
SDJ
78232012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7824
7825 * stap-probe.c (stap_is_operator): Change declaration.
7826 (stap_get_opcode): Change return value.
7827 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7828 `stap_parse_argument_1'.
7829
27d2932e
PA
78302012-05-03 Pedro Alves <pedro@codesourcery.com>
7831
7832 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7833 debug log.
7834
a20ee7a4
SCR
78352012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7836
7837 Add two new methods global_block and static_block to gdb.Symtab
7838 objects.
7839 * NEWS (Python scripting): Add entry about the new methods.
7840 * python/py-symtab.c (stpy_global_block): New function which
7841 implements the gdb.Symtab.global_block() method.
7842 (stpy_static_block): New function which implements the
7843 gdb.Symtab.static_block() method.
7844 (symtab_object_methods): Add entries for the two new methods.
7845
943cb756
DE
78462012-05-03 Doug Evans <dje@google.com>
7847
7848 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7849 files.
7850
f4644a3f
YQ
78512012-05-03 Yao Qi <yao@codesourcery.com>
7852
7853 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7854 space.
7855 (i386_process_record): Ditto.
7856
ef61f180
JB
78572012-05-02 Joel Brobecker <brobecker@adacore.com>
7858
7859 * infcall.c (unwind_on_signal_p): Make static.
7860
02f1df11
JB
78612012-05-02 Joel Brobecker <brobecker@adacore.com>
7862
7863 * sol-thread.c (solaris_pid_to_str): Make static.
7864 (_initialize_sol_thread): Add prototype.
7865
39023530
JB
78662012-05-02 Joel Brobecker <brobecker@adacore.com>
7867
7868 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7869
c6b0c501
CF
78702012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7871
7872 * MAINTAINERS: Remove myself.
7873
1ef71717
JK
78742012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7875
7876 Fix --without-auto-load-safe-path for MS-Windows host platform.
7877 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7878
b31b86a7
EZ
78792012-05-02 Eli Zaretskii <eliz@gnu.org>
7880
7881 * gdb_curses.h: Undefine KEY_EVENT before including curses
7882 headers. Move "#undef MOUSE_MOVED" before any curses header
7883 inclusion.
7884
777532fc
SDJ
78852012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7886
7887 * features/i386/i386-mmx-linux.c: Regenerate.
7888 * features/rs6000/powerpc-32.c: Likewise.
7889 * features/rs6000/powerpc-32l.c: Likewise.
7890 * features/rs6000/powerpc-403.c: Likewise.
7891 * features/rs6000/powerpc-403gc.c: Likewise.
7892 * features/rs6000/powerpc-405.c: Likewise.
7893 * features/rs6000/powerpc-505.c: Likewise.
7894 * features/rs6000/powerpc-601.c: Likewise.
7895 * features/rs6000/powerpc-602.c: Likewise.
7896 * features/rs6000/powerpc-603.c: Likewise.
7897 * features/rs6000/powerpc-604.c: Likewise.
7898 * features/rs6000/powerpc-64.c: Likewise.
7899 * features/rs6000/powerpc-64l.c: Likewise.
7900 * features/rs6000/powerpc-750.c: Likewise.
7901 * features/rs6000/powerpc-860.c: Likewise.
7902 * features/rs6000/powerpc-e500.c: Likewise.
7903 * features/rs6000/powerpc-e500l.c: Likewise.
7904 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7905 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7906 * features/rs6000/rs6000.c: Likewise.
7907
d71871bc
SDJ
79082012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7909
7910 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7911 variable.
7912 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7913 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7914 (stap_parse_argument) <e>: Likewise.
7915 (handle_stap_probe) <byte_order>: Likewise.
7916
fd820528
DE
79172012-04-30 Doug Evans <dje@google.com>
7918
7919 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7920 init_and_read_dies_worker. All callers updated.
7921 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7922 replaced with init_cutu_and_read_dies.
7923 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7924 (find_partial_die): Remove FIXME. Don't free current CU.
7925
ec3f619d 79262012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
7927
7928 * contrib: New directory.
7929 * contrib/test_pubnames_and_indexes.py: New file.
7930
fceca515
DE
79312012-04-30 Doug Evans <dje@google.com>
7932
7933 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7934 All callers updated.
7935 (init_cu_die_reader): Verify the section is non-empty.
7936 (dwarf_decode_line_header): Don't dereference section->asection
7937 until we know the section is present.
7938
311fe7e1
SDJ
79392012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7940
7941 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7942 probes.
7943
5977971a
YQ
79442012-04-29 Yao Qi <yao@codesourcery.com>
7945
7946 * gdb-code-style.el: New hook gdb-markup-hook
7947 and gdb-comment-hook.
7948
dee91e82
DE
79492012-04-28 Doug Evans <dje@google.com>
7950
3019eac3
DE
7951 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7952 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7953 objfile->obfd.
7954 * symfile.h (dwarf2_debug_sections): New member addr.
7955 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7956 (ctx_no_get_addr_index): New function.
7957 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7958 (ctx_no_get_addr_index): Declare.
7959 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7960 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7961 (dwarf_expr_ctx_funcs): Update.
7962 (needs_get_addr_index): New function.
7963 (needs_frame_ctx_funcs): Update.
7964 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7965 * dwarf2read.c: #include "gdbcore.h".
7966 (dwarf2_per_objfile): New members addr, dwo_files.
7967 (dwarf2_elf_names): Add entry for addr.
7968 (struct dwo_section_names): New type.
7969 (dwo_section_names): New static global.
7970 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7971 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7972 old debug_types_section member updated to use this.
7973 Rename member debug_types_section to info_or_types_section,
7974 all uses updated.
7975 (signatured_type): Rename member type_offset to type_offset_in_tu,
7976 all uses updated. New member type_offset_in_section.
7977 (struct dwo_sections): New type.
7978 (struct dwo_unit): New type.
7979 (struct dwo_file): New type.
7980 (die_reader_specs): New member dwo_file.
7981 (dwarf2_locate_sections): Watch for .debug_addr.
7982 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7983 (dwarf2_read_section): Get bfd of section from bfd's asection,
7984 instead of objfile.
7985 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7986 (create_signatured_type_table_from_index): Initialize
7987 sig_type->info_or_types_section.
7988 (dw2_get_file_names): Statement lists for type units with DWO files
7989 live in the DWO file.
7990 (create_debug_types_hash_table): New function.
7991 (create_all_type_units): Rewrite.
7992 (init_cu_die_reader): New arg dwo_file, all callers updated.
7993 (init_and_read_dies_worker): Get section from
7994 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7995 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7996 continue reading the CU/TU from there.
7997 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7998 updated. Get section from this_cu->info_or_types_section.
7999 (create_all_comp_units): Initialize this_cu->info_or_types_section.
8000 (skip_one_die): New cases DW_FORM_GNU_addr_index,
8001 DW_FORM_GNU_str_index.
8002 (hash_dwo_file, eq_dwo_file): New functions.
8003 (allocate_dwo_file_hash_table): New function.
8004 (hash_dwo_unit, eq_dwo_unit): New functions.
8005 (allocate_dwo_unit_table): New function.
8006 (dwarf2_locate_dwo_sections): New function.
8007 (struct create_dwo_info_table_data): New type.
8008 (create_debug_info_hash_table_reader): New function.
8009 (create_debug_info_hash_table): New function.
8010 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
8011 (lookup_dwo_file): New function.
8012 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
8013 (free_dwo_file, free_dwo_file_cleanup): New functions.
8014 (free_dwo_file_from_slot, free_dwo_files): New functions.
8015 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
8016 (dwarf2_record_block_ranges): Ditto.
8017 (read_partial_die): Ditto.
8018 (process_enumeration_scope): Update to use type_offset_in_section.
8019 (read_full_die_1): New function.
8020 (read_full_die): Rewrite.
8021 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
8022 DW_FORM_GNU_str_index.
8023 (read_addr_index_1, read_addr_index): New functions.
8024 (read_addr_index_from_leb128): New function.
8025 (struct dwarf2_read_addr_index_data): New type.
8026 (dwarf2_read_addr_index_reader): New function.
8027 (dwarf2_read_addr_index): New function.
8028 (read_str_index): New function.
8029 (leb128_size): New function.
8030 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
8031 If processing a type unit from a DWO file, get the line section
8032 from the DWO file.
8033 (var_decode_location): Watch for DW_OP_GNU_addr_index.
8034 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
8035 DW_FORM_GNU_str_index.
8036 (lookup_die_type): Check whether section offset of type's die is
8037 known before looking it up. Remove assert. Condition can
8038 legimately happen for inter-cu type references.
8039 (dwarf_attr_name): Handle Fission attributes.
8040 (dwarf_form_name): Handle Fission forms.
8041 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
8042 DW_FORM_GNU_str_index.
8043 (follow_die_sig): Update to use type_offset_in_section.
8044 (decode_locdesc): New case DW_OP_GNU_addr_index.
8045 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
8046 DW_FORM_GNU_str_index.
8047 (cu_debug_loc_section): New function.
8048 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
8049 (dwarf2_per_objfile_free): Unmap .debug_addr section.
8050 Free DWO files if present.
8051 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
8052
dee91e82
DE
8053 Refactor DIE reading.
8054 * dwarf2read.c (dwarf2_per_objfile): Replace members
8055 debug_info_type_hash and debug_types_type_hash with die_type_hash.
8056 (die_reader_specs): New member "die_section". Temporarily make
8057 member "buffer" non-const, pending constifying all info_ptr uses.
8058 (die_reader_func_ftype): New typedef.
8059 (dw2_get_file_names_reader): New function.
8060 (dw2_get_file_names): Rewrite.
8061 (read_and_check_type_unit_head): Rename arg type_offset to
8062 type_offset_in_tu.
8063 (create_all_type_units): Improve debugging message.
8064 Improve dummy type unit check.
8065 (init_cu_die_reader): New arg "section". All callers updated.
8066 (init_and_read_dies_worker): New function.
8067 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
8068 (init_cutu_and_read_dies_no_follow): New function.
8069 (init_cutu_and_read_dies_simple): New function.
8070 (process_psymtab_comp_unit_reader): New function.
8071 (process_psymtab_comp_unit): Delete args section,
8072 is_debug_types_section. Rewrite. All callers updated.
8073 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
8074 All callers updated. Rewrite.
8075 (load_partial_comp_unit_reader): New function.
8076 (load_partial_comp_unit): Rewrite.
8077 (skip_children): New arg reader. Delete args buffer, cu.
8078 All callers updated.
8079 (skip_one_die): New arg reader. Delete args buffer, cu.
8080 All callers updated.
8081 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
8082 All callers updated.
8083 (load_full_comp_unit_reader): New function.
8084 (load_full_comp_unit): Rewrite.
8085 (read_comp_unit): Delete.
8086 (read_die_and_children_1): Delete, contents moved ...
8087 (read_die_and_children): ... here.
8088 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
8089 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
8090 All callers updated.
8091 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
8092 All callers updated.
8093 (find_partial_die): Rewrite load_all_dies support.
8094 (read_attribute_value): New arg reader. Delete args abfd, cu.
8095 All callers updated.
8096 (read_attribute): New arg reader. Delete args abfd, cu.
8097 All callers updated.
8098 (load_full_type_unit): Add assert.
8099 (read_signatured_type_reader): New function.
8100 (read_signatured_type): Rewrite.
8101 (free_stack_comp_unit): Remove call to age_cached_comp_units.
8102 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
8103 All callers updated. Set per_cu->cu = NULL after freeing it.
8104 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
8105 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
8106 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
8107 (set_die_type): Update.
8108 (get_die_type_at_offset): Update.
8109 (read_file_scope): Call prepare_one_comp_unit.
8110 (read_type_unit_scope): Ditto.
8111 (prepare_one_comp_unit): Set producer if present.
8112
72d59e0d
SDJ
81132012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
8114
8115 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8116 gettext function on `error'.
8117
0fefef59
DE
81182012-04-27 Doug Evans <dje@google.com>
8119
8120 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8121 is empty.
8122
28106bc2
SDJ
81232012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8124 Tom Tromey <tromey@redhat.com>
8125
8126 * breakpoint.c (struct breakpoint_objfile_data)
8127 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8128 <exception_probes>: New fields.
8129 (free_breakpoint_probes): New function.
8130 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8131 `_Unwind_DebugHook'.
8132 (create_exception_master_breakpoint): Likewise.
8133 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8134 * infrun.c: Including necessary header files for handling SystemTap
8135 probes.
8136 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8137 via SystemTap probes.
8138 (check_exception_resume): Remove `func' argument. Handle exception
8139 unwinding breakpoint set via a SystemTap probe.
8140 (insert_exception_resume_from_probe): New function.
8141
55aa24fb
SDJ
81422012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8143 Tom Tromey <tromey@redhat.com>
8144 Jan Kratochvil <jan.kratochvil@redhat.com>
8145
8146 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8147 (COMMON_OBS): Likewise.
8148 (HFILES_NO_SRCDIR): Add `probe'.
8149 * NEWS: Mention support for static and SystemTap probes.
8150 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8151 SystemTap probes' arguments parser.
8152 * arm-linux-tdep.c: Including headers needed to perform the parsing
8153 of SystemTap probes' arguments.
8154 (arm_stap_is_single_operand): New function.
8155 (arm_stap_parse_special_token): Likewise.
8156 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8157 probes' arguments parser.
8158 * ax-gdb.c (require_rvalue): Removing static declaration.
8159 (gen_expr): Likewise.
8160 * ax-gdb.h (gen_expr): Declaring function.
8161 (require_rvalue): Likewise.
8162 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8163 (bkpt_probe_breakpoint_ops): New variable.
8164 (momentary_breakpoint_from_master): Set the `probe' value.
8165 (add_location_to_breakpoint): Likewise.
8166 (break_command_1): Using proper breakpoint_ops according to the
8167 argument passed by the user in the command line.
8168 (bkpt_probe_insert_location): New function.
8169 (bkpt_probe_remove_location): Likewise.
8170 (bkpt_probe_create_sals_from_address): Likewise.
8171 (bkpt_probe_decode_linespec): Likewise.
8172 (tracepoint_probe_create_sals_from_address): Likewise.
8173 (tracepoint_probe_decode_linespec): Likewise.
8174 (tracepoint_probe_breakpoint_ops): New variable.
8175 (trace_command): Using proper breakpoint_ops according to the
8176 argument passed by the user in the command line.
8177 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8178 static probes on breakpoints and tracepoints.
8179 * breakpoint.h (struct bp_location) <probe>: New field.
8180 * cli-utils.c (skip_spaces_const): New function.
8181 (extract_arg): Likewise.
8182 * cli-utils.h (skip_spaces_const): Likewise.
8183 (extract_arg): Likewise.
8184 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8185 * configure.ac: Append `stap-probe.o' to be generated when ELF
8186 support is present.
8187 * configure: Regenerate.
8188 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8189 * elfread.c: Include `probe.h' and `arch-utils.h'.
8190 (probe_key): New variable.
8191 (elf_get_probes): New function.
8192 (elf_get_probe_argument_count): Likewise.
8193 (elf_evaluate_probe_argument): Likewise.
8194 (elf_compile_to_ax): Likewise.
8195 (elf_symfile_relocate_probe): Likewise.
8196 (stap_probe_key_free): Likewise.
8197 (elf_probe_fns): New variable.
8198 (elf_sym_fns): Add `sym_probe_fns' value.
8199 (elf_sym_fns_lazy_psyms): Likewise.
8200 (elf_sym_fns_gdb_index): Likewise.
8201 (_initialize_elfread): Initialize objfile cache for static
8202 probes.
8203 * gdb_vecs.h (struct probe): New forward declaration.
8204 (probe_p): New VEC declaration.
8205 * gdbarch.c: Regenerate.
8206 * gdbarch.h: Regenerate.
8207 * gdbarch.sh (stap_integer_prefix): New variable.
8208 (stap_integer_suffix): Likewise.
8209 (stap_register_prefix): Likewise.
8210 (stap_register_suffix): Likewise.
8211 (stap_register_indirection_prefix): Likewise.
8212 (stap_register_indirection_suffix): Likewise.
8213 (stap_gdb_register_prefix): Likewise.
8214 (stap_gdb_register_suffix): Likewise.
8215 (stap_is_single_operand): New function.
8216 (stap_parse_special_token): Likewise.
8217 (struct stap_parse_info): Forward declaration.
8218 * i386-tdep.c: Including headers needed to perform the parsing
8219 of SystemTap probes' arguments.
8220 (i386_stap_is_single_operand): New function.
8221 (i386_stap_parse_special_token): Likewise.
8222 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8223 probes' arguments parser.
8224 * i386-tdep.h (i386_stap_is_single_operand): New function.
8225 (i386_stap_parse_special_token): Likewise.
8226 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8227 * mipsread.c (ecoff_sym_fns): Likewise.
8228 * objfiles.c (objfile_relocate1): Support relocation for static
8229 probes.
8230 * parse.c (prefixify_expression): Remove static declaration.
8231 (initialize_expout): Likewise.
8232 (reallocate_expout): Likewise.
8233 * parser-defs.h (initialize_expout): Declare function.
8234 (reallocate_expout): Likewise.
8235 (prefixify_expression): Likewise.
8236 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8237 of SystemTap probes' arguments.
8238 (ppc_stap_is_single_operand): New function.
8239 (ppc_stap_parse_special_token): Likewise.
8240 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8241 probes' arguments parser.
8242 * probe.c: New file, for generic statically defined probe support.
8243 * probe.h: Likewise.
8244 * s390-tdep.c: Including headers needed to perform the parsing of
8245 SystemTap probes' arguments.
8246 (s390_stap_is_single_operand): New function.
8247 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8248 probes' arguments parser.
8249 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8250 * stap-probe.c: New file, for SystemTap probe support.
8251 * stap-probe.h: Likewise.
8252 * symfile.h: Include `gdb_vecs.h'.
8253 (struct sym_probe_fns): New struct.
8254 (struct sym_fns) <sym_probe_fns>: New field.
8255 * symtab.c (init_sal): Initialize `probe' field.
8256 * symtab.h (struct probe): Forward declaration.
8257 (struct symtab_and_line) <probe>: New field.
8258 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8259 locations.
8260 (stop_tracing): Likewise.
8261 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8262
22d2b532
SDJ
82632012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8264 Tom Tromey <tromey@redhat.com>
8265
8266 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8267 and to compile agent expressions.
8268 * infrun.c (siginfo_make_value): New argument `ignore'.
8269 (siginfo_funcs): New struct.
8270 (_initialize_infrun): New argument when calling
8271 `create_internalvar_type_lazy'.
8272 * thread.c (thread_id_make_value): New argument `ignore'.
8273 (thread_funcs): New struct.
8274 (_initialize_thread): New argument when calling
8275 `create_internalvar_type_lazy'.
8276 * tracepoint.c (sdata_make_value): New argument `ignore'.
8277 (sdata_funcs): New struct.
8278 (_initialize_tracepoint): New argument when calling
8279 `create_internalvar_type_lazy'.
8280 * value.c (make_value): New struct.
8281 (create_internalvar_type_lazy): New argument `data'.
8282 (compile_internalvar_to_ax): New function.
8283 (value_of_internalvar): Properly handling `make_value' case.
8284 (clear_internalvar): Likewise.
8285 (show_convenience): Adding `TRY_CATCH' block.
8286 * value.h (internalvar_make_value): Delete, replace by...
8287 (struct internalvar_funcs): ... this.
8288 (create_internalvar_type_lazy) <fun>: Delete argument.
8289 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8290 (compile_internalvar_to_ax): New function.
8291 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8292 (tlb_funcs): New struct.
8293 (_initialize_windows_tdep): New argument when calling
8294 `create_internalvar_type_lazy'.
8295
91da1414
MW
82962012-04-27 Mark Wielaard <mjw@redhat.com>
8297
8298 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8299 see whether it is an address or a constant offset from DW_AT_low_pc.
8300 (dwarf2_record_block_ranges): Likewise.
8301 (read_partial_die): Likewise.
8302
4ab9d8ec
MW
83032012-04-26 Mark Wielaard <mjw@redhat.com>
8304
8305 * MAINTAINERS (Write After Approval): Add myself to the list.
8306
a0911fd0
MR
83072012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8308
8309 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8310 (proc_prettyprint_signal): Likewise.
8311 (proc_prettyprint_faultset): Likewise.
8312 (proc_prettyprint_fault): Likewise.
8313 (proc_prettyprint_actionset): Likewise.
8314 (proc_prettyprint_flags): Move to new proc-flags.c section.
8315 (proc_prettyfprint_flags): New prototype.
8316 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8317 (proc_syscall, proc_cursig): Likewise.
8318 (proc_set_kill_on_last_close): Likewise.
8319 (proc_unset_kill_on_last_close): Likewise.
8320 (proc_set_watchpoint): Make static.
8321 (proc_delete_dead_threads): Likewise.
8322 (procfs_set_watchpoint): Likewise.
8323 (_initialize_procfs): Add prototype.
8324 * proc-events.c: Include proc-utils.h.
8325 (init_syscall_table): Make static.
8326 * proc-api.c (_initialize_proc_api): Add prototype.
8327 * proc-flags.c: Include proc-utils.h.
8328
9009e1ae
MR
83292012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8330
8331 * configure.ac: Add AC_ARG_PROGRAM.
8332 * configure: Regenerate.
8333
4fae6e18
JK
83342012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 Fix DW_AT_lower_bound defaults for DWARF-4+.
8337 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8338 high. New variable low_default_is_valid. Implement DWARF-4+
8339 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8340 no default by the DWARF standard.
8341
14132e89 83422012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 8343 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
8344
8345 * infrun.c (handle_inferior_event): Move the check for return
8346 trampolines ahead of the check for function trampolines.
8347 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8348 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8349 (mips_str_mips16_ret_stub): Likewise.
8350 (mips_str_call_fp_stub): Likewise.
8351 (mips_str_call_stub): Likewise.
8352 (mips_str_fn_stub): Likewise.
8353 (mips_str_pic): Likewise.
8354 (mips_in_frame_stub): New function.
8355 (mips_unwind_pc): Return the return address rather than the PC
8356 if the PC of an intermediate frame is inside a call thunk.
8357 (mips_is_stub_suffix): New function.
8358 (mips_is_stub_mode): Likewise.
8359 (mips_get_mips16_fn_stub_pc): Likewise.
8360 (mips_skip_mips16_trampoline_code): Update to handle all the
8361 currently generated stub types. Don't recurse into __fn_stub
8362 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8363 Use cooked register accesses.
8364 (mips_in_return_stub): Reintroduce function.
8365 (mips_skip_trampoline_code): Traverse trampolines recursively.
8366 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8367
518f0db5 83682012-04-26 Joel Brobecker <brobecker@adacore.com>
8369
8370 GDB 7.4.1 released.
8371
3184d3f9
JL
83722012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8373
8374 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8375 * features/arm-with-m-vfp-d16.xml: New file. Describes
8376 Cortex-M with VFPv4-sp-d16 FPU register layout.
8377 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8378 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8379 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8380 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8381 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8382
b6201d44
DE
83832012-04-25 Doug Evans <dje@google.com>
8384
8385 * cli/cli-decode.c (print_doc_line): Use stream instead of
8386 current_uiout.
8387
4e2f8df6
SDJ
83882012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8389
8390 * features/arm-with-iwmmxt.c: Regenerate.
8391 * features/arm-with-m-fpa-layout.c: Likewise.
8392 * features/arm-with-m.c: Likewise.
8393 * features/arm-with-neon.c: Likewise.
8394 * features/arm-with-vfpv2.c: Likewise.
8395 * features/arm-with-vfpv3.c: Likewise.
8396 * features/mips-dsp-linux.c: Likewise.
8397 * features/mips-linux.c: Likewise.
8398 * features/mips64-dsp-linux.c: Likewise.
8399 * features/mips64-linux.c: Likewise.
8400 * features/s390-linux32.c: Likewise.
8401 * features/s390-linux32v1.c: Likewise.
8402 * features/s390-linux32v2.c: Likewise.
8403 * features/s390-linux64.c: Likewise.
8404 * features/s390-linux64v1.c: Likewise.
8405 * features/s390-linux64v2.c: Likewise.
8406 * features/s390x-linux64.c: Likewise.
8407 * features/s390x-linux64v1.c: Likewise.
8408 * features/s390x-linux64v2.c: Likewise.
8409 * features/tic6x-c62x-linux.c: Likewise.
8410 * features/tic6x-c62x.c: Likewise.
8411 * features/tic6x-c64x-linux.c: Likewise.
8412 * features/tic6x-c64x.c: Likewise.
8413 * features/tic6x-c64xp-linux.c: Likewise.
8414 * features/tic6x-c64xp.c: Likewise.
8415 * target-descriptions.c: Only generate `field_type' and `type'
8416 variables when needed.
8417
2def3e66
JB
84182012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8419
8420 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8421
a766d390
DE
84222012-04-25 Doug Evans <dje@google.com>
8423
8424 Initial pass at Go language support.
8425 * NEWS: Mention Go.
8426 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8427 go-valprint.c.
8428 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8429 (YYFILES): Add go-exp.c.
8430 (YYOBJ): Add go-exp.o.
8431 (local-maintainer-clean): Delete go-exp.c.
8432 * defs.h (enum language): Add language_go.
8433 * dwarf2read.c: #include "go-lang.h".
8434 (fixup_go_packaging): New function.
8435 (process_full_comp_unit): Call it when processing Go CUs.
8436 (dwarf2_physname): Add Go support.
8437 (read_file_scope): Handle missing language spec for GNU Go.
8438 (set_cu_language): Handle DW_LANG_Go.
8439 * go-exp.y: New file.
8440 * go-lang.h: New file.
8441 * go-lang.c: New file.
8442 * go-typeprint.c: New file.
8443 * go-valprint.c: New file.
8444 * symtab.c: #include "go-lang.h".
8445 (symbol_set_language): Handle language_go.
8446 (symbol_find_demangled_name, symbol_set_names): Ditto.
8447 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8448
4e2af517
JM
84492012-04-24 Jim Meyering <meyering@redhat.com>
8450
8451 avoid a few strncpy-induced buffer overruns
8452 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8453 fname and psargs before trying to concatenate.
8454 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8455 "name" before applying strchr.
8456
b77b7f52
SCR
84572012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8458
8459 * CONTRIBUTE: Use unified diff instead of context diff when
8460 generating patches.
8461
6321c22a
MR
84622012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8463
8464 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8465 code. Handle JR.HB correctly.
8466
742c84f6
MR
84672012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8468
8469 * mips-tdep.c
8470 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8471 with the other MIPS16 helpers.
8472
7fc7e0c3
SDJ
84732012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8474
8475 * observer.sh: Conditionally declare `args', thus cleaning up
8476 unused instances of this variable.
8477
20388dd6
YQ
84782012-04-24 Yao Qi <yao@codesourcery.com>
8479
8480 Revert this patch to allow breakpoint always-inserted
8481 in record target.
8482 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
8483 * breakpoint.c: Include record.h.
8484 (breakpoints_always_inserted_mode): Return false when the record
8485 target is in use.
20388dd6
YQ
8486
8487 * breakpoint.c (iterate_over_bp_locations): New.
8488 * breakpoint.h: Declare.
8489 New typedef walk_bp_location_callback.
8490 * record.c (record_open): Call record_init_record_breakpoints.
8491 (record_sync_record_breakpoints): New.
8492 (record_init_record_breakpoints): New.
8493 * NEWS: Mention supporting breakpoint always-inserted mode in
8494 record target.
8495
4734f50e
MK
84962012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8497
8498 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8499 any thread.
8500
c326b90e
YQ
85012012-04-24 Yao Qi <yao@codesourcery.com>
8502
8503 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8504 (is_catchpoint): ... it.
8505 (print_one_breakpoint_location): Caller update.
8506 * breakpoint.h: Update declaration.
8507
d8fb5a1e
DM
85082012-04-23 David S. Miller <davem@davemloft.net>
8509
8510 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8511
34431a2a
TT
85122012-04-23 Tom Tromey <tromey@redhat.com>
8513
8514 * buildsym.c (add_free_pendings): Remove.
8515 * buildsym.h (add_free_pendings): Remove.
8516
4568ecf9
DE
85172012-04-23 Doug Evans <dje@google.com>
8518
8519 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8520 attr.u.unsnd instead of attr.u.addr.
8521 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8522 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8523 DW_FORM_ref_udata.
8524 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8525 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8526 DW_FORM_ref_udata.
8527 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8528
dca9aa3a
MR
85292012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8530
8531 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8532 (mips_o32_return_value): Likewise.
8533 (mips_o64_return_value): Likewise.
8534
c8ea1972
PH
85352012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8536
8537 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
8538 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8539 their treatment in eval.c.
c8ea1972 8540
8d1b3521
DM
85412012-04-21 David S. Miller <davem@davemloft.net>
8542
8543 * sparc-tdep.c (X_DISP10): Define.
8544 (sparc_analyze_control_transfer): Handle compare-and-branch.
8545
03145bf4
JL
85462012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8547
8548 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8549 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8550
004159a2 85512012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 8552 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
8553
8554 * mips-tdep.c (mips_float_register_p): New function.
8555 (mips_convert_register_float_case_p): Use mips_float_register_p.
8556 (mips_register_type): Likewise.
8557 (mips_print_register): Likewise.
8558 (print_gp_register_row): Likewise.
8559 (mips_print_registers_info): Likewise.
8560
7f0e6aae
MR
85612012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8562
8563 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8564 of mips16 symbols.
8565
bc17beea
AP
85662012-04-20 Andrew Pinski <apinski@cavium.com>
8567
8568 * MAINTAINERS (Write After Approval): Add myself to the list.
8569
1730a5a5
SDJ
85702012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8571
8572 * MAINTAINERS: Update my e-mail address.
8573
38ea300a
PA
85742012-04-20 Pedro Alves <palves@redhat.com>
8575
8576 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8577 $srcdir.
8578 * configure: Regenerate.
8579
111dfaae
SDJ
85802012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8581
8582 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8583 declaration.
8584 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8585
4fb2c64a
JK
85862012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8587
8588 Fix compilation compatibility with python-2.4
8589 * python/py-type.c (convert_field): Cast ADDRSTRING for
8590 PyObject_SetAttrString as non-const. New comment.
8591
6328eb38
TT
85922012-04-19 Tom Tromey <tromey@redhat.com>
8593
8594 * top.c (quit_target): Use all_cleanups.
8595 * main.c (captured_command_loop): Use all_cleanups.
8596 * exceptions.c (throw_exception): Use all_cleanups.
8597
c971b7fa
PA
85982012-04-19 Pedro Alves <palves@redhat.com>
8599
8600 * Makefile.in (GNULIB_BUILDDIR): New.
8601 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8602 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8603 (CLEANDIRS). Remove gnulib/import.
8604 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8605 (all-lib): Ditto.
8606 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8607 (gnulib/import/Makefile): Replace gnulib/import with
8608 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8609 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8610 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8611 acx_configure_dir.m4.
8612 * acinclude.m4: Include acx_configure_dir.m4.
8613 * acx_configure_dir.m4: New file.
8614 * aclocal.m4: Regenerate.
a09130f9
PA
8615 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8616 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8617 (GNULIB): New variable.
8618 (GNULIB_STDINT_H): Adjust.
8619 (AC_OUTPUT): Don't output gnulib/Makefile.
8620 * gdb/defs.h: Include build-gnulib/config.h.
8621 * aclocal.m4: Regenerate.
8622 * config.in: Regenerate.
8623 * configure: Regenerate.
8624
8625 * gnulib/Makefile.in: New file.
8626 * gnulib/configure.ac: New file.
8627 * gnulib/aclocal.m4: New file.
8628 * gnulib/config.in: New file.
8629 * gnulib/configure: New file.
c971b7fa
PA
8630 * gnulib/: Re-run gnulib-tool to adjust.
8631
b10faa68
DE
86322012-04-19 Doug Evans <dje@google.com>
8633
8634 * cleanups.h (struct cleanup): Move to cleanups.c.
8635 (make_cleanup_dtor_ftype): New typedef.
8636 (make_cleanup_dtor): Use it.
8637 (ALL_CLEANUPS): Replace with ...
8638 (all_cleanups): ... this. Declare. All uses updated.
8639 * cleanups.c: #include "gdb_assert.h".
8640 (sentinel_cleanup): New static global.
8641 (SENTINEL_CLEANUP): Define.
8642 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8643 (make_my_cleanup2): Assert result is non-NULL.
8644 (all_cleanups): New function.
8645 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8646 of NULL.
8647
d8c267cc
PA
86482012-04-19 Pedro Alves <palves@redhat.com>
8649
8650 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8651 Adjust paths to gnulib imported files.
8652
809277f8
PA
86532012-04-19 Pedro Alves <palves@redhat.com>
8654
8655 * gnulib/: Move whole directory ...
8656 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8657 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8658 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8659 (aclocal_m4_deps): Adjust.
8660 * aclocal.m4: Regenerate.
8661 * configure: Regenerate.
8662 * configure.ac: Adjust AC_OUTPUT output.
8663
aad9eab9
YQ
86642012-04-19 Yao Qi <yao@codesourcery.com>
8665
8666 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8667 (vec.o): New rule.
8668 * vec.c: Move it ...
8669 * common/vec.c: ... here.
8670 * vec.h: Move it ...
8671 * common/vec.h: ... here.
8672
48fe4669
YQ
86732012-04-19 Yao Qi <yao@codesourcery.com>
8674
8675 * gdb-code-style.el: New.
8676
770d76d7
PA
86772012-04-18 Pedro Alves <palves@redhat.com>
8678
8679 Update gnulib from latest git.
8680 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8681
8682 * gnulib/Makefile.am: Update.
8683 * gnulib/dummy.c: Update.
8684 * gnulib/extra/arg-nonnull.h: Update.
8685 * gnulib/extra/c++defs.h: Update.
8686 * gnulib/extra/update-copyright: Update.
8687 * gnulib/extra/warn-on-use.h: Update.
8688 * gnulib/inttypes.in.h: Update.
8689 * gnulib/m4/00gnulib.m4: Update.
8690 * gnulib/m4/extensions.m4: Update.
8691 * gnulib/m4/gnulib-cache.m4: Update.
8692 * gnulib/m4/gnulib-common.m4: Update.
8693 * gnulib/m4/gnulib-comp.m4: Update.
8694 * gnulib/m4/gnulib-tool.m4: Update.
8695 * gnulib/m4/include_next.m4: Update.
8696 * gnulib/m4/inttypes-pri.m4: Update.
8697 * gnulib/m4/inttypes.m4: Update.
8698 * gnulib/m4/longlong.m4: Update.
8699 * gnulib/m4/memchr.m4: Update.
8700 * gnulib/m4/memmem.m4: Update.
8701 * gnulib/m4/mmap-anon.m4: Update.
8702 * gnulib/m4/multiarch.m4: Update.
8703 * gnulib/m4/onceonly.m4: Update.
8704 * gnulib/m4/stddef_h.m4: Update.
8705 * gnulib/m4/stdint.m4: Update.
8706 * gnulib/m4/string_h.m4: Update.
8707 * gnulib/m4/warn-on-use.m4: Update.
8708 * gnulib/m4/wchar_h.m4: Update.
8709 * gnulib/m4/wchar_t.m4: Update.
8710 * gnulib/m4/wint_t.m4: Update.
8711 * gnulib/memchr.c: Update.
8712 * gnulib/memmem.c: Update.
8713 * gnulib/stddef.in.h: Update.
8714 * gnulib/stdint.in.h: Update.
8715 * gnulib/str-two-way.h: Update.
8716 * gnulib/string.in.h: Update.
8717 * gnulib/wchar.in.h: Update.
8718
8719 * gnulib/extra/arg-nonnull.h: Delete.
8720 * gnulib/extra/c++defs.h: Delete.
8721 * gnulib/extra/warn-on-use.h: Delete.
8722 * gnulib/m4/wchar_h.m4: Delete.
8723 * gnulib/m4/wint_t.m4: Delete.
8724 * gnulib/wchar.in.h: Delete.
8725
8726 * gnulib/extra/snippets/arg-nonnull.h: New.
8727 * gnulib/extra/snippets/c++defs.h: New.
8728 * gnulib/extra/snippets/warn-on-use.h: New.
8729
8730 * aclocal.m4: Regenerate.
8731 * config.in: Regenerate.
8732 * configure: Regenerate.
8733 * gnulib/Makefile.in: Regenerate.
8734
174e088e
PA
87352012-04-18 Pedro Alves <palves@redhat.com>
8736
8737 Reimport the update-copyright module from gnulib
8738 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8739
8740 * configure: Regenerate.
8741 * gnulib/Makefile.am: Update.
8742 * gnulib/Makefile.in: Regenerate.
8743 * gnulib/extra/update-copyright: Update.
8744 * gnulib/m4/gnulib-cache.m4: Update.
8745 * gnulib/m4/gnulib-comp.m4: Update.
8746
7f533142
JB
87472012-04-18 Tristan Gingold <gingold@adacore.com>
8748
8749 * configure.ac (aix): Put -lpthread into libs.
8750 * configure: Regenerate.
8751
001822aa
TT
87522012-04-18 Tom Tromey <tromey@redhat.com>
8753
8754 * linespec.c (convert_linespec_to_sals): Don't use
8755 SYMBOL_OBJ_SECTION.
8756 (compare_msymbols): Arguments are minsym_and_objfile, not
8757 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8758
db026a31
PA
87592012-04-18 Pedro Alves <palves@redhat.com>
8760
8761 Revert gnulib/ part of:
8762 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8763 Copyright year update in most files (performed by copyright.sh).
8764
12df843f
JK
87652012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8766
8767 Fix 64-bit constants on 32-bit hosts.
8768 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8769 from unsigned long to ULONGEST.
8770 (read_signed_leb128): Change declaration return type from long to
8771 LONGEST.
8772 (dwarf2_const_value_attr): Change declaration parameter value from long
8773 to LONGEST.
8774 (dwarf2_compute_name): Change variable value from long to LONGEST.
8775 (read_unsigned_leb128): Change return type, variable result and some
8776 casts from unsigned long to ULONGEST.
8777 (read_signed_leb128): Change return type, variable result and some
8778 casts from long to LONGEST.
8779 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8780 value from long to LONGEST.
8781 (dwarf2_const_value): Change variable value from long to LONGEST.
8782 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8783 plongest and hex_string.
8784 * symtab.h (struct general_symbol_info): Change ivalue from long to
8785 LONGEST, remove the comment.
8786 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8787 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8788
14e75d8e
JK
87892012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8790
8791 PR symtab/7259:
8792 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8793 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
8794 (ada_discrete_type_low_bound): Fix function comment. Use
8795 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
8796 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8797 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8798 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8799 Use TYPE_FIELD_ENUMVAL.
8800 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8801 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8802 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8803 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8804 TYPE_CODE_ENUM.
8805 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8806 * dwarf2read.c (process_enumeration_scope): Likewise.
8807 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8808 field.bitpos.
8809 (class StructMainTypePrettyPrinter): Support also
8810 FIELD_LOC_KIND_ENUMVAL.
8811 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8812 TYPE_CODE_ENUM.
8813 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8814 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8815 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8816 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8817 field enumval.
8818 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8819 accommodate enumval.
8820 (struct call_site): Adjust loc_kind to accommodate enumval.
8821 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8822 (TYPE_FIELD_ENUMVAL): New macros.
8823 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8824 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8825 TYPE_CODE_ENUM.
8826 * p-typeprint.c (pascal_type_print_base): Likewise.
8827 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8828 enumval.
8829 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8830 * python/py-type.c (convert_field): New variable addrstring. Use
8831 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8832 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8833 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8834 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8835 TYPE_CODE_ENUM.
8836 * valprint.c (generic_val_print): Likewise.
8837
380bca97
DE
88382012-04-17 Doug Evans <dje@google.com>
8839
dcc07052
DE
8840 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8841
380bca97
DE
8842 * dwarf2read.c: Whitespace fixes.
8843 (lookup_signatured_type): Tweak comment.
8844 (get_die_type_at_offset): Fix comment.
8845
ec92004f
JB
88462012-04-17 Joel Brobecker <brobecker@adacore.com>
8847
8848 * xcoffread.c (xcoff_secnum_to_sections): New function.
8849 (secnum_to_section, secnum_to_bfd_section): Reimplement
8850 using xcoff_secnum_to_sections. Rename "secnum" parameter
8851 into "n_scnum".
8852 (RECORD_MINIMAL_SYMBOL): Delete.
8853 (record_minimal_symbol): New function.
8854 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8855 by call to record_minimal_symbol and set misc_func_recorded
8856 to 1. Set last_csect_sec to the XCOFF section index instead
8857 of GDB's section_offset index. Update calls to
8858 prim_record_minimal_symbol_and_info to pass the BFD section
8859 as well.
8860
40301fb7
JB
88612012-04-17 Joel Brobecker <brobecker@adacore.com>
8862
8863 * xcoffread.c (read_xcoff_symtab): Delete variables
8864 last_csect_val and last_csect_sec and associated code.
8865
e0088cfd
DE
88662012-04-17 Doug Evans <dje@google.com>
8867
58d5e2c3
DE
8868 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8869 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8870 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8871 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8872
c27f5738
DE
8873 * cleanups.h: New file.
8874 * cleanups.c: New file.
8875 * Makefile.in (SFILES): Add cleanups.c.
8876 (HFILES_NO_SRCDIR): Add cleanups.h.
8877 (COMMON_OBS): Add cleanups.o.
8878 * defs.h (struct cleanup): Moved to cleanups.h.
8879 (do_cleanups,do_final_cleanups): Ditto.
8880 (discard_cleanups,discard_final_cleanups): Ditto
8881 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8882 (save_cleanups,save_final_cleanups): Ditto.
8883 (restore_cleanups,restore_final_cleanups): Ditto.
8884 (null_cleanup): Ditto.
8885 (make_my_cleanup,make_my_cleanup2): Ditto.
8886 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8887 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8888 (do_cleanups,do_final_cleanups): Ditto.
8889 (discard_cleanups,discard_final_cleanups): Ditto
8890 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8891 (save_cleanups,save_final_cleanups): Ditto.
8892 (restore_cleanups,restore_final_cleanups): Ditto.
8893 (null_cleanup): Ditto.
8894 (make_my_cleanup,make_my_cleanup2): Ditto.
8895 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8896
e0088cfd
DE
8897 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8898 make_my_cleanup.
8899 (make_cleanup_dyn_string_delete): Ditto.
8900 (make_cleanup_ui_file_delete): Ditto.
8901 (make_cleanup_ui_out_redirect_pop): Ditto.
8902 (make_cleanup_free_section_addr_info): Ditto.
8903 (make_cleanup_restore_integer): Ditto.
8904 (make_cleanup_unpush_target): Ditto.
8905 (make_cleanup_value_free_to_mark): Ditto.
8906 (make_cleanup_value_free): Ditto.
8907 (make_cleanup_free_so): Ditto.
8908
4dc84fd1
JK
89092012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8910
8911 New option "set debug auto-load".
8912 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8913 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8914 (auto_load_safe_path_vec_update)
8915 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8916 if DEBUG_AUTO_LOAD.
8917 (file_is_auto_load_safe): New parameters debug_fmt and ....
8918 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8919 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8920 caller by explanatory string.
8921 (_initialize_auto_load): Register "set debug auto-load".
8922 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8923 and ....
8924 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8925 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8926 by explanatory string.
8927 * main.c (captured_main): Likewise.
8928 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8929 (source_section_scripts): Likewise.
8930
bccbefd2
JK
89312012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 New option "set auto-load safe-path".
8934 * NEWS: New commands "set auto-load safe-path"
8935 and "show auto-load safe-path".
8936 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8937 (auto_load_safe_path, auto_load_safe_path_vec)
8938 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8939 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8940 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8941 (source_gdb_script_for_objfile): New variable is_safe. Call
8942 file_is_auto_load_safe. Return if it is not.
8943 (struct loaded_script): New field loaded.
8944 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8945 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8946 output "Missing" to "No".
8947 (_initialize_auto_load): New variable cmd. Initialize
8948 auto_load_safe_path. Register "set auto-load safe-path",
8949 "show auto-load safe-path" and "add-auto-load-safe-path".
8950 * auto-load.h (maybe_add_script): Add parameter loaded.
8951 (file_is_auto_load_safe): New declaration.
8952 * config.in: Regenerate.
8953 * configure: Regenerate.
8954 * configure.ac: New parameters --with-auto-load-safe-path
8955 and --without-auto-load-safe-path.
8956 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8957 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8958 * main.c (captured_main): Check file_is_auto_load_safe for
8959 LOCAL_GDBINIT.
8960 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8961 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8962 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8963 not.
8964
bf88dd68
JK
89652012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8966
8967 auto-load: Implementation.
8968 * NEWS: New descriptions for "info auto-load",
8969 "info auto-load gdb-scripts", "info auto-load python-scripts",
8970 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8971 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8972 and "show auto-load-scripts". New description for "set auto-load",
8973 "show auto-load", "set auto-load gdb-scripts",
8974 "show auto-load gdb-scripts", "set auto-load python-scripts",
8975 "show auto-load python-scripts", "set auto-load local-gdbinit",
8976 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8977 "show auto-load libthread-db".
8978 * auto-load.c: Remove include python/python-internal.h. Add includes
8979 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8980 cli/cli-setshow.h.
8981 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8982 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8983 (gdbpy_global_auto_load): Rename to ...
8984 (global_auto_load): ... here.
8985 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8986 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8987 (script_language_gdb, source_gdb_script_for_objfile): New.
8988 (struct loaded_script): New field language.
8989 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8990 LANGUAGE.
8991 (maybe_add_script): Add parameter language. Drop redundant
8992 entry.full_path initialization. Initialize entry.language and
8993 (*slot)->language.
8994 (auto_load_objfile_script): Change parameter suffix to language.
8995 Remove the call of maybe_add_script.
8996 Call language->source_script_for_objfile.
8997 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8998 New.
8999 (collect_matching_scripts): Adjust it for
9000 struct collect_matching_scripts_data.
9001 (auto_load_info_scripts_pattern_nl): New variable.
9002 (info_auto_load_scripts): Rename to ...
9003 (auto_load_info_scripts): ... here, add parameter language. Adjust it
9004 for struct collect_matching_scripts_data.
9005 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
9006 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
9007 (auto_load_show_cmdlist_get, info_auto_load_cmd)
9008 (auto_load_info_cmdlist_get): New.
9009 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
9010 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
9011 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
9012 "info auto-load local-gdbinit".
9013 * auto-load.h (struct script_language): New.
9014 (gdbpy_global_auto_load): Rename to ...
9015 (global_auto_load): ... here.
9016 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
9017 (auto_load_local_gdbinit_loaded): New declarations.
9018 (maybe_add_script): New parameter language.
9019 (auto_load_objfile_script): Change parameter suffix to language.
9020 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
9021 (auto_load_info_scripts, auto_load_set_cmdlist_get)
9022 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
9023 declarations.
9024 * linux-thread-db.c: Include auto-load.h and ctype.h.
9025 (auto_load_thread_db, show_auto_load_thread_db): New.
9026 (struct thread_db_info): New field filename.
9027 (delete_thread_db_info): Call xfree for FILENAME.
9028 (try_thread_db_load): Initialize FILENAME.
9029 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
9030 if !AUTO_LOAD_THREAD_DB.
9031 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
9032 (_initialize_thread_db): Install auto_load_thread_db
9033 as "set auto-load libthread-db" and install info_auto_load_libthread_db
9034 as "info auto-load libthread-db".
9035 * main.c (captured_main): Rename gdbpy_global_auto_load to
9036 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
9037 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
9038 (print_gdb_help): Extend the help for 'local init file'.
9039 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
9040 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
9041 (auto_load_scripts): Rename to ...
9042 (auto_load_python_scripts): ... here, update the comment.
9043 (gdbpy_load_auto_script_for_objfile): New declaration.
9044 (show_auto_load_python_scripts, script_language_python)
9045 (gdbpy_load_auto_script_for_objfile): New.
9046 (source_section_scripts): Refactor the code.
9047 (load_auto_scripts_for_objfile): Rename to ...
9048 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
9049 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
9050 (info_auto_load_python_scripts): New.
9051 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
9052 Rename "set auto-load-scripts" to "set auto-load python-scripts".
9053 Register "set auto-load-scripts" as its deprecated alias. Register
9054 "info auto-load python-scripts". Register "info auto-load-scripts" as
9055 its deprecated alias.
9056 (load_auto_scripts_for_objfile): Rename to ...
9057 (gdbpy_load_auto_scripts_for_objfile): ... here.
9058 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
9059 (gdbpy_load_auto_scripts_for_objfile): ... here.
9060
e2207b9a
JK
90612012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9062
9063 auto-load: Move files.
9064 * Makefile.in (SFILES): Add auto-load.c.
9065 (HFILES_NO_SRCDIR): Add auto-load.h.
9066 (COMMON_OBS): Add auto-load.o.
9067 (distclean): Change .gdbinit for gdb-gdb.gdb.
9068 * auto-load.c: New file, with parts from python/py-auto-load.c.
9069 * auto-load.h: New file, with parts from python/python.h.
9070 * configure: Regenerate.
9071 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
9072 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
9073 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
9074 * main.c: Include auto-load.h.
9075 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
9076 command.h, observer.h and progspace.h to auto-load.c. Add include
9077 auto-load.h.
9078 (gdbpy_global_auto_load, struct auto_load_pspace_info)
9079 (struct loaded_script, auto_load_pspace_data)
9080 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
9081 (hash_loaded_script_entry, eq_loaded_script_entry)
9082 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
9083 (maybe_add_script): Move to auto-load.c.
9084 (source_section_scripts): Change maybe_add_script parameters passing,
9085 use script_not_found_warning_print.
9086 (clear_section_scripts, auto_load_objfile_script)
9087 (auto_load_new_objfile, loaded_script_ptr)
9088 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
9089 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
9090 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
9091 auto_load_new_objfile and info_auto_load_scripts initizations to
9092 auto-load.c.
9093 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
9094
e4ab2fad
JK
90952012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9096
9097 Code cleanup.
9098 * charset.c (find_charset_names): Remove variables ix and elt.
9099 Use free_char_ptr_vec.
9100 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
9101 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9102 debugdir_end. New variable debugdir_len.
9103 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
9104 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
9105 declarations.
9106 * progspace.c (clear_program_space_solib_cache): Remove variables ix
9107 and elt. Use free_char_ptr_vec.
9108 * source.c (add_path): Remove variables argv, arg and argv_index.
9109 New variables dir_vec, back_to, ix and name.
9110 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
9111 make_cleanup_freeargv. Remove variable separator. Simplify the code
9112 no longer expecting DIRNAME_SEPARATOR.
9113 (openp): Remove variable p, p1 and len. New variables dir_vec,
9114 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9115 no longer expecting DIRNAME_SEPARATOR.
9116 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9117 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9118 debugdir_end.
9119 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9120 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9121 (dirnames_to_char_ptr_vec): New functions.
9122
5ee4ed9f
JK
91232012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9124
9125 Code cleanup.
9126 * source.c (add_path): Remove always true conditional 'p == 0' and
9127 unindent its code block.
9128
f41f5e61
PA
91292012-04-17 Pedro Alves <palves@redhat.com>
9130
9131 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9132 (FIELD_BITPOS_LVAL): ... this.
9133 (FIELD_BITPOS): New.
9134 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9135 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9136 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9137 SET_FIELD_BITPOS.
9138 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9139 SET_FIELD_BITPOS.
9140 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9141 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9142 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9143 SET_FIELD_BITPOS.
9144
945b3a32
JK
91452012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9146
9147 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9148 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9149 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9150 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9151 * jv-lang.c (java_link_class_type): Likewise, once.
9152 * stabsread.c (read_enum_type): Likewise.
9153
42476b70
YQ
91542012-04-16 Yao Qi <yao@codesourcery.com>
9155
9156 * common/agent.c (agent_run_command): Add one more parameter `len'.
9157 Update callers.
9158 * common/agent.h: Update declaration.
9159 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9160 Update.
9161 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9162
8264ba82
AG
91632012-04-14 Anton Gorenkov <xgsa@yandex.ru>
9164
9165 PR mi/13393
9166 * value.c (value_actual_type): New function.
9167 * value.h (value_actual_type): New declaration.
9168 * varobj.c (update_type_if_necessary): New function.
9169 (varobj_create): Call value_actual_type instead of
9170 value_type.
9171 (install_dynamic_child): distinct changed and type changed MI variable
9172 objects.
9173 (update_dynamic_varobj_children): Updated for install_dynamic_child
9174 change. All callers updated.
a09130f9 9175 (varobj_update): Support for MI variable object type change if
8264ba82
AG
9176 the value changed and RTTI is used to determine the type.
9177 (create_child_with_value): Call value_actual_type instead of
9178 value_type.
a09130f9 9179 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
9180 specify whether the given value should be casted to enclosing type.
9181 All callers updated.
9182
55a8c076
YQ
91832012-04-14 Yao Qi <yao@codesourcery.com>
9184
9185 Import gnulib module inttypes from git
9186 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9187 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
9188 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9189 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
9190 * aclocal.m4, config.in, configure: Regenerated.
9191 * gnulib/Makefile.am: Update.
9192 * gnulib/Makefile.in: Update.
9193 * gnulib/m4/gnulib-cache.m4: Update.
9194 * gnulib/m4/gnulib-comp.m4: Update.
9195 * gnulib/inttypes.in.h: New.
9196 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 9197 * gnulib/m4/inttypes.m4: New.
55a8c076 9198
ca7781d2
LM
91992012-04-13 Luis Machado <lgustavo@codesourcery.com>
9200
9201 * infrun.c (resume): Update PC address to the real PC after
9202 preparing to do displaced stepping.
9203
e319fa28
DE
92042012-04-12 Doug Evans <dje@google.com>
9205
9206 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9207 All callers updated.
9208
15add3f5
MK
92092012-04-12 Mark Kettenis <kettenis@gnu.org>
9210
9211 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9212
52dc124a
DE
92132012-04-12 Doug Evans <dje@google.com>
9214
0e50663e
DE
9215 * dwarf2read.c (create_all_type_units): Renamed from
9216 create_debug_types_hash_table. All callers updated.
9217
52dc124a
DE
9218 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9219 local type_sig to sig_type, type_offset to type_offset_in_tu.
9220 (hash_signatured_type): Renamed from hash_type_signature,
9221 all callers updated.
9222 (eq_signatured_type): Renamed from eq_type_signature,
9223 all callers updated.
9224 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9225 (process_enumeration_scope): Ditto.
9226 (lookup_signatured_type_at_offset): Ditto.
9227 (load_full_type_unit, read_signatured_type): Ditto.
9228
248fd3bf
YQ
92292012-04-12 Yao Qi <yao@codesourcery.com>
9230
9231 * remote.c (async_remote_interrupt): Correct function name in
9232 debug message.
9233 (async_remote_interrupt_twice): Ditto.
9234
bc3aa6c3
DE
92352012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9236
9237 * source.c (find_and_open_source): Consistently pass resulting
9238 full path through xfullpath.
9239
9e529e1d
JK
92402012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9241
9242 Provide more specific displaced-stepping memory error message.
9243 * infrun.c (displaced_step_prepare): New variable status. Call
9244 target_read_memory instead of read_memory, provide more specific
9245 error message.
9246
82e0cec1
TG
92472012-04-11 Tristan Gingold <gingold@adacore.com>
9248
9249 PR gdb/13901
9250 * darwin-nat.c (darwin_execvp): Revert previous patch.
9251
d987a266
TG
92522012-04-11 Tristan Gingold <gingold@adacore.com>
9253
9254 PR gdb/13901
9255 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9256 in case of change.
9257
016b7430
TG
92582012-04-11 Tristan Gingold <gingold@adacore.com>
9259
9260 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9261 warning.
9262
06fc020f
SCR
92632012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9264
9265 New command 'explore' which helps explore values and types in
9266 scope.
9267 * NEWS: Add an entry about the new 'explore' command.
9268 * data-directory/Makefile.in: Add gdb/command/explore.py
9269 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 9270 command using the GDB Python API.
06fc020f 9271
de0919f8 92722012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
9273
9274 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9275 extension in jump target calculation.
9276
de0919f8 92772012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
9278
9279 * mips-tdep.c (mips32_next_pc): Handle JALX.
9280
2f26ef89
YQ
92812012-04-10 Yao Qi <yao@codesourcery.com>
9282
9283 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9284
2e505b66
YQ
92852012-04-10 Yao Qi <yao@codesourcery.com>
9286
9287 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9288 and gnulib/m4/gnulib-tool.m4.
9289
0d99eb77
DE
92902012-04-10 Doug Evans <dje@google.com>
9291
9292 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9293 (load_partial_dies): Clarify comment.
9294 (find_partial_die): Support rereading type units.
9295 Clarify CU handling, if we know offset is in CU, don't search for the
9296 containing CU. Add comment regarding memory waste.
9297
9a82b8ff
L
92982012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9299
9300 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9301 i386/x32-avx and i386/x32-avx-linux.
9302 (i386/x32-expedite): New.
9303 (i386/x32-linux-expedite): Likewise.
9304 (i386/x32-avx-expedite): Likewise.
9305 (i386/x32-avx-linux-expedite): Likewise.
9306 ($(outdir)/i386/x32.dat): Likewise.
9307 ($(outdir)/i386/x32-linux.dat): Likewise.
9308 ($(outdir)/i386/x32-avx.dat): Likewise.
9309 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9310
9311 * features/i386/x32-avx-linux.xml: New file.
9312 * features/i386/x32-avx.xml: Likewise.
9313 * features/i386/x32-core.xml: Likewise.
9314 * features/i386/x32-linux.xml: Likewise.
9315 * features/i386/x32.xml: Likewise.
9316
9317 * features/i386/x32-avx-linux.c: New. Generated.
9318 * features/i386/x32-avx.c: Likewise.
9319 * features/i386/x32-linux.c: Likewise.
9320 * features/i386/x32.c: Likewise.
9321 * regformats/i386/x32-avx-linux.dat: Likewise.
9322 * regformats/i386/x32-avx.dat: Likewise.
9323 * regformats/i386/x32-linux.dat: Likewise.
9324 * regformats/i386/x32.dat: Likewise.
9325
ee41036f
TG
93262012-04-10 Tristan Gingold <gingold@adacore.com>
9327
9328 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9329 code to kill the inferior.
9330
a7aa5b8a
MK
93312012-04-09 Mark Kettenis <kettenis@gnu.org>
9332
9333 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9334 defines.
9335 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9336 defines.
a09130f9 9337 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
9338 (yyvsp): New defines.
9339 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9340 defines.
9341 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9342 defines.
9343 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9344 defines.
9345 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9346 defines.
9347 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9348 defines.
9349
fb57d452
MK
93502012-04-09 Mark Kettenis <kettenis@gnu.org>
9351
a09130f9 9352 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
9353 (sparc64_store_arguments): Fix coding style.
9354
cdc7b32f
MK
93552012-04-07 Mark Kettenis <kettenis@gnu.org>
9356
9357 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9358 complex floats, adjust some related comments and tighten a related
9359 assertion.
9360 (sparc64_extract_return_value): Handle complex floats.
9361
7adf1e79
DE
93622012-04-07 Doug Evans <dje@google.com>
9363
9364 * dwarf2read.c (load_partial_dies): Change condition to assert.
9365
50f1ae7b
DE
93662012-04-06 Doug Evans <dje@google.com>
9367
9368 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9369 "mov %rsp,%rbp".
9370
55fa75c3
KB
93712012-04-05 Kevin Buettner <kevinb@redhat.com>
9372
9373 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9374 fencepost error.
9375 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9376 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9377 architecture.
9378
40e084e1
KS
93792012-04-05 Keith Seitz <keiths@redhat.com>
9380
9381 * linespec.c (decode_compound): Remove.
9382 (enum offset_relative_sign): New enum.
9383 (struct line_offset): New struct.
9384 (struct linespec): New struct.
9385 (struct linespec_state): Move file_symtabs,
9386 user_filename, and user_function into struct linespec.
9387 Make result an anonymous struct holding vectors of
9388 symbolp and minsym_and_objfile_d.
9389 Add language member.
9390 (enum ls_token_type): New enum.
9391 (linespec_keywords): New array.
9392 (struct ls_token): New struct.
9393 (struct ls_parser): New struct.
9394 (linespec_lexer_lex_number): New function.
9395 (linespec_lexer_lex_keyword): New function.
9396 (is_ada_operator): New function.
9397 (skip_quote_char): New function.
9398 (copy_token_string): New function.
9399 (is_closing_quote_enclosed): New function.
9400 (find_parameter_list_end): New function.
9401 (linespec_lexer_lex_string): New function.
9402 (linespec_lexer_lex_one): New function.
9403 (linespec_lexer_consume_token): New function.
9404 (linespec_lexer_peek_token): New function.
9405 (cplusplus_error): Remove unused function.
9406 (find_methods): Update comment.
9407 (find_toplevel_char): Return const.
9408 (is_objc_method_format): Remove unused function.
9409 (find_toplevel_string): New function.
9410 (is_linespec_boundary): Remove.
9411 (symbol_not_found_error): New function.
9412 (find_method_overload_end): Remove function.
9413 (unexpected_linespec_error): New function.
9414 (keep_name_info): Remove.
9415 (linespec_parse_line_offset): New function.
9416 (linespec_parse_basic): New function.
9417 (canonicalize_linespec): New function.
9418 (decode_line_internal): Remove.
9419 (create_sals_line_offset): New function adapted from
9420 decode_all_digits.
9421 (convert_linespec_to_sals): New function.
9422 (parse_linespec): New function.
9423 (linespec_parser_new): New function.
9424 (linespec_state_destructor): Change parameter type to
9425 struct linespec_state *.
9426 Add language parameter.
9427 Remove freeing of moved members.
9428 (linespec_parser_delete): New function.
9429 (decode_line_full): Use parse_linespec and linespec_parser_new.
9430 (decode_line_1): Likewise.
9431 (decode_indirect): Rename to ...
9432 (linespec_expression_to_pc): ... this and rewrite
9433 to simply find CORE_ADDR, storing this result for later
9434 conversion to SALs.
9435 (locate_first_half): Remove.
9436 (deocde_objc): Add parameter LS.
9437 Initialize new struct collect_info members.
9438 Handle minimal symbols, too.
9439 (decode_compound): Delete.
9440 (lookup_prefix_sym): Rewrite.
9441 (compare_msymbols): New function.
9442 (find_method): Rewrite.
9443 Do not call cplusplus_error.
9444 (symtabs_from_filename): Rewrite.
9445 (collect_function_symbols): Delete.
9446 (find_function_symbols): Rewrite without ARGPTR-style
9447 processing.
9448 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9449 (decode_dollar): Adapted and renamed to ...
9450 (linespec_parse_variable): ... this.
9451 (find_linespec_symbols): New function.
9452 (decode_label): Adapted and renamed to ...
9453 (find_label_symbols): ... this.
9454 (decode_digits_list_mode): Add and use LS argument.
9455 (decode_digits_ordinary): Likewise.
9456 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9457 If in list mode, allow any symbol class. Otherwise, only
9458 permit LOC_BLOCK symbols.
9459 (minsym_found): Update comments.
9460 (search_minsyms_for_name): Do not convert the matching symbol
9461 into a SAL. Simply push the symbol and objfile into the
9462 result vector.
9463 (decode_variable): Delete. Contents adapted into
9464 find_linespec_symbols.
9465
9466 * cp-support.c (SKIP_SPACE): Remove.
9467 (operator_tokens): Remove unused global.
9468 (cp_validate_operator): Remove.
9469 * cp-support.h (cp_validate_operator): Remove declaration.
9470
a72c8f6a
JK
94712012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9472
9473 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9474 for TYPE_VPTR_FIELDNO.
9475 * valprint.c (valprint_check_validity): Make it global, move the
9476 function comment ...
9477 * value.h (valprint_check_validity): ... to this new declaration.
9478
cf9bb588
TG
94792012-04-02 Tristan Gingold <gingold@adacore.com>
9480
9481 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9482 the STATE32 api for i386 state.
9483 (i386_darwin_store_inferior_registers): Likewise.
9484
17092398
TG
94852012-04-02 Tristan Gingold <gingold@adacore.com>
9486
9487 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9488 SS offset.
9489 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9490 format_string.
9491
ece0061f
TG
94922012-04-02 Tristan Gingold <gingold@adacore.com>
9493
9494 PR gdb/13901
d987a266 9495 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 9496
cf65ecd3
JK
94972012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9498
9499 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9500
9bc3523d
TT
95012012-03-30 Tom Tromey <tromey@redhat.com>
9502
9503 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9504 of TRY_CATCH. Fix error handling.
9505 * python/py-value.c (convert_value_from_python): Move 'old'
9506 declaration to innermost scope.
9507
b1ed564a
JB
95082012-03-29 Joel Brobecker <brobecker@adacore.com>
9509 Andrey Smirnov <andrew.smirnov@gmail.com>
9510
9511 -Wshadow warning fix.
9512 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9513 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9514 Adjust code accordingly.
9515
cb8e9b97
JB
95162012-03-29 Joel Brobecker <brobecker@adacore.com>
9517
9518 * ada-lang.c (symbol_completion_add): Rename parameter
9519 "encoded" into "encoded_p". Ajust code and documentation
9520 accordingly.
9521
c0af1706
JB
95222012-03-29 Joel Brobecker <brobecker@adacore.com>
9523 Andrey Smirnov <andrew.smirnov@gmail.com>
9524
9525 -Wshadow warning fix.
9526 * ada-lang.c (symbol_completion_add): Rename parameter
9527 "wild_match" into wild_match_p. Update code and documentation
9528 accordingly.
9529
6ea35997
JB
95302012-03-29 Joel Brobecker <brobecker@adacore.com>
9531
9532 * ada-lang.c (symbol_completion_match): Rename parameter
9533 "encoded" into "encoded_p". Ajust code and documentation
9534 accordingly.
9535
e701b3c0
JB
95362012-03-29 Joel Brobecker <brobecker@adacore.com>
9537 Andrey Smirnov <andrew.smirnov@gmail.com>
9538
9539 -Wshadow warning fix.
9540 * ada-lang.c (symbol_completion_match): Rename parameter
9541 "wild_match" into "wild_match_p". Adjust code and function
9542 documentation accordingly.
9543
5e2336be
JB
95442012-03-29 Joel Brobecker <brobecker@adacore.com>
9545 Andrey Smirnov <andrew.smirnov@gmail.com>
9546
9547 -Wshadow warning fix.
9548 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9549 "symbol_info" into "info". Adjust code accordingly.
9550 (ada_lookup_symbol): Likewise.
9551
9f88c959
JB
95522012-03-29 Joel Brobecker <brobecker@adacore.com>
9553
9554 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9555 of this function's documentation.
9556
82ccd55e
JB
95572012-03-29 Joel Brobecker <brobecker@adacore.com>
9558 Andrey Smirnov <andrew.smirnov@gmail.com>
9559
9560 -Wshadow warning fix.
9561 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9562 variable into "wild_match_p". Adjust code accordingly.
9563
d0a8ab18
JB
95642012-03-29 Joel Brobecker <brobecker@adacore.com>
9565 Andrey Smirnov <andrew.smirnov@gmail.com>
9566
9567 -Wshadow warning fix.
9568 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9569 parameter into "wild_match_p". Adjust code accordingly.
9570 Document this parameter in the function description.
9571
48b78332
JB
95722012-03-29 Joel Brobecker <brobecker@adacore.com>
9573 Andrey Smirnov <andrew.smirnov@gmail.com>
9574
9575 -Wshadow warning fix.
9576 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9577 "wild_match" parameter to "wild_match_p" (-Wshadow).
9578
2e6e0353
JB
95792012-03-29 Joel Brobecker <brobecker@adacore.com>
9580
9581 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9582 in function documentation.
9583
dc4024cd
JB
95842012-03-29 Joel Brobecker <brobecker@adacore.com>
9585 Andrey Smirnov <andrew.smirnov@gmail.com>
9586
9587 -Wshadow warning fix.
9588 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9589 variable into wild_match_p. Adjust code accordingly.
9590
6c88661c
JB
95912012-03-29 Joel Brobecker <brobecker@adacore.com>
9592 Andrey Smirnov <andrew.smirnov@gmail.com>
9593
9594 * ada-valprint.c (ada_val_print_1): Move the code handling
9595 TYPE_CODE_ENUM inside its own lexical block. Declare
9596 variables len and val there, instead of in the function's
9597 top level block. Avoid declaring deref_val again in a way
9598 that shadows another variable of the same name declared
9599 in one of the up-level blocks. Just re-use the up-level
9600 variable instead.
9601
4e5c77fe
JB
96022012-03-29 Joel Brobecker <brobecker@adacore.com>
9603
9604 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9605 Replace block_found argument by symbol_info. Adjust
9606 implementation accordingly. Add function documentation.
9607 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9608 Fix documentation.
9609 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9610 * ada-exp.y (write_object_renaming): Adjust to new
9611 ada_lookup_encoded_symbol API.
9612
1c0ac8c7
JB
96132012-03-29 Joel Brobecker <brobecker@adacore.com>
9614
9615 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9616 documentation.
9617
2aaed979
KB
96182012-03-28 Rathish C <rathish.c@kpitcummins.com>
9619
9620 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9621 (v850_register_name): Add the mpu and fpu register names.
9622 (v850e_register_name): Add the mpu and fpu register names.
9623 (v850e2_register_name): New function.
a09130f9 9624 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
9625 bfd_mach_v850e2v3.
9626
927fbba6
JB
96272012-03-28 Joel Brobecker <brobecker@adacore.com>
9628
9629 * NEWS: Add entry for Ada varobj support.
9630
d32cafc7
JB
96312012-03-28 Joel Brobecker <brobecker@adacore.com>
9632
9633 * varobj.c (default_value_is_changeable_p): New function,
9634 extracted from varobj_value_is_changeable_p. Add declaration.
9635 (ada_value_is_changeable_p): New function, extracted from
9636 varobj_value_is_changeable_p. Add declaration.
9637 (struct language_specific): New field "value_is_changeable_p".
9638 (languages): Add entries for new field.
9639 (varobj_create): Set language before calling install_new_value.
9640 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9641 "value_is_changeable_p" language callback.
9642
181875a4
JB
96432012-03-28 Joel Brobecker <brobecker@adacore.com>
9644
9645 * ada-varobj.h, ada-varobj.c: New files.
9646 * Makefile.in (SFILES): Add ada-varobj.c.
9647 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9648 (COMMON_OBS): Add ada-varobj.o.
9649
7a290c40
JB
96502012-03-28 Joel Brobecker <brobecker@adacore.com>
9651
9652 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9653 (struct language_specific): New field "value_has_mutated".
9654 (languages): Set field "value_has_mutated" in each entry of array.
9655 (varobj_value_has_mutated): New function.
9656 (varobj_udpdate): Add handling of type mutation.
9657 (value_of_root): Add handling of type mutation.
9658 (ada_value_has_mutated): New function.
9659
ca9b8b9c
PA
96602012-03-28 Pedro Alves <palves@redhat.com>
9661
9662 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9663 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9664
cc0265cd
TT
96652012-03-28 Tom Tromey <tromey@redhat.com>
9666
9667 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9668 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9669 before returning.
9670
3ad2ec6f
TT
96712012-03-28 Tom Tromey <tromey@redhat.com>
9672
9673 * .dir-locals.el: New file.
9674
4a6510ba
PA
96752012-03-28 Pedro Alves <palves@redhat.com>
9676
9677 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9678
5a75128f
JB
96792012-03-28 Joel Brobecker <brobecker@adacore.com>
9680
9681 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9682 handling for r0.
9683
f99d8bf4
PA
96842012-03-27 Pedro Alves <palves@redhat.com>
9685
9686 Eliminate struct ui_stream.
9687
9688 * ui-out.h (struct ui_stream): Delete.
9689 (ui_out_field_stream): Adjust prototype.
9690 (ui_out_stream_new, ui_out_stream_delete)
9691 (make_cleanup_ui_out_stream_delete): Delete declarations.
9692 * ui-out.c (ui_out_field_stream): Change prototype to take a
9693 ui_file instead of a ui_stream. Adjust.
9694 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9695 (make_cleanup_ui_out_stream_delete): Delete.
9696 * breakpoint.c (print_breakpoint_location)
9697 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9698 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9699 * disasm.c (dump_insns): Ditto.
9700 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9701 prototype.
9702 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9703 ui_stream/ui_out_stream_new.
9704 * infcmd.c (print_return_value): Ditto.
9705 * osdata.c (info_osdata_command): Don't allocate a local
9706 ui_stream.
9707 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9708 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9709 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9710 allocate a local ui_stream.
9711 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9712 instead of ui_stream/ui_out_stream_new.
9713 (list_args_or_locals): Don't allocate a local ui_stream.
9714 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9715 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9716 ui_stream/ui_out_stream_new.
9717 * cli/cli-setshow.c (do_setshow_command): Ditto.
9718
6350a066 97192012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 9720
6350a066
PA
9721 * arm-linux-tdep.c (arm_linux_init_abi): Call
9722 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9723 * arm-tdep.c (arm_process_record): New function.
9724 (deallocate_reg_mem): New function.
9725 (decode_insn): New function.
9726 (thumb_record_branch): New function.
9727 (thumb_record_ldm_stm_swi(): New function.
9728 (thumb_record_misc): New function.
9729 (thumb_record_ld_st_stack): New function.
9730 (thumb_record_ld_st_imm_offset): New function.
9731 (thumb_record_ld_st_reg_offset(): New function.
9732 (thumb_record_add_sub_cmp_mov): New function.
9733 (thumb_record_shift_add_sub): New function.
9734 (arm_record_coproc_data_proc): New function.
9735 (arm_record_coproc): New function.
9736 (arm_record_b_bl): New function.
9737 (arm_record_ld_st_multiple): New function.
9738 (arm_record_ld_st_reg_offset): New function.
9739 (arm_record_ld_st_imm_offset): New function.
9740 (arm_record_data_proc_imm): New function.
9741 (arm_record_data_proc_misc_ld_str): New function.
9742 (arm_record_extension_space): New function.
9743 (arm_record_strx): New function.
9744 (sbo_sbz): New function.
9745 (struct insn_decode_record): New structure for arm insn record.
9746 (REG_ALLOC): New macro for reg allocations.
9747 (MEM_ALLOC): New macro for memory allocations.
9748 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 9749
89e028e2
AS
97502012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9751
9752 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9753 (store_register): Likewise.
9754
6350a066 97552012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 9756
6350a066 9757 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 9758
5b43fab2
JK
97592012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9760
9761 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9762 Describe also the option "auto".
9763
b5453b95
RH
97642012-03-22 Richard Henderson <rth@redhat.com>
9765
9766 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9767 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9768
227ee7fc
RH
97692012-03-22 Richard Henderson <rth@redhat.com>
9770
9771 * jit.c (jit_read_code_entry): Compute alignment and offset of
9772 int64_t member before computing entry_size.
9773
7b282c5a
SCR
97742012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9775
9776 Python scripting: Add new method Value.referenced_value to
9777 gdb.Value which can dereference pointer as well as reference
9778 values.
9779 * NEWS: Add entry under 'Python scripting' about the new method
9780 Value.referenced_value on gdb.Value objects.
9781 * python/py-value.c (valpy_referenced_value): New function
9782 defining a new method on gdb.Value objects which can dereference
9783 pointer and reference values.
9784
0c83539f
SCR
97852012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9786
9787 * MAINTAINERS (Write After Approval): Add myself to the list.
9788
7ccffd7c
KB
97892012-03-21 Kevin Buettner <kevinb@redhat.com>
9790
9791 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9792 in addition to "main".
9793
bd0b9f9e
JB
97942012-03-21 Joel Brobecker <brobecker@adacore.com>
9795
9796 * expression.h (op_name): Add declaration.
9797 * expprint.c (op_name): Remove declaration. Make non-static.
9798 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9799
a5362b9a
TS
98002012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9801
9802 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9803 of struct siginfo.
9804 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9805 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9806 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9807 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9808 (linux_nat_get_siginfo): Likewise.
9809 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9810 (linux_nat_get_siginfo): Likewise.
9811 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9812 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9813 * procfs.c (gdb_siginfo_t): Likewise.
9814
adcadaab
MF
98152012-03-21 Mike Frysinger <vapier@gentoo.org>
9816
9817 * .gitignore: Ignore more files.
9818
e278ad5b
PA
98192012-03-20 Pedro Alves <palves@redhat.com>
9820
9821 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9822 returns.
9823
741e63d7
YQ
98242012-03-20 Yao Qi <yao@codesourcery.com>
9825
9826 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9827 comment.
9828
b64f50a1
JK
98292012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9830
9831 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9832 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9833 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9834 sect_offset.
9835 * dwarf2expr.h (cu_offset, sect_offset): New types.
9836 (struct dwarf_expr_context_funcs) <dwarf_call>
9837 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9838 sect_offset.
9839 (struct dwarf_expr_context) <len>: Improve the comment.
9840 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9841 cu_offset and sect_offset.
9842 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9843 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9844 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9845 * dwarf2loc.h: Include dwarf2expr.h.
9846 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9847 and sect_offset.
9848 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9849 Improve the comment.
9850 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9851 (struct signatured_type, struct line_header, struct partial_die_info)
9852 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9853 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9854 (get_die_type_at_offset, create_cus_from_index)
9855 (create_signatured_type_table_from_index, dw2_get_file_names)
9856 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9857 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9858 (create_debug_types_hash_table, process_psymtab_comp_unit)
9859 (load_partial_comp_unit, create_all_comp_units)
9860 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9861 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9862 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9863 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9864 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9865 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9866 (find_partial_die, read_attribute_value, lookup_die_type)
9867 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9868 (is_ref_attr): New function comment.
9869 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9870 Use cu_offset and sect_offset.
9871 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9872 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9873 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9874 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9875 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9876 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9877 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9878 sect_offset.
9879
e97a38f7
JK
98802012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9881
9882 Code cleanup.
9883 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9884 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9885 with xfree.
9886 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9887
8320cc4f
JK
98882012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9889
9890 * NEWS: Describe new options --init-command=FILE, -ix and
9891 --init-eval-command=COMMAND, -iex.
9892 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9893 CMDARG_INIT_COMMAND.
9894 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9895 "init-command", "init-eval-command", "ix" and "iex" to the variable
9896 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9897 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9898 (print_gdb_help): Describe --init-command=FILE, -ix and
9899 --init-eval-command=COMMAND, -iex.
9900
26743505
JK
99012012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9902
9903 Code cleanup.
9904 * main.c (struct cmdarg): Move it here from main. Add more comments.
9905 (cmdarg_s, VEC (cmdarg_s)): New.
9906 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9907 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9908 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9909 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9910 of CMDARG.
9911
5ff5c7b4
TT
99122012-03-19 Tom Tromey <tromey@redhat.com>
9913
9914 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9915
ab260dad
JK
99162012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9917
9918 PR symtab/13777
9919 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9920 GCC >=4.5.
9921
c366c1f0
TT
99222012-03-16 Chris January <chris.january@allinea.com>
9923
9924 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9925 of clear.
9926
e16edb45
TT
99272012-03-16 Chris January <chris.january@allinea.com>
9928
9929 * source.c (add_path): Use memmove instead of strcpy because the
9930 strings overlap.
9931
53ba8333
JB
99322012-03-16 Joel Brobecker <brobecker@adacore.com>
9933
9934 * value.h (set_value_parent): Add declaration.
9935 * value.c (set_value_parent): New function.
9936 (value_address): If VALUE->PARENT is not NULL, then use it as
9937 the base address instead of VALUE->LOCATION.address.
9938 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9939 the same as OBJ's address. Adjust V's offset accordingly.
9940 Set V's parent.
9941
481860b3
GB
99422012-03-16 Gary Benson <gbenson@redhat.com>
9943
9944 PR breakpoints/10738
9945 * dwarf2read.c (use_deprecated_index_sections): New global.
9946 (struct partial_die_info): New member may_be_inlined.
9947 (read_partial_die): Set may_be_inlined where appropriate.
9948 (add_partial_subprogram): Add partial symbols for partial
9949 DIEs that may be inlined.
9950 (new_symbol_full): Add inlined subroutines to the current
9951 scope.
9952 (write_psymtabs_to_index): Bump version number.
9953 (dwarf2_read_index): Read only version 6 indices unless
9954 use_deprecated_index_sections is set.
9955 * linespec.c (symbol_and_data_callback): New structure.
9956 (iterate_inline_only): New function.
9957 (iterate_over_all_matching_symtabs): New argument
9958 "include_inline". If nonzero, also call the callback for
9959 symbols representing inlined subroutines.
9960 (lookup_prefix_sym): Pass extra argument to the above.
9961 (find_function_symbols): Likewise.
9962 (add_matching_symbols_to_info): Likewise.
9963 * NEWS: Mention that GDB can now set breakpoints on inlined
9964 functions.
9965
d0e7e15a
PM
99662012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9967
9968 * p-typeprint.c (pascal_type_print_method_args):
9969 Fix display of parameter of methods.
9970
3d354654
PM
99712012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9972
9973 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9974 Add missing prototype.
9975
cafe75b0
JK
99762012-03-16 Yao Qi <yao@codesourcery.com>
9977 Jan Kratochvil <jan.kratochvil@redhat.com>
9978
9979 Fix false compilation warning.
9980 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9981
25f8c692
JL
99822012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9983 Pedro Alves <pedro@codesourcery.com>
9984
9985 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9986 (arm_register_g_packet_guesses): New function.
9987 (arm_gdbarch_init): Don't force a target description with
9988 registers when the executable is detected as M-profile. Instead
9989 set gdbarch->tdep->is_m. Register `g' packet guesses.
9990 (_initialize_arm_tdep): Initialize the new target description.
9991 * features/arm-with-m-fpa-layout.xml: New description.
9992 * features/arm-with-m-fpa-layout.c: New, generated.
9993
35c63cd8
JB
99942012-03-15 Joel Brobecker <brobecker@adacore.com>
9995
9996 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9997 Update function description.
9998 (insert_bp_location): Do not wipe bl->target_info out.
9999 * mem-break.c: #include "gdb_string.h".
10000 (default_memory_insert_breakpoint): Do not call target_read_memory
10001 with a pointer to the breakpoint's shadow_contents buffer. Use
10002 a local buffer instead.
10003 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
10004
57651221
TT
100052012-03-15 Tom Tromey <tromey@redhat.com>
10006
10007 * NEWS: Mention "info vtbl", not "info vtable".
10008 * cp-support.c (info_vtbl_command): Fix comment.
10009 (_initialize_cp_support): Fix text.
10010
410528f0
TT
100112012-03-15 Tom Tromey <tromey@redhat.com>
10012
10013 * cp-valprint.c (cp_print_value_fields): Use
10014 print_function_pointer_address for vtable slot.
10015
c4aeac85
TT
100162012-03-15 Tom Tromey <tromey@redhat.com>
10017
10018 * gnu-v3-abi.c (struct value_and_voffset): New.
10019 (hash_value_and_voffset, eq_value_and_voffset)
10020 (compare_value_and_voffset, compute_vtable_size)
10021 (print_one_vtable, gnuv3_print_vtable): New functions.
10022 (init_gnuv3_ops): Initialize 'print_vtable' field.
10023 * cp-support.c (info_vtbl_command): New function.
10024 (_initialize_cp_support): Add "info vtbl".
10025 * cp-abi.h (cplus_print_vtable): Declare.
10026 (struct cp_abi_ops) <print_vtable>: New field.
10027 * cp-abi.c (cplus_print_vtable): New function.
10028 * NEWS: Update.
10029
95cbceff
TT
100302012-03-15 Tom Tromey <tromey@redhat.com>
10031
10032 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
10033 iterate_over_symbols.
10034
589b4a32
DE
100352012-03-14 Doug Evans <dje@google.com>
10036
10037 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
10038 DW_OP_GNU_parameter_ref.
10039
e837f12a
JK
100402012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 Fix double prompt of 'interpreter-exec mi'.
10043 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
10044 (mi_interpreter_resume): use it.
10045 (mi_execute_command_input_handler): New function.
10046 * mi/mi-main.c (mi_execute_command): Move prompt printing to
10047 mi_execute_command_input_handler.
10048
ff1e4526 100492012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
10050
10051 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
10052 prototype.
10053 (darwin_debug_port_info): Make static.
10054 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
10055 * machoread.c (_initialize_machoread): Add prototype.
10056 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
10057 (i386_darwin_set_control, i386_darwin_get_control)
10058 i386_darwin_dr_set_addr, i386_darwin_get_addr)
10059 i386_darwin_get_status, i386_darwin_get_control):
10060 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
10061
d8a5d6ee
JB
100622012-03-13 Joel Brobecker <brobecker@adacore.com>
10063
10064 * ax-gdb.c (gen_usual_unary): Remove special handling of
10065 enum and bool types.
10066
af381b8c
JB
100672012-03-13 Joel Brobecker <brobecker@adacore.com>
10068
10069 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
10070
786c562f
JB
100712012-03-13 Joel Brobecker <brobecker@adacore.com>
10072
10073 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
10074
e3ebf1bb
JB
100752012-03-13 Chris January <chris.january@allinea.com>
10076
10077 * aix-thread.c (fill_sprs): Store the floating point registers
10078 at the correct offsets into vals.
10079
c5b7e1cb
DE
100802012-03-13 Doug Evans <dje@google.com>
10081
16899756
DE
10082 * NEWS: Mention symbol-reloading has been deleted.
10083 * symfile.c (symbol_reloading): Delete.
10084 (show_symbol_reloading): Delete.
10085 (_initialize_symfile): Delete set/show symbol-reloading.
10086
c5b7e1cb
DE
10087 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
10088 read_in_chain until we have successfully read it in.
10089 (load_full_comp_unit): Ditto.
10090 (read_signatured_type): Add comment.
10091
46cb6474
JB
100922012-03-13 Chris January <chris.january@allinea.com>
10093
10094 * stabsread.c (fix_common_block): Change type of valu argument
10095 to CORE_ADDR.
10096
76219d77
JB
100972012-03-13 Chris January <chris.january@allinea.com>
10098
10099 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
10100 instruction.
10101
87b0bb13
JK
101022012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10103
10104 * common/linux-procfs.c (linux_proc_get_int): New, from
10105 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
10106 field.
10107 (linux_proc_get_tgid): Only call linux_proc_get_int.
10108 (linux_proc_get_tracerpid): New.
10109 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
10110 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
10111 linux_proc_pid_has_state.
10112 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
10113 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10114 (linux_ptrace_attach_warnings): New.
10115 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10116 New declaration.
10117 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10118 (linux_nat_attach): New variables ex, buffer, message and message_s.
10119 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10120
5f572dec
JK
101212012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
10122
10123 * Makefile.in (linux-ptrace.o): New.
10124 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10125 from linux-nat.c.
10126 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10127 * common/linux-ptrace.c: New file.
10128 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10129 * config/arm/linux.mh: Likewise.
10130 * config/i386/linux.mh: Likewise.
10131 * config/i386/linux64.mh: Likewise.
10132 * config/ia64/linux.mh: Likewise.
10133 * config/m32r/linux.mh: Likewise.
10134 * config/m68k/linux.mh: Likewise.
10135 * config/mips/linux.mh: Likewise.
10136 * config/pa/linux.mh: Likewise.
10137 * config/powerpc/linux.mh: Likewise.
10138 * config/powerpc/ppc64-linux.mh: Likewise.
10139 * config/powerpc/spu-linux.mh: Likewise.
10140 * config/s390/s390.mh: Likewise.
10141 * config/sparc/linux.mh: Likewise.
10142 * config/sparc/linux64.mh: Likewise.
10143 * config/xtensa/linux.mh: Likewise.
10144 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10145 common/linux-procfs.c.
10146 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10147
44f238bb
PA
101482012-03-13 Hui Zhu <teawater@gmail.com>
10149 Pedro Alves <palves@redhat.com>
10150
10151 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10152 CREATE_BREAKPOINT_FLAGS_INSERTED.
10153 (create_breakpoint_sal, create_breakpoints_sal)
10154 (base_breakpoint_create_breakpoints_sal)
10155 (tracepoint_create_breakpoints_sal)
10156 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10157 down.
10158 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10159 (ftrace_command, strace_command): Adjust.
10160 (create_tracepoint_from_upload): Pass
10161 CREATE_BREAKPOINT_FLAGS_INSERTED.
10162 * breakpoint.h (enum breakpoint_create_flags): New.
10163 (create_breakpoint): New flags parameter.
10164 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10165 * python/py-breakpoint.c (bppy_init): Adjust.
10166 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10167 * spu-tdep.c (spu_catch_start): Adjust.
10168
1e51243a
PA
101692012-03-13 Pedro Alves <palves@redhat.com>
10170 Hui Zhu <teawater@gmail.com>
10171 Yao Qi <yao@codesourcery.com>
10172
10173 * remote.c (struct remote_state): New field `starting_up'.
10174 (remote_start_remote): Set and clear it.
10175 (remote_can_download_tracepoint): If starting up, return false.
10176
fa3064dd
YQ
101772012-03-13 Yao Qi <yao@codesourcery.com>
10178
10179 * inferior.h (struct inferior): Remove fields any_syscall_count,
10180 syscalls_counts and total_syscalls_count. Move them to new
10181 struct catch_syscall_inferior_data in breakpoint.c.
10182 * breakpoint.c: Call DEF_VEC_I(int).
10183 (struct catch_syscall_inferior_data): New.
10184 (get_catch_syscall_inferior_data): New.
10185 (catch_syscall_inferior_data_cleanup): New.
10186 (insert_catch_syscall): Update to access data in
10187 struct catch_syscall_inferior_data.
10188 (insert_catch_syscall): Likewise.
10189 (remove_catch_syscall): Likewise.
10190 (remove_catch_syscall): Likewise.
10191 (is_syscall_catchpoint_enabled): Likewise.
10192 (add_catch_command): Likewise.
10193 (_initialize_breakpoint): Register cleanup.
10194 * breakpoint.h: Removed DEF_VEC_I(int).
10195 * dwarf2loc.c: Call DEF_VEC_I(int).
10196 * mi/mi-main.c: Likewise.
10197
460fac3c
MK
101982012-03-12 Mark Kettenis <kettenis@gnu.org>
10199
10200 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10201
e1aca11e
JB
102022012-03-12 Chris January <chris.january@allinea.com>
10203
10204 * aix-thread.c (_initialize_aix_thread): Add prototype.
10205 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10206 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10207
649c7061
JB
102082012-03-12 Joel Brobecker <brobecker@adacore.com>
10209
10210 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10211 include of "amd64-nat.h".
10212
0b49e518
TT
102132012-03-12 Tom Tromey <tromey@redhat.com>
10214
10215 * buildsym.c (record_pending_block): Now static.
10216 * buildsym.h: (record_pending_block): Remove.
10217
fd24fa94
AT
102182012-03-12 Andreas Tobler <andreast@fgznet.ch>
10219
10220 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10221
ba919b58
TT
102222012-03-09 Tom Tromey <tromey@redhat.com>
10223
10224 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10225 producer_is_gxx_lt_4_6>: New fields.
10226 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10227
a48e046c
TT
102282012-03-09 Tom Tromey <tromey@redhat.com>
10229
10230 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10231
6f5e9362
JB
102322012-03-08 Joel Brobecker <brobecker@adacore.com>
10233
10234 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10235 prototype.
10236
8d037db9
JB
102372012-03-08 Joel Brobecker <brobecker@adacore.com>
10238
10239 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10240
4e841acf
JK
102412012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10242
10243 Fix -Wmissing-prototypes build.
10244 * arm-linux-nat.c (get_thread_id): Make it static.
10245 * xtensa-linux-nat.c (get_thread_id): Likewise.
10246
c6030312
JB
102472012-03-08 Joel Brobecker <brobecker@adacore.com>
10248
10249 * server.c (process_point_options): If a conditional expression
10250 is found, only print a message if remote_debug is nonzero.
10251
52323be9
LM
102522012-03-08 Luis Machado <lgustavo@codesourcery.com>
10253
10254 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10255 of internal error for unknown/unsupported types.
10256
7fe25d9b
JK
102572012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10258
10259 Fix CU relative vs. absolute DIE offsets.
10260 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10261 offset to offset_in_cu.
10262 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10263 TYPE_OFFSET.
10264 (dwarf2_fetch_die_location_block): Rename parameter offset to
10265 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10266
05e7c244
JK
102672012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10268
10269 * libunwind-frame.c: Rename to ...
10270 * ia64-libunwind-tdep.c: ... here.
10271 * libunwind-frame.h: Rename to ...
10272 * ia64-libunwind-tdep.h: ... here.
10273 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10274 ia64-libunwind-tdep.h.
10275 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10276 * README (--with-libunwind): Rename to ...
10277 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10278 * config.in: Regenerate.
10279 * configure: Regenerate.
10280 * configure.ac: New option --with-libunwind-ia64, make the
10281 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10282 Remove AC_DEFINE for HAVE_LIBUNWIND.
10283 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10284 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10285 Rename libunwind-frame in the general comment.
10286 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10287 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10288 Move forward declarations inside #ifndef. Rename libunwind-frame in
10289 the general comment.
10290 * ia64-tdep.c: Rename libunwind-frame.h #include to
10291 ia64-libunwind-tdep.h.
10292 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10293 (ia64_libunwind_descr): Rename libunwind-frame to
10294 ia64-libunwind-tdep in these function comments.
10295 * ia64-tdep.h: Rename libunwind-frame.h #include to
10296 ia64-libunwind-tdep.h.
10297 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10298 ia64-libunwind-tdep in that data comment.
10299
3755cbfd
JK
103002012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10301
10302 * libunwind-frame.h (struct frame_unwind): New declaration.
10303
d1cda5d9
JB
103042012-03-08 Joel Brobecker <brobecker@adacore.com>
10305
10306 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10307 "set breakpoint condition-evaluation" command.
10308
a0ba0aa2
TG
103092012-03-08 Tristan Gingold <gingold@adacore.com>
10310
10311 * sparc-stub.c: Move to stubs/
10312 * sh-stub.c: Likewise.
10313 * m68k-stub.c: Likewise.
10314 * m32r-stub.c: Likewise.
10315 * i386-stub.c: Likewise.
10316
7b8b6d6d
AS
103172012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10318
007cafee
AS
10319 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10320 linux_get_siginfo_type.
10321
7b8b6d6d
AS
10322 * m68klinux-nat.c: Include "gdb_proc_service.h".
10323 (PTRACE_GET_THREAD_AREA): Define.
10324 (ps_get_thread_area): New function.
10325
bba74b36
YQ
103262012-03-08 Yao Qi <yao@codesourcery.com>
10327
10328 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10329 `xsnprintf'.
10330 (remote_query_attached): Likewise.
10331 (remote_static_tracepoint_marker_at): Likewise.
10332 (remote_set_permissions): Likewise.
10333 (remote_detach_1, extended_remote_attach_1): Likewise.
10334 (send_g_packet, remote_vkill): Likewise.
10335 (extended_remote_disable_randomization): Likewise.
10336 (remote_add_target_side_condition): Likewise.
10337 (remote_insert_breakpoint): Likewise.
10338 (remote_remove_breakpoint): Likewise.
10339 (remote_insert_watchpoint): Likewise.
10340 (remote_remove_watchpoint): Likewise.
10341 (remote_insert_hw_breakpoint): Likewise.
10342 (remote_insert_hw_breakpoint): Likewise.
10343 (remote_remove_hw_breakpoint): Likewise.
10344 (remote_download_command_source): Likewise.
10345 (remote_download_tracepoint): Likewise.
10346 (remote_download_trace_state_variable): Likewise.
10347 (remote_disable_tracepoint): Likewise.
10348 (remote_trace_set_readonly_regions): Likewise.
10349 (remote_get_tracepoint_status): Likewise.
10350 (remote_trace_find): Likewise.
10351 (remote_get_trace_state_variable_value): Likewise.
10352 (remote_set_disconnected_tracing): Likewise.
10353 (remote_set_circular_trace_buffer): Likewise.
10354 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10355 (remote_use_agent): Likewise.
10356 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10357 Update callers.
10358
9b224c5e
PA
103592012-03-07 Pedro Alves <palves@redhat.com>
10360
10361 * NEWS: Mention QProgramSignals.
10362 * inferior.h (update_signals_program_target): Declare.
10363 * infrun.c: (update_signals_program_target): New.
10364 (handle_command): Update the target of the new program signals
10365 array changes.
10366 * remote.c (PACKET_QProgramSignals): New enum.
10367 (last_program_signals_packet): New global.
10368 (remote_program_signals): New.
10369 (remote_start_remote): Update the target with the program signals
10370 list.
10371 (remote_protocol_features): Add entry for QPassSignals.
10372 (remote_open_1): Free anc clear last_program_signals_packet.
10373 (init_remote_ops): Install remote_program_signals.
10374 * target.c (update_current_target): Adjust.
10375 (target_program_signals): New.
10376 * target.h (struct target_ops) <to_program_signals>: New field.
10377 (target_program_signals): Declare.
10378
74c48cbb
PA
103792012-03-07 Pedro Alves <palves@redhat.com>
10380
10381 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10382 extensions.
10383
0c13fc49
AS
103842012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10385
10386 * m68klinux-nat.c (getregs_supplies): Make static.
10387 (getfpregs_supplies): Likewise.
10388 (have_ptrace_getregs): Likewise.
10389
1281d2a3
JB
103902012-03-06 Joel Brobecker <brobecker@adacore.com>
10391
10392 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10393 in call to get_die_type_at_offset.
10394
2b03b41d
SS
103952012-03-06 Stan Shebs <stan@codesourcery.com>
10396
10397 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10398 * mi/mi-cmd-disas.c: Ditto.
10399 * mi/mi-cmd-env.c: Ditto.
10400 * mi/mi-cmd-file.c: Ditto.
10401 * mi/mi-cmd-stack.c: Ditto.
10402 * mi/mi-cmd-target.c: Ditto.
10403 * mi/mi-cmd-var.c: Ditto.
10404 * mi/mi-cmds.c: Ditto.
10405 * mi/mi-cmds.h: Ditto.
10406 * mi/mi-console.c: Ditto.
10407 * mi/mi-getopt.c: Ditto.
10408 * mi/mi-getopt.h: Ditto.
10409 * mi/mi-interp.c: Ditto.
10410 * mi/mi-main.c: Ditto.
10411 * mi/mi-out.c: Ditto.
10412 * mi/mi-parse.c: Ditto.
10413 * mi/mi-parse.h: Ditto.
10414 * mi/mi-symbol-cmds.c: Ditto.
10415
10416 * mi/mi-getopt.h: Move mi_opt struct up.
10417 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10418 return.
10419 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10420
c988ad87
TT
104212012-03-06 Tom Tromey <tromey@redhat.com>
10422
10423 * proc-service.c (ps_pglobal_lookup): Set the current program
10424 space.
10425
1b7c1b10
PA
104262012-03-06 Pedro Alves <palves@redhat.com>
10427
10428 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10429
3c182069
JB
104302012-03-05 Joel Brobecker <brobecker@adacore.com>
10431
10432 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10433
2e794194
JK
104342012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10435
10436 Code cleanup.
10437 * common/linux-osdata.c (linux_common_core_of_thread): New function
10438 comment.
10439 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10440 call by linux_common_core_of_thread.
10441 (linux_nat_core_of_thread_1): Remove.
10442 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10443 * linux-thread-db.c: Include linux-osdata.h.
10444 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10445 linux_common_core_of_thread.
10446
9f9f1f31
TT
104472012-03-05 Tom Tromey <tromey@redhat.com>
10448
10449 * value.c (value_primitive_field): Don't fetch contents for
10450 non-virtual bases.
10451
b7b189f3
TT
104522012-03-05 Tom Tromey <tromey@redhat.com>
10453
10454 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10455
05b8a789 104562012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 10457
5538f557
JB
10458 * s390-nat.c: Include "gregset.h".
10459
75528772
JK
104602012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10461
10462 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10463 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10464 (libunwind_load): New variable so_error, use it for dlerror. Try to
10465 load also LIBUNWIND_SO_7.
10466
275418ae
PA
104672012-03-05 Pedro Alves <palves@redhat.com>
10468
10469 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10470 is not NULL, and remove resulting dead code.
10471
5cbb9812
TS
104722012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10473
10474 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10475 prologue to sh_analyze_prologue.
10476 (sh_analyze_prologue): Make better use of such an upper limit, and
10477 generally be more cautious about accessing memory.
10478
541515ad
TT
104792012-03-05 Tom Tromey <tromey@redhat.com>
10480
10481 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10482 _initialize_ia64_hpux_tdep.
10483
b4d36fb8
PA
104842012-03-05 Pedro Alves <palves@redhat.com>
10485
24490249
PA
10486 PR gdb/13766
10487
b4d36fb8
PA
10488 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10489 the register state is clear, supply explicit zero, instead of
10490 marking the register unavailable.
10491
60c9a3c0
TG
104922012-03-05 Tristan Gingold <gingold@adacore.com>
10493
10494 * NEWS: Mention OpenVMS ia64 new target.
10495
696759ad
TG
104962012-03-05 Tristan Gingold <gingold@adacore.com>
10497
10498 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10499 (ia64_unw_accessors, ia64_unw_rse_accessors)
10500 (ia64_libunwind_descr): Declare.
10501 * ia64-vms-tdep.c: New file.
10502 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10503 (ia64_libunwind_descr): Make them public.
10504 * configure.tgt: Add ia64-*-*vms*.
10505 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10506 (ALLDEPFILES): Add ia64-vms-tdep.c
10507
34864976
TG
105082012-03-05 Tristan Gingold <gingold@adacore.com>
10509
169081d0
TG
10510 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10511 * remote.c (PACKET_qXfer_uib): New enum value.
10512 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10513 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10514 (_initialize_remote): Call add_packet_config_cmd for
10515 xfer:uib packet.
10516
105172012-03-05 Tristan Gingold <gingold@adacore.com>
10518
10519 * osabi.c (gdb_osabi_names): Add OpenVMS.
10520 (generic_elf_osabi_sniffer): Likewise.
10521 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 10522
6597b100
JK
105232012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 Removed unused code.
10526 * libunwind-frame.c (libunwind_frame_unwind)
10527 (libunwind_frame_base_address): Remove.
10528 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10529
87399aa1
YQ
105302012-03-04 Yao Qi <yao@codesourcery.com>
10531
10532 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10533 remove trailing new line.
10534 (agent_run_command, agent_run_command): Add _ markup.
10535 (agent_capability_check): Likewise.
10536
abf1152a
JK
105372012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10538
10539 * breakpoint.c (set_condition_evaluation_mode): Set
10540 CONDITION_EVALUATION_MODE unconditionally.
10541
5808517f
YQ
105422012-03-03 Yao Qi <yao@codesourcery.com>
10543
10544 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10545 * common/agent.h: Update declaration.
10546 * inf-child.c (inf_child_use_agent): New.
10547 (inf_child_can_use_agent): New.
10548 (inf_child_target): Initialize fields `to_use_agent'
10549 and `to_can_use_agent'.
10550 * agent.c (agent_new_objfile): New.
89b7509a 10551 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
10552 observer.
10553
10554 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10555 New.
89b7509a 10556 (linux_target_install_ops): Initialize field
5808517f
YQ
10557 `to_static_tracepoint_markers_by_strid'.
10558 * remote.c (free_current_marker): Move it to ...
10559 * tracepoint.c (free_current_marker): ... here. New.
10560 (cleanup_target_stop): New.
10561 * tracepoint.h: Declare free_current_marker.
10562 * NEWS: Add one entry about `info static-tracepoint-marker'.
10563
58b4daa5
YQ
105642012-03-03 Yao Qi <yao@codesourcery.com>
10565
10566 * common/agent.c (agent_loaded_p): New.
89b7509a 10567 (agent_look_up_symbols): New global.
58b4daa5
YQ
10568 * common/agent.h: Declare agent_loaded_p.
10569
8ffcbaaf
YQ
105702012-03-03 Yao Qi <yao@codesourcery.com>
10571
10572 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10573 (agent_capability_check, agent_capability_invalidate): New.
10574 (symbol_list): New array element.
10575 * common/agent.h (enum agent_capa): New.
10576 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10577
d1feda86
YQ
105782012-03-03 Yao Qi <yao@codesourcery.com>
10579
10580 * target.h (struct target_ops) <to_use_agent>: New field.
10581 (struct target_ops) <to_can_use_agent>: New field.
10582 (target_use_agent, target_can_use_agent): New macro.
10583 * target.c (update_current_target): Update.
10584 * remote.c: New enum `PACKET_QAgent'.
10585 (remote_protocol_features): Add a new element.
10586 (remote_use_agent, remote_can_use_agent): New.
10587 (init_remote_ops): Initialize field `can_use_agent' with
10588 remote_can_use_agent. Intiailize field `use_agent' with
10589 remote_use_agent.
10590 * common/agent.c (use_agent): New global.
10591 * common/agent.h: Declare it.
10592 * tracepoint.c (info_static_tracepoint_markers_command): Add
10593 comment.
10594 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10595 (COMMON_OBS): Add common/agent.o and agent.o
10596 (common-agent.o): New rule.
10597 * agent.c: New.
10598
2fa291ac
YQ
105992012-03-03 Yao Qi <yao@codesourcery.com>
10600
10601 * common/agent.c: New.
10602 * common/agent.h: New.
10603 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10604 AC_CHECK_HEADERS.
10605 * configure, configh.in: Regenerated.
10606
9fc05685
KB
106072012-03-02 Kevin Buettner <kevinb@redhat.com>
10608
10609 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10610 unless it exists for this architecture.
10611
a5ee536b
JB
106122012-03-02 Joel Brobecker <brobecker@adacore.com>
10613
10614 * language.h (struct language_defn): New "method" la_read_var_value.
10615 * findvar.c: #include "language.h".
10616 (default_read_var_value): Renames read_var_value. Rewrite
10617 function description.
10618 (read_var_value): New function.
10619 * value.h (default_read_var_value): Add prototype.
10620 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10621 New functions.
10622 (ada_language_defn): Add entry for la_read_var_value.
10623 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10624 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10625 language_defn structures to add entry for new la_read_var_value
10626 field.
10627
f59f708a
PA
106282012-03-02 Tom Tromey <tromey@redhat.com>
10629 Pedro Alves <palves@redhat.com>
10630
10631 PR breakpoints/13776:
10632 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10633 breakpoints.
10634 (delete_longjmp_breakpoint_at_next_stop): New.
10635 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10636 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10637 before deleting the inferior. Add comments.
10638 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10639 breakpoints immediately, but only on next stop. Move that code
10640 next to where we mark other breakpoints for deletion.
10641
44099a67
JB
106422012-03-02 Joel Brobecker <brobecker@adacore.com>
10643
10644 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10645 marker.
10646 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10647 violation.
10648
2a2ef594
PA
106492012-03-02 Pedro Alves <palves@redhat.com>
10650
10651 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10652
b261e0c5
UW
106532012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10654
10655 Fix -Wmissing-prototypes build.
10656 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10657 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10658 (gdbsim_has_memory): Likewise.
10659
a95babbf
YQ
106602012-03-02 Yao Qi <yao@codesourcery.com>
10661
10662 Fix -Wmissing-prototypes build.
10663 * charset.c (phony_iconv_open): Make static.
10664 (phony_iconv_close, phony_iconv): Likewise.
10665 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10666 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10667 prototype.
10668 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10669 * ser-mingw.c (create_select_thread): Make static.
10670 * windows-termcap.c (tgetent): New prototype.
10671 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10672
d603d4b3
JK
106732012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10674
10675 Fix -Wmissing-prototypes build.
10676 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10677 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10678 (_initialize_loadable): New prototypes.
10679
7fb3ad1f
DE
106802012-03-02 Doug Evans <dje@google.com>
10681
10682 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10683 abbrev table, read_comp_unit will do it.
10684
693be288
JK
106852012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10686
10687 Fix -Wmissing-prototypes build.
10688 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10689 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10690 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10691 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10692 (_initialize_arm_symbian_tdep): New prototype.
10693 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10694 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10695 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10696 static.
10697 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10698 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10699 prototype.
10700 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10701 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10702 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10703 static.
10704 * moxie-tdep.c (moxie_process_record): Likewise.
10705 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10706 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10707 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10708 (_initialize_rl78_tdep): New prototype.
10709 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10710 (_initialize_rx_tdep): New prototype.
10711 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10712 (_initialize_darwin_solib): New prototype.
10713 * solib-spu.c: Include solib-spu.h.
10714 (_initialize_spu_solib): New prototype.
10715 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10716 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10717 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10718 (tic6x_software_single_step): Make it static.
10719 (_initialize_tic6x_tdep): New prototype.
10720
638234e5
JK
107212012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10722
10723 Fix -Wmissing-prototypes build.
10724 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10725 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10726
f4a6f16d
JK
107272012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10728
10729 Fix -Wmissing-prototypes build.
10730 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10731 (frv_have_stopped_data_address): Remove.
10732
04dcf5fa
JK
107332012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10734
10735 Fix -Wmissing-prototypes build.
10736 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10737 * sh-tdep.c: Include sh64-tdep.h.
10738 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10739 * sh64-tdep.c: Include sh64-tdep.h.
10740 * sh64-tdep.h: New file.
10741
19080931
MR
107422012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10743
10744 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10745
9aac7884
MR
107462012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10747
10748 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10749 sp_regnum once the gdbarch_init_osabi hook has been called.
10750
a385295e
MR
107512012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10752
10753 * mips-tdep.c (mips32_bc1_pc): New function.
10754 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10755 BPOSGE32 and BPOSGE64 instructions.
10756 (deal_with_atomic_sequence): Likewise.
10757 (mips32_instruction_has_delay_slot): Likewise.
10758
1faeff08 107592012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
10760 Chris Dearman <chris@mips.com>
10761 Maciej W. Rozycki <macro@codesourcery.com>
10762 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
10763
10764 * features/mips-dsp.xml: New file.
10765 * features/mips64-dsp.xml: New file.
10766 * features/mips-dsp-linux.xml: New file.
10767 * features/mips64-dsp-linux.xml: New file.
10768 * features/Makefile (WHICH): Add mips-dsp-linux and
10769 mips64-dsp-linux.
10770 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10771 * features/mips-dsp-linux.c: New file.
10772 * features/mips64-dsp-linux.c: New file.
10773 * regformats/mips-dsp-linux.dat: New file.
10774 * regformats/mips64-dsp-linux.dat: New file.
10775 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10776 registers.
10777 (mips64_linux_register_addr): Likewise.
10778 (mips64_linux_regsets_fetch_registers): Likewise.
10779 (mips64_linux_regsets_store_registers): Likewise.
10780 (mips64_linux_fetch_registers): Update call to
10781 mips64_linux_regsets_fetch_registers.
10782 (mips64_linux_store_registers): Update call to
10783 mips64_linux_regsets_store_registers.
10784 (mips_linux_read_description): Probe for DSP registers.
10785 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10786 and initialize_tdesc_mips64_dsp_linux.
10787 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10788 Remove padding of no longer used embedded register slots.
10789 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10790 (MIPS_RESTART_REGNUM): Redefine enum value.
10791 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10792 strings.
10793 (mips_tx39_reg_names): Likewise.
10794 (mips_linux_reg_names): New array of register names for Linux
10795 targets.
10796 (mips_register_name): Check for a null pointer in
10797 mips_processor_reg_names and return an empty string.
10798 (mips_register_type): Exclude embedded registers for the IRIX
10799 and Linux ABIs.
10800 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10801 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10802 DSP registers.
10803 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10804 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10805 (mips_gdbarch_init): Likewise. Initialize internal register
10806 indices for the Linux ABI. Use dynamic numbers to refer to
10807 registers, as applicable, while parsing the target description.
10808 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10809
263689d8
JB
108102012-03-01 Joel Brobecker <brobecker@adacore.com>
10811
10812 * frame.h (read_frame_register_unsigned): Fix typo in function
10813 description.
10814
f3b4f45c
PA
108152012-03-01 Pedro Alves <palves@redhat.com>
10816
10817 * jit-reader.in [!__cplusplus]
10818 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10819
b03a2011
PA
108202012-03-01 Pedro Alves <palves@redhat.com>
10821
10822 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10823 * configure: Regenerate.
10824
70221824
PA
108252012-03-01 Pedro Alves <palves@redhat.com>
10826
10827 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10828 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10829 (ftrace_command, strace_command): Make static.
10830 * d-lang.c (_initialize_d_language): Declare.
10831 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10832 * dwarf2loc.c (_initialize_dwarf2loc):
10833 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10834 * exec.c (exec_get_section_table): Make static.
10835 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10836 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10837 * inferior.c (remove_inferior_command, add_inferior_command)
10838 (clone_inferior_command): Make static.
10839 * linux-nat.c (linux_nat_thread_address_space)
10840 (linux_nat_core_of_thread): Make static.
10841 * linux-tdep.c (_initialize_linux_tdep): Declare.
10842 * objc-lang.c (_initialize_objc_lang): Declare.
10843 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10844 Make static.
10845 (_initialize_opencl_language): Declare.
10846 * record.c (_initialize_record): Declare.
10847 * remote.c (demand_private_info, remote_get_tib_address)
10848 (remote_supports_cond_tracepoints)
10849 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10850 Make static.
10851 * skip.c (_initialize_step_skip): Declare.
10852 * symtab.c (skip_prologue_using_lineinfo): Make static.
10853 * tracepoint.c (delete_trace_state_variable)
10854 (trace_variable_command, delete_trace_variable_command)
10855 (get_uploaded_tsv, find_matching_tracepoint_location)
10856 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10857 Make static.
10858 * value.c (pack_unsigned_long): Make static.
10859 * varobj.c (varobj_ensure_python_env): Make static.
10860 * windows-tdep.c (_initialize_windows_tdep): Declare.
10861 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10862
33fbcbee
PA
108632012-03-01 Pedro Alves <palves@redhat.com>
10864
10865 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10866 gdbarch parameter.
10867 (linux_init_abi): Install it as has_shared_address_space gdbarch
10868 callback.
10869
44d0cd3b
PA
108702012-03-01 Pedro Alves <palves@redhat.com>
10871
10872 * observer.c (observer_test_first_notification_function)
10873 (observer_test_second_notification_function)
10874 (observer_test_third_notification_function): Add declarations.
10875
ed01b82c
PA
108762012-03-01 Pedro Alves <palves@redhat.com>
10877
10878 * common/signals.c (default_target_signal_to_host)
10879 (default_target_signal_from_host): Move ...
10880 * arch-utils.c: ... here.
10881 * arch-utils.h (default_target_signal_to_host)
10882 (default_target_signal_from_host): Declare.
10883
10884 * common/signals.c (target_signal_from_command): Move ...
10885 * infrun.c: ... here.
10886 * inferior.h (target_signal_from_command): Declare.
10887 * target.h (target_signal_from_command)
10888 (default_target_signal_from_host, default_target_signal_to_host):
10889 Delete declarations.
10890
10891 * common/signals.c (_initialize_signals): Delete.
10892
c9b87335
PA
108932012-03-01 Pedro Alves <palves@redhat.com>
10894
10895 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10896 both __cplusplus and !__cplusplus.
10897
9340a6c0
PA
108982012-03-01 Pedro Alves <palves@redhat.com>
10899
10900 * psymtab.c (find_and_open_source): Delete declaration.
10901 * source.c (find_and_open_source): Move comment ...
10902 * source.h (find_and_open_source): ... to this new declaration.
10903
e451c4a1
PA
109042012-03-01 Pedro Alves <palves@redhat.com>
10905
10906 * inline-frame.c: Include inline-frame.h.
10907
983fb104
PA
109082012-03-01 Pedro Alves <palves@redhat.com>
10909
10910 * tui/tui-data.c (set_gen_win_origin): Delete.
10911 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10912 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10913
5fbce5df
PA
109142012-03-01 Pedro Alves <palves@redhat.com>
10915
10916 * remote.c (encode_actions): Delete declaration.
10917 * tracepoint.c (encode_actions): Make extern.
10918 * tracepoint.h (encode_actions): Declare.
10919
49a8461d
PA
109202012-03-01 Pedro Alves <palves@redhat.com>
10921
10922 * python/py-breakpoint.c: Include python.h.
10923 * python/py-continueevent.c (create_continue_event_object): Make
10924 static.
10925 * python/py-lazy-string.c (stpy_get_type): Make static.
10926 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10927 Make static.
10928 * python/py-utils.c (unicode_to_target_python_string): Make
10929 static.
10930 * python/py-value.c: Include python.h.
10931
9079102f
PA
109322012-03-01 Pedro Alves <palves@redhat.com>
10933
10934 * inferior.c (delete_threads_of_inferior): Delete.
10935
a298c5e8
PA
109362012-03-01 Pedro Alves <palves@redhat.com>
10937
10938 Import fallback definitions from glibc.
10939
10940 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10941 ps_prochandle): Forward declare.
10942 (ps_err_e): Use glibc's comments.
10943 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10944 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10945 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10946 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10947 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10948 (struct ps_prochandle): Adjust comment.
10949
e3084549
PA
109502012-03-01 Pedro Alves <palves@redhat.com>
10951
10952 * ada-lang.c (ada_modulus_from_name): Delete.
10953 * ada-lex.l (lexer_init): Make static.
10954
ad5f7d6e
PA
109552012-03-01 Pedro Alves <palves@redhat.com>
10956
10957 PR gdb/13767
10958
10959 * frame.c (read_frame_register_unsigned): New.
10960 * frame.h (read_frame_register_unsigned): Declare.
10961 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10962 Handle it.
10963 (print_i387_control_word): New parameter `control_p'. Handle it.
10964 (i387_print_float_info): Handle unavailable float registers.
10965
e0a4d108
KS
109662012-03-01 Keith Seitz <keiths@redhat.com>
10967
10968 * linespec.c (decode_line_2): Sort the list of methods
10969 alphabetically before presenting the user with a selection
10970 menu.
10971
122d1940
DE
109722012-03-01 Doug Evans <dje@google.com>
10973
10974 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10975 has_namespace_info.
10976 (dwarf2_read_abbrevs): Remove corresponding initialization.
10977
7d74f244
DE
109782012-03-01 Scott J. Goldman <scottjg@vmware.com>
10979
10980 * NEWS: Mention new python command class gdb.COMMAND_USER.
10981 * cli/cli-cmds.c (show_user): Print error when used on a python
10982 command.
10983 (init_cli_cmds): Update documentation strings for "show user" and
10984 "set/show max-user-call-depth" to clarify that it does not apply to
10985 python commands.
10986 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10987 error check.
10988 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10989 gdb python api.
10990 * top.c (execute_command): Only execute a user-defined command as a
10991 legacy macro if c->user_commands is set.
10992
e88acd96
TT
109932012-03-01 Tom Tromey <tromey@redhat.com>
10994
10995 * valprint.h (struct generic_val_print_decorations): New.
10996 (generic_val_print): Declare.
10997 * valprint.c (generic_val_print): New function.
10998 * p-valprint.c (p_decorations): New global.
10999 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
11000 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
11001 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
11002 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
11003 * m2-valprint.c (m2_decorations): New global.
11004 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
11005 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
11006 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
11007 TYPE_CODE_ERROR>: Call generic_val_print.
11008 * f-valprint.c (f_decorations): New global.
11009 (f_val_print): Use print_function_pointer_address.
11010 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
11011 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
11012 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
11013 generic_val_print.
11014 * c-valprint.c (c_decorations): New global.
11015 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
11016 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
11017 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
11018 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
11019 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
11020 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
11021 case.
11022
d3eab38a
TT
110232012-03-01 Tom Tromey <tromey@redhat.com>
11024
11025 * valprint.c (val_print): Update.
11026 * p-valprint (pascal_val_print): Return void.
11027 * p-lang.h (pascal_val_print): Return void.
11028 * m2-valprint.c (m2_val_print): Return void.
11029 * m2-lang.h (m2_val_print): Return void.
11030 * language.h (struct language_defn) <la_val_print>: Return void.
11031 * language.c (unk_lang_val_print): Return void.
11032 * jv-valprint.c (java_val_print): Return void.
11033 * jv-lang.h (java_val_print): Return void.
11034 * f-valprint.c (f_val_print): Return void.
11035 * f-lang.h (f_val_print): Return void.
11036 * d-valprint.c (d_val_print): Return void.
11037 (dynamic_array_type): Update.
11038 * d-lang.h (d_val_print): Return void.
11039 * c-valprint.c (c_val_print): Return void.
11040 * c-lang.h (c_val_print): Return void.
11041 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
11042 void.
11043 * ada-lang.h (ada_val_print): Return void.
11044
35c0084b
TT
110452012-03-01 Tom Tromey <tromey@redhat.com>
11046
11047 * value.h (val_print): Return void.
11048 * valprint.c (val_print): Return void.
11049
a1f5dd1b
TT
110502012-03-01 Tom Tromey <tromey@redhat.com>
11051
11052 * value.h (common_val_print): Return void.
11053 * valprint.c (common_val_print): Return void.
11054
8e069a98
TT
110552012-03-01 Tom Tromey <tromey@redhat.com>
11056
11057 * value.h (value_print): Return void.
11058 * valprint.c (value_print): Return void.
11059 * p-valprint.c (pascal_value_print): Return void.
11060 * p-lang.h (pascal_value_print): Return void.
11061 * language.h (struct language_defn) <la_value_print>: Return
11062 void.
11063 * language.c (unk_lang_value_print): Return void.
11064 * jv-valprint.c (java_value_print): Return void.
11065 * jv-lang.h (java_value_print): Return void.
11066 * f-valprint.c (c_value_print): Don't declare.
11067 Include c-lang.h.
11068 * c-valprint.c (c_value_print): Return void.
11069 * c-lang.h (c_value_print): Return void.
11070 * ada-valprint.c (ada_value_print): Return void.
11071 * ada-lang.h (ada_value_print): Return void.
11072
be335936
TT
110732012-03-01 Tom Tromey <tromey@redhat.com>
11074
11075 * value.c (value_primitive_field): Handle virtual base classes.
11076
b0db66a7
TT
110772012-03-01 Tom Tromey <tromey@redhat.com>
11078
11079 * gdbtypes.h (struct vbase): Remove.
11080
132c57b4
TT
110812012-03-01 Tom Tromey <tromey@redhat.com>
11082
11083 * c-valprint.c (print_function_pointer_address): Move...
11084 * valprint.c: ... here. Make non-static.
11085 * m2-valprint.c (print_function_pointer_address): Remove.
11086 * valprint.h (print_function_pointer_address): Declare.
11087
e41eec66
JB
110882012-03-01 Joel Brobecker <brobecker@adacore.com>
11089
11090 * NEWS: Document the fact that one can provide a condition when
11091 creating an Ada exception catchpoint.
11092
19c37f24
TT
110932012-03-01 Tom Tromey <tromey@redhat.com>
11094
11095 * valprint.c (val_print_type_code_flags): Fix placement of
11096 trailing brace.
11097
f0fed3a3
JB
110982012-03-01 Joel Brobecker <brobecker@adacore.com>
11099
11100 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
11101 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
11102 environment variable before calling update-copyright.
11103
8ba85d85
JB
111042012-03-01 Joel Brobecker <brobecker@adacore.com>
11105
11106 * gnulib/extra/update-copyright: Update to the latest from
11107 gnulib's git repository.
11108 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
11109 variable to 2 instead of 1.
11110
8219b1e8
JB
111112012-02-29 Joel Brobecker <brobecker@adacore.com>
11112
11113 * varobj.c (c_value_of_variable): Remove dead code.
11114
718cb7da
JB
111152012-02-29 Joel Brobecker <brobecker@adacore.com>
11116
11117 * ada-lex.p (processId): Do not modify already encoded IDs.
11118 Update function documentation.
11119
739593e0
JB
111202012-02-29 Joel Brobecker <brobecker@adacore.com>
11121
11122 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11123 "name" with "struct symbol *name_sym".
11124 * ada-exp.y (write_var_or_type): Update call to
11125 ada_find_renaming_symbol.
11126 "name" with "struct symbol *name_sym". Adjust Implementation
11127 accordingly. Adjust the function documentation.
11128
852dff6c
JB
111292012-02-29 Joel Brobecker <brobecker@adacore.com>
11130
11131 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11132 * ada-lang.c (ada_find_any_type): Add advance declaration.
11133 Make static. Replace ada_find_any_symbol by
11134 ada_find_any_type_symbol.
11135 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11136 Improve function description. Make static.
11137 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11138 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11139
1b611343
JB
111402012-02-29 Joel Brobecker <brobecker@adacore.com>
11141
11142 * ada-lang.c (struct tag_args): Delete.
11143 (ada_get_tsd_type): Function body moved up in source file.
11144 (ada_tag_name_1, ada_tag_name_2): Delete.
11145 (ada_get_tsd_from_tag): New function.
11146 (ada_tag_name_from_tsd): New function.
11147 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11148 to determine the tag name.
11149
41246937
JB
111502012-02-29 Joel Brobecker <brobecker@adacore.com>
11151
11152 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11153 declaration.
11154 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11155 function.
11156
ffde82bf
JB
111572012-02-29 Joel Brobecker <brobecker@adacore.com>
11158
11159 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11160
2ad01556
JB
111612012-02-29 Joel Brobecker <brobecker@adacore.com>
11162
11163 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11164 full searches.
11165
99b1c762
JB
111662012-02-29 Joel Brobecker <brobecker@adacore.com>
11167
11168 * ada-lang.c (constrained_packed_array_type): If there is a
11169 parallel XA type, use it to determine the array index type.
11170
2d4a02ee
JB
111712012-02-29 Joel Brobecker <brobecker@adacore.com>
11172
11173 * ada-valprint.c (ada_val_print_1): If our value is a reference
11174 to an array descriptor, dereference it before converting it
11175 to a simple array.
11176
c48db5ca
JB
111772012-02-29 Joel Brobecker <brobecker@adacore.com>
11178
11179 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11180 creating fixed value.
11181 (ada_value_ind, ada_coerce_ref, assign_component)
11182 (ada_evaluate_subexp): Remove call to unwrap_value before
11183 call to ada_to_fixed_value.
11184
2e6fda7d
JB
111852012-02-29 Joel Brobecker <brobecker@adacore.com>
11186
11187 * ada-lang.c (to_fixed_array_type): Set result's type name.
11188
5845583d
JB
111892012-02-29 Joel Brobecker <brobecker@adacore.com>
11190
11191 * ada-lang.c (catch_ada_exception_command_split): Add new
11192 argument cond_string. Add support for condition at end of
11193 "catch exception" commands.
11194 (ada_decode_exception_location): Add new argument cond_string.
11195 Update call to catch_ada_exception_command_split.
11196 (create_ada_exception_catchpoint): Add new argument cond_string.
11197 Set the breakpoint condition if needed.
11198 (catch_ada_exception_command): Update call to
11199 ada_decode_exception_location.
11200 (ada_decode_assert_location): Add function documentation.
11201 Add support for condition at end of "catch assert" command.
11202 (catch_assert_command): Update calls to ada_decode_assert_location
11203 and create_ada_exception_catchpoint.
11204
9a7f938f
JK
112052012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11206
11207 Fix disp-step-syscall.exp: fork: single step over fork.
11208 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11209 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11210 comment, change parameters gdbarch and ptid to regcache. Remove
11211 parameter regcache, initialize gdbarch from regcache here.
11212 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11213 New functions.
11214 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11215 instead.
11216 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11217 'syscall'. Make the 'int' check more strict.
11218
ffdf6de5
JK
112192012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11220
11221 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11222 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11223 (i386_linux_intx80_sysenter_syscall_record): ... here.
11224 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11225 Use the renamed function name.
11226
c70a6932
JK
112272012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11228
11229 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11230 * breakpoint.c (until_break_command): Likewise.
11231 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11232 * infcall.c (call_function_by_hand): Likewise.
11233 * infcmd.c (finish_forward): Likewise.
11234 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11235
05b8a789 112362012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 11237
d4cd3da9
JB
11238 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11239 avoid variable assignments inside condition.
11240
6425366c
JK
112412012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11242
11243 Fix static analysis issue found by cppcheck.
11244 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11245 uninitialized BUF for size 2.
11246
c8cef75f 112472012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
11248 Nathan Froyd <froydnj@codesourcery.com>
11249 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
11250
11251 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11252 (mips16_instruction_has_delay_slot): Likewise.
11253 (mips_segment_boundary): Likewise.
11254 (mips_adjust_breakpoint_address): Likewise.
11255 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11256
473347ad 112572012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 11258 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
11259
11260 * infrun.c (handle_inferior_event): Don't proceed through
11261 shared library trampolines if stepping at the machine
11262 instruction level.
11263
cf233303
MR
112642012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11265
11266 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11267 too.
11268
cb2cf4ce
TS
112692012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11270
11271 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11272 (sh_stub_unwind_sniffer): New functions.
11273 (sh_stub_unwind): New variable.
11274 (sh_gdbarch_init): Wire everything.
11275
644cebc9
PA
112762012-02-27 Pedro Alves <palves@redhat.com>
11277
11278 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11279 (linux_nat_post_attach_wait): Adjust to use
11280 linux_proc_pid_is_stopped.
11281 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11282 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11283 based on pid_is_stopped from both linux-nat.c and
11284 gdbserver/linux-low.c, and renamed.
11285
283002cf
MR
112862012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11287
11288 * remote.c (remote_watchpoint_addr_within_range): New function.
11289 (init_remote_ops): Use it.
11290
9b3e86b1
MR
112912012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11292
11293 * target.h (target_watchpoint_addr_within_range): Document macro.
11294
e36930bb
PA
112952012-02-24 Pedro Alves <palves@redhat.com>
11296
11297 * stack.c (set_last_displayed_sal): Issue internal_error instead
11298 of warning, and issue it after clearing the last displayed sal.
11299
883bc8d1
PA
113002012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11301 Pedro Alves <palves@redhat.com>
11302
11303 * breakpoint.c (until_break_command): Install breakpoints after
11304 all frame manipulations.
11305
b775012e
LM
113062012-02-24 Luis Machado <lgustavo@codesourcery.com>
11307
11308 * remote.c (remote_supports_cond_breakpoints): New forward
11309 declaration.
11310 (remote_add_target_side_condition): New function.
11311 (remote_insert_breakpoint): Add target-side breakpoint
11312 conditional if supported.
11313 (remote_insert_hw_breakpoint): Likewise.
11314 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11315 hook.
11316
11317 * target.c (update_current_target): Inherit
11318 to_supports_evaluation_of_breakpoint_conditions.
11319 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11320
11321 * target.h (struct target_ops)
11322 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11323 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11324
11325 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11326 (condition_evaluation_both, condition_evaluation_auto,
11327 condition_evaluation_host, condition_evaluation_target,
11328 condition_evaluation_enums, condition_evaluation_mode_1,
11329 condition_evaluation_mode): New static globals.
11330 (translate_condition_evaluation_mode): New function.
11331 (breakpoint_condition_evaluation_mode): New function.
11332 (gdb_evaluates_breakpoint_condition_p): New function.
11333 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11334 (mark_breakpoint_modified): New function.
11335 (mark_breakpoint_location_modified): New function.
11336 (set_condition_evaluation_mode): New function.
11337 (show_condition_evaluation_mode): New function.
11338 (bp_location_compare_addrs): New function.
11339 (get_first_location_gte_addr): New helper function.
11340 (set_breakpoint_condition): Free condition bytecode if locations
11341 has become unconditional. Call mark_breakpoint_modified (...).
11342 (condition_command): Call update_global_location_list (1) for
11343 breakpoints.
11344 (breakpoint_xfer_memory): Use is_breakpoint (...).
11345 (is_breakpoint): New function.
11346 (parse_cond_to_aexpr): New function.
11347 (build_target_condition_list): New function.
11348 (insert_bp_location): Handle target-side conditional
11349 breakpoints and call build_target_condition_list (...).
11350 (update_inserted_breakpoint_locations): New function.
11351 (insert_breakpoint_locations): Handle target-side conditional
11352 breakpoints.
11353 (bpstat_check_breakpoint_conditions): Add comment.
11354 (bp_condition_evaluator): New function.
11355 (bp_location_condition_evaluator): New function.
11356 (print_breakpoint_location): Print information on where the condition
11357 will be evaluated.
11358 (print_one_breakpoint_location): Likewise.
11359 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11360 breakpoint location.
11361 (force_breakpoint_reinsertion): New functions.
11362 (update_global_location_list): Handle target-side breakpoint
11363 conditions.
11364 Reinsert locations that are already inserted if conditions have
11365 changed.
11366 (bp_location_dtor): Free agent expression bytecode.
11367 (disable_breakpoint): Call mark_breakpoint_modified (...).
11368 Call update_global_location_list (...) with parameter 1 for breakpoints.
11369 (disable_command): Call mark_breakpoint_location_modified (...).
11370 Call update_global_location_list (...) with parameter 1 for breakpoints.
11371 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11372 (enable_command): mark_breakpoint_location_modified (...).
11373 (_initialize_breakpoint): Update documentation and add
11374 condition-evaluation breakpoint subcommand.
11375
11376 * breakpoint.h: Include ax.h.
11377 (condition_list): New data structure.
11378 (condition_status): New enum.
11379 (bp_target_info) <cond_list>: New field.
11380 (bp_location) <condition_changed, cond_bytecode>: New fields.
11381 (is_breakpoint): New prototype.
11382
3788aec7
LM
113832012-02-24 Luis Machado <lgustavo@codesourcery.com>
11384
11385 * remote.c (remote_state) <cond_breakpoints>: New field.
11386 (PACKET_ConditionalBreakpoints): New enum.
11387 (remote_cond_breakpoint_feature): New function.
11388 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11389 (remote_supports_cond_breakpoints): New function.
11390 (_initialize_remote): Add new packet configuration for
11391 target-side conditional breakpoints.
11392
72895ff6
LM
113932012-02-24 Luis Machado <lgustavo@codesourcery.com>
11394
11395 * NEWS: Mention target-side conditional breakpoint support,
11396 new condition-evaluation breakpoint subcommand and remote
11397 packet extensions.
11398
dea2aa5f
LM
113992012-02-24 Luis Machado <lgustavo@codesourcery.com>
11400
11401 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11402 number.
11403
8a8bc27f
TS
114042012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11405
11406 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11407 (after_prologue): Remove.
11408
6b446fdf
TT
114092012-02-23 Tom Tromey <tromey@redhat.com>
11410
11411 * jv-valprint.c (java_val_print): Remove dead code.
11412
ef59abfb
TG
114132012-02-23 Tristan Gingold <gingold@adacore.com>
11414
a09130f9
PA
11415 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11416 known_tasks_element and known_tasks_length fields.
11417 (read_known_tasks_array): Change argument type. Use pointer type
11418 and number of elements from DATA. Adjust.
11419 (read_known_tasks_list): Likewise.
11420 (get_known_tasks_addr): Remove.
11421 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11422 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11423 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 11424
def166f6
JK
114252012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11426
11427 PR backtrace/13716
11428 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11429 it after set_momentary_breakpoint.
11430
aeaa2474
SA
114312012-02-22 Sterling Augustine <saugustine@google.com>
11432
11433 PR 13689:
11434 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11435
feea76c2
GB
114362012-02-22 Gary Benson <gbenson@redhat.com>
11437
11438 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11439 (find_slot_in_mapped_hash): Likewise.
11440
f06e05e0
JK
114412012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11442
11443 PR build/13638
11444 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11445 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11446 * configure: Regenerate.
11447
b54a8fd7
PA
114482012-02-21 Tristan Gingold <gingold@adacore.com>
11449 Pedro Alves <palves@redhat.com>
11450
11451 * ia64-tdep.c: Do not include libunwind-ia64.h.
11452 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11453 Include libunwind-ia64.h instead of libunwind.h.
11454 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11455 for libunwind.h existence.
11456 * configure, config.in: Regenerate.
11457
dfcee124
AG
114582012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11459
11460 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11461 instead of value_rtti_target_type.
11462 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11463 instead of value_rtti_target_type.
11464 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11465 value_rtti_target_type.
11466 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11467 (value_rtti_target_type): Rename to ...
11468 (value_rtti_indirect_type): ... here and make it indirect. Update
11469 function comment.
11470 * value.c (readjust_indirect_value_type): New function.
11471 (coerce_ref): Support for enclosing type setting for references
11472 with readjust_indirect_value_type.
11473 * value.h (readjust_value_type): New declaration.
11474 (value_rtti_target_type): Rename to ...
11475 (value_rtti_indirect_type): ... here.
11476
02568277
AG
114772012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11478
11479 * MAINTAINERS (Write After Approval): Add myself to the list.
11480
10c07b7e 114812012-02-20 Doug Evans <dje@google.com>
28ee876a 11482
d82ea6a8
DE
11483 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11484 Rename objfile_p_char parameter to objfilep.
11485 (build_objfile_section_table): Result is now void. All callers
11486 updated.
11487 * objfiles.h (struct objfile): Tweak comments, whitespace.
11488 (build_objfile_section_table): Update.
11489
28ee876a
DE
11490 * elfread.c (elf_symfile_segments): Fix warning text.
11491
24c79950
TT
114922012-02-20 Tom Tromey <tromey@redhat.com>
11493
11494 PR gdb/13498:
11495 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11496 particular set of file names once.
11497 (dw2_map_symbol_filenames): Likewise.
11498
3a9b40b6
JK
114992012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11500
11501 Code cleanup.
11502 * main.c (write_files): Remove the declaration.
11503 (external_editor_command): Move the declaration ...
11504 [GDBTK] (external_editor_command): ... here. Fix the comment.
11505
4d0795ca
TT
115062012-02-20 Tom Tromey <tromey@redhat.com>
11507
11508 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11509 extraneous block.
11510
637fd620
TG
115112012-02-20 Tristan Gingold <gingold@adacore.com>
11512
11513 * darwin-nat.h (enum darwin_msg_state): Add comments.
11514
6f124894
TG
115152012-02-20 Tristan Gingold <gingold@adacore.com>
11516
11517 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11518 value.
11519
2e6e3d9c
JB
115202012-20-18 Joel Brobecker <brobecker@adacore.com>
11521
11522 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11523 between function description and implementation.
11524
2e8265fd
TT
115252012-02-17 Tom Tromey <tromey@redhat.com>
11526
11527 PR python/12070:
11528 * python/py-event.c (event_object_getset): New global.
11529 (event_object_type): Reference it.
11530 * python/py-type.c (field_object_getset): New global.
11531 (field_object_type): Reference it.
11532 * python/python-internal.h (gdb_py_generic_dict): Declare.
11533 * python/py-utils.c (gdb_py_generic_dict): New function.
11534
8544a150 115352012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 11536
8544a150 11537 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 11538
ca193e27
TS
115392012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11540
11541 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11542 TYPE_CALLING_CONVENTION annotation.
11543
e5586183
KB
115442012-02-16 Kevin Buettner <kevinb@redhat.com>
11545
11546 * MAINTAINERS: Add rx to target ISA section.
11547 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11548 (ALLDEPFILES): Add rx-tdep.c.
11549
7dcd53a0
TT
115502012-02-16 Tom Tromey <tromey@redhat.com>
11551
11552 * symfile.c (symbol_file_add_main_1): Use inferior's
11553 symfile_flags.
11554 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11555 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11556 inferior.
11557 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11558 inferior.
11559 (follow_exec): Use inferior's symfile_flags.
11560 * inferior.h (struct inferior) <symfile_flags>: New field.
11561
ddd60447
MF
115622012-02-16 Mike Frysinger <vapier@gentoo.org>
11563
11564 PR gdb/9734:
11565 * remote-sim.c (gdbsim_create_inferior): Call error() when
11566 sim_create_inferior() fails.
11567
b0d32fb6
TG
115682012-02-16 Josh Matthews <josh@joshmatthews.net>
11569
11570 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11571
9addecb9
TT
115722012-02-16 Tom Tromey <tromey@redhat.com>
11573
11574 PR c++/13653:
11575 * thread.c (struct current_thread_cleanup) <was_removable>: New
11576 field.
11577 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11578 (make_cleanup_restore_current_thread): Initialize new field.
11579
a58b110a
KB
115802012-02-15 Kevin Buettner <kevinb@redhat.com>
11581
11582 * MAINTAINERS: Add rl78 to target ISA section.
11583 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11584 (ALLDEPFILES): Add rl78-tdep.c.
11585 * NEWS: Mention rl78 as a new target.
11586
4cb6da1c
AR
115872012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11588
11589 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11590 data.
11591 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11592
3af2590d
TT
115932012-02-15 Tom Tromey <tromey@redhat.com>
11594
11595 PR gdb/12659:
11596 * infcmd.c (registers_info): Print just the current register's
11597 name.
11598
c6910659
TT
115992012-02-15 Tom Tromey <tromey@redhat.com>
11600
11601 * python/py-symbol.c (sympy_value): Use _().
11602
7cee1e54
PA
116032012-02-15 Pedro Alves <palves@redhat.com>
11604
11605 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11606 output to be like native targets'.
11607 (remote_pid_to_str): Special case the null ptid.
11608
816338b5
SS
116092012-02-14 Stan Shebs <stan@codesourcery.com>
11610
11611 * NEWS: Mention enable count command.
11612 * breakpoint.h (struct breakpoint): New field enable_count.
11613 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11614 (enable_breakpoint): Add arg to call.
11615 (struct disp_data): New struct.
11616 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11617 (do_map_enable_once_breakpoint): Create a struct and pass it.
11618 (do_map_enable_delete_breakpoint): Ditto.
11619 (do_map_enable_count_breakpoint): New function.
11620 (enable_count_command): New function.
11621 (bpstat_stop_status): Decrement enable_count.
11622 (print_one_breakpoint_location): Report enable count.
11623 (_initialize_breakpoint): Add enable count command.
11624
c47a44f4
KB
116252012-02-14 Kevin Buettner <kevinb@redhat.com>
11626
11627 * rl78-tdep.c (reggroups.h): Include.
11628 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11629 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11630 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11631 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11632 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11633 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11634 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11635 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11636 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11637 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11638 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11639 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11640 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11641 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11642 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11643 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11644 beginning of register list.
11645 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11646 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11647 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11648 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11649 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11650 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11651 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11652 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11653 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11654 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11655 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11656 the pseudo registers. Rearrange other pseudo registers too so
11657 that the bank registers appear at the end.
11658 (rl78_register_type): Account for the fact that the byte sized
11659 bank registers are now pseudo-registers.
11660 (rl78_register_name): Rearrange the register name array. Make
11661 initial set of raw banked registers inaccessible.
11662 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11663 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11664 case for copying bytes back and forth between raw and pseudo
11665 versions of the banked registers. Update other cases to reflect
11666 the changed names.
11667 (rl78_return_value): Update to account for changed names of
11668 raw registers.
11669 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11670 rl78_register_sim_regno().
11671
e4569f1e
KB
116722012-02-14 Kevin Buettner <kevinb@redhat.com>
11673
11674 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11675 the name parameter being passed to find_pc_partial_function().
11676
7a05aae7
JK
116772012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11678
11679 * MAINTAINERS: Step down from being ia64 target maintainer.
11680
11fde611
JK
116812012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11682
11683 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11684 compilation warning.
11685
57008375
JK
116862012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11687
11688 Fix crash on loaded shlibs without loaded exec_bfd.
11689 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11690 (set_section_command): Replace exec_bfd by p->bfd.
11691
ff3c9849
TT
116922012-02-10 Tom Tromey <tromey@redhat.com>
11693
11694 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11695 when we have a C++ qualified name.
11696
db2b9fdd
PA
116972012-02-10 Pedro Alves <palves@redhat.com>
11698
11699 * inferior.c (inferior_pid_to_str): New.
11700 (print_inferior, inferior_command): Use it.
11701
12cd34f3
PA
117022012-02-10 Pedro Alves <palves@redhat.com>
11703
11704 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11705 the test CFLAGS.
11706 * configure: Regenerate.
11707
e871429d
JK
117082012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11709
11710 * linespec.c (decode_line_internal): Fix comment correctness.
11711
1916efaf
PA
117122012-02-09 Valery Khromov <valery.khromov@gmail.com>
11713
11714 PR gdb/12953
11715 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11716 * amd64bsd-nat.c: Add support for debug registers (adapted from
11717 i386bsd-nat.c).
11718 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11719 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11720 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11721 (amd64bsd_dr_get_control): New functions.
11722 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11723 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11724 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11725 watchpoints initialization.
11726 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11727
f4859d94
JK
117282012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11729
11730 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11731 flds_bnds.fields.
11732 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11733
c56a97f9
JK
117342012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11735
11736 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11737
1a119f36
JB
117382012-02-08 Joel Brobecker <brobecker@adacore.com>
11739
11740 * language.h (symbol_name_cmp_ftype): Renames
11741 symbol_name_match_p_ftype.
11742 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11743 la_get_symbol_name_match_p.
11744 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11745 ada_get_symbol_name_match_p. Update comment.
11746 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11747 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11748 Renames symbol_name_match_p. Update field type.
11749 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11750 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11751 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11752 "la_get_symbol_name_cmp" in comments.
11753 * language.c: Likewise.
11754
c71bb1cf
RO
117552012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11756
11757 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11758 %eflags offset.
11759 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11760 (amd64_sol2_gregset32_reg_offs): Likewise.
11761
4b2d20a5
TG
117622012-02-08 Joel Brobecker <brobecker@adacore.com>
11763
11764 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11765 of the returned BFD is allocated by GDB.
11766
f0823d2c
TT
117672012-02-07 Tom Tromey <tromey@redhat.com>
11768
11769 PR python/12027:
11770 * python/python-internal.h (frame_object_type): Declare.
11771 * python/py-symbol.c (sympy_needs_frame): New function.
11772 (sympy_value): New function.
11773 (symbol_object_getset): Add "needs_frame".
11774 (symbol_object_methods): Add "value".
11775 * python/py-frame.c (frame_object_type): No longer static.
11776
64e7d9dd
TT
117772012-02-07 Tom Tromey <tromey@redhat.com>
11778
11779 PR python/13599:
11780 * python/py-symbol.c (sympy_line): New function.
11781 (symbol_object_getset): Add "line".
11782
1d6b2d2b
TT
117832012-02-07 Tom Tromey <tromey@redhat.com>
11784
11785 * charset.c (find_charset_names): Check 'in' against NULL.
11786
0d5cff50
DE
117872012-02-06 Doug Evans <dje@google.com>
11788
11789 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11790 and fields.name members from char * to const char *. All uses updated.
11791 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11792 from char * to const char *. All uses updated.
11793 (type_name_no_tag): Update.
11794 (lookup_unsigned_typename, lookup_signed_typename): Update.
11795 * gdbtypes.c (type_name_no_tag): Change result type
11796 from char * to const char *. All callers updated.
11797 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11798 name parameter from char * to const char *.
11799 * symtab.h (struct cplus_specific): Change type of demangled_name
11800 member from char * to const char *. All uses updated.
11801 (struct general_symbol_info): Change type of name and
11802 mangled_lang.demangled_name members from char * to const char *.
11803 All uses updated.
11804 (symbol_get_demangled_name, symbol_natural_name): Update.
11805 (symbol_demangled_name, symbol_search_name): Update.
11806 * symtab.c (symbol_get_demangled_name): Change result type
11807 from char * to const char *. All callers updated.
11808 (symbol_natural_name, symbol_demangled_name): Ditto.
11809 (symbol_search_name): Ditto.
11810 (completion_list_add_name): Change type of symname,sym_text,
11811 text,word parameters from char * to const char *.
11812 (completion_list_objc_symbol): Change type of sym_text,
11813 text,word parameters from char * to const char *.
11814 * ada-lang.c (find_struct_field): Change type of name parameter
11815 from char * to const char *.
11816 (encoded_ordered_before): Similarly for N0,N1 parameters.
11817 (old_renaming_is_invisible): Similarly for function_name parameter.
11818 (ada_type_name): Change result type from char * to const char *.
11819 All callers updated.
11820 * ada-lang.h (ada_type_name): Update.
11821 * buildsym.c (hashname): Change type of name parameter
11822 from char * to const char *.
11823 * buildsym.h (hashname): Update.
11824 * dbxread.c (end_psymtab): Change type of include_list parameter
11825 from char ** to const char **.
11826 * dwarf2read.c (determine_prefix): Change result type
11827 from char * to const char *. All callers updated.
11828 * f-lang.c (find_common_for_function): Change type of name, funcname
11829 parameters from char * to const char *.
11830 * f-lang.c (find_common_for_function): Update.
11831 * f-valprint.c (list_all_visible_commons): Change type of funcname
11832 parameters from char * to const char *.
11833 * gdbarch.sh (static_transform_name): Change type of name parameter
11834 and result from char * to const char *.
11835 * gdbarch.c: Regenerate.
11836 * gdbarch.h: Regenerate.
11837 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11838 of name parameter from char * to const char *.
11839 * jv-lang.c (java_primitive_type_from_name): Ditto.
11840 (java_demangled_signature_length): Similarly for signature parameter.
11841 (java_demangled_signature_copy): Ditto.
11842 (java_demangle_type_signature): Ditto.
11843 * jv-lang.h (java_primitive_type_from_name): Update.
11844 (java_demangle_type_signature): Update.
11845 * objc-lang.c (specialcmp): Change type of a,b parameters
11846 from char * to const char *.
11847 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11848 from char * to const char *. All callers updated.
11849 * p-lang.h (is_pascal_string_type): Update.
11850 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11851 of name parameter from char * to const char *.
11852 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11853 * utils.c (fprintf_symbol_filtered): Ditto.
11854 * defs.h (fprintf_symbol_filtered): Update.
11855 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11856 * stabsread.h (end_psymtab): Update.
11857 * stack.c (find_frame_funname): Change type of funname parameter
11858 from char ** to const char **.
11859 * stack.h (find_frame_funname): Update.
11860 * typeprint.c (type_print): Change type of varstring parameter
11861 from char * to const char *.
11862 * value.h (type_print): Update.
11863 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11864 from char * to const char *. All callers updated.
11865 (xcoff_end_psymtab): Change type of include_list parameter
11866 from char ** to const char **. All callers updated.
11867 (swap_sym): Similarly for name parameter. All callers updated.
11868 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11869 Use xstrdup.
11870 (process_coff_symbol): Use xstrdup.
11871 * stabsread.c (stabs_method_name_from_physname): Renamed from
11872 update_method_name_from_physname. Change result type from void
11873 to char *. All callers updated.
11874 (read_member_functions): In has_destructor case, store name in objfile
11875 obstack instead of malloc space. In !has_stub case, fix mem leak.
11876
5579a92e
TT
118772012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11878
11879 * configure: Rebuild.
11880 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11881 LDFLAGS.
11882
9058f767
KB
118832012-02-03 Kevin Buettner <kevinb@redhat.com>
11884
11885 * configure.tgt (rl78-*-elf): New target.
11886 * rl78-tdep.c: New file.
11887
5b37825d
PW
118882012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11889
11890 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11891 and continue the loop. Add QUIT statement.
11892
e009ee71
TT
118932012-02-03 Tom Tromey <tromey@redhat.com>
11894
11895 PR gdb/13596:
11896 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11897 bfd_lookup_symbol_from_symtab.
11898 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11899 gdb_bfd_lookup_symbol_from_symtab.
11900
f7e44f65
JB
119012012-02-03 Joel Brobecker <brobecker@adacore.com>
11902
11903 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11904 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11905 symbol. Add assertion that sym2 is never NULL.
11906
2c02bd72
DE
119072012-02-02 Doug Evans <dje@google.com>
11908
11909 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11910 "name" parameter to const char ** from char **. All callers updated.
11911 (find_pc_partial_function): Ditto.
11912 (cache_pc_function_name): Change type to const char * from char *.
11913 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11914 (find_pc_partial_function): Update.
11915 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11916 type of "name" parameter to const char * from char *.
11917 All uses updated.
11918 * arch-utils.c (generic_in_solib_return_trampoline): Change
11919 type of "name" parameter to const char * from char *.
11920 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11921 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11922 type of "name" parameter to const char * from char *.
11923 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11924 * gdbarch.c: Regenerate.
11925 * gdbarch.h: Regenerate.
11926 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11927 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11928 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11929 type of "name" parameter to const char * from char *.
11930 * skip.c (skip_function_pc): Ditto.
11931 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11932 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11933 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11934 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11935 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11936 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11937 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11938 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11939 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11940
e886a173
PA
119412012-02-02 Pedro Alves <palves@redhat.com>
11942
11943 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11944 the current inferior has no execution. Make sure the current
11945 remote process matches gdb's current inferior.
11946
c709a7c2
TT
119472012-02-02 Tom Tromey <tromey@redhat.com>
11948
11949 PR gdb/13405:
11950 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11951 read-only memory.
11952
f149aabd
TT
119532012-02-02 Tom Tromey <tromey@redhat.com>
11954
11955 PR gdb/9307:
11956 * symtab.c (lookup_language_this): Set block_found.
11957
03bef283
TT
119582012-02-01 Tom Tromey <tromey@redhat.com>
11959
11960 PR gdb/13431:
11961 * jit.c (struct jit_inferior_data): Rewrite.
11962 (struct jit_objfile_data): New.
11963 (get_jit_objfile_data): New function.
11964 (add_objfile_entry): Update.
11965 (jit_read_descriptor): Return int. Replace descriptor_addr
11966 argument with inf_data. Update. Don't call error.
11967 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11968 descriptor here.
11969 (jit_inferior_init): Don't look up descriptor. Don't call error.
11970 (jit_reset_inferior_data_and_breakpoints)
11971 (jit_inferior_created_observer): Remove.
11972 (jit_inferior_exit_hook): Update.
11973 (jit_executable_changed_observer): Remove.
11974 (jit_event_handler): Update.
11975 (free_objfile_data): Reset inferior data if needed.
11976 (_initialize_jit): Update.
11977
f0bbc364
TT
119782012-02-01 Tom Tromey <tromey@redhat.com>
11979
11980 * jit.c (bfd_open_from_target_memory): Move higher in file.
11981
47c1316c
TG
119822012-02-01 Tristan Gingold <gingold@adacore.com>
11983
11984 * libunwind-frame.c (libunwind_load): Display message if dlopen
11985 failed.
11986
8e704927
GB
119872012-02-01 Gary Benson <gbenson@redhat.com>
11988
09c7a31f 11989 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11990 (iterate_over_symbols): Use the above.
11991 * symtab.c (iterate_over_symbols): Likewise.
11992 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11993 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11994 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11995 (iterate_name_matcher): Document return values.
11996 (collect_one_symbol): Likewise.
11997 (collect_function_symbols): Likewise.
11998 (collect_symbols): Likewise.
11999
d9680e73
TT
120002012-02-01 Tom Tromey <tromey@redhat.com>
12001
12002 * ada-lang.c (resolve_subexp): Update.
12003 (ada_lookup_symbol_list): Add 'full_search' argument.
12004 (ada_iterate_over_symbols): Pass 0 as full_search argument to
12005 ada_lookup_symbol_list.
12006 (ada_lookup_encoded_symbol): Update.
12007 (get_var_value): Update.
12008 * ada-exp.y (block_lookup): Update.
12009 (write_var_or_type): Update.
12010 (write_name_assoc): Update.
12011 * ada-lang.h (ada_lookup_symbol_list): Update.
12012
72e1143f
TT
120132012-01-31 Tom Tromey <tromey@redhat.com>
12014
12015 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
12016 comment.
12017
ab2d2ad3
DE
120182012-01-31 Doug Evans <dje@google.com>
12019
12020 * symtab.h: Remove outdated comment.
e9111bf7 12021 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 12022
bc884eba
JB
120232012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
12024
12025 Fix build error in Darwin port.
12026 * i386-darwin-nat.c: Include i386-nat.h.
12027
8fc3fc34
TT
120282012-01-30 Tom Tromey <tromey@redhat.com>
12029
12030 PR breakpoints/13568:
12031 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
12032 argument. Check for recursive includes.
12033 (dwarf_decode_macros): Create an include hash.
12034
5d853008
ME
120352012-01-30 Michael Eager <eager@eagercon.com>
12036
12037 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
12038 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 12039 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
12040 (powerpc_linux_in_plt_stub): New function.
12041 (powerpc_linux_in_dynsym_resolve_code): New function.
12042 (ppc_skip_trampoline_code): New function.
12043 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
12044 Use glibc_skip_solib_resolver.
12045
40478521
JK
120462012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
12047
12048 Code cleanup: Make 1440 bytes of data segment read-only.
12049 * arch-utils.c (endian_enum): Make it const char *const [].
12050 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
12051 Likewise.
12052 * breakpoint.c (always_inserted_enums): Likewise.
12053 * cli/cli-cmds.c (script_ext_enums): Likewise.
12054 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
12055 enumlist parameter const char *const *.
12056 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
12057 const char *const *.
12058 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
12059 parameter const char *const *.
12060 * cris-tdep.c (cris_modes): Make it const char *const [].
12061 * filesystem.c (target_file_system_kinds): Likewise.
12062 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
12063 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
12064 (can_use_displaced_stepping_enum, scheduler_enums)
12065 (exec_direction_names): Likewise.
12066 * language.c (_initialize_language): Make the type_or_range_names and
12067 case_sensitive_names variables const char *const [].
12068 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
12069 * python/python.c (python_excp_enums): Likewise.
12070 * remote.c (interrupt_sequence_modes): Likewise.
12071 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
12072 * serial.c (logbase_enums): Likewise.
12073 * sh-tdep.c (sh_cc_enum): Likewise.
12074 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
12075 Likewise.
12076 * symtab.c (multiple_symbols_modes): Likewise.
12077 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
12078 Likewise.
12079 * utils.c (internal_problem_modes): Likewise.
12080
b3b8b934
JK
120812012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
12082
12083 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
12084 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
12085 result.
12086
8c85a4e2
DE
120872012-01-27 Doug Evans <dje@google.com>
12088
12089 * configure.ac (with_python): Fix absolute path handling for win32.
12090 * configure: Regenerate.
12091
78d8b4d7
DE
120922012-01-26 Doug Evans <dje@google.com>
12093
eca864fe
DE
12094 * symtab.c: Whitespace cleanup, no code changes.
12095
7e082072
DE
12096 * symtab.c (lookup_symbol_in_language): Improve comment.
12097 (lookup_symbol_aux): Fix comment.
12098
7dc25483
DE
12099 * psymtab.c (add_psymbol_to_list): Result is now "void".
12100 * psympriv.h (add_psymbol_to_list): Update.
12101
78d8b4d7
DE
12102 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
12103
4c63965b
JK
121042012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
12105
12106 Do not open script filenames twice.
12107 * cli/cli-cmds.c (source_script_from_stream): Pass to
12108 source_python_script also STREAM.
12109 * python/py-auto-load.c (source_section_scripts): Pass to
12110 source_python_script_for_objfile also STREAM.
12111 (auto_load_objfile_script): Pass to source_python_script_for_objfile
12112 also INPUT.
12113 * python/python-internal.h (source_python_script_for_objfile): New
12114 parameter file, rename parameter file to filename.
12115 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12116 instead if !_WIN32. Update the function comment.
12117 (source_python_script, source_python_script_for_objfile)
12118 (source_python_script): New parameter file, rename parameter file to
12119 filename. Pass FILENAME to python_run_simple_file.
12120 * python/python.h (source_python_script): New parameter file, rename
12121 parameter file to filename.
12122
88f38a04
PA
121232012-01-26 Pedro Alves <palves@redhat.com>
12124
12125 * corelow.c (core_has_fake_pid): Delete.
12126 (core_close): Delete references to `core_has_fake_pid'.
12127 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12128 (core_open): Delete references to `core_has_fake_pid'.
12129 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12130 the removed global.
12131
e078317b
JB
121322012-01-26 Joel Brobecker <brobecker@adacore.com>
12133
12134 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12135 Remove language parameter from name_matcher. Adjust the comment.
12136 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12137 Remove language parameter.
12138 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12139 * linespec.c (iterate_name_matcher): Likewise.
12140 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12141 name_matcher. Adjust call accordingly.
12142 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12143 (maintenance_check_symtabs): Adjust type of parameter "fun".
12144 * psymtab.h (maintenance_check_symtabs): Likewise.
12145
74ccd7f5
JB
121462012-01-26 Joel Brobecker <brobecker@adacore.com>
12147
12148 * language.h (symbol_name_match_p_ftype): New typedef.
12149 (struct language_defn): Replace field la_symbol_name_compare
12150 by la_get_symbol_name_match_p.
12151 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12152 (ada_language_defn): Use it.
12153 * linespec.c (struct symbol_matcher_data): New type.
12154 (iterate_name_matcher): Rewrite.
12155 (iterate_over_all_matching_symtabs): Pass a pointer to
12156 a symbol_matcher_data struct to expand_symtabs_matching
12157 instead of just the lookup name.
12158 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12159 opencl-lang.c, p-lang.c, language.c: Delete field
12160 la_symbol_name_compare, and replace by NULL for new field
12161 la_get_symbol_name_match_p.
12162 * symfile.h (struct quick_symbol_functions): Update comment.
12163
5d268276
TT
121642012-01-25 Tom Tromey <tromey@redhat.com>
12165
12166 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12167 dereferencing.
12168
edcc5120
TT
121692012-01-24 Tom Tromey <tromey@redhat.com>
12170
12171 PR symtab/12406:
12172 * solib.c (update_solib_list): Update the program space's
12173 added_solibs and deleted_solibs fields.
12174 * progspace.h (struct program_space) <added_solibs,
12175 deleted_solibs>: New fields.
12176 (clear_program_space_solib_cache): Declare.
12177 * progspace.c (release_program_space): Call
12178 clear_program_space_solib_cache.
12179 (clear_program_space_solib_cache): New function.
12180 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12181 bpstat_stop_status. Use handle_solib_event.
12182 * breakpoint.c: Include gdb_regex.h.
12183 (print_solib_event): New function.
12184 (bpstat_print): Use print_solib_event.
12185 (bpstat_stop_status): Add special case for bp_shlib_event.
12186 (handle_solib_event): New function.
12187 (bpstat_what): Use handle_solib_event.
12188 (struct solib_catchpoint): New.
12189 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12190 (breakpoint_hit_catch_solib, check_status_catch_solib)
12191 (print_it_catch_solib, print_one_catch_solib)
12192 (print_mention_catch_solib, print_recreate_catch_solib): New
12193 functions.
12194 (catch_solib_breakpoint_ops): New global.
12195 (catch_load_or_unload, catch_load_command_1)
12196 (catch_unload_command_1): New functions.
12197 (internal_bkpt_check_status): Add special case for
12198 bp_shlib_event.
12199 (internal_bkpt_print_it): Use print_solib_event.
12200 (initialize_breakpoint_ops): Initialize
12201 catch_solib_breakpoint_ops.
12202 (_initialize_breakpoint): Register "catch load" and "catch
12203 unload".
12204 * breakpoint.h (handle_solib_event): Declare.
12205 * NEWS: Add entry for "catch load" and "catch unload".
12206
fa864999
TT
122072012-01-24 Tom Tromey <tromey@redhat.com>
12208
12209 * ada-lang.c: Include gdb_vecs.h.
12210 * charset.c: Include gdb_vecs.h.
12211 * tracepoint.h: Include gdb_vecs.h.
12212 * gdb_vecs.h: New file.
12213
f90263c1
TT
122142012-01-24 Pedro Alves <pedro@codesourcery.com>
12215
12216 * breakpoint.c (breakpoint_hit_catch_fork)
12217 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12218 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12219 * infrun.c (inferior_has_forked, inferior_has_vforked)
12220 (inferior_has_execd, inferior_has_called_syscall): Delete.
12221 (handle_syscall_event): Get syscall_number from the execution
12222 control state's wait status.
12223 (wait_for_inferior): Don't clear syscall_number.
12224
09ac7c10
TT
122252012-01-24 Pedro Alves <palves@redhat.com>
12226
12227 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12228 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12229 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12230 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12231 `ws' parameter.
12232 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12233 false for events other than TARGET_SIGNAL_TRAP.
12234 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12235 Add `ws' parameter.
12236 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12237 events other than TARGET_SIGNAL_TRAP.
12238 (tracepoint_breakpoint_hit): Add `ws' parameter.
12239 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12240 parameter.
12241 (bpstat_stop_status): Same.
12242 (pc_at_non_inline_function): Same.
12243 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12244 to pass the current event's waitstatus to bpstat_stop_status
12245 and pc_at_non_inline_function.
12246
86eb7e95
JK
122472012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12248
12249 Code cleanup.
12250 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12251 Update the function comment for it.
12252 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12253 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12254 for STREAM.
12255
a9b3a50f
PA
122562012-01-24 Pedro Alves <palves@redhat.com>
12257
12258 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12259 outside `bs->stop' block.
12260 (bpstat_what): Rework bp_shlib_event handling.
12261 (internal_bkpt_check_status): If the breakpoint is a
12262 bp_shlib_event, then set bs->stop and bs->print if
12263 stop_on_solib_events is set.
12264
53fe1783
GB
122652012-01-24 Gary Benson <gbenson@redhat.com>
12266
12267 Delete #if 0'd out code.
12268 * stack.c (print_frame_label_vars): Remove.
12269 (catch_info): Likewise.
12270 (_initialize_stack): Remove "info catch" command.
12271 * NEWS: Mention the above.
12272
49c62f2e
PA
122732012-01-24 Pedro Alves <palves@redhat.com>
12274
12275 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12276 it.
12277 (remote_notice_new_inferior): If the remote end doesn't support
12278 the multiprocess extensions, then the PID is fake.
12279 (add_current_inferior_and_thread): New.
12280 (remote_start_remote): Use it.
12281 (extended_remote_attach_1): Adjust.
12282 (extended_remote_create_inferior_1): Use
12283 add_current_inferior_and_thread.
12284
d0d8b0c6
JK
122852012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12286
12287 Fix watchpoints to be specific for each inferior.
12288 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12289 current_program_space.
12290 * i386-nat.c (i386_inferior_data_cleanup): New.
12291 (i386_inferior_data_get): Replace variable inf_data_local by an
12292 inferior_data call.
12293 (i386_use_watchpoints): Initialize i386_inferior_data.
12294 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12295 specific iterate_over_lwps.
12296
4403d8e9
JK
122972012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12298
12299 Fix watchpoints across inferior fork.
12300 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12301 comment for linux_nat_iterate_watchpoint_lwps.
12302 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12303 linux_nat_iterate_watchpoint_lwps.
12304 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12305 * i386-linux-nat.c (update_debug_registers_callback): Update the
12306 comment for linux_nat_iterate_watchpoint_lwps.
12307 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12308 linux_nat_iterate_watchpoint_lwps.
12309 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12310 * i386-nat.c: Include inferior.h.
12311 (dr_mirror): Remove.
12312 (i386_inferior_data, struct i386_inferior_data)
12313 (i386_inferior_data_get): New.
12314 (i386_debug_reg_state): Use i386_inferior_data_get.
12315 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12316 (i386_insert_watchpoint, i386_remove_watchpoint)
12317 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12318 (i386_remove_hw_breakpoint): New variable state, use
12319 i386_debug_reg_state instead of DR_MIRROR.
12320 * linux-nat.c (delete_lwp): New declaration.
12321 (num_lwps): Move here from downwards.
12322 (delete_lwp_cleanup): New.
12323 (linux_child_follow_fork): Create new child_lp, call
12324 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12325 PTRACE_DETACH.
12326 (num_lwps): Move upwards.
12327 (linux_nat_iterate_watchpoint_lwps): New.
12328 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12329 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12330
2992c9a7 123312012-01-24 Joel Brobecker <brobecker@adacore.com>
12332
12333 GDB 7.4 released.
12334
e360902b
PA
123352012-01-23 Pedro Alves <palves@redhat.com>
12336
12337 * top.c (caution): Rename to ...
12338 (confirm): ... this.
12339 (show_caution): Rename to ...
12340 (show_confirm): ... this.
12341 (quit_cover): Adjust.
12342 (init_main): Adjust.
12343 * top.h (caution): Rename to ...
12344 (confirm): ... this.
12345 * utils.c (internal_vproblem, defaulted_query): Adjust.
12346
050a2e1d
PA
123472012-01-23 Pedro Alves <palves@redhat.com>
12348
12349 * top.c (caution): Update comment.
12350 (execute_command): Don't consider the current value of `caution'.
12351
77a35dd8
JK
123522012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12353
12354 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12355
a71b5a38
UW
123562012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12357
12358 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12359 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12360 * target.c (target_fileio_pwrite): Remove buffer address from
12361 debug output.
12362 (target_fileio_pread): Likewise.
12363
d99bd577
UW
123642012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12365
12366 * NEWS: Document remote "info proc" and "generate-core-file".
12367
35c2fab7
UW
123682012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12369
12370 * gdbarch.sh (find_memory_regions): New callback.
12371 * gdbarch.c, gdbarch.h: Regenerate.
12372
12373 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12374 callback before falling back to target method.
12375
12376 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12377 (linux_target_install_ops): No longer install it.
12378
12379 * linux-tdep.c (linux_find_memory_regions): New function.
12380 (linux_init_abi): Install it.
12381
6432734d
UW
123822012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12383
12384 * gdbarch.sh (make_corefile_notes): New architecture callback.
12385 * gdbarch.c: Regenerate.
12386 * gdbarch.h: Likewise.
12387
12388 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12389 before target_make_corefile_notes. If NULL is returned, the
12390 target does not support core file generation.
12391
12392 * linux-nat.c: Include "linux-tdep.h".
12393 (find_signalled_thread, find_stop_signal): Remove.
12394 (linux_nat_do_thread_registers): Likewise.
12395 (struct linux_nat_corefile_thread_data): Likewise.
12396 (linux_nat_corefile_thread_callback): Likewise.
12397 (iterate_over_spus): Likewise.
12398 (struct linux_spu_corefile_data): Likewise.
12399 (linux_spu_corefile_callback): Likewise.
12400 (linux_spu_make_corefile_notes): Likewise.
12401 (linux_nat_collect_thread_registers): New function.
12402 (linux_nat_make_corefile_notes): Replace contents by call to
12403 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12404 as native-only callback.
12405
12406 * linux-tdep.h: Include "bfd.h".
12407 (struct regcache): Add forward declaration.
12408 (linux_collect_thread_registers_ftype): New typedef.
12409 (linux_make_corefile_notes): Add prototype.
12410 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12411 "regset.h", and "elf-bfd.h".
12412 (find_signalled_thread, find_stop_signal): New functions.
12413 (linux_spu_make_corefile_notes): Likewise.
12414 (linux_collect_thread_registers): Likewise.
12415 (struct linux_corefile_thread_data): New data structure.
12416 (linux_corefile_thread_callback): New funcion.
12417 (linux_make_corefile_notes): Likewise.
12418 (linux_make_corefile_notes_1): Likewise.
12419 (linux_init_abi): Install it.
12420
3030c96e
UW
124212012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12422
12423 * gdbarch.sh (info_proc): New callback.
12424 * gdbarch.c, gdbarch.h: Regenerate.
12425
12426 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12427 before falling back to the target info_proc callback.
12428
12429 * linux-nat.c: Do not include "cli/cli-utils.h".
12430 (linux_nat_info_proc): Remove.
12431 (linux_target_install_ops): No longer install it.
12432
12433 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12434 (read_mapping): New function.
12435 (linux_info_proc): Likewise.
12436 (linux_init_abi): Install it.
12437
145b16a9
UW
124382012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12439
12440 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12441 * infcmd.c: (info_proc_cmd_1): New function.
12442 (info_proc_cmd): New function, moved here from equivalent routine
12443 orignally in linux-nat.c.
12444 (info_proc_cmd_mappings): Likewise.
12445 (info_proc_cmd_stat): Likewise.
12446 (info_proc_cmd_status): Likewise.
12447 (info_proc_cmd_cwd): Likewise.
12448 (info_proc_cmd_cmdline): Likewise.
12449 (info_proc_cmd_exe): Likewise.
12450 (info_proc_cmd_all): Likewise.
12451 (_initialize_infcmd): Install "info proc" command and subcommands.
12452
12453 * target.h (struct target_ops): Add to_info_proc.
12454 (target_info_proc): Add prototype.
12455 * target.c (target_info_proc): New function.
12456
12457 * procfs.c (procfs_info_proc): Add prototype.
12458 (info_proc_cmd): Rename into ...
12459 (procfs_info_proc): ... this. Update argument types as appropriate
12460 for a to_info_proc implementation. Handle "what" argument.
12461 (procfs_target): Install procfs_info_proc.
12462 (_initialize_procfs): No longer install "info proc" command.
12463
12464 * linux-nat.c: (enum info_proc_what): Remove.
12465 (linux_nat_info_proc_cmd_1): Rename into ...
12466 (linux_nat_info_proc): ... this. Update argument types as appropriate
12467 for a to_info_proc implementation.
12468 (linux_nat_info_proc_cmd): Remove.
12469 (linux_nat_info_proc_cmd_mappings): Likewise.
12470 (linux_nat_info_proc_cmd_stat): Likewise.
12471 (linux_nat_info_proc_cmd_status): Likewise.
12472 (linux_nat_info_proc_cmd_cwd): Likewise.
12473 (linux_nat_info_proc_cmd_cmdline): Likewise.
12474 (linux_nat_info_proc_cmd_exe): Likewise.
12475 (linux_nat_info_proc_cmd_all): Likewise.
12476 (linux_target_install_ops): Install linux_nat_info_proc.
12477 (_initialize_linux_nat): No longer install "info proc" command
12478 and subcommands.
12479
b9e7b9c3
UW
124802012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12481
12482 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12483 * config.in, configure: Regenerate.
12484
12485 * target.h (struct target_ops): Add to_fileio_readlink.
12486 (target_fileio_readlink): Add prototype.
12487 * target.c (target_fileio_readlink): New function.
12488
12489 * inf-child.c: Conditionally include <sys/param.h>.
12490 (inf_child_fileio_readlink): New function.
12491 (inf_child_target): Install it.
12492
12493 * remote.c (PACKET_vFile_readlink): New enum value.
12494 (remote_hostio_readlink): New function.
12495 (init_remote_ops): Install it.
12496 (_initialize_remote): Handle vFile:readlink packet type.
12497
7313baad
UW
124982012-01-20 Pedro Alves <palves@redhat.com>
12499 Ulrich Weigand <ulrich.weigand@linaro.org>
12500
12501 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12502 * config.in, configure: Regenerate.
12503
12504 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12505 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12506 (target_fileio_open): Add prototype.
12507 (target_fileio_pwrite): Likewise.
12508 (target_fileio_pread): Likewise.
12509 (target_fileio_close): Likewise.
12510 (target_fileio_unlink): Likewise.
12511 (target_fileio_read_alloc): Likewise.
12512 (target_fileio_read_stralloc): Likewise.
12513
12514 * target.c: Include "gdb/fileio.h".
12515 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12516 (default_fileio_target): New function.
12517 (target_fileio_open): Likewise.
12518 (target_fileio_pwrite): Likewise.
12519 (target_fileio_pread): Likewise.
12520 (target_fileio_close): Likewise.
12521 (target_fileio_unlink): Likewise.
12522 (target_fileio_close_cleanup): Likewise.
12523 (target_fileio_read_alloc_1): Likewise.
12524 (target_fileio_read_alloc): Likewise.
12525 (target_fileio_read_stralloc): Likewise.
12526
12527 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12528 <fcntl.h>, and <unistd.h>.
12529 (inf_child_fileio_open_flags_to_host): New function.
12530 (inf_child_errno_to_fileio_error): Likewise.
12531 (inf_child_fileio_open): Likewise.
12532 (inf_child_fileio_pwrite): Likewise.
12533 (inf_child_fileio_pread): Likewise.
12534 (inf_child_fileio_close): Likewise.
12535 (inf_child_fileio_unlink): Likewise.
12536 (inf_child_target): Install to_fileio routines.
12537
12538 * remote.c (init_remote_ops): Install to_fileio routines.
12539
901f9912
UW
125402012-01-20 Pedro Alves <palves@redhat.com>
12541 Ulrich Weigand <ulrich.weigand@linaro.org>
12542
12543 * remote.c (remote_multi_process_p): Only check for multi-process
12544 protocol feature, do not check for extended protocol.
12545 (remote_supports_multi_process): Check for extended protocol here.
12546 (set_general_process): Likewise.
12547 (extended_remote_kill): Likewise.
12548 (remote_pid_to_str): Likewise.
12549 (remote_query_supported): Always query multiprocess mode.
12550
e714e1bf
UW
125512012-01-20 Pedro Alves <palves@redhat.com>
12552 Ulrich Weigand <ulrich.weigand@linaro.org>
12553
12554 * inferior.h (struct inferior): Add fake_pid_p.
12555 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12556 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12557 magic_null_ptid since the remote side doesn't provide a real PID.
12558
50897289
TT
125592012-01-19 Tom Tromey <tromey@redhat.com>
12560
12561 * NEWS: Combine the two Python sections.
12562
1afc2033
JK
125632012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12564
12565 * target.h (target_close): Update comment on the target's unpush state.
12566
305436e0
PA
125672012-01-19 Pedro Alves <palves@redhat.com>
12568
12569 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12570 linux_nat_async directly instead of going through the target
12571 vector.
12572 * target.c (unpush_target): Close target after unpushing it, not
12573 before.
12574
49323895
GB
125752012-01-19 Gary Benson <gbenson@redhat.com>
12576
12577 * mdebugread.c (sort_blocks): Replace integer constants with ones
12578 derived from FIRST_LOCAL_BLOCK.
12579
1db33378
PP
125802012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12581 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 PR gdb/9538
12584 * symfile.c (find_separate_debug_file): New function.
12585 (terminate_after_last_dir_separator): Likewise.
12586 (find_separate_debug_file_by_debuglink): Also try realpath.
12587 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12588 * configure: Regenerate.
12589 * config.in: Regenerate.
12590
f83d8a90
DE
125912012-01-18 Doug Evans <dje@google.com>
12592
12593 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12594 (main.o): Remove rule.
12595 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12596 (--with-sysroot): Rewrite.
12597 * configure: Regenerate.
12598 * config.in: Regenerate.
12599
2dbca4d6
SDJ
126002012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12601
12602 * parse.c (initialize_expout): New function.
12603 (reallocate_expout): Likewise.
12604 (parse_exp_in_context): Use `initialize_expout' and
12605 `reallocate_expout' when appropriate.
12606
0695b514
PA
126072012-01-18 Pedro Alves <palves@redhat.com>
12608
12609 * record.c (struct record_breakpoint, record_breakpoint_p)
12610 (record_breakpoints): New.
12611 (record_insert_breakpoint, record_remove_breakpoint): Manage
12612 record breakpoints list. Only remove breakpoints from the
12613 inferior if they had been inserted there in the first place.
12614
136e1c30
DE
126152012-01-17 Doug Evans <dje@google.com>
12616
12617 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12618 if we know we don't have a file name to look for.
12619
c0bf857d
PA
126202012-01-17 Pedro Alves <palves@redhat.com>
12621
12622 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12623 the frame's stop reason is UNWIND_UNAVAILABLE.
12624
b486de60
JK
126252012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12626
12627 Fix compilation error.
12628 * m2-exp.y (yyerror): Use ANSI C prototype.
12629
d04550a6
SDJ
126302012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12631
12632 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12633 (growbuf_by_size): Likewise.
12634 (yyerror): Likewise.
12635 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12636 (modblock): Remove variable (was #if 0'ed).
12637 (parse_number): Convert prototype from K&R to ANSI C.
12638 (yyerror): Likewise.
12639 * objc-exp.y (parse_number): Likewise.
12640 (yyerror): Likewise.
12641 (yylex): Remove #if 0'ed code.
12642 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12643 (yyerror): Likewise.
12644
4aac40c8
TT
126452012-01-16 Tom Tromey <tromey@redhat.com>
12646
12647 * NEWS: Add item.
12648 * symtab.h (compare_filenames_for_search): Declare.
12649 * symtab.c (compare_filenames_for_search): New function.
12650 (iterate_over_some_symtabs): Use it.
12651 * symfile.h (struct quick_symbol_functions)
12652 <map_symtabs_matching_filename>: Change spec.
12653 * psymtab.c (partial_map_symtabs_matching_filename): Use
12654 compare_filenames_for_search. Update for new spec.
12655 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12656 compare_filenames_for_search. Update for new spec.
12657 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12658
cafec441
TT
126592012-01-16 Tom Tromey <tromey@redhat.com>
12660
12661 PR python/13281:
12662 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12663 (struct main_type) <flag_flag_enum>: New field.
12664 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12665 * NEWS: Add entries.
12666 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12667 enums.
12668 * python/lib/gdb/printing.py (_EnumInstance): New class.
12669 (FlagEnumerationPrinter): Likewise.
12670
983af33b
SDJ
126712012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12672
12673 * breakpoint.c (create_sals_from_address_default): New function.
12674 (create_breakpoints_sal_default): Likewise.
12675 (decode_linespec_default): Likewise.
12676 (is_marker_spec): Removed.
12677 (strace_marker_p): New function.
12678 (init_breakpoint_sal): Using `strace_marker_p' instead of
12679 `is_marker_spec'.
12680 (create_breakpoint): Call method `create_sals_from_address' from
12681 breakpoint_ops, replacing code that created SALs conditionally
12682 on the type of the breakpoint. Call method `create_breakpoints_sal',
12683 replacing code that created breakpoints conditionally on the type
12684 wanted.
12685 (base_breakpoint_create_sals_from_address): New function.
12686 (base_breakpoint_create_breakpoints_sal): Likewise.
12687 (base_breakpoint_decode_linespec): Likewise.
12688 (base_breakpoint_ops): Add methods
12689 `base_breakpoint_create_sals_from_address',
12690 `base_breakpoint_create_breakpoints_sal' and
12691 `base_breakpoint_decode_linespec'.
12692 (bkpt_create_sals_from_address): New function.
12693 (bkpt_create_breakpoints_sal): Likewise.
12694 (bkpt_decode_linespec): Likewise.
12695 (tracepoint_create_sals_from_address): Likewise.
12696 (tracepoint_create_breakpoints_sal): Likewise.
12697 (tracepoint_decode_linespec): Likewise.
12698 (strace_marker_create_sals_from_address): Likewise.
12699 (strace_marker_create_breakpoints_sal): Likewise.
12700 (strace_marker_decode_linespec): Likewise.
12701 (strace_marker_breakpoint_ops): New variable.
12702 (addr_string_to_sals): Remove `marker_spec'. Call method
12703 `decode_linespec' from breakpoint_ops, replacing code that decoded
12704 an address string into a SAL. Use `strace_marker_p' instead of
12705 `marker_spec'.
12706 (strace_command): Decide whether we are dealing with a static
12707 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12708 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12709 * breakpoint.h (linespec_result, linespec_sals): New forward
12710 declarations.
12711 (breakpoint_ops) <create_sals_from_address>,
12712 <create_breakpoints_sal>, <decode_linespec>: New methods.
12713
4795f398
DE
127142012-01-14 Doug Evans <dje@google.com>
12715
12716 * NEWS: Update text for "maint set python print-stack".
12717 It is deprecated in gdb 7.4 and deleted in 7.5.
12718
ee5106fe
EZ
127192012-01-13 Eli Zaretskii <eliz@gnu.org>
12720
12721 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12722 including curses.h.
12723
b161e06f
JK
127242012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12725
12726 * configure: Regenerate.
12727 * config.in: Regenerate.
12728
85254831
KS
127292012-01-12 Keith Seitz <keiths@redhat.com>
12730
12731 PR mi/10586
12732 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12733 (ANONYMOUS_UNION_NAME): Define.
12734 (is_path_expr_parent): New function.
12735 (get_path_expr_parent): New function.
12736 (is_anonymous_child): New function.
12737 (create_child_with_value): If the child is anonymous and without
12738 a name, assign an object name to it.
12739 (c_describe_child): Use get_path_expr_parent to determine
12740 the parent expression.
12741 If there field represents an anonymous struct or union and
12742 has no name, set an appropriate display name and expression.
12743 (cplus_describe_child): Likewise.
12744
620fa63a
PA
127452012-01-12 Pedro Alves <palves@redhat.com>
12746
12747 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12748 available when %ebp is found to be zero (outermost).
12749
2efa2c79
AT
127502012-01-11 Andreas Tobler <andreast@fgznet.ch>
12751
12752 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12753 an internal gdb_static_assert.
12754 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12755
88e7d25d
TT
127562012-01-11 Tom Tromey <tromey@redhat.com>
12757
12758 PR gdb/9598:
12759 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12760 catch" and "catch throw".
12761
72384ba3
PH
127622012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12763
12764 * blockframe.c (block_innermost_frame): Start search from selected
12765 frame, if present, or otherwise the current frame.
12766
12767 * c-exp.y (variable): Update innermost_block for
12768 'block COLONCOLON NAME' clause.
12769 * m2-exp.y (variable): Ditto.
12770 * objc-exp.y (variable): Ditto.
12771
065a711f
TT
127722012-01-10 Tom Tromey <tromey@redhat.com>
12773
12774 PR python/13199:
12775 * python/python.c (finish_python_initialization): Set sys.argv.
12776
f3f5162e
DE
127772012-01-10 Doug Evans <dje@google.com>
12778
12779 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12780 "want_line_info". All callers updated.
12781 (dwarf_decode_lines_1): New function.
12782 (handle_DW_AT_stmt_list): Add function comment.
12783 New arg "want_line_info". All callers updated.
12784 (read_file_scope,read_type_unit_scope): Move comment from
12785 handle_DW_AT_stmt_list to here.
12786
9934703b
JK
127872012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12788
12789 Fix regression after libiberty/ update for GCC PR 6057 and others.
12790 * c-exp.y (operator) <OPERATOR DELETE>
12791 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12792 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12793 (make_builtin_type, make_name): New variable i, add gdb_assert.
12794 (operator) <OPERATOR NEW>: Update ARGS to 3.
12795 (operator) <OPERATOR DELETE>: Add trailing space.
12796 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12797 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12798 * cp-support.c (cp_canonicalize_string): Check NULL from
12799 cp_comp_to_string, call warning and return.
12800
06b9f45f
JK
128012012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12802
12803 Fix duplicate .o files after omitting libbfd.a.
12804 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12805 (SFILES): Add corelow.c.
12806 (COMMON_OBS): Add corelow.o.
12807 (ALLDEPFILES): Remove corelow.c.
12808 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12809 * config/alpha/alpha-osf3.mh: Likewise.
12810 * config/alpha/fbsd.mh: Likewise.
12811 * config/arm/nbsdaout.mh: Likewise.
12812 * config/arm/nbsdelf.mh: Likewise.
12813 * config/i386/i386gnu.mh: Likewise.
12814 * config/ia64/hpux.mh: Likewise.
12815 * config/ia64/linux.mh: Likewise.
12816 * config/m32r/linux.mh: Likewise.
12817 * config/m68k/linux.mh: Likewise.
12818 * config/mips/irix5.mh: Likewise.
12819 * config/mips/irix6.mh: Likewise.
12820 * config/pa/hpux.mh: Likewise.
12821 * config/pa/linux.mh: Likewise.
12822 * config/powerpc/aix.mh: Likewise.
12823 * config/sparc/linux.mh: Likewise.
12824 * config/sparc/linux64.mh: Likewise.
12825 * config/sparc/sol2.mh: Likewise.
12826 * config/vax/vax.mh: Likewise.
12827 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12828 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12829 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12830 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12831 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12832 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12833 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12834 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12835 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12836 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12837 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12838 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12839 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12840 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12841 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12842 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12843 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12844 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12845 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12846 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12847 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12848 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12849 corelow.o from gdb_target_obs.
12850 * corefile.c (core_target): Update the comment on NULL value.
12851 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12852 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12853 MATCHES. Drop YUMMY set on NULL.
12854 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12855 reclaim CORE_DATA if it is already NULL.
12856
34365054
DE
128572012-01-09 Doug Evans <dje@google.com>
12858
12859 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12860 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12861
696166a3
KS
128622012-01-09 Keith Seitz <keiths@redhat.com>
12863
12864 * breakpoint.c (wrapper.h): Don't include.
12865
8e7b59a5
KS
128662012-01-09 Keith Seitz <keiths@redhat.com>
12867
12868 * Makefile.in (SFILES): Remove wrapper.c.
12869 (HFILES_NO_SRCDIR): Remove wrapper.h.
12870 (COMMON_OBS): Remove wrapper.o.
12871 * cli/cli-interp.c: Don't inlude wrapper.h.
12872 * corelow.c: Likewise.
12873 (core_open): Replace gdb_target_find_new_threads with
12874 TRY_CATCH around target_find_new_threads.
12875 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12876 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12877 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12878 evaluate_expression.
12879 (varobj_set_value): Likewise for evaluate_expression and
12880 value_assign.
12881 (install_new_variable): Likewise for value_fetch_lazy.
12882 (adjust_value_for_child_access): Likewise for value_ind.
12883 (c_describe_child): Likewise for value_subscript and
12884 value_ind.
12885 (c_value_of_root): Likewise for evaluate_expression.
12886 * wrapper.c: Remove.
12887 * wrapper.h: Remove.
12888
1a4eeb98
DE
128892012-01-09 Doug Evans <dje@google.com>
12890
9ff913ba
DE
12891 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12892 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12893 "abfd" args with "section". All callers updated.
12894 Error checking code moved ...
12895 (error_check_comp_unit_head): ... here. New function.
12896 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12897 Delete arg "abfd". New arg "type_offset". All callers updated.
12898 (create_debug_types_hash_table): Simplify by using
12899 read_and_check_type_unit_head.
12900
1a4eeb98
DE
12901 * parser-defs.h (namecopy): Delete.
12902 * parse.c (namecopy, namecopy_size): Move into copy_name.
12903
2e6af8c0
JK
129042012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12905
12906 Partially fix duplicate .o files after omitting libbfd.a.
12907 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12908 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12909 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12910 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12911 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12912 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12913 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12914
9f2f828a
PA
129152012-01-09 Pedro Alves <palves@redhat.com>
12916
12917 * MAINTAINERS: Update my email address.
12918
4d72c0bc
DE
129192012-01-08 Doug Evans <dje@google.com>
12920
d467dd73
DE
12921 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12922 n_type_units. Rename type_comp_units to all_type_units.
12923 All uses updated.
12924 (add_signatured_type_cu_to_table): Renamed from
12925 add_signatured_type_cu_to_list. All callers updated.
12926
4d72c0bc
DE
12927 * gdbtypes.h (struct cplus_struct_type): Delete member
12928 nfn_fields_total. All uses removed.
12929
21b2bd31
DE
129302012-01-06 Doug Evans <dje@google.com>
12931
12932 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12933 to top of file.
12934 (dwarf2_find_comp_unit): Delete.
12935 (process_psymtab_comp_unit): Make result "void".
12936 Delete args buffer, info_ptr, buffer_size, and replace with
12937 "section". All callers updated.
12938 (dwarf2_build_psymtabs_hard): Simplify.
12939
bfd189b1
SDJ
129402012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12941 Thiago Jung Bauermann <bauerman@br.ibm.com>
12942
12943 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12944 before `struct gdb_exception'.
12945 * breakpoint.c (update_global_location_list_nothrow)
12946 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12947 * cp-abi.c (value_rtti_type): Likewise.
12948 * cp-support.c (cp_validate_operator): Likewise.
12949 * infrun.c (insert_exception_resume_breakpoint)
12950 (check_exception_resume, keep_going): Likewise.
12951 * mi-interp.c (mi_breakpoint_created)
12952 (mi_breakpoint_modified): Likewise.
12953 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12954 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12955 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12956
6b07635f
DE
129572012-01-05 Doug Evans <dje@google.com>
12958
0b30b85c
DE
12959 * dwarf2read.c (statement_prologue): Delete, unused.
12960
98714339
DE
12961 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12962 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12963
6b07635f
DE
12964 * dwarf2read.c (comp_unit_header): Delete, unused.
12965
761f4555
UW
129662012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12967
12968 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12969 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12970
2ca0b532
PA
129712012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12972
12973 * infrun.c (normal_stop): Don't skip calling the normal_stop
12974 observers if the thread was doing a multi-step, but stopped for
12975 some reason other than stepping.
12976
50aeff07
PA
129772012-01-05 Pedro Alves <alves.ped@gmail.com>
12978
12979 * cli/cli-decode.h: Add comments.
12980 (CMD_LIST_AMBIGUOUS): Moved to command.h
12981 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12982 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12983 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12984 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12985 (add_com, add_com_alias, add_info, add_info_alias)
12986 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12987 declarations.
12988 * command.h: Add and adjust comments.
12989 (CMD_LIST_AMBIGUOUS): Moved here.
12990 (help_cmd, help_cmd_list): Delete declarations.
12991
5953832c
DE
129922012-01-04 Doug Evans <dje@google.com>
12993
e5fe5e75
DE
12994 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12995 All callers updated.
12996 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12997 Replace all arguments with "per_cu". All callers updated.
12998
28dee7f5
DE
12999 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
13000
23745b47
DE
13001 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
13002 New arg "per_cu". All callers updated.
13003
5953832c
DE
13004 Delete #if 0'd out code.
13005 * language.c (binop_result_type): Delete.
13006 (simple_type, ordered_type, same_type, integral_type): Delete.
13007 (numeric_type, character_type, string_type, boolean_type): Delete.
13008 (float_type, structured_type): Delete.
13009 * language.h: Update.
13010
0f5b7562
TT
130112012-01-04 Tom Tromey <tromey@redhat.com>
13012
13013 * python/py-value.c (valpy_binop): Initialize 'res_val'.
13014
78218f56
JB
130152012-01-04 Joel Brobecker <brobecker@adacore.com>
13016
13017 * corefile.c (close_exec_file): Delete.
13018 (reopen_exec_file): Remove commented out code that seems related
13019 to close_exec_file, which is being deleted here.
13020 * inferior.h (close_exec_file): Delete.
13021 * fork-child.c (fork_inferior): Remove call to fork_inferior.
13022
0fcd72ba
JB
130232012-01-04 Joel Brobecker <brobecker@adacore.com>
13024
13025 * ada-lang.c: #include "cli/cli-utils.h".
13026 (get_selections): Use skip_spaces.
13027 (ada_get_next_arg): Use skip_spaces and skip_to_space.
13028 (catch_ada_exception_command_split): Use skip_spaces.
13029 (ada_decode_assert_location): Likewise.
13030
1dabb4c4
JB
130312012-01-04 Joel Brobecker <brobecker@adacore.com>
13032
13033 * linespec.c (decode_line_internal): Check for C++ or Java
13034 compound constructs only if the current language is C, C++
13035 or Java.
13036
5931a2fa
JK
130372012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
13038
13039 Revert:
13040 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13041 Joel Brobecker <brobecker@adacore.com>
13042 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13043 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13044 3 times.
13045 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13046 fall through into AT_ENTRY_POINT.
13047 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13048 DUMMY_ADDR with it.
13049 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13050 PPC_INSN_SIZE skip to 3 times.
13051
1a2da5ee
JB
130522012-01-04 Joel Brobecker <brobecker@adacore.com>
13053
13054 * linespec.c (add_minsym): Preserve function descriptors.
13055
8645ff69
UW
130562012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
13057
13058 * breakpoint.c (all_locations_are_pending): Consider locations
13059 in program spaces executing during startup pending as well.
13060
0b302171
JB
130612012-01-04 Joel Brobecker <brobecker@adacore.com>
13062
13063 Copyright year update in most files of the GDB Project.
13064
8ba098ad
JB
130652012-01-04 Joel Brobecker <brobecker@adacore.com>
13066
13067 * copyright.sh: Delete.
13068 * copyright.py: Rewrite.
13069
09c01c30
JB
130702012-01-04 Joel Brobecker <brobecker@adacore.com>
13071
13072 * gnulib/extra/update-copyright: New file, imported from gnulib.
13073
3c36c0af
JB
130742012-01-04 Joel Brobecker <brobecker@adacore.com>
13075
13076 * README (Copyright and License Notices): New section.
13077
888fe1e1
TT
130782012-01-03 Tom Tromey <tromey@redhat.com>
13079
13080 PR python/12533:
13081 * python/py-value.c (valpy_dereference, valpy_get_address
13082 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
13083 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
13084 (valpy_absolute, valpy_richcompare): Free intermediate values.
13085
6e681866
JB
130862011-01-03 Joel Brobecker <brobecker@adacore.com>
13087
13088 * ada-lang.c: Reformat the copyright notice.
13089
0cd09acb
JK
130902012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13091
13092 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
13093 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
13094 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
13095 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
13096 Revert this part of:
13097 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13098 Build gdb directly from *.o files not using libgdb.a.
13099 * Makefile.in (COMMON_OBS): Remove solib-target.o.
13100
12c3e59c
JB
131012012-01-02 Joel Brobecker <brobecker@adacore.com>
13102
13103 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
13104 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
13105 Reformat the copyright header.
13106
11bf1490
JK
131072012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13108
13109 Revert this part of:
13110 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13111 Remove the gdbtui binary.
13112 * gdb.c (main): Remove args.interpreter_p initialization.
13113 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13114 * main.h (struct captured_main_args): Remove interpreter_p.
13115
1fef196f
JB
131162012-01-02 Joel Brobecker <brobecker@adacore.com>
13117
13118 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13119
67827812
JB
131202012-01-02 Joel Brobecker <brobecker@adacore.com>
13121
13122 * top.c (print_gdb_version): Update copyright year.
13123
a4d0b831
YQ
131242012-01-02 Yao Qi <yao@codesourcery.com>
13125
13126 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13127
b5914469
JK
131282012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13129 Joel Brobecker <brobecker@adacore.com>
13130
13131 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13132 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13133 3 times.
13134 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13135 fall through into AT_ENTRY_POINT.
13136 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13137 DUMMY_ADDR with it.
13138 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13139 PPC_INSN_SIZE skip to 3 times.
13140
8da828f7
JK
131412012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13142
13143 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13144 the return value.
13145 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13146
8574e74b
JK
131472012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13148
13149 Build gdb directly from *.o files not using libgdb.a.
13150 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13151 (COMMON_OBS): Remove solib-target.o.
13152 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13153 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13154 (LIBGDB_OBS, libgdb.a): Move it above.
13155 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13156 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13157 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13158 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13159 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13160 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13161 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13162 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13163 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13164 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13165 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13166 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13167 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13168 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13169 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13170 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13171 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13172 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13173 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13174 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13175 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13176 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13177 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13178 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13179 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13180 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13181 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13182
217bff3e
JK
131832012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
13184
13185 Remove the gdbtui binary.
13186 * .gitignore (/gdbtui): Remove.
13187 * Makefile.in (TUI): Remove.
13188 (SUBDIR_TUI_OBS): Remove tui-main.o.
13189 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13190 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13191 (tui-main.o): Remove.
13192 (all_object_files): Remove tui-main.o.
13193 * NEWS: New note for the gdbtui removal.
13194 * configure: Rebuilt.
13195 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13196 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13197 CONFIG_UNINSTALL respectively.
13198 * gdb.c (main): Remove args.interpreter_p initialization.
13199 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13200 * main.h (struct captured_main_args): Remove interpreter_p.
13201 * tui/tui-main.c: Remove.
13202
9cdd5dbd
DE
132032012-01-01 Doug Evans <dje@google.com>
13204
bb5ed363
DE
13205 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13206 (dwarf2_physname, read_import_statement): Ditto.
13207 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13208 (process_structure_scope read_subroutine_type): Ditto.
13209 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13210 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13211 (dwarf2_fetch_die_location_block): Ditto.
13212 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13213
a0f42c21
DE
13214 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13215 All callers updated.
13216 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13217 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13218 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13219
2dc860c0
DE
13220 * dwarf2read.c (load_cu): Move assert to more useful location.
13221
68dc6402
DE
13222 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13223 All callers updated.
13224
9cdd5dbd
DE
13225 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13226 (dwarf2_elf_names): Minor reformat.
13227 (dwarf2_per_cu_data): Tweak comment.
13228 (dwarf2_read_section): Fix comment.
13229 (create_all_comp_units): Fix comment.
13230 (load_full_comp_unit): Fix comment.
13231 (process_full_comp_unit): Fix comment.
13232 (read_signatured_type): Fix comment.
13233
0c10e53e 13234For older changes see ChangeLog-2011.
c906108c
SS
13235\f
13236Local Variables:
13237mode: change-log
13238left-margin: 8
13239fill-column: 74
13240version-control: never
57da7796 13241coding: utf-8
c906108c 13242End:
This page took 1.976261 seconds and 4 git commands to generate.