]> Git Repo - binutils.git/blame - gdb/ChangeLog
* minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
[binutils.git] / gdb / ChangeLog
CommitLineData
c9630d9c
TT
12012-12-12 Tom Tromey <[email protected]>
2
3 * minsyms.c (lookup_solib_trampoline_symbol_by_pc): Now static.
4 * minsyms.h (lookup_solib_trampoline_symbol_by_pc): Don't
5 declare.
6
d5367fe1
JB
72012-12-18 Joel Brobecker <[email protected]>
8
9 * defs.h (enum gdb_osabi): Add GDB_OSABI_LYNXOS178.
10 * osabi.c (gdb_osabi_names): Add entry for GDB_OSABI_LYNXOS178.
11 * xcoffread.c (xcoff_get_core_n_import_files): New function.
12 (xcoff_get_n_import_files): New function.
13 * xcoffread.h (xcoffread.h): Add declaration.
14 * rs6000-aix-tdep.c: #include "xcoffread.h".
15 (rs6000_aix_osabi_sniffer): Do not return GDB_OSABI_AIX for
16 XCOFF executables that do not depend on any shared library.
17 * rs6000-lynx178-tdep.c: New file.
18 * configure.tgt: Add powerpc-*-lynx*178 handling.
19 * Makefile.in (ALL_TARGET_OBS): Add rs6000-lynx178-tdep.o.
20 (ALLDEPFILES): Add rs6000-lynx178-tdep.c.
21
2a9d5ccf
HZ
222012-12-18 Hui Zhu <[email protected]>
23
24 * ui-file.c (ui_file): Add to_fseek.
25 (ui_file_new): Call set_ui_file_fseek.
26 (null_file_fseek, ui_file_fseek, set_ui_file_fseek,
27 stdio_file_fseek): New functions.
28 (stdio_file_new): Call set_ui_file_fseek.
29 * ui-file.h (ui_file_fseek_ftype): New typedef.
30 (set_ui_file_fseek, ui_file_fseek): New externs.
31
3f453875
HZ
322012-12-18 Hui Zhu <[email protected]>
33
34 * ui-file.c (set_ui_file_flush): Change flush to flush_ptr.
35 (set_ui_file_isatty): Change isatty to isatty_ptr.
36 (set_ui_file_rewind): Change rewind to rewind_ptr.
37 (set_ui_file_put): Change put to put_ptr.
38 (set_ui_file_write): Change write to write_ptr.
39 (set_ui_file_write_async_safe): Change write_async_safe to
40 write_async_safe_ptr.
41 (set_ui_file_read): Change read to read_ptr.
42 (set_ui_file_fputs): Change fputs to fputs_ptr.
43 (set_ui_file_data): Change delete to delete_ptr.
44
4141a416
JB
452012-12-18 Joel Brobecker <[email protected]>
46
47 * solib-darwin.c (darwin_current_sos): Fix indentation.
48 (darwin_read_exec_load_addr): New function.
49 (darwin_solib_create_inferior_hook): Rebase executable.
50 * objfiles.c (objfile_rebase1, objfile_rebase): New functions.
51 * objfiles.h (objfile_rebase1, objfile_rebase): Add prototypes.
52
c0fc7f8b
JB
532012-12-18 Joel Brobecker <[email protected]>
54
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
a512b375
JB
652012-12-18 Joel Brobecker <[email protected]>
66
67 * gnulib/update-gnulib.sh (GNULIB_COMMIT_SHA1): Set to
68 8d5bd1402003bd0153984b138735adf537d960b0.
69 * gnulib/aclocal.m4, configure, config.in: Regenerate.
70 * gnulib/import/m4/extern-inline.m4: Import.
71 * gnulib/import/wctype-h.c: Import.
72 * gnulib/import/Makefile.am: Update.
73 * gnulib/import/Makefile.in: Update.
74 * gnulib/import/alloca.in.h: Update.
75 * gnulib/import/extra/snippet/warn-on-use.h: Update.
76 * gnulib/import/localcharset.c: Update.
77 * gnulib/import/m4/fcntl-o.m4: Update.
78 * gnulib/import/m4/gnulib-cache.m4: Update.
79 * gnulib/import/m4/gnulib-comp.m4: Update.
80 * gnulib/import/m4/wctype_h.m4: Update.
81 * gnulib/import/stdbool.in.h: Update.
82 * gnulib/import/verify.h: Update.
83 * gnulib/import/wctype.in.h: Update.
84
cc0f0618 852012-12-18 Joel Brobecker <[email protected]>
48c95e5f
JB
86
87 * gnulib/update-gnulib.sh: Add call to autoheader.
88
e4acb24c
TT
892012-12-17 Tom Tromey <[email protected]>
90
91 * top.c (xgdb_verbose): Remove.
92
3d745be3
JK
932012-12-16 Jan Kratochvil <[email protected]>
94
95 Code cleanup.
96 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
97 unused forward declarations.
98 (skip_file_command): Make variables symtab and filename targets const.
99 Use proper 0 vs. NULL constant everywhere.
100 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
101 Include empty line after declarations. Use GNU spacing in a comment.
102 Do not use strlen for end of string check.
103 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
104 comments.
105 (skip_enable_command, skip_disable_command, skip_delete_command)
106 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
107 (function_pc_is_marked_for_skip): Make variable filename target const.
108 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
109 comment formatting.
110 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
111 NULL constant everywhere. Include empty line after declarations. Make
112 variable symtab target const. Do not use strlen for end of string
113 check.
114
b57a636e
JK
1152012-12-16 Jan Kratochvil <[email protected]>
116
117 Code cleanup.
118 * breakpoint.c (clear_command): Remove variable sal_name_len and its
119 initialization, remove it from the compare_filenames_for_search call.
120 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
121 name_len and its initialization, remove it from the
122 compare_filenames_for_search calls.
123 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
124 * symtab.c (compare_filenames_for_search): Remove the search_len
125 parameter, update the function comment, new variable search_len
126 initialized from SEARCH_NAME.
127 (iterate_over_some_symtabs): Remove variable name_len and its
128 initialization, remove it from the compare_filenames_for_search calls.
129 * symtab.h (compare_filenames_for_search): Remove the search_len
130 parameter,
131
67c50e6e
JB
1322012-12-16 Joel Brobecker <[email protected]>
133
134 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
135 (ALLDEPFILES): ... to there.
136
5d214698
JB
1372012-12-15 Joel Brobecker <[email protected]>
138
139 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
140
debb1f09
JB
1412012-12-15 Joel Brobecker <[email protected]>
142
143 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
144 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
145 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
146 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
147 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
148 to gdb_target_obs for every target that uses rs6000-tdep.o.
149 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
150 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
151 or register_ppc_ravenscar_ops.
152
c16998a7
JB
1532012-12-15 Joel Brobecker <[email protected]>
154
155 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
156 RAVENSCAR_SPARC_THREAD_H.
157 * sparc-ravenscar-thread.c: Rename all global entities
158 whose name is uses "ravenscar_sparc" as the prefix to use
159 "sparc_ravenscar" instead.
160
e6f9c00b
JB
1612012-12-15 Joel Brobecker <[email protected]>
162
163 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
164 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
165 Adjust sparc-ravenscar-thread.h #include.
166 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
167 accordingly.
168 * Makefile.in: Replace ravenscar-sparc-thread with
169 sparc-ravenscar-thread throughout.
170 * configure.tgt: Likewise.
171
7e35103a
JB
1722012-12-15 Joel Brobecker <[email protected]>
173
e924e903 174 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
7e35103a
JB
175 declaration.
176 (ravenscar_ops): New gdbarch variable.
177 * gdbarch.h, gdbarch.c: Regenerate.
178 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
179 * ravenscar-thread.c (current_arch_ops): Delete.
180 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
181 from the gdbarch.
182 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
183 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
184 (ravenscar_register_arch_ops): Delete.
185 * ravenscar-sparc-thread.h: New file.
186 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
187 (ravenscar_sparc_ops): Define value statically.
188 (_initialize_ravenscar_sparc): Delete.
189 (register_sparc_ravenscar_ops): New function.
190 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
191 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
192 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
193 ravenscar-sparc-thread.o.
194 (SFILES): Add ravenscar-thread.c.
195 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
196 (ALLDEPFILES): ravenscar-sparc-thread.c.
197 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
198 to gdb_target_obs
199 for all the targets that use sparc-tdep.o.
200
25abf4de
JB
2012012-12-15 Joel Brobecker <[email protected]>
202
203 * ravenscar-thread.c (ravenscar_is_open): Delete.
204 (ravenscar_initialize): Move most of the code from here...
205 (ravenscar_inferior_created): ... to there. Invert logic.
206 (ravenscar_close): Delete.
207 (init_ravenscar_thread_ops): Remove setting of
208 ravenscar_ops.to_close.
209
3d6e24f0
JB
2102012-12-15 Joel Brobecker <[email protected]>
211
212 * objfiles.c (init_entry_point_info): Move function from here...
213 * symfile.c (init_entry_point_info): ... to there. Make static.
214 * objfiles.h (objfiles.h): Delete declaration.
215
36e4d068
JB
2162012-12-15 Joel Brobecker <[email protected]>
217
218 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
219 Remove call to init_entry_point_info. Add OBJFILE's
220 section_offsets and num_sections initialization. Add note
221 about entry info in the function documentation.
222 (syms_from_objfile): New function.
223 * coffread.c (coff_symfile_init): Remove call to
224 init_entry_point_info.
225 * machoread.c (macho_symfile_init): Likewise.
226 * xcoffread.c(xcoff_symfile_init): Likewise.
227
c9b6281a
YQ
2282012-12-15 Yao Qi <[email protected]>
229
230 * remote-notif.c (_initialize_notif): Add new commands
231 'set debug notification' and 'show debug notification'.
232 * NEWS: Mention these new commands.
233
722247f1
YQ
2342012-12-15 Yao Qi <[email protected]>
235
236 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
237 (SFILES): Add "remote-notif.c".
238 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
239 * remote-notif.c: New. Factored out from remote.c.
240 * remote-notif.h: New.
241 * remote.c: Include "remote-notif.h".
242 (stop_reply_xmalloc, do_stop_reply_xfree):
243 (remote_parse_stop_reply, remote_get_pending_stop_replies):
244 (remote_async_get_pending_events_handler): Remove declarations.
245 (remote_parse_stop_reply): Declare.
246 (pending_stop_reply): Remove.
247 (remote_async_get_pending_events_token): Move to
248 remote-notif.c.
249 (remote_close): Replace 'delete_async_event_handler' with
250 remote_notif_unregister_async_event_handler.
251 Don't call discard_pending_stop_replies.
252 (remote_start_remote): Replace code with remote_notif_parse
253 and remote_notif_get_pending_replies.
254 (remote_open_1): Replace 'create_async_event_handler' with
255 remote_notif_register_async_event_handler.
256 (extended_remote_attach_1): Call remote_notif_parse and
257 notif_stop_reply_push.
258 (struct stop_reply) <next>: Remove.
259 <base>: New field.
260 Callers update.
261 (stop_reply_queue): Change its type.
262 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
263 (remote_notif_remove_all): New.
264 (discard_pending_stop_replies): Update.
265 (remote_notif_stop_ack, stop_reply_dtr): New.
266 (remote_notif_stop_alloc_event): New.
267 (notif_client_stop): New variable.
268 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
269 (queued_stop_reply, peek_stop_reply): Adjust.
270 (remote_get_pending_stop_replies): Rename to
271 remote_notif_get_pending_events.
272 (handle_notification): Move to remote-notif.c.
273 (remote_async_get_pending_events_handler): Likewise.
274 (remote_wait_as): Adjust to call remote_notif_parse.
275 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
276 Return minus_one_ptid early if gets a notification.
277 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
278 (_initialize_remote): Call QUEUE_alloc. Update caller.
279 (remote_resume): Call 'remote_notif_process' in all-stop mode.
280 * remote.h: Include "remote-notif.h".
281 (remote_notif_get_pending_replies): Declare.
282
5f4cf0bb
YQ
2832012-12-15 Yao Qi <[email protected]>
284
285 * remote.c (discard_pending_stop_replies): Update declaration.
286 (remote_detach_1, extended_remote_mourn_1): Likewise.
287 (discard_pending_stop_replies): Change parameter from PID to
288 INF.
289 (remote_close): Update caller.
290 (_initialize_remote): Attach discard_pending_stop_replies to
291 inferior_exit observer.
292
fee9eda9
YQ
2932012-12-15 Yao Qi <[email protected]>
294
295 * remote.c (getpkt_or_notif_sane): Add one more argument in
296 its declaration.
297 (getpkt_or_notif_sane_1): Add one more argument.
298 (getpkt_sane): Update caller.
299 (getpkt_or_notif_sane): Likewise. Update call
300 togetpkt_or_notif_sane_1.
301 (remote_wait_ns): Update caller.
302
dbb0cf06
YQ
3032012-12-15 Yao Qi <[email protected]>
304 Doug Evans <[email protected]>
305
306 * common/queue.h: New.
307
f2a8bc8a
YQ
3082012-12-15 Yao Qi <[email protected]>
309
310 * breakpoint.c (print_one_breakpoint_location): Display the
311 state of 'installed' of each non-pending location of a tracepoint
312 in both CLI and MI.
313 (download_tracepoint_locations): Notify 'breakpoint-modified'
314 observer if any tracepoint location is downloaded.
315 * tracepoint.c (start_tracing): Likewise.
316 (merge_uploaded_tracepoints): Record all modified
317 tracepoints and notify 'breakpoint-modified' observer for them.
318
319 * NEWS: Mention the change for CLI and MI.
320
7ed2c994
YQ
3212012-12-15 Yao Qi <[email protected]>
322
323 * breakpoint.c (download_tracepoint_locations): Iterate over
324 ALL_TRACEPOINTS first and then iterate over locations of
325 each tracepoint.
326
b25d79d4
PM
3272012-12-14 Pierre Muller <[email protected]>
328 Pedro Alves <[email protected]>
329
330 * solib-target.c (solib_target_current_sos): Remove 'const'
331 qualifier from type of library_document local variable to be
332 able to free it and avoid a memory leak.
333 Use cleanup chain to avoid leak even if exceptino is generated.
334
6592e36f
TT
3352012-12-14 Tom Tromey <[email protected]>
336
337 PR c++/8888:
338 * symtab.c (lookup_symbol_aux): If constructor is found, consider
339 returning the type instead.
340 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
341 found.
342
7d27a96d
TT
3432012-12-14 Tom Tromey <[email protected]>
344
345 Partial fix for PR c++/14160:
346 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
347 * dwarf2read.c (dwarf2_is_constructor): New function.
348 (dwarf2_add_member_fn): Use it.
349 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
350 TYPE_FN_FIELD_CONSTRUCTOR.
351 * jv-typeprint.c (java_type_print_base): Use
352 TYPE_FN_FIELD_CONSTRUCTOR.
353 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
354 <dummy>: Shrink.
355 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
356
1993b719
TT
3572012-12-14 Tom Tromey <[email protected]>
358
359 * c-exp.y (block, variable, name_not_typename, lex_one_token,
360 classify_name): Update.
361 * c-valprint.c (c_val_print): Update.
362 * f-exp.y (yylex): Update.
363 * go-exp.y (package_name_p, classify_packaged_name)
364 (classify_name): Update.
365 * jv-exp.y (push_variable): Update.
366 * m2-exp.y (variable): Update.
367 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
368 * p-exp.y (block, variable, yylex): Update.
369 * p-valprint.c (pascal_val_print): Update.
370 * parse.c (write_dollar_variable): Update.
371 * printcmd.c (address_info): Update.
372 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
373 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
374 (lookup_symbol): Change type of 'is_a_field_of_this'.
375 (check_field): Add 'is_a_field_of_this' argument.
376 * symtab.h (struct field_of_this_result): New.
377 (lookup_symbol, lookup_symbol_in_language): Update.
378
2dc3df72
TT
3792012-12-14 Tom Tromey <[email protected]>
380
381 * symtab.c (check_field): Now static. Move from...
382 * valops.c (check_field): ... here. Remove.
383 * value.h (check_field): Don't declare.
384
451b7c33
TT
3852012-12-14 Tom Tromey <[email protected]>
386
387 * NEWS: Mention "info proc" and core files.
388 * corelow.c (core_info_proc): New function.
389 (init_core_ops): Set to_info_proc.
390 * gdbarch.c, gdbarch.h: Rebuild.
391 * gdbarch.sh (core_info_proc): New method.
392 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
393 * linux-tdep.c (linux_core_info_proc_mappings)
394 (linux_core_info_proc): New functions.
395 (linux_find_memory_region_ftype): New typedef.
396 (linux_find_memory_regions_full): New function, from
397 linux_find_memory_regions.
398 (struct linux_find_memory_regions_data): New.
399 (linux_find_memory_regions_thunk): New function.
400 (linux_find_memory_regions): Rewrite.
401 (struct linux_make_mappings_data): New.
402 (linux_make_mappings_callback)
403 (linux_make_mappings_corefile_notes): New functions.
404 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
405 (linux_init_abi): Call set_gdbarch_core_info_proc.
406 * target.c (target_info_proc): Return 'int'.
407 * target.h (target_info_proc): Update.
408
49dc7f4b
PM
4092012-12-14 Pierre Muller <[email protected]>
410
411 * windows-nat.c (windows_xfer_shared_libraries): Avoid
412 memory leak when OFFSET >= LEN_AVAIL.
413
e03e6279
TT
4142012-12-13 Tom Tromey <[email protected]>
415
416 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
417
7b9c0bfb
TT
4182012-12-13 Tom Tromey <[email protected]>
419
420 * acinclude.m4 (CY_AC_C_WORKS): Remove.
421
d8f4a83e
PM
4222012-12-13 Pierre Muller <[email protected]>
423
424 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
425 local variable and zero terminate it to avoid possible problems
426 in strcmp.
427
aab2f004
PA
4282012-12-13 Pedro Alves <[email protected]>
429
430 * coff-pe-read.c: Include coff/internal.h.
431 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
432 Null terminate buffer explicitly instead of memset the whole
433 buffer.
434
78ea0eca
PM
4352012-12-13 Pierre Muller <[email protected]>
436
437 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
438 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
439 for already defined macros.
440
3999122f
PM
4412012-12-13 Pierre Muller <[email protected]>
442
443 * coff-pe-read.h (pe_text_section_offset): Declare new function.
444 * coff-pe-read.c (debug_coff_pe_read): New static variable.
445 (struct read_pe_section_data): Add section_name field.
446 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
447 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
448 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
449 (get_pe_section_index): New function.
450 (struct pe_sections_info): New type.
451 (get_section_vmas): Use new struct pe_sections_info.
452 (add_pe_exported_sym): Handle unnamed exported function.
453 (add_pe_forwarded_sym): New function.
454 (read_pe_truncate_name): Truncate at last dot.
455 (pe_as16): New function.
456 (read_pe_exported_syms): Use ordinal of function to
457 retrieve correct RVA address of function and handle
458 forwarded symbol.
459 (pe_text_section_offset): New function.
460 (show_debug_coff_pe_read): New function.
461 (_initialize_coff_pe_read): New function adding
462 'set/show debug coff_pe_read' commands.
463
464 * windows-tdep.c (windows_xfer_shared_library): Use
465 pe_text_section_offset function instead of possibly wrong
466 0x1000 constant for .text sextion offset.
467
c9023fb3
PA
4682012-12-13 Pedro Alves <[email protected]>
469
470 * gdbarch.sh (do_read): Set IFS to blank.
471
3fa7bf06
MG
4722012-12-12 Mircea Gherzan <[email protected]>
473
474 * NEWS: Mention the -catch-load/-catch-unload MI commands.
475
91985142 4762012-12-12 Mircea Gherzan <[email protected]>
f87e3f15 477
91985142
MG
478 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
479 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
480 * breakpoint.c (add_solib_catchpoint): New function that
481 can be used by both CLI and MI, factored out from
482 catch_load_or_unload.
483 (catch_load_or_unload): Strip it down and make it use the
484 new add_solib_catchpoint.
485 * breakpoint.h (add_solib_catchpoint): Declare it.
486 * mi/mi-cmd-break.h: New file.
487 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
488 (setup_breakpoint_reporting): New function used for both
489 catchpoints and breakpoints.
490 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
491 * mi/mi-cmd-catch.c: New file.
492 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
493 and -catch-unload.
494 * mi/mi-cmds.h: Declare the handlers for -catch-load and
495 -catch-unload.
496
5c80ed9d
TT
4972012-11-28 Tom Tromey <[email protected]>
498
499 * dbxread.c (read_dbx_symtab): Update.
500 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
501 (read_ofile_symtab): Add 'objfile' argument.
502 * dwarf2read.c (process_psymtab_comp_unit_reader)
503 (build_type_psymtabs_reader): Update.
504 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
505 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
506 argument.
507 (parse_procedure, parse_partial_symbols): Update.
508 (psymtab_to_symtab_1): Add 'objfile' argument.
509 * psympriv.h (struct partial_symtab) <objfile>: Remove.
510 <read_symtab>: Add 'objfile' argument.
511 (sort_pst_symbols, discard_psymtab): Update.
512 * psymtab.c (partial_map_expand_apply): Update.
513 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
514 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
515 (find_pc_sect_psymbol): Add 'objfile' argument.
516 (lookup_symbol_aux_psymtabs): Update.
517 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
518 Add 'objfile' argument.
519 (find_last_source_symtab_from_partial, dump_psymtab)
520 (dump_psymtabs_for_objfile, read_symtabs_for_function)
521 (expand_partial_symbol_tables, read_psymtabs_with_filename)
522 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
523 (expand_symtabs_matching_via_partial): Update.
524 (sort_pst_symbols): Add 'objfile' argument.
525 (allocate_psymtab): Update.
526 (discard_psymtab): Add 'objfile' argument.
527 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
528 * stabsread.h (end_psymtab): Update.
529 * xcoffread.c (this_symtab_objfile): New global.
530 (process_linenos, enter_line_range, xcoff_next_symbol_text):
531 Update.
532 (read_xcoff_symtab): Add 'objfile' argument.
533 (read_symbol, read_symbol_lineno): Update.
534 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
535 (xcoff_end_psymtab): Add 'objfile' argument.
536 (scan_xcoff_symtab): Update.
537
9a27f2c6
PK
5382012-12-12 Paul Koning <[email protected]>
539
540 Add support for Python 3.
541 * NEWS: Mention Python 3 support.
542 * varobj.c (value_get_print_value): Use
543 python_string_to_target_string.
544 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
545 of type objects.
546 * python/py-breakpoint.c: Ditto.
547 * python/py-cmd.c: Ditto.
548 * python/py-event.c: Ditto.
549 * python/py-event.h: Ditto.
550 * python/py-evtregistry.c: Ditto.
551 * python/py-finishbreakpoint.c: Ditto.
552 * python/py-frame.c: Ditto.
553 * python/py-function.c: Ditto.
554 * python/py-infthread.c: Ditto.
555 * python/py-lazy-string.c: Ditto.
556 * python/py-progspace.c: Ditto.
557 * /python/py-symbol.c: Ditto.
558 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
559 initialization for Python 3.
560 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
561 of type objects.
562 (infpy_read_memory): Return memoryview object if Python 3.
563 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
564 (infpy_search_memory): Ditto.
565 (get_buffer): New function for Python 3.
566 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
567 of type objects.
568 (objfpy_dealloc): Use Py_TYPE to call tp_free.
569 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
570 of type objects.
571 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
572 (set_attr): Ditto.
573 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
574 instead of PyString methods if Python 3.
575 (print_children): Skip push_dummy_python_frame call if Python 3.
576 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
577 of type objects.
578 (salpy_dealloc): Use Py_TYPE to call tp_free.
579 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
580 of type objects.
581 (field_dealloc): Use Py_TYPE to call tp_free.
582 (typy_dealloc): Ditto.
583 (type_object_as_number): Adjust struct initializations for
584 differences in layout for Python 2 vs. Python 3.
585 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
586 string case for Python 3.
587 (unicode_to_encoded_python_string): Shorten code (no functional
f87e3f15 588 change).
9a27f2c6
PK
589 (python_string_to_target_python_string): Comment that in Python 3
590 returned value is a Python "bytes" type.
591 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
592 (gdb_py_object_from_longest): Omit non-long integer case in Python
593 3.
594 (gdb_py_object_from_ulongest): Ditto.
595 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
596 of type objects.
597 (valpy_dealloc): Use Py_TYPE to call tp_free.
598 (valpy_int): Omit function if Python 3.
599 (convert_value_from_python): Use "%S" format (Python object as a
600 string) if Python 3.
601 (value_object_as_number): Adjust struct initializations for
602 differences in layout for Python 2 vs. Python 3.
603 * python/python-config.py: Adjust syntax for Python 3
f87e3f15 604 compatibility.
9a27f2c6
PK
605 Include "sys.abiflags" string as part of python library name, if
606 that attribute exists (Python 3).
607 * python/python-internal.h (IS_PY3): Define if Python 3.
608 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
609 placeholder value if Python 3.
610 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
611 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
612 analogous Python 3 API function if Python 3.
613 (PyVarObject_HEAD_INIT): Define if not already defined.
614 (Py_TYPE): Ditto.
615 * python/python.c (eval_python_command): Omit Py_FlushLine call if
616 Python 3.
617 Check return values of all Python API calls for error.
618 Supply dummy "python" and "python-interactive" commands if Python
619 initialization failed.
620 (_initialize_python): Convert argc to wchar_t** if Python 3.
621 Add module initialization for Python 3.
622 (finish_python_initialization): Pass wchar_t * argument to
623 PySys_SetPath if Python 3.
624 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
625 (_GdbFile): New class for common output file behavior.
626 (GdbOutFile): Subclass from _GdbFile.
627 (GdbOutputErrorFile): Ditto.
628 (auto_load_packages): Adjust syntax for Python 3 compatibility.
629 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
630 * python/lib/gdb/prompt.py: Use sorted() function rather than
631 sort() method.
632 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
633 Adjust syntax for Python 3 compatibility.
634 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
635 rather than sort() method.
636 Adjust syntax for Python 3 compatibility.
637 * python/lib/gdb/command/type_printers.py: Ditto.
638 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
639 value is a memoryview object if Python 3.
640
b8b98ad1
TT
6412012-12-12 Tom Tromey <[email protected]>
642
643 * coffread.c (coff_objfile_data_key): New global.
644 (coff_symfile_init): Use set_objfile_data.
645 (coff_symfile_read): Use objfile_data.
646 (coff_symfile_finish): Don't free deprecated_sym_private.
647 (coff_free_info): New function.
648 (_initialize_coffread): Initialize coff_objfile_data_key.
649 * mdebugread.c (pending_list): Update comment.
650 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
651 * symfile.c (reread_symbols): Don't mention
652 deprecated_sym_private.
653 * xcoffread.c (xcoff_objfile_data_key): New global.
654 (XCOFF_DATA): New macro.
655 (process_linenos, enter_line_range, xcoff_next_symbol_text)
656 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
657 XCOFF_DATA.
658 (xcoff_new_init) Use set_objfile_data.
659 (xcoff_symfile_finish): Don't free deprecated_sym_private.
660 (init_stringtab, swap_sym, scan_xcoff_symtab)
661 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
662 (xcoff_free_info): New function.
663 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
664
afedb563
MG
6652012-12-12 Mircea Gherzan <[email protected]>
666
667 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
668
d2f4b8fe
TT
6692012-12-12 Tom Tromey <[email protected]>
670
671 * coffread.c (coff_symfile_init): Use set_objfile_data.
672 (coff_symfile_read): Use DBX_SYMFILE_INFO.
673 * dbxread.c (dbx_objfile_data_key): New global.
674 (dbx_symfile_init): Use set_objfile_data.
675 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
676 (dbx_free_symfile_info): New function.
677 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
678 DBX_SYMFILE_INFO.
679 (stabsect_build_psymtabs): Use set_objfile_data.
680 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
681 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
682 set_objfile_data.
683 (free_elfinfo): Use DBX_SYMFILE_INFO.
684 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
685 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
686 * gdb-stabs.h (dbx_objfile_data_key): Declare.
687 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
688 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
689 * somread.c (som_symfile_finish): Don't free
690 deprecated_sym_stab_info.
691
6f112b18
JB
6922012-12-12 Joel Brobecker <[email protected]>
693
694 * gdbarch.sh (software_single_step): Remove trailing space in
695 comment (gdbarch.h is already correct).
696
8d2cc612
TT
6972012-12-11 Tom Tromey <[email protected]>
698
699 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
700
735522c2
TT
7012012-12-11 Tom Tromey <[email protected]>
702
703 * dsrec.c (report_transfer_performance): Don't declare.
704 (load_srec): Use gettimeofday, print_transfer_performance.
705 * symfile.c (report_transfer_performance): Remove.
706
3e3420f6
PA
7072012-12-11 Pedro Alves <[email protected]>
708 Pedro Alves <[email protected]>
709
710 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
711 NT_PSTATUS note.
712 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
713 differently from LWP IDs.
714
05b4bd79
PA
7152012-12-11 Pedro Alves <[email protected]>
716
717 * configure.ac (detect type of /proc): Remove Unixware handling.
718 * configure: Regenerate.
719 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
720 (ioctl_table) [PCRESET]: Remove entry.
721 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
722 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
723 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
724 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
725 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
726 Unixware in comments throughout.
727 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
728 and remove mention of Unixware.
729
072cabfe
DE
7302012-12-10 Doug Evans <[email protected]>
731
ab435259
DE
732 * dwarf2read.c (dwarf2_cu): Enhance comment.
733 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
734 the DWO file.
735 (dwarf2_record_block_ranges): Ditto.
736
c766f7ec
DE
737 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
738
072cabfe
DE
739 * symtab.c (find_pc_sect_symtab): Add comment.
740
660ff106
TT
7412012-12-10 Tom Tromey <[email protected]>
742
743 * defs.h: Don't check for definition of LONGEST.
744 (min, max): Remove duplicates.
745
8b9737bf
TT
7462012-12-10 Tom Tromey <[email protected]>
747
748 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
749 (dwarf2_fetch_die_loc_cu_off): Rename from
750 dwarf2_fetch_die_location_block. Rewrite to use
751 dwarf2_fetch_die_loc_sect_off.
752 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
753 (dwarf2_fetch_die_loc_cu_off): Rename.
754 * dwarf2loc.c (indirect_pieced_value): Use
755 dwarf2_fetch_die_loc_sect_off.
756 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
757 comment.
758 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
759 * dwarf2expr.c (add_piece): Update.
760 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
761
93eed41f
TT
7622012-12-10 Tom Tromey <[email protected]>
763
764 * buildsym.c (struct pending_block): Move from buildsym.h.
765 (pending_blocks): Likewise; now static.
766 (pending_block_obstack): New global.
767 (free_pending_blocks): Free blocks.
768 (record_pending_block): Use pending_block_obstack.
769 * buildsym.h (struct pending_block): Move definition to
770 buildsym.c.
771 (pending_blocks): Don't declare.
772
d2e5c99a
PA
7732012-12-10 Pedro Alves <[email protected]>
774
775 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
776 dead SCO code, and adjust function description comment.
777
74a0d9f6
JK
7782012-12-09 Jan Kratochvil <[email protected]>
779
780 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
781 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
782 CC_HAS_LONG_LONG.
783 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
784 * dwarf2read.c (extract_cu_value): Remove the function.
785 (create_cus_from_index_list): Make the return type void, inline the
786 extract_cu_value caller, include new gdb_static_assert.
787 (create_cus_from_index): Make the return type void, update the function
788 comment, update the create_cus_from_index_list caller.
789 (create_signatured_type_table_from_index): Make the return type void,
790 inline the extract_cu_value caller, include new gdb_static_assert.
791 (dwarf2_read_index): Update the create_cus_from_index and
792 create_signatured_type_table_from_index caller.
793 * printcmd.c (ui_printf): Remove conditionalizations for
794 CC_HAS_LONG_LONG.
795 * config.in: Regenerate.
796 * configure: Regenerate.
797
1b80a9fa
JK
7982012-12-09 Jan Kratochvil <[email protected]>
799
800 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
801 Update the comment for checked_producer.
802 (check_producer): New forward declaration.
803 (producer_is_gcc_lt_4_3): New function.
804 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
805 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
806
2f68a895
TT
8072012-12-07 Tom Tromey <[email protected]>
808
809 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
810 argument, assertion.
811 * c-exp.y (typebase): Add completion productions.
812 * completer.c (expression_completer): Handle tag completion.
813 * expression.h (parse_expression_for_completion): Add argument.
814 * f-lang.c (f_make_symbol_completion_list): Add 'code'
815 argument.
816 * language.h (struct language_defn)
817 <la_make_symbol_completion_list>: Add 'code' argument.
818 * parse.c (expout_tag_completion_type, expout_completion_name):
819 New globals.
820 (mark_struct_expression): Add assertion.
821 (mark_completion_tag): New function.
822 (parse_exp_in_context): Initialize new globals.
823 (parse_expression_for_completion): Add 'code' argument. Handle
824 tag completion.
825 * parser-defs.h (mark_completion_tag): Declare.
826 * symtab.c (default_make_symbol_completion_list_break_on): Add
827 'code' argument. Update.
828 (default_make_symbol_completion_list): Add 'code' argument.
829 (make_symbol_completion_list): Update.
830 (make_symbol_completion_type): New function.
831 * symtab.h (default_make_symbol_completion_list_break_on)
832 (default_make_symbol_completion_list): Update.
833 (make_symbol_completion_type): Declare.
834
155da517
TT
8352012-12-07 Tom Tromey <[email protected]>
836
837 * expression.h (parse_expression_for_completion): Rename
838 from parse_field_expression.
839 (parse_completion): Rename from in_parse_field.
840 * c-exp.y (lex_one_token): Update.
841 * completer.c (expression_completer): Update.
842 * go-exp.y (lex_one_token): Update.
843 * p-exp.y (yylex): Update.
844 * parse.c (parse_completion): Rename from in_parse_field.
845 (parse_exp_in_context): Update.
846 (parse_expression_for_completion): Rename from
847 parse_field_expression. Update.
848
4fc5d43e
TT
8492012-12-07 Tom Tromey <[email protected]>
850
851 * typeprint.c (_initialize_typeprint): Set completer
852 for "whatis" and "ptype".
853
ab39020b
JB
8542012-12-07 Joel Brobecker <[email protected]>
855
856 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
857 "sim/common/cgen-fpu.h". Remove invalid entries
858 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
859 which actually have an FSF copyright header.
860
2cb50f9d
JB
8612012-12-07 Joel Brobecker <[email protected]>
862
863 * osf-share/AT386/cma_thread_io.h: Delete.
864 * osf-share/HP800/cma_thread_io.h: Delete.
865 * osf-share/README: Delete.
866 * osf-share/RIOS/cma_thread_io.h: Delete.
867 * osf-share/cma_attr.h: Delete.
868 * osf-share/cma_deb_core.h: Delete.
869 * osf-share/cma_debug_client.h: Delete.
870 * osf-share/cma_errors.h: Delete.
871 * osf-share/cma_handle.h: Delete.
872 * osf-share/cma_init.h: Delete.
873 * osf-share/cma_list.h: Delete.
874 * osf-share/cma_mutex.h: Delete.
875 * osf-share/cma_sched.h: Delete.
876 * osf-share/cma_semaphore_defs.h: Delete.
877 * osf-share/cma_sequence.h: Delete.
878 * osf-share/cma_stack.h: Delete.
879 * osf-share/cma_stack_int.h: Delete.
880 * osf-share/cma_tcb_defs.h: Delete.
881 * osf-share/cma_util.h: Delete.
882 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
883 in osf-share.
884 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
885 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
886 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
887
0ba2eb0f
TT
8882012-12-06 Pedro Alves <[email protected]>
889 Tom Tromey <[email protected]>
890
891 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
892
731145cb
TT
8932012-12-06 Jens Elmenthaler <[email protected]>
894
895 PR mi/14741:
896 * mi/mi-cmd-var.c (varobj_update_one): Take value of
897 attribute "dynamic" and "displayhint" from printed child,
898 not the root variable.
899
eff44fea
JB
9002012-12-06 Joel Brobecker <[email protected]>
901
902 * aix-thread.c (getthrds): Fix type of 4th parameter.
903 (get_signaled_thread): Change type of variable ktid to tid_t.
904
c90a0773
HZ
9052012-12-06 Hui Zhu <[email protected]>
906
907 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
908 value of get_frame_block.
909
5bc81a00
PM
9102012-12-05 Pierre Muller <[email protected]>
911
912 Avoid memory leaks on struct cmd_list_element.doc field.
913 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
914 if flags contains DOC_ALLOCATED.
915 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
916 flags.
917 (delete_cmd): Handle DOC_ALLOCATED flag.
918 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
919 in flags filed of struct cmd_list_element.
920 (struct cmd_list_element): Document new flag item.
921
b5ebcee6
DE
9222012-12-04 Doug Evans <[email protected]>
923
924 * symmisc.c: Whitespace fixes.
925
56bf0743
KB
9262012-12-04 Karthik Bhat <[email protected]>
927
928 * i386-tdep.c (i386_skip_prologue): Using symbol table
929 to find the end of prologue for clang compiled binaries.
930 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
931 to find the end of prologue for clang compiled binaries.
932
56e64610
DE
9332012-12-03 Doug Evans <[email protected]>
934
935 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
936 (dw2_find_symbol_file): Delete unused local file_data.
937
270140bd
TT
9382012-12-03 Tom Tromey <[email protected]>
939
940 * ada-exp.y (write_object_renaming, write_var_or_type)
941 (write_ambiguous_var, write_var_from_sym): Make blocks const.
942 * ada-lang.c (replace_operator_with_call)
943 (find_old_style_renaming_symbol): Make blocks const.
944 * ada-lang.h (ada_find_renaming_symbol): Update.
945 (struct ada_symbol_info) <block>: Now const.
946 * breakpoint.c (watch_command_1): Update.
947 * breakpoint.h (struct watchpoint) <exp_valid_block,
948 cond_exp_valid_block>: Now const.
949 * c-exp.y (classify_inner_name, classify_name): Make block
950 argument const.
951 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
952 const.
953 * expression.h (innermost_block, parse_exp_1): Update.
954 (union exp_element) <block>: Now const.
955 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
956 (lookup_struct): Make block argument const.
957 * gdbtypes.h (lookup_template_type): Update.
958 * go-exp.y (classify_name, classify_packaged_name)
959 (package_name_p): Make block argument const.
960 * objc-lang.c (lookup_struct_typedef): Make block argument const.
961 * objc-lang.h (lookup_struct_typedef): Update.
962 * parse.c (parse_exp_in_context, parse_exp_1)
963 (write_exp_elt_block): Make block arguments const.
964 (expression_context_block, innermost_block): Now const.
965 * parser-defs.h (write_exp_elt_block): Update.
966 (expression_context_block, innermost_block, block_found): Now
967 const.
968 * printcmd.c (struct display) <block>: Now const.
969 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
970 * valops.c (address_of_variable): Make block argument const.
971 * value.h (value_of_variable): Update.
972 * varobj.c (struct varobj_root) <valid_block>: Now const.
973
31f56a27
YQ
9742012-11-30 Yao Qi <[email protected]>
975
976 * breakpoint.c (print_one_breakpoint_location): Indent code.
977
556ec64d
YQ
9782012-11-30 Yao Qi <[email protected]>
979
980 * breakpoint.c (print_one_breakpoint_location): Combine two
981 blocks handling 'hit count' together.
982
3d3fef6b
YQ
9832012-11-30 Yao Qi <[email protected]>
984
985 * infrun.c (error_is_running, ensure_not_running): Move them
986 to ...
987 * infcmd.c (error_is_running, ensure_not_running): ... here.
988 Make them 'static'.
989 * inferior.h: Remove declarations of error_is_running and
990 ensure_not_running.
991
7cd12a76
YQ
9922012-11-30 Yao Qi <[email protected]>
993
994 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
995 check REGNUM >= 0.
996
7a76f5b8
YQ
9972012-11-30 Yao Qi <[email protected]>
998
999 * infrun.c: Make the declaration of 'init_infwait_state'
1000 static.
1001 (init_infwait_state): Make it 'static'.
1002
b1209b03
UW
10032012-11-29 Ulrich Weigand <[email protected]>
1004
1005 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
1006 return value to void to avoid compiler warning.
1007
ea5e6b0e
UW
10082012-11-29 Ulrich Weigand <[email protected]>
1009
1010 * opencl-lang.c (opencl_print_type): New function.
1011 (opencl_language_arch_info): Install it.
1012
a93478ea
TT
10132012-11-29 Tom Tromey <[email protected]>
1014
1015 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
1016 xvasprintf.
1017 * common/common-utils.c (xasprintf, xvasprintf): Remove.
1018 * common/common-utils.h (xasprintf, xvasprintf): Remove.
1019
ac4a2da4
JG
10202012-11-29 Jerome Guitton <[email protected]>
1021
1022 * ada-lang.c (ada_is_interface_tag): New function.
1023 (ada_is_ignored_field): Add interface tags to the list
1024 of ignored fields.
1025
b50d69b5
JG
10262012-11-29 Jerome Guitton <[email protected]>
1027
f87e3f15 1028 * ada-lang.h (ada_tag_value_at_base_address): New function
b50d69b5
JG
1029 declaration.
1030 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
1031 New functions.
1032 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
1033 relocate the class-wide value if need be.
1034 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
1035 Let ada_tag_value_at_base_address relocate the class-wide access/ref
1036 before dereferencing it.
1037 * ada-valprint.c (ada_val_print_1): Relocate to base address
1038 before displaying the content of an interface-wide ref.
1039
ca1f964d
JG
10402012-11-29 Jerome Guitton <[email protected]>
1041
1042 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
1043
38d03cf1 10442012-11-29 Joel Brobecker <[email protected]>
1045
1046 GDB 7.5.1 released.
1047
f5682501
YQ
10482012-11-29 Yao Qi <[email protected]>
1049 Tom Tromey <[email protected]>
1050
1051 * eval.c (evaluate_subexp_standard): Get the correct pointer
1052 type for TYPE_CODE_MEMBERPTR.
1053
f359d716
EBM
10542012-11-28 Edjunior Machado <[email protected]>
1055
1056 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
1057 since now it is being done by binutils' powerpc_init_dialect().
1058
0cd61f44
TT
10592012-11-28 Tom Tromey <[email protected]>
1060
1061 PR gdb/14290:
1062 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
1063 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
1064 Use it.
1065 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
1066 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
1067 (gdb_bfd_openr_next_archived_file): Use it.
1068
02d403bf 10692012-11-28 Markus Metzger <[email protected]>
945bf713
MM
1070
1071 * configure.ac: Check for linux/perf_event.h.
1072 * config.in: Regenerated.
1073 * configure: Regenerated.
1074
7e20dfcd
YQ
10752012-11-28 Yao Qi <[email protected]>
1076
1077 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
1078 abbreviate 'delete tracepoints' to 'delete tr'.
1079 * corefile.c (_initialize_core): Call add_alias_cmd to
1080 abbreviate 'set gnutarget' to 'set g'.
1081 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
1082 'show convenience' to 'show conv'.
1083
b8293cc8
JB
10842012-11-27 Joel Brobecker <[email protected]>
1085
1086 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
1087 call to sparc_supply_fpregset.
1088 (fill_fpregset): Fix first parameter in call to
1089 sparc_collect_fpregset.
1090
8c2b9656
YQ
10912012-11-27 Daniel Jacobowitz <[email protected]>
1092 Kazu Hirata <[email protected]>
1093 Yao Qi <[email protected]>
1094
1095 * objfiles.c (init_entry_point_info): Call
1096 gdbarch_convert_from_func_ptr_addr and
1097 gdbarch_addr_bits_remove here ...
1098 (entry_point_address_query): ... instead of here.
1099 * solib-svr4.c (exec_entry_point): Call
1100 gdbarch_addr_bits_remove.
1101 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1102 the entry address.
1103
5edf51fe
YQ
11042012-11-27 Daniel Jacobowitz <[email protected]>
1105 Yao Qi <[email protected]>
1106
1107 * eval.c (evaluate_subexp_standard): Add handling of
1108 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1109 result of ptype for calling a TYPE_CODE_METHODPTR.
1110
ca242aad
YQ
11112012-11-27 Yao Qi <[email protected]>
1112
1113 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1114 warning.
1115 Add i18n markup.
1116
608e2dbb
TT
11172012-11-26 Alexander Larsson <[email protected]>
1118 Jan Kratochvil <[email protected]>
1119 Tom Tromey <[email protected]>
1120
1121 * NEWS: Mention mini debuginfo feature.
1122 * minidebug.c: New file.
1123 * configure.ac: Check for lzma.
1124 * configure, config.in: Rebuild.
1125 * Makefile.in (LIBLZMA): New variable.
1126 (CLIBS): Include LIBLZMA.
1127 (SFILES): Mention minidebug.c.
1128 (COMMON_OBS): Mention minidebug.o.
1129 * symfile.c (read_symbols): New function.
1130 (syms_from_objfile, reread_symbols): Call it.
1131 * symfile.h (find_separate_debug_file_in_section): Declare.
1132
17d6efc4
JB
11332012-11-26 Keith Seitz <[email protected]>
1134
1135 * exec.c (exec_file_attach): Move cleanup after verifying that
1136 memory has in fact been allocated.
1137
210bbc17
TT
11382012-11-26 Tom Tromey <[email protected]>
1139
1140 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1141 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1142 SYMBOL_SYMTAB.
1143 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1144
0270a750
PA
11452012-11-26 Maxime Villard <[email protected]>
1146 Pedro Alves <[email protected]>
1147
1148 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1149 size parameter passed to readlink by one byte.
1150 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1151 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1152 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1153 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1154 size by one byte.
1155
9c16be9a
YQ
11562012-11-26 Yao Qi <[email protected]>
1157
1158 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1159 extraneous parentheses.
1160
e6f3fa52
YQ
11612012-11-26 Yao Qi <[email protected]>
1162
1163 * remote.c (remote_start_remote): Typo fix.
1164
db75c717
DM
11652012-11-23 David S. Miller <[email protected]>
1166
1167 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1168 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1169 sparc32_sol2_fpregset): Declare new globals.
1170 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1171 'fpregset' argument.
1172 * sparc64-tdep.h (sparc64_supply_fpregset,
1173 sparc64_collect_fpregset): Likewise.
1174 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1175 globals.
1176 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1177 (sparc_fpregset): Declare new global.
1178 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1179 'fpregset' argument.
1180 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1181 into handler.
1182 (fill_fpregset): Likewise.
1183 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1184 sparc32_bsd_fpregset.
1185 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1186 sparc32_bsd_fpregset down into handler.
1187 (sparc32_linux_collect_core_fpregset): Likewise.
1188 * sparc-nat.c (sparc_fpregset): Define.
1189 (sparc_supply_fpregset): Add 'fpregset' argument.
1190 (sparc_collect_fpregset): Likewise.
1191 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1192 into fpregset handler.
1193 (sparc_store_inferior_registers): Likewise.
1194 (_initialize_sparc_nat): Set sparc_fpregset to
1195 sparc32_sunos4_fpregset if NULL.
1196 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1197 down into handler.
1198 (fill_fpregset): Likewise.
1199 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1200 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1201 use it to compute offsets.
1202 (sparc32_collect_fpregset): Likewise.
1203 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1204 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1205 down into handler.
1206 (fill_fpregset): Likewise.
1207 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1208 Likewise.
1209 (sparc64_linux_collect_core_fpregset): Likewise.
1210 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1211 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1212 use it to compute offsets.
1213 (sparc64_collect_fpregset): Likewise.
1214 (sparc64_bsd_fpregset): Define.
1215 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1216 sparc64_bsd_fpregset down into handler.
1217 (sparc64fbsd_collect_fpregset): Likewise.
1218 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1219 and pass sparc{32,64}_bsd_fpregset down into handler.
1220 (sparc64nbsd_collect_fpregset): Likewise.
1221 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1222 sparc64_bsd_fpregset down into handler.
1223 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1224 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1225 to sparc32_bsd_fpregset.
1226 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1227 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1228 (sparc32nbsd_supply_fpregset): Likewise.
1229
cfcad218
TT
12302012-11-21 Tom Tromey <[email protected]>
1231
1232 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1233 field.
1234 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1235 Remove.
1236 * c-typeprint.c (c_type_print_base): Update.
1237
85ddcc70
YQ
12382012-11-21 Yao Qi <[email protected]>
1239
1240 PR tdep/7438
1241 * gdbarch.sh (smash_text_address): Remove.
1242 * gdbarch.c, gdbarch.h: Regenerate.
1243 * arm-tdep.c (arm_smash_text_address): Remove.
1244 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1245 * hppa-tdep.c (hppa_smash_text_address): Remove.
1246 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1247 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1248 Caller update.
1249 * coffread.c (coff_symtab_read): Caller update.
1250 * dbxread.c (process_one_symbol): Likewise.
1251 * elfread.c (record_minimal_symbol): Likewise.
1252 * somread.c (som_symtab_read): Likewise.
1253
11522069
PM
12542012-11-20 Pierre Muller <[email protected]>
1255
1256 ARI fixes: sprintf rule.
1257 Replace sprintf function calls for char arrays by
1258 calls to xsnprintf calls.
1259 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1260 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1261 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1262 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1263 * breakpoint.c (condition_completer): Ditto.
1264 (create_tracepoint_from_upload): Ditto.
1265 * dwarf2read.c (file_full_name): Ditto.
1266 * gcore.c (gcore_command): Ditto.
1267 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1268 * go32-nat.c (go32_sysinfo): Ditto.
1269 * interps.c (interp_set): Ditto.
1270 * m32c-tdep.c (make_types): Ditto.
1271 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1272 * remote-m32r-sdi.c (m32r_open): Ditto.
1273 * sol-thread.c (td_err_string): Ditto.
1274 (td_state_string, solaris_pid_to_str): Ditto.
1275 * symtab.c (gdb_mangle_name): Ditto.
1276 * cli/cli-script.c (execute_control_command): Ditto.
1277 (define_command, document_command): Ditto.
1278 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1279 * tui/tui-stack.c (tui_make_status_line): Ditto.
1280 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1281
ace21957
MF
12822012-11-20 Mike Frysinger <[email protected]>
1283
1284 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1285 it when looking at ptr->func.
1286 * command.h (complete_on_cmdlist): Add a fourth arg.
1287 * completer.c (complete_line_internal): Add local ignore_help_classes,
1288 and set it to 1 when reason is not handle_help. Pass this down to
1289 lookup_cmd_1 and complete_on_cmdlist.
1290
ec6632d7
TT
12912012-11-20 Tom Tromey <[email protected]>
1292
1293 * completer.c (count_struct_fields): Remove.
1294 (expression_completer): Don't call count_struct_fields.
1295
ef37bb07
PA
12962012-11-20 Pedro Alves <[email protected]>
1297
1298 * annotate.c (breakpoints_changed): Rename to ...
1299 (annotate_breakpoints_changed): ... this.
1300 (annotate_stopped, breakpoint_changed): Adjust caller.
1301 * annotate.h (breakpoints_changed): Rename to ...
1302 (annotate_breakpoints_changed): ... this.
1303 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1304 (do_map_commands_command, init_raw_breakpoint, clear_command)
1305 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1306
b245bdfc
DM
13072012-11-20 David S. Miller <[email protected]>
1308
1309 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1310 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1311 sysconf.
1312 (get_cores_used_by_process): Update comment.
1313
bd0cfc4d
YQ
13142012-11-20 Yao Qi <[email protected]>
1315
1316 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1317
de9f1b68
YQ
13182012-11-20 Yao Qi <[email protected]>
1319
1320 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1321 to deprecated_context_hook.
1322
8870954f
YQ
13232012-11-19 Yao Qi <[email protected]>
1324
1325 * infrun.c (infwait_state): Add static.
1326
8dea366b
KS
13272012-11-16 Keith Seitz <[email protected]>
1328
1329 PR c++/13615
1330 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1331 parameter and pass it to lookup_symbol_file.
1332 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1333 to search base classes.
1334 (cp_lookup_symbol_namespace): Likewise.
1335 (lookup_namespace_scope): Likewise.
1336 (lookup_symbol_file): Add SEARCH parameter.
1337 If SEARCH is non-zero and no symbol is found, lookup the class
1338 and call cp_lookup_nested_symbol.
1339 (find_symbol_in_baseclass): New function.
1340 (cp_lookup_nested_symbol): Do not let
1341 cp_lookup_symbol_in_namespace search through base classes.
1342 Do that later when there is no global symbol match.
1343
e64e0392
DE
13442012-11-16 Doug Evans <[email protected]>
1345
1346 * main.c (gdb_datadir_provided): New static global.
1347 (get_init_files): If --data-directory is provided,
1348 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1349 * NEWS: Mention it.
1350
8bdce1ff
PM
13512012-11-15 Pierre Muller <[email protected]>
1352
1353 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1354 * gdb_stat.h: Delete. Moved to common directory.
1355 * common/gdb_stat.h: New file.
1356 * gdb_wait.h: Delete. Moved to common directory.
1357 * common/gdb_wait.h: New file.
1358 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1359 location.
1360 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1361 location.
1362 (stat.h rule): Adapt to new gdb_stat.h location.
1363 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1364 <sys/stat.h> header.
1365 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1366 <sys/wait.h> header.
1367
3a731e0f
PM
13682012-11-15 Pierre Muller <[email protected]>
1369
1370 * configure.ac (AC_HEADER_STAT): Remove.
1371 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1372 and corresponding code.
1373 * configure: Regenerate.
1374 * config.in: Regenerate.
1375
2792b94d
PM
13762012-11-15 Pierre Muller <[email protected]>
1377
1378 ARI xasprintf rule fixes.
1379 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1380 instead of xasprintf.
1381 (open_and_init_dwp_file): Ditto.
1382
5e34c6c3
LM
13832012-11-14 Luis Machado <[email protected]>
1384
1385 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1386 target types.
1387
e68227b9
TT
13882012-11-14 Tom Tromey <[email protected]>
1389
1390 * configure, config.in: Rebuild.
1391 * configure.ac: Don't check for ctype.h, time.h.
1392 * expprint.c: Don't use HAVE_CTYPE_H.
1393
aff68abb
TT
13942012-11-13 Tom Tromey <[email protected]>
1395
1396 * gdbarch.h, gdbarch.c: Rebuild.
1397 * gdbarch.sh (set_target_gdbarch): Rename from
1398 deprecated_target_gdbarch_select_hack.
1399 * arch-utils.c (gdbarch_update_p): Update.
1400 (set_gdbarch_from_file): Update.
1401
84277139 14022012-11-14 Pierre Muller <[email protected]>
f7c93334
PM
1403
1404 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1405 as responsible of contrib/ari directory.
1406
2ae28aa9
YQ
14072012-11-14 Daniel Jacobowitz <[email protected]>
1408 Yao Qi <[email protected]>
1409
1410 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1411 bit of EXC_RETURN.
1412 (arm_m_exception_cache, arm_m_exception_this_id)
1413 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1414 (arm_m_exception_unwind): New.
1415 (arm_gdbarch_init): Register arm_m_exception_unwind.
1416
62747a60
TT
14172012-11-13 Giuseppe Montalto <[email protected]>
1418
1419 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1420 parameter COUNT, for pattern filling of memory regions.
1421 * NEWS: Mention it.
1422
02d403bf 14232012-11-13 Markus Metzger <[email protected]>
4cd29721
MM
1424
1425 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1426 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1427 to print_source_lines ().
1428 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1429 flag.
1430 * source.c (print_source_lines_base): Prefix source line with
1431 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1432
02d403bf 14332012-11-13 Markus Metzger <[email protected]>
dfaae886
MM
1434
1435 * symtab.h (print_source_lines_flags): New enum.
1436 * source.c (print_source_lines_base): Change noerror to flags.
1437 (print_source_lines): Change noerror to flags.
1438
08850b56
PM
14392012-11-13 Pierre Muller <[email protected]>
1440
1441 ARI fixes: Avoid sprintf function use rule.
1442 * charset.c (convert_between_encodings): Use xsnprintf.
1443 * cli-out.c (cli_field_int): Likewise.
1444 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1445 * expprint.c (op_name_standard): Likewise.
1446 * frv-tdep.c (set_variant_num_gprs): Likewise.
1447 (set_variant_num_fprs): Likewise.
1448 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1449 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1450 (nto_init_solib_absolute_prefix): Likewise.
1451 * source.c (init_source_path): Likewise.
1452 (print_source_lines_base): Likewise.
1453 * valprint.c (print_wchar): Likewise.
1454 * mi/mi-out.c (mi_field_int): Likewise.
1455 windows-nat.c (windows_pid_to_exec_file): Likewise.
1456 (windows_create_inferior): Likewise.
1457 (_initialize_check_for_gdb_ini): Likewise.
1458
ca9d61b9
JB
14592012-11-12 Joel Brobecker <[email protected]>
1460
1461 * frame.h (deprecated_frame_register_read): Renames
1462 frame_register_read.
1463 * frame.c (deprecated_frame_register_read): Renames
1464 frame_register_read. Update all callers.
1465 * i386-tdep.c: Update all callers of frame_register_read.
1466 * infcmd.c: Likewise.
1467 * jit.c: Likewise.
1468 * mips-tdep.c: Likewise.
1469 * mt-tdep.c: Likewise.
1470 * sh64-tdep.c: Likewise.
1471
b2c7d45a
JB
14722012-11-12 Joel Brobecker <[email protected]>
1473
1474 * frame.h (frame_register_read): Remove FIXME comment.
1475 * frame.c (frame_register_read): Add suggestion explaining
1476 which function to use in place of this one.
1477
31594462
TT
14782012-11-12 Tom Tromey <[email protected]>
1479
1480 * python/python.c (start_type_printers): Initialize 'result_obj'.
1481
18a9fc12
TT
14822012-11-12 Tom Tromey <[email protected]>
1483
1484 * NEWS: Update.
1485 * data-directory/Makefile.in (PYTHON_FILES): Add
1486 type_printers.py.
1487 * python/lib/gdb/command/type_printers.py: New file.
1488 * python/lib/gdb/command/types.py (TypePrinter): New class.
1489 (_get_some_type_recognizers, get_type_recognizers,
1490 apply_type_recognizers, register_type_printer): New
1491 functions.
1492 * python/py-objfile.c (objfile_object) <type_printers>: New
1493 field.
1494 (objfpy_dealloc): Decref new field.
1495 (objfpy_new): Set new field.
1496 (objfpy_get_type_printers, objfpy_set_type_printers): New
1497 functions.
1498 (objfile_to_objfile_object): Set new field.
1499 (objfile_getset): Add "type_printers".
1500 * python/py-progspace.c (pspace_object) <type_printers>: New
1501 field.
1502 (pspy_dealloc): Decref new field.
1503 (pspy_new): Set new field.
1504 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1505 (pspace_to_pspace_object): Set new field.
1506 (pspace_getset): Add "type_printers".
1507 * python/python.c (start_type_printers, apply_type_printers,
1508 free_type_printers): New functions.
1509 (_initialize_python): Set gdb.type_printers.
1510 * python/python.h (start_type_printers, apply_type_printers,
1511 free_type_printers): Declare.
1512 * typeprint.c (type_print_raw_options, default_ptype_flags):
1513 Update for new fields.
1514 (do_free_global_table, create_global_typedef_table,
1515 find_global_typedef): New functions.
1516 (find_typedef_in_hash): Use find_global_typedef.
1517 (whatis_exp): Use create_global_typedef_table. Change cleanup
1518 handling.
1519 * typeprint.h (struct type_print_options) <global_typedefs,
1520 global_printers>: New fields.
1521
bd69fc68
TT
15222012-11-12 Tom Tromey <[email protected]>
1523
1524 * c-typeprint.c (find_typedef_for_canonicalize,
1525 print_name_maybe_canonical): New functions.
1526 (c_print_type): Look up type name.
1527 (cp_type_print_derivation_info): Add flags argument. Use
1528 print_name_maybe_canonical.
1529 (cp_type_print_method_args): Add wrapping.
1530 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1531 (c_type_print_template_args): New function.
1532 (c_type_print_base): Change wrapping. Use
1533 print_name_maybe_canonical.
1534 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1535 type name lookups.
1536 * gdbtypes.c (types_equal): No longer static.
1537 * gdbtypes.h (types_equal): Declare.
1538 * typeprint.c (type_print_raw_options, default_ptype_flags):
1539 Update.
1540 (struct typedef_hash_table): New.
1541 (hash_typedef_field, eq_typedef_field,
1542 recursively_update_typedef_hash, add_template_parameters,
1543 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1544 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1545 copy_typedef_hash, find_typedef_in_hash): New functions.
1546 * typeprint.h (struct type_print_options) <local_typedefs>:
1547 New field.
1548 (recursively_update_typedef_hash, add_template_parameters,
1549 create_typedef_hash, free_typedef_hash,
1550 make_cleanup_free_typedef_hash, copy_typedef_hash,
1551 find_typedef_in_hash): Declare.
1552
2621e0fd
TT
15532012-11-12 Tom Tromey <[email protected]>
1554
1555 * cp-support.c (inspect_type,
1556 replace_typedefs_qualified_name, replace_typedefs): Add
1557 finder, data arguments. Call as needed.
1558 (cp_canonicalize_string_full): New function.
1559 (cp_canonicalize_string_no_typedefs): Rewrite.
1560 * cp-support.h (canonicalization_ftype): New typedef.
1561 (cp_canonicalize_string_full): Declare.
1562
53342f27
TT
15632012-11-12 Tom Tromey <[email protected]>
1564
1565 * NEWS: Update.
1566 * c-typeprint.c (c_type_print_base): Handle print_method and
1567 print_typedefs flags.
1568 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1569 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1570 options.
1571 * typeprint.c (type_print_raw_options, default_ptype_flags):
1572 Update for new field.s
1573 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1574 (setprinttypelist, showprinttypelist, print_methods,
1575 print_typedefs): New globals.
1576 (set_print_type, show_print_type, set_print_type_methods,
1577 show_print_type_methods, set_print_type_typedefs,
1578 show_print_type_typedefs): New functions.
1579 (_initialize_typeprint): Update documentation. Add "print
1580 type methods" and "print type typedefs" parameters.
1581 * typeprint.h (struct type_print_options) <print_methods,
1582 print_typedefs>: New fields.
1583
6c8702eb
TT
15842012-11-12 Tom Tromey <[email protected]>
1585
1586 * c-typeprint.c (cp_type_print_method_args): Add flags
1587 argument. Call c_print_type, not type_print.
1588 (c_type_print_base): Call c_print_type, not type_print.
1589 Update.
1590
79d43c61
TT
15912012-11-12 Tom Tromey <[email protected]>
1592
1593 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1594 to type-printing functions.
1595 * ada-lang.h (ada_print_type): Add argument.
1596 * ada-typeprint.c (print_array_type, print_variant_clauses,
1597 print_variant_part, print_selected_record_field_types,
1598 print_record_field_types, print_unchecked_union_type,
1599 print_func_type, ada_print_type): Add flags argument.
1600 (ada_print_typedef): Update.
1601 * c-exp.y (OPERATOR conversion_type_id): Update.
1602 * c-lang.h (c_print_type, c_type_print_base): Update.
1603 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1604 c_type_print_modifier, c_type_print_args,
1605 c_type_print_varspec_suffix, c_type_print_base): Add flags
1606 argument.
1607 * cp-valprint.c (cp_print_class_member): Update.
1608 * dwarf2read.c (dwarf2_compute_name): Update.
1609 * f-lang.h (f_print_type): Add argument.
1610 * f-typeprint.c (f_print_type): Add flags argument.
1611 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1612 * go-lang.h (go_print_type): Add argument.
1613 * go-typeprint.c (go_print_type): Add flags argument.
1614 * jv-lang.h (java_print_type): Add argument.
1615 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1616 flags argument.
1617 * language.c (unk_lang_print_type): Add flags argument.
1618 * language.h (struct language_defn) <la_print_type>: Add flags
1619 argument.
1620 (LA_PRINT_TYPE): Likewise.
1621 * m2-lang.h (m2_print_type): Add argument.
1622 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1623 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1624 m2_unbounded_array, m2_record_fields): Add flags argument.
1625 * p-lang.h (pascal_print_type, pascal_type_print_base,
1626 pascal_type_print_varspec_prefix): Add argument.
1627 * p-typeprint.c (pascal_print_type,
1628 pascal_type_print_varspec_prefix, pascal_print_func_args,
1629 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1630 flags argument.
1631 * symmisc.c (print_symbol): Update.
1632 * typeprint.c (type_print_raw_options, default_ptype_flags):
1633 New globals.
1634 (type_print): Update.
1635 * typeprint.h (struct type_print_options): New.
1636 (type_print_raw_options): Declare.
1637 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1638
cf4ded82
KS
16392012-11-10 Keith Seitz <[email protected]>
1640
1641 * breakpoint.c (clear_command): Add cleanup for
1642 sals.sals if an argument is given.
1643
1644 * linespec.c (parse_linespec): Do cleanups after
1645 parsing a convenience variable.
1646
0d63ecda
KS
16472012-11-10 Keith Seitz <[email protected]>
1648
1649 PR gdb/14288
1650 * c-valprint.c (c_val_print): For character arrays
1651 with "print null" option on, print ellipses if
1652 the output is truncated and the next character is not \000.
1653 * valprint.c (MAX_WCHARS): Define.
1654 (WCHAR_BUFLEN): Likewise.
1655 (WCHAR_BUFLEN_MAX): Likewise.
1656 (struct converted_character): New structure.
1657 (count_next_character): New function.
1658 (print_converted_chars_to_obstack): New function.
1659 (generic_printstr): Rewrite using count_next_character
1660 and print_converted_chars_to_obstack.
1661
9b8d6827
SC
16622012-11-10 Stephane Carrez <[email protected]>
1663
1664 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1665 while executing the gdb command.
1666 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1667 are called from prompt_for_continue.
1668 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1669
e840f632
SC
16702012-11-10 Stephane Carrez <[email protected]>
1671
1672 PR tui/9584
1673
1674 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1675 but insert the command to execute in readline's buffer.
1676
f5656ead
TT
16772012-11-09 Tom Tromey <[email protected]>
1678
1679 * gdbarch.sh (target_gdbarch): Remove macro.
1680 (get_target_gdbarch): Rename to target_gdbarch.
1681 * gdbarch.c, gdbarch.h: Rebuild.
1682 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1683 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1684 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1685 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1686 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1687 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1688 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1689 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1690 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1691 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1692 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1693 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1694 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1695 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1696 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1697 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1698 target-descriptions.c, target.c, target.h, tracepoint.c,
1699 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1700 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1701 python/py-inferior.c, python/python.c: Update.
1702
ed8a1c2d
AB
17032012-11-09 Andrew Burgess <[email protected]>
1704
1705 * source.c (print_source_lines_base): Add fullname field giving
1706 full path to file in mi output.
1707 * NEWS: Mention the new fullname field.
1708
504b36fd
YQ
17092012-11-09 Yao Qi <[email protected]>
1710
1711 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1712
9107fc8d
PA
17132012-11-09 Pedro Alves <[email protected]>
1714
1715 PR gdb/14306
1716
1717 * infrun.c: Include target-descriptions.h.
1718 (follow_exec): Fetch new target description.
1719
30f8135b
YQ
17202012-11-09 Yao Qi <[email protected]>
1721
1722 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1723 0x8d (lea).
1724
558a9d82
YQ
17252012-11-09 Yao Qi <[email protected]>
1726
1727 * breakpoint.c: Declare set_tracepoint_count.
1728 (install_breakpoint): Call set_tracepoint_count if B is a
1729 tracepoint.
1730 (trace_command): Don't call set_tracepoint_count. Re-indent.
1731 (strace_command, ftrace_command):
1732 (create_tracepoint_from_upload): Likewise.
1733
6ecd4729
PA
17342012-11-09 Pedro Alves <[email protected]>
1735
1736 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1737 (get_target_gdbarch) <gdbarch.h>: New function.
1738 (startup_gdbarch) <gdbarch.h>: Declare.
1739 <gdbarch.c> (target_gdbarch): Delete.
1740 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1741 current inferior's gdbarch.
1742 <gdbarch.c> (get_target_gdbarch): New function.
1743 * inferior.c: Include target-descriptions.h.
1744 (free_inferior): Free target description info.
1745 (add_inferior_with_spaces): Set the inferior's initial
1746 architecture.
1747 (clone_inferior_command): Copy the original inferior's target
1748 description if it was user specified.
1749 (initialize_inferiors): Add comment.
1750 * inferior.h (struct target_desc_info): Forward declare.
1751 (struct inferior) <gdbarch>: New field.
1752 * linux-nat.c: Include target-descriptions.h.
1753 (linux_child_follow_fork): Copy the parent's architecture and
1754 target description to the child.
1755 * target-descriptions.c: Include inferior.h.
1756 (struct target_desc_info): New structure, holding the equivalents
1757 of ...
1758 (target_desc_fetched, current_target_desc)
1759 (target_description_filename): ... these removed globals.
1760 (get_tdesc_info, target_desc_info_from_user_p)
1761 (copy_inferior_target_desc_info, target_desc_info_free): New.
1762 (target_desc_fetched, current_target_desc)
1763 (target_description_filename): Reimplemented as convenience
1764 macros.
1765 (tdesc_filename_cmd_string): New global.
1766 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1767 tdescs filename ..." commands to the per-inferior equivalent.
1768 (show_tdesc_filename_cmd): Get the value to show from the
1769 per-inferior description filename.
1770 (_initilize_target_descriptions): Change the "set/show tdesc
1771 filename" commands' variable.
1772 * target-descriptions.h (struct target_desc, struct target_desc_info)
1773 (struct inferior): Forward declare.
1774 (target_find_description, target_clear_description)
1775 (target_current_description): Adjust comments.
1776 (copy_inferior_target_desc_info, target_desc_info_free)
1777 (target_desc_info_from_user_p). Declare.
1778
4ca4d161
SC
17792012-11-08 Stephane Carrez <[email protected]>
1780
1781 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1782 (tui_target_wait_hook): Remove.
1783 (tui_install_hooks): Install the about_to_proceed observer.
1784 (tui_remove_hooks): And remove it here.
1785
9015683b
TT
17862012-11-08 Tom Tromey <[email protected]>
1787
1788 * linux-tdep.c (linux_make_siginfo_note): New function.
1789 (linux_make_corefile_notes): Use it.
1790 * corelow.c (get_core_siginfo): New function.
1791 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1792
ea9f10bb
TT
17932012-11-08 Tom Tromey <[email protected]>
1794
1795 PR gdb/14704:
1796 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1797 (zlib_decompress_section): Remove.
1798 (gdb_bfd_map_section): Only check for compressed section
1799 in mmap case. Use bfd_get_full_section_contents.
1800 * osabi.c (check_note): Add 'sectsize' argument. Read
1801 section data.
1802 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1803 section data. Update for check_note change.
1804 * xcoffread.c (xcoff_initial_scan): Use
1805 bfd_get_full_section_contents.
1806 * py-auto-load.c (auto_load_section_scripts): Use
1807 bfd_get_full_section_contents.
1808 * contrib/cc-with-tweaks.sh: Add -Z option.
1809
d071a26b
TT
18102012-11-08 Tom Tromey <[email protected]>
1811
1812 * python/py-bpevent.c: Include defs.h.
1813 * python/py-continueevent.c: Include defs.h.
1814 * python/py-event.c: Include defs.h.
1815 * python/py-event.h: Don't include defs.h.
1816 * python/py-events.h: Don't include defs.h.
1817 * python/py-evts.c: Include defs.h.
1818 * python/py-exitedevent.c: Include defs.h.
1819 * python/py-newobjfileevent.c: Include defs.h.
1820 * python/py-signalevent.c: Include defs.h.
1821 * python/py-stopevent.c: Include defs.h.
1822 * python/py-threadevent.c: Include defs.h.
1823
4574b35a
PM
18242012-11-08 Pierre Muller <[email protected]>
1825
1826 * update-web-ari.sh (print_heading): Add number of files
1827 checked.
1828 (nb_files): New variable counting the number of sources
1829 files found by gdb_find.sh script.
1830 (debug_awk): New variable to allow extra debug output.
1831 (indexes): Add more information if DEBUG_AWK is set.
1832
2834ab42
EBM
18332012-11-08 Edjunior Machado <[email protected]>
1834
1835 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1836 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1837 following the change in PLT call stubs on linker.
1838
84f13595
PM
18392012-11-08 Pierre Muller <[email protected]>
1840
1841 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1842 as default language.
1843 (AWK): Use = instead of == for sh test to avoid warning.
1844 (Linux rule): Correct [:digit] into [[:digit:]].
1845 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1846 (vasprintf rule): Adapt to common subdirectory moves.
1847 (xasprintf rule): Idem.
1848 (xvasprintf rule): Idem.
1849 (var_boolean rule): Accept occurence in == or != test.
1850
1851 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1852
d69e6a33
SC
18532012-11-08 Stephane Carrez <[email protected]>
1854
1855 * tui/tui-hooks.c (tui_inferior_exit): New function.
1856 (tui_detach_hook): Remove.
1857 (tui_install_hooks): Install the inferior exit observer.
1858 (tui_remove_hooks): Remove it.
1859
1e96de83
YQ
18602012-11-08 Yao Qi <[email protected]>
1861
1862 PR gdb/14777.
1863 * source.c (_initialize_source): Call add_com_alias to abbreviate
1864 'forward-search' as 'fo'.
1865
0baeab03
PA
18662012-11-07 Pedro Alves <[email protected]>
1867
1868 * arm-tdep.c: Make defs.h be the first include.
1869 * coff-pe-read.c: Ditto.
1870 * gnu-nat.c: Ditto.
1871 * go32-nat.c: Ditto.
1872 * i386-nat.c: Ditto.
1873 * ppcnbsd-nat.c: Ditto.
1874 * ada-varobj.h: Don't include defs.h.
1875 * i386-darwin-tdep.h: Ditto.
1876 * i386-nat.h: Ditto.
1877
892a8570
PA
18782012-11-07 Pedro Alves <[email protected]>
1879
1880 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1881 Committee.
1882
719502e9
PM
18832012-11-07 Pierre Muller <[email protected]>
1884
1885 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1886 File already uses "gdb_dirent.h" header.
1887
ed86b350
YQ
18882012-11-07 Yao Qi <[email protected]>
1889
1890 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1891 tracepoint_count'.
1892
9a4f1e4f
TT
18932012-11-06 Tom Tromey <[email protected]>
1894
1895 * target.h (inferior_has_forked, inferior_has_vforked)
1896 (inferior_has_execd, inferior_has_called_syscall): Remove
1897 declarations.
1898
0316657e
PM
18992012-11-06 Pierre Muller <[email protected]>
1900
1901 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1902 add missing internalization markup.
1903
f6592439
PA
19042012-11-06 Pedro Alves <[email protected]>
1905
1906 PR gdb/14810
1907
1908 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1909
01f2564a
PM
19102012-11-06 Pierre Muller <[email protected]>
1911
1912 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1913 is not executable.
1914
f37c4431
JB
19152012-11-05 Joel Brobecker <[email protected]>
1916
1917 * gnulib/update-gnulib.sh: New script.
1918
550889c3
JB
19192012-11-05 Stephane Carrez <[email protected]>
1920
1921 * MAINTAINERS: Update my email address.
1922
954b50b3
TT
19232012-11-05 Tom Tromey <[email protected]>
1924
1925 * frame.c (put_frame_register): Don't use temporary buffer.
1926
68c9da30
PA
19272012-11-05 Pedro Alves <[email protected]>
1928
1929 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1930 child. Clear 'pending_detach'.
1931 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1932 'pending_detach' in the vfork parent.
1933
80626a55
DE
19342012-11-05 Doug Evans <[email protected]>
1935
1936 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1937 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1938 * dwarf2read.c: #include "elf-bfd.h".
1939 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1940 (dwop_section_names): Renamed from dwo_section names. All uses
1941 updated. Add entries for .debug_cu_index, .debug_tu_index.
1942 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1943 All uses updated.
1944 (struct dwp_sections): New type.
1945 (struct virtual_dwo_sections): New type.
1946 (struct dwp_hash_table): New type.
1947 (struct dwp_file): New type.
1948 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1949 read in. Handle DWOs coming from DWP files.
1950 (lookup_dwo_file_slot): New function.
1951 (dwarf2_locate_dwo_sections): Move definition closer to use.
1952 (create_dwo_debug_info_hash_table_reader): Renamed from
1953 create_debug_info_hash_table_reader. All callers updated.
1954 (create_dwo_debug_info_hash_table): Renamed from
1955 create_debug_info_hash_table. All callers updated.
1956 (create_dwp_hash_table): New function.
1957 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1958 (lookup_dwo_in_dwp): New function.
1959 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1960 is_dwp. All callers updated.
1961 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1962 (open_and_init_dwo_file): Renamed from init_dwo_file.
1963 All callers updated.
1964 (lookup_dwo_file): Delete.
1965 (dwarf2_locate_dwp_sections): New function.
1966 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1967 (allocate_dwp_loaded_cutus_table): New function.
1968 (open_and_init_dwp_file): New function.
1969 (lookup_dwo_cutu): New function.
1970 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1971
6f6484cd
YQ
19722012-11-03 Yao Qi <[email protected]>
1973
1974 Fix PR gdb/14617.
1975 * breakpoint.c (trace_pass_set_count): Call
1976 observer_notify_breakpoint_modified instead of
1977 observer_notify_tracepoint_modified.
1978 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1979
b45627a0
TT
19802012-11-02 Tom Tromey <[email protected]>
1981
1982 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1983 argument to complete_on_enum.
1984
d4fb63e1
TT
19852012-11-02 Tom Tromey <[email protected]>
1986
1987 * configure: Rebuild.
1988 * configure.ac (build_warnings): Add -Wempty-body.
1989 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1990 * remote.c (handle_notification): Use braces for empty 'else' body.
1991 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1992 'else' body.
1993 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1994 'else' body.
1995 * solib-som.c (som_relocate_section_addresses): Use braces
1996 for empty 'else' body.
1997 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1998 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1999
f50f4e56
PA
20002012-11-02 Pedro Alves <[email protected]>
2001
2002 PR gdb/14766
2003
2004 * infrun.c (handle_inferior_event)
2005 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
2006 null_ptid before handling a vfork child exec or exit. Switch to
2007 the event ptid afterwards.
2008
f0559fff
YQ
20092012-11-02 Yao Qi <[email protected]>
2010
2011 * std-operator.def: Remove OP_LABELED.
2012 * eval.c: Remove the declaration of 'get_label'.
2013 (get_label): Remove.
2014 (evaluate_struct_tuple): Remove code handling OP_LABELED.
2015 Update comment.
2016 Remove local variable 'variantno' and related code.
2017 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
2018 with 'fieldno'.
2019 * expprint.c (print_subexp_standard): Likewise.
2020 (dump_subexp_body_standard): Likewise.
2021 * parse.c (operator_length_standard): Likewise.
2022
e5496e3e
PM
20232012-11-01 Pierre Muller <[email protected]>
2024
2025 Incorporate ARI web page generator into GDB sources.
2026 * contrib/ari/create-web-ari-in-src.sh: New file.
2027 * contrib/ari/gdb_ari.sh: New file.
2028 * contrib/ari/gdb_find.sh: New file.
2029 * contrib/ari/update-web-ari.sh: New file.
2030
c66fb220
TT
20312012-10-31 Tom Tromey <[email protected]>
2032
2033 * gdbarch.c: Rebuild.
2034 * gdbarch.sh: Remove references to gdbarch_swap.
2035 * corelow.c (core_open): Remove obsolete comment.
2036
2f27adfe
AB
20372012-10-31 Andrew Burgess <[email protected]>
2038
2039 PR cli/14772
2040 * c-typeprint.c (c_print_type): Don't print a space for vector
2041 types, this is handled within the suffix.
2042 (c_type_print_varspec_suffix): Add a space to vector suffix.
2043
144db827
PA
20442012-10-26 Pedro Alves <[email protected]>
2045
2046 * amd64-tdep.c (amd64_relocate_instruction): Use
2047 store_unsigned_integer instead of memcpy.
2048 * i386-tdep.c (i386_relocate_instruction): Ditto.
2049
940c3c06
PA
20502012-10-26 Pedro Alves <[email protected]>
2051
2052 * infrun.c (handle_inferior_event): Merge handling of
2053 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
2054 switch case.
2055
47b19065
PA
20562012-10-26 Pedro Alves <[email protected]>
2057
2058 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
2059 Remove comment.
2060
87d2d2a4
PA
20612012-10-26 Pedro Alves <[email protected]>
2062
2063 * target.c (target_waitstatus_to_string): Handle
2064 TARGET_WAITKIND_VFORK_DONE.
2065
fed708ed
PA
20662012-10-26 Pedro Alves <[email protected]>
2067
2068 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
2069 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
2070
2590b645
JB
20712012-10-24 Tristan Gingold <[email protected]>
2072
2073 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
2074 Add comments.
2075
bed0c243
JB
20762012-10-24 Joel Brobecker <[email protected]>
2077
2078 * ravenscar-thread.c (ravenscar_wait): Only update the list
2079 of threads and inferior_ptid if the inferior is still alive.
2080
f69c91ad
JB
20812012-10-24 Joel Brobecker <[email protected]>
2082
2083 * ada-lang.c (is_known_support_routine): Use lbasename when
2084 matching the symtab's filename against
2085 known_runtime_file_name_patterns.
2086
d99dcf51
JB
20872012-10-24 Joel Brobecker <[email protected]>
2088
2089 * ada-lang.c (ada_same_array_size_p): New function.
2090 (ada_promote_array_of_integrals): New function.
2091 (coerce_for_assign): Add handling of arrays where the elements
2092 are integrals of a smaller size than the size of the target
2093 array element type.
2094
32560274
JB
20952012-10-24 Joel Brobecker <[email protected]>
2096
2097 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2098 against maximum exponent value.
2099
5a04cc98
JB
21002012-10-24 Joel Brobecker <[email protected]>
2101
2102 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2103 "unwind-seh.c".
2104
5ded5331
JB
21052012-10-24 Joel Brobecker <[email protected]>
2106
2107 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2108 strip typedef layer when computing the fixed type's field type,
2109 only when computing its size.
2110
2445fd7b
MK
21112012-10-24 Mark Kettenis <[email protected]>
2112
2113 PR gdb/12783
2114 * i386-tdep.c (i386_return_value): Handle complex double and long
2115 double.
2116
8f205f9c
JB
21172012-10-24 Joel Brobecker <[email protected]>
2118
2119 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2120 New local variable args_len.
2121 Quote the name of the executable when computing the command line.
2122
7f7930dd
MK
21232012-10-23 Mark Kettenis <[email protected]>
2124
2125 PR gdb/12796
2126 PR gdb/12798
2127 PR gdb/12800
2128 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2129 AMD64_FTAG_REGNUM.
2130 * amd64-tdep.c (amd64_classify): Classify complex types.
2131 (amd64_return_value): Handle the COMPLEX_X87 class.
2132
38a69d0a
JB
21332012-10-23 Joel Brobecker <[email protected]>
2134
2135 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2136 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2137
83ab93c6
JB
21382012-10-23 Joel Brobecker <[email protected]>
2139
2140 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2141 function.
2142 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2143 to amd64_windows_auto_wide_charset.
2144
f6fbab7d
YQ
21452012-10-23 Yao Qi <[email protected]>
2146
2147 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2148 * event-top.h: Remove its declaration.
2149 (async_request_quit): Call mark_async_signal_handler instead of
2150 mark_async_signal_handler_wrapper.
2151 (async_do_nothing, async_disconnect): Likewise.
2152 (async_stop_sig): Likewise.
2153 * remote.c (handle_remote_sigint): Likewise.
2154 (handle_remote_sigint_twice): Likewise.
2155
05fa9251
YQ
21562012-10-23 Yao Qi <[email protected]>
2157
2158 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2159 with 'static struct async_signal_handler *'.
2160 (sighup_token, sigquit_token, sigstp_token): Likewise.
2161
08af7a40
AA
21622012-10-22 Ali Anwar <[email protected]>
2163
2164 * gdbarch.sh (function_list): Use 'pstring' when printing
2165 a variable which could return NULL.
2166 * gdbarch.c: Regenerate.
2167
beb4b03c 21682012-10-10 Joel Brobecker <[email protected]>
f87e3f15 2169 Tom Tromey <[email protected]>
beb4b03c
JB
2170
2171 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2172 inneffective if condition by gdb assertion. Add function
2173 description comment.
2174
a5b12627
JB
21752012-10-19 Joel Brobecker <[email protected]>
2176
2177 * parser-defs.h (struct exp_descriptor): Document constraint
2178 on return value for "op_name" callbacks.
2179
0b0865da
TT
21802012-10-18 Tom Tromey <[email protected]>
2181
2182 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2183 * symtab.c (iterate_over_some_symtabs): Constify.
2184 * source.h (symtab_to_fullname): Return 'const char *'.
2185 * source.c (symtab_to_fullname): Return 'const char *'.
2186 * python/py-symtab.c (stpy_fullname): Constify.
2187 * cli/cli-cmds.c (edit_command): Constify.
2188 * breakpoint.c (print_breakpoint_location)
2189 (update_static_tracepoint): Constify.
2190
94b0e70d
TT
21912012-10-18 Tom Tromey <[email protected]>
2192
2193 * breakpoint.c (compare_breakpoints): Fix comparison.
2194
fff10684
TT
21952012-10-18 Tom Tromey <[email protected]>
2196
2197 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2198 gdb_wchar_t to convert_between_encodings.
2199
8de0566d
YQ
22002012-10-17 Yao Qi <[email protected]>
2201
2202 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2203 more parameter 'inferior'.
2204 * corefile.c (write_memory_with_notification): Caller update.
2205
2206 * mi/mi-cmd-var.c: Include "mi-main.h".
2207 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2208 to 1 and restore it later.
2209 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2210 and "data-write-memory-bytes.
2211 * mi/mi-interp.c: Include objfiles.h.
2212 (mi_interpreter_init): Call observer_attach_memory_changed.
2213 (mi_memory_changed): New.
2214 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2215 New field.
2216
2217 * NEWS: Mention new MI notification "memory-changed".
2218
6235cdd1
JK
22192012-10-16 Jan Kratochvil <[email protected]>
2220
2221 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2222
07540c15
DE
22232012-10-15 Doug Evans <[email protected]>
2224
2225 New option -nh: inhibit loading of ~/.gdbinit.
2226 * NEWS: Mention -nh.
2227 * main.c (captured_main): Recognize and process -nh.
2228 (print_gdb_help): Mention -nh.
2229 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2230
eab09350
L
22312012-10-15 H.J. Lu <[email protected]>
2232
2233 PR backtrace/14646
2234 PR gdb/14647
2235 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2236 pc_regnum_from_eax.
2237 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2238 nor pc_regnum_from_eax.
2239 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2240 nor pc_regnum_from_eax.
2241
9e3a7d65
JK
22422012-10-15 Jan Kratochvil <[email protected]>
2243
2244 Fix entry values resolving in inlined frames.
2245 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2246 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2247 entries of FRAME.
2248
c83393b9
JB
22492012-10-15 Joel Brobecker <[email protected]>
2250
2251 * configure.ac: Build with -DMS_WIN64 if building with Python
2252 enabled using GCC on amd64-windows.
2253 * configure: Regenerate.
2254
801e4185
TT
22552012-10-15 Tom Tromey <[email protected]>
2256
2257 PR python/14635:
2258 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2259 to Py_None.
2260
74f910c8
TT
22612012-10-15 Tom Tromey <[email protected]>
2262
2263 PR python/14634:
2264 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2265
2a7c8fd5
AB
22662012-10-11 Andrew Burgess <[email protected]>
2267
2268 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2269 reset thread numbering back to 1.
2270
7c09e5a0
DE
22712012-10-11 Doug Evans <[email protected]>
2272
2273 PR breakpoints/14643.
2274 * linespec.c (struct ls_parser): New member keyword_ok.
2275 (linespec_lexer_lex_string): Add comment.
2276 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2277 for one.
2278 (parse_linespec): Set keyword_ok.
2279
a1855c1d
DE
22802012-10-10 Doug Evans <[email protected]>
2281
844226d6
DE
2282 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2283 "0x" prefix on address in log message.
2284
a1855c1d
DE
2285 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2286 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2287 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2288 (lookup_dwo_file): Add const to dwo_name parameter.
2289 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2290
2e24f4aa
JK
22912012-10-06 Jan Kratochvil <[email protected]>
2292
2293 Fix crash during stepping on ppc32.
2294 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2295 SYM.
2296
aa14df25
DE
22972012-10-03 Doug Evans <[email protected]>
2298
2299 PR symtab/14601
2300 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2301
3d468296
AB
23022012-10-02 Andrew Burgess <[email protected]>
2303
2304 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2305 output and use uint32_t not long to ensure 4 byte size.
2306
8f0ee2eb
JB
23072012-10-02 Joel Brobecker <[email protected]>
2308
2309 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2310 unref'ed it.
2311
b3dc46ff
AB
23122012-10-01 Andrew Burgess <[email protected]>
2313
2314 * target.c (simple_search_memory): Include access length in
2315 warning message.
2316
f712f01f
EBM
23172012-09-28 Nathan Miller <[email protected]>
2318 Edjunior Machado <[email protected]>
2319
2320 PR gdb/13989
2321 * solib.c (solib_find): Prevent GDB from loading native libraries when
2322 debugging a cross-target corefile.
2323
39181896
PA
23242012-09-28 selven <[email protected]>
2325
2326 Make definition match declaration.
2327
2328 * regcache.c (regcache_register_status): Change return type to
2329 enum register_status.
2330
4c2786ba
YQ
23312012-09-28 Yao Qi <[email protected]>
2332
2333 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2334 write_memory_with_notification instead of write_memory.
2335 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2336 instead of target_write_memory.
2337
1ae0c35e
YQ
23382012-09-28 Yao Qi <[email protected]>
2339
2340 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2341 when the length of content is not an even number.
2342
7977e5d2
TT
23432012-09-27 Tom Tromey <[email protected]>
2344
2345 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2346 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2347
807160da
JB
23482012-09-27 Joel Brobecker <[email protected]>
2349
2350 * sol-thread.c (sol_thread_fetch_registers)
2351 (sol_thread_store_registers): Delete commented out code.
2352
43c75337
JB
23532012-09-27 Joel Brobecker <[email protected]>
2354
2355 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2356 Move these functions to sparc-sol-thread.c.
2357 * sparc-sol-thread.c: New file.
2358 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2359 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2360 configurations.
2361 * configure: Regenerate.
2362
d292a972
JB
23632012-09-27 Joel Brobecker <[email protected]>
2364
2365 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2366 Remove commented-out code.
2367
8c3da003
JB
23682012-09-27 Joel Brobecker <[email protected]>
2369
2370 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2371 Enable this code for sparc hosts only.
2372
f00482b6
JB
23732012-09-27 Joel Brobecker <[email protected]>
2374
2375 * procfs.h (procfs_find_LDT_entry): Add declaration.
2376 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2377 function procfs_find_LDT_entry.
2378
337c776f
JB
23792012-09-27 Joel Brobecker <[email protected]>
2380
2381 * procfs.c (proc_get_LDT_entry): Make static.
2382
1a04d88f
JB
23832012-09-27 Joel Brobecker <[email protected]>
2384
2385 * procfs.c (proc_find_memory_regions): Fix declaration.
2386
bad43aa5
SP
23872012-09-27 Siddhesh Poyarekar <[email protected]>
2388
2389 * amd64-tdep.c (amd64_return_value): Revert previous change
2390 that used TYPE_LENGTH directly.
2391 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2392 (bfin_store_return_value): Likewise.
2393 * cris-tdep.c (cris_store_return_value): Likewise.
2394 (cris_extract_return_value): Likewise.
2395 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2396 * hppa-tdep.c (hppa64_return_value): Likewise.
2397 * lm32-tdep.c (lm32_store_return_value): Likewise.
2398 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2399 * spu-tdep.c (spu_value_from_register): Likewise.
2400 * vax-tdep.c (vax_return_value): Likewise.
2401
63375b74
SP
24022012-09-27 Siddhesh Poyarekar <[email protected]>
2403
2404 * gdbtypes.c (lookup_array_range_type): Expand parameters
2405 LOW_BOUND and HIGH_BOUND to LONGEST.
2406 (lookup_string_range_type): Likewise.
2407 * gdbtypes.h (lookup_array_range_type): Likewise.
2408 (lookup_string_range_type): Likewise.
2409 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2410 Expand HIGHBOUND to ssize_t.
2411 (value_string): Likewise.
2412 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2413 (value_string): Likewise.
2414
19ca11c5
YQ
24152012-09-27 Yao Qi <[email protected]>
2416
2417 PR breakpoints/13898
2418 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2419 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2420 per breakpoint type.
2421
92107356
PM
24222012-09-26 Pierre Muller <[email protected]>
2423
2424 * procfs.c: Add gdb_bfd header.
2425 * rs6000-nat.c: Likewise.
2426 * solib-pa64.c: Likewise.
2427 * spu-linux-nat.c: Likewise.
2428 * windows-nat.c: Likewise.
2429
9742094a
TT
24302012-09-26 Tom Tromey <[email protected]>
2431
2432 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2433
0971de02
TT
24342012-09-26 Tom Tromey <[email protected]>
2435
2436 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2437 (read_common_block): Handle child DIEs with
2438 DW_AT_data_member_location.
2439 (new_symbol_full): Add special case for common blocks.
2440
4357ac6c
TT
24412012-09-26 Jan Kratochvil <[email protected]>
2442 Tom Tromey <[email protected]>
2443
2444 * dwarf2read.c (read_common_block): Rewrite.
2445 (new_symbol_full): Handle DW_TAG_common_block.
2446 * f-lang.c (head_common_list, find_common_for_function):
2447 Remove.
2448 * f-lang.h (struct common_entry, struct saved_f77_common,
2449 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2450 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2451 BLANK_COMMON_NAME_LOCAL): Remove.
2452 (struct common_block): New.
2453 * f-valprint.c (list_all_visible_commons): Remove.
2454 (info_common_command_for_block): New function.
2455 (info_common_command): Use it.
2456 * stack.c (iterate_over_block_locals): Special case for
2457 COMMON_BLOCK_DOMAIN.
2458 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2459 constant.
2460 (struct general_symbol_info) <value.common_block>: New field.
2461 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2462
965f07a8
TT
24632012-09-26 Jan Kratochvil <[email protected]>
2464 Tom Tromey <[email protected]>
2465
2466 * f-lang.c (allocate_saved_bf_node,
2467 allocate_saved_function_node, allocate_saved_f77_common_node,
2468 allocate_common_entry_node, tail_common_list, current_common,
2469 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2470 tmp_bf_ptr, add_common_block, add_common_entry,
2471 find_first_common_named, patch_common_entries,
2472 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2473 global_remote_debug, get_bf_for_fcn, saved_function_list,
2474 saved_function_list_end, clear_function_list, struct saved_fcn,
2475 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2476 SAVED_BF, SAVED_BF_PTR): Remove.
2477 * f-lang.h (tail_common_list, current_common,
2478 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2479 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2480 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2481 real_main_c_value): Remove.
2482 * f-valprint.c (there_is_a_visible_common_named): Remove.
2483
6f380991
AB
24842012-09-26 Andrew Burgess <[email protected]>
2485
2486 * breakpoint.c (update_global_location_list): Ignore previous
2487 duplicate status of a breakpoint when starting a new scan for
2488 duplicate breakpoints.
2489
9ead7ae4 24902012-09-26 Karthik Bhat <[email protected]>
8b3d5494 2491 PR breakpoints/14419
2536b51c
YQ
2492 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2493 support LLVM compiler.
9ead7ae4 2494
8f8a23a2
SP
24952012-09-26 Siddhesh Poyarekar <[email protected]>
2496
2497 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2498 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2499 (bfin_store_return_value): Likewise.
2500 * cris-tdep.c (cris_store_return_value): Likewise.
2501 (cris_extract_return_value): Likewise.
2502 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2503 * hppa-tdep.c (hppa64_return_value): Likewise.
2504 * lm32-tdep.c (lm32_store_return_value): Likewise.
2505 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2506 * spu-tdep.c (spu_value_from_register): Likewise.
2507 * vax-tdep.c (vax_return_value): Likewise.
2508
d7019589
SP
25092012-09-26 Siddhesh Poyarekar <[email protected]>
2510
2511 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2512 parameter LEN to ssize_t.
2513
744a8059
SP
25142012-09-25 Siddhesh Poyarekar <[email protected]>
2515
2516 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2517 variable LEN.
2518 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2519 directly.
2520 (alpha_store_return_value): Likewise.
2521 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2522 (amd64_push_arguments): Likewise.
2523 * ax-gdb.c (gen_trace_static_fields): Likewise.
2524 (gen_traced_pop): Likewise.
2525 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2526 * breakpoint.c (update_watchpoint): Likewise.
2527 * findcmd.c (parse_find_args): Use local variable for type
2528 instead of length.
2529 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2530 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2531 (h8300_store_return_value): Likewise.
2532 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2533 Use i386_darwin_arg_type_alignment directly.
2534 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2535 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2536 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2537 (m68hc11_extract_return_value): Likewise.
2538 * mep-tdep.c (mep_push_dummy_call): Likewise.
2539 * printcmd.c (float_type_from_length): Likewise.
2540 * s390-tdep.c (s390_value_from_register): Likewise.
2541 * stack.c (read_frame_arg): Likewise.
2542 * tracepoint.c (encode_actions_1): Likewise.
2543 * valops.c (value_fetch_lazy): Use local variable for type
2544 instead of length. Use TYPE_LENGTH directly.
2545 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2546
a4b411d6
JB
25472012-09-25 Joel Brobecker <[email protected]>
2548
2549 * symtab.c (skip_prologue_sal): Fix typo in comment.
2550
11dba07a
JB
25512012-09-25 Joel Brobecker <[email protected]>
2552
2553 * linespec.c (create_sals_line_offset): Fix typo in comment.
2554
318102b9
SP
25552012-09-25 Siddhesh Poyarekar <[email protected]>
2556
2557 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2558 use plongest to print the array size.
2559
b4aa388a
SP
25602012-09-24 Siddhesh Poyarekar <[email protected]>
2561
2562 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2563 * p-valprint.c (pascal_type_print_base): Likewise.
2564
84cebc4a
YQ
25652012-09-22 Yao Qi <[email protected]>
2566
2567 * remote.c (remote_get_trace_status): Remove setting default
2568 values of fields of 'ts'.
2569
04e7407c
JK
25702012-09-21 Jan Kratochvil <[email protected]>
2571
2572 Fix internal error on canonicalization of clang types.
2573 * cp-name-parser.y (operator): New comment at make_operator call for
2574 new, delete, new[] and delete[].
2575 (exp): Use "sizeof ". Add new comment at make_operator call.
2576
9bf4bce9
JK
25772012-09-21 Jan Kratochvil <[email protected]>
2578
2579 Fix disassemble without parameters in tailcall frame.
2580 * cli/cli-cmds.c (disassemble_current_function): Use
2581 get_frame_address_in_block.
2582
1c5b7826
TT
25832012-09-21 Tom Tromey <[email protected]>
2584
2585 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2586 TYPE_CODE_UNION>: Unify, removing a goto.
2587
62a49610
TT
25882012-09-21 Tom Tromey <[email protected]>
2589
2590 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2591
2603f7ee
AB
25922012-09-21 Andrew Burgess <[email protected]>
2593
2594 * findvar.c (read_frame_register_value): Mark the result value as
2595 optimized out if any of the input registers have been optimized out.
2596
810849a3
AS
25972012-09-21 Andreas Schwab <[email protected]>
2598
2599 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2600
0953dec1
SP
26012012-09-21 Siddhesh Poyarekar <[email protected]>
2602
2603 * eval.c (evaluate_subexp_standard): Eliminate single-use
2604 variable LOWER.
2605
82a90ccf
YQ
26062012-09-21 Yao Qi <[email protected]>
2607
2608 * mi/mi-interp.c: Declare mi_record_changed.
2609 (mi_interpreter_init): Call observer_attach_record_changed.
2610 (mi_record_changed): New.
2611 * record.c (record_open): Call observer_notify_record_changed.
2612 (cmd_record_stop): Call observer_notify_record_changed.
2613 * NEWS: Mention it.
2614
d7de8e3c
TT
26152012-09-20 Tom Tromey <[email protected]>
2616
2617 * NEWS: Update.
2618 * python/python.c (finalize_python): New function.
2619 (_initialize_python): Make a final cleanup.
2620
43c7c83d
DE
26212012-09-19 Doug Evans <[email protected]>
2622
2623 * buildsym.h (param_symbols): Delete, unused.
2624 (context_stack): Delete member "params", unused.
2625 * buildsym.c (push_context): Update.
2626 * dwarf2read.c (read_func_scope): Update.
2627
aa9259cc
TS
26282012-09-19 Thomas Schwinge <[email protected]>
2629
a6521d9a
TS
2630 * sh-tdep.c (sh_register_convert_to_virtual)
2631 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2632 all callers. Just do a memcpy if not the little-endian case.
2633
f92589cb
TS
2634 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2635 set_gdbarch_double_format and set_gdbarch_long_double_format.
2636 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2637 set_gdbarch_double_format.
2638 * sh-tdep.c (sh_gdbarch_init): Likewise.
2639
aa9259cc
TS
2640 * NEWS: Document the removal of SH's 'regs' command.
2641 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2642 command.
2643
c1d780c2
SDJ
26442012-09-18 Sergio Durigan Junior <[email protected]>
2645
2646 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2647 `jump'.
2648
4ae24af0
JB
26492012-09-18 Joel Brobecker <[email protected]>
2650
2651 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2652 language when iterating over symbols.
2653
bb25a15c
YQ
26542012-09-18 Yao Qi <[email protected]>
2655
2656 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2657 (mi_interpreter_init): Call observer_attach_tsv_created and
2658 observer_attach_tsv_deleted.
2659 (mi_tsv_created, mi_tsv_deleted): New.
2660 * tracepoint.c (delete_trace_state_variable): Call
2661 observer_notify_tsv_deleted.
2662 (trace_variable_command): Call observer_notify_tsv_created.
2663 (delete_trace_variable_command): Call
2664 observer_notify_tsv_deleted.
2665 (create_tsv_from_upload): Call observer_notify_tsv_created.
2666 * NEWS: Mention it.
2667
201b4506
YQ
26682012-09-18 Yao Qi <[email protected]>
2669
2670 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2671 if traceframe changed.
2672 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2673 "trace-find".
2674 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2675 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2676 'traceframe_changed'.
2677 (mi_traceframe_changed): New.
2678 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2679 New field.
2680 * NEWS: Mention the new MI notification.
2681
eaeb12db
MW
26822012-09-17 Mike Wrighton <[email protected]>
2683
2684 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2685
6e3c039e
JK
26862012-09-17 Jan Kratochvil <[email protected]>
2687
2688 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2689 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2690 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2691 Extend code also for PaX support. Convert all gdb_assert to warning
2692 calls.
2693
9a950c7c
JK
26942012-09-17 Jan Kratochvil <[email protected]>
2695
2696 Implement auto-load user conveniences suggested by Doug Evans.
2697 * auto-load.c: Include top.h.
2698 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2699 (_initialize_auto_load): New variable scripts_directory_help. Mention
2700 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2701 scripts-directory. Document in online help one can use also files for
2702 set auto-load safe-path.
2703 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2704 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2705
deec9a9d
SP
27062012-09-17 Siddhesh Poyarekar <[email protected]>
2707
2708 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2709 of LEN.
2710
354ecfd5
SP
27112012-09-17 Siddhesh Poyarekar <[email protected]>
2712
2713 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2714 ELTLEN and use TYPE_LENGTH directly.
2715 (m2_val_print): Likewise.
2716 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2717 variable LEN and use TYPE_LENGTH directly.
2718 (m68k_svr4_store_return_value): Likewise.
2719 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2720 ARGLEN and use TYPE_LENGTH directly.
2721 (mips_o64_push_dummy_call): Likewise.
2722 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2723 variable LENGTH and use TYPE_LENGTH directly.
2724 (s390_function_arg_float): Likewise.
2725 (s390_function_arg_integer): Likewise.
2726 (s390_push_dummy_call): Likewise.
2727 (s390_return_value_convention): Likewise.
2728 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2729 TYPE_LENGTH directly.
2730
6fc1c773
YQ
27312012-09-17 Yao Qi <[email protected]>
2732
2733 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2734 Update comment to add_setshow_integer_cmd.
2735 * cli/cli-setshow.c (do_set_command): Handle case
2736 'var_zuinteger_unlimited'.
2737 (do_show_command): Likewise.
2738 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2739 for command 'remotetimeout'.
2740 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2741 to var_integer.
f87e3f15
PA
2742 * source.c (_initialize_source): Call
2743 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
6fc1c773 2744
6acef6cd
SP
27452012-09-17 Siddhesh Poyarekar <[email protected]>
2746
2747 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2748 variable LEN.
2749
1ab3b62c
JK
27502012-09-17 Jan Kratochvil <[email protected]>
2751
2752 PR 14119
2753 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2754 (frame_pop): Drop also TAILCALL_FRAME frames.
2755 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2756
acf9414f
JK
27572012-09-17 Jan Kratochvil <[email protected]>
2758 Pedro Alves <[email protected]>
2759
2760 PR 14548
2761 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2762 function start if we are already at function start. Both for
2763 reverse-next and for reverse-step into function without line number
2764 info.
2765
193facb3
JK
27662012-09-17 Jan Kratochvil <[email protected]>
2767
2768 Code cleanup - rename 'inline' depth to 'artificial' depth.
2769 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2770 frame_id_artificial_p, extend the comment.
2771 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2772 * frame.c (fprint_frame_id): Rename at a user, change debug output
2773 text to "artificial=".
2774 (skip_inlined_frames): Rename to ...
2775 (skip_artificial_frames): ... here. Extend the comment.
2776 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2777 (frame_id_inlined_p): Rename to ...
2778 (frame_id_artificial_p): ... here. Rename at a user.
2779 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2780 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2781 at a user.
2782 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2783 Extend the comment.
2784 (frame_id_inlined_p): Rename to ...
2785 (frame_id_artificial_p): ... here.
2786 * inline-frame.c (inline_frame_this_id): Rename at a user.
2787
42056501
AB
27882012-09-14 Andrew Burgess <[email protected]>
2789
2790 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2791 vector variables using vector_size syntax rather than array
2792 syntax.
2793
84c47588
SP
27942012-09-14 Siddhesh Poyarekar <[email protected]>
2795
2796 * valarith.c (value_concat): Replace unsafe ALLOCA with
2797 XMALLOC/XFREE.
2798
f4045bcb
PA
27992012-09-14 Pedro Alves <[email protected]>
2800
2801 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2802
63b46266
YPK
28032012-09-14 Khoo Yit Phang <[email protected]>
2804
2805 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2806 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2807 data-directory as appropriate.
2808
ddd7a8e7
SP
28092012-09-14 Siddhesh Poyarekar <[email protected]>
2810
2811 * printcmd.c (ui_printf): Eliminate single-use variable
2812 PARAM_LEN.
2813
d649a38e
YQ
28142012-09-14 Yao Qi <[email protected]>
2815 Pedro Alves <[email protected]>
2816
2817 * valops.c (value_assign): Move observer_notify_target_changed
2818 below to replace reinit_frame_cache.
2819
b9516fa1
YPK
28202012-09-13 Khoo Yit Phang <[email protected]>
2821
2822 Refactor Python "gdb" module into a proper Python package, by
2823 introducing a new "_gdb" module for code implemented in C, and
2824 using reload/__import__ instead of exec.
2825 * python/lib/gdb/__init__.py: Import * from _gdb.
2826 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2827 prompt_hook, sys.argv): Moved from finish_python_initialization.
2828 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2829 (packages, auto_load_packages): New list and function replacing
2830 module_dict and auto-loading code, using __file__ instead of
2831 gdb.PYTHONDIR and reload/__import__ instead of exec.
2832 (GdbSetPythonDirectory): Replacing function of the same name
2833 from finish_python_initialization, using reload/__import__ instead
2834 of exec, as well as call auto_load_packages.
2835 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2836 gdb_python_module and not gdb_module.
2837 * python/python-internal.h (gdb_python_module): Declare.
2838 * python/python.c (gdb_python_module): New global.
2839 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2840 (_initialize_python): Rename gdb module to _gdb.
2841 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2842 (finish_python_initialization): Move Python code to
2843 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2844 __main__.
2845
aa0fbdd8
PA
28462012-09-13 Pedro Alves <[email protected]>
2847
2848 * Makefile.in (COMMON_OBS): Add registry.o.
2849 * registry.c: New file.
2850 * registry.h (struct registry_container): Declare.
2851 (registry_data_callback): New typedef.
2852 (struct registry_data, struct registry_data_registration, struct
2853 registry_data_registry): New type.
2854 (register_data_with_cleanup, registry_alloc_data)
2855 (registry_callback_adaptor, registry_clear_data)
2856 (registry_container_free_data, registry_set_data, registry_data):
2857 Declare.
2858 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2859 the new common structures and functions.
2860 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2861 callback typedefs.
2862
42b5c53d
MW
28632012-09-12 Mike Wrighton <[email protected]>
2864
2865 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2866 there is an error inserting hardware breakpoints and use the
2867 error message from the target.
2868
2869 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
f87e3f15
PA
2870 Catch this exception and print the error message contained within.
2871 Do not print the default hardware error breakpoint message in this
2872 case.
42b5c53d 2873
a1b64ce1
DE
28742012-09-12 Doug Evans <[email protected]>
2875
2876 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2877 cu == NULL.
2878
83a788b8
DE
28792012-09-11 Doug Evans <[email protected]>
2880
2881 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2882 .gdb_index symbol attributes if there are none.
2883
d9eaeb59
JB
28842012-09-11 Joel Brobecker <[email protected]>
2885
2886 * symtab.h (struct minimal_symbol) [has_size]: New field.
2887 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2888 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2889 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2890 minimal symbols if the symbol's size is actually known.
2891 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2892 of msymbol's size field. Add comment.
2893 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2894 SET_MSYMBOL_SIZE to set the minimal symbol size.
2895
a83e9154
JB
28962012-09-11 Joel Brobecker <[email protected]>
2897
2898 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2899 minimal_symbol struct object, rather than setting some of its
2900 fields one by one.
2901
350b1b26
AB
29022012-09-11 Andrew Burgess <[email protected]>
2903
2904 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2905 passed_a_ptr flag when displaying typedef types.
2906
2fa15f23
JB
29072012-09-10 Joel Brobecker <[email protected]>
2908
2909 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2910 the optimized_out flag is preserved.
2911
5152ff90
AG
29122012-09-10 Anthony Green <[email protected]>
2913
2914 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2915 prologue changes in GCC.
2916
5b4f6e25
KS
29172012-09-10 Keith Seitz <[email protected]>
2918
2919 PR gdb/13483
2920 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2921 (BOOL_CONVERSION_BADNESS): ... this.
2922 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2923 (rank_one_type): Allow all boolean conversions
2924 permitted by the standard.
2925
f1070426
TT
29262012-09-06 Tom Tromey <[email protected]>
2927
2928 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2929 Don't decref py_objfile.
2930
a8db4212
YPK
29312012-09-02 Khoo Yit Phang <[email protected]>
2932
2933 Do not enable -lmcheck by default when Python is enabled with
2934 threading support.
2935 * configure.ac: (python_has_threads) New variable, by testing
2936 if WITH_THREAD is defined in Python.h.
2937 Move --enable-lmcheck after --with-python.
2938 Do not enable -lmcheck by default if python_has_threads=yes.
2939 Warn if --enable-lmcheck and python_has_threads=yes.
2940 * configure: Regenerate.
2941
648beb2b
YQ
29422012-08-31 Yao Qi <[email protected]>
2943
2944 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2945 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2946 Update some commands.
2947 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
f87e3f15
PA
2948 * mi/mi-main.c (mi_cmd_execute): Set
2949 '*parse->cmd->suppress_notification' to 1.
648beb2b 2950
ef07a9f7
YQ
29512012-08-31 Yao Qi <[email protected]>
2952
2953 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2954
fda395cf
YPK
29552012-08-30 Khoo Yit Phang <[email protected]>
2956
2957 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2958
8efd8e78
DE
29592012-08-29 Doug Evans <[email protected]>
2960
2961 * main.c (print_gdb_help): Remove reference to
2962 --use-deprecated-index-sections.
2963
883b9c6c
YQ
29642012-08-28 Yao Qi <[email protected]>
2965
2966 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2967 (init_cmds): Call add_setshow_uinteger_cmd for command
2968 'max-user-call-depth'.
2969 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2970 declaration of 'max_user_call_depth'.
2971 * frame.c (backtrace_limit): Add 'unsigned'.
2972 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2973 'limit'.
2974 * remote.c (remoteaddresssize): Add 'unsigned'.
2975 (remote_address_masked): Change local var 'address_size' to
2976 'unsigned'.
2977 (_initialize_remote): Call add_setshow_uinteger_cmd for
2978 'remoteaddresssize'.
2979 * top.c (history_size): Add 'unsigned'.
2980 (show_commands): Change local variables to 'unsigned'.
2981 (set_history_size_command): Don't check history_size is negative.
2982 Adjust the condition to call unstifle_history and set history_size
2983 to UNIT_MAX.
2984
1292279a
PA
29852012-08-28 Pedro Alves <[email protected]>
2986
2987 PR gdb/14428
2988
2989 * infcmd.c (default_print_one_register_info): New, factored out
2990 from default_print_registers_info.
2991 (default_print_registers_info): Use it. Mark value unavailable if
2992 necessary.
2993 (registers_info): Print user registers with
2994 default_print_one_register_info.
2995
f629cd75
L
29962010-08-27 H.J. Lu <[email protected]>
2997
2998 PR tui/14486
2999 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
3000 is not NULL before referencing it.
3001
1c8cdcb1
JK
30022012-08-27 Jan Kratochvil <[email protected]>
3003
3004 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
3005 variable pc. Call find_pc_line instead of find_pc_overlay, restore
3006 original PC for it.
3007
e9687799
JK
30082012-08-27 Eli Zaretskii <[email protected]>
3009 Jan Kratochvil <[email protected]>
3010
3011 * auto-load.c (auto_load_objfile_script): Rename to ...
3012 (auto_load_objfile_script_1): ... here, change variable realname to
3013 parameter realname, document it, add return value, add variable retval.
3014 (auto_load_objfile_script): New function.
3015
7afa1642
JK
30162012-08-27 Jan Kratochvil <[email protected]>
3017
3018 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
3019 followed by a whitespace.
3020
dc7650b8
JK
30212012-08-27 Jan Kratochvil <[email protected]>
3022
28e66c70 3023 PR gdb/14494.
dc7650b8
JK
3024 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
3025 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
3026 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
3027 here.
3028
1591a1e8
PA
30292012-08-27 Wei-cheng Wang <[email protected]>
3030
3031 * memattr.c (create_mem_region): Fix memory region overlapping
3032 checking.
3033
ecfb0d68
SP
30342012-08-24 Siddhesh Poyarekar <[email protected]>
3035
3036 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
3037 with xmalloc/cleanup.
3038 * mt-tdep.c (mt_push_dummy_call): Likewise.
3039 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
3040 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
3041
8c56c1b9
YQ
30422012-08-24 Yao Qi <[email protected]>
3043
3044 * jv-exp.y (push_expression_name): Add "." at the end of error
3045 message.
3046
e3480f4a
YPK
30472012-08-23 Khoo Yit Phang <[email protected]>
3048
3049 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
3050 * python/python.c (_initialize_python): Update documentation.
3051
dfbd5e7b
PA
30522012-08-23 Pedro Alves <[email protected]>
3053
3054 * infrun.c (_initialize_infrun) <handle command help text>:
3055 Mention that multiple signals are supported.
3056
2edda2ff
PA
30572012-08-23 Pedro Alves <[email protected]>
3058
3059 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
3060 string.
3061
8d735b87
YQ
30622012-08-23 Yao Qi <[email protected]>
3063
3064 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
3065 (tfind_1): Don't call registers_changed, set_traceframe_num,
3066 and clear_traceframe_info.
3067 Call set_current_traceframe.
3068 (set_current_traceframe): call set_traceframe_num.
3069
c5d9b215
SDJ
30702012-08-22 Sergio Durigan Junior <[email protected]>
3071
3072 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
3073 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
3074
037bbc8e
YPK
30752012-08-22 Khoo Yit Phang <[email protected]>
3076
3077 Enable readline in Python in a GDB-specific way and block the
3078 standard Python readline module to prevent conflicts with GDB.
3079 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
3080 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
3081 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
3082 * python/py-gdb-readline.c: New file.
3083 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
3084 prototype.
3085 * python/python.c (_initialize_python): Call
3086 gdbpy_initialize_gdb_readline.
3087
406b1477
KS
30882012-08-22 Keith Seitz <[email protected]>
3089
3090 * defs.h: Include build-gnulib/config.h
3091
6ca1b147
JM
30922012-08-22 Joseph Myers <[email protected]>
3093
3094 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3095 and blx pc.
3096
8315665e
YPK
30972012-08-22 Khoo Yit Phang <[email protected]>
3098
3099 Add a new "python-interactive" command that starts a standard
3100 Python interactive prompt with "pi" as alias, and add "py" as
3101 an alias to "python".
3102 * NEWS: Mention the new commands.
8315665e
YPK
3103 * python/python.c (eval_python_command): New function.
3104 (python_interactive_command): For "python-interactive" with
3105 arguments, call eval_python_command. For "python-interactive"
3106 without arguments, call PyRun_InteractiveLoop.
3107 (_initialize_python): Add "python-interactive" command with
3108 "pi" as alias, and add "py" as an alias to "python".
3109
522002f9
TT
31102012-08-22 Tom Tromey <[email protected]>
3111
3112 * defs.h (quit_flag): Don't declare.
3113 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3114 (QUIT): Use new functions.
3115 * event-top.c (command_handler): Use clear_quit_flag.
3116 (handle_sigint): Use set_quit_flag.
3117 (async_request_quit): Use check_quit_flag. Don't check
3118 immediate_quit.
3119 * exceptions.c (throw_exception): Use clear_quit_flag.
3120 * main.c (captured_main): Use clear_quit_flag.
3121 * python/python.c (clear_quit_flag, set_quit_flag)
3122 (check_quit_flag): New functions.
3123 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3124 clear_quit_flag.
3125 * remote.c (remote_wait_as): Use check_quit_flag,
3126 clear_quit_flag.
3127 (remote_start_remote): Call QUIT.
3128 * symfile.c (load_progress): Use check_quit_flag.
3129 * top.c (command_loop): Use clear_quit_flag.
3130 (command_line_input): Call QUIT.
3131 * utils.c (quit_flag): Conditionally define.
3132 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3133 functions.
3134 (prompt_for_continue): Call QUIT. Use quit, not
3135 async_request_quit.
3136 * remote-mips.c (mips_expect_timeout): Call QUIT.
3137 * monitor.c (monitor_expect): Call QUIT.
3138
b583003e
TT
31392012-08-22 Tom Tromey <[email protected]>
3140
3141 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3142 (async_init_signals): Update.
3143 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3144 (SIGWINCH_HANDLER_BODY): Remove.
3145
e1507e95
TT
31462012-08-22 Tom Tromey <[email protected]>
3147
3148 * jit.c (jit_object_close_impl): Don't malloc the objfile
3149 name.
3150 * objfiles.c (allocate_objfile): Don't malloc the objfile
3151 name.
3152 (free_objfile): Don't free the objfile name.
3153 * objfiles.h (struct objfile) <name>: Update comment.
3154 * symfile.c (reread_symbols): Fix reference counting. Don't
3155 malloc objfile name.
3156
1c00ec6b
TT
31572012-08-22 Tom Tromey <[email protected]>
3158
3159 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3160 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3161 (symfile_bfd_open): Likewise.
3162 (generic_load): Likewise.
3163 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3164 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3165 gdb_bfd_open.
3166 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3167 Use gdb_bfd_open.
3168 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3169 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3170 (pmon_load_fast): Likewise.
3171 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3172 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3173 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3174 (macho_check_dsym): Likewise.
3175 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3176 (m32r_upload_command): Likewise.
3177 * gdb_bfd.h (gdb_bfd_cache): Declare.
3178 * gdb_bfd.c (struct gdb_bfd_data): New.
3179 (gdb_bfd_cache): New global.
3180 (struct gdb_bfd_cache_search): New.
3181 (hash_bfd): New function.
3182 (eq_bfd): Likewise.
3183 (gdb_bfd_open): Likewise.
3184 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3185 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3186 gdb_bfd_data.
3187 * exec.c (exec_file_attach): Use gdb_bfd_open.
3188 * dsrec.c (load_srec): Use gdb_bfd_open.
3189
6532ff36
TT
31902012-08-22 Tom Tromey <[email protected]>
3191
3192 * dwarf2read.c (macro_start_file): Update.
3193 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3194 (free_objfile_per_bfd_storage): Destroy macro_cache.
3195 (allocate_objfile, free_objfile): Update.
3196 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3197 New field.
3198 (struct objfile) <macro_cache>: Remove.
3199 * symfile.c (reread_symbols): Update.
3200 * symmisc.c (print_symbol_bcache_statistics): Update.
3201 (print_objfile_statistics): Update.
3202
706e3705
TT
32032012-08-22 Tom Tromey <[email protected]>
3204
3205 * elfread.c (elf_symtab_read): Update.
3206 * objfiles.c (objfiles_bfd_data): New global.
3207 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3208 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3209 (allocate_objfile, free_objfile): Update.
3210 (_initialize_objfiles): Initialize objfiles_bfd_data.
3211 * objfiles.h (struct objfile_per_bfd_storage): New.
3212 (struct objfile) <per_bfd>: New field.
3213 <filename_cache>: Remove.
3214 (set_objfile_per_bfd): Declare.
3215 * symfile.c (reread_symbols): Update. Call
3216 set_objfile_per_bfd.
3217 (allocate_symtab): Update.
3218 * symmisc.c (print_symbol_bcache_statistics): Update.
3219 (print_objfile_statistics): Print the size of the BFD obstack.
3220
e992eda4
TT
32212012-08-22 Tom Tromey <[email protected]>
3222
3223 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3224 * gdb_bfd.c: Use DEFINE_REGISTRY.
3225 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3226 (gdb_bfd_ref): Call bfd_alloc_data.
3227 (gdb_bfd_unref): Call bfd_free_data.
3228
6b81941e
TT
32292012-08-22 Tom Tromey <[email protected]>
3230
3231 * registry.h (struct registry_fields): New.
3232 (REGISTRY_FIELDS): Redefine.
3233 (REGISTRY_ACCESS_FIELD): New macro.
3234 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3235 functions.
3236
8e260fc0
TT
32372012-08-22 Tom Tromey <[email protected]>
3238
3239 * auto-load.c (_initialize_auto_load): Update.
3240 * solib-svr4.c (_initialize_svr4_solib): Update
3241 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3242 * solib-darwin.c (_initialize_darwin_solib): Update.
3243 * registry.h: New file.
3244 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3245 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3246 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3247 (register_program_space_data_with_cleanup)
3248 (register_program_space_data, program_space_alloc_data)
3249 (clear_program_space_data, set_program_space_data)
3250 (program_space_data): Don't declare.
3251 * progspace.c: Use DEFINE_REGISTRY.
3252 (struct program_space_data, struct
3253 program_space_data_registration, struct
3254 program_space_data_registry, program_space_data_registry)
3255 (register_program_space_data_with_cleanup)
3256 (register_program_space_data, program_space_alloc_data)
3257 (program_space_free_data, clear_program_space_data)
3258 (set_program_space_data, program_space_data): Remove.
3259 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3260 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3261 (register_objfile_data_with_cleanup, register_objfile_data)
3262 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3263 declare.
3264 * objfiles.c: Use DEFINE_REGISTRY.
3265 (struct objfile_data, struct objfile_data_registration, struct
3266 objfile_data_registry, objfile_data_registry)
3267 (register_objfile_data_with_cleanup, register_objfile_data)
3268 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3269 (set_objfile_data, objfile_data): Remove.
3270 (_initialize_objfiles): Update.
3271 * jit.c (_initialize_jit): Update.
3272 * inflow.c (_initialize_inflow): Update.
3273 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3274 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3275 (register_inferior_data_with_cleanup, register_inferior_data)
3276 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3277 declare.
3278 * inferior.c: Use DEFINE_REGISTRY.
3279 (struct inferior_data, struct inferior_data_registration, struct
3280 inferior_data_registry, inferior_data_registry)
3281 (register_inferior_data_with_cleanup, register_inferior_data)
3282 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3283 (set_inferior_data, inferior_data): Remove.
3284 * auxv.c (_initialize_auxv): Update.
3285 * ada-lang.c (_initialize_ada_language): Update.
3286 * breakpoint.c (_initialize_breakpoint): Update.
3287 * i386-nat.c (i386_use_watchpoints): Update.
3288
ed9eebaf
TT
32892012-08-22 Tom Tromey <[email protected]>
3290
3291 * exec.c (exec_close, exec_file_attach): Update.
3292 (add_to_section_table): Initialize 'key' field.
3293 (add_target_sections, remove_target_sections): Add 'key' argument.
3294 * exec.h (add_target_sections, remove_target_sections): Add
3295 'key' argument.
3296 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3297 (reload_shared_libraries_1): Update.
3298 * target.h (struct target_section) <key>: New field.
3299
2f2e97fa
TT
33002012-08-22 Tom Tromey <[email protected]>
3301
3302 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3303
b3dbbd6f
PM
33042012-08-21 Pierre Muller <[email protected]>
3305
3306 * symfile.c (allocate_symtab): Use host_address_to_string
3307 function instead of cast of pointer to long which is not
3308 compatible with x86_64-w64-mingw32 build.
3309
f94363d7
AP
33102012-08-19 Andrew Pinski <[email protected]>
3311
3312 * mips-tdep.c (is_octeon): New function.
3313 (is_octeon_bbit_op): New function.
3314 (mips32_next_pc): Handle Octeon's bbit instructions.
3315 (mips32_instruction_has_delay_slot): Likewise.
3316
78a59c2f
AP
33172012-08-19 Andrew Pinski <[email protected]>
3318
3319 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3320 before the function.
3321
4f5bcb50
AP
33222012-08-19 Andrew Pinski <[email protected]>
3323
3324 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3325
e5afdbd7
KS
33262012-08-19 Keith Seitz <[email protected]>
3327
3328 PR c++/14365
3329 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3330 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3331
13c9750e
EZ
33322012-08-18 Eli Zaretskii <[email protected]>
3333
3334 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3335 The typo broke "make TAGS".
3336
db761810 33372012-08-17 Joel Brobecker <[email protected]>
3338
3339 GDB 7.5 released.
3340
a451cb65
KS
33412012-08-17 Keith Seitz <[email protected]>
3342
3343 PR c++/13356
3344 * gdbtypes.c (strict_type_checking): New variable.
3345 (show_strict_type_checking): New function.
3346 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3347 if strict type checking is disabled.
3348 (_initialize_gdbtypes): Add "check type" subcommand.
3349 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3350
33512012-08-17 Keith Seitz <[email protected]>
3352
3353 * language.h (type_mode): Remove.
3354 (type_check): Remove.
3355 (struct language_defn): Remove la_type_check.
3356 (STRICT_TYPE): Remove unused macro.
3357 (type_error): Remove.
3358 * language.c (set_type_range_case): Renamed to ...
3359 (set_range_case): ... this. Update all callers.
3360 Remove type_mode/type_check.
3361 (type_mode): Remove.
3362 (type_check): Remove.
3363 (show_type_command): Remove.
3364 (set_type_command): Remove.
3365 (language_info): Remove type checking output.
3366 (type_error): Remove unused function.
3367 (range_error): Update comment.
3368 (unknown_language_defn): Remove la_type_check.
3369 (auto_language_defn): Likewise.
3370 (local_language_defn): Likewise.
3371 (_initialize_language): Remove "check type" subcommand.
3372 * ada-lang.c (ada_language_defn): Remove la_type_check.
3373 * c-lang.c (c_language_defn): Likewise.
3374 (cplus_language_defn): Likewise.
3375 (asm_language_defn): Likewise.
3376 (minimal_language_defn): Likewise.
3377 * d-lang.c (d_language_defn): Likewise.
3378 * f-lang.c (f_language_defn): Likewise.
3379 * go-lang.c (go_language_defn): Likewise.
3380 * jv-lang.c (java_language_defn): Likewise.
3381 * m2-lang.c (m2_language_defn): Likewise.
3382 * objc-lang.c (objc_language_defn): Likewise.
3383 * opencl-lang.c (opencl_language_defn): Likewise.
3384 * p-lang.c (pascal_language_defn): Likewise.
3385
dbf6a605
MF
33862012-08-16 Mike Frysinger <[email protected]>
3387
3388 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3389
973e3cf7
JB
33902012-08-16 Joel Brobecker <[email protected]>
3391
3392 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3393 New function.
3394 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3395 using the regache. Use ia64_hpux_get_register_from_save_state_t
3396 to access the bsp and bspstore registers if not.
3397
d80ee84f
JB
33982012-08-16 Joel Brobecker <[email protected]>
3399
3400 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3401 * breakpoint.c (detach_breakpoints): Change pid parameter into
3402 a ptid. Adjust code accordingly.
3403 * infrun.c (handle_inferior_event): Delete variable child_pid.
3404 Update call to detach_breakpoints to pass the child ptid for
3405 fork events.
3406 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3407 assert that inferior_ptid's lwp is zero.
3408 (linux_handle_extended_wait): Update call to detach_breakpoints.
3409 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3410 detach_breakpoints.
3411
2dcc6086
JB
34122012-08-16 Joel Brobecker <[email protected]>
3413
3414 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3415 parent, only call detach_breakpoints if tts.tts_event ==
3416 TTEVT_VFORK.
3417
0c92d8c1
JB
34182012-08-16 Joel Brobecker <[email protected]>
3419
3420 * dwarf2-frame.c (dwarf2_frame_cache): Use
3421 get_frame_address_in_block instead of get_frame_pc as
3422 the bound for executing the frame's FDE.
3423
6b1755ce
YQ
34242012-08-16 Yao Qi <[email protected]>
3425
3426 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3427 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3428 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3429 (c_type_print_varspec_suffix): Likewise.
3430 * eval.c (evaluate_subexp_standard): Likewise.
3431 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3432 (f_type_print_varspec_suffix): Likewise.
3433 * gdbtypes.c (is_scalar_type): Likewise.
3434 (recursive_dump_type): Likewise.
3435 * infcall.c (value_arg_coerce): Likewise.
3436 * m2-valprint.c (m2_val_print): Likewise.
3437 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3438 (pascal_type_print_varspec_suffix): Likewise.
3439 (pascal_type_print_base): Likewise.
3440 * p-valprint.c (pascal_val_print): Likewise.
3441 (pascal_val_print): Likewise.
3442 * valops.c (value_slice): Likewise.
3443 * valprint.c (scalar_type_p): Likewise.
3444 * valarith.c (value_bitstring_subscript): Remove.
3445 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3446 Remove comment on TYPE_CODE_BITSTRING.
3447
3448 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3449 TYPE_CODE_BITSTRING.
3450
3451 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3452 slot 0.
3453
8acc4065
YQ
34542012-08-16 Yao Qi <[email protected]>
3455
3456 * tracepoint.c (trace_find_none_command): Remove.
3457 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3458
8128fd8e
YQ
34592012-08-16 Yao Qi <[email protected]>
3460
3461 * remote.c (handle_notification): Remove parameter 'length'.
3462 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3463
2873700e
KS
34642012-08-15 Keith Seitz <[email protected]>
3465
3466 * gdbtypes.c (opaque_type_resolution): Make static.
3467 Add missing comment.
3468 (overload_debug): Add missing comment.
3469 (show_opaque_type_resolution): Likewise.
3470 (show_overload_debug): Likewise.
3471 (print_bit_vector): Remove unnecessary forward declaration.
3472 (print_arg_types): Likewise.
3473 (dump_fn_fieldlists): Likewise.
3474 (print_cplus_stuff): Likewise.
3475
b82d08cd
TT
34762012-08-15 Tom Tromey <[email protected]>
3477
3478 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3479 (gdb_bfd_ref): Initialize new field.
3480 (gdb_bfd_unref): Unref the archive BFD.
3481 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3482 parent archive.
3483
db6573d6
TT
34842012-08-15 Tom Tromey <[email protected]>
3485
3486 PR python/14387:
3487 * python/py-bpevent.c (create_breakpoint_event_object): Update
3488 comment.
3489 * python/py-event.c (evpy_add_attribute): Update comment.
3490 * python/py-exitedevent.c (create_exited_event_object): Fix
3491 reference counting and error handling.
3492 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3493 Fix reference counting.
3494 * python/py-signalevent.c (create_signal_event_object): Fix
3495 reference counting and error handling.
3496 * python/py-stopevent.c (emit_stop_event): Fix reference
3497 counting.
3498 * python/py-threadevent.c (get_event_thread): Return a
3499 borrowed reference.
3500 * python/py-type.c (convert_field): Fix reference counting.
3501
a036ba48
TT
35022012-08-15 Tom Tromey <[email protected]>
3503
3504 * dwarf2read.c (dwarf_decode_macro_bytes)
3505 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3506 as hash key.
3507
486c7739
MF
35082012-08-14 Mike Frysinger <[email protected]>
3509
3510 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3511 stepi, nexti, finish, next, step, jump, and continue commands.
3512 * infrun.c (_initialize_infrun): Update help text for the handle
3513 command.
3514
4cf93a03
DE
35152012-08-14 Doug Evans <[email protected]>
3516
70b099cf
DE
3517 * gdbtypes.c (struct extra): Delete, unused.
3518
5212577a
DE
3519 * gdbtypes.c: Whitespace cleanup.
3520 (address_space_name_to_int): Remove "extern" from definition.
3521 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3522
4cf93a03
DE
3523 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3524 TYPE_POINTER_TYPE (type).
3525
3756ef7e
GB
35262012-08-14 Gary Benson <[email protected]>
3527
3528 * solib-svr4.c (svr4_free_library_list): Use free_so.
3529
40d72643
MF
35302012-08-13 Mike Frysinger <[email protected]>
3531
3532 * .gitignore: Add go-exp.c.
3533
f47f77df
DE
35342012-08-13 Doug Evans <[email protected]>
3535
3536 * value.c (show_convenience): Tweak comment.
3537 (_initialize_values): Mention convenience functions in the help text
3538 for "show convenience".
3539
7507c54a
YQ
35402012-08-13 Yao Qi <[email protected]>
3541
3542 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3543 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3544 TERNOP_SLICE_COUNT.
3545 * eval.c (evaluate_subexp_standard): Likewise.
3546 * expprint.c (print_subexp_standard): Likewise.
3547 (dump_subexp_body_standard): Likewise.
3548 * parse.c (operator_length_standard): Likewise.
3549
5cad9736
YQ
35502012-08-13 Yao Qi <[email protected]>
3551
3552 * std-operator.def: Remove OP_BITSTRING.
3553 * breakpoint.c (watchpoint_exp_is_const): Update.
3554 * eval.c (evaluate_subexp_standard): Remove handling to
3555 OP_BITSTRING.
3556 * expprint.c (print_subexp_standard): Likewise.
3557 (dump_subexp_body_standard): Likewise.
3558 * parse.c (operator_length_standard): Likewise.
3559 * valops.c (value_bitstring): Remove.
3560 * value.h: Remove the declaration of 'value_bitstring'.
3561
bad7670a
SDJ
35622012-08-10 Sergio Durigan Junior <[email protected]>
3563
3564 * linespec.c (find_methods): Remove unused variables `i1' and
3565 `name_len'.
3566 (decode_line_full): Likewise for `arg_start'.
3567
d9dce7fa
SDJ
35682012-08-10 Sergio Durigan Junior <[email protected]>
3569
3570 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3571 (zlib_decompress_section): Likewise for `section_data'.
3572 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3573
a72c3253
DE
35742012-08-10 Doug Evans <[email protected]>
3575
3576 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3577 * NEWS: Document them.
3578 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3579 function/strfns.py.
3580 * python/py-type.c (typy_array_1): New function.
3581 (typy_array): Call it.
3582 (typy_vector): New function.
3583 (type_object_methods): Add "vector".
3584 * python/lib/gdb/function/__init__.py: New file.
3585 * python/lib/gdb/function/strfns.py: New file.
3586
200bc880
SP
35872012-08-10 Siddhesh Poyarekar <[email protected]>
3588
3589 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3590 for TYPE_FIELD_BITPOS.
3591 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3592
de0bea00
MF
35932012-08-10 Mike Frysinger <[email protected]>
3594
3595 PR cli/10436:
3596 * common/vec.h (VEC_merge): Define.
3597 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3598 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3599 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3600 * completer.c: Include gdb_signals.h.
3601 (signal_completer): Define.
3602 * completer.h (signal_completer): Add prototype.
3603 * infcmd.c (_initialize_infcmd): Assign the command
3604 completer for "signal" to handle_completer.
3605 * infrun.c: Include completer.h.
3606 (handle_completer): Define.
3607 (_initialize_infrun): Declare a new local variable c. Store the
3608 result of add_com("handle") to it. Assign the command
3609 completer for "handle" to handle_completer.
3610
5b9afe8a
YQ
36112012-08-09 Yao Qi <[email protected]>
3612
3613 * cli/cli-decode.c (set_cmd_prefix): New.
3614 (lookup_cmd_for_prefixlist): New.
3615 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3616 of each cmd_list_element in *prefixlist.
3617 (add_setshow_cmd_full): set_cmd_prefix.
3618 (add_alias_cmd): Likewise.
3619 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3620 Declare 'auto_boolean_enums'.
3621 * cli/cli-setshow.c: Include "observer.h".
3622 (notify_command_param_changed_p): New.
3623 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3624 Remove 'static'.
3625 (do_setshow_command): Split it to ...
3626 (do_set_command, do_show_command): ... them. New.
3627 (do_set_command): Call observer_notify_command_param_changed if
3628 notify_command_param_changed_p returns true.
3629 (cmd_show_list): Caller update.
3630 * auto-load.c (set_auto_load_cmd): Likewise.
3631 * remote.c (show_remote_cmd): Likewise.
3632 * cli/cli-setshow.h: Update declarations.
3633 * top.c (execute_command): Call do_set_command and do_show_command.
3634
3635 * NEWS: Mention new MI notification.
3636 * mi/mi-interp.c: Declare mi_command_param_changed.
3637 (mi_interpreter_init): Attach mi_command_param_changed to
3638 observer command_param_changed.
3639 (mi_command_param_changed): New.
3640 Remove mi_suppress_breakpoint_notifications.
3641 Define global variable mi_suppress_notification.
3642 (mi_breakpoint_created): Update.
3643 (mi_breakpoint_deleted): Likewise.
3644 (mi_breakpoint_modified): Likewise.
3645 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3646 'gdb-set' and set mi_suppress_notification.
3647 * mi/mi-main.h: (mi_suppress_notification): New struct.
3648
1969df89
JK
36492012-08-09 Andreas Tobler <[email protected]>
3650 Jan Kratochvil <[email protected]>
3651
3652 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3653
8bfd80db
YQ
36542012-08-09 Yao Qi <[email protected]>
3655
3656 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3657 (skiplist): Move it to skip.c.
3658 (init_cmd_lists): Remove code setting enablebreaklist and
3659 skiplist to NULL.
3660 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3661 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3662 skiplist.
3663 * gdbcmd.h: Likewise.
3664 * skip.c (_initialize_step_skip): Move 'skiplist' from
3665 cli/cli-cmds.c.
3666
28578e6b
YQ
36672012-08-09 Yao Qi <[email protected]>
3668
3669 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3670 * gnu-nat.c, symfile.c: Likewise.
3671
260c0b2a
DE
36722012-08-08 Aaron Gamble <[email protected]>
3673
3674 * utils.c (prompt_for_continue_wait_time): New static global.
3675 (make_command_stats_cleanup): Initialize it.
3676 (report_command_stats): Subtract time waiting for user.
3677 (prompt_for_continue): Track time waiting for user.
3678 (defaulted_query): Track time waiting for user.
3679
4f485ebc
DE
36802012-08-08 Doug Evans <[email protected]>
3681
3682 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3683 UNOP_MEMVAL_TYPE.
3684 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3685 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3686 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3687 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3688 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3689 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3690 elt.
3691 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3692 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3693 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3694 (dump_prefix_expression): Handle OP_TYPE.
3695
2acf2b39
KS
36962012-08-08 Keith Seitz <[email protected]>
3697
3698 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3699 addr_start.
3700
e6712ff1
DE
37012012-08-08 Doug Evans <[email protected]>
3702
3703 * linux-thread-db.c: #include "gdb_vecs.h".
3704 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3705 updated.
3706 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3707 (thread_db_load_search): Use a vector to iterate over path elements.
3708 Handle text appearing after "$pdir".
3709
3710 * gdb_string.h: Moved to ...
3711 * common/gdb_string.h: ... here.
3712 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3713 gdb_string.h and gdb_assert.h.
3714
ab854e54
YQ
37152012-08-08 Yao Qi <[email protected]>
3716
3717 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3718 (tic6x_value_to_register): Likewise.
3719 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3720 and set_gdbarch_value_to_register.
3721
4f69f4c2
JK
37222012-08-07 Jan Kratochvil <[email protected]>
3723 Jean-Marc Saffroy <[email protected]>
3724
3725 PR 11804
3726 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3727 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3728 * gcore.c (gcore_create_callback): New function comment. Add modified
3729 parameter. Only write modified regions. Set SEC_READONLY exactly
3730 according to MODIFIED.
3731 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3732 the passed modified value to FUNC.
3733 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3734 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3735 first. New variables modified and has_anonymous. Parse the lines of
3736 smaps file. Add the passed MODIFIED value to FUNC.
3737 * procfs.c (find_memory_regions_callback): Add the passed modified
3738 value.
3739
78ac5f83
TT
37402012-08-06 Tom Tromey <[email protected]>
3741
3742 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3743 (dwarf2_frame_cache): Use it.
3744 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3745 cache initialization constraint.
3746
2c12abee
TT
37472012-08-06 Tom Tromey <[email protected]>
3748
3749 PR python/14386:
3750 * varobj.c (update_dynamic_varobj_children): Don't call
3751 PyIter_Check.
3752
4979d7f0
TT
37532012-08-06 Tom Tromey <[email protected]>
3754
3755 PR cli/14392:
3756 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3757
f3c8a52a
JK
37582012-08-06 Nathaniel Flath <[email protected]>
3759
3760 * NEWS: New entry for 'cd' default parameters.
3761 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3762
5a1cf4d6
TT
37632012-08-03 Tom Tromey <[email protected]>
3764
3765 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3766 return.
3767
7c3270ae
UW
37682012-08-02 Ulrich Weigand <[email protected]>
3769
3770 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3771 to attempting lseek/write.
3772 (inf_child_fileio_pread): Likewise for pread.
3773
ccce17b0
YQ
37742012-08-02 Yao Qi <[email protected]>
3775
3776 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3777 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3778 add_setshow_zinteger_cmd.
3779 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3780 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3781 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3782 instead of add_setshow_zinteger_cmd.
3783 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3784 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3785 instead of add_setshow_zinteger_cmd.
3786 * frame.c (frame_debug): Add 'unsigned'.
3787 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3788 add_setshow_zinteger_cmd.
3789 * frame.h: Update the declaration of 'frame_debug'.
3790 * gdbtypes.c (overload_debug): Add 'unsigned'.
3791 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3792 add_setshow_zinteger_cmd.
3793 * inferior.h: Update declaration of 'debug_infrun'.
3794 * infrun.c (debug_infrun): Add 'unsigned'.
3795 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3796 add_setshow_zinteger_cmd.
3797 * jit.c (jit_debug): Add 'unsigned'.
3798 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3799 add_setshow_zinteger_cmd.
3800 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3801 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3802 instead of add_setshow_zinteger_cmd.
3803 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3804 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3805 add_setshow_zinteger_cmd.
3806 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3807 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3808 instead of add_setshow_zinteger_cmd.
3809 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3810 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3811 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3812 intead of add_setshow_zinteger_cmd.
3813 * mips-tdep.c (mips_debug): Add 'unsigned'.
3814 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3815 instead of add_setshow_zinteger_cmd.
3816 * monitor.c (monitor_debug): Add 'unsigned'.
3817 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3818 add_setshow_zinteger_cmd.
3819 * observer.c (observer_debug): Add 'unsigned'.
3820 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3821 add_setshow_zinteger_cmd.
3822 * parse.c (expressiondebug): Add 'unsigned'.
3823 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3824 add_setshow_zinteger_cmd.
3825 * record.c (record_debug): Add 'unsigned'.
3826 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3827 add_setshow_zinteger_cmd.
3828 * record.h: Update the declaration of 'record_debug'.
3829 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3830 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3831 add_setshow_zinteger_cmd.
3832 * serial.c (global_serial_debug_p): Add 'unsigned'.
3833 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3834 add_setshow_zinteger_cmd.
3835 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3836 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3837 add_setshow_zinteger_cmd.
3838 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3839 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3840 add_setshow_zinteger_cmd.
3841 * target.c (targetdebug): Add 'unsigned'.
3842 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3843 add_setshow_zinteger_cmd.
3844 * valops.c (overload_debug): Add 'unsigned'.
3845 * varobj.c (varobjdebug): Add 'unsigned'.
3846 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3847 add_setshow_zinteger_cmd.
3848 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3849 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3850 instead of add_setshow_zinteger_cmd.
3851
3852 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3853 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3854 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3855 instead of add_setshow_zinteger_cmd.
3856 * gdbarch.c, gdbarch.h: Re-generated.
3857
95b07c96
YQ
38582012-08-02 Yao Qi <[email protected]>
3859
3860 * nto-tdep.c: Don't include cli/cli-decode.h and
3861 cli/cli-cmds.h.
3862 (_initialize_nto_tdep): Remove.
3863 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3864 Remove field.
3865 Remove macro nto_internal_debugging.
3866
57295b0b
RH
38672012-08-01 Richard Henderson <[email protected]>
3868
3869 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3870 (mep-*-*) [gdb_target_obs]: Likewise.
3871
f782ad9b
AS
38722012-07-31 Andreas Schwab <[email protected]>
3873
3874 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3875 linux_get_siginfo_type.
3876
a14dd77e
JK
38772012-07-31 Jan Kratochvil <[email protected]>
3878
3879 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3880 AT_ENTRY_POINT.
3881 (call_function_by_hand) <ON_STACK>: Call write_memory with
3882 gdbarch_breakpoint_from_pc, if possible.
3883 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3884 here.
3885
1467929f
YQ
38862012-07-31 Yao Qi <[email protected]>
3887
3888 * tracepoint.c: Add 'static' for some variables.
3889
70976b65
YQ
38902012-07-31 Yao Qi <[email protected]>
3891
3892 * go32-nat.c: Declare _initialize_go32_nat.
3893 * ser-go32.c: Declare _initialize_ser_dos.
3894 * top.c (do_chdir_cleanup): Add 'static'.
3895
eff9c3e6
KS
38962012-07-30 Keith Seitz <[email protected]>
3897
3898 * linespec.c (linespec_lex_number): A number followed
3899 by quotes is a valid number, too.
3900
728400d7
TT
39012012-07-30 Tom Tromey <[email protected]>
3902
3903 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3904
fcf303ab
UW
39052012-07-30 Ulrich Weigand <[email protected]>
3906
3907 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3908 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3909
4e969b4f
AB
39102012-07-30 Andrew Burgess <[email protected]>
3911
3912 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3913 invalid or reevaluated to prevent prevent references to possibly
3914 delete'd type objects being left in the varobj.
3915
c4bfde41
JK
39162012-07-27 Tom Tromey <[email protected]>
3917 Jan Kratochvil <[email protected]>
3918
3919 * copying.awk: Print buffer-read-only and vi ro markers.
3920 * copying.c: Rebuild.
3921 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3922 * gdbarch.c, gdbarch.h: Rebuild.
3923 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3924 buffer-read-only and vi ro markers.
3925 * features/arm-with-iwmmxt.c: Rebuild.
3926 * features/arm-with-m-fpa-layout.c: Rebuild.
3927 * features/arm-with-m-vfp-d16.c: Rebuild.
3928 * features/arm-with-m.c: Rebuild.
3929 * features/arm-with-neon.c: Rebuild.
3930 * features/arm-with-vfpv2.c: Rebuild.
3931 * features/arm-with-vfpv3.c: Rebuild.
3932 * features/i386/amd64-avx-linux.c: Rebuild.
3933 * features/i386/amd64-avx.c: Rebuild.
3934 * features/i386/amd64-linux.c: Rebuild.
3935 * features/i386/amd64.c: Rebuild.
3936 * features/i386/i386-avx-linux.c: Rebuild.
3937 * features/i386/i386-avx.c: Rebuild.
3938 * features/i386/i386-linux.c: Rebuild.
3939 * features/i386/i386-mmx-linux.c: Rebuild.
3940 * features/i386/i386-mmx.c: Rebuild.
3941 * features/i386/i386.c: Rebuild.
3942 * features/i386/x32-avx-linux.c: Rebuild.
3943 * features/i386/x32-avx.c: Rebuild.
3944 * features/i386/x32-linux.c: Rebuild.
3945 * features/i386/x32.c: Rebuild.
3946 * features/mips-dsp-linux.c: Rebuild.
3947 * features/mips-linux.c: Rebuild.
3948 * features/mips64-dsp-linux.c: Rebuild.
3949 * features/mips64-linux.c: Rebuild.
3950 * features/rs6000/powerpc-32.c: Rebuild.
3951 * features/rs6000/powerpc-32l.c: Rebuild.
3952 * features/rs6000/powerpc-403.c: Rebuild.
3953 * features/rs6000/powerpc-403gc.c: Rebuild.
3954 * features/rs6000/powerpc-405.c: Rebuild.
3955 * features/rs6000/powerpc-505.c: Rebuild.
3956 * features/rs6000/powerpc-601.c: Rebuild.
3957 * features/rs6000/powerpc-602.c: Rebuild.
3958 * features/rs6000/powerpc-603.c: Rebuild.
3959 * features/rs6000/powerpc-604.c: Rebuild.
3960 * features/rs6000/powerpc-64.c: Rebuild.
3961 * features/rs6000/powerpc-64l.c: Rebuild.
3962 * features/rs6000/powerpc-7400.c: Rebuild.
3963 * features/rs6000/powerpc-750.c: Rebuild.
3964 * features/rs6000/powerpc-860.c: Rebuild.
3965 * features/rs6000/powerpc-altivec32.c: Rebuild.
3966 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3967 * features/rs6000/powerpc-altivec64.c: Rebuild.
3968 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3969 * features/rs6000/powerpc-cell32l.c: Rebuild.
3970 * features/rs6000/powerpc-cell64l.c: Rebuild.
3971 * features/rs6000/powerpc-e500.c: Rebuild.
3972 * features/rs6000/powerpc-e500l.c: Rebuild.
3973 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3974 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3975 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3976 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3977 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3978 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3979 * features/rs6000/powerpc-vsx32.c: Rebuild.
3980 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3981 * features/rs6000/powerpc-vsx64.c: Rebuild.
3982 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3983 * features/rs6000/rs6000.c: Rebuild.
3984 * features/s390-linux32.c: Rebuild.
3985 * features/s390-linux32v1.c: Rebuild.
3986 * features/s390-linux32v2.c: Rebuild.
3987 * features/s390-linux64.c: Rebuild.
3988 * features/s390-linux64v1.c: Rebuild.
3989 * features/s390-linux64v2.c: Rebuild.
3990 * features/s390x-linux64.c: Rebuild.
3991 * features/s390x-linux64v1.c: Rebuild.
3992 * features/s390x-linux64v2.c: Rebuild.
3993 * features/tic6x-c62x-linux.c: Rebuild.
3994 * features/tic6x-c62x.c: Rebuild.
3995 * features/tic6x-c64x-linux.c: Rebuild.
3996 * features/tic6x-c64x.c: Rebuild.
3997 * features/tic6x-c64xp-linux.c: Rebuild.
3998 * features/tic6x-c64xp.c: Rebuild.
3999
826f0041
TT
40002012-07-27 Tom Tromey <[email protected]>
4001
4002 * c-exp.y (classify_name): Avoid assignment in condition.
4003
84552b16
PA
40042012-07-27 Roland Schwingel <[email protected]>
4005
4006 * amd64-windows-tdep.c: Include "frame.h".
4007 (amd64_windows_skip_trampoline_code): New function.
4008 (amd64_windows_init_abi): Add trampoline registration.
4009
a8a64aa8
YQ
40102012-07-27 Yao Qi <[email protected]>
4011
4012 * tracepoint.c (cur_traceframe_number): Remove.
4013 (set_tfile_traceframe): Remove.
4014 (tfile_trace_find, tfile_fetch_registers): Update callers.
4015 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
4016 (tfile_open, tfile_trace_find): Likewise.
4017
d99067cb
YQ
40182012-07-27 Yao Qi <[email protected]>
4019
4020 * thread.c (switch_to_thread): Don't call registers_changed.
4021
f2e8016f
TT
40222012-07-26 Tom Tromey <[email protected]>
4023
f782ad9b
AS
4024 * Makefile.in (SFILES): Remove objc-exp.y.
4025 (YYFILES): Remove objc-exp.c.
4026 (YYOBJ): Remove objc-exp.o.
4027 (local-maintainer-clean): Don't mention objc-exp.c.
4028 * c-exp.y: Include objc-lang.h.
4029 (%union) <class>: New field.
4030 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
4031 (exp): Clone subscript production for OBJC_LBRAC. Add various
4032 Objective C productions.
4033 (msglist, msgarglist, msgarg): New productions.
4034 (array_mod, func_mod, operator): Clone productions for
4035 OBJC_LBRAC.
4036 (parse_string_or_char): Handle '@' strings.
4037 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
4038 (classify_name): Check la_name_of_this. Recognize ObjC class
4039 names.
4040 * objc-exp.y: Remove.
4041 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
4042 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 4043
f66713d2
JK
40442012-07-26 Markus Metzger <[email protected]>
4045
4046 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
4047
7cfe01b4
JK
40482012-07-26 Jan Kratochvil <[email protected]>
4049
4050 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
4051 and decrement.
4052
5ba19b4c
TT
40532012-07-26 Tom Tromey <[email protected]>
4054
4055 * copying.c: Rebuild.
4056 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
4057 'no_class'.
4058
27618ce4
TT
40592012-07-26 Tom Tromey <[email protected]>
4060
4061 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
4062 immediate_quit.
4063 (print_objfile_statistics): Likewise.
4064 (maintenance_print_symbols): Likewise.
4065 (maintenance_print_msymbols): Likewise.
4066 (maintenance_print_objfiles): Likewise.
4067 * psymtab.c (print_partial_symbols): Call QUIT.
4068 (maintenance_print_psymbols): Likewise. Don't modify
4069 immediate_quit.
4070 * copying.c (show_copying_command): Don't modify immediate_quit.
4071 (show_warranty_command): Likewise.
4072 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
4073
dd3818c8
KS
40742012-07-26 Keith Seitz <[email protected]>
4075
4076 * linespec.c (linespec_lexer_lex_number): The input
4077 is also a valid number if the next character is a comma
4078 or colon.
4079
23a80689
JB
40802012-07-26 Joel Brobecker <[email protected]>
4081
4082 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
4083 configure options.
4084
29f77997
TG
40852012-07-26 Tristan Gingold <[email protected]>
4086
4087 * machoread.c: Include gdb_bfd.h.
4088
a55c1f32
TG
40892012-07-26 Tristan Gingold <[email protected]>
4090
4091 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4092 offset.
4093
56eb65bd
SP
40942012-07-26 Siddhesh Poyarekar <[email protected]>
4095
4096 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4097 SIZE to size_t.
4098 (dwarf2_evaluate_loc_desc): Likewise.
4099 (dwarf2_loc_desc_needs_frame): Likewise.
4100 (locexpr_describe_location_1): Likewise.
4101 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4102 size_t.
4103 (struct dwarf2_loclist_baton): Likewise.
4104 * dwarf2read.c (struct dwarf_block): Likewise.
4105 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4106 (decode_locdesc): Expand SIZE and I to size_t.
4107
aec8845c
JK
41082012-07-25 Jan Kratochvil <[email protected]>
4109
4110 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4111
33d7655b
JB
41122012-07-25 Joel Brobecker <[email protected]>
4113
4114 * doublest.c (convert_doublest_to_floatformat): If the exponent
4115 is too small, treat the value as zero. If the exponent is too
4116 large, treat the value as infinity.
4117
a22d44ff
JB
41182012-07-25 Joel Brobecker <[email protected]>
4119
4120 * configure.ac: Add --enable-lmcheck configure option.
4121 * configure: Regenerate.
4122
d6b28940
TT
41232012-07-25 Tom Tromey <[email protected]>
4124
f782ad9b
AS
4125 * NEWS: Mention maint info bfds.
4126 * gdb_bfd.c (all_bfds): New global.
4127 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4128 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4129 New functions.
d6b28940 4130
6e73ba20
RC
41312012-07-25 Ralf Corsépius <[email protected]>
4132
4133 * configure.tgt: Add v850*-*-rtems*.
4134
d560eebd
TT
41352012-07-25 Tom Tromey <[email protected]>
4136
4137 * macrotab.c (macro_bcache_str): Remove cast.
4138
d7cbec71
HZ
41392012-07-25 Hui Zhu <[email protected]>
4140
4141 * linespec.c (linespec_lexer_lex_number): Update comments,
4142 change the return and add check to make sure the input is
4143 the decimal numbers.
4144 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4145 false, call linespec_lexer_lex_string.
4146
882f447f
TT
41472012-07-24 Tom Tromey <[email protected]>
4148
4149 * symfile.c (symbol_file_add): Don't open BFD twice.
4150
53ab4066 41512012-07-24 Marc Khouzam <[email protected]>
e12c7713
MK
4152
4153 * breakpoint.c (create_breakpoint): Store condition for pending
4154 breakpoints.
4155
108fb0f7
AS
41562012-07-24 Andreas Schwab <[email protected]>
4157
4158 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4159 (m68k_return_value): Handle complex types like structures.
4160 (m68k_svr4_return_value): Likewise.
4161
1634dcbe
JK
41622012-07-24 Marcus Shawcroft <[email protected]>
4163
4164 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4165 parameters to bfd_get_section_name.
4166
e2d12c21
YQ
41672012-07-24 Yao Qi <[email protected]>
4168
4169 * cli/cli-setshow.c: Handle case 'var_uinteger'
4170 and 'var_zuninteger' together. Handle case 'var_integer' and
4171 'var_zinteger' together.
4172
64b92e45
KS
41732012-07-23 Keith Seitz <[email protected]>
4174
4175 * linespec.c (convert_linespec_to_sal): Don't add
4176 any symbols to the result vector if symbol_to_sal
4177 returns zero.
4178
0f5f4ffe
KS
41792012-07-23 Keith Seitz <[email protected]>
4180
4181 * linespec.c (decode_objc): Record the function name
4182 in the linespec.
4183
da1cc82f
TT
41842012-07-23 Tom Tromey <[email protected]>
4185
4186 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4187 counting.
4188 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4189 (map_vmap): Acquire a reference to the BFD.
4190
6c18f3e0
SP
41912012-07-23 Siddhesh Poyarekar <[email protected]>
4192
4193 * p-valprint.c (pascal_object_print_value): Replace potentially
4194 unsafe alloca with xmalloc/xfree.
4195 * valops.c (search_struct_method): Likewise.
4196
695c3173
TT
41972012-07-23 Tom Tromey <[email protected]>
4198
4199 * solib-svr4.c (enable_break): Update.
4200 * bfd-target.h (target_bfd_reopen): Update documentation.
4201
08d2cd74
TT
42022012-07-23 Tom Tromey <[email protected]>
4203
4204 * symfile.c (separate_debug_file_exists): Update.
4205 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4206 (reread_symbols): Update.
4207 * elfread.c (build_id_verify): Update.
4208 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4209 bfd_open_maybe_remote.
4210
596f7d67
TT
42112012-07-23 Tom Tromey <[email protected]>
4212
4213 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4214
8ac244b4
TT
42152012-07-23 Tom Tromey <[email protected]>
4216
4217 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4218 and 'abfd'.
4219 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4220 and 'abfd'.
4221 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4222 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4223 'abfd'.
4224 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4225 * objfiles.c (allocate_objfile): Acquire a new reference.
4226 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4227 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4228 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4229 a cleanup for 'nbfd'.
4230 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4231 for 'nbfd'.
4232 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4233 make a cleanup for 'abfd'.
4234 (symbol_file_add): Make a BFD cleanup.
4235
64c31149
TT
42362012-07-23 Tom Tromey <[email protected]>
4237
4238 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4239 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4240 * corelow.c (core_open): Use gdb_bfd_fopen.
4241 * dsrec.c (load_srec): Use gdb_bfd_openr.
4242 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4243 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4244 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4245 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4246 (gdb_bfd_fdopenr): New functions.
4247 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4248 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4249 (gdb_bfd_fdopenr): Declare.
4250 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4251 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4252 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4253 gdb_bfd_openr_next_archived_file.
4254 (macho_check_dsym): Use gdb_bfd_openr.
4255 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4256 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4257 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4258 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4259 gdb_bfd_openr.
4260 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4261 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4262 gdb_bfd_openr_next_archived_file.
4263 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4264 Use gdb_bfd_openr.
4265 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4266 gdb_bfd_openr.
4267 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4268 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4269 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4270 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4271 (symfile_bfd_open): Use gdb_bfd_fopen.
4272 (generic_load): Use gdb_bfd_openr.
4273 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4274
520b0001
TT
42752012-07-23 Tom Tromey <[email protected]>
4276
4277 * bfd-target.c (target_bfd_reopen): Update.
4278 * cli/cli-dump.c (bfd_openr_with_cleanup)
4279 (bfd_openw_with_cleanup): Update.
4280 * corelow.c (core_open): Update.
4281 * dsrec.c (load_srec): Update.
4282 * exec.c (exec_file_attach): Update.
4283 * gcore.c (create_gcore_bfd): Update.
4284 * gdb_bfd.c (gdb_bfd_ref): Return void.
4285 (gdb_bfd_open): Update.
4286 * gdb_bfd.h (gdb_bfd_ref): Return void.
4287 Update comments.
4288 * jit.c (jit_bfd_try_read_symtab): Update.
4289 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4290 * machoread.c (macho_symfile_read_all_oso): Update.
4291 (macho_check_dsym): Update.
4292 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4293 * remote-m32r-sdi.c (m32r_load): Update.
4294 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4295 * rs6000-nat.c (add_vmap): Update.
4296 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4297 Update.
4298 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4299 * solib-spu.c (spu_bfd_open): Update.
4300 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4301 * spu-linux-nat.c (spu_bfd_open): Update.
4302 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4303 (generic_load): Update.
4304 * windows-nat.c (windows_make_so): Update.
4305
2322ff16
SP
43062012-07-22 Siddhesh Poyarekar <[email protected]>
4307
4308 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4309
3def0b36
PA
43102012-07-20 Jeff Kenton <[email protected]>
4311
4312 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4313 SIGTRAMP_FRAME unwinding.
4314
e615022a
DE
43152012-07-20 Doug Evans <[email protected]>
4316
4317 * NEWS: Document new options "set/show use-deprecated-index-sections",
4318 and delete reference to --use-deprecated-index-sections.
4319 * symfile.h (use_deprecated_index_sections): Delete.
4320 * dwarf2read.c (use_deprecated_index_sections): Make static.
4321 (read_index_from_section): Update wording of how to load
4322 deprecated index sections.
4323 (_initialize_dwarf2_read): New options
4324 "set/show use-deprecated-index-sections".
4325 * main.c (captured_main): Delete --use-deprecated-index-sections.
4326
64776a0b
PA
43272012-07-20 Pedro Alves <[email protected]>
4328
4329 PR threads/11692
4330 PR gdb/12203
4331
4332 * infrun.c (handle_inferior_event) <new thread>: Don't special
4333 case minus_one_ptid.
4334 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4335 * linux-thread-db.c (thread_get_info_callback): Don't return early
4336 if the thread is zombie.
4337 (thread_from_lwp): Change return type to void. Rewrite stale
4338 comment.
4339 (attach_thread): Don't return early if the thread is zombie,
4340 instead set its "dying" flag.
4341 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4342 (find_new_threads_callback): Don't return early if the thread is
4343 zombie.
4344
09826ec5
PA
43452012-07-20 Pedro Alves <[email protected]>
4346
4347 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4348 * target.c (target_wait): Likewise.
4349 (str_comma_list_concat_elem, do_option, target_options_to_string):
4350 New functions.
4351 * target.h (target_options_to_string): Declare.
4352
f7a35f02
TT
43532012-07-20 Jan Kratochvil <[email protected]>
4354 Tom Tromey <[email protected]>
4355
4356 * dwarf2read.c (dwarf_decode_macros)
4357 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4358 DW_MACRO_GNU_transparent_include_alt>: New cases.
4359 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4360 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4361
b81e1ee0
TT
43622012-07-20 Tom Tromey <[email protected]>
4363
4364 * dwarf2read.c (try_open_dwo_file): Don't call
4365 gdb_bfd_stash_filename.
4366
99c1624c
PA
43672012-07-20 Pedro Alves <[email protected]>
4368
4369 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4370 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4371 (i386_process_record): Tweak description comments.
4372
4ffa4fc7
PA
43732012-07-20 Pedro Alves <[email protected]>
4374
4375 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4376 (i386_process_record): Use record_read_memory.
4377 * record.c (record_read_memory): New function.
4378 (record_arch_list_add_mem, record_exec_insn): Use
4379 record_read_memory.
4380 * record.h (record_read_memory): Declare.
4381
c24343e2
YQ
43822012-07-20 Yao Qi <[email protected]>
4383
4384 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4385 NULL for xfree.
4386
90f47860
PA
43872012-07-19 Pedro Alves <[email protected]>
4388
4389 * record.c (record_resume): Ask the target beneath to report all
4390 signals.
4391
01093045
DE
43922012-07-19 Doug Evans <[email protected]>
4393
4394 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4395 there's no section at address zero.
4396 (dwarf2_record_block_ranges): Ditto.
4397
a7c3d162
YQ
43982012-07-19 Yao Qi <[email protected]>
4399
4400 * command.h, remote.c: Fix a typo in comment.
4401
608b4967
TT
44022012-07-19 Tom Tromey <[email protected]>
4403
4404 PR exp/13206:
4405 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4406 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4407 OP_DECLTYPE>: New cases.
4408 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4409 (type_exp): Add new productions.
4410 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4411 and decltype.
4412 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4413 New case.
4414 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4415 OP_DECLTYPE>: New case.
4416 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4417 New case.
4418 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4419 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4420
274b54d7
TT
44212012-07-19 Tom Tromey <[email protected]>
4422
4423 * c-exp.y (enum token_flags): New.
4424 (struct token) <cxx_only>: Remove.
4425 <flags>: New field.
4426 (tokentab3, tokentab2, ident_tokens): Update.
4427 (lex_one_token): Update. Handle FLAG_SHADOW.
4428
9eaf6705
TT
44292012-07-19 Tom Tromey <[email protected]>
4430
4431 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4432 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4433 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4434 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4435 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4436 type_exp production where appropriate.
4437 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4438 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4439 <UNOP_MEMVAL_TYPE>: New case.
4440 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4441 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4442 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4443 <UNOP_MEMVAL_TYPE>: New case.
4444 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4445 UNOP_REINTERPRET_CAST>: Update.
4446 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4447 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4448 UNOP_REINTERPRET_CAST>: Update.
4449 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4450 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4451 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4452 constants.
4453
6ace3df1
YQ
44542012-07-19 Yao Qi <[email protected]>
4455 Jan Kratochvil <[email protected]>
4456
4457 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4458 and case 'var_optional_filename' together.
4459 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4460 instead of add_setshow_optional_filename_cmd for setshow command
4461 'args'. Set completer for 'set args'.
4462
48faced0
DE
44632012-07-18 Doug Evans <[email protected]>
4464
4465 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4466 * common/gdb_vecs.c: New file, contents from utils.c.
4467 * common/host-defs.h: New file, contents from defs.h.
4468 * utils.h: New file, contents from defs.h.
4469 * defs.h: Move all declarations of objects defined in utils.c
4470 to utils.h (except QUIT() and related).
4471 #include "utils.h", "host-defs.h".
4472 * probe.h (probe_p): Move here from gdb_vecs.h.
4473 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4474 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4475 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4476 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4477 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4478 (COMMON_OBS): Add gdb_vecs.o.
4479 (gdb_vecs.o): New rule.
4480
66f1999b
KS
44812012-07-18 Keith Seitz <[email protected]>
4482
4483 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4484 parameter. If non-zero, use SYMNAME as the canonical name
4485 for the SaL.
4486 Update all callers.
4487 (convert_linespec_to_sals): Use add_sal_to_sals for
4488 expressions, too.
4489 (decode_line_full): No need to "fill in missing canonical names"
4490 anymore. Simply make cleanups for the allocated names.
4491
5d94e27b
KS
44922012-07-18 Keith Seitz <[email protected]>
4493
4494 * linespec.c (struct linespec): Constify expression,
4495 source_filename, function_name, and label_name.
4496 (symbol_not_found_error): Make all parameters const.
4497 (linespec_parser_delete): No need to check for NULL
4498 when using xfree. Cast const char * to char * for xfree.
4499
af4908ba
KS
45002012-07-18 Keith Seitz <[email protected]>
4501
4502 * breakpoint.c (invalid_thread_id_error): New function.
4503 (find_condition_and_thread): Use invalid_thread_id_error.
4504 (watch_command_1): Likewise.
4505
853254db
TT
45062012-07-18 Tom Tromey <[email protected]>
4507
4508 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4509 * contrib/cc-with-tweaks.sh: New file.
4510
2ec9a5e0
TT
45112012-07-18 Tom Tromey <[email protected]>
4512
4513 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4514 (locate_dwz_sections): Recognize .gdb_index.
4515 (create_cus_from_index_list): New function.
4516 (create_cus_from_index): Use it. Handle .dwz data.
4517 (read_index_from_section): New function, extracted from
4518 dwarf2_read_index.
4519 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4520 if needed.
4521
36586728
TT
45222012-07-18 Tom Tromey <[email protected]>
4523
4524 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4525 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4526 <is_dwz>: New field.
4527 (struct dwz_file): New.
4528 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4529 (locate_dwz_sections, dwarf2_get_dwz_file)
4530 (get_abbrev_section_for_cu): New functions.
4531 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4532 (read_and_check_type_unit_head): Add abbrev_section argument.
4533 (create_debug_types_hash_table): Update.
4534 (init_cutu_and_read_dies): Use proper abbrev section.
4535 (init_cutu_and_read_dies_no_follow): Likewise.
4536 (set_partial_user): Do nothing if PST==NULL.
4537 (read_comp_units_from_section): New function.
4538 (create_all_comp_units): Use it.
4539 (scan_partial_symbols, partial_die_parent_scope): Update.
4540 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4541 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4542 (find_partial_die): Add offset_in_dwz argument. Update.
4543 (guess_partial_die_structure_name, fixup_partial_die): Update.
4544 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4545 DW_FORM_GNU_strp_alt.
4546 (read_indirect_string_from_dwz): New function.
4547 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4548 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4549 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4550 (follow_die_offset): Add offset_in_dwz argument.
4551 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4552 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4553 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4554 Handle new macro forms.
4555 (dwarf_decode_macros): Update.
4556 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4557 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4558 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4559 (create_debug_types_hash_table): Use correct abbrev section.
4560 (get_debug_line_section): New function.
4561 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4562 (process_full_comp_unit): Pass 'required' argument to
4563 end_symtab_get_static_block.
4564 * buildsym.h (end_symtab_get_static_block): Update.
4565 * buildsym.c (end_symtab_get_static_block): Add 'required'
4566 argument.
4567 (end_symtab, end_expandable_symtab): Update.
4568
4bf44c1c
TT
45692012-07-18 Tom Tromey <[email protected]>
4570
4571 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4572 (pagesize): Remove.
4573 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4574 (zlib_decompress_section): Remove.
4575 (dwarf2_read_section): Use gdb_bfd_map_section.
4576 (munmap_section_buffer): Remove.
4577 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4578 munmap_section_buffer.
4579 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4580 (struct gdb_bfd_section_data): New.
4581 (free_one_bfd_section): New function.
4582 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4583 (get_section_descriptor, zlib_decompress_section)
4584 (gdb_bfd_map_section): New functions.
4585 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4586
bb397797
TT
45872012-07-18 Tom Tromey <[email protected]>
4588
4589 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4590
6ec53d05
TT
45912012-07-18 Tom Tromey <[email protected]>
4592
4593 * gdb_bfd.c (struct gdb_bfd_data): New.
4594 (gdb_bfd_cache): New global.
4595 (struct gdb_bfd_cache_search): New.
4596 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4597 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4598 * gdb_bfd.h (gdb_bfd_open): Declare.
4599
f9a062ff
TT
46002012-07-18 Tom Tromey <[email protected]>
4601
4602 * utils.c (make_cleanup_bfd_unref): Rename from
4603 make_cleanup_bfd_close.
4604 * defs.h (make_cleanup_bfd_unref): Rename from
4605 make_cleanup_bfd_close.
4606 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4607 (bfd_openw_with_cleanup): Update.
4608 * corelow.c (core_open): Update.
4609 * dsrec.c (load_srec): Update.
4610 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4611 * remote-m32r-sdi.c (m32r_load): Update.
4612 * remote-mips.c (mips_load_srec): Update.
4613 (pmon_load_fast): Update.
4614 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4615 Update.
4616 (darwin_bfd_open): Update.
4617 * solib.c (solib_bfd_fopen): Update.
4618 * symfile-mem.c (symbol_file_add_from_memory): Update.
4619 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4620 (symfile_bfd_open): Update.
4621 (generic_load): Update.
4622
d6ad71ba
TT
46232012-07-18 Tom Tromey <[email protected]>
4624
4625 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4626 (pmon_load_fast): Likewise.
4627 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4628 (m32r_upload_command): Likewise.
4629 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4630 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4631 Use make_cleanup_bfd_close.
4632
a4453b7e
TT
46332012-07-18 Tom Tromey <[email protected]>
4634
4635 * symfile.c (symfile_bfd_open): Don't copy name. Call
4636 gdb_bfd_stash_filename.
4637 (load_command): Open the new BFD before freeing the old.
4638 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4639 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4640 Call gdb_bfd_stash_filename.
4641 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4642 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4643 gdb_bfd_stash_filename.
4644 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4645 Free found_pathname.
4646 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4647 gdb_bfd_stash_filename.
4648 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4649 * machoread.c (macho_add_oso_symfile): Call
4650 gdb_bfd_stash_filename.
4651 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4652 gdb_bfd_stash_filename.
4653 (macho_check_dsym): Don't copy filename. Call
4654 gdb_bfd_stash_filename.
4655 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4656 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4657 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4658 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4659 * exec.c (exec_close): Don't free the BFD's filename.
4660 (exec_file_attach): Don't copy the filename. Call
4661 gdb_bfd_stash_filename.
4662 * corelow.c (core_close): Don't free the BFD's filename.
4663 (core_open): Call gdb_bfd_stash_filename.
4664 * corefile.c (reopen_exec_file): Remove #if 0 code.
4665 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4666 pathname.
4667 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4668
cbb099e8
TT
46692012-07-18 Tom Tromey <[email protected]>
4670
4671 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4672 gdb_bfd_unref.
4673 (free_dwo_file): Use gdb_bfd_unref.
4674 * cli/cli-dump.c: Include gdb_bfd.h.
4675 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4676 (bfd_openr_with_cleanup): Likewise.
4677 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4678 gdb_bfd_unref.
4679 * utils.c: Include gdb_bfd.h.
4680 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4681 * symfile.c: Include gdb_bfd.h.
4682 (separate_debug_file_exists): Use gdb_bfd_unref.
4683 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4684 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4685 (generic_load): Use gdb_bfd_ref.
4686 (reread_symbols): Use gdb_bfd_unref.
4687 * symfile-mem.c: Include gdb_bfd.h.
4688 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4689 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4690 * solib.c: Include gdb_bfd.h.
4691 (solib_bfd_fopen): Use gdb_bfd_ref.
4692 (solib_bfd_open): Use gdb_bfd_unref.
4693 (free_so_symbols): Use gdb_bfd_unref.
4694 (reload_shared_libraries_1): Use gdb_bfd_unref.
4695 * solib-spu.c: Include gdb_bfd.h.
4696 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4697 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4698 gdb_bfd_unref.
4699 * solib-frv.c: Include gdb_bfd.h.
4700 (enable_break2): Use gdb_bfd_unref.
4701 * solib-dsbt.c: Include gdb_bfd.h.
4702 (enable_break2): Use gdb_bfd_unref.
4703 * solib-darwin.c: Include gdb_bfd.h.
4704 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4705 gdb_bfd_unref.
4706 (darwin_bfd_open): Use gdb_bfd_unref.
4707 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4708 * remote-mips.c: Include gdb_bfd.h.
4709 (mips_load_srec): Use gdb_bfd_ref.
4710 (pmon_load_fast): Use gdb_bfd_ref.
4711 * remote-m32r-sdi.c: Include gdb_bfd.h.
4712 (m32r_load): Use gdb_bfd_ref.
4713 * record.c: Include gdb_bfd.h.
4714 (record_save_cleanups): Use gdb_bfd_unref.
4715 (cmd_record_save): Use gdb_bfd_unref.
4716 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4717 gdb_bfd_unref.
4718 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4719 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4720 * objfiles.c: Include gdb_bfd.h.
4721 (free_objfile): Use gdb_bfd_unref.
4722 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4723 gdb_bfd.c.
4724 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4725 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4726 (macho_check_dsym): Likewise.
4727 * m32r-rom.c: Include gdb_bfd.h.
4728 (m32r_load): Use gdb_bfd_ref.
4729 (m32r_upload_command): Use gdb_bfd_ref.
4730 * jit.c: Include gdb_bfd.h.
4731 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4732 * gdb_bfd.h: New file.
4733 * gdb_bfd.c: New file.
4734 * gcore.c: Include gdb_bfd.h.
4735 (create_gcore_bfd): Use gdb_bfd_ref.
4736 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4737 (gcore_command): Use gdb_bfd_unref.
4738 * exec.c: Include gdb_bfd.h.
4739 (exec_close): Use gdb_bfd_unref.
4740 (exec_close_1): Use gdb_bfd_unref.
4741 (exec_file_attach): Use gdb_bfd_ref.
4742 * elfread.c: Include gdb_bfd.h.
4743 (build_id_verify): Use gdb_bfd_unref.
4744 * dsrec.c: Include gdb_bfd.h.
4745 (load_srec): Use gdb_bfd_ref.
4746 * corelow.c: Include gdb_bfd.h.
4747 (core_close): Use gdb_bfd_unref.
4748 (core_open): Use gdb_bfd_ref.
4749 * bfd-target.c: Include gdb_bfd.h.
4750 (target_bfd_xclose): Use gdb_bfd_unref.
4751 (target_bfd_reopen): Use gdb_bfd_ref.
4752 * Makefile.in (SFILES): Add gdb_bfd.c.
4753 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4754 (COMMON_OBS): Add gdb_bfd.o.
4755
ed1d1739
KS
47562012-07-18 Keith Seitz <[email protected]>
4757
4758 * breakpoint.c (find_condition_and_thread): Initialize
4759 TASK and REST.
4760 (create_breakpiont): find_condition_and_thread will now
4761 initialize COND_STRING, THREAD, and REST (and TASK).
4762 (addr_string_to_sals): Likewise.
4763
eab402df
PA
47642012-07-18 Pedro Alves <[email protected]>
4765
4766 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4767 Pull the single step breakpoints out of the target.
4768
2b963b68
SDJ
47692012-07-18 Sergio Durigan Junior <[email protected]>
4770
4771 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4772 * stap-probe.c (compile_probe_arg): Likewise.
4773
6bac7473
SDJ
47742012-07-18 Sergio Durigan Junior <[email protected]>
4775
4776 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4777 (elf_compile_to_ax): Likewise.
4778 * infrun.c (insert_exception_resume_from_probe): Likewise.
4779 (check_exception_resume): Remove `objfile' variable.
4780 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4781 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4782 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4783 (compare_entries): Rename to...
4784 (compare_probes): ...this. Adjust function to work with
4785 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4786 respectively.
4787 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4788 `VEC (probe_p) *'.
4789 (print_ui_out_info): Adjust argument to be `struct probe *'.
4790 (info_probes_for_ops): Adjust internal computations to use
4791 `VEC (probe_p) *'.
4792 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4793 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4794 gen_info_probes_table_values>: Remove `objfile' argument.
4795 (struct probe) <objfile>: New field.
4796 (find_probe_by_pc): Remove `objfile' argument.
4797 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4798 (stap_get_probe_argument_count): Likewise.
4799 (stap_get_arg): Likewise.
4800 (stap_evaluate_probe_argument): Likewise.
4801 (stap_compile_to_ax): Likewise.
4802 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4803 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4804 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4805 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4806 sym_compile_to_ax>: Likewise.
4807
3347eb1a 48082012-07-18 Terry Guo <[email protected]>
4809
4810 PR 14329
4811 * defs.h (GDB_MI_MSG_WIDTH): New.
4812 * ser_base (ser_base_read_error_fd): New function.
4813 (do_ser_base_readchar): Poll error file descriptor as well as
4814 standard output.
f782ad9b 4815 (generic_readchar): Refactor error handling.
3347eb1a 4816
80c8d323
JB
48172012-07-18 Joel Brobecker <[email protected]>
4818
4819 * NEWS: Create a new section for the next release branch.
4820 Rename the section of the current branch, now that it has
4821 been cut.
4822
b45a0664 48232012-07-18 Joel Brobecker <[email protected]>
4824
4825 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4826 * version.in: Bump version to 7.5.50.20120718-cvs.
4827
09cf2b22
KS
48282012-07-17 Keith Seitz <[email protected]>
4829
4830 * linespec.c (linespec_parse_line_offset): Make parameter
4831 const.
4832
8f043999
JK
48332012-07-16 Jan Kratochvil <[email protected]>
4834
4835 PR 11914
4836 * f-valprint.c (info_common_command): New variable frame_id.
4837 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4838 * printcmd.c (print_variable_and_value): Extend function comment.
4839 Add comment for invalidated FRAME.
4840 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4841 FI form FRAME_ID after each print_frame_local_vars.
4842 (struct print_variable_and_value_data): Change frame to frame_id.
4843 (do_print_variable_and_value): New variable frame, initialize it from
4844 p->frame_id. Add comment for invalidated FRAME.
4845 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4846 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4847 for invalidated FRAME.
4848
ae5e0686
MK
48492012-07-16 Marc Khouzam <[email protected]>
4850 Pedro Alves <[email protected]>
4851
4852 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4853 loop.
4854
5049c5be
TT
48552012-07-16 Tom Tromey <[email protected]>
4856
4857 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4858
2908cac6
DE
48592012-07-15 Doug Evans <[email protected]>
4860
094b34ac
DE
4861 * dwarf2read.c (stmt_list_hash): New struct.
4862 (type_unit_group): Embed "per_cu" member, remove pointer.
4863 New union member "t", move member "tus" into it, all uses updated.
4864 New member "hash", replaces member "line_offset, all uses updated.
4865 (quick_file_names): Replace member "offset" with "hash", all uses
4866 updated.
4867 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4868 (hash_file_name_entry, eq_file_name_entry): Call them.
4869 (hash_type_unit_group, eq_type_unit_group): Ditto.
4870 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4871 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4872 (dw2_get_file_names): Update.
4873 (create_type_unit_group): Replace "per_cu" arg with "cu".
4874 All callers updated. Fix "quick" (.gdb_index) handling.
4875 (get_type_unit_group): Replace "per_cu" arg with "cu".
4876 All callers updated.
4877 (build_type_unit_groups): Don't reset tu_stats.
4878
2908cac6
DE
4879 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4880 "tab_cur_size". Change member "tab" to be a htab_t.
4881 (create_filename_seen_cache): Update.
4882 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4883 (filename_seen): Update.
4884
a2b6eff5
DE
48852012-07-13 Doug Evans <[email protected]>
4886
4887 * symtab.c (filename_seen): Update comment.
4888
4359dff1
JK
48892012-07-13 Jan Kratochvil <[email protected]>
4890 Doug Evans <[email protected]>
4891
4892 * buildsym.c (end_symtab_1): Split it to ...
4893 (end_symtab_get_static_block): ... this ...
4894 (end_symtab_from_static_block): ... and this function.
4895 (end_symtab, end_expandable_symtab): Call them.
4896 * buildsym.h (end_symtab_get_static_block)
4897 (end_symtab_from_static_block): New declarations.
4898 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4899 Set its valid CU ranges.
4900
a24f71ab
JK
49012012-07-13 Jan Kratochvil <[email protected]>
4902
4903 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4904 DW_OP_GNU_parameter_ref.
4905
d76b7dbc
JK
49062012-07-13 Jan Kratochvil <[email protected]>
4907
4908 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4909 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4910
9fdc877b
DE
49112012-07-13 Doug Evans <[email protected]>
4912
4913 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4914 (filename_seen_cache): New struct.
4915 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4916 (create_filename_seen_cache): New function.
4917 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4918 (filename_seen): Delete arg "first". New arg "cache". All callers
4919 updated.
4920 (output_source_filename_data): New struct.
4921 (output_source_filename): Delete arg "first". New arg "data".
4922 All callers updated.
4923 (sources_info): Delete local "first". New locals "data", "cleanups".
4924 Rewrite to use filename_seen_cache.
4925 (add_partial_filename_data): Delete member "first". New member
4926 "filename_seen_cache". All uses updated.
4927 (make_source_files_completion_list): Rewrite to use
4928 filename_seen_cache.
4929
f80c6f3f
DE
49302012-07-12 Doug Evans <[email protected]>
4931
4932 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4933
0bfa869d
DE
49342012-07-10 Doug Evans <[email protected]>
4935
f4dc4d17
DE
4936 PR gdb/13498
4937 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4938 all_type_unit_groups, type_unit_groups, tu_stats.
4939 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4940 All uses updated. Add type_unit_group to union "s".
4941 (type_unit_group): New struct.
4942 (IS_TYPE_UNIT_GROUP): New macro.
4943 (abbrev_table): Delete unused member "section".
4944 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4945 (dw2_get_cu): Assert not used with type_unit_group.
4946 (dw2_get_primary_cu): New function.
4947 (dw2_build_type_unit_groups_reader): New function.
4948 (dw2_build_type_unit_groups): New function.
4949 (dw2_get_file_names): Assert not called on type units.
4950 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4951 Redo loop to iterate over type unit groups instead of type units.
4952 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4953 (read_abbrev_offset): New function.
4954 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4955 updated.
4956 (create_partial_symtab): New function.
4957 (process_psymtab_comp_unit_reader): Assert not used with type units.
4958 Call create_partial_symtab.
4959 (process_psymtab_type_unit): Delete.
4960 (hash_type_unit_group, eq_type_unit_group): New functions.
4961 (allocate_type_unit_groups_table): New function.
4962 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4963 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4964 (create_type_unit_group, get_type_unit_group): New functions.
4965 (tu_abbrev_offset): New struct.
4966 (sort_tu_by_abbrev_offset): New function.
4967 (add_type_unit_group_to_table): New function.
4968 (build_type_unit_groups): New function.
4969 (build_type_psymtabs_reader): New function.
4970 (build_type_psymtab_dependencies): New function.
4971 (build_type_psymtabs): Rewrite.
4972 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4973 is seen in a type unit.
4974 (process_queue): Move symtab expansion debugging printfs here.
4975 Call process_full_type_unit for type units.
4976 (compute_symtab_includes): Assert not called for type units.
4977 (process_cu_includes): Don't call compute_symtab_includes for
4978 type units.
4979 (process_full_type_unit): New function.
4980 (process_imported_unit_die): Flag an error if called for type units.
4981 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4982 updated. Assert not called for type units.
4983 (read_file_scope): Call dwarf2_start_symtab.
4984 (setup_type_unit_groups): New function.
4985 (read_type_unit_scope): Rewrite.
4986 (abbrev_table_read_table): Initialize abbrev_table->offset.
4987 (abbrev_table_free_cleanup): New function.
4988 (dwarf2_start_symtab): New function.
4989 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4990 * buildsym.c (finish_block_internal): New arg "expandable".
4991 All callers updated.
4992 (start_symtab): Move most contents to ...
4993 (restart_symtab): ... here. New function.
4994 (reset_symtab_globals): New function.
4995 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4996 Call reset_symtab_globals.
4997 (end_symtab, end_expandable_symtab): New functions.
4998 (set_missing_symtab, augment_type_symtab): New functions.
4999 * buildsym.h (end_expandable_symtab): Declare.
5000 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
5001 * psympriv.h (struct partial_symtab): New member "anonymous".
5002 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
5003 anonymous psymtabs.
5004 (read_psymtabs_with_filename): Ditto.
5005 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
5006 (expand_symtabs_matching_via_partial): Ditto.
5007 (dump_psymtab): Update.
0bfa869d
DE
5008 * dictionary.c (dict_add_pending): New function.
5009 * dictionary.h (dict_add_pending): Declare.
5010
45e58e77
DE
50112012-07-09 Doug Evans <[email protected]>
5012
b74db436
DE
5013 * buildsym.c (start_subfile): Remove unnecessary check for
5014 name == NULL.
5015
fd55216c
DE
5016 * psymtab.c (allocate_psymtab): Use host_address_to_string.
5017
6721b2ec
DE
5018 * dwarf2read.c (load_full_type_unit): Simplify.
5019
b4dd5633
DE
5020 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
5021 to struct signatured_type **. All uses updated.
5022
45e58e77
DE
5023 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
5024 All callers updated.
5025
e314d629
TT
50262012-07-09 Tom Tromey <[email protected]>
5027
5028 * c-exp.y (check_parameter_typelist): New function.
5029 (parameter_typelist): Call it.
5030 * eval.c (make_params): Handle '(void)' case.
5031 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5032 '(void)' case.
5033
aa7c7447
JK
50342012-07-07 Jan Kratochvil <[email protected]>
5035
5036 * common/linux-ptrace.c: Include gdb_assert.h.
5037 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
5038 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
5039 stdint.h.
5040 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
5041 functions.
5042 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
5043 * linux-nat.c (linux_child_post_attach)
5044 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
5045
889003ed
JK
50462012-07-07 Jan Kratochvil <[email protected]>
5047
5048 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
5049 nptl <2.7 bug workaround for core files.
5050
da559b09
JK
50512012-07-06 Jan Kratochvil <[email protected]>
5052
5053 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
5054 clearing.
5055 (save_siginfo): Remove.
5056 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
5057 call.
5058 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
5059 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
5060 * linux-nat.h (struct lwp_info): Remove field siginfo.
5061
f865ee35
JK
50622012-07-06 Jan Kratochvil <[email protected]>
5063
5064 Code cleanup for the next patch.
5065 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
5066 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5067 call for it.
5068 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
5069 (ia64_linux_stopped_data_address):
5070 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
5071 the return value.
5072 * linux-nat.h (linux_nat_get_siginfo): Likewise.
5073 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
5074 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
5075 call for it.
5076
76b83c51
JK
50772012-07-06 Jan Kratochvil <[email protected]>
5078
5079 PR 14321
5080 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
5081 Increase buffer sizes to 2x we need, not just 2x of the previous size.
5082
a6fb9c08
TT
50832012-07-06 Tom Tromey <[email protected]>
5084
5085 * c-exp.y (DOTDOTDOT): New token.
5086 (func_mod, exp): Use parameter_typelist.
5087 (parameter_typelist): New production.
5088 (tokentab3): Add "..." token.
5089 * eval.c (make_params): Handle varargs.
5090 * gdbtypes.c (lookup_function_type_with_arguments): Handle
5091 varargs.
5092
71918a86
TT
50932012-07-06 Tom Tromey <[email protected]>
5094
5095 PR exp/9608:
5096 * c-exp.y (%union) <tvec>: Change type.
5097 (func_mod): Now uses <tvec> type.
5098 (exp): Update for tvec change.
5099 (direct_abs_decl): Push the typelist.
5100 (func_mod): Return a typelist.
5101 (nonempty_typelist): Update for tvec change.
5102 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5103 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5104 * parse.c (pop_type_list): New function.
5105 (push_typelist): New function.
5106 (follow_types): Handle tp_function_with_arguments.
5107 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5108 (enum type_pieces) <tp_function_with_arguments>: New constant.
5109 (union type_stack_elt) <typelist_val>: New field.
5110 (push_typelist): Declare.
5111
fcde5961
TT
51122012-07-06 Tom Tromey <[email protected]>
5113
5114 * c-exp.y (%union) <type_stack>: New field.
5115 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5116 (ptr_operator_ts): New production.
5117 (ptype): Update.
5118 * parse.c (type_stack_reserve): New function.
5119 (check_type_stack_depth): Use it.
5120 (pop_type_stack, append_type_stack, push_type_stack)
5121 (get_type_stack, type_stack_cleanup): New functions.
5122 (follow_types): Handle tp_type_stack.
5123 (_initialize_parse): Simplify initialization.
5124 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5125 constant.
5126 (union type_stack_elt) <stack_val>: New field.
5127 (get_type_stack, append_type_stack, push_type_stack)
5128 (type_stack_cleanup): Declare.
5129
1a7d0ce4
TT
51302012-07-06 Tom Tromey <[email protected]>
5131
5132 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5133 Remove.
5134 (struct type_stack): New.
5135 * parse.c (type_stack, type_stack_size, type_stack_depth):
5136 Remove.
5137 (type_stack): New global.
5138 (parse_exp_in_context, check_type_stack_depth)
5139 (insert_into_type_stack, insert_type, push_type, push_type_int)
5140 (insert_type_address_space, pop_type, pop_type_int)
5141 (_initialize_parse): Update.
5142
16d01384
TT
51432012-07-06 Tom Tromey <[email protected]>
5144
5145 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5146 Remove %type.
5147
9bfc60bf
SP
51482012-07-06 Siddhesh Poyarekar <[email protected]>
5149
5150 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5151
d5161074
SP
51522012-07-06 Siddhesh Poyarekar <[email protected]>
5153 Jan Kratochvil <[email protected]>
5154
5155 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5156 alloca with xmalloc/xfree.
5157
a74bc576
SP
51582012-07-06 Siddhesh Poyarekar <[email protected]>
5159
5160 * MAINTAINERS (Write After Approval): Add myself to the list.
5161
667e0a4b
DE
51622012-07-05 Doug Evans <[email protected]>
5163
5164 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5165
34b536a8
HZ
51662012-07-05 Hui Zhu <[email protected]>
5167
5168 * ax-gdb.c (cli/cli-utils.h): New include.
5169 (linespec.h): Ditto.
5170 (agent_eval_command_one): New function.
5171 (agent_command_1): Ditto.
5172 (agent_command): Call function agent_command_1.
5173 (agent_eval_command): Ditto.
5174 (_initialize_ax_gdb): Change help for "maint agent"
5175 and "maint agent-eval".
5176
e6f0bce7
HZ
51772012-07-05 Hui Zhu <[email protected]>
5178
5179 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5180 * cli/cli-utils.c (check_for_argument): New function.
5181 * cli/cli-utils.h (check_for_argument): Ditto.
5182
1b3371b1
L
51832012-07-04 H.J. Lu <[email protected]>
5184
5185 * NEWS: Mention x32 ABI support.
5186
23e2d720
L
51872012-07-04 H.J. Lu <[email protected]>
5188
5189 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5190 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5191
5192 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5193 and pc_regnum_from_eax to -1. Update SP regnum from
5194 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5195 needed.
5196
5197 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5198 pc_regnum_from_eax.
5199
836bf454
JK
52002012-07-03 Jan Kratochvil <[email protected]>
5201
5202 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5203 * dwarf2expr.h: Include gdbtypes.h.
5204 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5205 these forward declarations.
5206 (cu_offset, sect_offset): Move these ...
5207 * gdbtypes.h: Remove include dwarf2expr.h.
5208 (cu_offset, sect_offset): ... here.
5209
1e55e04f
L
52102012-07-03 H.J. Lu <[email protected]>
5211
5212 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5213 (amd64_linux_sigtramp_code): This.
5214 (amd64_x32_linux_sigtramp_code): New.
5215 (LINUX_SIGTRAMP_LEN): Updated.
5216 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5217
7d0e21ad
JK
52182012-07-02 Jan Kratochvil <[email protected]>
5219
5220 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5221
8775fd2d
JK
52222012-07-02 Jan Kratochvil <[email protected]>
5223
5224 * config.in: Regenerate.
5225 * configure: Regenerate.
5226 * configure.ac: Remove check for gnu/libc-version.h.
5227 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5228 gnu/libc-version.h.
5229 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5230 variables libc_version, libc_major and libc_minor. Replace sscanf by
5231 inferior_has_bug. Extend the comment.
5232
fcb44371
JK
52332012-07-02 Jan Kratochvil <[email protected]>
5234
5235 * linux-thread-db.c (inferior_has_bug): New function.
5236 (thread_db_find_new_threads_silently): Return boolean as checked by
5237 inferior_has_bug, describe it in the comments.
5238 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5239 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 5240 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
5241 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5242 if UNTIL_NO_NEW,
5243
09406207
DE
52442012-07-02 Doug Evans <[email protected]>
5245
0907af0c
DE
5246 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5247 related to queue management.
5248
09406207
DE
5249 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5250 instead of "debug dwarf2-die" in debugging printfs.
5251 (create_debug_info_hash_table_reader): Ditto.
5252 (create_debug_info_hash_table): Ditto.
5253 (init_dwo_file): Ditto.
5254 (init_cutu_and_read_dies): Add debugging printf.
5255 (init_cutu_and_read_dies_no_follow): Ditto.
5256 (process_psymtab_comp_unit_reader): Ditto.
5257
d3ce09f5
SS
52582012-07-02 Stan Shebs <[email protected]>
5259
5260 Add target-side support for dynamic printf.
5261 * NEWS: Mention the additional style.
5262 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5263 (struct bp_location): New field cmd_bytecode.
5264 * breakpoint.c: Include format.h.
5265 (disconnected_dprintf): New global.
5266 (parse_cmd_to_aexpr): New function.
5267 (build_target_command_list): New function.
5268 (insert_bp_location): Call it.
5269 (remove_breakpoints_pid): Skip dprintf breakpoints.
5270 (print_one_breakpoint_location): Ditto.
5271 (dprintf_style_agent): New global.
5272 (dprintf_style_enums): Add dprintf_style_agent.
5273 (update_dprintf_command_list): Add agent case.
5274 (agent_printf_command): New function.
5275 (_initialize_breakpoint): Add new commands.
5276 * common/ax.def (printf): New bytecode.
5277 * ax.h (ax_string): Declare.
5278 * ax-gdb.h (gen_printf): Declare.
5279 * ax-gdb.c: Include cli-utils.h, format.h.
5280 (gen_printf): New function.
5281 (maint_agent_print_command): New function.
5282 (_initialize_ax_gdb): Add maint agent-printf command.
5283 * ax-general.c (ax_string): New function.
5284 (ax_print): Add printf disassembly.
5285 * Makefile.in (SFILES): Add format.c
5286 (COMMON_OBS): Add format.o.
5287 * common/format.h: New file.
5288 * common/format.c: New file.
5289 * printcmd.c: Include format.h.
5290 (ui_printf): Call parse_format_string.
5291 * remote.c (remote_state): New field breakpoint_commands.
5292 (PACKET_BreakpointCommands): New enum.
5293 (remote_breakpoint_commands_feature): New function.
5294 (remote_protocol_features): Add new BreakpointCommands entry.
5295 (remote_can_run_breakpoint_commands): New function.
5296 (remote_add_target_side_commands): New function.
5297 (remote_insert_breakpoint): Call it.
5298 (remote_insert_hw_breakpoint): Ditto.
5299 (_initialize_remote): Add new packet configuration for
5300 target-side breakpoint commands.
5301 * target.h (struct target_ops): New field
5302 to_can_run_breakpoint_commands.
5303 (target_can_run_breakpoint_commands): New macro.
5304 * target.c (update_current_target): Handle
5305 to_can_run_breakpoint_commands.
5306
2d7b58e8
JK
53072012-07-02 Jan Kratochvil <[email protected]>
5308
5309 Execute -ix and -iex only after system and user gdbinit files.
5310 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5311 processing down after gdbinit files.
5312
8690e634
JK
53132012-07-02 Jan Kratochvil <[email protected]>
5314
5315 Add fnmatch-gnu module.
5316 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5317 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5318 * gnulib/aclocal.m4: Regenerate.
5319 * gnulib/config.in: Regenerate.
5320 * gnulib/configure: Regenerate.
5321 * gnulib/import/dummy.c: Remove.
5322 * gnulib/import/Makefile.am: Regenerate.
5323 * gnulib/import/Makefile.in: Likewise.
5324 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5325 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5326 * gnulib/import/alloca.c: New file.
5327 * gnulib/import/alloca.in.h: Likewise.
5328 * gnulib/import/config.charset: Likewise.
5329 * gnulib/import/fnmatch.c: Likewise.
5330 * gnulib/import/fnmatch.in.h: Likewise.
5331 * gnulib/import/fnmatch_loop.c: Likewise.
5332 * gnulib/import/localcharset.c: Likewise.
5333 * gnulib/import/localcharset.h: Likewise.
5334 * gnulib/import/m4/alloca.m4: Likewise.
5335 * gnulib/import/m4/codeset.m4: Likewise.
5336 * gnulib/import/m4/configmake.m4: Likewise.
5337 * gnulib/import/m4/fcntl-o.m4: Likewise.
5338 * gnulib/import/m4/fnmatch.m4: Likewise.
5339 * gnulib/import/m4/glibc21.m4: Likewise.
5340 * gnulib/import/m4/localcharset.m4: Likewise.
5341 * gnulib/import/m4/locale-fr.m4: Likewise.
5342 * gnulib/import/m4/locale-ja.m4: Likewise.
5343 * gnulib/import/m4/locale-zh.m4: Likewise.
5344 * gnulib/import/m4/mbrtowc.m4: Likewise.
5345 * gnulib/import/m4/mbsinit.m4: Likewise.
5346 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5347 * gnulib/import/m4/mbstate_t.m4: Likewise.
5348 * gnulib/import/m4/stdbool.m4: Likewise.
5349 * gnulib/import/m4/wchar_h.m4: Likewise.
5350 * gnulib/import/m4/wctype_h.m4: Likewise.
5351 * gnulib/import/m4/wint_t.m4: Likewise.
5352 * gnulib/import/mbrtowc.c: Likewise.
5353 * gnulib/import/mbsinit.c: Likewise.
5354 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5355 * gnulib/import/mbsrtowcs-state.c: Likewise.
5356 * gnulib/import/mbsrtowcs.c: Likewise.
5357 * gnulib/import/ref-add.sin: Likewise.
5358 * gnulib/import/ref-del.sin: Likewise.
5359 * gnulib/import/stdbool.in.h: Likewise.
5360 * gnulib/import/streq.h: Likewise.
5361 * gnulib/import/strnlen1.c: Likewise.
5362 * gnulib/import/strnlen1.h: Likewise.
5363 * gnulib/import/verify.h: Likewise.
5364 * gnulib/import/wchar.in.h: Likewise.
5365 * gnulib/import/wctype.in.h: Likewise.
5366
202cbf1c
JK
53672012-07-02 Jan Kratochvil <[email protected]>
5368
5369 Support shell wildcards for 'set auto-load safe-path'.
5370 * auto-load.c: Include fnmatch.h.
5371 (filename_is_in_dir): Rename to ...
5372 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5373 it. Update function comment. Rename dir_len to pattern_len. New
5374 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5375 messages. Use gdb_filename_fnmatch.
5376 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5377 pattern.
5378 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5379 * defs.h (gdb_filename_fnmatch): New declaration.
5380 * utils.c: Include fnmatch.h.
5381 (gdb_filename_fnmatch): New function.
5382
fb7b5af4
SDJ
53832012-07-02 Sergio Durigan Junior <[email protected]>
5384
5385 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5386 `-probe' and `-probe-stap' options.
5387
72d0e2c5
YQ
53882012-07-01 Yao Qi <[email protected]>
5389
5390 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5391 always_inserted_off, and always_inserted_enums.
5392 Change always_inserted_mode's type to 'enum auto_boolean'.
5393 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5394 callers.
5395 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5396 of add_setshow_enum_cmd.
5397 * infrun.c: Remove can_use_displaced_stepping_auto,
5398 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5399 can_use_displaced_stepping_enum.
5400 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
f87e3f15
PA
5401 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5402 callers.
72d0e2c5
YQ
5403 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5404 add_setshow_enum_cmd.
5405
42e7ad6c
DE
54062012-06-30 Doug Evans <[email protected]>
5407
5408 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5409 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5410 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5411
39cf75f7
DE
54122012-06-29 Doug Evans <[email protected]>
5413
5414 * linespec.c: #include "stack.h".
5415 (decode_line_with_current_source): Moved here from symtab.c and
5416 renamed from decode_line_spec. All callers updated.
5417 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5418 renamed from decode_line_spec_1. All callers updated.
5419 * linespec.h (decode_line_with_current_source): Move declaration here
5420 from symtab.h and renamed from decode_line_spec.
5421 (decode_line_with_last_displayed): Move declaration here from symtab.h
5422 and renamed from decode_line_spec_1.
5423 * macrocmd.c: #include "linespec.h".
5424 * symtab.c: Remove #include "linespec.h".
5425
433df2d4
DE
54262012-06-28 Doug Evans <[email protected]>
5427
1ce1cefd
DE
5428 * dwarf2read.c (get_cu_length): New function.
5429 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5430 (create_debug_types_hash_table): Ditto.
5431 (init_cutu_and_read_dies): Ditto.
5432 (init_cutu_and_read_dies_no_follow): Ditto.
5433
3b80fe9b
DE
5434 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5435
433df2d4
DE
5436 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5437 (struct abbrev_table): Define.
5438 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5439 abbrev_table.
5440 (init_cutu_and_read_dies): Update.
5441 (abbrev_table_alloc_abbrev): New function. Replaces
5442 dwarf_alloc_abbrev. All callers updated.
5443 (abbrev_table_add_abbrev): New function.
5444 (abbrev_table_lookup_abbrev): New function. Replaces
5445 dwarf2_lookup_abbrev. All callers updated.
5446 (abbrev_table_read_table): New function. Contents moved here from
5447 dwarf2_read_abbrevs.
5448 (dwarf2_read_abbrevs): Call it.
5449 (abbrev_table_free): New function.
5450 (dwarf2_free_abbrev_table): Call it.
5451
71caed83
SS
54522012-06-28 Stan Shebs <[email protected]>
5453
5454 * osdata.c (info_osdata_command): Filter out "Title" columns
5455 from non-MI uses.
5456 * common/linux-osdata.c (struct osdata_type): Add title field.
5457 (osdata_table): Add titles to each entry.
5458 (linux_command_xfer_osdata): Add a column for title data.
5459
37ce89eb
SS
54602012-06-28 Stan Shebs <[email protected]>
5461
5462 Make logging work for MI.
5463 * NEWS: Mention it.
5464 * interps.h (interp_set_logging_ftype): New typedef.
5465 (struct interp_procs): New field set_logging_proc.
5466 (current_interp_set_logging): Declare.
5467 * interps.c (current_interp_set_logging): New function.
5468 * cli/cli-logging.c: Include interps.h.
5469 (set_logging_redirect): Call current_interp_set_logging.
5470 (pop_output_files): Ditto.
5471 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5472 * mi/mi-console.h (mi_console_set_raw): Declare.
5473 * mi/mi-console.c (mi_console_set_raw): New function.
5474 * mi/mi-interp.c (saved_raw_stdout): New global.
5475 (mi_set_logging): New function.
5476 (_initialize_mi_interp): Add it to interp procs.
5477
659c9f3a
DE
54782012-06-28 Doug Evans <[email protected]>
5479
a743abeb
DE
5480 * symtab.c (lookup_symbol_aux_objfile): Use
5481 ALL_OBJFILE_PRIMARY_SYMTABS.
5482
659c9f3a
DE
5483 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5484
da2d6d3d
JK
54852012-06-28 Jan Kratochvil <[email protected]>
5486
5487 * common/buffer.c: Include inttypes.h and stdint.h.
5488 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5489
e5ef252a
PA
54902012-06-28 Jan Kratochvil <[email protected]>
5491 Pedro Alves <[email protected]>
5492
5493 * gdbthread.h (ALL_THREADS): New macro.
5494 (thread_list): Declare.
5495 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5496 going, but instead fall through to the stepping handling.
5497 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5498 the passed in signal. Adjust debug output.
5499 (resume_callback): Rename to ...
5500 (linux_nat_resume_callback): ... this. Pass the thread's last
5501 stop signal, if in "pass" state.
5502 (linux_nat_resume): Adjust to rename.
5503 (stop_wait_callback): New assertion. Don't respawn signals;
5504 instead let the LWP remain with SIGNALLED set.
5505 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5506 * remote.c (append_pending_thread_resumptions): New.
5507 (remote_vcont_resume): Call it.
5508 * target.h (target_resume): Extend comment.
5509
1d7975eb
IS
55102012-06-28 Iain Sandoe <[email protected]>
5511
5512 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5513
2e3cf129
DE
55142012-06-27 Doug Evans <[email protected]>
5515
5516 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5517 Delete have_addr_base, unused. All uses updated.
5518 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5519 (dwarf2_get_pc_bounds): Add ranges_base.
5520 (dwarf2_record_block_ranges): Ditto.
5521
1bb9788d
TT
55222012-06-27 Tom Tromey <[email protected]>
5523
5524 PR macros/7961:
5525 * varobj.c (varobj_create): Update.
5526 (varobj_set_value): Update.
5527 * tracepoint.c (validate_actionline): Update.
5528 (encode_actions_1): Update.
5529 * parse.c (parse_exp_1): Add 'pc' argument.
5530 (parse_exp_in_context): Add 'pc' argument. Change how
5531 expression_context_pc is set.
5532 (parse_expression): Update.
5533 (parse_field_expression): Update.
5534 * expression.h (parse_exp_1): Update.
5535 * eval.c (parse_to_comma_and_eval): Update.
5536 * breakpoint.c (set_breakpoint_condition): Update.
5537 (update_watchpoint): Update.
5538 (init_breakpoint_sal): Update
5539 (find_condition_and_thread): Update.
5540 (watch_command_1): Update.
5541 (update_breakpoint_locations): Update.
5542 * ada-lang.c (ada_read_renaming_var_value): Update.
5543 (create_excep_cond_exprs): Update.
5544
0bc3a05c
DE
55452012-06-27 Doug Evans <[email protected]>
5546
5547 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5548 type units.
5549
4bdcc0c1
DE
55502012-06-26 Doug Evans <[email protected]>
5551
5552 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5553 prototype.
5554 (error_check_comp_unit_head): New arg abbrev_section. All callers
5555 updated.
5556 (read_and_check_comp_unit_head): Ditto.
5557 (read_and_check_type_unit_head): Ditto.
5558
ee0bf529
SCR
55592012-06-26 Siva Chandra Reddy <[email protected]>
5560
5561 New attribute 'last' for gdb.Symtab_and_line.
5562 * NEWS (Python Scripting): Add entry about the new attribute.
5563 * python/py-symtab.c (salpy_get_last): New function which
5564 implements the get method for the 'last' attribute of
5565 gdb.Symtab_and_line.
5566 (sal_object_getset): Add entry for the 'last' attribute.
5567
1c658ad5
DE
55682012-06-26 Doug Evans <[email protected]>
5569
09262596
DE
5570 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5571 (dwo_sections): Add macinfo, macro.
5572 (dwarf2_locate_dwo_sections): Watch for macro sections.
5573 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5574 All callers updated. Handle DWO files.
5575
45cfd468
DE
5576 * NEWS: Mention new options "set debug dwarf2-read" and
5577 "set debug symtab-create".
5578 * dwarf2read.c (dwarf2_read_debug): New static global.
5579 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5580 (process_queue): Ditto.
5581 (process_full_comp_unit): Ditto.
5582 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5583 * elfread.c (elf_symfile_read): Add debugging printf.
5584 * minsyms.c (install_minimal_symbols): Ditto.
5585 * psymtab.c (allocate_psymtab): Ditto.
5586 * symfile.c (allocate_symtab): Ditto.
5587 * symtab.c (symtab_create_debug): New global.
5588 (_initialize_symtab): Add new option "set debug symtab-create".
5589 * symtab.h (symtab_create_debug): Declare.
5590
1c658ad5
DE
5591 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5592 (lookup_dwo_type_unit): Ditto.
5593
6fea9e18
L
55942012-06-26 Roland McGrath <[email protected]>
5595 H.J. Lu <[email protected]>
5596
5597 * amd64-linux-nat.c: Include <sys/user.h>.
5598 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5599 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5600 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5601
5602 * configure.ac: Check if the fs_base and gs_base members of
5603 `struct user_regs_struct' exist.
5604 * config.in: Regenerated.
5605 * configure: Likewise.
5606
adb4fe3b
ME
56072012-06-25 Michael Eager <[email protected]>
5608
5609 PR python/14291
f782ad9b 5610 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 5611
fc51cce1
MGD
56122012-06-25 Greta Yorsh <[email protected]>
5613
5614 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5615 register as a stack alignment in ARM mode.
5616
40a73391
JK
56172012-06-24 Jan Kratochvil <[email protected]>
5618
5619 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5620 * gnulib/config.in: Regenerate.
5621 * gnulib/configure: Likewise.
5622 * gnulib/import/m4/extensions.m4: Update it.
5623 * gnulib/import/m4/gnulib-common.m4: Likewise.
5624 * gnulib/import/m4/memmem.m4: Likewise.
5625 * gnulib/import/m4/mmap-anon.m4: Likewise.
5626 * gnulib/import/m4/multiarch.m4: Likewise.
5627 * gnulib/import/stdint.in.h: Likewise.
5628
972daa01
YQ
56292012-06-24 Yao Qi <[email protected]>
5630
5631 * corefile.c (write_memory_with_notification): New.
5632 * gdbcore.h: Declare write_memory_with_notification.
5633 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5634 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5635 * valops.c (value_assign): Likewise.
5636 * python/py-inferior.c (infpy_write_memory): Call
5637 'write_memory_with_notification'.
5638
8d6e0714
JK
56392012-06-24 Jan Kratochvil <[email protected]>
5640
5641 * cc-with-index.sh: Use also -ex "set auto-load no".
5642
156942c7
DE
56432012-06-23 Doug Evans <[email protected]>
5644
5645 PR 14125
5646 * NEWS: Document additions to .gdb_index.
5647 * dwarf2read.c: #include "gdb/gdb-index.h".
5648 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5649 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5650 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5651 (dwarf2_read_index): Recognize version 7.
5652 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5653 block_kind, domain): All callers updated.
5654 (dw2_find_symbol_file): Handle new index CU values.
5655 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5656 (add_index_entry): New args is_static, kind. All callers updated.
5657 (offset_type_compare, uniquify_cu_indices): New functions
5658 (symbol_kind): New function.
5659 (write_psymtabs_to_index): Remove duplicate CU values.
5660 (write_psymtabs_to_index): Write .gdb_index version 7.
5661
352b3eda
JB
56622012-06-22 Joel Brobecker <[email protected]>
5663
5664 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5665 * configure: Regenerate.
5666
2678e2af
YQ
56672012-06-20 Yao Qi <[email protected]>
5668
5669 * python/py-inferior.c: Update comments of infpy_read_memory
5670 and infpy_write_memory.
5671
95c391b6
TT
56722012-06-19 Tom Tromey <[email protected]>
5673
5674 PR exp/9514:
5675 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5676 (push_type_address_space): Remove.
5677 * parse.c (insert_into_type_stack): New function.
5678 (insert_type): Likewise.
5679 (insert_type_address_space): Rename from push_type_address_space.
5680 Insert tp_space_identifier.
5681 * c-exp.y (ptr_operator): New production.
5682 (abs_decl): Use ptr_operator.
5683 (space_identifier): Call insert_type_address_space.
5684 (ptype): Don't use const_or_volatile_or_space_identifier.
5685 (const_or_volatile_noopt): Call insert_type.
5686 (conversion_type_id, conversion_declarator): New productions.
5687 (operator): Use conversion_type_id.
5688
6ac9ef80
DE
56892012-06-18 Doug Evans <[email protected]>
5690
422d65e7
DE
5691 * symtab.h (minimal_symbol): New member created_by_gdb.
5692 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5693 created by gdb.
5694 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5695 (search_symbols): Call it instead of lookup_symbol.
5696 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5697
49f6c839
DE
5698 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5699 Adjust address for DW_OP_GNU_addr_index.
5700 * dwarf2expr.h (dwarf_expr_context): Update comment.
5701 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5702 all callers updated. Handle TLS vars described with
5703 DW_OP_GNU_const_index.
5704 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5705 and DW_OP_GNU_const_index.
5706 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5707
6ac9ef80
DE
5708 * block.c (find_block_in_blockvector): Make explicit the fact that we
5709 ignore GLOBAL_BLOCK.
5710
4cd18215
TT
57112012-06-18 Tom Tromey <[email protected]>
5712
5713 * c-exp.y (operator): Remove trailing space after "delete" and
5714 "delete[]".
5715
a9b8d892
JK
57162012-06-18 Mark Kettenis <[email protected]>
5717 Jan Kratochvil <[email protected]>
5718
5719 Switch i386 and derived targets to ON_STACK.
5720 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5721 (amd64_dicos_init_abi): Remove its installment.
5722 * dicos-tdep.c (dicos_init_abi): Remove the
5723 set_gdbarch_call_dummy_location call. Update the comment here.
5724 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5725 (i386_dicos_init_abi): Remove its installment.
5726 * i386-tdep.c (i386_push_dummy_code): New function.
5727 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5728 i386_push_dummy_code.
5729
e2e4d78b
JK
57302012-06-18 Jan Kratochvil <[email protected]>
5731
5732 Remove stale dummy frames.
5733 * breakpoint.c: Include dummy-frame.h.
5734 (longjmp_breakpoint_ops): New variable.
5735 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5736 bp_longjmp_call_dummy.
5737 (bpstat_what, bptype_string, print_one_breakpoint_location)
5738 (init_bp_location): Support bp_longjmp_call_dummy.
5739 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5740 (set_longjmp_breakpoint_for_call_dummy)
5741 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5742 functions.
5743 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5744 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5745 FIXME comment and extend the other comment for bp_call_dummy.
5746 (set_longjmp_breakpoint_for_call_dummy)
5747 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5748 * dummy-frame.c: Include gdbthread.h.
5749 (pop_dummy_frame_bpt): New function.
5750 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5751 (dummy_frame_discard): New function.
5752 (cleanup_dummy_frames): Update the comment about longjmps.
5753 * dummy-frame.h (dummy_frame_discard): New declaration.
5754 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5755 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5756 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5757 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5758 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5759 keep_going if IS_LONGJMP and there is no other reason to stop.
5760
09d5912c
TT
57612012-06-18 Greta Yorsh <[email protected]>
5762
5763 * remote-sim.c (sim_command_completer): Initialize
5764 variable 'result'.
5765
1788b2d3
JK
57662012-06-17 Jan Kratochvil <[email protected]>
5767
5768 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5769 * dwarf2loc.c (call_site_parameter_matches): Support
5770 CALL_SITE_PARAMETER_PARAM_OFFSET.
5771 (needs_dwarf_reg_entry_value): Push stub value.
5772 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5773 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5774 * gdbtypes.h (enum call_site_parameter_kind): New item
5775 CALL_SITE_PARAMETER_PARAM_OFFSET.
5776 (struct call_site.parameter.u): New field param_offset.
5777
24c5c679
JK
57782012-06-17 Jan Kratochvil <[email protected]>
5779
5780 Code cleanup: Generalize call_site.parameter key.
5781 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5782 variable dwarf_reg. New variable kind_u. Update parameters to
5783 push_dwarf_reg_entry_value.
5784 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5785 * dwarf2expr.h (enum call_site_parameter_kind)
5786 (union call_site_parameter_u): Forward declarations.
5787 (struct dwarf_expr_context_funcs): Update parameters and their
5788 description for push_dwarf_reg_entry_value.
5789 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5790 * dwarf2loc.c (call_site_parameter_matches): New function.
5791 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5792 description. Use call_site_parameter_matches.
5793 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5794 Update parameters and their description.
5795 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5796 New variable kind_u. Adjust the caller for updated parameters.
5797 (needs_dwarf_reg_entry_value): Update parameters.
5798 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5799 instead of attr. Update for the changed fields of struct
5800 call_site_parameter.
5801 * gdbtypes.h: Include dwarf2expr.h.
5802 (enum call_site_parameter_kind): New.
5803 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5804 fb_offset into new union u.
5805
ac142d96
L
58062012-06-16 H.J. Lu <[email protected]>
5807
5808 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5809 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5810 for x32.
5811
ba224c70
L
58122012-06-16 H.J. Lu <[email protected]>
5813
5814 * amd64-linux-nat.c (compat_x32_clock_t): New.
5815 (compat_x32_siginfo_t): Likewise.
5816 (compat_x32_siginfo_from_siginfo): Likewise.
5817 (siginfo_from_compat_x32_siginfo): Likewise.
5818 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5819 and siginfo_from_compat_x32_siginfo for x32.
5820
7ecbc825
HZ
58212012-06-15 Hui Zhu <[email protected]>
5822
5823 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5824
233dfcf0
L
58252012-06-15 H.J. Lu <[email protected]>
5826
5827 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5828 instead of gdbarch_ptr_bit.
5829 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5830 (amd64_supply_native_gregset): Likewise.
5831 (amd64_collect_native_gregset): Likewise.
5832 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5833 (amd64_supply_xsave): Likewise.
5834 (amd64_collect_fxsave): Likewise.
5835 (amd64_collect_xsave): Likewise.
5836
6da38f42
L
58372012-06-15 H.J. Lu <[email protected]>
5838
5839 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5840 (amd64_linux_read_description): Check DS segment register for
5841 x32 process.
5842
663b969e
TT
58432012-06-15 Tom Tromey <[email protected]>
5844
5845 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5846 init_cutu_and_read_dies.
5847
d6f05027
IS
58482012-06-15 Iain Sandoe <[email protected]>
5849
5850 * MAINTAINERS (Write After Approval): Add myself to the list.
5851
6598ed07
TT
58522012-06-15 Tom Tromey <[email protected]>
5853
5854 * valops.c (value_find_oload_method_list): Now static.
5855 * value.h (value_find_oload_method_list): Don't declare.
5856
2b214ea6
TT
58572012-06-15 Tom Tromey <[email protected]>
5858
5859 * valops.c (find_overload_match): Use value_ind.
5860
a210c238
MR
58612012-06-15 Maciej W. Rozycki <[email protected]>
5862
5863 * infrun.c (handle_inferior_event): Correct indentation.
5864
3771a44c
DE
58652012-06-14 Doug Evans <[email protected]>
5866
5867 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5868 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5869 All uses updated.
5870 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5871 updated. Handle DEBUG_LOC_START_LENGTH.
5872 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5873 (loclist_describe_location): Ditto.
5874
1c5a993e
MR
58752012-06-14 Maciej W. Rozycki <[email protected]>
5876
5877 PR backtrace/13866
5878 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5879 after hiding inline functions.
5880
0b155465
JB
58812012-06-13 Joel Brobecker <[email protected]>
5882
5883 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5884 _initialize_inf_ttrace.
5885
45717bac
JB
58862012-06-13 Joel Brobecker <[email protected]>
5887
5888 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5889 _initialize_hppa_hpux_nat.
5890
34370865
JB
58912012-06-13 Joel Brobecker <[email protected]>
5892
5893 * remote-sim.c (sim_command_completer): Change type of return
5894 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5895
284c5a60
MK
58962012-06-13 Mark Kettenis <[email protected]>
5897 Jan Kratochvil <[email protected]>
5898
5899 PR tdep/14222
5900 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5901 stack on a 16-byte boundary.
5902
2535757a
TT
59032012-06-13 Kaushik Srenevasan <[email protected]>
5904
5905 * jit.c (finalize_symtab): Set function's return type to 'void' by
5906 default.
5907
fff4548b
MK
59082012-06-13 Mark Kettenis <[email protected]>
5909 H.J. Lu <[email protected]>
5910
5a83521a
MK
5911 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5912 Move bits common to both the classic LP64 and the new x32 ILP32
5913 ABI here.
5914 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5915 (amd64_x32_linux_init_abi): New function.
5916 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5917 subtype.
5918
fff4548b
MK
5919 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5920 * i386-tdep.c (i386_pseudo_register_name): Make public.
5921 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5922 * amd64-tdep.c (amd64_dword_names): Add "eip".
5923 (amd64_x32_pseudo_register_type): New function
5924 (amd64_x32_init_abi): New function.
5925
dd80ea3c
JK
59262012-06-13 Jan Kratochvil <[email protected]>
5927
5928 PR build/14003
5929 * inferior.h (struct inferior_suspend_state): Comment out.
5930 (struct inferior): Comment out the field suspend.
5931 * infrun.c (struct infcall_suspend_state): Comment out the field
5932 inferior_suspend.
5933 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5934 out its assignment.
5935
50af5481
JK
59362012-06-13 Jan Kratochvil <[email protected]>
5937
5938 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5939 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5940 function comment. Return ERROR for unresolved cases. Implement
5941 returning proper NAME.
5942 (yylex): Accept also NAME from classify_inner_name.
5943 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5944 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5945 LOC_TYPEDEF type.
5946 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5947
d55637df
TT
59482012-06-13 Tom Tromey <[email protected]>
5949
5950 * breakpoint.c (condition_completer): New function.
5951 (_initialize_breakpoint): Use it.
5952 * value.c (complete_internalvar): New function.
5953 * value.h (complete_internalvar): Declare.
5954
49c4e619
TT
59552012-06-13 Tom Tromey <[email protected]>
5956
5957 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5958 * breakpoint.c (catch_syscall_completer): Return a VEC.
5959 * cli/cli-cmds.c (complete_command): Update.
5960 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5961 (complete_on_enum): Likewise.
5962 * command.h: Include gdb_vecs.h.
5963 (completer_ftype): Change return type.
5964 (complete_on_cmdlist, complete_on_enum): Likewise.
5965 * completer.c (noop_completer, filename_completer)
5966 (location_completer): Return a VEC.
5967 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5968 to a VEC.
5969 (expression_completer, complete_line_internal, complete_line)
5970 (command_completer): Return a VEC.
5971 (gdb_completion_word_break_characters, line_completion_function):
5972 Update.
5973 * completer.h: Include gdb_vecs.h.
5974 (complete_line, noop_completer, filename_completer)
5975 (expression_completer, location_completer, command_completer):
5976 Update.
5977 * f-lang.c (f_word_break_characters): Return a VEC.
5978 * interps.c (interpreter_completer): Return a VEC.
5979 * language.h (struct language_defn)
5980 <la_make_symbol_completion_list>: Return a VEC.
5981 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5982 * symtab.c (free_completion_list): Take a VEC.
5983 (return_val_size, return_val_index): Remove.
5984 (return_val): Now a VEC.
5985 (completion_list_add_name): Update.
5986 (default_make_symbol_completion_list_break_on)
5987 (default_make_symbol_completion_list, make_symbol_completion_list)
5988 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5989 Return a VEC.
5990 (add_filename_to_list): Update.
5991 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5992 <list>: Now a VEC.
5993 (maybe_add_partial_symtab_filename): Update.
5994 (make_source_files_completion_list): Return a VEC.
5995 * symtab.h (default_make_symbol_completion_list_break_on)
5996 (default_make_symbol_completion_list, make_symbol_completion_list)
5997 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5998 (make_source_files_completion_list): Update.
5999
625e8578
TT
60002012-06-13 Tom Tromey <[email protected]>
6001
6002 * breakpoint.c (add_catch_command): Use completer_ftype.
6003 * breakpoint.h: Include command.h.
6004 (add_catch_command): Use completer_ftype.
6005 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
6006 * cli/cli-decode.h (struct cmd_list_element) <completer>:
6007 Use completer_ftype.
6008 * command.h (completer_ftype): New typedef.
6009 (set_cmd_completer): Use it.
6010 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
6011 completer_ftype.
6012
5eb3b062
PA
60132012-06-13 Pedro Alves <[email protected]>
6014
6015 Partial revert of previous change.
6016
6017 * serial.c (scb_base): New global.
6018 (serial_for_fd): New.
6019 (serial_open, serial_fdopen_ops): Link new serial in open serials
6020 chain.
6021 (do_serial_close): Unlink serial from the open serials chain.
6022
8b3ee56d
PA
60232012-06-12 Pedro Alves <[email protected]>
6024
6025 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
6026 threads here.
6027 (prepare_for_detach): No longer context switch here in non-stop
6028 mode.
6029 (fetch_inferior_event): Ditto.
6030 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
6031 to the event thread before removing breakpoints. Switch to the
6032 event thread before inserting breakpoints and resuming.
6033 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
6034 event thread before resuming.
6035 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
6036 Switch to the event thread before removing breakpoints.
6037
5d60742e
EZ
60382012-06-12 Eli Zaretskii <[email protected]>
6039
6040 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
6041 special characters correctly for the Windows shells. See
6042 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
6043 report.
6044 [!__MINGW32__]: Remove extra double quote character from special
6045 characters.
6046
a6feecf7
SS
60472012-06-11 Stan Shebs <[email protected]>
6048
6049 * ui-out.h: Remove #if 0 declarations.
6050 * ui-out.c: Remove #if 0 functions.
6051
ddefb60f
PA
60522012-06-11 Pedro Alves <[email protected]>
6053
6054 * ser-base.c (run_async_handler_and_reschedule): New.
6055 (fd_event, push_event): Use it.
6056 * serial.c (serial_open, serial_fdopen_ops): Set the initial
6057 reference count to 1.
6058 (do_serial_close): Set the bufp field to NULL. Use serial_unref
6059 instead of xfree.
6060 (serial_is_open, serial_ref, serial_unref): New.
6061 * serial.h (serial_open): Adjust comment.
6062 (serial_is_open): Declare.
6063 (serial_close): Adjust comment.
6064 (serial_ref, serial_unref) Declare.
6065 (struct serial): New field 'refcnt'.
6066
d5ad6aa5
PA
60672012-06-11 Pedro Alves <[email protected]>
6068
6069 Remove #if 0'd "connect" command, and unnecessary associated
6070 refcounting and serial reuse bits.
6071
6072 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
6073 * serial.c (last_serial_opened): Delete.
6074 (scb_base): Delete.
6075 (serial_open): Adjust.
6076 (serial_for_fd): Delete.
6077 (serial_fdopen_ops, do_serial_close): Adjust.
6078 (serial_fdopen_ops): Adjust.
6079
318aa544
PA
60802012-06-11 Pedro Alves <[email protected]>
6081
6082 * serial.c (do_serial_close): Remove early return when SCB is
6083 null.
6084
07261596
TT
60852012-06-11 Tom Tromey <[email protected]>
6086
6087 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
6088
cc80f267
JK
60892012-06-11 Jan Kratochvil <[email protected]>
6090
6091 Fix regression by the "ambiguous linespec" series.
6092 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6093 get_last_displayed_symtab and get_last_displayed_line and depending
6094 on CURSAL.
6095
356d9f9d
TT
60962012-06-11 Tom Tromey <[email protected]>
6097
6098 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6099 (dw2_find_symbol_file): Use it.
6100
232b8704
ME
61012012-06-11 Michael Eager <[email protected]>
6102
6103 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6104 * mips-linux-tdep.h (mips_signals): New
6105
e81a37f7
TT
61062012-06-11 Tom Tromey <[email protected]>
6107
6108 * infrun.c (handle_inferior_event)
6109 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6110 breakpoint.
6111 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6112 exception logic in all cases. Update comments.
6113 (insert_longjmp_resume_breakpoint): Set the exception resume
6114 breakpoint.
6115
2e81047f
MR
61162012-06-11 Maciej W. Rozycki <[email protected]>
6117
6118 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6119
4e32eda7
SCR
61202012-06-09 Siva Chandra Reddy <[email protected]>
6121
6122 * valarith.c (binop_types_user_defined_p): Fix a typo.
6123
18648a37 61242012-06-08 Yao Qi <[email protected]>
f782ad9b 6125 Chung-Lin Tang <[email protected]>
18648a37
YQ
6126
6127 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6128 * arch-utils.h: Declare.
6129 * gdbarch.sh: Add return_in_first_hidden_param_p.
6130 * gdbarch.c, gdbarch.h: Regenerated.
6131 * infcall.c (call_function_by_hand): Call
6132 gdbarch_return_in_first_hidden_param_p instead of
6133 language_pass_by_reference.
6134
6135 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6136 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6137 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6138 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6139 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6140 `cplus_return_struct_by_reference'.
6141 (tic6x_return_value): Handle language cplusplus.
6142 (tic6x_return_in_first_hidden_param_p): New.
6143 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6144
034e5797
DE
61452012-06-07 Doug Evans <[email protected]>
6146
6147 * dwarf2read.c (dwarf2_cu): Add comment.
6148
6a00aa1e
MR
61492012-06-06 Maciej W. Rozycki <[email protected]>
6150
6151 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6152 variable.
6153 (mips_eabi_push_dummy_call): Likewise.
6154 (mips_n32n64_push_dummy_call): Likewise.
6155 (mips_o32_push_dummy_call): Likewise.
6156 (mips_o64_push_dummy_call): Likewise.
6157
eaa05d59
MR
61582012-06-06 Maciej W. Rozycki <[email protected]>
6159
6160 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6161
de13fcf2
MR
61622012-06-06 Maciej W. Rozycki <[email protected]>
6163
6164 * mips-tdep.c (mips_pseudo_register_type): Use
6165 mips_float_register_p.
6166
c3a01a22
PA
61672012-06-06 Pedro Alves <[email protected]>
6168
6169 * infrun.c (handle_inferior_event): Remove calls to
6170 reinit_frame_cache that follow a context_switch call.
6171
d25f45d9
PA
61722012-06-06 Pedro Alves <[email protected]>
6173
6174 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6175 context_switch and remove stale comment.
6176
359f5fe6
PA
61772012-06-06 Pedro Alves <[email protected]>
6178
6179 * infrun.c (struct execution_control_state): Remove
6180 `new_thread_event' field.
6181 (handle_inferior_event): Simplify new threads handling; don't
6182 resume the inferior if we find a new thread.
6183
2d4c29c5
TS
61842012-06-06 Thomas Schwinge <[email protected]>
6185
6186 * NEWS: Document the deprecation of SH's 'regs' command.
6187 * inferior.h (all_registers_info): Add function declaration.
6188 * sh-tdep.c (sh_show_regs): Remove variable.
6189 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6190 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6191 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6192 (sh_show_regs_command): Remove functions.
6193 (sh_gdbarch_init): Don't set sh_show_regs.
6194 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6195 'info all-registers'.
6196 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6197 (sh64_show_regs): Remove functions.
6198 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6199
f5f1cdb6
JK
62002012-06-06 Jan Kratochvil <[email protected]>
6201
6202 * configure.ac: Move development=true below AC_INIT.
6203 * configure: Regenerate.
6204
bf6309af
SS
62052012-06-05 Stan Shebs <[email protected]>
6206
6207 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6208 gdb_stdout.
6209
45aa4659
JK
62102012-06-05 Siddhesh Poyarekar <[email protected]>
6211
6212 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6213 argument as ssize_t.
6214 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6215 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6216 * target.c (target_read_stack, target_write_memory)
6217 (target_write_raw_memory): Likewise.
6218 * target.h (target_read_stack, target_write_memory)
6219 (target_write_raw_memory): Likewise.
6220
1b162304
JK
62212012-06-05 Jan Kratochvil <[email protected]>
6222
6223 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6224 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6225 * target.c (target_read_memory): Change LEN to ssize_t.
6226 * target.h (target_read_memory): Change LEN to ssize_t.
6227
8556afb4
PA
62282012-06-05 Pedro Alves <[email protected]>
6229
6230 PR backtrace/13866
6231
6232 * breakpoint.c (until_break_command): Only fetch the selected
6233 frame after decode_line_1.
6234
fb139f32
PA
62352012-06-05 Joakim Tjernlund <[email protected]>
6236
6237 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6238 event breakpoint at _start, __start or main if a program
6239 interpreter is not found.
6240
a8e1bb34
JB
62412012-06-05 Joel Brobecker <[email protected]>
6242
6243 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6244 Add declaration.
6245 * windows-tdep.c: #include "objfiles.h".
6246 (windows_iterate_over_objfiles_in_search_order): New function.
6247 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6248 iterate_over_objfiles_in_search_order gdbarch method to
6249 windows_iterate_over_objfiles_in_search_order.
6250 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6251
19630284
JB
62522012-06-05 Joel Brobecker <[email protected]>
6253
6254 * gdbarch.sh: Add generation of
6255 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6256 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6257 (iterate_over_objfiles_in_search_order): New gdbarch method.
6258 * gdbarch.h, gdbarch.c: Regenerate.
6259 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6260 Add declaration.
6261 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6262 New function.
6263 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6264 out of lookup_symbol_aux_symtabs.
6265 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6266 call to lookup_symbol_aux_objfile.
6267 (struct global_sym_lookup_data): New type.
6268 (lookup_symbol_global_iterator_cb): New function.
6269 (lookup_symbol_global): Search for symbol using
6270 gdbarch_iterate_over_objfiles_in_search_order and
6271 lookup_symbol_global_iterator_cb.
6272 * findvar.c (struct minsym_lookup_data): New type.
6273 (minsym_lookup_iterator_cb): New function.
6274 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6275 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6276 and minsym_lookup_iterator_cb.
6277
67ff19f7
JB
62782012-06-05 Joel Brobecker <[email protected]>
6279
6280 Revert the following patch:
6281 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6282 try locating the symbol in the symbol's own objfile first, before
6283 extending the search to all objfiles.
6284 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6285 out of lookup_symbol_aux_symtabs.
6286 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6287 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6288 Do not search EXCLUDE_OBJFILE.
6289 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6290 (lookup_symbol_global): Search for matches in the block's objfile
6291 first, before searching all other objfiles.
6292
ccab2054
JB
62932012-06-05 Joel Brobecker <[email protected]>
6294
6295 * breakpoint.c (find_condition_and_thread): Stop parsing
6296 as soon as the first invalid keyword is found.
6297
e23d4a9c
JB
62982012-06-05 Joel Brobecker <[email protected]>
6299
6300 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6301
70160166
JB
63022012-06-05 Joel Brobecker <[email protected]>
6303
6304 * config/djgpp/djcheck.sh: Add copyright header.
6305
399501a5
JB
63062012-06-05 Joel Brobecker <[email protected]>
6307
6308 * copyright.py (update_files, main): Fix path to update-copyright
6309 script.
6310
3770a159
JB
63112012-06-05 Joel Brobecker <[email protected]>
6312
6313 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6314 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6315 for which a reminder to update by hand is printed.
6316
4aad0dfc
DE
63172012-06-04 Doug Evans <[email protected]>
6318
6319 * buildsym.c (make_blockvector): Add comment.
6320
1f8cf220
PA
63212012-06-04 Pedro Alves <[email protected]>
6322
6323 * arch-utils.c (default_gdb_signal_from_target): Delete.
6324 * arch-utils.h (default_gdb_signal_from_target): Delete.
6325 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6326 gdbarch_gdb_signal_from_target_p.
6327 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6328 predicate).
6329 * gdbarch.h: Regenerate.
6330 * gdbarch.c: Regenerate.
6331
86b49880
PA
63322012-06-04 Pedro Alves <[email protected]>
6333
6334 * gdbarch.sh (gdb_signal_from_target): Mention that the
6335 implementation of the method must be host independent.
6336 * gdbarch.h: Regenerate.
6337
fe78531d
JK
63382012-06-04 Jan Kratochvil <[email protected]>
6339
6340 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6341 parameters.
6342 (target_read_memory_bfd): New function.
6343 (symbol_file_add_from_memory): Use it.
6344
d790cf0a
DE
63452012-06-03 Doug Evans <[email protected]>
6346
78e5175a
DE
6347 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6348 of primary symtab.
6349 (basic_lookup_transparent_type): Ditto.
6350
d790cf0a
DE
6351 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6352 (ALL_PRIMARY_SYMTABS): Use it.
6353 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6354 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6355 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6356 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6357 (basic_lookup_transparent_type): Ditto.
6358
c6e5ee5e
SDJ
63592012-06-02 Sergio Durigan Junior <[email protected]>
6360
6361 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6362 it to optimize resolution of demangled name.
6363
a68ffae9
JK
63642012-06-01 Jan Kratochvil <[email protected]>
6365
6366 * configure.ac (development): Define new variable.
6367 Call AC_CHECK_LIB for mcheck if $development.
6368 (ERROR_ON_WARNING): Enable it by default only if $development.
6369 * config.in: Regenerate.
6370 * configure: Regenerate.
6371
5299c1c4
JK
63722012-06-01 Siddhesh Poyarekar <[email protected]>
6373
6374 * target.c (target_read_memory): Make LEN argument as size_t.
6375 * target.h (target_read_memory): Likewise.
6376
63772012-06-01 Jan Kratochvil <[email protected]>
7c71816c
JK
6378
6379 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6380
0c56f59b
EBM
63812012-05-31 Edjunior Machado <[email protected]>
6382
6383 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6384 BookE interface for PowerPC server processors if not available
6385 in the Linux Kernel.
6386
71bdabee
KS
63872012-05-31 Keith Seitz <[email protected]>
6388
6389 * linespec.c (decode_objc): Add cleanup to free
6390 INFO.FILE_SYMTABS.
6391 (find_linespec_symbols): Add cleanup to free CLASSES.
6392 * symfile.c (find_separate_debug_file_by_debuglink): Add
6393 cleanup to free DEBUGLINK.
6394 * ui-out.c (clear_header_list): No need to check if
6395 HEADER_NEXT.COLHDR is NULL.
6396 Free HEADER_NEXT.COL_NAME.
6397
acbd605d
MGD
63982012-05-31 Matthew Gretton-Dann <[email protected]>
6399
6400 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6401 warning.
6402
65662cde
PA
64032012-05-30 Jeff Kenton <[email protected]>
6404
6405 * configure.host (gdb_host_cpu): Handle tilegx*.
6406 (gdb_host): Handle tilegx-*-linux*.
6407 * tilegx-linux-nat.c: New file.
6408 * config/tilegx/linux.mh: New file.
6409
ade64f0e
PA
64102012-05-30 Jeff Kenton <[email protected]>
6411
6412 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6413 tilegx-linux-tdep.o.
6414 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6415 tilegx-linux-tdep.c.
6416 * configure.tgt: Handle tilegx-*-linux*.
6417 * tilegx-tdep.h: New file.
6418 * tilegx-tdep.c: New file.
6419 * tilegx-linux-tdep.c: New file.
6420 * regformats/reg-tilegx.dat: New file.
6421
bb08bdbd
EBM
64222012-05-30 Edjunior Machado <[email protected]>
6423
6424 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6425 accounting of hw watchpoints on ppc.
6426
ebd86fb5
TJB
64272012-05-30 Thiago Jung Bauermann <[email protected]>
6428
6429 * source.c (openp): Expand tilde in path entries.
6430
0a0edcd5
DE
64312012-05-29 Doug Evans <[email protected]>
6432
98cc87bd
DE
6433 * buildsym.c (block_compar): Fix comment.
6434 (end_symtab): Fix and clarify some comments.
6435
0a0edcd5
DE
6436 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6437 cleanup_undefined_types.
6438 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6439 All callers updated.
6440
6f0c7050
TT
64412012-05-29 Tom Tromey <[email protected]>
6442
6443 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6444 fails.
6445 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6446 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6447 fails.
6448 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6449 fails.
6450
ec95993c
TG
64512012-05-29 Tristan Gingold <[email protected]>
6452
6453 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6454 (struct darwin_info): ... New struct.
6455 (solib_darwin_pspace_data): New variable.
6456 (darwin_pspace_data_cleanup): New function.
6457 (get_darwin_info): Likewise.
6458 (darwin_dyld_version_ok, darwin_load_image_infos)
6459 (darwin_solib_get_all_image_info_addr_at_init)
6460 (darwin_solib_read_all_image_info_addr): Add info argument.
6461 Adjust code.
6462 (darwin_current_sos): Use per pspace structure.
6463 (darwin_solib_create_inferior_hook): Likewise.
6464 (darwin_clear_solib): Likewise.
6465 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6466
ae25568b
PA
64672012-05-28 Pedro Alves <[email protected]>
6468
6469 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6470 block that uses them. Clear ecss before handling each event.
6471
0c5bf5a9
JK
64722012-05-28 Jan Kratochvil <[email protected]>
6473
6474 * solib-svr4.c (svr4_current_sos): New comment on
6475 svr4_current_sos_via_xfer_libraries fall back.
6476
bfb05775
JK
64772012-05-24 Jan Kratochvil <[email protected]>
6478
6479 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6480 it as a fallback for TYPE_IS_OPAQUE.
6481 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6482 symbols for lookup_symbol.
6483
685b1105
JK
64842012-05-24 John Steele Scott <[email protected]>
6485
6486 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6487 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6488 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6489 (check_producer): ... this new function, which also checks for ICC
6490 and caches the result.
6491 (producer_is_icc): New function.
6492 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6493 producer was ICC.
6494
22203bbf
PA
64952012-05-24 Pedro Alves <[email protected]>
6496
6497 PR gdb/7205
6498
6499 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6500 (default_gdb_signal_to_target): ... this. Add comment.
6501 (default_gdb_signal_from_host): Rename to ...
6502 (default_gdb_signal_from_target): ... this. Add comment.
6503 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6504 (default_gdb_signal_to_target): ... this.
6505 (default_gdb_signal_from_host): Rename to ...
6506 (default_gdb_signal_from_target): ... this.
6507 * corelow.c (core_open): Adjust to naming change. Replace comment.
6508 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6509 (gdb_signal_from_target): ... this. Adjust to
6510 default_gdb_signal_from_host naming change. Extend comment.
6511 (gdb_signal_to_host): Rename to ...
6512 (gdb_signal_to_target): ... this. Adjust to
6513 default_gdb_signal_to_host naming change.
6514 * gdbarch.h, gdbarch.c: Renegerate.
6515
a493e3e2
PA
65162012-05-24 Pedro Alves <[email protected]>
6517
6518 PR gdb/7205
6519
f782ad9b 6520 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 6521
2ea28649
PA
65222012-05-24 Pedro Alves <[email protected]>
6523
6524 PR gdb/7205
6525
6526 Replace target_signal with gdb_signal throughout.
6527
b09846a9
PA
65282012-05-24 Pedro Alves <[email protected]>
6529
6530 PR tui/14159
6531
6532 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6533 string, instead of reusing the va_list argument.
6534
e77c107e
TT
65352012-05-24 Tom Tromey <[email protected]>
6536
6537 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6538 Remove.
6539
9fccedf7
DE
65402012-05-23 Doug Evans <[email protected]>
6541
d50bd42b
DE
6542 * symtab.c (search_symbols): Formatting fixes.
6543 (print_symbol_info): Formatting fixes.
6544
9fccedf7
DE
6545 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6546 int64_t change to leb128 API.
6547 (read_encoded_value, decode_frame_entry_1): Ditto.
6548 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6549 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6550 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6551 (execute_stack_op): Ditto.
6552 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6553 (safe_read_uleb128, safe_read_sleb128): Ditto.
6554 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6555 (dwarf2_compile_expr_to_ax): Ditto.
6556 (locexpr_describe_location_piece): Ditto.
6557 (disassemble_dwarf_expression): Ditto.
6558 (locexpr_describe_location_1): Ditto.
6559
f3e0e960
SS
65602012-05-23 Stan Shebs <[email protected]>
6561 Kwok Cheung Yeung <[email protected]>
6562
6563 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6564 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6565 (mi-cmd-info.o): New rule.
6566 * osdata.h (info_osdata_command): New declaration.
6567 * osdata.c (info_osdata_command): Change to non-static.
6568 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6569 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6570 * mi/mi-cmd-info.c: New file.
6571
c51fe631
DE
65722012-05-23 Doug Evans <[email protected]>
6573
71cddcc1
DE
6574 * symtab.c (search_symbols): Pass NULL for file_matcher to
6575 expand_symtabs_matching if there are no files to match.
6576
c51fe631
DE
6577 * gdbtypes.c (lookup_typename): Simplify.
6578
a79378d4
PA
65792012-05-23 Pedro Alves <[email protected]>
6580
6581 * arch-utils.h (default_target_signal_to_host): Delete.
6582 * arch-utils.c (default_target_signal_to_host): Delete.
6583 * gdbarch.sh (target_signal_to_host): Remove.
6584 * gdbarch.h, gdbarch.c: Regenerate.
6585
f664829e
DE
65862012-05-22 Doug Evans <[email protected]>
6587
6588 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6589 "const gdb_byte *".
6590 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6591 (execute_cfa_program): Update to match API of leb128 functions.
6592 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6593 "const gdb_byte *".
6594 (read_unsigned_leb128, read_signed_leb128): Delete.
6595 (read_initial_length): Change type of buf argument to
6596 "const gdb_byte *".
6597 (read_encoded_value): Update to match API of leb128 functions.
6598 (decode_frame_entry): Change result to "const gdb_byte *", and
6599 similarly for "start" parameter.
6600 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6601 (dwarf2_build_frame_info): Change local frame_ptr to
6602 "const gdb_byte *".
6603 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6604 read_uleb128, read_sleb128. All callers updated.
6605 (safe_skip_leb128): New function.
6606 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6607 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6608 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6609 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6610 read_uleb128, read_sleb128.
6611 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6612 (execute_stack_op): Update to match API of leb128 functions.
6613 * dwarf2expr.h: #include "leb128.h".
6614 (read_uleb128, read_sleb128): Delete.
6615 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6616 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6617 * dwarf2loc.c (debug_loc_kind): New enum.
6618 (decode_debug_loc_addresses): New function.
6619 (decode_debug_loc_dwo_addresses): New function.
6620 (dwarf2_find_location_expression): Rewrite.
6621 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6622 (locexpr_describe_location_piece): Ditto.
6623 (disassemble_dwarf_expression): Ditto.
6624 (locexpr_describe_location_1): Ditto.
6625 (loclist_describe_location): Rewrite.
6626 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6627 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6628 (dwarf2_section_buffer_overflow_complaint): Renamed from
6629 dwarf2_macros_too_long_complaint. All callers updated.
6630 (skip_leb128): Delete.
6631 (init_cu_die_reader): Initialize reader->buffer_end.
6632 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6633 (skip_form_bytes): New arg buffer_end. All callers updated.
6634 Replace call to skip_leb128 with gdb_skip_leb128.
6635 (skip_unknown_opcode): New arg mac_end. All callers updated.
6636 (fill_in_loclist_baton): Initialize baton->from_dwo.
6637
837a1b32
MR
66382012-05-22 Maciej W. Rozycki <[email protected]>
6639
6640 * mips-linux-nat.c (mips_linux_read_description): Use a more
6641 verbose error message.
6642
d0e64392
MR
66432012-05-22 Maciej W. Rozycki <[email protected]>
6644
6645 * NEWS: Add MIPS/Linux DSP support.
6646 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6647 (SIGCONTEXT_DSPCTL): New macro.
6648 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6649 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6650 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6651 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6652 (N64_SIGCONTEXT_HI3): Likewise.
6653 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6654 (N64_SIGCONTEXT_LO3): Likewise.
6655 (N64_SIGCONTEXT_DSPCTL): Likewise.
6656 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6657 (mips_linux_o32_sigframe_init): Handle DSP registers.
6658 (mips_linux_n32n64_sigframe_init): Likewise.
6659
8bea7ed1
PM
66602012-05-22 Pierre Muller <[email protected]>
6661
6662 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6663 call to abort.
6664
dab06dbe
PA
66652012-05-22 Pedro Alves <[email protected]>
6666
6667 * target.h (store_waitstatus): Move declaration ...
6668 * inf-child.h (store_waitstatus): ... here.
6669 * target.c: Move inclusion of gdb_wait.h, and ...
6670 (store_waitstatus): ... this ...
6671 * inf-child.c: ... here.
6672 * linux-nat.c: Include inf-child.h.
6673 * rs6000-nat.c: Include inf-child.h.
6674 * spu-linux-nat.c: Include inf-child.h.
6675
43011e52
PM
66762012-05-22 Pierre Muller <[email protected]>
6677
6678 * tracepoint.c (start_tracing): Add missing i18n markup.
6679 (stop_tracing, set_trace_user): Ditto.
6680 (set_trace_notes, set_trace_stop_notes): Ditto.
6681
b1af9e97
TT
66822012-05-21 Tom Tromey <[email protected]>
6683
6684 PR c++/7173:
6685 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6686 types.
6687 * value.h (value_cast_pointers): Update.
6688 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6689 (value_cast): Update.
6690 (update_search_result): New function.
6691 (do_search_struct_field): New, from search_struct_field. Check
6692 for ambiguous results.
6693 (search_struct_field): Rewrite.
6694 * infcall.c (value_arg_coerce): Update.
6695 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6696 value_cast_pointers.
6697 * ada-lang.c (ada_convert_actual): Update.
6698
e9e5e6b3
TT
66992012-05-21 Tom Tromey <[email protected]>
6700
6701 * macroexp.c (macro_stringify): Terminate the string.
6702
1564a261
JK
67032012-05-20 Jan Kratochvil <[email protected]>
6704
6705 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6706 Describe it.
6707 * auto-load.c (auto_load_expand_dir_vars): New function.
6708 (auto_load_safe_path_vec_update): Use it, remove the
6709 substitute_path_component call thanks to it.
6710 (auto_load_objfile_script): Remove the debug_file_directory processing.
6711 Use auto_load_expand_dir_vars, remove the substitute_path_component
6712 call thanks to it.
6713 * configure: Regenerate.
6714 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6715 path. Escape $ also for $debugdir.
6716 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6717 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6718
a3ec0bb1
DE
67192012-05-20 Doug Evans <[email protected]>
6720
6721 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6722 before use. Check for symtab->includes == NULL before scanning it.
6723
d467df4e
MR
67242012-05-18 Maciej W. Rozycki <[email protected]>
6725
6726 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6727
4cc0665f
MR
67282012-05-18 Maciej W. Rozycki <[email protected]>
6729
6730 * NEWS: Add microMIPS support and "set mips compression",
6731 "show mips compression" commands.
6732 * mips-tdep.h (mips_isa): New enum.
6733 (gdbarch_tdep): Add mips_isa.
6734 (mips_pc_is_mips16): Update prototype.
6735 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6736 * mips-tdep.c (mips_compression_mips16): New variable.
6737 (mips_compression_micromips): Likewise.
6738 (mips_compression_strings): Likewise.
6739 (mips_compression_string): Likewise.
6740 (is_mips16_isa, is_micromips_isa): New functions.
6741 (is_mips16_addr): Rename to...
6742 (is_compact_addr): ... this.
6743 (unmake_mips16_addr): Likewise to...
6744 (unmake_compact_addr): ... this.
6745 (make_mips16_addr): Likewise to...
6746 (make_compact_addr): ... this.
6747 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6748 functions.
6749 (mips_elf_make_msymbol_special): Handle microMIPS code.
6750 (msymbol_is_special): Rename to...
6751 (msymbol_is_mips16): ... this.
6752 (mips_make_symbol_special, mips_pc_is_mips16): Update
6753 accordingly.
6754 (msymbol_is_mips, msymbol_is_micromips): New functions.
6755 (mips16_to_32_reg): Rename to...
6756 (mips_reg3_to_reg): ... this.
6757 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6758 (mips_pc_isa): Likewise.
6759 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6760 code.
6761 (mips_fetch_instruction): Pass return status instead of printing
6762 an error message if requested. Handle microMIPS code. Bail out
6763 on an invalid ISA.
6764 (micromips_op): New macro.
6765 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6766 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6767 (b6s4_op, b7s3_reg): Likewise.
6768 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6769 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6770 (mips_insn_size): New function.
6771 (mips32_next_pc): Update mips_fetch_instruction call.
6772 (micromips_relative_offset7): New function.
6773 (micromips_relative_offset10): Likewise.
6774 (micromips_relative_offset16): Likewise.
6775 (micromips_pc_insn_size): Likewise.
6776 (micromips_bc1_pc): Likewise.
6777 (micromips_next_pc): Likewise.
6778 (unpack_mips16): Update mips_fetch_instruction call.
6779 (extended_mips16_next_pc): Update according to change to
6780 mips16_to_32_reg.
6781 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6782 code.
6783 (mips16_scan_prologue): Update mips_fetch_instruction call.
6784 Update according to change to mips16_to_32_reg.
6785 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6786 (mips_insn16_frame_base_sniffer): Likewise.
6787 (micromips_decode_imm9): New function.
6788 (micromips_scan_prologue): Likewise.
6789 (mips_micro_frame_cache): Likewise.
6790 (mips_micro_frame_this_id): Likewise.
6791 (mips_micro_frame_prev_register): Likewise.
6792 (mips_micro_frame_sniffer): Likewise.
6793 (mips_micro_frame_unwind): New variable.
6794 (mips_micro_frame_base_address): New function.
6795 (mips_micro_frame_base): New variable.
6796 (mips_micro_frame_base_sniffer): New function.
6797 (mips32_scan_prologue): Update mips_fetch_instruction call.
6798 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6799 rather than for MIPS16.
6800 (mips_insn32_frame_base_sniffer): Likewise.
6801 (mips_addr_bits_remove): Handle microMIPS code.
6802 (deal_with_atomic_sequence): Rename to...
6803 (mips_deal_with_atomic_sequence): ... this. Update the type
6804 of the variable used to hold an instruction. Remove the ISA bit
6805 check. Update mips_fetch_instruction call.
6806 (micromips_deal_with_atomic_sequence): New function.
6807 (deal_with_atomic_sequence): Likewise.
6808 (mips_about_to_return): Handle microMIPS code. Update
6809 mips_fetch_instruction call.
6810 (heuristic_proc_start): Check for the standard MIPS ISA rather
6811 than for MIPS16. Update mips_pc_is_mips16 and
6812 mips_fetch_instruction calls. Handle microMIPS code.
6813 (mips_push_dummy_code): Handle microMIPS code.
6814 (mips_eabi_push_dummy_call): Likewise.
6815 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6816 (mips_o64_push_dummy_call): Handle microMIPS code.
6817 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6818 (is_delayed): Remove function.
6819 (mips_single_step_through_delay): Replace the call to is_delayed
6820 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6821 Handle microMIPS code.
6822 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6823 microMIPS code.
6824 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6825 call.
6826 (micromips_in_function_epilogue_p): New function.
6827 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6828 call.
6829 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6830 Handle microMIPS.
6831 (gdb_print_insn_mips): Likewise.
6832 (mips_breakpoint_from_pc): Likewise.
6833 (mips_remote_breakpoint_from_pc): New function.
6834 (mips32_instruction_has_delay_slot): Simplify making use of the
6835 updated mips_fetch_instruction interface.
6836 (micromips_instruction_has_delay_slot): New function.
6837 (mips16_instruction_has_delay_slot): Simplify making use of the
6838 updated mips_fetch_instruction interface.
6839 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6840 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6841 calls. Handle microMIPS code.
6842 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6843 (mips_skip_trampoline_code): Handle microMIPS code.
6844 (global_mips_compression): New function.
6845 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6846 file flags. Register the microMIPS remote breakpoint handler
6847 and heuristic frame unwinder.
6848 (show_mips_compression): New function.
6849 (_initialize_mips_tdep): Add the "set mips compression" and
6850 "show mips compression" commands.
6851
22e048c9
SDJ
68522012-05-18 Sergio Durigan Junior <[email protected]>
6853
6854 * ada-lang.c:
6855 * ada-tasks.c:
6856 * ada-varobj.c:
6857 * amd64-darwin-tdep.c:
6858 * arm-symbian-tdep.c:
6859 * arm-tdep.c:
6860 * avr-tdep.c:
6861 * ax-gdb.c:
6862 * bfin-linux-tdep.c:
6863 * breakpoint.c:
6864 * c-valprint.c:
6865 * cli/cli-cmds.c:
6866 * coffread.c:
6867 * cp-support.c:
6868 * cris-tdep.c:
6869 * dwarf2-frame-tailcall.c:
6870 * dwarf2-frame.c:
6871 * dwarf2expr.c:
6872 * dwarf2loc.c:
6873 * dwarf2read.c:
6874 * elfread.c:
6875 * eval.c:
6876 * expprint.c:
6877 * f-valprint.c:
6878 * frv-tdep.c:
6879 * h8300-tdep.c:
6880 * hppa-hpux-tdep.c:
6881 * hppa-tdep.c:
6882 * hppanbsd-tdep.c:
6883 * i386-nto-tdep.c:
6884 * i386-tdep.c:
6885 * i387-tdep.c:
6886 * ia64-tdep.c:
6887 * jit.c:
6888 * linespec.c:
6889 * linux-tdep.c:
6890 * lm32-tdep.c:
6891 * m2-valprint.c:
6892 * m32c-tdep.c:
6893 * m32r-rom.c:
6894 * m32r-tdep.c:
6895 * m68k-tdep.c:
6896 * m68klinux-tdep.c:
6897 * mi/mi-main.c:
6898 * microblaze-tdep.c:
6899 * mips-linux-tdep.c:
6900 * mips-tdep.c:
6901 * mn10300-tdep.c:
6902 * p-valprint.c:
6903 * parse.c:
6904 * ppc-linux-tdep.c:
6905 * ppc-sysv-tdep.c:
6906 * printcmd.c:
6907 * python/py-finishbreakpoint.c:
6908 * python/py-inferior.c:
6909 * python/py-infthread.c:
6910 * python/py-type.c:
6911 * python/python.c:
6912 * remote-fileio.c:
6913 * remote-m32r-sdi.c:
6914 * remote-mips.c:
6915 * reverse.c:
6916 * rl78-tdep.c:
6917 * rs6000-aix-tdep.c:
6918 * rs6000-tdep.c:
6919 * s390-tdep.c:
6920 * score-tdep.c:
6921 * sh64-tdep.c:
6922 * skip.c:
6923 * solib-darwin.c:
6924 * solib-dsbt.c:
6925 * solib-frv.c:
6926 * sparc-tdep.c:
6927 * spu-multiarch.c:
6928 * spu-tdep.c:
6929 * stack.c:
6930 * symfile.c:
6931 * symtab.c:
6932 * tic6x-tdep.c:
6933 * tracepoint.c:
6934 * v850-tdep.c:
6935 * valarith.c:
6936 * valprint.c:
6937 * value.c:
6938 * xcoffread.c:
6939 * xtensa-tdep.c:
6940 * ada-lang.c:
6941 * ada-tasks.c:
6942 * ada-varobj.c:
6943 * amd64-darwin-tdep.c:
6944 * arm-symbian-tdep.c:
6945 * arm-tdep.c: Delete unused variables.
6946
aff139ff
JK
69472012-05-18 Jan Kratochvil <[email protected]>
6948
6949 Rename $ddir to $datadir.
6950 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6951 * auto-load.c (auto_load_safe_path_vec_update)
6952 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6953 * configure: Regenerate.
6954 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6955 Likewise. Remove the 'use $ddir' help string.
6956
f7bfa992
JK
69572012-05-18 Jan Kratochvil <[email protected]>
6958
6959 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6960 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6961
9cb709b6
TT
69622012-05-18 Tom Tromey <[email protected]>
6963
6964 PR exp/13907:
6965 * valprint.h (struct value_print_options) <symbol_print>: New
6966 field.
6967 * valprint.c (user_print_options): Add default for symbol_print.
6968 (show_symbol_print): New function.
6969 (generic_val_print): Respect symbol_print.
6970 (_initialize_valprint): Add "print symbol" setting.
6971 * f-valprint.c (f_val_print): Respect symbol_print.
6972 * c-valprint.c (c_val_print): Respect symbol_print.
6973 * NEWS: Update.
6974 * printcmd.c (print_address_symbolic): Return int. Ignore some
6975 zero-size symbols.
6976 (print_address_demangle): Return int.
6977 * defs.h: (print_address_symbolic): Return int.
6978 * value.h (print_address_demangle): Return int.
6979
b012acdd
TT
69802012-05-18 Tom Tromey <[email protected]>
6981
6982 * valprint.c (val_print_string): Don't print leading space.
6983 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6984 print space before string or vtbl.
6985 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6986 before string.
6987 * jv-valprint.c (java_value_print): Print space before string.
6988 * go-valprint.c (print_go_string): Print space before string.
6989 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6990 space before string.
6991 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6992 space before string or vtbl.
6993 * auxv.c (fprint_target_auxv): Print space after address.
6994
1d51a733
TT
69952012-05-18 Tom Tromey <[email protected]>
6996
6997 * printcmd.c (print_address_demangle): Remove special case for 0.
6998
edf0c1b7
TT
69992012-05-18 Tom Tromey <[email protected]>
7000
7001 * printcmd.c (print_address_demangle): Add 'opts' argument.
7002 * p-valprint.c (pascal_val_print): Update.
7003 * jv-valprint.c (java_val_print): Update.
7004 * value.h: Update.
7005 * valprint.c (generic_val_print): Update.
7006 (print_function_pointer_address): Add 'options' argument. Remove
7007 'addressprint' argument. Update.
7008 * m2-valprint.c (print_unpacked_pointer): Update.
7009 * gnu-v3-abi.c (print_one_vtable): Update.
7010 (gnuv3_print_method_ptr): Update.
7011 * f-valprint.c (f_val_print): Update.
7012 * cp-valprint.c (cp_print_value_fields): Update.
7013 * valprint.h (print_function_pointer_address): Update.
7014 * c-valprint.c (c_val_print): Update.
7015
9703b513
TT
70162012-05-18 Tom Tromey <[email protected]>
7017
7018 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
7019 directly corresponding to the found psymtab.
7020 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
7021 (dw2_find_pc_sect_symtab): Use it.
7022 * block.h (blockvector_contains_pc): Declare.
7023 * block.c (find_block_in_blockvector): New function.
7024 (blockvector_for_pc_sect): Use it.
7025 (blockvector_contains_pc): New function.
7026
5a439849
MR
70272012-05-18 Maciej W. Rozycki <[email protected]>
7028
7029 * mips-tdep.h (mips_write_pc): New prototype.
7030 * mips-tdep.c (mips_write_pc): Make external, add description.
7031 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
7032 add description.
7033
8376de04
MR
70342012-05-18 Maciej W. Rozycki <[email protected]>
7035
7036 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
7037 mips_regnum->pc.
7038 (mips_unwind_pc, mips_write_pc): Likewise.
7039 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
7040 gdbarch_read_pc.
7041
d3581e61
JB
70422012-05-17 Joel Brobecker <[email protected]>
7043
7044 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
7045 proc_warn, proc_error, proc_get_status, proc_flags,
7046 proc_why, proc_what, proc_nsysarg, proc_sysargs,
7047 proc_set_run_on_last_close, proc_unset_run_on_last_close,
7048 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
7049 proc_stop_process, proc_wait_for_stop, proc_run_process,
7050 proc_set_traced_signals, proc_set_traced_faults,
7051 proc_set_traced_sysentry, proc_set_traced_sysexit,
7052 proc_set_held_signals, proc_get_held_signals,
7053 proc_get_traced_signals, proc_get_traced_faults,
7054 proc_get_traced_sysentry, proc_get_traced_sysexit,
7055 proc_clear_current_fault, proc_set_current_signal,
7056 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
7057 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
7058 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
7059 proc_get_current_thread, proc_get_current_thread,
7060 proc_get_current_thread, proc_update_threads,
7061 proc_update_threads, proc_update_threads, proc_update_threads,
7062 proc_iterate_over_threads, procfs_find_new_threads,
7063 procfs_pid_to_str): Make static. Remove advance declaration.
7064 (proc_cursig): Make static. Conditionalized defintion on
7065 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
7066 (proc_syscall, proc_set_kill_on_last_close,
7067 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
7068 proc_get_pending_signals, proc_get_signal_actions,
7069 proc_trace_signal, proc_ignore_signal): Delete.
7070
81b9b86e
SDJ
70712012-05-16 Sergio Durigan Junior <[email protected]>
7072
7073 * coffread.c (cs_section_address): Passing proper argument for
7074 `bfd_get_section_vma'.
7075 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
7076 `bfd_get_section_flags'.
7077 * remote.c (remote_trace_set_readonly_regions): Likewise, for
7078 `bfd_get_section_vma'.
7079
abc9d0dc
TT
70802012-05-16 Tom Tromey <[email protected]>
7081
7082 PR macros/13205:
7083 * macrotab.h: (macro_define_special): Declare.
7084 (enum macro_special_kind): New.
7085 (struct macro_definition) <argc, replacement>: Update comments.
7086 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
7087 (macro_define_object_internal): New function.
7088 (macro_define_object): Use it.
7089 (macro_define_special): New function.
7090 (fixup_definition): New function.
7091 (macro_lookup_definition, foreach_macro_in_scope)
7092 (foreach_macro): Use fixup_definition.
7093 * macroexp.h (macro_stringify): Declare.
7094 * macroexp.c (free_buffer_return_text): New function.
7095 (stringify): Constify "arg".
7096 (macro_stringify): New function.
7097 * dwarf2read.c (macro_start_file): Call macro_define_special.
7098
6a3a010b 70992012-05-16 Maciej W. Rozycki <[email protected]>
f782ad9b 7100 Maciej W. Rozycki <[email protected]>
6a3a010b
MR
7101
7102 * breakpoint.h (bp_location): Add related_address member.
7103 * inferior.h (get_return_value): Take a pointer to struct value
7104 instead of struct type for the function requested.
7105 * value.h (using_struct_return): Likewise.
7106 * gdbarch.sh (return_value): Take a pointer to struct value
7107 instead of struct type for the function requested.
7108 * breakpoint.c (set_breakpoint_location_function): Initialize
7109 related_address for bp_gnu_ifunc_resolver breakpoints.
7110 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7111 requested function's address to gdbarch_return_value.
7112 * eval.c (evaluate_subexp_standard): Pass the requested
7113 function's address to using_struct_return.
7114 * infcall.c (call_function_by_hand): Pass the requested
7115 function's address to using_struct_return and
7116 gdbarch_return_value.
7117 * infcmd.c (get_return_value): Take a pointer to struct value
7118 instead of struct type for the function requested.
7119 (print_return_value): Update accordingly.
7120 (finish_command_continuation): Likewise.
7121 * stack.c (return_command): Pass the requested function's
7122 address to using_struct_return and gdbarch_return_value.
7123 * value.c (using_struct_return): Take a pointer to struct value
7124 instead of struct type for the function requested. Pass the
7125 requested function's address to gdbarch_return_value.
7126 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7127 New function_value member, replacing function_type.
7128 (bpfinishpy_dealloc): Update accordingly.
7129 (bpfinishpy_pre_stop_hook): Likewise.
7130 (bpfinishpy_init): Likewise. Record the requested function's
7131 address.
7132 * mips-tdep.c (mips_fval_reg): New enum.
7133 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7134 words put in GP registers.
7135 (mips_o64_push_dummy_call): Update a comment.
7136 (mips_o32_return_value): Take a pointer to struct value instead
7137 of struct type for the function requested and use it to check if
7138 using the MIPS16 calling convention. Return the designated
7139 general purpose registers for floating-point values returned in
7140 MIPS16 mode.
7141 (mips_o64_return_value): Likewise.
7142 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7143 (ppc_sysv_abi_broken_return_value): Likewise.
7144 (ppc64_sysv_abi_return_value): Likewise.
7145 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7146 value instead of struct type for the function requested.
7147 * amd64-tdep.c (amd64_return_value): Likewise.
7148 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7149 * arm-tdep.c (arm_return_value): Likewise.
7150 * avr-tdep.c (avr_return_value): Likewise.
7151 * bfin-tdep.c (bfin_return_value): Likewise.
7152 * cris-tdep.c (cris_return_value): Likewise.
7153 * frv-tdep.c (frv_return_value): Likewise.
7154 * h8300-tdep.c (h8300_return_value): Likewise.
7155 (h8300h_return_value): Likewise.
7156 * hppa-tdep.c (hppa32_return_value): Likewise.
7157 (hppa64_return_value): Likewise.
7158 * i386-tdep.c (i386_return_value): Likewise.
7159 * ia64-tdep.c (ia64_return_value): Likewise.
7160 * iq2000-tdep.c (iq2000_return_value): Likewise.
7161 * lm32-tdep.c (lm32_return_value): Likewise.
7162 * m32c-tdep.c (m32c_return_value): Likewise.
7163 * m32r-tdep.c (m32r_return_value): Likewise.
7164 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7165 * m68k-tdep.c (m68k_return_value): Likewise.
7166 (m68k_svr4_return_value): Likewise.
7167 * m88k-tdep.c (m88k_return_value): Likewise.
7168 * mep-tdep.c (mep_return_value): Likewise.
7169 * microblaze-tdep.c (microblaze_return_value): Likewise.
7170 * mn10300-tdep.c (mn10300_return_value): Likewise.
7171 * moxie-tdep.c (moxie_return_value): Likewise.
7172 * mt-tdep.c (mt_return_value): Likewise.
7173 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7174 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7175 (ppc_sysv_abi_broken_return_value): Likewise.
7176 (ppc64_sysv_abi_return_value): Likewise.
7177 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7178 * rl78-tdep.c (rl78_return_value): Likewise.
7179 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7180 * rx-tdep.c (rx_return_value): Likewise.
7181 * s390-tdep.c (s390_return_value): Likewise.
7182 * score-tdep.c (score_return_value): Likewise.
7183 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7184 (sh_return_value_fpu): Likewise.
7185 * sh64-tdep.c (sh64_return_value): Likewise.
7186 * sparc-tdep.c (sparc32_return_value): Likewise.
7187 * sparc64-tdep.c (sparc64_return_value): Likewise.
7188 * spu-tdep.c (spu_return_value): Likewise.
7189 * tic6x-tdep.c (tic6x_return_value): Likewise.
7190 * v850-tdep.c (v850_return_value): Likewise.
7191 * vax-tdep.c (vax_return_value): Likewise.
7192 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7193 * xtensa-tdep.c (xtensa_return_value): Likewise.
7194 * gdbarch.c: Regenerate.
7195 * gdbarch.h: Regenerate.
7196
29ca12b3
TT
71972012-05-15 Tom Tromey <[email protected]>
7198
7199 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7200
588ae58c
JB
72012012-05-15 Joel Brobecker <[email protected]>
7202
7203 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7204 of command in two error message.
7205
855a6e68
JB
72062012-05-15 Joel Brobecker <[email protected]>
7207
7208 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7209
d634f2de
JB
72102012-05-15 Joel Brobecker <[email protected]>
7211
7212 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7213
9cc815f5
JK
72142012-05-15 Jan Kratochvil <[email protected]>
7215
7216 * NEWS (show auto-load scripts-directory): Add forgotten command.
7217
6a609e58
JK
72182012-05-15 Jan Kratochvil <[email protected]>
7219
7220 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7221 parameters.
7222
ac1438b5
L
72232012-05-14 H.J. Lu <[email protected]>
7224
7225 * amd64-tdep.c: Include features/i386/x32.c and
7226 features/i386/x32-avx.c.
7227 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7228 initialize_tdesc_x32_avx.
7229
e7e0cddf
SS
72302012-05-14 Stan Shebs <[email protected]>
7231
7232 Add dynamic printf.
7233 * breakpoint.h (enum bptype): New type bp_dprintf.
7234 (struct breakpoint): New field extra_string.
7235 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7236 (create_breakpoint): Add extra_string arg.
7237 * breakpoint.c (dprintf_breakpoint_ops): New.
7238 (is_breakpoint): Add bp_dprintf.
7239 (bpstat_what): Add dprintf case.
7240 (bptype_string): Ditto.
7241 (print_one_breakpoint_location): Ditto.
7242 (init_bp_location): Ditto.
7243 (bkpt_print_mention): Ditto.
7244 (dprintf_style_enums): New array.
7245 (dprintf_style): New global.
7246 (dprintf_function): New global.
7247 (dprintf_channel): New global.
7248 (update_dprintf_command_list): New function.
7249 (update_dprintf_commands): New function.
7250 (init_breakpoint_sal): Add extra_string argument, handle it.
7251 (create_breakpoint_sal): Add extra_string argument.
7252 (create_breakpoints_sal): Add extra_string argument, update callers.
7253 (find_condition_and_thread): Add extra argument.
7254 (create_breakpoint): Add extra_string argument, record it.
7255 (dprintf_command): New function.
7256 (break_command_1): Add arg to create_breakpoint call.
7257 (handle_gnu_v3_exceptions): Ditto.
7258 (trace_command): Ditto.
7259 (ftrace_command): Ditto.
7260 (strace_command): Ditto.
7261 (bkpt_print_mention): Add dprintf case.
7262 (create_breakpoint_sal_default): Add extra_string argument.
7263 (_initialize_breakpoint): Add new commands.
7264 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7265 * python/py-breakpoint.c (bppy_init): Ditto.
7266 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7267
8ae38c14
MR
72682012-05-14 Maciej W. Rozycki <[email protected]>
7269
7270 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7271
9f676e66
SCR
72722012-05-14 Siva Chandra Reddy <[email protected]>
7273
7274 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7275 unsigned long long.
7276
7efc75aa
SCR
72772012-05-13 Siva Chandra Reddy <[email protected]>
7278
7279 Add a new function gdb.find_pc_line to the Python API.
7280 * NEWS (Python Scripting): Add entry about the new function.
7281 * python/python.c (gdbpy_find_pc_line): New function which
7282 implements gdb.find_pc_line.
7283 (GdbMethods): Add entry for the new function.
7284
70af3797
PA
72852012-05-12 Pedro Alves <[email protected]>
7286
7287 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7288 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7289
06da564e
EZ
72902012-05-12 Eli Zaretskii <[email protected]>
7291
7292 * inferior.c: Include completer.h
7293 (initialize_inferiors): Set completer of add-inferior to
7294 filename_completer.
7295
0288cee2
L
72962012-05-11 H.J. Lu <[email protected]>
7297
7298 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7299 gdbarch_ptr_bit for x32 core dump.
7300
f6537a2c
L
73012012-05-11 H.J. Lu <[email protected]>
7302
7303 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7304 and features/i386/x32-avx-linux.c.
7305
85d4a676
SS
73062012-05-11 Stan Shebs <[email protected]>
7307 Kwok Cheung Yeung <[email protected]>
7308
7309 * NEWS: Describe new info os commands.
7310 * common/linux-osdata.c (PID_T, TIME_T): Define.
7311 (MAX_PID_T_STRLEN): New.
7312 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7313 MAX_PID_T_STRLEN.
7314 (command_from_pid): Add comment. Change to use PID_T.
7315 (commandline_from_pid): Change to use PID_T.
7316 (user_from_pid): Add comment.
7317 (get_process_owner): Add comment. Change to use PID_T and
7318 MAX_PID_T_STRLEN.
7319 (get_number_of_cpu_cores): Add comment.
7320 (get_cores_used_by_process): Add comment. Change to use PID_T and
7321 MAX_PID_T_STRLEN.
7322 (linux_xfer_osdata_processes): Change to use PID_T and
7323 MAX_PID_T_STRLEN.
7324 (compare_processes): New function.
7325 (linux_xfer_osdata_processgroups): New function.
7326 (linux_xfer_osdata_threads): Change to use PID_T.
7327 (linux_xfer_osdata_fds): New function.
7328 (format_socket_state, print_sockets): New functions.
7329 (union socket_addr): New union.
7330 (linux_xfer_osdata_isockets): New function.
7331 (time_from_time_t, group_from_gid): New functions.
7332 (linux_xfer_osdata_shm): New function.
7333 (linux_xfer_osdata_sem): New function.
7334 (linux_xfer_osdata_msg): New function.
7335 (linux_xfer_osdata_modules): New function.
7336 (osdata_table): Add new entries.
7337 * common/buffer.c (buffer_xml_printf): Add support for long and
7338 long long format specifiers.
7339
f24afd6d
L
73402012-05-11 H.J. Lu <[email protected]>
7341
7342 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7343 (tdesc_x32_avx_linux): Likewise.
7344
7349ff92
JK
73452012-05-11 Jan Kratochvil <[email protected]>
7346
7347 Implement multi-component --with-auto-load-dir.
7348 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7349 entries.
7350 (--with-auto-load-safe-path): Update the default value description.
7351 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7352 New.
7353 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7354 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7355 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7356 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7357 "set auto-load scripts-directory".
7358 * config.in: Regenerate.
7359 * configure: Regenerate.
7360 * configure.ac (--with-auto-load-dir): New configure option.
7361 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7362
6dea1fbd
JK
73632012-05-11 Jan Kratochvil <[email protected]>
7364
7365 Provide $ddir substitution for --with-auto-load-safe-path.
7366 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7367 entries.
7368 * auto-load.c: Include observer.h.
7369 (auto_load_safe_path_vec_update): Call substitute_path_component for
7370 each component. New variable ddir_subst.
7371 (auto_load_gdb_datadir_changed): New function.
7372 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7373 AUTO_LOAD_SAFE_PATH. New comment.
7374 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7375 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7376 * config.in: Regenerate.
7377 * configure: Regenerate.
7378 * configure.ac (--auto-load-safe-path): Rename
7379 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7380 GDB_DATADIR/auto-load.
7381 * defs.h (substitute_path_component): New declaration.
7382 * top.c: Include observer.h.
7383 (set_gdb_datadir): New function.
7384 (init_main): Install it for "set data-directory".
7385 * utils.c (substitute_path_component): New function.
7386
b09aca3a
JK
73872012-05-11 Jan Kratochvil <[email protected]>
7388
7389 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7390 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7391 DEBUG_FILE_DIRECTORY. Handle multiple components of
7392 DEBUG_FILE_DIRECTORY.
7393
95554aad
TT
73942012-05-10 Tom Tromey <[email protected]>
7395
7396 * dwarf2read.c (recursively_write_psymbols): New function.
7397 (write_psymtabs_to_index): Use it.
7398
7399 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7400 field.
7401 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7402 (load_partial_comp_unit): Update.
7403 (queue_comp_unit): Add argument 'pretend_language'.
7404 (process_queue): Update.
7405 (psymtab_to_symtab_1): Skip dependencies that have a user.
7406 (load_partial_comp_unit_reader): Give meaning to the 'data'
7407 argument.
7408 (load_full_comp_unit): Add 'pretend_language' argument.
7409 (process_full_comp_unit): Add 'pretend_language' argument. Set
7410 language on CU.
7411 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7412 Update.
7413 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7414 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7415 Update.
7416 (prepare_one_comp_unit): Add 'pretend_language' argument.
7417
7418 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7419 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7420 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7421 (dw2_do_instantiate_symtab): Check whether symtab was read in
7422 before queueing.
7423 (dw2_instantiate_symtab): Add assertion. Call
7424 process_cu_includes.
7425 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7426 (partial_symtab_p): New typedef.
7427 (set_partial_user): New function.
7428 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7429 (scan_partial_symbols): Add imported CU to imported_symtabs.
7430 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7431 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7432 (get_symtab, recursively_compute_inclusions)
7433 (compute_symtab_includes, process_cu_includes)
7434 (process_imported_unit_die): New functions.
7435 (process_die) <DW_TAG_imported_unit>: New case.
7436 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7437
7438 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7439 comment.
7440 (struct partial_die_info) <locdesc>: Remove.
7441 <d>: New field.
7442 (process_psymtab_comp_unit): Add 'read_partial' argument.
7443 Update.
7444 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7445 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7446 (add_partial_symbol): Update.
7447 (process_die): Handle DW_TAG_partial_unit.
7448 (read_file_scope): Update comment.
7449 (load_partial_dies): Handle DW_TAG_imported_unit.
7450 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7451 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7452
e871fbb9
TT
74532012-05-10 Tom Tromey <[email protected]>
7454
7455 * cc-with-dwz.sh: New file.
7456
b5b04b5b
TT
74572012-05-10 Tom Tromey <[email protected]>
7458
7459 * symtab.h (struct symtab) <includes, user>: New fields.
7460 * block.h (struct block_iterator) <d, idx, which>: New fields.
7461 * block.c (initialize_block_iterator, find_iterator_symtab)
7462 (block_iterator_step, block_iter_name_step)
7463 (block_iter_match_step): New functions.
7464 (block_iterator_first, block_iterator_next)
7465 (block_iter_name_first, block_iter_name_next)
7466 (block_iter_match_first, block_iter_match_next): Rewrite.
7467 (get_block_symtab): New function.
7468
84a146c9
TT
74692012-05-10 Tom Tromey <[email protected]>
7470
7471 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7472 set_block_symtab.
7473 * jit.c (finalize_symtab): Use allocate_global_block,
7474 set_block_symtab.
7475 * buildsym.c (finish_block_internal): New function, from old
7476 finish_block.
7477 (finish_block): Rewrite.
7478 (end_symtab): Use finish_block_internal, set_block_symtab.
7479 * block.h (struct global_block): New.
7480 (allocate_global_block, set_block_symtab): Declare.
7481 * block.c (allocate_global_block, set_block_symtab): New
7482 functions.
7483
9439a077
TT
74842012-05-10 Tom Tromey <[email protected]>
7485
7486 * psymtab.c (partial_map_expand_apply): Add assertion.
7487 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7488 (psymtab_to_symtab): Find unshared psymtab.
7489 (dump_psymtab): Print including psymtabs.
7490 (recursively_search_psymtabs): New function.
7491 (expand_symtabs_matching_via_partial): Use it.
7492 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7493 fields.
7494 (enum psymtab_search_status): New.
7495
8157b174
TT
74962012-05-10 Tom Tromey <[email protected]>
7497
7498 * tracepoint.c (scope_info): Update.
7499 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7500 (find_pc_sect_symtab, search_symbols)
7501 (default_make_symbol_completion_list_break_on)
7502 (make_file_symbol_completion_list): Update.
7503 * symmisc.c (dump_symtab_1): Update.
7504 * stack.c (print_frame_args, iterate_over_block_locals)
7505 (print_frame_labels, iterate_over_block_arg_vars): Update.
7506 * python/py-block.c (block_object) <dict>: Remove.
7507 <block>: New field.
7508 <iter>: Change type.
7509 (blpy_iter): Update.
7510 (blpy_block_syms_iternext): Update.
7511 * psymtab.c (map_block): Use block iterators.
7512 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7513 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7514 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7515 * infrun.c (check_exception_resume): Update.
7516 * cp-support.c (make_symbol_overload_list_block): Update.
7517 * coffread.c (patch_opaque_types): Update.
7518 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7519 * block.h (struct block_iterator): New.
7520 (block_iterator_first, block_iterator_next, block_iter_name_first)
7521 (block_iter_name_next, block_iter_match_first)
7522 (block_iter_match_next): Declare.
7523 (ALL_BLOCK_SYMBOLS): Redefine.
7524 * block.c (block_iterator_first, block_iterator_next)
7525 (block_iter_name_first, block_iter_name_next)
7526 (block_iter_match_first, block_iter_match_next): New functions.
7527 * ada-lang.c (ada_add_block_symbols)
7528 (ada_make_symbol_completion_list): Use block iterator.
7529
a2ca7a52
TT
75302012-05-10 Tom Tromey <[email protected]>
7531
7532 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7533 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7534 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7535 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7536 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7537 Update.
7538
64ea88dc
JB
75392012-05-10 Joel Brobecker <[email protected]>
7540
7541 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7542 print-file-var-lib2.c, print-file-var-main.c and
7543 print-file-var.exp (located in gdb/testsuite/gdb.base).
7544
99a547d6
JB
75452012-05-10 Joel Brobecker <[email protected]>
7546
7547 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7548 try locating the symbol in the symbol's own objfile first, before
7549 extending the search to all objfiles.
7550 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7551 out of lookup_symbol_aux_symtabs.
7552 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7553 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7554 Do not search EXCLUDE_OBJFILE.
7555 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7556 (lookup_symbol_global): Search for matches in the block's objfile
7557 first, before searching all other objfiles.
7558
0ece64fd
TG
75592012-05-10 Tristan Gingold <[email protected]>
7560
7561 * printcmd.c (set_command): Add pre/post inc/dec.
7562
3d16a105
FCE
75632012-05-09 Frank Ch. Eigler <[email protected]>
7564
7565 * gdb.1: Document -ex option.
7566
2efbc0f7
JB
75672012-05-09 Joel Brobecker <[email protected]>
7568
7569 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7570 * inferior.h (AT_SYMBOL): Delete.
7571
2c76a0c7
JB
75722012-05-09 Joel Brobecker <[email protected]>
7573
7574 * mips-tdep.c (mips_push_dummy_code): New function.
7575 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7576 ON_STACK and install mips_push_dummy_code as our gdbarch
7577 push_dummy_code routine.
7578
9401a810
PA
75792012-05-09 Pedro Alves <[email protected]>
7580
7581 * target.c (set_maintenance_target_async_permitted): Rename to ...
7582 (set_target_async_command): ... this.
7583 (show_maintenance_target_async_permitted): Rename to ...
7584 (show_target_async_command): ... this.
7585 (initialize_targets): Adjust.
7586
3929b321
DE
75872012-05-08 Doug Evans <[email protected]>
7588
7589 * go-exp.y (classify_name): Add missing assignment of fields of
7590 yylval.ssym.
7591
c41535fd
EZ
75922012-05-08 Eli Zaretskii <[email protected]>
7593
7594 Display the ">" prompt in interactive mode while reading canned
7595 commands, even when the current interpreter is MI.
7596
7597 * interps.c (interp_set_temp): New function.
7598
7599 * interps.h (interp_set_temp): Add prototype.
7600
7601 * cli/cli-script.c (restore_interp): New cleanup function.
7602 (read_command_lines): Temporarily override the current interpreter
7603 with CLI and arrange for restoring the original one.
7604
c0749c4d
JS
76052012-05-12 Joel Sherrill <[email protected]>
7606
7607 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7608
d7333987
SDJ
76092012-05-07 Sergio Durigan Junior <[email protected]>
7610
7611 * probe.c (parse_probes): Move conditional to check for
7612 debuginfo files from here...
7613 * stap-probe.c (stap_get_probes): ... to here.
7614
649e6d92
MK
76152012-05-07 Mark Kettenis <[email protected]>
7616 H.J. Lu <[email protected]>
7617
7618 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7619 `movl %esp, %ebp' for the X32 ABI.
7620
f39c6ffd
TT
76212012-05-07 Tom Tromey <[email protected]>
7622
7623 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7624 get_DW_TAG_name.
7625 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7626 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7627 (dwarf_stack_op_name): Remove.
7628 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7629 (decode_locdesc): Use get_DW_OP_name.
7630 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7631 (dwarf2_compile_expr_to_ax): Likewise.
7632 (disassemble_dwarf_expression): Likewise.
7633 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7634
1e1f6591
CLT
76352012-05-07 Chung-Lin Tang <[email protected]>
7636
7637 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7638 (sh_linux_sigtramp_cache): New function.
7639 (sh_linux_sigreturn_init): New function.
7640 (sh_linux_rt_sigreturn_init): New function.
7641 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7642 patterns.
7643 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7644 syscall codes.
7645 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7646 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7647 (sh_linux_init_abi): Add init calls to register new tramp_frame
7648 definitions under 32-bit SH, update comments.
7649
545c08b4
PA
76502012-05-07 Pedro Alves <[email protected]>
7651
daac165e
PA
7652 PR gdb/10952
7653
545c08b4
PA
7654 * amd64-linux-tdep.c: Include glibc-tdep.h.
7655 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7656 gdbarch_skip_solib_resolver callback.
7657
af2c1515
JK
76582012-05-06 Jan Kratochvil <[email protected]>
7659
7660 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7661 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7662 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7663 (add_auto_load_safe_path): Change the error message.
7664 (_initialize_auto_load): Change the "safe-path" help text.
7665 * configure: Regenerate
7666 * configure.ac (--without-auto-load-safe-path): Set
7667 WITH_AUTO_LOAD_SAFE_PATH to /.
7668
1067f998
SDJ
76692012-05-05 Sergio Durigan Junior <[email protected]>
7670
7671 * stap-probe.h: Do not include unecessary `probe.h'.
7672
45dfa85a
AM
76732012-05-05 Alan Modra <[email protected]>
7674
7675 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7676 bfd_und_section_ptr.
7677 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7678 and bfd_com_section_ptr.
7679
cf093994
JB
76802012-05-04 Joel Brobecker <[email protected]>
7681
762ebb75 7682 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 7683
d40dc7a8
JB
76842012-05-04 Joel Brobecker <[email protected]>
7685
7686 * windows-nat.h (segment_register_p_ftype): New typedef.
7687 (windows_set_segment_register_p): Add declaration.
7688 * windows-nat.c (segment_register_p): New static global.
7689 (windows_set_segment_register_p): New function.
7690 (do_windows_fetch_inferior_registers): Add special handling
7691 for segment registers.
7692 * amd64-windows-nat.c: #include "amd64-tdep.h".
7693 (amd64_windows_segment_register_p): New function.
7694 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7695 * i386-windows-nat.c: #include "i386-tdep.h".
7696 (i386_windows_segment_register_p): New function.
7697 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7698
52b3699b
TG
76992012-05-04 Tristan Gingold <[email protected]>
7700
7701 * printcmd.c (set_command): Emit a warning if the expression is not
7702 an assignment.
7703
94c74239
JB
77042012-05-03 Joel Brobecker <[email protected]>
7705
7706 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7707 Make static.
7708
fcf57f19
SDJ
77092012-05-03 Sergio Durigan Junior <[email protected]>
7710
7711 * stap-probe.c (stap_is_operator): Change declaration.
7712 (stap_get_opcode): Change return value.
7713 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7714 `stap_parse_argument_1'.
7715
27d2932e
PA
77162012-05-03 Pedro Alves <[email protected]>
7717
7718 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7719 debug log.
7720
a20ee7a4
SCR
77212012-05-03 Siva Chandra Reddy <[email protected]>
7722
7723 Add two new methods global_block and static_block to gdb.Symtab
7724 objects.
7725 * NEWS (Python scripting): Add entry about the new methods.
7726 * python/py-symtab.c (stpy_global_block): New function which
7727 implements the gdb.Symtab.global_block() method.
7728 (stpy_static_block): New function which implements the
7729 gdb.Symtab.static_block() method.
7730 (symtab_object_methods): Add entries for the two new methods.
7731
943cb756
DE
77322012-05-03 Doug Evans <[email protected]>
7733
7734 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7735 files.
7736
f4644a3f
YQ
77372012-05-03 Yao Qi <[email protected]>
7738
7739 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7740 space.
7741 (i386_process_record): Ditto.
7742
ef61f180
JB
77432012-05-02 Joel Brobecker <[email protected]>
7744
7745 * infcall.c (unwind_on_signal_p): Make static.
7746
02f1df11
JB
77472012-05-02 Joel Brobecker <[email protected]>
7748
7749 * sol-thread.c (solaris_pid_to_str): Make static.
7750 (_initialize_sol_thread): Add prototype.
7751
39023530
JB
77522012-05-02 Joel Brobecker <[email protected]>
7753
7754 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7755
c6b0c501
CF
77562012-05-02 Christopher Faylor <[email protected]>
7757
7758 * MAINTAINERS: Remove myself.
7759
1ef71717
JK
77602012-05-02 Jan Kratochvil <[email protected]>
7761
7762 Fix --without-auto-load-safe-path for MS-Windows host platform.
7763 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7764
b31b86a7
EZ
77652012-05-02 Eli Zaretskii <[email protected]>
7766
7767 * gdb_curses.h: Undefine KEY_EVENT before including curses
7768 headers. Move "#undef MOUSE_MOVED" before any curses header
7769 inclusion.
7770
777532fc
SDJ
77712012-05-02 Sergio Durigan Junior <[email protected]>
7772
7773 * features/i386/i386-mmx-linux.c: Regenerate.
7774 * features/rs6000/powerpc-32.c: Likewise.
7775 * features/rs6000/powerpc-32l.c: Likewise.
7776 * features/rs6000/powerpc-403.c: Likewise.
7777 * features/rs6000/powerpc-403gc.c: Likewise.
7778 * features/rs6000/powerpc-405.c: Likewise.
7779 * features/rs6000/powerpc-505.c: Likewise.
7780 * features/rs6000/powerpc-601.c: Likewise.
7781 * features/rs6000/powerpc-602.c: Likewise.
7782 * features/rs6000/powerpc-603.c: Likewise.
7783 * features/rs6000/powerpc-604.c: Likewise.
7784 * features/rs6000/powerpc-64.c: Likewise.
7785 * features/rs6000/powerpc-64l.c: Likewise.
7786 * features/rs6000/powerpc-750.c: Likewise.
7787 * features/rs6000/powerpc-860.c: Likewise.
7788 * features/rs6000/powerpc-e500.c: Likewise.
7789 * features/rs6000/powerpc-e500l.c: Likewise.
7790 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7791 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7792 * features/rs6000/rs6000.c: Likewise.
7793
d71871bc
SDJ
77942012-05-02 Sergio Durigan Junior <[email protected]>
7795
7796 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7797 variable.
7798 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7799 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7800 (stap_parse_argument) <e>: Likewise.
7801 (handle_stap_probe) <byte_order>: Likewise.
7802
fd820528
DE
78032012-04-30 Doug Evans <[email protected]>
7804
7805 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7806 init_and_read_dies_worker. All callers updated.
7807 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7808 replaced with init_cutu_and_read_dies.
7809 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7810 (find_partial_die): Remove FIXME. Don't free current CU.
7811
ec3f619d 78122012-04-30 Sterling Augustine <[email protected]>
be36f02d
SA
7813
7814 * contrib: New directory.
7815 * contrib/test_pubnames_and_indexes.py: New file.
7816
fceca515
DE
78172012-04-30 Doug Evans <[email protected]>
7818
7819 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7820 All callers updated.
7821 (init_cu_die_reader): Verify the section is non-empty.
7822 (dwarf_decode_line_header): Don't dereference section->asection
7823 until we know the section is present.
7824
311fe7e1
SDJ
78252012-04-29 Sergio Durigan Junior <[email protected]>
7826
7827 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7828 probes.
7829
5977971a
YQ
78302012-04-29 Yao Qi <[email protected]>
7831
7832 * gdb-code-style.el: New hook gdb-markup-hook
7833 and gdb-comment-hook.
7834
dee91e82
DE
78352012-04-28 Doug Evans <[email protected]>
7836
3019eac3
DE
7837 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7838 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7839 objfile->obfd.
7840 * symfile.h (dwarf2_debug_sections): New member addr.
7841 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7842 (ctx_no_get_addr_index): New function.
7843 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7844 (ctx_no_get_addr_index): Declare.
7845 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7846 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7847 (dwarf_expr_ctx_funcs): Update.
7848 (needs_get_addr_index): New function.
7849 (needs_frame_ctx_funcs): Update.
7850 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7851 * dwarf2read.c: #include "gdbcore.h".
7852 (dwarf2_per_objfile): New members addr, dwo_files.
7853 (dwarf2_elf_names): Add entry for addr.
7854 (struct dwo_section_names): New type.
7855 (dwo_section_names): New static global.
7856 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7857 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7858 old debug_types_section member updated to use this.
7859 Rename member debug_types_section to info_or_types_section,
7860 all uses updated.
7861 (signatured_type): Rename member type_offset to type_offset_in_tu,
7862 all uses updated. New member type_offset_in_section.
7863 (struct dwo_sections): New type.
7864 (struct dwo_unit): New type.
7865 (struct dwo_file): New type.
7866 (die_reader_specs): New member dwo_file.
7867 (dwarf2_locate_sections): Watch for .debug_addr.
7868 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7869 (dwarf2_read_section): Get bfd of section from bfd's asection,
7870 instead of objfile.
7871 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7872 (create_signatured_type_table_from_index): Initialize
7873 sig_type->info_or_types_section.
7874 (dw2_get_file_names): Statement lists for type units with DWO files
7875 live in the DWO file.
7876 (create_debug_types_hash_table): New function.
7877 (create_all_type_units): Rewrite.
7878 (init_cu_die_reader): New arg dwo_file, all callers updated.
7879 (init_and_read_dies_worker): Get section from
7880 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7881 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7882 continue reading the CU/TU from there.
7883 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7884 updated. Get section from this_cu->info_or_types_section.
7885 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7886 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7887 DW_FORM_GNU_str_index.
7888 (hash_dwo_file, eq_dwo_file): New functions.
7889 (allocate_dwo_file_hash_table): New function.
7890 (hash_dwo_unit, eq_dwo_unit): New functions.
7891 (allocate_dwo_unit_table): New function.
7892 (dwarf2_locate_dwo_sections): New function.
7893 (struct create_dwo_info_table_data): New type.
7894 (create_debug_info_hash_table_reader): New function.
7895 (create_debug_info_hash_table): New function.
7896 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7897 (lookup_dwo_file): New function.
7898 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7899 (free_dwo_file, free_dwo_file_cleanup): New functions.
7900 (free_dwo_file_from_slot, free_dwo_files): New functions.
7901 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7902 (dwarf2_record_block_ranges): Ditto.
7903 (read_partial_die): Ditto.
7904 (process_enumeration_scope): Update to use type_offset_in_section.
7905 (read_full_die_1): New function.
7906 (read_full_die): Rewrite.
7907 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7908 DW_FORM_GNU_str_index.
7909 (read_addr_index_1, read_addr_index): New functions.
7910 (read_addr_index_from_leb128): New function.
7911 (struct dwarf2_read_addr_index_data): New type.
7912 (dwarf2_read_addr_index_reader): New function.
7913 (dwarf2_read_addr_index): New function.
7914 (read_str_index): New function.
7915 (leb128_size): New function.
7916 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7917 If processing a type unit from a DWO file, get the line section
7918 from the DWO file.
7919 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7920 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7921 DW_FORM_GNU_str_index.
7922 (lookup_die_type): Check whether section offset of type's die is
7923 known before looking it up. Remove assert. Condition can
7924 legimately happen for inter-cu type references.
7925 (dwarf_attr_name): Handle Fission attributes.
7926 (dwarf_form_name): Handle Fission forms.
7927 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7928 DW_FORM_GNU_str_index.
7929 (follow_die_sig): Update to use type_offset_in_section.
7930 (decode_locdesc): New case DW_OP_GNU_addr_index.
7931 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7932 DW_FORM_GNU_str_index.
7933 (cu_debug_loc_section): New function.
7934 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7935 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7936 Free DWO files if present.
7937 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7938
dee91e82
DE
7939 Refactor DIE reading.
7940 * dwarf2read.c (dwarf2_per_objfile): Replace members
7941 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7942 (die_reader_specs): New member "die_section". Temporarily make
7943 member "buffer" non-const, pending constifying all info_ptr uses.
7944 (die_reader_func_ftype): New typedef.
7945 (dw2_get_file_names_reader): New function.
7946 (dw2_get_file_names): Rewrite.
7947 (read_and_check_type_unit_head): Rename arg type_offset to
7948 type_offset_in_tu.
7949 (create_all_type_units): Improve debugging message.
7950 Improve dummy type unit check.
7951 (init_cu_die_reader): New arg "section". All callers updated.
7952 (init_and_read_dies_worker): New function.
7953 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7954 (init_cutu_and_read_dies_no_follow): New function.
7955 (init_cutu_and_read_dies_simple): New function.
7956 (process_psymtab_comp_unit_reader): New function.
7957 (process_psymtab_comp_unit): Delete args section,
7958 is_debug_types_section. Rewrite. All callers updated.
7959 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7960 All callers updated. Rewrite.
7961 (load_partial_comp_unit_reader): New function.
7962 (load_partial_comp_unit): Rewrite.
7963 (skip_children): New arg reader. Delete args buffer, cu.
7964 All callers updated.
7965 (skip_one_die): New arg reader. Delete args buffer, cu.
7966 All callers updated.
7967 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7968 All callers updated.
7969 (load_full_comp_unit_reader): New function.
7970 (load_full_comp_unit): Rewrite.
7971 (read_comp_unit): Delete.
7972 (read_die_and_children_1): Delete, contents moved ...
7973 (read_die_and_children): ... here.
7974 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7975 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7976 All callers updated.
7977 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7978 All callers updated.
7979 (find_partial_die): Rewrite load_all_dies support.
7980 (read_attribute_value): New arg reader. Delete args abfd, cu.
7981 All callers updated.
7982 (read_attribute): New arg reader. Delete args abfd, cu.
7983 All callers updated.
7984 (load_full_type_unit): Add assert.
7985 (read_signatured_type_reader): New function.
7986 (read_signatured_type): Rewrite.
7987 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7988 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7989 All callers updated. Set per_cu->cu = NULL after freeing it.
7990 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7991 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7992 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7993 (set_die_type): Update.
7994 (get_die_type_at_offset): Update.
7995 (read_file_scope): Call prepare_one_comp_unit.
7996 (read_type_unit_scope): Ditto.
7997 (prepare_one_comp_unit): Set producer if present.
7998
72d59e0d
SDJ
79992012-04-28 Sergio Durigan Junior <[email protected]>
8000
8001 * probe.c (compile_rx_or_error): Silence ARI warning about missing
8002 gettext function on `error'.
8003
0fefef59
DE
80042012-04-27 Doug Evans <[email protected]>
8005
8006 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
8007 is empty.
8008
28106bc2
SDJ
80092012-04-27 Sergio Durigan Junior <[email protected]>
8010 Tom Tromey <[email protected]>
8011
8012 * breakpoint.c (struct breakpoint_objfile_data)
8013 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
8014 <exception_probes>: New fields.
8015 (free_breakpoint_probes): New function.
8016 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
8017 `_Unwind_DebugHook'.
8018 (create_exception_master_breakpoint): Likewise.
8019 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
8020 * infrun.c: Including necessary header files for handling SystemTap
8021 probes.
8022 (handle_inferior_event): Handling longjmp breakpoint and exceptions
8023 via SystemTap probes.
8024 (check_exception_resume): Remove `func' argument. Handle exception
8025 unwinding breakpoint set via a SystemTap probe.
8026 (insert_exception_resume_from_probe): New function.
8027
55aa24fb
SDJ
80282012-04-27 Sergio Durigan Junior <[email protected]>
8029 Tom Tromey <[email protected]>
8030 Jan Kratochvil <[email protected]>
8031
8032 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
8033 (COMMON_OBS): Likewise.
8034 (HFILES_NO_SRCDIR): Add `probe'.
8035 * NEWS: Mention support for static and SystemTap probes.
8036 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
8037 SystemTap probes' arguments parser.
8038 * arm-linux-tdep.c: Including headers needed to perform the parsing
8039 of SystemTap probes' arguments.
8040 (arm_stap_is_single_operand): New function.
8041 (arm_stap_parse_special_token): Likewise.
8042 (arm_linux_init_abi): Initializing proper fields used by SystemTap
8043 probes' arguments parser.
8044 * ax-gdb.c (require_rvalue): Removing static declaration.
8045 (gen_expr): Likewise.
8046 * ax-gdb.h (gen_expr): Declaring function.
8047 (require_rvalue): Likewise.
8048 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
8049 (bkpt_probe_breakpoint_ops): New variable.
8050 (momentary_breakpoint_from_master): Set the `probe' value.
8051 (add_location_to_breakpoint): Likewise.
8052 (break_command_1): Using proper breakpoint_ops according to the
8053 argument passed by the user in the command line.
8054 (bkpt_probe_insert_location): New function.
8055 (bkpt_probe_remove_location): Likewise.
8056 (bkpt_probe_create_sals_from_address): Likewise.
8057 (bkpt_probe_decode_linespec): Likewise.
8058 (tracepoint_probe_create_sals_from_address): Likewise.
8059 (tracepoint_probe_decode_linespec): Likewise.
8060 (tracepoint_probe_breakpoint_ops): New variable.
8061 (trace_command): Using proper breakpoint_ops according to the
8062 argument passed by the user in the command line.
8063 (initialize_breakpoint_ops): Initializing breakpoint_ops for
8064 static probes on breakpoints and tracepoints.
8065 * breakpoint.h (struct bp_location) <probe>: New field.
8066 * cli-utils.c (skip_spaces_const): New function.
8067 (extract_arg): Likewise.
8068 * cli-utils.h (skip_spaces_const): Likewise.
8069 (extract_arg): Likewise.
8070 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
8071 * configure.ac: Append `stap-probe.o' to be generated when ELF
8072 support is present.
8073 * configure: Regenerate.
8074 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
8075 * elfread.c: Include `probe.h' and `arch-utils.h'.
8076 (probe_key): New variable.
8077 (elf_get_probes): New function.
8078 (elf_get_probe_argument_count): Likewise.
8079 (elf_evaluate_probe_argument): Likewise.
8080 (elf_compile_to_ax): Likewise.
8081 (elf_symfile_relocate_probe): Likewise.
8082 (stap_probe_key_free): Likewise.
8083 (elf_probe_fns): New variable.
8084 (elf_sym_fns): Add `sym_probe_fns' value.
8085 (elf_sym_fns_lazy_psyms): Likewise.
8086 (elf_sym_fns_gdb_index): Likewise.
8087 (_initialize_elfread): Initialize objfile cache for static
8088 probes.
8089 * gdb_vecs.h (struct probe): New forward declaration.
8090 (probe_p): New VEC declaration.
8091 * gdbarch.c: Regenerate.
8092 * gdbarch.h: Regenerate.
8093 * gdbarch.sh (stap_integer_prefix): New variable.
8094 (stap_integer_suffix): Likewise.
8095 (stap_register_prefix): Likewise.
8096 (stap_register_suffix): Likewise.
8097 (stap_register_indirection_prefix): Likewise.
8098 (stap_register_indirection_suffix): Likewise.
8099 (stap_gdb_register_prefix): Likewise.
8100 (stap_gdb_register_suffix): Likewise.
8101 (stap_is_single_operand): New function.
8102 (stap_parse_special_token): Likewise.
8103 (struct stap_parse_info): Forward declaration.
8104 * i386-tdep.c: Including headers needed to perform the parsing
8105 of SystemTap probes' arguments.
8106 (i386_stap_is_single_operand): New function.
8107 (i386_stap_parse_special_token): Likewise.
8108 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8109 probes' arguments parser.
8110 * i386-tdep.h (i386_stap_is_single_operand): New function.
8111 (i386_stap_parse_special_token): Likewise.
8112 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8113 * mipsread.c (ecoff_sym_fns): Likewise.
8114 * objfiles.c (objfile_relocate1): Support relocation for static
8115 probes.
8116 * parse.c (prefixify_expression): Remove static declaration.
8117 (initialize_expout): Likewise.
8118 (reallocate_expout): Likewise.
8119 * parser-defs.h (initialize_expout): Declare function.
8120 (reallocate_expout): Likewise.
8121 (prefixify_expression): Likewise.
8122 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8123 of SystemTap probes' arguments.
8124 (ppc_stap_is_single_operand): New function.
8125 (ppc_stap_parse_special_token): Likewise.
8126 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8127 probes' arguments parser.
8128 * probe.c: New file, for generic statically defined probe support.
8129 * probe.h: Likewise.
8130 * s390-tdep.c: Including headers needed to perform the parsing of
8131 SystemTap probes' arguments.
8132 (s390_stap_is_single_operand): New function.
8133 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8134 probes' arguments parser.
8135 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8136 * stap-probe.c: New file, for SystemTap probe support.
8137 * stap-probe.h: Likewise.
8138 * symfile.h: Include `gdb_vecs.h'.
8139 (struct sym_probe_fns): New struct.
8140 (struct sym_fns) <sym_probe_fns>: New field.
8141 * symtab.c (init_sal): Initialize `probe' field.
8142 * symtab.h (struct probe): Forward declaration.
8143 (struct symtab_and_line) <probe>: New field.
8144 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8145 locations.
8146 (stop_tracing): Likewise.
8147 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8148
22d2b532
SDJ
81492012-04-27 Sergio Durigan Junior <[email protected]>
8150 Tom Tromey <[email protected]>
8151
8152 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8153 and to compile agent expressions.
8154 * infrun.c (siginfo_make_value): New argument `ignore'.
8155 (siginfo_funcs): New struct.
8156 (_initialize_infrun): New argument when calling
8157 `create_internalvar_type_lazy'.
8158 * thread.c (thread_id_make_value): New argument `ignore'.
8159 (thread_funcs): New struct.
8160 (_initialize_thread): New argument when calling
8161 `create_internalvar_type_lazy'.
8162 * tracepoint.c (sdata_make_value): New argument `ignore'.
8163 (sdata_funcs): New struct.
8164 (_initialize_tracepoint): New argument when calling
8165 `create_internalvar_type_lazy'.
8166 * value.c (make_value): New struct.
8167 (create_internalvar_type_lazy): New argument `data'.
8168 (compile_internalvar_to_ax): New function.
8169 (value_of_internalvar): Properly handling `make_value' case.
8170 (clear_internalvar): Likewise.
8171 (show_convenience): Adding `TRY_CATCH' block.
8172 * value.h (internalvar_make_value): Delete, replace by...
8173 (struct internalvar_funcs): ... this.
8174 (create_internalvar_type_lazy) <fun>: Delete argument.
8175 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8176 (compile_internalvar_to_ax): New function.
8177 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8178 (tlb_funcs): New struct.
8179 (_initialize_windows_tdep): New argument when calling
8180 `create_internalvar_type_lazy'.
8181
91da1414
MW
81822012-04-27 Mark Wielaard <[email protected]>
8183
8184 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8185 see whether it is an address or a constant offset from DW_AT_low_pc.
8186 (dwarf2_record_block_ranges): Likewise.
8187 (read_partial_die): Likewise.
8188
4ab9d8ec
MW
81892012-04-26 Mark Wielaard <[email protected]>
8190
8191 * MAINTAINERS (Write After Approval): Add myself to the list.
8192
a0911fd0
MR
81932012-04-26 Maciej W. Rozycki <[email protected]>
8194
8195 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8196 (proc_prettyprint_signal): Likewise.
8197 (proc_prettyprint_faultset): Likewise.
8198 (proc_prettyprint_fault): Likewise.
8199 (proc_prettyprint_actionset): Likewise.
8200 (proc_prettyprint_flags): Move to new proc-flags.c section.
8201 (proc_prettyfprint_flags): New prototype.
8202 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8203 (proc_syscall, proc_cursig): Likewise.
8204 (proc_set_kill_on_last_close): Likewise.
8205 (proc_unset_kill_on_last_close): Likewise.
8206 (proc_set_watchpoint): Make static.
8207 (proc_delete_dead_threads): Likewise.
8208 (procfs_set_watchpoint): Likewise.
8209 (_initialize_procfs): Add prototype.
8210 * proc-events.c: Include proc-utils.h.
8211 (init_syscall_table): Make static.
8212 * proc-api.c (_initialize_proc_api): Add prototype.
8213 * proc-flags.c: Include proc-utils.h.
8214
9009e1ae
MR
82152012-04-26 Maciej W. Rozycki <[email protected]>
8216
8217 * configure.ac: Add AC_ARG_PROGRAM.
8218 * configure: Regenerate.
8219
4fae6e18
JK
82202012-04-26 Jan Kratochvil <[email protected]>
8221
8222 Fix DW_AT_lower_bound defaults for DWARF-4+.
8223 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8224 high. New variable low_default_is_valid. Implement DWARF-4+
8225 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8226 no default by the DWARF standard.
8227
14132e89 82282012-04-26 Maciej W. Rozycki <[email protected]>
f782ad9b 8229 Maciej W. Rozycki <[email protected]>
14132e89
MR
8230
8231 * infrun.c (handle_inferior_event): Move the check for return
8232 trampolines ahead of the check for function trampolines.
8233 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8234 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8235 (mips_str_mips16_ret_stub): Likewise.
8236 (mips_str_call_fp_stub): Likewise.
8237 (mips_str_call_stub): Likewise.
8238 (mips_str_fn_stub): Likewise.
8239 (mips_str_pic): Likewise.
8240 (mips_in_frame_stub): New function.
8241 (mips_unwind_pc): Return the return address rather than the PC
8242 if the PC of an intermediate frame is inside a call thunk.
8243 (mips_is_stub_suffix): New function.
8244 (mips_is_stub_mode): Likewise.
8245 (mips_get_mips16_fn_stub_pc): Likewise.
8246 (mips_skip_mips16_trampoline_code): Update to handle all the
8247 currently generated stub types. Don't recurse into __fn_stub
8248 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8249 Use cooked register accesses.
8250 (mips_in_return_stub): Reintroduce function.
8251 (mips_skip_trampoline_code): Traverse trampolines recursively.
8252 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8253
518f0db5 82542012-04-26 Joel Brobecker <[email protected]>
8255
8256 GDB 7.4.1 released.
8257
3184d3f9
JL
82582012-04-26 Jonathan Larmour <[email protected]>
8259
8260 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8261 * features/arm-with-m-vfp-d16.xml: New file. Describes
8262 Cortex-M with VFPv4-sp-d16 FPU register layout.
8263 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8264 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8265 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8266 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8267 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8268
b6201d44
DE
82692012-04-25 Doug Evans <[email protected]>
8270
8271 * cli/cli-decode.c (print_doc_line): Use stream instead of
8272 current_uiout.
8273
4e2f8df6
SDJ
82742012-04-25 Sergio Durigan Junior <[email protected]>
8275
8276 * features/arm-with-iwmmxt.c: Regenerate.
8277 * features/arm-with-m-fpa-layout.c: Likewise.
8278 * features/arm-with-m.c: Likewise.
8279 * features/arm-with-neon.c: Likewise.
8280 * features/arm-with-vfpv2.c: Likewise.
8281 * features/arm-with-vfpv3.c: Likewise.
8282 * features/mips-dsp-linux.c: Likewise.
8283 * features/mips-linux.c: Likewise.
8284 * features/mips64-dsp-linux.c: Likewise.
8285 * features/mips64-linux.c: Likewise.
8286 * features/s390-linux32.c: Likewise.
8287 * features/s390-linux32v1.c: Likewise.
8288 * features/s390-linux32v2.c: Likewise.
8289 * features/s390-linux64.c: Likewise.
8290 * features/s390-linux64v1.c: Likewise.
8291 * features/s390-linux64v2.c: Likewise.
8292 * features/s390x-linux64.c: Likewise.
8293 * features/s390x-linux64v1.c: Likewise.
8294 * features/s390x-linux64v2.c: Likewise.
8295 * features/tic6x-c62x-linux.c: Likewise.
8296 * features/tic6x-c62x.c: Likewise.
8297 * features/tic6x-c64x-linux.c: Likewise.
8298 * features/tic6x-c64x.c: Likewise.
8299 * features/tic6x-c64xp-linux.c: Likewise.
8300 * features/tic6x-c64xp.c: Likewise.
8301 * target-descriptions.c: Only generate `field_type' and `type'
8302 variables when needed.
8303
2def3e66
JB
83042012-04-25 Fredrik Hederstierna <[email protected]>
8305
8306 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8307
a766d390
DE
83082012-04-25 Doug Evans <[email protected]>
8309
8310 Initial pass at Go language support.
8311 * NEWS: Mention Go.
8312 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8313 go-valprint.c.
8314 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8315 (YYFILES): Add go-exp.c.
8316 (YYOBJ): Add go-exp.o.
8317 (local-maintainer-clean): Delete go-exp.c.
8318 * defs.h (enum language): Add language_go.
8319 * dwarf2read.c: #include "go-lang.h".
8320 (fixup_go_packaging): New function.
8321 (process_full_comp_unit): Call it when processing Go CUs.
8322 (dwarf2_physname): Add Go support.
8323 (read_file_scope): Handle missing language spec for GNU Go.
8324 (set_cu_language): Handle DW_LANG_Go.
8325 * go-exp.y: New file.
8326 * go-lang.h: New file.
8327 * go-lang.c: New file.
8328 * go-typeprint.c: New file.
8329 * go-valprint.c: New file.
8330 * symtab.c: #include "go-lang.h".
8331 (symbol_set_language): Handle language_go.
8332 (symbol_find_demangled_name, symbol_set_names): Ditto.
8333 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8334
4e2af517
JM
83352012-04-24 Jim Meyering <[email protected]>
8336
8337 avoid a few strncpy-induced buffer overruns
8338 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8339 fname and psargs before trying to concatenate.
8340 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8341 "name" before applying strchr.
8342
b77b7f52
SCR
83432012-04-25 Siva Chandra Reddy <[email protected]>
8344
8345 * CONTRIBUTE: Use unified diff instead of context diff when
8346 generating patches.
8347
6321c22a
MR
83482012-04-24 Maciej W. Rozycki <[email protected]>
8349
8350 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8351 code. Handle JR.HB correctly.
8352
742c84f6
MR
83532012-04-24 Maciej W. Rozycki <[email protected]>
8354
8355 * mips-tdep.c
8356 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8357 with the other MIPS16 helpers.
8358
7fc7e0c3
SDJ
83592012-04-24 Sergio Durigan Junior <[email protected]>
8360
8361 * observer.sh: Conditionally declare `args', thus cleaning up
8362 unused instances of this variable.
8363
20388dd6
YQ
83642012-04-24 Yao Qi <[email protected]>
8365
8366 Revert this patch to allow breakpoint always-inserted
8367 in record target.
8368 2011-12-05 Pedro Alves <[email protected]>
f782ad9b
AS
8369 * breakpoint.c: Include record.h.
8370 (breakpoints_always_inserted_mode): Return false when the record
8371 target is in use.
20388dd6
YQ
8372
8373 * breakpoint.c (iterate_over_bp_locations): New.
8374 * breakpoint.h: Declare.
8375 New typedef walk_bp_location_callback.
8376 * record.c (record_open): Call record_init_record_breakpoints.
8377 (record_sync_record_breakpoints): New.
8378 (record_init_record_breakpoints): New.
8379 * NEWS: Mention supporting breakpoint always-inserted mode in
8380 record target.
8381
4734f50e
MK
83822012-04-24 Marc Khouzam <[email protected]>
8383
8384 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8385 any thread.
8386
c326b90e
YQ
83872012-04-24 Yao Qi <[email protected]>
8388
8389 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8390 (is_catchpoint): ... it.
8391 (print_one_breakpoint_location): Caller update.
8392 * breakpoint.h: Update declaration.
8393
d8fb5a1e
DM
83942012-04-23 David S. Miller <[email protected]>
8395
8396 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8397
34431a2a
TT
83982012-04-23 Tom Tromey <[email protected]>
8399
8400 * buildsym.c (add_free_pendings): Remove.
8401 * buildsym.h (add_free_pendings): Remove.
8402
4568ecf9
DE
84032012-04-23 Doug Evans <[email protected]>
8404
8405 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8406 attr.u.unsnd instead of attr.u.addr.
8407 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8408 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8409 DW_FORM_ref_udata.
8410 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8411 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8412 DW_FORM_ref_udata.
8413 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8414
dca9aa3a
MR
84152012-04-23 Maciej W. Rozycki <[email protected]>
8416
8417 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8418 (mips_o32_return_value): Likewise.
8419 (mips_o64_return_value): Likewise.
8420
c8ea1972
PH
84212012-04-21 Paul Hilfinger <[email protected]>
8422
8423 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
8424 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8425 their treatment in eval.c.
c8ea1972 8426
8d1b3521
DM
84272012-04-21 David S. Miller <[email protected]>
8428
8429 * sparc-tdep.c (X_DISP10): Define.
8430 (sparc_analyze_control_transfer): Handle compare-and-branch.
8431
03145bf4
JL
84322012-04-21 Jonathan Larmour <[email protected]>
8433
8434 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8435 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8436
004159a2 84372012-04-20 Nigel Stephens <[email protected]>
f782ad9b 8438 Maciej W. Rozycki <[email protected]>
004159a2
MR
8439
8440 * mips-tdep.c (mips_float_register_p): New function.
8441 (mips_convert_register_float_case_p): Use mips_float_register_p.
8442 (mips_register_type): Likewise.
8443 (mips_print_register): Likewise.
8444 (print_gp_register_row): Likewise.
8445 (mips_print_registers_info): Likewise.
8446
7f0e6aae
MR
84472012-04-20 Shun-Yen Lu <[email protected]>
8448
8449 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8450 of mips16 symbols.
8451
bc17beea
AP
84522012-04-20 Andrew Pinski <[email protected]>
8453
8454 * MAINTAINERS (Write After Approval): Add myself to the list.
8455
1730a5a5
SDJ
84562012-04-20 Sergio Durigan Junior <[email protected]>
8457
8458 * MAINTAINERS: Update my e-mail address.
8459
38ea300a
PA
84602012-04-20 Pedro Alves <[email protected]>
8461
8462 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8463 $srcdir.
8464 * configure: Regenerate.
8465
111dfaae
SDJ
84662012-04-20 Sergio Durigan Junior <[email protected]>
8467
8468 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8469 declaration.
8470 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8471
4fb2c64a
JK
84722012-04-20 Jan Kratochvil <[email protected]>
8473
8474 Fix compilation compatibility with python-2.4
8475 * python/py-type.c (convert_field): Cast ADDRSTRING for
8476 PyObject_SetAttrString as non-const. New comment.
8477
6328eb38
TT
84782012-04-19 Tom Tromey <[email protected]>
8479
8480 * top.c (quit_target): Use all_cleanups.
8481 * main.c (captured_command_loop): Use all_cleanups.
8482 * exceptions.c (throw_exception): Use all_cleanups.
8483
c971b7fa
PA
84842012-04-19 Pedro Alves <[email protected]>
8485
8486 * Makefile.in (GNULIB_BUILDDIR): New.
8487 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8488 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8489 (CLEANDIRS). Remove gnulib/import.
8490 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8491 (all-lib): Ditto.
8492 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8493 (gnulib/import/Makefile): Replace gnulib/import with
8494 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8495 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8496 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8497 acx_configure_dir.m4.
8498 * acinclude.m4: Include acx_configure_dir.m4.
8499 * acx_configure_dir.m4: New file.
8500 * aclocal.m4: Regenerate.
a09130f9
PA
8501 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8502 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8503 (GNULIB): New variable.
8504 (GNULIB_STDINT_H): Adjust.
8505 (AC_OUTPUT): Don't output gnulib/Makefile.
8506 * gdb/defs.h: Include build-gnulib/config.h.
8507 * aclocal.m4: Regenerate.
8508 * config.in: Regenerate.
8509 * configure: Regenerate.
8510
8511 * gnulib/Makefile.in: New file.
8512 * gnulib/configure.ac: New file.
8513 * gnulib/aclocal.m4: New file.
8514 * gnulib/config.in: New file.
8515 * gnulib/configure: New file.
c971b7fa
PA
8516 * gnulib/: Re-run gnulib-tool to adjust.
8517
b10faa68
DE
85182012-04-19 Doug Evans <[email protected]>
8519
8520 * cleanups.h (struct cleanup): Move to cleanups.c.
8521 (make_cleanup_dtor_ftype): New typedef.
8522 (make_cleanup_dtor): Use it.
8523 (ALL_CLEANUPS): Replace with ...
8524 (all_cleanups): ... this. Declare. All uses updated.
8525 * cleanups.c: #include "gdb_assert.h".
8526 (sentinel_cleanup): New static global.
8527 (SENTINEL_CLEANUP): Define.
8528 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8529 (make_my_cleanup2): Assert result is non-NULL.
8530 (all_cleanups): New function.
8531 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8532 of NULL.
8533
d8c267cc
PA
85342012-04-19 Pedro Alves <[email protected]>
8535
8536 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8537 Adjust paths to gnulib imported files.
8538
809277f8
PA
85392012-04-19 Pedro Alves <[email protected]>
8540
8541 * gnulib/: Move whole directory ...
8542 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8543 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8544 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8545 (aclocal_m4_deps): Adjust.
8546 * aclocal.m4: Regenerate.
8547 * configure: Regenerate.
8548 * configure.ac: Adjust AC_OUTPUT output.
8549
aad9eab9
YQ
85502012-04-19 Yao Qi <[email protected]>
8551
8552 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8553 (vec.o): New rule.
8554 * vec.c: Move it ...
8555 * common/vec.c: ... here.
8556 * vec.h: Move it ...
8557 * common/vec.h: ... here.
8558
48fe4669
YQ
85592012-04-19 Yao Qi <[email protected]>
8560
8561 * gdb-code-style.el: New.
8562
770d76d7
PA
85632012-04-18 Pedro Alves <[email protected]>
8564
8565 Update gnulib from latest git.
8566 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8567
8568 * gnulib/Makefile.am: Update.
8569 * gnulib/dummy.c: Update.
8570 * gnulib/extra/arg-nonnull.h: Update.
8571 * gnulib/extra/c++defs.h: Update.
8572 * gnulib/extra/update-copyright: Update.
8573 * gnulib/extra/warn-on-use.h: Update.
8574 * gnulib/inttypes.in.h: Update.
8575 * gnulib/m4/00gnulib.m4: Update.
8576 * gnulib/m4/extensions.m4: Update.
8577 * gnulib/m4/gnulib-cache.m4: Update.
8578 * gnulib/m4/gnulib-common.m4: Update.
8579 * gnulib/m4/gnulib-comp.m4: Update.
8580 * gnulib/m4/gnulib-tool.m4: Update.
8581 * gnulib/m4/include_next.m4: Update.
8582 * gnulib/m4/inttypes-pri.m4: Update.
8583 * gnulib/m4/inttypes.m4: Update.
8584 * gnulib/m4/longlong.m4: Update.
8585 * gnulib/m4/memchr.m4: Update.
8586 * gnulib/m4/memmem.m4: Update.
8587 * gnulib/m4/mmap-anon.m4: Update.
8588 * gnulib/m4/multiarch.m4: Update.
8589 * gnulib/m4/onceonly.m4: Update.
8590 * gnulib/m4/stddef_h.m4: Update.
8591 * gnulib/m4/stdint.m4: Update.
8592 * gnulib/m4/string_h.m4: Update.
8593 * gnulib/m4/warn-on-use.m4: Update.
8594 * gnulib/m4/wchar_h.m4: Update.
8595 * gnulib/m4/wchar_t.m4: Update.
8596 * gnulib/m4/wint_t.m4: Update.
8597 * gnulib/memchr.c: Update.
8598 * gnulib/memmem.c: Update.
8599 * gnulib/stddef.in.h: Update.
8600 * gnulib/stdint.in.h: Update.
8601 * gnulib/str-two-way.h: Update.
8602 * gnulib/string.in.h: Update.
8603 * gnulib/wchar.in.h: Update.
8604
8605 * gnulib/extra/arg-nonnull.h: Delete.
8606 * gnulib/extra/c++defs.h: Delete.
8607 * gnulib/extra/warn-on-use.h: Delete.
8608 * gnulib/m4/wchar_h.m4: Delete.
8609 * gnulib/m4/wint_t.m4: Delete.
8610 * gnulib/wchar.in.h: Delete.
8611
8612 * gnulib/extra/snippets/arg-nonnull.h: New.
8613 * gnulib/extra/snippets/c++defs.h: New.
8614 * gnulib/extra/snippets/warn-on-use.h: New.
8615
8616 * aclocal.m4: Regenerate.
8617 * config.in: Regenerate.
8618 * configure: Regenerate.
8619 * gnulib/Makefile.in: Regenerate.
8620
174e088e
PA
86212012-04-18 Pedro Alves <[email protected]>
8622
8623 Reimport the update-copyright module from gnulib
8624 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8625
8626 * configure: Regenerate.
8627 * gnulib/Makefile.am: Update.
8628 * gnulib/Makefile.in: Regenerate.
8629 * gnulib/extra/update-copyright: Update.
8630 * gnulib/m4/gnulib-cache.m4: Update.
8631 * gnulib/m4/gnulib-comp.m4: Update.
8632
7f533142
JB
86332012-04-18 Tristan Gingold <[email protected]>
8634
8635 * configure.ac (aix): Put -lpthread into libs.
8636 * configure: Regenerate.
8637
001822aa
TT
86382012-04-18 Tom Tromey <[email protected]>
8639
8640 * linespec.c (convert_linespec_to_sals): Don't use
8641 SYMBOL_OBJ_SECTION.
8642 (compare_msymbols): Arguments are minsym_and_objfile, not
8643 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8644
db026a31
PA
86452012-04-18 Pedro Alves <[email protected]>
8646
8647 Revert gnulib/ part of:
8648 2011-01-01 Joel Brobecker <[email protected]>
8649 Copyright year update in most files (performed by copyright.sh).
8650
12df843f
JK
86512012-04-18 Jan Kratochvil <[email protected]>
8652
8653 Fix 64-bit constants on 32-bit hosts.
8654 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8655 from unsigned long to ULONGEST.
8656 (read_signed_leb128): Change declaration return type from long to
8657 LONGEST.
8658 (dwarf2_const_value_attr): Change declaration parameter value from long
8659 to LONGEST.
8660 (dwarf2_compute_name): Change variable value from long to LONGEST.
8661 (read_unsigned_leb128): Change return type, variable result and some
8662 casts from unsigned long to ULONGEST.
8663 (read_signed_leb128): Change return type, variable result and some
8664 casts from long to LONGEST.
8665 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8666 value from long to LONGEST.
8667 (dwarf2_const_value): Change variable value from long to LONGEST.
8668 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8669 plongest and hex_string.
8670 * symtab.h (struct general_symbol_info): Change ivalue from long to
8671 LONGEST, remove the comment.
8672 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8673 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8674
14e75d8e
JK
86752012-04-18 Siddhesh Poyarekar <[email protected]>
8676
8677 PR symtab/7259:
8678 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8679 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
8680 (ada_discrete_type_low_bound): Fix function comment. Use
8681 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
8682 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8683 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8684 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8685 Use TYPE_FIELD_ENUMVAL.
8686 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8687 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8688 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8689 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8690 TYPE_CODE_ENUM.
8691 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8692 * dwarf2read.c (process_enumeration_scope): Likewise.
8693 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8694 field.bitpos.
8695 (class StructMainTypePrettyPrinter): Support also
8696 FIELD_LOC_KIND_ENUMVAL.
8697 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8698 TYPE_CODE_ENUM.
8699 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8700 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8701 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8702 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8703 field enumval.
8704 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8705 accommodate enumval.
8706 (struct call_site): Adjust loc_kind to accommodate enumval.
8707 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8708 (TYPE_FIELD_ENUMVAL): New macros.
8709 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8710 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8711 TYPE_CODE_ENUM.
8712 * p-typeprint.c (pascal_type_print_base): Likewise.
8713 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8714 enumval.
8715 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8716 * python/py-type.c (convert_field): New variable addrstring. Use
8717 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8718 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8719 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8720 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8721 TYPE_CODE_ENUM.
8722 * valprint.c (generic_val_print): Likewise.
8723
380bca97
DE
87242012-04-17 Doug Evans <[email protected]>
8725
dcc07052
DE
8726 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8727
380bca97
DE
8728 * dwarf2read.c: Whitespace fixes.
8729 (lookup_signatured_type): Tweak comment.
8730 (get_die_type_at_offset): Fix comment.
8731
ec92004f
JB
87322012-04-17 Joel Brobecker <[email protected]>
8733
8734 * xcoffread.c (xcoff_secnum_to_sections): New function.
8735 (secnum_to_section, secnum_to_bfd_section): Reimplement
8736 using xcoff_secnum_to_sections. Rename "secnum" parameter
8737 into "n_scnum".
8738 (RECORD_MINIMAL_SYMBOL): Delete.
8739 (record_minimal_symbol): New function.
8740 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8741 by call to record_minimal_symbol and set misc_func_recorded
8742 to 1. Set last_csect_sec to the XCOFF section index instead
8743 of GDB's section_offset index. Update calls to
8744 prim_record_minimal_symbol_and_info to pass the BFD section
8745 as well.
8746
40301fb7
JB
87472012-04-17 Joel Brobecker <[email protected]>
8748
8749 * xcoffread.c (read_xcoff_symtab): Delete variables
8750 last_csect_val and last_csect_sec and associated code.
8751
e0088cfd
DE
87522012-04-17 Doug Evans <[email protected]>
8753
58d5e2c3
DE
8754 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8755 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8756 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8757 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8758
c27f5738
DE
8759 * cleanups.h: New file.
8760 * cleanups.c: New file.
8761 * Makefile.in (SFILES): Add cleanups.c.
8762 (HFILES_NO_SRCDIR): Add cleanups.h.
8763 (COMMON_OBS): Add cleanups.o.
8764 * defs.h (struct cleanup): Moved to cleanups.h.
8765 (do_cleanups,do_final_cleanups): Ditto.
8766 (discard_cleanups,discard_final_cleanups): Ditto
8767 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8768 (save_cleanups,save_final_cleanups): Ditto.
8769 (restore_cleanups,restore_final_cleanups): Ditto.
8770 (null_cleanup): Ditto.
8771 (make_my_cleanup,make_my_cleanup2): Ditto.
8772 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8773 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8774 (do_cleanups,do_final_cleanups): Ditto.
8775 (discard_cleanups,discard_final_cleanups): Ditto
8776 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8777 (save_cleanups,save_final_cleanups): Ditto.
8778 (restore_cleanups,restore_final_cleanups): Ditto.
8779 (null_cleanup): Ditto.
8780 (make_my_cleanup,make_my_cleanup2): Ditto.
8781 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8782
e0088cfd
DE
8783 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8784 make_my_cleanup.
8785 (make_cleanup_dyn_string_delete): Ditto.
8786 (make_cleanup_ui_file_delete): Ditto.
8787 (make_cleanup_ui_out_redirect_pop): Ditto.
8788 (make_cleanup_free_section_addr_info): Ditto.
8789 (make_cleanup_restore_integer): Ditto.
8790 (make_cleanup_unpush_target): Ditto.
8791 (make_cleanup_value_free_to_mark): Ditto.
8792 (make_cleanup_value_free): Ditto.
8793 (make_cleanup_free_so): Ditto.
8794
4dc84fd1
JK
87952012-04-17 Jan Kratochvil <[email protected]>
8796
8797 New option "set debug auto-load".
8798 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8799 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8800 (auto_load_safe_path_vec_update)
8801 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8802 if DEBUG_AUTO_LOAD.
8803 (file_is_auto_load_safe): New parameters debug_fmt and ....
8804 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8805 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8806 caller by explanatory string.
8807 (_initialize_auto_load): Register "set debug auto-load".
8808 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8809 and ....
8810 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8811 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8812 by explanatory string.
8813 * main.c (captured_main): Likewise.
8814 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8815 (source_section_scripts): Likewise.
8816
bccbefd2
JK
88172012-04-17 Jan Kratochvil <[email protected]>
8818
8819 New option "set auto-load safe-path".
8820 * NEWS: New commands "set auto-load safe-path"
8821 and "show auto-load safe-path".
8822 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8823 (auto_load_safe_path, auto_load_safe_path_vec)
8824 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8825 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8826 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8827 (source_gdb_script_for_objfile): New variable is_safe. Call
8828 file_is_auto_load_safe. Return if it is not.
8829 (struct loaded_script): New field loaded.
8830 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8831 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8832 output "Missing" to "No".
8833 (_initialize_auto_load): New variable cmd. Initialize
8834 auto_load_safe_path. Register "set auto-load safe-path",
8835 "show auto-load safe-path" and "add-auto-load-safe-path".
8836 * auto-load.h (maybe_add_script): Add parameter loaded.
8837 (file_is_auto_load_safe): New declaration.
8838 * config.in: Regenerate.
8839 * configure: Regenerate.
8840 * configure.ac: New parameters --with-auto-load-safe-path
8841 and --without-auto-load-safe-path.
8842 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8843 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8844 * main.c (captured_main): Check file_is_auto_load_safe for
8845 LOCAL_GDBINIT.
8846 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8847 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8848 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8849 not.
8850
bf88dd68
JK
88512012-04-17 Jan Kratochvil <[email protected]>
8852
8853 auto-load: Implementation.
8854 * NEWS: New descriptions for "info auto-load",
8855 "info auto-load gdb-scripts", "info auto-load python-scripts",
8856 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8857 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8858 and "show auto-load-scripts". New description for "set auto-load",
8859 "show auto-load", "set auto-load gdb-scripts",
8860 "show auto-load gdb-scripts", "set auto-load python-scripts",
8861 "show auto-load python-scripts", "set auto-load local-gdbinit",
8862 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8863 "show auto-load libthread-db".
8864 * auto-load.c: Remove include python/python-internal.h. Add includes
8865 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8866 cli/cli-setshow.h.
8867 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8868 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8869 (gdbpy_global_auto_load): Rename to ...
8870 (global_auto_load): ... here.
8871 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8872 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8873 (script_language_gdb, source_gdb_script_for_objfile): New.
8874 (struct loaded_script): New field language.
8875 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8876 LANGUAGE.
8877 (maybe_add_script): Add parameter language. Drop redundant
8878 entry.full_path initialization. Initialize entry.language and
8879 (*slot)->language.
8880 (auto_load_objfile_script): Change parameter suffix to language.
8881 Remove the call of maybe_add_script.
8882 Call language->source_script_for_objfile.
8883 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8884 New.
8885 (collect_matching_scripts): Adjust it for
8886 struct collect_matching_scripts_data.
8887 (auto_load_info_scripts_pattern_nl): New variable.
8888 (info_auto_load_scripts): Rename to ...
8889 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8890 for struct collect_matching_scripts_data.
8891 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8892 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8893 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8894 (auto_load_info_cmdlist_get): New.
8895 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8896 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8897 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8898 "info auto-load local-gdbinit".
8899 * auto-load.h (struct script_language): New.
8900 (gdbpy_global_auto_load): Rename to ...
8901 (global_auto_load): ... here.
8902 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8903 (auto_load_local_gdbinit_loaded): New declarations.
8904 (maybe_add_script): New parameter language.
8905 (auto_load_objfile_script): Change parameter suffix to language.
8906 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8907 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8908 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8909 declarations.
8910 * linux-thread-db.c: Include auto-load.h and ctype.h.
8911 (auto_load_thread_db, show_auto_load_thread_db): New.
8912 (struct thread_db_info): New field filename.
8913 (delete_thread_db_info): Call xfree for FILENAME.
8914 (try_thread_db_load): Initialize FILENAME.
8915 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8916 if !AUTO_LOAD_THREAD_DB.
8917 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8918 (_initialize_thread_db): Install auto_load_thread_db
8919 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8920 as "info auto-load libthread-db".
8921 * main.c (captured_main): Rename gdbpy_global_auto_load to
8922 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8923 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8924 (print_gdb_help): Extend the help for 'local init file'.
8925 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8926 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8927 (auto_load_scripts): Rename to ...
8928 (auto_load_python_scripts): ... here, update the comment.
8929 (gdbpy_load_auto_script_for_objfile): New declaration.
8930 (show_auto_load_python_scripts, script_language_python)
8931 (gdbpy_load_auto_script_for_objfile): New.
8932 (source_section_scripts): Refactor the code.
8933 (load_auto_scripts_for_objfile): Rename to ...
8934 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8935 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8936 (info_auto_load_python_scripts): New.
8937 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8938 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8939 Register "set auto-load-scripts" as its deprecated alias. Register
8940 "info auto-load python-scripts". Register "info auto-load-scripts" as
8941 its deprecated alias.
8942 (load_auto_scripts_for_objfile): Rename to ...
8943 (gdbpy_load_auto_scripts_for_objfile): ... here.
8944 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8945 (gdbpy_load_auto_scripts_for_objfile): ... here.
8946
e2207b9a
JK
89472012-04-17 Jan Kratochvil <[email protected]>
8948
8949 auto-load: Move files.
8950 * Makefile.in (SFILES): Add auto-load.c.
8951 (HFILES_NO_SRCDIR): Add auto-load.h.
8952 (COMMON_OBS): Add auto-load.o.
8953 (distclean): Change .gdbinit for gdb-gdb.gdb.
8954 * auto-load.c: New file, with parts from python/py-auto-load.c.
8955 * auto-load.h: New file, with parts from python/python.h.
8956 * configure: Regenerate.
8957 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8958 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8959 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8960 * main.c: Include auto-load.h.
8961 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8962 command.h, observer.h and progspace.h to auto-load.c. Add include
8963 auto-load.h.
8964 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8965 (struct loaded_script, auto_load_pspace_data)
8966 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8967 (hash_loaded_script_entry, eq_loaded_script_entry)
8968 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8969 (maybe_add_script): Move to auto-load.c.
8970 (source_section_scripts): Change maybe_add_script parameters passing,
8971 use script_not_found_warning_print.
8972 (clear_section_scripts, auto_load_objfile_script)
8973 (auto_load_new_objfile, loaded_script_ptr)
8974 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8975 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8976 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8977 auto_load_new_objfile and info_auto_load_scripts initizations to
8978 auto-load.c.
8979 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8980
e4ab2fad
JK
89812012-04-17 Jan Kratochvil <[email protected]>
8982
8983 Code cleanup.
8984 * charset.c (find_charset_names): Remove variables ix and elt.
8985 Use free_char_ptr_vec.
8986 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8987 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8988 debugdir_end. New variable debugdir_len.
8989 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8990 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8991 declarations.
8992 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8993 and elt. Use free_char_ptr_vec.
8994 * source.c (add_path): Remove variables argv, arg and argv_index.
8995 New variables dir_vec, back_to, ix and name.
8996 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8997 make_cleanup_freeargv. Remove variable separator. Simplify the code
8998 no longer expecting DIRNAME_SEPARATOR.
8999 (openp): Remove variable p, p1 and len. New variables dir_vec,
9000 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
9001 no longer expecting DIRNAME_SEPARATOR.
9002 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
9003 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
9004 debugdir_end.
9005 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
9006 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
9007 (dirnames_to_char_ptr_vec): New functions.
9008
5ee4ed9f
JK
90092012-04-17 Jan Kratochvil <[email protected]>
9010
9011 Code cleanup.
9012 * source.c (add_path): Remove always true conditional 'p == 0' and
9013 unindent its code block.
9014
f41f5e61
PA
90152012-04-17 Pedro Alves <[email protected]>
9016
9017 * gdbtypes.h (FIELD_BITPOS): Rename to ...
9018 (FIELD_BITPOS_LVAL): ... this.
9019 (FIELD_BITPOS): New.
9020 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
9021 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
9022 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
9023 SET_FIELD_BITPOS.
9024 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
9025 SET_FIELD_BITPOS.
9026 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
9027 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
9028 * target-descriptions.c (tdesc_gdb_type): Adjust to use
9029 SET_FIELD_BITPOS.
9030
945b3a32
JK
90312012-04-17 Jan Kratochvil <[email protected]>
9032
9033 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
9034 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
9035 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
9036 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
9037 * jv-lang.c (java_link_class_type): Likewise, once.
9038 * stabsread.c (read_enum_type): Likewise.
9039
42476b70
YQ
90402012-04-16 Yao Qi <[email protected]>
9041
9042 * common/agent.c (agent_run_command): Add one more parameter `len'.
9043 Update callers.
9044 * common/agent.h: Update declaration.
9045 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9046 Update.
9047 (linux_child_static_tracepoint_markers_by_strid): Ditto.
9048
8264ba82
AG
90492012-04-14 Anton Gorenkov <[email protected]>
9050
9051 PR mi/13393
9052 * value.c (value_actual_type): New function.
9053 * value.h (value_actual_type): New declaration.
9054 * varobj.c (update_type_if_necessary): New function.
9055 (varobj_create): Call value_actual_type instead of
9056 value_type.
9057 (install_dynamic_child): distinct changed and type changed MI variable
9058 objects.
9059 (update_dynamic_varobj_children): Updated for install_dynamic_child
9060 change. All callers updated.
a09130f9 9061 (varobj_update): Support for MI variable object type change if
8264ba82
AG
9062 the value changed and RTTI is used to determine the type.
9063 (create_child_with_value): Call value_actual_type instead of
9064 value_type.
a09130f9 9065 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
9066 specify whether the given value should be casted to enclosing type.
9067 All callers updated.
9068
55a8c076
YQ
90692012-04-14 Yao Qi <[email protected]>
9070
9071 Import gnulib module inttypes from git
9072 (250b80067c1e1d8faa0c42fb572f721975b929c5)
9073 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
9074 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
9075 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
9076 * aclocal.m4, config.in, configure: Regenerated.
9077 * gnulib/Makefile.am: Update.
9078 * gnulib/Makefile.in: Update.
9079 * gnulib/m4/gnulib-cache.m4: Update.
9080 * gnulib/m4/gnulib-comp.m4: Update.
9081 * gnulib/inttypes.in.h: New.
9082 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 9083 * gnulib/m4/inttypes.m4: New.
55a8c076 9084
ca7781d2
LM
90852012-04-13 Luis Machado <[email protected]>
9086
9087 * infrun.c (resume): Update PC address to the real PC after
9088 preparing to do displaced stepping.
9089
e319fa28
DE
90902012-04-12 Doug Evans <[email protected]>
9091
9092 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9093 All callers updated.
9094
15add3f5
MK
90952012-04-12 Mark Kettenis <[email protected]>
9096
9097 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9098
52dc124a
DE
90992012-04-12 Doug Evans <[email protected]>
9100
0e50663e
DE
9101 * dwarf2read.c (create_all_type_units): Renamed from
9102 create_debug_types_hash_table. All callers updated.
9103
52dc124a
DE
9104 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9105 local type_sig to sig_type, type_offset to type_offset_in_tu.
9106 (hash_signatured_type): Renamed from hash_type_signature,
9107 all callers updated.
9108 (eq_signatured_type): Renamed from eq_type_signature,
9109 all callers updated.
9110 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9111 (process_enumeration_scope): Ditto.
9112 (lookup_signatured_type_at_offset): Ditto.
9113 (load_full_type_unit, read_signatured_type): Ditto.
9114
248fd3bf
YQ
91152012-04-12 Yao Qi <[email protected]>
9116
9117 * remote.c (async_remote_interrupt): Correct function name in
9118 debug message.
9119 (async_remote_interrupt_twice): Ditto.
9120
bc3aa6c3
DE
91212012-04-11 Yuanhui Zhang <[email protected]>
9122
9123 * source.c (find_and_open_source): Consistently pass resulting
9124 full path through xfullpath.
9125
9e529e1d
JK
91262012-04-11 Jan Kratochvil <[email protected]>
9127
9128 Provide more specific displaced-stepping memory error message.
9129 * infrun.c (displaced_step_prepare): New variable status. Call
9130 target_read_memory instead of read_memory, provide more specific
9131 error message.
9132
82e0cec1
TG
91332012-04-11 Tristan Gingold <[email protected]>
9134
9135 PR gdb/13901
9136 * darwin-nat.c (darwin_execvp): Revert previous patch.
9137
d987a266
TG
91382012-04-11 Tristan Gingold <[email protected]>
9139
9140 PR gdb/13901
9141 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9142 in case of change.
9143
016b7430
TG
91442012-04-11 Tristan Gingold <[email protected]>
9145
9146 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9147 warning.
9148
06fc020f
SCR
91492012-04-11 Siva Chandra Reddy <[email protected]>
9150
9151 New command 'explore' which helps explore values and types in
9152 scope.
9153 * NEWS: Add an entry about the new 'explore' command.
9154 * data-directory/Makefile.in: Add gdb/command/explore.py
9155 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 9156 command using the GDB Python API.
06fc020f 9157
de0919f8 91582012-04-10 Maciej W. Rozycki <[email protected]>
34b192ce
MR
9159
9160 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9161 extension in jump target calculation.
9162
de0919f8 91632012-04-10 Maciej W. Rozycki <[email protected]>
9e8da49c
MR
9164
9165 * mips-tdep.c (mips32_next_pc): Handle JALX.
9166
2f26ef89
YQ
91672012-04-10 Yao Qi <[email protected]>
9168
9169 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9170
2e505b66
YQ
91712012-04-10 Yao Qi <[email protected]>
9172
9173 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9174 and gnulib/m4/gnulib-tool.m4.
9175
0d99eb77
DE
91762012-04-10 Doug Evans <[email protected]>
9177
9178 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9179 (load_partial_dies): Clarify comment.
9180 (find_partial_die): Support rereading type units.
9181 Clarify CU handling, if we know offset is in CU, don't search for the
9182 containing CU. Add comment regarding memory waste.
9183
9a82b8ff
L
91842012-04-10 H.J. Lu <[email protected]>
9185
9186 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9187 i386/x32-avx and i386/x32-avx-linux.
9188 (i386/x32-expedite): New.
9189 (i386/x32-linux-expedite): Likewise.
9190 (i386/x32-avx-expedite): Likewise.
9191 (i386/x32-avx-linux-expedite): Likewise.
9192 ($(outdir)/i386/x32.dat): Likewise.
9193 ($(outdir)/i386/x32-linux.dat): Likewise.
9194 ($(outdir)/i386/x32-avx.dat): Likewise.
9195 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9196
9197 * features/i386/x32-avx-linux.xml: New file.
9198 * features/i386/x32-avx.xml: Likewise.
9199 * features/i386/x32-core.xml: Likewise.
9200 * features/i386/x32-linux.xml: Likewise.
9201 * features/i386/x32.xml: Likewise.
9202
9203 * features/i386/x32-avx-linux.c: New. Generated.
9204 * features/i386/x32-avx.c: Likewise.
9205 * features/i386/x32-linux.c: Likewise.
9206 * features/i386/x32.c: Likewise.
9207 * regformats/i386/x32-avx-linux.dat: Likewise.
9208 * regformats/i386/x32-avx.dat: Likewise.
9209 * regformats/i386/x32-linux.dat: Likewise.
9210 * regformats/i386/x32.dat: Likewise.
9211
ee41036f
TG
92122012-04-10 Tristan Gingold <[email protected]>
9213
9214 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9215 code to kill the inferior.
9216
a7aa5b8a
MK
92172012-04-09 Mark Kettenis <[email protected]>
9218
9219 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9220 defines.
9221 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9222 defines.
a09130f9 9223 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
9224 (yyvsp): New defines.
9225 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9226 defines.
9227 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9228 defines.
9229 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9230 defines.
9231 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9232 defines.
9233 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9234 defines.
9235
fb57d452
MK
92362012-04-09 Mark Kettenis <[email protected]>
9237
a09130f9 9238 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
9239 (sparc64_store_arguments): Fix coding style.
9240
cdc7b32f
MK
92412012-04-07 Mark Kettenis <[email protected]>
9242
9243 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9244 complex floats, adjust some related comments and tighten a related
9245 assertion.
9246 (sparc64_extract_return_value): Handle complex floats.
9247
7adf1e79
DE
92482012-04-07 Doug Evans <[email protected]>
9249
9250 * dwarf2read.c (load_partial_dies): Change condition to assert.
9251
50f1ae7b
DE
92522012-04-06 Doug Evans <[email protected]>
9253
9254 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9255 "mov %rsp,%rbp".
9256
55fa75c3
KB
92572012-04-05 Kevin Buettner <[email protected]>
9258
9259 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9260 fencepost error.
9261 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9262 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9263 architecture.
9264
40e084e1
KS
92652012-04-05 Keith Seitz <[email protected]>
9266
9267 * linespec.c (decode_compound): Remove.
9268 (enum offset_relative_sign): New enum.
9269 (struct line_offset): New struct.
9270 (struct linespec): New struct.
9271 (struct linespec_state): Move file_symtabs,
9272 user_filename, and user_function into struct linespec.
9273 Make result an anonymous struct holding vectors of
9274 symbolp and minsym_and_objfile_d.
9275 Add language member.
9276 (enum ls_token_type): New enum.
9277 (linespec_keywords): New array.
9278 (struct ls_token): New struct.
9279 (struct ls_parser): New struct.
9280 (linespec_lexer_lex_number): New function.
9281 (linespec_lexer_lex_keyword): New function.
9282 (is_ada_operator): New function.
9283 (skip_quote_char): New function.
9284 (copy_token_string): New function.
9285 (is_closing_quote_enclosed): New function.
9286 (find_parameter_list_end): New function.
9287 (linespec_lexer_lex_string): New function.
9288 (linespec_lexer_lex_one): New function.
9289 (linespec_lexer_consume_token): New function.
9290 (linespec_lexer_peek_token): New function.
9291 (cplusplus_error): Remove unused function.
9292 (find_methods): Update comment.
9293 (find_toplevel_char): Return const.
9294 (is_objc_method_format): Remove unused function.
9295 (find_toplevel_string): New function.
9296 (is_linespec_boundary): Remove.
9297 (symbol_not_found_error): New function.
9298 (find_method_overload_end): Remove function.
9299 (unexpected_linespec_error): New function.
9300 (keep_name_info): Remove.
9301 (linespec_parse_line_offset): New function.
9302 (linespec_parse_basic): New function.
9303 (canonicalize_linespec): New function.
9304 (decode_line_internal): Remove.
9305 (create_sals_line_offset): New function adapted from
9306 decode_all_digits.
9307 (convert_linespec_to_sals): New function.
9308 (parse_linespec): New function.
9309 (linespec_parser_new): New function.
9310 (linespec_state_destructor): Change parameter type to
9311 struct linespec_state *.
9312 Add language parameter.
9313 Remove freeing of moved members.
9314 (linespec_parser_delete): New function.
9315 (decode_line_full): Use parse_linespec and linespec_parser_new.
9316 (decode_line_1): Likewise.
9317 (decode_indirect): Rename to ...
9318 (linespec_expression_to_pc): ... this and rewrite
9319 to simply find CORE_ADDR, storing this result for later
9320 conversion to SALs.
9321 (locate_first_half): Remove.
9322 (deocde_objc): Add parameter LS.
9323 Initialize new struct collect_info members.
9324 Handle minimal symbols, too.
9325 (decode_compound): Delete.
9326 (lookup_prefix_sym): Rewrite.
9327 (compare_msymbols): New function.
9328 (find_method): Rewrite.
9329 Do not call cplusplus_error.
9330 (symtabs_from_filename): Rewrite.
9331 (collect_function_symbols): Delete.
9332 (find_function_symbols): Rewrite without ARGPTR-style
9333 processing.
9334 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9335 (decode_dollar): Adapted and renamed to ...
9336 (linespec_parse_variable): ... this.
9337 (find_linespec_symbols): New function.
9338 (decode_label): Adapted and renamed to ...
9339 (find_label_symbols): ... this.
9340 (decode_digits_list_mode): Add and use LS argument.
9341 (decode_digits_ordinary): Likewise.
9342 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9343 If in list mode, allow any symbol class. Otherwise, only
9344 permit LOC_BLOCK symbols.
9345 (minsym_found): Update comments.
9346 (search_minsyms_for_name): Do not convert the matching symbol
9347 into a SAL. Simply push the symbol and objfile into the
9348 result vector.
9349 (decode_variable): Delete. Contents adapted into
9350 find_linespec_symbols.
9351
9352 * cp-support.c (SKIP_SPACE): Remove.
9353 (operator_tokens): Remove unused global.
9354 (cp_validate_operator): Remove.
9355 * cp-support.h (cp_validate_operator): Remove declaration.
9356
a72c8f6a
JK
93572012-04-03 Jan Kratochvil <[email protected]>
9358
9359 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9360 for TYPE_VPTR_FIELDNO.
9361 * valprint.c (valprint_check_validity): Make it global, move the
9362 function comment ...
9363 * value.h (valprint_check_validity): ... to this new declaration.
9364
cf9bb588
TG
93652012-04-02 Tristan Gingold <[email protected]>
9366
9367 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9368 the STATE32 api for i386 state.
9369 (i386_darwin_store_inferior_registers): Likewise.
9370
17092398
TG
93712012-04-02 Tristan Gingold <[email protected]>
9372
9373 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9374 SS offset.
9375 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9376 format_string.
9377
ece0061f
TG
93782012-04-02 Tristan Gingold <[email protected]>
9379
9380 PR gdb/13901
d987a266 9381 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 9382
cf65ecd3
JK
93832012-04-02 Jan Kratochvil <[email protected]>
9384
9385 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9386
9bc3523d
TT
93872012-03-30 Tom Tromey <[email protected]>
9388
9389 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9390 of TRY_CATCH. Fix error handling.
9391 * python/py-value.c (convert_value_from_python): Move 'old'
9392 declaration to innermost scope.
9393
b1ed564a
JB
93942012-03-29 Joel Brobecker <[email protected]>
9395 Andrey Smirnov <[email protected]>
9396
9397 -Wshadow warning fix.
9398 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9399 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9400 Adjust code accordingly.
9401
cb8e9b97
JB
94022012-03-29 Joel Brobecker <[email protected]>
9403
9404 * ada-lang.c (symbol_completion_add): Rename parameter
9405 "encoded" into "encoded_p". Ajust code and documentation
9406 accordingly.
9407
c0af1706
JB
94082012-03-29 Joel Brobecker <[email protected]>
9409 Andrey Smirnov <[email protected]>
9410
9411 -Wshadow warning fix.
9412 * ada-lang.c (symbol_completion_add): Rename parameter
9413 "wild_match" into wild_match_p. Update code and documentation
9414 accordingly.
9415
6ea35997
JB
94162012-03-29 Joel Brobecker <[email protected]>
9417
9418 * ada-lang.c (symbol_completion_match): Rename parameter
9419 "encoded" into "encoded_p". Ajust code and documentation
9420 accordingly.
9421
e701b3c0
JB
94222012-03-29 Joel Brobecker <[email protected]>
9423 Andrey Smirnov <[email protected]>
9424
9425 -Wshadow warning fix.
9426 * ada-lang.c (symbol_completion_match): Rename parameter
9427 "wild_match" into "wild_match_p". Adjust code and function
9428 documentation accordingly.
9429
5e2336be
JB
94302012-03-29 Joel Brobecker <[email protected]>
9431 Andrey Smirnov <[email protected]>
9432
9433 -Wshadow warning fix.
9434 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9435 "symbol_info" into "info". Adjust code accordingly.
9436 (ada_lookup_symbol): Likewise.
9437
9f88c959
JB
94382012-03-29 Joel Brobecker <[email protected]>
9439
9440 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9441 of this function's documentation.
9442
82ccd55e
JB
94432012-03-29 Joel Brobecker <[email protected]>
9444 Andrey Smirnov <[email protected]>
9445
9446 -Wshadow warning fix.
9447 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9448 variable into "wild_match_p". Adjust code accordingly.
9449
d0a8ab18
JB
94502012-03-29 Joel Brobecker <[email protected]>
9451 Andrey Smirnov <[email protected]>
9452
9453 -Wshadow warning fix.
9454 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9455 parameter into "wild_match_p". Adjust code accordingly.
9456 Document this parameter in the function description.
9457
48b78332
JB
94582012-03-29 Joel Brobecker <[email protected]>
9459 Andrey Smirnov <[email protected]>
9460
9461 -Wshadow warning fix.
9462 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9463 "wild_match" parameter to "wild_match_p" (-Wshadow).
9464
2e6e0353
JB
94652012-03-29 Joel Brobecker <[email protected]>
9466
9467 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9468 in function documentation.
9469
dc4024cd
JB
94702012-03-29 Joel Brobecker <[email protected]>
9471 Andrey Smirnov <[email protected]>
9472
9473 -Wshadow warning fix.
9474 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9475 variable into wild_match_p. Adjust code accordingly.
9476
6c88661c
JB
94772012-03-29 Joel Brobecker <[email protected]>
9478 Andrey Smirnov <[email protected]>
9479
9480 * ada-valprint.c (ada_val_print_1): Move the code handling
9481 TYPE_CODE_ENUM inside its own lexical block. Declare
9482 variables len and val there, instead of in the function's
9483 top level block. Avoid declaring deref_val again in a way
9484 that shadows another variable of the same name declared
9485 in one of the up-level blocks. Just re-use the up-level
9486 variable instead.
9487
4e5c77fe
JB
94882012-03-29 Joel Brobecker <[email protected]>
9489
9490 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9491 Replace block_found argument by symbol_info. Adjust
9492 implementation accordingly. Add function documentation.
9493 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9494 Fix documentation.
9495 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9496 * ada-exp.y (write_object_renaming): Adjust to new
9497 ada_lookup_encoded_symbol API.
9498
1c0ac8c7
JB
94992012-03-29 Joel Brobecker <[email protected]>
9500
9501 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9502 documentation.
9503
2aaed979
KB
95042012-03-28 Rathish C <[email protected]>
9505
9506 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9507 (v850_register_name): Add the mpu and fpu register names.
9508 (v850e_register_name): Add the mpu and fpu register names.
9509 (v850e2_register_name): New function.
a09130f9 9510 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
9511 bfd_mach_v850e2v3.
9512
927fbba6
JB
95132012-03-28 Joel Brobecker <[email protected]>
9514
9515 * NEWS: Add entry for Ada varobj support.
9516
d32cafc7
JB
95172012-03-28 Joel Brobecker <[email protected]>
9518
9519 * varobj.c (default_value_is_changeable_p): New function,
9520 extracted from varobj_value_is_changeable_p. Add declaration.
9521 (ada_value_is_changeable_p): New function, extracted from
9522 varobj_value_is_changeable_p. Add declaration.
9523 (struct language_specific): New field "value_is_changeable_p".
9524 (languages): Add entries for new field.
9525 (varobj_create): Set language before calling install_new_value.
9526 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9527 "value_is_changeable_p" language callback.
9528
181875a4
JB
95292012-03-28 Joel Brobecker <[email protected]>
9530
9531 * ada-varobj.h, ada-varobj.c: New files.
9532 * Makefile.in (SFILES): Add ada-varobj.c.
9533 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9534 (COMMON_OBS): Add ada-varobj.o.
9535
7a290c40
JB
95362012-03-28 Joel Brobecker <[email protected]>
9537
9538 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9539 (struct language_specific): New field "value_has_mutated".
9540 (languages): Set field "value_has_mutated" in each entry of array.
9541 (varobj_value_has_mutated): New function.
9542 (varobj_udpdate): Add handling of type mutation.
9543 (value_of_root): Add handling of type mutation.
9544 (ada_value_has_mutated): New function.
9545
ca9b8b9c
PA
95462012-03-28 Pedro Alves <[email protected]>
9547
9548 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9549 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9550
cc0265cd
TT
95512012-03-28 Tom Tromey <[email protected]>
9552
9553 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9554 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9555 before returning.
9556
3ad2ec6f
TT
95572012-03-28 Tom Tromey <[email protected]>
9558
9559 * .dir-locals.el: New file.
9560
4a6510ba
PA
95612012-03-28 Pedro Alves <[email protected]>
9562
9563 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9564
5a75128f
JB
95652012-03-28 Joel Brobecker <[email protected]>
9566
9567 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9568 handling for r0.
9569
f99d8bf4
PA
95702012-03-27 Pedro Alves <[email protected]>
9571
9572 Eliminate struct ui_stream.
9573
9574 * ui-out.h (struct ui_stream): Delete.
9575 (ui_out_field_stream): Adjust prototype.
9576 (ui_out_stream_new, ui_out_stream_delete)
9577 (make_cleanup_ui_out_stream_delete): Delete declarations.
9578 * ui-out.c (ui_out_field_stream): Change prototype to take a
9579 ui_file instead of a ui_stream. Adjust.
9580 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9581 (make_cleanup_ui_out_stream_delete): Delete.
9582 * breakpoint.c (print_breakpoint_location)
9583 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9584 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9585 * disasm.c (dump_insns): Ditto.
9586 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9587 prototype.
9588 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9589 ui_stream/ui_out_stream_new.
9590 * infcmd.c (print_return_value): Ditto.
9591 * osdata.c (info_osdata_command): Don't allocate a local
9592 ui_stream.
9593 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9594 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9595 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9596 allocate a local ui_stream.
9597 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9598 instead of ui_stream/ui_out_stream_new.
9599 (list_args_or_locals): Don't allocate a local ui_stream.
9600 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9601 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9602 ui_stream/ui_out_stream_new.
9603 * cli/cli-setshow.c (do_setshow_command): Ditto.
9604
6350a066 96052012-03-27 Oza Pawandeep <[email protected]>
72508ac0 9606
6350a066
PA
9607 * arm-linux-tdep.c (arm_linux_init_abi): Call
9608 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9609 * arm-tdep.c (arm_process_record): New function.
9610 (deallocate_reg_mem): New function.
9611 (decode_insn): New function.
9612 (thumb_record_branch): New function.
9613 (thumb_record_ldm_stm_swi(): New function.
9614 (thumb_record_misc): New function.
9615 (thumb_record_ld_st_stack): New function.
9616 (thumb_record_ld_st_imm_offset): New function.
9617 (thumb_record_ld_st_reg_offset(): New function.
9618 (thumb_record_add_sub_cmp_mov): New function.
9619 (thumb_record_shift_add_sub): New function.
9620 (arm_record_coproc_data_proc): New function.
9621 (arm_record_coproc): New function.
9622 (arm_record_b_bl): New function.
9623 (arm_record_ld_st_multiple): New function.
9624 (arm_record_ld_st_reg_offset): New function.
9625 (arm_record_ld_st_imm_offset): New function.
9626 (arm_record_data_proc_imm): New function.
9627 (arm_record_data_proc_misc_ld_str): New function.
9628 (arm_record_extension_space): New function.
9629 (arm_record_strx): New function.
9630 (sbo_sbz): New function.
9631 (struct insn_decode_record): New structure for arm insn record.
9632 (REG_ALLOC): New macro for reg allocations.
9633 (MEM_ALLOC): New macro for memory allocations.
9634 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 9635
89e028e2
AS
96362012-03-27 Andreas Schwab <[email protected]>
9637
9638 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9639 (store_register): Likewise.
9640
6350a066 96412012-03-26 Oza Pawandeep <[email protected]>
3d9a9eb0 9642
6350a066 9643 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 9644
5b43fab2
JK
96452012-03-25 Jan Kratochvil <[email protected]>
9646
9647 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9648 Describe also the option "auto".
9649
b5453b95
RH
96502012-03-22 Richard Henderson <[email protected]>
9651
9652 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9653 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9654
227ee7fc
RH
96552012-03-22 Richard Henderson <[email protected]>
9656
9657 * jit.c (jit_read_code_entry): Compute alignment and offset of
9658 int64_t member before computing entry_size.
9659
7b282c5a
SCR
96602012-03-22 Siva Chandra Reddy <[email protected]>
9661
9662 Python scripting: Add new method Value.referenced_value to
9663 gdb.Value which can dereference pointer as well as reference
9664 values.
9665 * NEWS: Add entry under 'Python scripting' about the new method
9666 Value.referenced_value on gdb.Value objects.
9667 * python/py-value.c (valpy_referenced_value): New function
9668 defining a new method on gdb.Value objects which can dereference
9669 pointer and reference values.
9670
0c83539f
SCR
96712012-03-22 Siva Chandra Reddy <[email protected]>
9672
9673 * MAINTAINERS (Write After Approval): Add myself to the list.
9674
7ccffd7c
KB
96752012-03-21 Kevin Buettner <[email protected]>
9676
9677 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9678 in addition to "main".
9679
bd0b9f9e
JB
96802012-03-21 Joel Brobecker <[email protected]>
9681
9682 * expression.h (op_name): Add declaration.
9683 * expprint.c (op_name): Remove declaration. Make non-static.
9684 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9685
a5362b9a
TS
96862012-03-21 Thomas Schwinge <[email protected]>
9687
9688 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9689 of struct siginfo.
9690 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9691 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9692 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9693 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9694 (linux_nat_get_siginfo): Likewise.
9695 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9696 (linux_nat_get_siginfo): Likewise.
9697 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9698 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9699 * procfs.c (gdb_siginfo_t): Likewise.
9700
adcadaab
MF
97012012-03-21 Mike Frysinger <[email protected]>
9702
9703 * .gitignore: Ignore more files.
9704
e278ad5b
PA
97052012-03-20 Pedro Alves <[email protected]>
9706
9707 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9708 returns.
9709
741e63d7
YQ
97102012-03-20 Yao Qi <[email protected]>
9711
9712 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9713 comment.
9714
b64f50a1
JK
97152012-03-19 Jan Kratochvil <[email protected]>
9716
9717 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9718 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9719 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9720 sect_offset.
9721 * dwarf2expr.h (cu_offset, sect_offset): New types.
9722 (struct dwarf_expr_context_funcs) <dwarf_call>
9723 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9724 sect_offset.
9725 (struct dwarf_expr_context) <len>: Improve the comment.
9726 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9727 cu_offset and sect_offset.
9728 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9729 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9730 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9731 * dwarf2loc.h: Include dwarf2expr.h.
9732 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9733 and sect_offset.
9734 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9735 Improve the comment.
9736 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9737 (struct signatured_type, struct line_header, struct partial_die_info)
9738 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9739 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9740 (get_die_type_at_offset, create_cus_from_index)
9741 (create_signatured_type_table_from_index, dw2_get_file_names)
9742 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9743 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9744 (create_debug_types_hash_table, process_psymtab_comp_unit)
9745 (load_partial_comp_unit, create_all_comp_units)
9746 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9747 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9748 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9749 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9750 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9751 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9752 (find_partial_die, read_attribute_value, lookup_die_type)
9753 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9754 (is_ref_attr): New function comment.
9755 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9756 Use cu_offset and sect_offset.
9757 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9758 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9759 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9760 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9761 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9762 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9763 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9764 sect_offset.
9765
e97a38f7
JK
97662012-03-19 Jan Kratochvil <[email protected]>
9767
9768 Code cleanup.
9769 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9770 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9771 with xfree.
9772 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9773
8320cc4f
JK
97742012-03-19 Jan Kratochvil <[email protected]>
9775
9776 * NEWS: Describe new options --init-command=FILE, -ix and
9777 --init-eval-command=COMMAND, -iex.
9778 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9779 CMDARG_INIT_COMMAND.
9780 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9781 "init-command", "init-eval-command", "ix" and "iex" to the variable
9782 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9783 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9784 (print_gdb_help): Describe --init-command=FILE, -ix and
9785 --init-eval-command=COMMAND, -iex.
9786
26743505
JK
97872012-03-19 Jan Kratochvil <[email protected]>
9788
9789 Code cleanup.
9790 * main.c (struct cmdarg): Move it here from main. Add more comments.
9791 (cmdarg_s, VEC (cmdarg_s)): New.
9792 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9793 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9794 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9795 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9796 of CMDARG.
9797
5ff5c7b4
TT
97982012-03-19 Tom Tromey <[email protected]>
9799
9800 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9801
ab260dad
JK
98022012-03-16 Jan Kratochvil <[email protected]>
9803
9804 PR symtab/13777
9805 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9806 GCC >=4.5.
9807
c366c1f0
TT
98082012-03-16 Chris January <[email protected]>
9809
9810 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9811 of clear.
9812
e16edb45
TT
98132012-03-16 Chris January <[email protected]>
9814
9815 * source.c (add_path): Use memmove instead of strcpy because the
9816 strings overlap.
9817
53ba8333
JB
98182012-03-16 Joel Brobecker <[email protected]>
9819
9820 * value.h (set_value_parent): Add declaration.
9821 * value.c (set_value_parent): New function.
9822 (value_address): If VALUE->PARENT is not NULL, then use it as
9823 the base address instead of VALUE->LOCATION.address.
9824 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9825 the same as OBJ's address. Adjust V's offset accordingly.
9826 Set V's parent.
9827
481860b3
GB
98282012-03-16 Gary Benson <[email protected]>
9829
9830 PR breakpoints/10738
9831 * dwarf2read.c (use_deprecated_index_sections): New global.
9832 (struct partial_die_info): New member may_be_inlined.
9833 (read_partial_die): Set may_be_inlined where appropriate.
9834 (add_partial_subprogram): Add partial symbols for partial
9835 DIEs that may be inlined.
9836 (new_symbol_full): Add inlined subroutines to the current
9837 scope.
9838 (write_psymtabs_to_index): Bump version number.
9839 (dwarf2_read_index): Read only version 6 indices unless
9840 use_deprecated_index_sections is set.
9841 * linespec.c (symbol_and_data_callback): New structure.
9842 (iterate_inline_only): New function.
9843 (iterate_over_all_matching_symtabs): New argument
9844 "include_inline". If nonzero, also call the callback for
9845 symbols representing inlined subroutines.
9846 (lookup_prefix_sym): Pass extra argument to the above.
9847 (find_function_symbols): Likewise.
9848 (add_matching_symbols_to_info): Likewise.
9849 * NEWS: Mention that GDB can now set breakpoints on inlined
9850 functions.
9851
d0e7e15a
PM
98522012-03-16 Pierre Muller <[email protected]>
9853
9854 * p-typeprint.c (pascal_type_print_method_args):
9855 Fix display of parameter of methods.
9856
3d354654
PM
98572012-03-16 Pierre Muller <[email protected]>
9858
9859 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9860 Add missing prototype.
9861
cafe75b0
JK
98622012-03-16 Yao Qi <[email protected]>
9863 Jan Kratochvil <[email protected]>
9864
9865 Fix false compilation warning.
9866 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9867
25f8c692
JL
98682012-03-15 Jonathan Larmour <[email protected]>
9869 Pedro Alves <[email protected]>
9870
9871 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9872 (arm_register_g_packet_guesses): New function.
9873 (arm_gdbarch_init): Don't force a target description with
9874 registers when the executable is detected as M-profile. Instead
9875 set gdbarch->tdep->is_m. Register `g' packet guesses.
9876 (_initialize_arm_tdep): Initialize the new target description.
9877 * features/arm-with-m-fpa-layout.xml: New description.
9878 * features/arm-with-m-fpa-layout.c: New, generated.
9879
35c63cd8
JB
98802012-03-15 Joel Brobecker <[email protected]>
9881
9882 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9883 Update function description.
9884 (insert_bp_location): Do not wipe bl->target_info out.
9885 * mem-break.c: #include "gdb_string.h".
9886 (default_memory_insert_breakpoint): Do not call target_read_memory
9887 with a pointer to the breakpoint's shadow_contents buffer. Use
9888 a local buffer instead.
9889 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9890
57651221
TT
98912012-03-15 Tom Tromey <[email protected]>
9892
9893 * NEWS: Mention "info vtbl", not "info vtable".
9894 * cp-support.c (info_vtbl_command): Fix comment.
9895 (_initialize_cp_support): Fix text.
9896
410528f0
TT
98972012-03-15 Tom Tromey <[email protected]>
9898
9899 * cp-valprint.c (cp_print_value_fields): Use
9900 print_function_pointer_address for vtable slot.
9901
c4aeac85
TT
99022012-03-15 Tom Tromey <[email protected]>
9903
9904 * gnu-v3-abi.c (struct value_and_voffset): New.
9905 (hash_value_and_voffset, eq_value_and_voffset)
9906 (compare_value_and_voffset, compute_vtable_size)
9907 (print_one_vtable, gnuv3_print_vtable): New functions.
9908 (init_gnuv3_ops): Initialize 'print_vtable' field.
9909 * cp-support.c (info_vtbl_command): New function.
9910 (_initialize_cp_support): Add "info vtbl".
9911 * cp-abi.h (cplus_print_vtable): Declare.
9912 (struct cp_abi_ops) <print_vtable>: New field.
9913 * cp-abi.c (cplus_print_vtable): New function.
9914 * NEWS: Update.
9915
95cbceff
TT
99162012-03-15 Tom Tromey <[email protected]>
9917
9918 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9919 iterate_over_symbols.
9920
589b4a32
DE
99212012-03-14 Doug Evans <[email protected]>
9922
9923 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9924 DW_OP_GNU_parameter_ref.
9925
e837f12a
JK
99262012-03-14 Jan Kratochvil <[email protected]>
9927
9928 Fix double prompt of 'interpreter-exec mi'.
9929 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9930 (mi_interpreter_resume): use it.
9931 (mi_execute_command_input_handler): New function.
9932 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9933 mi_execute_command_input_handler.
9934
ff1e4526 99352012-03-13 Josh Matthews <[email protected]> (tiny change)
c381a3f6
JB
9936
9937 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9938 prototype.
9939 (darwin_debug_port_info): Make static.
9940 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9941 * machoread.c (_initialize_machoread): Add prototype.
9942 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9943 (i386_darwin_set_control, i386_darwin_get_control)
9944 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9945 i386_darwin_get_status, i386_darwin_get_control):
9946 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9947
d8a5d6ee
JB
99482012-03-13 Joel Brobecker <[email protected]>
9949
9950 * ax-gdb.c (gen_usual_unary): Remove special handling of
9951 enum and bool types.
9952
af381b8c
JB
99532012-03-13 Joel Brobecker <[email protected]>
9954
9955 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9956
786c562f
JB
99572012-03-13 Joel Brobecker <[email protected]>
9958
9959 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9960
e3ebf1bb
JB
99612012-03-13 Chris January <[email protected]>
9962
9963 * aix-thread.c (fill_sprs): Store the floating point registers
9964 at the correct offsets into vals.
9965
c5b7e1cb
DE
99662012-03-13 Doug Evans <[email protected]>
9967
16899756
DE
9968 * NEWS: Mention symbol-reloading has been deleted.
9969 * symfile.c (symbol_reloading): Delete.
9970 (show_symbol_reloading): Delete.
9971 (_initialize_symfile): Delete set/show symbol-reloading.
9972
c5b7e1cb
DE
9973 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9974 read_in_chain until we have successfully read it in.
9975 (load_full_comp_unit): Ditto.
9976 (read_signatured_type): Add comment.
9977
46cb6474
JB
99782012-03-13 Chris January <[email protected]>
9979
9980 * stabsread.c (fix_common_block): Change type of valu argument
9981 to CORE_ADDR.
9982
76219d77
JB
99832012-03-13 Chris January <[email protected]>
9984
9985 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9986 instruction.
9987
87b0bb13
JK
99882012-03-13 Jan Kratochvil <[email protected]>
9989
9990 * common/linux-procfs.c (linux_proc_get_int): New, from
9991 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9992 field.
9993 (linux_proc_get_tgid): Only call linux_proc_get_int.
9994 (linux_proc_get_tracerpid): New.
9995 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9996 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9997 linux_proc_pid_has_state.
9998 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9999 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
10000 (linux_ptrace_attach_warnings): New.
10001 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
10002 New declaration.
10003 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
10004 (linux_nat_attach): New variables ex, buffer, message and message_s.
10005 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
10006
5f572dec
JK
100072012-03-13 Jan Kratochvil <[email protected]>
10008
10009 * Makefile.in (linux-ptrace.o): New.
10010 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
10011 from linux-nat.c.
10012 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
10013 * common/linux-ptrace.c: New file.
10014 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
10015 * config/arm/linux.mh: Likewise.
10016 * config/i386/linux.mh: Likewise.
10017 * config/i386/linux64.mh: Likewise.
10018 * config/ia64/linux.mh: Likewise.
10019 * config/m32r/linux.mh: Likewise.
10020 * config/m68k/linux.mh: Likewise.
10021 * config/mips/linux.mh: Likewise.
10022 * config/pa/linux.mh: Likewise.
10023 * config/powerpc/linux.mh: Likewise.
10024 * config/powerpc/ppc64-linux.mh: Likewise.
10025 * config/powerpc/spu-linux.mh: Likewise.
10026 * config/s390/s390.mh: Likewise.
10027 * config/sparc/linux.mh: Likewise.
10028 * config/sparc/linux64.mh: Likewise.
10029 * config/xtensa/linux.mh: Likewise.
10030 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
10031 common/linux-procfs.c.
10032 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
10033
44f238bb
PA
100342012-03-13 Hui Zhu <[email protected]>
10035 Pedro Alves <[email protected]>
10036
10037 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
10038 CREATE_BREAKPOINT_FLAGS_INSERTED.
10039 (create_breakpoint_sal, create_breakpoints_sal)
10040 (base_breakpoint_create_breakpoints_sal)
10041 (tracepoint_create_breakpoints_sal)
10042 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10043 down.
10044 (break_command_1, handle_gnu_v3_exceptions, trace_command)
10045 (ftrace_command, strace_command): Adjust.
10046 (create_tracepoint_from_upload): Pass
10047 CREATE_BREAKPOINT_FLAGS_INSERTED.
10048 * breakpoint.h (enum breakpoint_create_flags): New.
10049 (create_breakpoint): New flags parameter.
10050 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
10051 * python/py-breakpoint.c (bppy_init): Adjust.
10052 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
10053 * spu-tdep.c (spu_catch_start): Adjust.
10054
1e51243a
PA
100552012-03-13 Pedro Alves <[email protected]>
10056 Hui Zhu <[email protected]>
10057 Yao Qi <[email protected]>
10058
10059 * remote.c (struct remote_state): New field `starting_up'.
10060 (remote_start_remote): Set and clear it.
10061 (remote_can_download_tracepoint): If starting up, return false.
10062
fa3064dd
YQ
100632012-03-13 Yao Qi <[email protected]>
10064
10065 * inferior.h (struct inferior): Remove fields any_syscall_count,
10066 syscalls_counts and total_syscalls_count. Move them to new
10067 struct catch_syscall_inferior_data in breakpoint.c.
10068 * breakpoint.c: Call DEF_VEC_I(int).
10069 (struct catch_syscall_inferior_data): New.
10070 (get_catch_syscall_inferior_data): New.
10071 (catch_syscall_inferior_data_cleanup): New.
10072 (insert_catch_syscall): Update to access data in
10073 struct catch_syscall_inferior_data.
10074 (insert_catch_syscall): Likewise.
10075 (remove_catch_syscall): Likewise.
10076 (remove_catch_syscall): Likewise.
10077 (is_syscall_catchpoint_enabled): Likewise.
10078 (add_catch_command): Likewise.
10079 (_initialize_breakpoint): Register cleanup.
10080 * breakpoint.h: Removed DEF_VEC_I(int).
10081 * dwarf2loc.c: Call DEF_VEC_I(int).
10082 * mi/mi-main.c: Likewise.
10083
460fac3c
MK
100842012-03-12 Mark Kettenis <[email protected]>
10085
10086 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
10087
e1aca11e
JB
100882012-03-12 Chris January <[email protected]>
10089
10090 * aix-thread.c (_initialize_aix_thread): Add prototype.
10091 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10092 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10093
649c7061
JB
100942012-03-12 Joel Brobecker <[email protected]>
10095
10096 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10097 include of "amd64-nat.h".
10098
0b49e518
TT
100992012-03-12 Tom Tromey <[email protected]>
10100
10101 * buildsym.c (record_pending_block): Now static.
10102 * buildsym.h: (record_pending_block): Remove.
10103
fd24fa94
AT
101042012-03-12 Andreas Tobler <[email protected]>
10105
10106 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10107
ba919b58
TT
101082012-03-09 Tom Tromey <[email protected]>
10109
10110 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10111 producer_is_gxx_lt_4_6>: New fields.
10112 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10113
a48e046c
TT
101142012-03-09 Tom Tromey <[email protected]>
10115
10116 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10117
6f5e9362
JB
101182012-03-08 Joel Brobecker <[email protected]>
10119
10120 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10121 prototype.
10122
8d037db9
JB
101232012-03-08 Joel Brobecker <[email protected]>
10124
10125 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10126
4e841acf
JK
101272012-03-08 Jan Kratochvil <[email protected]>
10128
10129 Fix -Wmissing-prototypes build.
10130 * arm-linux-nat.c (get_thread_id): Make it static.
10131 * xtensa-linux-nat.c (get_thread_id): Likewise.
10132
c6030312
JB
101332012-03-08 Joel Brobecker <[email protected]>
10134
10135 * server.c (process_point_options): If a conditional expression
10136 is found, only print a message if remote_debug is nonzero.
10137
52323be9
LM
101382012-03-08 Luis Machado <[email protected]>
10139
10140 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10141 of internal error for unknown/unsupported types.
10142
7fe25d9b
JK
101432012-03-08 Jan Kratochvil <[email protected]>
10144
10145 Fix CU relative vs. absolute DIE offsets.
10146 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10147 offset to offset_in_cu.
10148 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10149 TYPE_OFFSET.
10150 (dwarf2_fetch_die_location_block): Rename parameter offset to
10151 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10152
05e7c244
JK
101532012-03-08 Jan Kratochvil <[email protected]>
10154
10155 * libunwind-frame.c: Rename to ...
10156 * ia64-libunwind-tdep.c: ... here.
10157 * libunwind-frame.h: Rename to ...
10158 * ia64-libunwind-tdep.h: ... here.
10159 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10160 ia64-libunwind-tdep.h.
10161 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10162 * README (--with-libunwind): Rename to ...
10163 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10164 * config.in: Regenerate.
10165 * configure: Regenerate.
10166 * configure.ac: New option --with-libunwind-ia64, make the
10167 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10168 Remove AC_DEFINE for HAVE_LIBUNWIND.
10169 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10170 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10171 Rename libunwind-frame in the general comment.
10172 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10173 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10174 Move forward declarations inside #ifndef. Rename libunwind-frame in
10175 the general comment.
10176 * ia64-tdep.c: Rename libunwind-frame.h #include to
10177 ia64-libunwind-tdep.h.
10178 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10179 (ia64_libunwind_descr): Rename libunwind-frame to
10180 ia64-libunwind-tdep in these function comments.
10181 * ia64-tdep.h: Rename libunwind-frame.h #include to
10182 ia64-libunwind-tdep.h.
10183 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10184 ia64-libunwind-tdep in that data comment.
10185
3755cbfd
JK
101862012-03-08 Jan Kratochvil <[email protected]>
10187
10188 * libunwind-frame.h (struct frame_unwind): New declaration.
10189
d1cda5d9
JB
101902012-03-08 Joel Brobecker <[email protected]>
10191
10192 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10193 "set breakpoint condition-evaluation" command.
10194
a0ba0aa2
TG
101952012-03-08 Tristan Gingold <[email protected]>
10196
10197 * sparc-stub.c: Move to stubs/
10198 * sh-stub.c: Likewise.
10199 * m68k-stub.c: Likewise.
10200 * m32r-stub.c: Likewise.
10201 * i386-stub.c: Likewise.
10202
7b8b6d6d
AS
102032012-03-08 Andreas Schwab <[email protected]>
10204
007cafee
AS
10205 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10206 linux_get_siginfo_type.
10207
7b8b6d6d
AS
10208 * m68klinux-nat.c: Include "gdb_proc_service.h".
10209 (PTRACE_GET_THREAD_AREA): Define.
10210 (ps_get_thread_area): New function.
10211
bba74b36
YQ
102122012-03-08 Yao Qi <[email protected]>
10213
10214 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10215 `xsnprintf'.
10216 (remote_query_attached): Likewise.
10217 (remote_static_tracepoint_marker_at): Likewise.
10218 (remote_set_permissions): Likewise.
10219 (remote_detach_1, extended_remote_attach_1): Likewise.
10220 (send_g_packet, remote_vkill): Likewise.
10221 (extended_remote_disable_randomization): Likewise.
10222 (remote_add_target_side_condition): Likewise.
10223 (remote_insert_breakpoint): Likewise.
10224 (remote_remove_breakpoint): Likewise.
10225 (remote_insert_watchpoint): Likewise.
10226 (remote_remove_watchpoint): Likewise.
10227 (remote_insert_hw_breakpoint): Likewise.
10228 (remote_insert_hw_breakpoint): Likewise.
10229 (remote_remove_hw_breakpoint): Likewise.
10230 (remote_download_command_source): Likewise.
10231 (remote_download_tracepoint): Likewise.
10232 (remote_download_trace_state_variable): Likewise.
10233 (remote_disable_tracepoint): Likewise.
10234 (remote_trace_set_readonly_regions): Likewise.
10235 (remote_get_tracepoint_status): Likewise.
10236 (remote_trace_find): Likewise.
10237 (remote_get_trace_state_variable_value): Likewise.
10238 (remote_set_disconnected_tracing): Likewise.
10239 (remote_set_circular_trace_buffer): Likewise.
10240 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10241 (remote_use_agent): Likewise.
10242 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10243 Update callers.
10244
9b224c5e
PA
102452012-03-07 Pedro Alves <[email protected]>
10246
10247 * NEWS: Mention QProgramSignals.
10248 * inferior.h (update_signals_program_target): Declare.
10249 * infrun.c: (update_signals_program_target): New.
10250 (handle_command): Update the target of the new program signals
10251 array changes.
10252 * remote.c (PACKET_QProgramSignals): New enum.
10253 (last_program_signals_packet): New global.
10254 (remote_program_signals): New.
10255 (remote_start_remote): Update the target with the program signals
10256 list.
10257 (remote_protocol_features): Add entry for QPassSignals.
10258 (remote_open_1): Free anc clear last_program_signals_packet.
10259 (init_remote_ops): Install remote_program_signals.
10260 * target.c (update_current_target): Adjust.
10261 (target_program_signals): New.
10262 * target.h (struct target_ops) <to_program_signals>: New field.
10263 (target_program_signals): Declare.
10264
74c48cbb
PA
102652012-03-07 Pedro Alves <[email protected]>
10266
10267 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10268 extensions.
10269
0c13fc49
AS
102702012-03-07 Andreas Schwab <[email protected]>
10271
10272 * m68klinux-nat.c (getregs_supplies): Make static.
10273 (getfpregs_supplies): Likewise.
10274 (have_ptrace_getregs): Likewise.
10275
1281d2a3
JB
102762012-03-06 Joel Brobecker <[email protected]>
10277
10278 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10279 in call to get_die_type_at_offset.
10280
2b03b41d
SS
102812012-03-06 Stan Shebs <[email protected]>
10282
10283 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10284 * mi/mi-cmd-disas.c: Ditto.
10285 * mi/mi-cmd-env.c: Ditto.
10286 * mi/mi-cmd-file.c: Ditto.
10287 * mi/mi-cmd-stack.c: Ditto.
10288 * mi/mi-cmd-target.c: Ditto.
10289 * mi/mi-cmd-var.c: Ditto.
10290 * mi/mi-cmds.c: Ditto.
10291 * mi/mi-cmds.h: Ditto.
10292 * mi/mi-console.c: Ditto.
10293 * mi/mi-getopt.c: Ditto.
10294 * mi/mi-getopt.h: Ditto.
10295 * mi/mi-interp.c: Ditto.
10296 * mi/mi-main.c: Ditto.
10297 * mi/mi-out.c: Ditto.
10298 * mi/mi-parse.c: Ditto.
10299 * mi/mi-parse.h: Ditto.
10300 * mi/mi-symbol-cmds.c: Ditto.
10301
10302 * mi/mi-getopt.h: Move mi_opt struct up.
10303 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10304 return.
10305 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10306
c988ad87
TT
103072012-03-06 Tom Tromey <[email protected]>
10308
10309 * proc-service.c (ps_pglobal_lookup): Set the current program
10310 space.
10311
1b7c1b10
PA
103122012-03-06 Pedro Alves <[email protected]>
10313
10314 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10315
3c182069
JB
103162012-03-05 Joel Brobecker <[email protected]>
10317
10318 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10319
2e794194
JK
103202012-03-05 Jan Kratochvil <[email protected]>
10321
10322 Code cleanup.
10323 * common/linux-osdata.c (linux_common_core_of_thread): New function
10324 comment.
10325 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10326 call by linux_common_core_of_thread.
10327 (linux_nat_core_of_thread_1): Remove.
10328 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10329 * linux-thread-db.c: Include linux-osdata.h.
10330 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10331 linux_common_core_of_thread.
10332
9f9f1f31
TT
103332012-03-05 Tom Tromey <[email protected]>
10334
10335 * value.c (value_primitive_field): Don't fetch contents for
10336 non-virtual bases.
10337
b7b189f3
TT
103382012-03-05 Tom Tromey <[email protected]>
10339
10340 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10341
05b8a789 103422012-03-05 Andreas Arnez <[email protected]>
5538f557 10343
5538f557
JB
10344 * s390-nat.c: Include "gregset.h".
10345
75528772
JK
103462012-03-05 Jan Kratochvil <[email protected]>
10347
10348 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10349 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10350 (libunwind_load): New variable so_error, use it for dlerror. Try to
10351 load also LIBUNWIND_SO_7.
10352
275418ae
PA
103532012-03-05 Pedro Alves <[email protected]>
10354
10355 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10356 is not NULL, and remove resulting dead code.
10357
5cbb9812
TS
103582012-03-05 Thomas Schwinge <[email protected]>
10359
10360 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10361 prologue to sh_analyze_prologue.
10362 (sh_analyze_prologue): Make better use of such an upper limit, and
10363 generally be more cautious about accessing memory.
10364
541515ad
TT
103652012-03-05 Tom Tromey <[email protected]>
10366
10367 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10368 _initialize_ia64_hpux_tdep.
10369
b4d36fb8
PA
103702012-03-05 Pedro Alves <[email protected]>
10371
24490249
PA
10372 PR gdb/13766
10373
b4d36fb8
PA
10374 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10375 the register state is clear, supply explicit zero, instead of
10376 marking the register unavailable.
10377
60c9a3c0
TG
103782012-03-05 Tristan Gingold <[email protected]>
10379
10380 * NEWS: Mention OpenVMS ia64 new target.
10381
696759ad
TG
103822012-03-05 Tristan Gingold <[email protected]>
10383
10384 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10385 (ia64_unw_accessors, ia64_unw_rse_accessors)
10386 (ia64_libunwind_descr): Declare.
10387 * ia64-vms-tdep.c: New file.
10388 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10389 (ia64_libunwind_descr): Make them public.
10390 * configure.tgt: Add ia64-*-*vms*.
10391 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10392 (ALLDEPFILES): Add ia64-vms-tdep.c
10393
34864976
TG
103942012-03-05 Tristan Gingold <[email protected]>
10395
169081d0
TG
10396 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10397 * remote.c (PACKET_qXfer_uib): New enum value.
10398 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10399 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10400 (_initialize_remote): Call add_packet_config_cmd for
10401 xfer:uib packet.
10402
104032012-03-05 Tristan Gingold <[email protected]>
10404
10405 * osabi.c (gdb_osabi_names): Add OpenVMS.
10406 (generic_elf_osabi_sniffer): Likewise.
10407 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 10408
6597b100
JK
104092012-03-04 Jan Kratochvil <[email protected]>
10410
10411 Removed unused code.
10412 * libunwind-frame.c (libunwind_frame_unwind)
10413 (libunwind_frame_base_address): Remove.
10414 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10415
87399aa1
YQ
104162012-03-04 Yao Qi <[email protected]>
10417
10418 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10419 remove trailing new line.
10420 (agent_run_command, agent_run_command): Add _ markup.
10421 (agent_capability_check): Likewise.
10422
abf1152a
JK
104232012-03-03 Jan Kratochvil <[email protected]>
10424
10425 * breakpoint.c (set_condition_evaluation_mode): Set
10426 CONDITION_EVALUATION_MODE unconditionally.
10427
5808517f
YQ
104282012-03-03 Yao Qi <[email protected]>
10429
10430 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10431 * common/agent.h: Update declaration.
10432 * inf-child.c (inf_child_use_agent): New.
10433 (inf_child_can_use_agent): New.
10434 (inf_child_target): Initialize fields `to_use_agent'
10435 and `to_can_use_agent'.
10436 * agent.c (agent_new_objfile): New.
89b7509a 10437 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
10438 observer.
10439
10440 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10441 New.
89b7509a 10442 (linux_target_install_ops): Initialize field
5808517f
YQ
10443 `to_static_tracepoint_markers_by_strid'.
10444 * remote.c (free_current_marker): Move it to ...
10445 * tracepoint.c (free_current_marker): ... here. New.
10446 (cleanup_target_stop): New.
10447 * tracepoint.h: Declare free_current_marker.
10448 * NEWS: Add one entry about `info static-tracepoint-marker'.
10449
58b4daa5
YQ
104502012-03-03 Yao Qi <[email protected]>
10451
10452 * common/agent.c (agent_loaded_p): New.
89b7509a 10453 (agent_look_up_symbols): New global.
58b4daa5
YQ
10454 * common/agent.h: Declare agent_loaded_p.
10455
8ffcbaaf
YQ
104562012-03-03 Yao Qi <[email protected]>
10457
10458 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10459 (agent_capability_check, agent_capability_invalidate): New.
10460 (symbol_list): New array element.
10461 * common/agent.h (enum agent_capa): New.
10462 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10463
d1feda86
YQ
104642012-03-03 Yao Qi <[email protected]>
10465
10466 * target.h (struct target_ops) <to_use_agent>: New field.
10467 (struct target_ops) <to_can_use_agent>: New field.
10468 (target_use_agent, target_can_use_agent): New macro.
10469 * target.c (update_current_target): Update.
10470 * remote.c: New enum `PACKET_QAgent'.
10471 (remote_protocol_features): Add a new element.
10472 (remote_use_agent, remote_can_use_agent): New.
10473 (init_remote_ops): Initialize field `can_use_agent' with
10474 remote_can_use_agent. Intiailize field `use_agent' with
10475 remote_use_agent.
10476 * common/agent.c (use_agent): New global.
10477 * common/agent.h: Declare it.
10478 * tracepoint.c (info_static_tracepoint_markers_command): Add
10479 comment.
10480 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10481 (COMMON_OBS): Add common/agent.o and agent.o
10482 (common-agent.o): New rule.
10483 * agent.c: New.
10484
2fa291ac
YQ
104852012-03-03 Yao Qi <[email protected]>
10486
10487 * common/agent.c: New.
10488 * common/agent.h: New.
10489 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10490 AC_CHECK_HEADERS.
10491 * configure, configh.in: Regenerated.
10492
9fc05685
KB
104932012-03-02 Kevin Buettner <[email protected]>
10494
10495 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10496 unless it exists for this architecture.
10497
a5ee536b
JB
104982012-03-02 Joel Brobecker <[email protected]>
10499
10500 * language.h (struct language_defn): New "method" la_read_var_value.
10501 * findvar.c: #include "language.h".
10502 (default_read_var_value): Renames read_var_value. Rewrite
10503 function description.
10504 (read_var_value): New function.
10505 * value.h (default_read_var_value): Add prototype.
10506 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10507 New functions.
10508 (ada_language_defn): Add entry for la_read_var_value.
10509 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10510 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10511 language_defn structures to add entry for new la_read_var_value
10512 field.
10513
f59f708a
PA
105142012-03-02 Tom Tromey <[email protected]>
10515 Pedro Alves <[email protected]>
10516
10517 PR breakpoints/13776:
10518 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10519 breakpoints.
10520 (delete_longjmp_breakpoint_at_next_stop): New.
10521 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10522 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10523 before deleting the inferior. Add comments.
10524 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10525 breakpoints immediately, but only on next stop. Move that code
10526 next to where we mark other breakpoints for deletion.
10527
44099a67
JB
105282012-03-02 Joel Brobecker <[email protected]>
10529
10530 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10531 marker.
10532 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10533 violation.
10534
2a2ef594
PA
105352012-03-02 Pedro Alves <[email protected]>
10536
10537 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10538
b261e0c5
UW
105392012-03-02 Ulrich Weigand <[email protected]>
10540
10541 Fix -Wmissing-prototypes build.
10542 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10543 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10544 (gdbsim_has_memory): Likewise.
10545
a95babbf
YQ
105462012-03-02 Yao Qi <[email protected]>
10547
10548 Fix -Wmissing-prototypes build.
10549 * charset.c (phony_iconv_open): Make static.
10550 (phony_iconv_close, phony_iconv): Likewise.
10551 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10552 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10553 prototype.
10554 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10555 * ser-mingw.c (create_select_thread): Make static.
10556 * windows-termcap.c (tgetent): New prototype.
10557 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10558
d603d4b3
JK
105592012-03-02 Zhang Yuanhui <[email protected]>
10560
10561 Fix -Wmissing-prototypes build.
10562 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10563 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10564 (_initialize_loadable): New prototypes.
10565
7fb3ad1f
DE
105662012-03-02 Doug Evans <[email protected]>
10567
10568 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10569 abbrev table, read_comp_unit will do it.
10570
693be288
JK
105712012-03-02 Jan Kratochvil <[email protected]>
10572
10573 Fix -Wmissing-prototypes build.
10574 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10575 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10576 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10577 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10578 (_initialize_arm_symbian_tdep): New prototype.
10579 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10580 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10581 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10582 static.
10583 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10584 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10585 prototype.
10586 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10587 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10588 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10589 static.
10590 * moxie-tdep.c (moxie_process_record): Likewise.
10591 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10592 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10593 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10594 (_initialize_rl78_tdep): New prototype.
10595 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10596 (_initialize_rx_tdep): New prototype.
10597 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10598 (_initialize_darwin_solib): New prototype.
10599 * solib-spu.c: Include solib-spu.h.
10600 (_initialize_spu_solib): New prototype.
10601 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10602 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10603 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10604 (tic6x_software_single_step): Make it static.
10605 (_initialize_tic6x_tdep): New prototype.
10606
638234e5
JK
106072012-03-02 Jan Kratochvil <[email protected]>
10608
10609 Fix -Wmissing-prototypes build.
10610 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10611 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10612
f4a6f16d
JK
106132012-03-01 Jan Kratochvil <[email protected]>
10614
10615 Fix -Wmissing-prototypes build.
10616 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10617 (frv_have_stopped_data_address): Remove.
10618
04dcf5fa
JK
106192012-03-01 Jan Kratochvil <[email protected]>
10620
10621 Fix -Wmissing-prototypes build.
10622 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10623 * sh-tdep.c: Include sh64-tdep.h.
10624 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10625 * sh64-tdep.c: Include sh64-tdep.h.
10626 * sh64-tdep.h: New file.
10627
19080931
MR
106282012-03-01 Maciej W. Rozycki <[email protected]>
10629
10630 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10631
9aac7884
MR
106322012-03-01 Maciej W. Rozycki <[email protected]>
10633
10634 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10635 sp_regnum once the gdbarch_init_osabi hook has been called.
10636
a385295e
MR
106372012-03-01 Maciej W. Rozycki <[email protected]>
10638
10639 * mips-tdep.c (mips32_bc1_pc): New function.
10640 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10641 BPOSGE32 and BPOSGE64 instructions.
10642 (deal_with_atomic_sequence): Likewise.
10643 (mips32_instruction_has_delay_slot): Likewise.
10644
1faeff08 106452012-03-01 Maciej W. Rozycki <[email protected]>
a09130f9
PA
10646 Chris Dearman <[email protected]>
10647 Maciej W. Rozycki <[email protected]>
10648 Joseph Myers <[email protected]>
1faeff08
MR
10649
10650 * features/mips-dsp.xml: New file.
10651 * features/mips64-dsp.xml: New file.
10652 * features/mips-dsp-linux.xml: New file.
10653 * features/mips64-dsp-linux.xml: New file.
10654 * features/Makefile (WHICH): Add mips-dsp-linux and
10655 mips64-dsp-linux.
10656 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10657 * features/mips-dsp-linux.c: New file.
10658 * features/mips64-dsp-linux.c: New file.
10659 * regformats/mips-dsp-linux.dat: New file.
10660 * regformats/mips64-dsp-linux.dat: New file.
10661 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10662 registers.
10663 (mips64_linux_register_addr): Likewise.
10664 (mips64_linux_regsets_fetch_registers): Likewise.
10665 (mips64_linux_regsets_store_registers): Likewise.
10666 (mips64_linux_fetch_registers): Update call to
10667 mips64_linux_regsets_fetch_registers.
10668 (mips64_linux_store_registers): Update call to
10669 mips64_linux_regsets_store_registers.
10670 (mips_linux_read_description): Probe for DSP registers.
10671 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10672 and initialize_tdesc_mips64_dsp_linux.
10673 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10674 Remove padding of no longer used embedded register slots.
10675 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10676 (MIPS_RESTART_REGNUM): Redefine enum value.
10677 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10678 strings.
10679 (mips_tx39_reg_names): Likewise.
10680 (mips_linux_reg_names): New array of register names for Linux
10681 targets.
10682 (mips_register_name): Check for a null pointer in
10683 mips_processor_reg_names and return an empty string.
10684 (mips_register_type): Exclude embedded registers for the IRIX
10685 and Linux ABIs.
10686 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10687 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10688 DSP registers.
10689 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10690 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10691 (mips_gdbarch_init): Likewise. Initialize internal register
10692 indices for the Linux ABI. Use dynamic numbers to refer to
10693 registers, as applicable, while parsing the target description.
10694 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10695
263689d8
JB
106962012-03-01 Joel Brobecker <[email protected]>
10697
10698 * frame.h (read_frame_register_unsigned): Fix typo in function
10699 description.
10700
f3b4f45c
PA
107012012-03-01 Pedro Alves <[email protected]>
10702
10703 * jit-reader.in [!__cplusplus]
10704 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10705
b03a2011
PA
107062012-03-01 Pedro Alves <[email protected]>
10707
10708 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10709 * configure: Regenerate.
10710
70221824
PA
107112012-03-01 Pedro Alves <[email protected]>
10712
10713 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10714 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10715 (ftrace_command, strace_command): Make static.
10716 * d-lang.c (_initialize_d_language): Declare.
10717 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10718 * dwarf2loc.c (_initialize_dwarf2loc):
10719 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10720 * exec.c (exec_get_section_table): Make static.
10721 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10722 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10723 * inferior.c (remove_inferior_command, add_inferior_command)
10724 (clone_inferior_command): Make static.
10725 * linux-nat.c (linux_nat_thread_address_space)
10726 (linux_nat_core_of_thread): Make static.
10727 * linux-tdep.c (_initialize_linux_tdep): Declare.
10728 * objc-lang.c (_initialize_objc_lang): Declare.
10729 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10730 Make static.
10731 (_initialize_opencl_language): Declare.
10732 * record.c (_initialize_record): Declare.
10733 * remote.c (demand_private_info, remote_get_tib_address)
10734 (remote_supports_cond_tracepoints)
10735 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10736 Make static.
10737 * skip.c (_initialize_step_skip): Declare.
10738 * symtab.c (skip_prologue_using_lineinfo): Make static.
10739 * tracepoint.c (delete_trace_state_variable)
10740 (trace_variable_command, delete_trace_variable_command)
10741 (get_uploaded_tsv, find_matching_tracepoint_location)
10742 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10743 Make static.
10744 * value.c (pack_unsigned_long): Make static.
10745 * varobj.c (varobj_ensure_python_env): Make static.
10746 * windows-tdep.c (_initialize_windows_tdep): Declare.
10747 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10748
33fbcbee
PA
107492012-03-01 Pedro Alves <[email protected]>
10750
10751 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10752 gdbarch parameter.
10753 (linux_init_abi): Install it as has_shared_address_space gdbarch
10754 callback.
10755
44d0cd3b
PA
107562012-03-01 Pedro Alves <[email protected]>
10757
10758 * observer.c (observer_test_first_notification_function)
10759 (observer_test_second_notification_function)
10760 (observer_test_third_notification_function): Add declarations.
10761
ed01b82c
PA
107622012-03-01 Pedro Alves <[email protected]>
10763
10764 * common/signals.c (default_target_signal_to_host)
10765 (default_target_signal_from_host): Move ...
10766 * arch-utils.c: ... here.
10767 * arch-utils.h (default_target_signal_to_host)
10768 (default_target_signal_from_host): Declare.
10769
10770 * common/signals.c (target_signal_from_command): Move ...
10771 * infrun.c: ... here.
10772 * inferior.h (target_signal_from_command): Declare.
10773 * target.h (target_signal_from_command)
10774 (default_target_signal_from_host, default_target_signal_to_host):
10775 Delete declarations.
10776
10777 * common/signals.c (_initialize_signals): Delete.
10778
c9b87335
PA
107792012-03-01 Pedro Alves <[email protected]>
10780
10781 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10782 both __cplusplus and !__cplusplus.
10783
9340a6c0
PA
107842012-03-01 Pedro Alves <[email protected]>
10785
10786 * psymtab.c (find_and_open_source): Delete declaration.
10787 * source.c (find_and_open_source): Move comment ...
10788 * source.h (find_and_open_source): ... to this new declaration.
10789
e451c4a1
PA
107902012-03-01 Pedro Alves <[email protected]>
10791
10792 * inline-frame.c: Include inline-frame.h.
10793
983fb104
PA
107942012-03-01 Pedro Alves <[email protected]>
10795
10796 * tui/tui-data.c (set_gen_win_origin): Delete.
10797 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10798 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10799
5fbce5df
PA
108002012-03-01 Pedro Alves <[email protected]>
10801
10802 * remote.c (encode_actions): Delete declaration.
10803 * tracepoint.c (encode_actions): Make extern.
10804 * tracepoint.h (encode_actions): Declare.
10805
49a8461d
PA
108062012-03-01 Pedro Alves <[email protected]>
10807
10808 * python/py-breakpoint.c: Include python.h.
10809 * python/py-continueevent.c (create_continue_event_object): Make
10810 static.
10811 * python/py-lazy-string.c (stpy_get_type): Make static.
10812 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10813 Make static.
10814 * python/py-utils.c (unicode_to_target_python_string): Make
10815 static.
10816 * python/py-value.c: Include python.h.
10817
9079102f
PA
108182012-03-01 Pedro Alves <[email protected]>
10819
10820 * inferior.c (delete_threads_of_inferior): Delete.
10821
a298c5e8
PA
108222012-03-01 Pedro Alves <[email protected]>
10823
10824 Import fallback definitions from glibc.
10825
10826 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10827 ps_prochandle): Forward declare.
10828 (ps_err_e): Use glibc's comments.
10829 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10830 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10831 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10832 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10833 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10834 (struct ps_prochandle): Adjust comment.
10835
e3084549
PA
108362012-03-01 Pedro Alves <[email protected]>
10837
10838 * ada-lang.c (ada_modulus_from_name): Delete.
10839 * ada-lex.l (lexer_init): Make static.
10840
ad5f7d6e
PA
108412012-03-01 Pedro Alves <[email protected]>
10842
10843 PR gdb/13767
10844
10845 * frame.c (read_frame_register_unsigned): New.
10846 * frame.h (read_frame_register_unsigned): Declare.
10847 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10848 Handle it.
10849 (print_i387_control_word): New parameter `control_p'. Handle it.
10850 (i387_print_float_info): Handle unavailable float registers.
10851
e0a4d108
KS
108522012-03-01 Keith Seitz <[email protected]>
10853
10854 * linespec.c (decode_line_2): Sort the list of methods
10855 alphabetically before presenting the user with a selection
10856 menu.
10857
122d1940
DE
108582012-03-01 Doug Evans <[email protected]>
10859
10860 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10861 has_namespace_info.
10862 (dwarf2_read_abbrevs): Remove corresponding initialization.
10863
7d74f244
DE
108642012-03-01 Scott J. Goldman <[email protected]>
10865
10866 * NEWS: Mention new python command class gdb.COMMAND_USER.
10867 * cli/cli-cmds.c (show_user): Print error when used on a python
10868 command.
10869 (init_cli_cmds): Update documentation strings for "show user" and
10870 "set/show max-user-call-depth" to clarify that it does not apply to
10871 python commands.
10872 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10873 error check.
10874 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10875 gdb python api.
10876 * top.c (execute_command): Only execute a user-defined command as a
10877 legacy macro if c->user_commands is set.
10878
e88acd96
TT
108792012-03-01 Tom Tromey <[email protected]>
10880
10881 * valprint.h (struct generic_val_print_decorations): New.
10882 (generic_val_print): Declare.
10883 * valprint.c (generic_val_print): New function.
10884 * p-valprint.c (p_decorations): New global.
10885 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10886 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10887 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10888 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10889 * m2-valprint.c (m2_decorations): New global.
10890 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10891 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10892 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10893 TYPE_CODE_ERROR>: Call generic_val_print.
10894 * f-valprint.c (f_decorations): New global.
10895 (f_val_print): Use print_function_pointer_address.
10896 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10897 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10898 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10899 generic_val_print.
10900 * c-valprint.c (c_decorations): New global.
10901 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10902 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10903 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10904 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10905 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10906 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10907 case.
10908
d3eab38a
TT
109092012-03-01 Tom Tromey <[email protected]>
10910
10911 * valprint.c (val_print): Update.
10912 * p-valprint (pascal_val_print): Return void.
10913 * p-lang.h (pascal_val_print): Return void.
10914 * m2-valprint.c (m2_val_print): Return void.
10915 * m2-lang.h (m2_val_print): Return void.
10916 * language.h (struct language_defn) <la_val_print>: Return void.
10917 * language.c (unk_lang_val_print): Return void.
10918 * jv-valprint.c (java_val_print): Return void.
10919 * jv-lang.h (java_val_print): Return void.
10920 * f-valprint.c (f_val_print): Return void.
10921 * f-lang.h (f_val_print): Return void.
10922 * d-valprint.c (d_val_print): Return void.
10923 (dynamic_array_type): Update.
10924 * d-lang.h (d_val_print): Return void.
10925 * c-valprint.c (c_val_print): Return void.
10926 * c-lang.h (c_val_print): Return void.
10927 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10928 void.
10929 * ada-lang.h (ada_val_print): Return void.
10930
35c0084b
TT
109312012-03-01 Tom Tromey <[email protected]>
10932
10933 * value.h (val_print): Return void.
10934 * valprint.c (val_print): Return void.
10935
a1f5dd1b
TT
109362012-03-01 Tom Tromey <[email protected]>
10937
10938 * value.h (common_val_print): Return void.
10939 * valprint.c (common_val_print): Return void.
10940
8e069a98
TT
109412012-03-01 Tom Tromey <[email protected]>
10942
10943 * value.h (value_print): Return void.
10944 * valprint.c (value_print): Return void.
10945 * p-valprint.c (pascal_value_print): Return void.
10946 * p-lang.h (pascal_value_print): Return void.
10947 * language.h (struct language_defn) <la_value_print>: Return
10948 void.
10949 * language.c (unk_lang_value_print): Return void.
10950 * jv-valprint.c (java_value_print): Return void.
10951 * jv-lang.h (java_value_print): Return void.
10952 * f-valprint.c (c_value_print): Don't declare.
10953 Include c-lang.h.
10954 * c-valprint.c (c_value_print): Return void.
10955 * c-lang.h (c_value_print): Return void.
10956 * ada-valprint.c (ada_value_print): Return void.
10957 * ada-lang.h (ada_value_print): Return void.
10958
be335936
TT
109592012-03-01 Tom Tromey <[email protected]>
10960
10961 * value.c (value_primitive_field): Handle virtual base classes.
10962
b0db66a7
TT
109632012-03-01 Tom Tromey <[email protected]>
10964
10965 * gdbtypes.h (struct vbase): Remove.
10966
132c57b4
TT
109672012-03-01 Tom Tromey <[email protected]>
10968
10969 * c-valprint.c (print_function_pointer_address): Move...
10970 * valprint.c: ... here. Make non-static.
10971 * m2-valprint.c (print_function_pointer_address): Remove.
10972 * valprint.h (print_function_pointer_address): Declare.
10973
e41eec66
JB
109742012-03-01 Joel Brobecker <[email protected]>
10975
10976 * NEWS: Document the fact that one can provide a condition when
10977 creating an Ada exception catchpoint.
10978
19c37f24
TT
109792012-03-01 Tom Tromey <[email protected]>
10980
10981 * valprint.c (val_print_type_code_flags): Fix placement of
10982 trailing brace.
10983
f0fed3a3
JB
109842012-03-01 Joel Brobecker <[email protected]>
10985
10986 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10987 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10988 environment variable before calling update-copyright.
10989
8ba85d85
JB
109902012-03-01 Joel Brobecker <[email protected]>
10991
10992 * gnulib/extra/update-copyright: Update to the latest from
10993 gnulib's git repository.
10994 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10995 variable to 2 instead of 1.
10996
8219b1e8
JB
109972012-02-29 Joel Brobecker <[email protected]>
10998
10999 * varobj.c (c_value_of_variable): Remove dead code.
11000
718cb7da
JB
110012012-02-29 Joel Brobecker <[email protected]>
11002
11003 * ada-lex.p (processId): Do not modify already encoded IDs.
11004 Update function documentation.
11005
739593e0
JB
110062012-02-29 Joel Brobecker <[email protected]>
11007
11008 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
11009 "name" with "struct symbol *name_sym".
11010 * ada-exp.y (write_var_or_type): Update call to
11011 ada_find_renaming_symbol.
11012 "name" with "struct symbol *name_sym". Adjust Implementation
11013 accordingly. Adjust the function documentation.
11014
852dff6c
JB
110152012-02-29 Joel Brobecker <[email protected]>
11016
11017 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
11018 * ada-lang.c (ada_find_any_type): Add advance declaration.
11019 Make static. Replace ada_find_any_symbol by
11020 ada_find_any_type_symbol.
11021 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
11022 Improve function description. Make static.
11023 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
11024 Replace ada_find_any_symbol by ada_find_any_type_symbol.
11025
1b611343
JB
110262012-02-29 Joel Brobecker <[email protected]>
11027
11028 * ada-lang.c (struct tag_args): Delete.
11029 (ada_get_tsd_type): Function body moved up in source file.
11030 (ada_tag_name_1, ada_tag_name_2): Delete.
11031 (ada_get_tsd_from_tag): New function.
11032 (ada_tag_name_from_tsd): New function.
11033 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
11034 to determine the tag name.
11035
41246937
JB
110362012-02-29 Joel Brobecker <[email protected]>
11037
11038 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
11039 declaration.
11040 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
11041 function.
11042
ffde82bf
JB
110432012-02-29 Joel Brobecker <[email protected]>
11044
11045 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
11046
2ad01556
JB
110472012-02-29 Joel Brobecker <[email protected]>
11048
11049 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
11050 full searches.
11051
99b1c762
JB
110522012-02-29 Joel Brobecker <[email protected]>
11053
11054 * ada-lang.c (constrained_packed_array_type): If there is a
11055 parallel XA type, use it to determine the array index type.
11056
2d4a02ee
JB
110572012-02-29 Joel Brobecker <[email protected]>
11058
11059 * ada-valprint.c (ada_val_print_1): If our value is a reference
11060 to an array descriptor, dereference it before converting it
11061 to a simple array.
11062
c48db5ca
JB
110632012-02-29 Joel Brobecker <[email protected]>
11064
11065 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
11066 creating fixed value.
11067 (ada_value_ind, ada_coerce_ref, assign_component)
11068 (ada_evaluate_subexp): Remove call to unwrap_value before
11069 call to ada_to_fixed_value.
11070
2e6fda7d
JB
110712012-02-29 Joel Brobecker <[email protected]>
11072
11073 * ada-lang.c (to_fixed_array_type): Set result's type name.
11074
5845583d
JB
110752012-02-29 Joel Brobecker <[email protected]>
11076
11077 * ada-lang.c (catch_ada_exception_command_split): Add new
11078 argument cond_string. Add support for condition at end of
11079 "catch exception" commands.
11080 (ada_decode_exception_location): Add new argument cond_string.
11081 Update call to catch_ada_exception_command_split.
11082 (create_ada_exception_catchpoint): Add new argument cond_string.
11083 Set the breakpoint condition if needed.
11084 (catch_ada_exception_command): Update call to
11085 ada_decode_exception_location.
11086 (ada_decode_assert_location): Add function documentation.
11087 Add support for condition at end of "catch assert" command.
11088 (catch_assert_command): Update calls to ada_decode_assert_location
11089 and create_ada_exception_catchpoint.
11090
9a7f938f
JK
110912012-02-29 Jan Kratochvil <[email protected]>
11092
11093 Fix disp-step-syscall.exp: fork: single step over fork.
11094 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11095 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11096 comment, change parameters gdbarch and ptid to regcache. Remove
11097 parameter regcache, initialize gdbarch from regcache here.
11098 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11099 New functions.
11100 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11101 instead.
11102 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11103 'syscall'. Make the 'int' check more strict.
11104
ffdf6de5
JK
111052012-02-29 Jan Kratochvil <[email protected]>
11106
11107 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11108 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11109 (i386_linux_intx80_sysenter_syscall_record): ... here.
11110 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11111 Use the renamed function name.
11112
c70a6932
JK
111132012-02-29 Jan Kratochvil <[email protected]>
11114
11115 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11116 * breakpoint.c (until_break_command): Likewise.
11117 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11118 * infcall.c (call_function_by_hand): Likewise.
11119 * infcmd.c (finish_forward): Likewise.
11120 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11121
05b8a789 111222012-02-28 Tristan Gingold <[email protected]>
d4cd3da9 11123
d4cd3da9
JB
11124 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11125 avoid variable assignments inside condition.
11126
6425366c
JK
111272012-02-28 Jan Kratochvil <[email protected]>
11128
11129 Fix static analysis issue found by cppcheck.
11130 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11131 uninitialized BUF for size 2.
11132
c8cef75f 111332012-02-27 Chris Dearman <[email protected]>
a09130f9
PA
11134 Nathan Froyd <[email protected]>
11135 Maciej W. Rozycki <[email protected]>
c8cef75f
MR
11136
11137 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11138 (mips16_instruction_has_delay_slot): Likewise.
11139 (mips_segment_boundary): Likewise.
11140 (mips_adjust_breakpoint_address): Likewise.
11141 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11142
473347ad 111432012-02-27 Maciej W. Rozycki <[email protected]>
a09130f9 11144 Maciej W. Rozycki <[email protected]>
473347ad
MR
11145
11146 * infrun.c (handle_inferior_event): Don't proceed through
11147 shared library trampolines if stepping at the machine
11148 instruction level.
11149
cf233303
MR
111502012-02-27 Maciej W. Rozycki <[email protected]>
11151
11152 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11153 too.
11154
cb2cf4ce
TS
111552012-02-27 Thomas Schwinge <[email protected]>
11156
11157 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11158 (sh_stub_unwind_sniffer): New functions.
11159 (sh_stub_unwind): New variable.
11160 (sh_gdbarch_init): Wire everything.
11161
644cebc9
PA
111622012-02-27 Pedro Alves <[email protected]>
11163
11164 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11165 (linux_nat_post_attach_wait): Adjust to use
11166 linux_proc_pid_is_stopped.
11167 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11168 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11169 based on pid_is_stopped from both linux-nat.c and
11170 gdbserver/linux-low.c, and renamed.
11171
283002cf
MR
111722012-02-24 Maciej W. Rozycki <[email protected]>
11173
11174 * remote.c (remote_watchpoint_addr_within_range): New function.
11175 (init_remote_ops): Use it.
11176
9b3e86b1
MR
111772012-02-24 Maciej W. Rozycki <[email protected]>
11178
11179 * target.h (target_watchpoint_addr_within_range): Document macro.
11180
e36930bb
PA
111812012-02-24 Pedro Alves <[email protected]>
11182
11183 * stack.c (set_last_displayed_sal): Issue internal_error instead
11184 of warning, and issue it after clearing the last displayed sal.
11185
883bc8d1
PA
111862012-02-24 Jan Kratochvil <[email protected]>
11187 Pedro Alves <[email protected]>
11188
11189 * breakpoint.c (until_break_command): Install breakpoints after
11190 all frame manipulations.
11191
b775012e
LM
111922012-02-24 Luis Machado <[email protected]>
11193
11194 * remote.c (remote_supports_cond_breakpoints): New forward
11195 declaration.
11196 (remote_add_target_side_condition): New function.
11197 (remote_insert_breakpoint): Add target-side breakpoint
11198 conditional if supported.
11199 (remote_insert_hw_breakpoint): Likewise.
11200 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11201 hook.
11202
11203 * target.c (update_current_target): Inherit
11204 to_supports_evaluation_of_breakpoint_conditions.
11205 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11206
11207 * target.h (struct target_ops)
11208 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11209 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11210
11211 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11212 (condition_evaluation_both, condition_evaluation_auto,
11213 condition_evaluation_host, condition_evaluation_target,
11214 condition_evaluation_enums, condition_evaluation_mode_1,
11215 condition_evaluation_mode): New static globals.
11216 (translate_condition_evaluation_mode): New function.
11217 (breakpoint_condition_evaluation_mode): New function.
11218 (gdb_evaluates_breakpoint_condition_p): New function.
11219 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11220 (mark_breakpoint_modified): New function.
11221 (mark_breakpoint_location_modified): New function.
11222 (set_condition_evaluation_mode): New function.
11223 (show_condition_evaluation_mode): New function.
11224 (bp_location_compare_addrs): New function.
11225 (get_first_location_gte_addr): New helper function.
11226 (set_breakpoint_condition): Free condition bytecode if locations
11227 has become unconditional. Call mark_breakpoint_modified (...).
11228 (condition_command): Call update_global_location_list (1) for
11229 breakpoints.
11230 (breakpoint_xfer_memory): Use is_breakpoint (...).
11231 (is_breakpoint): New function.
11232 (parse_cond_to_aexpr): New function.
11233 (build_target_condition_list): New function.
11234 (insert_bp_location): Handle target-side conditional
11235 breakpoints and call build_target_condition_list (...).
11236 (update_inserted_breakpoint_locations): New function.
11237 (insert_breakpoint_locations): Handle target-side conditional
11238 breakpoints.
11239 (bpstat_check_breakpoint_conditions): Add comment.
11240 (bp_condition_evaluator): New function.
11241 (bp_location_condition_evaluator): New function.
11242 (print_breakpoint_location): Print information on where the condition
11243 will be evaluated.
11244 (print_one_breakpoint_location): Likewise.
11245 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11246 breakpoint location.
11247 (force_breakpoint_reinsertion): New functions.
11248 (update_global_location_list): Handle target-side breakpoint
11249 conditions.
11250 Reinsert locations that are already inserted if conditions have
11251 changed.
11252 (bp_location_dtor): Free agent expression bytecode.
11253 (disable_breakpoint): Call mark_breakpoint_modified (...).
11254 Call update_global_location_list (...) with parameter 1 for breakpoints.
11255 (disable_command): Call mark_breakpoint_location_modified (...).
11256 Call update_global_location_list (...) with parameter 1 for breakpoints.
11257 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11258 (enable_command): mark_breakpoint_location_modified (...).
11259 (_initialize_breakpoint): Update documentation and add
11260 condition-evaluation breakpoint subcommand.
11261
11262 * breakpoint.h: Include ax.h.
11263 (condition_list): New data structure.
11264 (condition_status): New enum.
11265 (bp_target_info) <cond_list>: New field.
11266 (bp_location) <condition_changed, cond_bytecode>: New fields.
11267 (is_breakpoint): New prototype.
11268
3788aec7
LM
112692012-02-24 Luis Machado <[email protected]>
11270
11271 * remote.c (remote_state) <cond_breakpoints>: New field.
11272 (PACKET_ConditionalBreakpoints): New enum.
11273 (remote_cond_breakpoint_feature): New function.
11274 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11275 (remote_supports_cond_breakpoints): New function.
11276 (_initialize_remote): Add new packet configuration for
11277 target-side conditional breakpoints.
11278
72895ff6
LM
112792012-02-24 Luis Machado <[email protected]>
11280
11281 * NEWS: Mention target-side conditional breakpoint support,
11282 new condition-evaluation breakpoint subcommand and remote
11283 packet extensions.
11284
dea2aa5f
LM
112852012-02-24 Luis Machado <[email protected]>
11286
11287 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11288 number.
11289
8a8bc27f
TS
112902012-02-24 Thomas Schwinge <[email protected]>
11291
11292 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11293 (after_prologue): Remove.
11294
6b446fdf
TT
112952012-02-23 Tom Tromey <[email protected]>
11296
11297 * jv-valprint.c (java_val_print): Remove dead code.
11298
ef59abfb
TG
112992012-02-23 Tristan Gingold <[email protected]>
11300
a09130f9
PA
11301 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11302 known_tasks_element and known_tasks_length fields.
11303 (read_known_tasks_array): Change argument type. Use pointer type
11304 and number of elements from DATA. Adjust.
11305 (read_known_tasks_list): Likewise.
11306 (get_known_tasks_addr): Remove.
11307 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11308 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11309 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 11310
def166f6
JK
113112012-02-23 Jan Kratochvil <[email protected]>
11312
11313 PR backtrace/13716
11314 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11315 it after set_momentary_breakpoint.
11316
aeaa2474
SA
113172012-02-22 Sterling Augustine <[email protected]>
11318
11319 PR 13689:
11320 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11321
feea76c2
GB
113222012-02-22 Gary Benson <[email protected]>
11323
11324 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11325 (find_slot_in_mapped_hash): Likewise.
11326
f06e05e0
JK
113272012-02-21 Jan Kratochvil <[email protected]>
11328
11329 PR build/13638
11330 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11331 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11332 * configure: Regenerate.
11333
b54a8fd7
PA
113342012-02-21 Tristan Gingold <[email protected]>
11335 Pedro Alves <[email protected]>
11336
11337 * ia64-tdep.c: Do not include libunwind-ia64.h.
11338 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11339 Include libunwind-ia64.h instead of libunwind.h.
11340 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11341 for libunwind.h existence.
11342 * configure, config.in: Regenerate.
11343
dfcee124
AG
113442012-02-21 Anton Gorenkov <[email protected]>
11345
11346 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11347 instead of value_rtti_target_type.
11348 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11349 instead of value_rtti_target_type.
11350 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11351 value_rtti_target_type.
11352 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11353 (value_rtti_target_type): Rename to ...
11354 (value_rtti_indirect_type): ... here and make it indirect. Update
11355 function comment.
11356 * value.c (readjust_indirect_value_type): New function.
11357 (coerce_ref): Support for enclosing type setting for references
11358 with readjust_indirect_value_type.
11359 * value.h (readjust_value_type): New declaration.
11360 (value_rtti_target_type): Rename to ...
11361 (value_rtti_indirect_type): ... here.
11362
02568277
AG
113632012-02-21 Anton Gorenkov <[email protected]>
11364
11365 * MAINTAINERS (Write After Approval): Add myself to the list.
11366
10c07b7e 113672012-02-20 Doug Evans <[email protected]>
28ee876a 11368
d82ea6a8
DE
11369 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11370 Rename objfile_p_char parameter to objfilep.
11371 (build_objfile_section_table): Result is now void. All callers
11372 updated.
11373 * objfiles.h (struct objfile): Tweak comments, whitespace.
11374 (build_objfile_section_table): Update.
11375
28ee876a
DE
11376 * elfread.c (elf_symfile_segments): Fix warning text.
11377
24c79950
TT
113782012-02-20 Tom Tromey <[email protected]>
11379
11380 PR gdb/13498:
11381 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11382 particular set of file names once.
11383 (dw2_map_symbol_filenames): Likewise.
11384
3a9b40b6
JK
113852012-02-20 Jan Kratochvil <[email protected]>
11386
11387 Code cleanup.
11388 * main.c (write_files): Remove the declaration.
11389 (external_editor_command): Move the declaration ...
11390 [GDBTK] (external_editor_command): ... here. Fix the comment.
11391
4d0795ca
TT
113922012-02-20 Tom Tromey <[email protected]>
11393
11394 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11395 extraneous block.
11396
637fd620
TG
113972012-02-20 Tristan Gingold <[email protected]>
11398
11399 * darwin-nat.h (enum darwin_msg_state): Add comments.
11400
6f124894
TG
114012012-02-20 Tristan Gingold <[email protected]>
11402
11403 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11404 value.
11405
2e6e3d9c
JB
114062012-20-18 Joel Brobecker <[email protected]>
11407
11408 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11409 between function description and implementation.
11410
2e8265fd
TT
114112012-02-17 Tom Tromey <[email protected]>
11412
11413 PR python/12070:
11414 * python/py-event.c (event_object_getset): New global.
11415 (event_object_type): Reference it.
11416 * python/py-type.c (field_object_getset): New global.
11417 (field_object_type): Reference it.
11418 * python/python-internal.h (gdb_py_generic_dict): Declare.
11419 * python/py-utils.c (gdb_py_generic_dict): New function.
11420
8544a150 114212012-02-17 Tristan Gingold <[email protected]>
6f124894 11422
8544a150 11423 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 11424
ca193e27
TS
114252012-02-17 Thomas Schwinge <[email protected]>
11426
11427 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11428 TYPE_CALLING_CONVENTION annotation.
11429
e5586183
KB
114302012-02-16 Kevin Buettner <[email protected]>
11431
11432 * MAINTAINERS: Add rx to target ISA section.
11433 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11434 (ALLDEPFILES): Add rx-tdep.c.
11435
7dcd53a0
TT
114362012-02-16 Tom Tromey <[email protected]>
11437
11438 * symfile.c (symbol_file_add_main_1): Use inferior's
11439 symfile_flags.
11440 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11441 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11442 inferior.
11443 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11444 inferior.
11445 (follow_exec): Use inferior's symfile_flags.
11446 * inferior.h (struct inferior) <symfile_flags>: New field.
11447
ddd60447
MF
114482012-02-16 Mike Frysinger <[email protected]>
11449
11450 PR gdb/9734:
11451 * remote-sim.c (gdbsim_create_inferior): Call error() when
11452 sim_create_inferior() fails.
11453
b0d32fb6
TG
114542012-02-16 Josh Matthews <[email protected]>
11455
11456 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11457
9addecb9
TT
114582012-02-16 Tom Tromey <[email protected]>
11459
11460 PR c++/13653:
11461 * thread.c (struct current_thread_cleanup) <was_removable>: New
11462 field.
11463 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11464 (make_cleanup_restore_current_thread): Initialize new field.
11465
a58b110a
KB
114662012-02-15 Kevin Buettner <[email protected]>
11467
11468 * MAINTAINERS: Add rl78 to target ISA section.
11469 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11470 (ALLDEPFILES): Add rl78-tdep.c.
11471 * NEWS: Mention rl78 as a new target.
11472
4cb6da1c
AR
114732012-02-15 Aleksandar Ristovski <[email protected]>
11474
11475 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11476 data.
11477 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11478
3af2590d
TT
114792012-02-15 Tom Tromey <[email protected]>
11480
11481 PR gdb/12659:
11482 * infcmd.c (registers_info): Print just the current register's
11483 name.
11484
c6910659
TT
114852012-02-15 Tom Tromey <[email protected]>
11486
11487 * python/py-symbol.c (sympy_value): Use _().
11488
7cee1e54
PA
114892012-02-15 Pedro Alves <[email protected]>
11490
11491 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11492 output to be like native targets'.
11493 (remote_pid_to_str): Special case the null ptid.
11494
816338b5
SS
114952012-02-14 Stan Shebs <[email protected]>
11496
11497 * NEWS: Mention enable count command.
11498 * breakpoint.h (struct breakpoint): New field enable_count.
11499 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11500 (enable_breakpoint): Add arg to call.
11501 (struct disp_data): New struct.
11502 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11503 (do_map_enable_once_breakpoint): Create a struct and pass it.
11504 (do_map_enable_delete_breakpoint): Ditto.
11505 (do_map_enable_count_breakpoint): New function.
11506 (enable_count_command): New function.
11507 (bpstat_stop_status): Decrement enable_count.
11508 (print_one_breakpoint_location): Report enable count.
11509 (_initialize_breakpoint): Add enable count command.
11510
c47a44f4
KB
115112012-02-14 Kevin Buettner <[email protected]>
11512
11513 * rl78-tdep.c (reggroups.h): Include.
11514 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11515 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11516 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11517 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11518 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11519 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11520 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11521 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11522 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11523 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11524 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11525 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11526 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11527 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11528 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11529 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11530 beginning of register list.
11531 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11532 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11533 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11534 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11535 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11536 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11537 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11538 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11539 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11540 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11541 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11542 the pseudo registers. Rearrange other pseudo registers too so
11543 that the bank registers appear at the end.
11544 (rl78_register_type): Account for the fact that the byte sized
11545 bank registers are now pseudo-registers.
11546 (rl78_register_name): Rearrange the register name array. Make
11547 initial set of raw banked registers inaccessible.
11548 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11549 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11550 case for copying bytes back and forth between raw and pseudo
11551 versions of the banked registers. Update other cases to reflect
11552 the changed names.
11553 (rl78_return_value): Update to account for changed names of
11554 raw registers.
11555 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11556 rl78_register_sim_regno().
11557
e4569f1e
KB
115582012-02-14 Kevin Buettner <[email protected]>
11559
11560 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11561 the name parameter being passed to find_pc_partial_function().
11562
7a05aae7
JK
115632012-02-14 Jan Kratochvil <[email protected]>
11564
11565 * MAINTAINERS: Step down from being ia64 target maintainer.
11566
11fde611
JK
115672012-02-12 Jan Kratochvil <[email protected]>
11568
11569 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11570 compilation warning.
11571
57008375
JK
115722012-02-12 Jan Kratochvil <[email protected]>
11573
11574 Fix crash on loaded shlibs without loaded exec_bfd.
11575 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11576 (set_section_command): Replace exec_bfd by p->bfd.
11577
ff3c9849
TT
115782012-02-10 Tom Tromey <[email protected]>
11579
11580 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11581 when we have a C++ qualified name.
11582
db2b9fdd
PA
115832012-02-10 Pedro Alves <[email protected]>
11584
11585 * inferior.c (inferior_pid_to_str): New.
11586 (print_inferior, inferior_command): Use it.
11587
12cd34f3
PA
115882012-02-10 Pedro Alves <[email protected]>
11589
11590 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11591 the test CFLAGS.
11592 * configure: Regenerate.
11593
e871429d
JK
115942012-02-10 Jan Kratochvil <[email protected]>
11595
11596 * linespec.c (decode_line_internal): Fix comment correctness.
11597
1916efaf
PA
115982012-02-09 Valery Khromov <[email protected]>
11599
11600 PR gdb/12953
11601 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11602 * amd64bsd-nat.c: Add support for debug registers (adapted from
11603 i386bsd-nat.c).
11604 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11605 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11606 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11607 (amd64bsd_dr_get_control): New functions.
11608 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11609 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11610 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11611 watchpoints initialization.
11612 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11613
f4859d94
JK
116142012-02-09 Jan Kratochvil <[email protected]>
11615
11616 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11617 flds_bnds.fields.
11618 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11619
c56a97f9
JK
116202012-02-09 Jan Kratochvil <[email protected]>
11621
11622 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11623
1a119f36
JB
116242012-02-08 Joel Brobecker <[email protected]>
11625
11626 * language.h (symbol_name_cmp_ftype): Renames
11627 symbol_name_match_p_ftype.
11628 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11629 la_get_symbol_name_match_p.
11630 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11631 ada_get_symbol_name_match_p. Update comment.
11632 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11633 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11634 Renames symbol_name_match_p. Update field type.
11635 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11636 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11637 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11638 "la_get_symbol_name_cmp" in comments.
11639 * language.c: Likewise.
11640
c71bb1cf
RO
116412012-02-08 Rainer Orth <[email protected]>
11642
11643 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11644 %eflags offset.
11645 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11646 (amd64_sol2_gregset32_reg_offs): Likewise.
11647
4b2d20a5
TG
116482012-02-08 Joel Brobecker <[email protected]>
11649
11650 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11651 of the returned BFD is allocated by GDB.
11652
f0823d2c
TT
116532012-02-07 Tom Tromey <[email protected]>
11654
11655 PR python/12027:
11656 * python/python-internal.h (frame_object_type): Declare.
11657 * python/py-symbol.c (sympy_needs_frame): New function.
11658 (sympy_value): New function.
11659 (symbol_object_getset): Add "needs_frame".
11660 (symbol_object_methods): Add "value".
11661 * python/py-frame.c (frame_object_type): No longer static.
11662
64e7d9dd
TT
116632012-02-07 Tom Tromey <[email protected]>
11664
11665 PR python/13599:
11666 * python/py-symbol.c (sympy_line): New function.
11667 (symbol_object_getset): Add "line".
11668
1d6b2d2b
TT
116692012-02-07 Tom Tromey <[email protected]>
11670
11671 * charset.c (find_charset_names): Check 'in' against NULL.
11672
0d5cff50
DE
116732012-02-06 Doug Evans <[email protected]>
11674
11675 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11676 and fields.name members from char * to const char *. All uses updated.
11677 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11678 from char * to const char *. All uses updated.
11679 (type_name_no_tag): Update.
11680 (lookup_unsigned_typename, lookup_signed_typename): Update.
11681 * gdbtypes.c (type_name_no_tag): Change result type
11682 from char * to const char *. All callers updated.
11683 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11684 name parameter from char * to const char *.
11685 * symtab.h (struct cplus_specific): Change type of demangled_name
11686 member from char * to const char *. All uses updated.
11687 (struct general_symbol_info): Change type of name and
11688 mangled_lang.demangled_name members from char * to const char *.
11689 All uses updated.
11690 (symbol_get_demangled_name, symbol_natural_name): Update.
11691 (symbol_demangled_name, symbol_search_name): Update.
11692 * symtab.c (symbol_get_demangled_name): Change result type
11693 from char * to const char *. All callers updated.
11694 (symbol_natural_name, symbol_demangled_name): Ditto.
11695 (symbol_search_name): Ditto.
11696 (completion_list_add_name): Change type of symname,sym_text,
11697 text,word parameters from char * to const char *.
11698 (completion_list_objc_symbol): Change type of sym_text,
11699 text,word parameters from char * to const char *.
11700 * ada-lang.c (find_struct_field): Change type of name parameter
11701 from char * to const char *.
11702 (encoded_ordered_before): Similarly for N0,N1 parameters.
11703 (old_renaming_is_invisible): Similarly for function_name parameter.
11704 (ada_type_name): Change result type from char * to const char *.
11705 All callers updated.
11706 * ada-lang.h (ada_type_name): Update.
11707 * buildsym.c (hashname): Change type of name parameter
11708 from char * to const char *.
11709 * buildsym.h (hashname): Update.
11710 * dbxread.c (end_psymtab): Change type of include_list parameter
11711 from char ** to const char **.
11712 * dwarf2read.c (determine_prefix): Change result type
11713 from char * to const char *. All callers updated.
11714 * f-lang.c (find_common_for_function): Change type of name, funcname
11715 parameters from char * to const char *.
11716 * f-lang.c (find_common_for_function): Update.
11717 * f-valprint.c (list_all_visible_commons): Change type of funcname
11718 parameters from char * to const char *.
11719 * gdbarch.sh (static_transform_name): Change type of name parameter
11720 and result from char * to const char *.
11721 * gdbarch.c: Regenerate.
11722 * gdbarch.h: Regenerate.
11723 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11724 of name parameter from char * to const char *.
11725 * jv-lang.c (java_primitive_type_from_name): Ditto.
11726 (java_demangled_signature_length): Similarly for signature parameter.
11727 (java_demangled_signature_copy): Ditto.
11728 (java_demangle_type_signature): Ditto.
11729 * jv-lang.h (java_primitive_type_from_name): Update.
11730 (java_demangle_type_signature): Update.
11731 * objc-lang.c (specialcmp): Change type of a,b parameters
11732 from char * to const char *.
11733 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11734 from char * to const char *. All callers updated.
11735 * p-lang.h (is_pascal_string_type): Update.
11736 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11737 of name parameter from char * to const char *.
11738 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11739 * utils.c (fprintf_symbol_filtered): Ditto.
11740 * defs.h (fprintf_symbol_filtered): Update.
11741 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11742 * stabsread.h (end_psymtab): Update.
11743 * stack.c (find_frame_funname): Change type of funname parameter
11744 from char ** to const char **.
11745 * stack.h (find_frame_funname): Update.
11746 * typeprint.c (type_print): Change type of varstring parameter
11747 from char * to const char *.
11748 * value.h (type_print): Update.
11749 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11750 from char * to const char *. All callers updated.
11751 (xcoff_end_psymtab): Change type of include_list parameter
11752 from char ** to const char **. All callers updated.
11753 (swap_sym): Similarly for name parameter. All callers updated.
11754 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11755 Use xstrdup.
11756 (process_coff_symbol): Use xstrdup.
11757 * stabsread.c (stabs_method_name_from_physname): Renamed from
11758 update_method_name_from_physname. Change result type from void
11759 to char *. All callers updated.
11760 (read_member_functions): In has_destructor case, store name in objfile
11761 obstack instead of malloc space. In !has_stub case, fix mem leak.
11762
5579a92e
TT
117632012-02-06 Luca Pizzamiglio <[email protected]>
11764
11765 * configure: Rebuild.
11766 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11767 LDFLAGS.
11768
9058f767
KB
117692012-02-03 Kevin Buettner <[email protected]>
11770
11771 * configure.tgt (rl78-*-elf): New target.
11772 * rl78-tdep.c: New file.
11773
5b37825d
PW
117742012-02-03 Philippe Waroquiers <[email protected]>
11775
11776 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11777 and continue the loop. Add QUIT statement.
11778
e009ee71
TT
117792012-02-03 Tom Tromey <[email protected]>
11780
11781 PR gdb/13596:
11782 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11783 bfd_lookup_symbol_from_symtab.
11784 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11785 gdb_bfd_lookup_symbol_from_symtab.
11786
f7e44f65
JB
117872012-02-03 Joel Brobecker <[email protected]>
11788
11789 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11790 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11791 symbol. Add assertion that sym2 is never NULL.
11792
2c02bd72
DE
117932012-02-02 Doug Evans <[email protected]>
11794
11795 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11796 "name" parameter to const char ** from char **. All callers updated.
11797 (find_pc_partial_function): Ditto.
11798 (cache_pc_function_name): Change type to const char * from char *.
11799 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11800 (find_pc_partial_function): Update.
11801 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11802 type of "name" parameter to const char * from char *.
11803 All uses updated.
11804 * arch-utils.c (generic_in_solib_return_trampoline): Change
11805 type of "name" parameter to const char * from char *.
11806 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11807 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11808 type of "name" parameter to const char * from char *.
11809 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11810 * gdbarch.c: Regenerate.
11811 * gdbarch.h: Regenerate.
11812 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11813 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11814 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11815 type of "name" parameter to const char * from char *.
11816 * skip.c (skip_function_pc): Ditto.
11817 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11818 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11819 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11820 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11821 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11822 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11823 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11824 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11825 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11826
e886a173
PA
118272012-02-02 Pedro Alves <[email protected]>
11828
11829 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11830 the current inferior has no execution. Make sure the current
11831 remote process matches gdb's current inferior.
11832
c709a7c2
TT
118332012-02-02 Tom Tromey <[email protected]>
11834
11835 PR gdb/13405:
11836 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11837 read-only memory.
11838
f149aabd
TT
118392012-02-02 Tom Tromey <[email protected]>
11840
11841 PR gdb/9307:
11842 * symtab.c (lookup_language_this): Set block_found.
11843
03bef283
TT
118442012-02-01 Tom Tromey <[email protected]>
11845
11846 PR gdb/13431:
11847 * jit.c (struct jit_inferior_data): Rewrite.
11848 (struct jit_objfile_data): New.
11849 (get_jit_objfile_data): New function.
11850 (add_objfile_entry): Update.
11851 (jit_read_descriptor): Return int. Replace descriptor_addr
11852 argument with inf_data. Update. Don't call error.
11853 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11854 descriptor here.
11855 (jit_inferior_init): Don't look up descriptor. Don't call error.
11856 (jit_reset_inferior_data_and_breakpoints)
11857 (jit_inferior_created_observer): Remove.
11858 (jit_inferior_exit_hook): Update.
11859 (jit_executable_changed_observer): Remove.
11860 (jit_event_handler): Update.
11861 (free_objfile_data): Reset inferior data if needed.
11862 (_initialize_jit): Update.
11863
f0bbc364
TT
118642012-02-01 Tom Tromey <[email protected]>
11865
11866 * jit.c (bfd_open_from_target_memory): Move higher in file.
11867
47c1316c
TG
118682012-02-01 Tristan Gingold <[email protected]>
11869
11870 * libunwind-frame.c (libunwind_load): Display message if dlopen
11871 failed.
11872
8e704927
GB
118732012-02-01 Gary Benson <[email protected]>
11874
09c7a31f 11875 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11876 (iterate_over_symbols): Use the above.
11877 * symtab.c (iterate_over_symbols): Likewise.
11878 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11879 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11880 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11881 (iterate_name_matcher): Document return values.
11882 (collect_one_symbol): Likewise.
11883 (collect_function_symbols): Likewise.
11884 (collect_symbols): Likewise.
11885
d9680e73
TT
118862012-02-01 Tom Tromey <[email protected]>
11887
11888 * ada-lang.c (resolve_subexp): Update.
11889 (ada_lookup_symbol_list): Add 'full_search' argument.
11890 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11891 ada_lookup_symbol_list.
11892 (ada_lookup_encoded_symbol): Update.
11893 (get_var_value): Update.
11894 * ada-exp.y (block_lookup): Update.
11895 (write_var_or_type): Update.
11896 (write_name_assoc): Update.
11897 * ada-lang.h (ada_lookup_symbol_list): Update.
11898
72e1143f
TT
118992012-01-31 Tom Tromey <[email protected]>
11900
11901 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11902 comment.
11903
ab2d2ad3
DE
119042012-01-31 Doug Evans <[email protected]>
11905
11906 * symtab.h: Remove outdated comment.
e9111bf7 11907 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11908
bc884eba
JB
119092012-02-01 Josh Matthews <[email protected]> (tiny change)
11910
11911 Fix build error in Darwin port.
11912 * i386-darwin-nat.c: Include i386-nat.h.
11913
8fc3fc34
TT
119142012-01-30 Tom Tromey <[email protected]>
11915
11916 PR breakpoints/13568:
11917 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11918 argument. Check for recursive includes.
11919 (dwarf_decode_macros): Create an include hash.
11920
5d853008
ME
119212012-01-30 Michael Eager <[email protected]>
11922
11923 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11924 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11925 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11926 (powerpc_linux_in_plt_stub): New function.
11927 (powerpc_linux_in_dynsym_resolve_code): New function.
11928 (ppc_skip_trampoline_code): New function.
11929 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11930 Use glibc_skip_solib_resolver.
11931
40478521
JK
119322012-01-28 Jan Kratochvil <[email protected]>
11933
11934 Code cleanup: Make 1440 bytes of data segment read-only.
11935 * arch-utils.c (endian_enum): Make it const char *const [].
11936 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11937 Likewise.
11938 * breakpoint.c (always_inserted_enums): Likewise.
11939 * cli/cli-cmds.c (script_ext_enums): Likewise.
11940 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11941 enumlist parameter const char *const *.
11942 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11943 const char *const *.
11944 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11945 parameter const char *const *.
11946 * cris-tdep.c (cris_modes): Make it const char *const [].
11947 * filesystem.c (target_file_system_kinds): Likewise.
11948 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11949 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11950 (can_use_displaced_stepping_enum, scheduler_enums)
11951 (exec_direction_names): Likewise.
11952 * language.c (_initialize_language): Make the type_or_range_names and
11953 case_sensitive_names variables const char *const [].
11954 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11955 * python/python.c (python_excp_enums): Likewise.
11956 * remote.c (interrupt_sequence_modes): Likewise.
11957 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11958 * serial.c (logbase_enums): Likewise.
11959 * sh-tdep.c (sh_cc_enum): Likewise.
11960 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11961 Likewise.
11962 * symtab.c (multiple_symbols_modes): Likewise.
11963 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11964 Likewise.
11965 * utils.c (internal_problem_modes): Likewise.
11966
b3b8b934
JK
119672012-01-27 Jan Kratochvil <[email protected]>
11968
11969 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11970 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11971 result.
11972
8c85a4e2
DE
119732012-01-27 Doug Evans <[email protected]>
11974
11975 * configure.ac (with_python): Fix absolute path handling for win32.
11976 * configure: Regenerate.
11977
78d8b4d7
DE
119782012-01-26 Doug Evans <[email protected]>
11979
eca864fe
DE
11980 * symtab.c: Whitespace cleanup, no code changes.
11981
7e082072
DE
11982 * symtab.c (lookup_symbol_in_language): Improve comment.
11983 (lookup_symbol_aux): Fix comment.
11984
7dc25483
DE
11985 * psymtab.c (add_psymbol_to_list): Result is now "void".
11986 * psympriv.h (add_psymbol_to_list): Update.
11987
78d8b4d7
DE
11988 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11989
4c63965b
JK
119902012-01-26 Jan Kratochvil <[email protected]>
11991
11992 Do not open script filenames twice.
11993 * cli/cli-cmds.c (source_script_from_stream): Pass to
11994 source_python_script also STREAM.
11995 * python/py-auto-load.c (source_section_scripts): Pass to
11996 source_python_script_for_objfile also STREAM.
11997 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11998 also INPUT.
11999 * python/python-internal.h (source_python_script_for_objfile): New
12000 parameter file, rename parameter file to filename.
12001 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
12002 instead if !_WIN32. Update the function comment.
12003 (source_python_script, source_python_script_for_objfile)
12004 (source_python_script): New parameter file, rename parameter file to
12005 filename. Pass FILENAME to python_run_simple_file.
12006 * python/python.h (source_python_script): New parameter file, rename
12007 parameter file to filename.
12008
88f38a04
PA
120092012-01-26 Pedro Alves <[email protected]>
12010
12011 * corelow.c (core_has_fake_pid): Delete.
12012 (core_close): Delete references to `core_has_fake_pid'.
12013 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
12014 (core_open): Delete references to `core_has_fake_pid'.
12015 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
12016 the removed global.
12017
e078317b
JB
120182012-01-26 Joel Brobecker <[email protected]>
12019
12020 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
12021 Remove language parameter from name_matcher. Adjust the comment.
12022 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
12023 Remove language parameter.
12024 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
12025 * linespec.c (iterate_name_matcher): Likewise.
12026 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
12027 name_matcher. Adjust call accordingly.
12028 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
12029 (maintenance_check_symtabs): Adjust type of parameter "fun".
12030 * psymtab.h (maintenance_check_symtabs): Likewise.
12031
74ccd7f5
JB
120322012-01-26 Joel Brobecker <[email protected]>
12033
12034 * language.h (symbol_name_match_p_ftype): New typedef.
12035 (struct language_defn): Replace field la_symbol_name_compare
12036 by la_get_symbol_name_match_p.
12037 * ada-lang.c (ada_get_symbol_name_match_p): New function.
12038 (ada_language_defn): Use it.
12039 * linespec.c (struct symbol_matcher_data): New type.
12040 (iterate_name_matcher): Rewrite.
12041 (iterate_over_all_matching_symtabs): Pass a pointer to
12042 a symbol_matcher_data struct to expand_symtabs_matching
12043 instead of just the lookup name.
12044 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
12045 opencl-lang.c, p-lang.c, language.c: Delete field
12046 la_symbol_name_compare, and replace by NULL for new field
12047 la_get_symbol_name_match_p.
12048 * symfile.h (struct quick_symbol_functions): Update comment.
12049
5d268276
TT
120502012-01-25 Tom Tromey <[email protected]>
12051
12052 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
12053 dereferencing.
12054
edcc5120
TT
120552012-01-24 Tom Tromey <[email protected]>
12056
12057 PR symtab/12406:
12058 * solib.c (update_solib_list): Update the program space's
12059 added_solibs and deleted_solibs fields.
12060 * progspace.h (struct program_space) <added_solibs,
12061 deleted_solibs>: New fields.
12062 (clear_program_space_solib_cache): Declare.
12063 * progspace.c (release_program_space): Call
12064 clear_program_space_solib_cache.
12065 (clear_program_space_solib_cache): New function.
12066 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
12067 bpstat_stop_status. Use handle_solib_event.
12068 * breakpoint.c: Include gdb_regex.h.
12069 (print_solib_event): New function.
12070 (bpstat_print): Use print_solib_event.
12071 (bpstat_stop_status): Add special case for bp_shlib_event.
12072 (handle_solib_event): New function.
12073 (bpstat_what): Use handle_solib_event.
12074 (struct solib_catchpoint): New.
12075 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
12076 (breakpoint_hit_catch_solib, check_status_catch_solib)
12077 (print_it_catch_solib, print_one_catch_solib)
12078 (print_mention_catch_solib, print_recreate_catch_solib): New
12079 functions.
12080 (catch_solib_breakpoint_ops): New global.
12081 (catch_load_or_unload, catch_load_command_1)
12082 (catch_unload_command_1): New functions.
12083 (internal_bkpt_check_status): Add special case for
12084 bp_shlib_event.
12085 (internal_bkpt_print_it): Use print_solib_event.
12086 (initialize_breakpoint_ops): Initialize
12087 catch_solib_breakpoint_ops.
12088 (_initialize_breakpoint): Register "catch load" and "catch
12089 unload".
12090 * breakpoint.h (handle_solib_event): Declare.
12091 * NEWS: Add entry for "catch load" and "catch unload".
12092
fa864999
TT
120932012-01-24 Tom Tromey <[email protected]>
12094
12095 * ada-lang.c: Include gdb_vecs.h.
12096 * charset.c: Include gdb_vecs.h.
12097 * tracepoint.h: Include gdb_vecs.h.
12098 * gdb_vecs.h: New file.
12099
f90263c1
TT
121002012-01-24 Pedro Alves <[email protected]>
12101
12102 * breakpoint.c (breakpoint_hit_catch_fork)
12103 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12104 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12105 * infrun.c (inferior_has_forked, inferior_has_vforked)
12106 (inferior_has_execd, inferior_has_called_syscall): Delete.
12107 (handle_syscall_event): Get syscall_number from the execution
12108 control state's wait status.
12109 (wait_for_inferior): Don't clear syscall_number.
12110
09ac7c10
TT
121112012-01-24 Pedro Alves <[email protected]>
12112
12113 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12114 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12115 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12116 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12117 `ws' parameter.
12118 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12119 false for events other than TARGET_SIGNAL_TRAP.
12120 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12121 Add `ws' parameter.
12122 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12123 events other than TARGET_SIGNAL_TRAP.
12124 (tracepoint_breakpoint_hit): Add `ws' parameter.
12125 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12126 parameter.
12127 (bpstat_stop_status): Same.
12128 (pc_at_non_inline_function): Same.
12129 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12130 to pass the current event's waitstatus to bpstat_stop_status
12131 and pc_at_non_inline_function.
12132
86eb7e95
JK
121332012-01-24 Jan Kratochvil <[email protected]>
12134
12135 Code cleanup.
12136 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12137 Update the function comment for it.
12138 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12139 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12140 for STREAM.
12141
a9b3a50f
PA
121422012-01-24 Pedro Alves <[email protected]>
12143
12144 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12145 outside `bs->stop' block.
12146 (bpstat_what): Rework bp_shlib_event handling.
12147 (internal_bkpt_check_status): If the breakpoint is a
12148 bp_shlib_event, then set bs->stop and bs->print if
12149 stop_on_solib_events is set.
12150
53fe1783
GB
121512012-01-24 Gary Benson <[email protected]>
12152
12153 Delete #if 0'd out code.
12154 * stack.c (print_frame_label_vars): Remove.
12155 (catch_info): Likewise.
12156 (_initialize_stack): Remove "info catch" command.
12157 * NEWS: Mention the above.
12158
49c62f2e
PA
121592012-01-24 Pedro Alves <[email protected]>
12160
12161 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12162 it.
12163 (remote_notice_new_inferior): If the remote end doesn't support
12164 the multiprocess extensions, then the PID is fake.
12165 (add_current_inferior_and_thread): New.
12166 (remote_start_remote): Use it.
12167 (extended_remote_attach_1): Adjust.
12168 (extended_remote_create_inferior_1): Use
12169 add_current_inferior_and_thread.
12170
d0d8b0c6
JK
121712012-01-24 Jan Kratochvil <[email protected]>
12172
12173 Fix watchpoints to be specific for each inferior.
12174 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12175 current_program_space.
12176 * i386-nat.c (i386_inferior_data_cleanup): New.
12177 (i386_inferior_data_get): Replace variable inf_data_local by an
12178 inferior_data call.
12179 (i386_use_watchpoints): Initialize i386_inferior_data.
12180 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12181 specific iterate_over_lwps.
12182
4403d8e9
JK
121832012-01-24 Jan Kratochvil <[email protected]>
12184
12185 Fix watchpoints across inferior fork.
12186 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12187 comment for linux_nat_iterate_watchpoint_lwps.
12188 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12189 linux_nat_iterate_watchpoint_lwps.
12190 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12191 * i386-linux-nat.c (update_debug_registers_callback): Update the
12192 comment for linux_nat_iterate_watchpoint_lwps.
12193 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12194 linux_nat_iterate_watchpoint_lwps.
12195 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12196 * i386-nat.c: Include inferior.h.
12197 (dr_mirror): Remove.
12198 (i386_inferior_data, struct i386_inferior_data)
12199 (i386_inferior_data_get): New.
12200 (i386_debug_reg_state): Use i386_inferior_data_get.
12201 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12202 (i386_insert_watchpoint, i386_remove_watchpoint)
12203 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12204 (i386_remove_hw_breakpoint): New variable state, use
12205 i386_debug_reg_state instead of DR_MIRROR.
12206 * linux-nat.c (delete_lwp): New declaration.
12207 (num_lwps): Move here from downwards.
12208 (delete_lwp_cleanup): New.
12209 (linux_child_follow_fork): Create new child_lp, call
12210 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12211 PTRACE_DETACH.
12212 (num_lwps): Move upwards.
12213 (linux_nat_iterate_watchpoint_lwps): New.
12214 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12215 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12216
2992c9a7 122172012-01-24 Joel Brobecker <[email protected]>
12218
12219 GDB 7.4 released.
12220
e360902b
PA
122212012-01-23 Pedro Alves <[email protected]>
12222
12223 * top.c (caution): Rename to ...
12224 (confirm): ... this.
12225 (show_caution): Rename to ...
12226 (show_confirm): ... this.
12227 (quit_cover): Adjust.
12228 (init_main): Adjust.
12229 * top.h (caution): Rename to ...
12230 (confirm): ... this.
12231 * utils.c (internal_vproblem, defaulted_query): Adjust.
12232
050a2e1d
PA
122332012-01-23 Pedro Alves <[email protected]>
12234
12235 * top.c (caution): Update comment.
12236 (execute_command): Don't consider the current value of `caution'.
12237
77a35dd8
JK
122382012-01-23 Jan Kratochvil <[email protected]>
12239
12240 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12241
a71b5a38
UW
122422012-01-23 Ulrich Weigand <[email protected]>
12243
12244 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12245 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12246 * target.c (target_fileio_pwrite): Remove buffer address from
12247 debug output.
12248 (target_fileio_pread): Likewise.
12249
d99bd577
UW
122502012-01-20 Ulrich Weigand <[email protected]>
12251
12252 * NEWS: Document remote "info proc" and "generate-core-file".
12253
35c2fab7
UW
122542012-01-20 Ulrich Weigand <[email protected]>
12255
12256 * gdbarch.sh (find_memory_regions): New callback.
12257 * gdbarch.c, gdbarch.h: Regenerate.
12258
12259 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12260 callback before falling back to target method.
12261
12262 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12263 (linux_target_install_ops): No longer install it.
12264
12265 * linux-tdep.c (linux_find_memory_regions): New function.
12266 (linux_init_abi): Install it.
12267
6432734d
UW
122682012-01-20 Ulrich Weigand <[email protected]>
12269
12270 * gdbarch.sh (make_corefile_notes): New architecture callback.
12271 * gdbarch.c: Regenerate.
12272 * gdbarch.h: Likewise.
12273
12274 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12275 before target_make_corefile_notes. If NULL is returned, the
12276 target does not support core file generation.
12277
12278 * linux-nat.c: Include "linux-tdep.h".
12279 (find_signalled_thread, find_stop_signal): Remove.
12280 (linux_nat_do_thread_registers): Likewise.
12281 (struct linux_nat_corefile_thread_data): Likewise.
12282 (linux_nat_corefile_thread_callback): Likewise.
12283 (iterate_over_spus): Likewise.
12284 (struct linux_spu_corefile_data): Likewise.
12285 (linux_spu_corefile_callback): Likewise.
12286 (linux_spu_make_corefile_notes): Likewise.
12287 (linux_nat_collect_thread_registers): New function.
12288 (linux_nat_make_corefile_notes): Replace contents by call to
12289 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12290 as native-only callback.
12291
12292 * linux-tdep.h: Include "bfd.h".
12293 (struct regcache): Add forward declaration.
12294 (linux_collect_thread_registers_ftype): New typedef.
12295 (linux_make_corefile_notes): Add prototype.
12296 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12297 "regset.h", and "elf-bfd.h".
12298 (find_signalled_thread, find_stop_signal): New functions.
12299 (linux_spu_make_corefile_notes): Likewise.
12300 (linux_collect_thread_registers): Likewise.
12301 (struct linux_corefile_thread_data): New data structure.
12302 (linux_corefile_thread_callback): New funcion.
12303 (linux_make_corefile_notes): Likewise.
12304 (linux_make_corefile_notes_1): Likewise.
12305 (linux_init_abi): Install it.
12306
3030c96e
UW
123072012-01-20 Ulrich Weigand <[email protected]>
12308
12309 * gdbarch.sh (info_proc): New callback.
12310 * gdbarch.c, gdbarch.h: Regenerate.
12311
12312 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12313 before falling back to the target info_proc callback.
12314
12315 * linux-nat.c: Do not include "cli/cli-utils.h".
12316 (linux_nat_info_proc): Remove.
12317 (linux_target_install_ops): No longer install it.
12318
12319 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12320 (read_mapping): New function.
12321 (linux_info_proc): Likewise.
12322 (linux_init_abi): Install it.
12323
145b16a9
UW
123242012-01-20 Ulrich Weigand <[email protected]>
12325
12326 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12327 * infcmd.c: (info_proc_cmd_1): New function.
12328 (info_proc_cmd): New function, moved here from equivalent routine
12329 orignally in linux-nat.c.
12330 (info_proc_cmd_mappings): Likewise.
12331 (info_proc_cmd_stat): Likewise.
12332 (info_proc_cmd_status): Likewise.
12333 (info_proc_cmd_cwd): Likewise.
12334 (info_proc_cmd_cmdline): Likewise.
12335 (info_proc_cmd_exe): Likewise.
12336 (info_proc_cmd_all): Likewise.
12337 (_initialize_infcmd): Install "info proc" command and subcommands.
12338
12339 * target.h (struct target_ops): Add to_info_proc.
12340 (target_info_proc): Add prototype.
12341 * target.c (target_info_proc): New function.
12342
12343 * procfs.c (procfs_info_proc): Add prototype.
12344 (info_proc_cmd): Rename into ...
12345 (procfs_info_proc): ... this. Update argument types as appropriate
12346 for a to_info_proc implementation. Handle "what" argument.
12347 (procfs_target): Install procfs_info_proc.
12348 (_initialize_procfs): No longer install "info proc" command.
12349
12350 * linux-nat.c: (enum info_proc_what): Remove.
12351 (linux_nat_info_proc_cmd_1): Rename into ...
12352 (linux_nat_info_proc): ... this. Update argument types as appropriate
12353 for a to_info_proc implementation.
12354 (linux_nat_info_proc_cmd): Remove.
12355 (linux_nat_info_proc_cmd_mappings): Likewise.
12356 (linux_nat_info_proc_cmd_stat): Likewise.
12357 (linux_nat_info_proc_cmd_status): Likewise.
12358 (linux_nat_info_proc_cmd_cwd): Likewise.
12359 (linux_nat_info_proc_cmd_cmdline): Likewise.
12360 (linux_nat_info_proc_cmd_exe): Likewise.
12361 (linux_nat_info_proc_cmd_all): Likewise.
12362 (linux_target_install_ops): Install linux_nat_info_proc.
12363 (_initialize_linux_nat): No longer install "info proc" command
12364 and subcommands.
12365
b9e7b9c3
UW
123662012-01-20 Ulrich Weigand <[email protected]>
12367
12368 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12369 * config.in, configure: Regenerate.
12370
12371 * target.h (struct target_ops): Add to_fileio_readlink.
12372 (target_fileio_readlink): Add prototype.
12373 * target.c (target_fileio_readlink): New function.
12374
12375 * inf-child.c: Conditionally include <sys/param.h>.
12376 (inf_child_fileio_readlink): New function.
12377 (inf_child_target): Install it.
12378
12379 * remote.c (PACKET_vFile_readlink): New enum value.
12380 (remote_hostio_readlink): New function.
12381 (init_remote_ops): Install it.
12382 (_initialize_remote): Handle vFile:readlink packet type.
12383
7313baad
UW
123842012-01-20 Pedro Alves <[email protected]>
12385 Ulrich Weigand <[email protected]>
12386
12387 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12388 * config.in, configure: Regenerate.
12389
12390 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12391 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12392 (target_fileio_open): Add prototype.
12393 (target_fileio_pwrite): Likewise.
12394 (target_fileio_pread): Likewise.
12395 (target_fileio_close): Likewise.
12396 (target_fileio_unlink): Likewise.
12397 (target_fileio_read_alloc): Likewise.
12398 (target_fileio_read_stralloc): Likewise.
12399
12400 * target.c: Include "gdb/fileio.h".
12401 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12402 (default_fileio_target): New function.
12403 (target_fileio_open): Likewise.
12404 (target_fileio_pwrite): Likewise.
12405 (target_fileio_pread): Likewise.
12406 (target_fileio_close): Likewise.
12407 (target_fileio_unlink): Likewise.
12408 (target_fileio_close_cleanup): Likewise.
12409 (target_fileio_read_alloc_1): Likewise.
12410 (target_fileio_read_alloc): Likewise.
12411 (target_fileio_read_stralloc): Likewise.
12412
12413 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12414 <fcntl.h>, and <unistd.h>.
12415 (inf_child_fileio_open_flags_to_host): New function.
12416 (inf_child_errno_to_fileio_error): Likewise.
12417 (inf_child_fileio_open): Likewise.
12418 (inf_child_fileio_pwrite): Likewise.
12419 (inf_child_fileio_pread): Likewise.
12420 (inf_child_fileio_close): Likewise.
12421 (inf_child_fileio_unlink): Likewise.
12422 (inf_child_target): Install to_fileio routines.
12423
12424 * remote.c (init_remote_ops): Install to_fileio routines.
12425
901f9912
UW
124262012-01-20 Pedro Alves <[email protected]>
12427 Ulrich Weigand <[email protected]>
12428
12429 * remote.c (remote_multi_process_p): Only check for multi-process
12430 protocol feature, do not check for extended protocol.
12431 (remote_supports_multi_process): Check for extended protocol here.
12432 (set_general_process): Likewise.
12433 (extended_remote_kill): Likewise.
12434 (remote_pid_to_str): Likewise.
12435 (remote_query_supported): Always query multiprocess mode.
12436
e714e1bf
UW
124372012-01-20 Pedro Alves <[email protected]>
12438 Ulrich Weigand <[email protected]>
12439
12440 * inferior.h (struct inferior): Add fake_pid_p.
12441 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12442 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12443 magic_null_ptid since the remote side doesn't provide a real PID.
12444
50897289
TT
124452012-01-19 Tom Tromey <[email protected]>
12446
12447 * NEWS: Combine the two Python sections.
12448
1afc2033
JK
124492012-01-19 Jan Kratochvil <[email protected]>
12450
12451 * target.h (target_close): Update comment on the target's unpush state.
12452
305436e0
PA
124532012-01-19 Pedro Alves <[email protected]>
12454
12455 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12456 linux_nat_async directly instead of going through the target
12457 vector.
12458 * target.c (unpush_target): Close target after unpushing it, not
12459 before.
12460
49323895
GB
124612012-01-19 Gary Benson <[email protected]>
12462
12463 * mdebugread.c (sort_blocks): Replace integer constants with ones
12464 derived from FIRST_LOCAL_BLOCK.
12465
1db33378
PP
124662012-01-18 Paul Pluzhnikov <[email protected]>
12467 Jan Kratochvil <[email protected]>
12468
12469 PR gdb/9538
12470 * symfile.c (find_separate_debug_file): New function.
12471 (terminate_after_last_dir_separator): Likewise.
12472 (find_separate_debug_file_by_debuglink): Also try realpath.
12473 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12474 * configure: Regenerate.
12475 * config.in: Regenerate.
12476
f83d8a90
DE
124772012-01-18 Doug Evans <[email protected]>
12478
12479 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12480 (main.o): Remove rule.
12481 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12482 (--with-sysroot): Rewrite.
12483 * configure: Regenerate.
12484 * config.in: Regenerate.
12485
2dbca4d6
SDJ
124862012-01-18 Sergio Durigan Junior <[email protected]>
12487
12488 * parse.c (initialize_expout): New function.
12489 (reallocate_expout): Likewise.
12490 (parse_exp_in_context): Use `initialize_expout' and
12491 `reallocate_expout' when appropriate.
12492
0695b514
PA
124932012-01-18 Pedro Alves <[email protected]>
12494
12495 * record.c (struct record_breakpoint, record_breakpoint_p)
12496 (record_breakpoints): New.
12497 (record_insert_breakpoint, record_remove_breakpoint): Manage
12498 record breakpoints list. Only remove breakpoints from the
12499 inferior if they had been inserted there in the first place.
12500
136e1c30
DE
125012012-01-17 Doug Evans <[email protected]>
12502
12503 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12504 if we know we don't have a file name to look for.
12505
c0bf857d
PA
125062012-01-17 Pedro Alves <[email protected]>
12507
12508 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12509 the frame's stop reason is UNWIND_UNAVAILABLE.
12510
b486de60
JK
125112012-01-17 Jan Kratochvil <[email protected]>
12512
12513 Fix compilation error.
12514 * m2-exp.y (yyerror): Use ANSI C prototype.
12515
d04550a6
SDJ
125162012-01-16 Sergio Durigan Junior <[email protected]>
12517
12518 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12519 (growbuf_by_size): Likewise.
12520 (yyerror): Likewise.
12521 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12522 (modblock): Remove variable (was #if 0'ed).
12523 (parse_number): Convert prototype from K&R to ANSI C.
12524 (yyerror): Likewise.
12525 * objc-exp.y (parse_number): Likewise.
12526 (yyerror): Likewise.
12527 (yylex): Remove #if 0'ed code.
12528 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12529 (yyerror): Likewise.
12530
4aac40c8
TT
125312012-01-16 Tom Tromey <[email protected]>
12532
12533 * NEWS: Add item.
12534 * symtab.h (compare_filenames_for_search): Declare.
12535 * symtab.c (compare_filenames_for_search): New function.
12536 (iterate_over_some_symtabs): Use it.
12537 * symfile.h (struct quick_symbol_functions)
12538 <map_symtabs_matching_filename>: Change spec.
12539 * psymtab.c (partial_map_symtabs_matching_filename): Use
12540 compare_filenames_for_search. Update for new spec.
12541 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12542 compare_filenames_for_search. Update for new spec.
12543 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12544
cafec441
TT
125452012-01-16 Tom Tromey <[email protected]>
12546
12547 PR python/13281:
12548 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12549 (struct main_type) <flag_flag_enum>: New field.
12550 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12551 * NEWS: Add entries.
12552 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12553 enums.
12554 * python/lib/gdb/printing.py (_EnumInstance): New class.
12555 (FlagEnumerationPrinter): Likewise.
12556
983af33b
SDJ
125572012-01-16 Sergio Durigan Junior <[email protected]>
12558
12559 * breakpoint.c (create_sals_from_address_default): New function.
12560 (create_breakpoints_sal_default): Likewise.
12561 (decode_linespec_default): Likewise.
12562 (is_marker_spec): Removed.
12563 (strace_marker_p): New function.
12564 (init_breakpoint_sal): Using `strace_marker_p' instead of
12565 `is_marker_spec'.
12566 (create_breakpoint): Call method `create_sals_from_address' from
12567 breakpoint_ops, replacing code that created SALs conditionally
12568 on the type of the breakpoint. Call method `create_breakpoints_sal',
12569 replacing code that created breakpoints conditionally on the type
12570 wanted.
12571 (base_breakpoint_create_sals_from_address): New function.
12572 (base_breakpoint_create_breakpoints_sal): Likewise.
12573 (base_breakpoint_decode_linespec): Likewise.
12574 (base_breakpoint_ops): Add methods
12575 `base_breakpoint_create_sals_from_address',
12576 `base_breakpoint_create_breakpoints_sal' and
12577 `base_breakpoint_decode_linespec'.
12578 (bkpt_create_sals_from_address): New function.
12579 (bkpt_create_breakpoints_sal): Likewise.
12580 (bkpt_decode_linespec): Likewise.
12581 (tracepoint_create_sals_from_address): Likewise.
12582 (tracepoint_create_breakpoints_sal): Likewise.
12583 (tracepoint_decode_linespec): Likewise.
12584 (strace_marker_create_sals_from_address): Likewise.
12585 (strace_marker_create_breakpoints_sal): Likewise.
12586 (strace_marker_decode_linespec): Likewise.
12587 (strace_marker_breakpoint_ops): New variable.
12588 (addr_string_to_sals): Remove `marker_spec'. Call method
12589 `decode_linespec' from breakpoint_ops, replacing code that decoded
12590 an address string into a SAL. Use `strace_marker_p' instead of
12591 `marker_spec'.
12592 (strace_command): Decide whether we are dealing with a static
12593 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12594 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12595 * breakpoint.h (linespec_result, linespec_sals): New forward
12596 declarations.
12597 (breakpoint_ops) <create_sals_from_address>,
12598 <create_breakpoints_sal>, <decode_linespec>: New methods.
12599
4795f398
DE
126002012-01-14 Doug Evans <[email protected]>
12601
12602 * NEWS: Update text for "maint set python print-stack".
12603 It is deprecated in gdb 7.4 and deleted in 7.5.
12604
ee5106fe
EZ
126052012-01-13 Eli Zaretskii <[email protected]>
12606
12607 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12608 including curses.h.
12609
b161e06f
JK
126102012-01-12 Jan Kratochvil <[email protected]>
12611
12612 * configure: Regenerate.
12613 * config.in: Regenerate.
12614
85254831
KS
126152012-01-12 Keith Seitz <[email protected]>
12616
12617 PR mi/10586
12618 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12619 (ANONYMOUS_UNION_NAME): Define.
12620 (is_path_expr_parent): New function.
12621 (get_path_expr_parent): New function.
12622 (is_anonymous_child): New function.
12623 (create_child_with_value): If the child is anonymous and without
12624 a name, assign an object name to it.
12625 (c_describe_child): Use get_path_expr_parent to determine
12626 the parent expression.
12627 If there field represents an anonymous struct or union and
12628 has no name, set an appropriate display name and expression.
12629 (cplus_describe_child): Likewise.
12630
620fa63a
PA
126312012-01-12 Pedro Alves <[email protected]>
12632
12633 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12634 available when %ebp is found to be zero (outermost).
12635
2efa2c79
AT
126362012-01-11 Andreas Tobler <[email protected]>
12637
12638 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12639 an internal gdb_static_assert.
12640 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12641
88e7d25d
TT
126422012-01-11 Tom Tromey <[email protected]>
12643
12644 PR gdb/9598:
12645 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12646 catch" and "catch throw".
12647
72384ba3
PH
126482012-01-11 Paul Hilfinger <[email protected]>
12649
12650 * blockframe.c (block_innermost_frame): Start search from selected
12651 frame, if present, or otherwise the current frame.
12652
12653 * c-exp.y (variable): Update innermost_block for
12654 'block COLONCOLON NAME' clause.
12655 * m2-exp.y (variable): Ditto.
12656 * objc-exp.y (variable): Ditto.
12657
065a711f
TT
126582012-01-10 Tom Tromey <[email protected]>
12659
12660 PR python/13199:
12661 * python/python.c (finish_python_initialization): Set sys.argv.
12662
f3f5162e
DE
126632012-01-10 Doug Evans <[email protected]>
12664
12665 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12666 "want_line_info". All callers updated.
12667 (dwarf_decode_lines_1): New function.
12668 (handle_DW_AT_stmt_list): Add function comment.
12669 New arg "want_line_info". All callers updated.
12670 (read_file_scope,read_type_unit_scope): Move comment from
12671 handle_DW_AT_stmt_list to here.
12672
9934703b
JK
126732012-01-10 Jan Kratochvil <[email protected]>
12674
12675 Fix regression after libiberty/ update for GCC PR 6057 and others.
12676 * c-exp.y (operator) <OPERATOR DELETE>
12677 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12678 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12679 (make_builtin_type, make_name): New variable i, add gdb_assert.
12680 (operator) <OPERATOR NEW>: Update ARGS to 3.
12681 (operator) <OPERATOR DELETE>: Add trailing space.
12682 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12683 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12684 * cp-support.c (cp_canonicalize_string): Check NULL from
12685 cp_comp_to_string, call warning and return.
12686
06b9f45f
JK
126872012-01-10 Jan Kratochvil <[email protected]>
12688
12689 Fix duplicate .o files after omitting libbfd.a.
12690 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12691 (SFILES): Add corelow.c.
12692 (COMMON_OBS): Add corelow.o.
12693 (ALLDEPFILES): Remove corelow.c.
12694 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12695 * config/alpha/alpha-osf3.mh: Likewise.
12696 * config/alpha/fbsd.mh: Likewise.
12697 * config/arm/nbsdaout.mh: Likewise.
12698 * config/arm/nbsdelf.mh: Likewise.
12699 * config/i386/i386gnu.mh: Likewise.
12700 * config/ia64/hpux.mh: Likewise.
12701 * config/ia64/linux.mh: Likewise.
12702 * config/m32r/linux.mh: Likewise.
12703 * config/m68k/linux.mh: Likewise.
12704 * config/mips/irix5.mh: Likewise.
12705 * config/mips/irix6.mh: Likewise.
12706 * config/pa/hpux.mh: Likewise.
12707 * config/pa/linux.mh: Likewise.
12708 * config/powerpc/aix.mh: Likewise.
12709 * config/sparc/linux.mh: Likewise.
12710 * config/sparc/linux64.mh: Likewise.
12711 * config/sparc/sol2.mh: Likewise.
12712 * config/vax/vax.mh: Likewise.
12713 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12714 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12715 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12716 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12717 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12718 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12719 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12720 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12721 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12722 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12723 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12724 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12725 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12726 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12727 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12728 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12729 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12730 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12731 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12732 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12733 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12734 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12735 corelow.o from gdb_target_obs.
12736 * corefile.c (core_target): Update the comment on NULL value.
12737 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12738 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12739 MATCHES. Drop YUMMY set on NULL.
12740 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12741 reclaim CORE_DATA if it is already NULL.
12742
34365054
DE
127432012-01-09 Doug Evans <[email protected]>
12744
12745 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12746 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12747
696166a3
KS
127482012-01-09 Keith Seitz <[email protected]>
12749
12750 * breakpoint.c (wrapper.h): Don't include.
12751
8e7b59a5
KS
127522012-01-09 Keith Seitz <[email protected]>
12753
12754 * Makefile.in (SFILES): Remove wrapper.c.
12755 (HFILES_NO_SRCDIR): Remove wrapper.h.
12756 (COMMON_OBS): Remove wrapper.o.
12757 * cli/cli-interp.c: Don't inlude wrapper.h.
12758 * corelow.c: Likewise.
12759 (core_open): Replace gdb_target_find_new_threads with
12760 TRY_CATCH around target_find_new_threads.
12761 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12762 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12763 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12764 evaluate_expression.
12765 (varobj_set_value): Likewise for evaluate_expression and
12766 value_assign.
12767 (install_new_variable): Likewise for value_fetch_lazy.
12768 (adjust_value_for_child_access): Likewise for value_ind.
12769 (c_describe_child): Likewise for value_subscript and
12770 value_ind.
12771 (c_value_of_root): Likewise for evaluate_expression.
12772 * wrapper.c: Remove.
12773 * wrapper.h: Remove.
12774
1a4eeb98
DE
127752012-01-09 Doug Evans <[email protected]>
12776
9ff913ba
DE
12777 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12778 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12779 "abfd" args with "section". All callers updated.
12780 Error checking code moved ...
12781 (error_check_comp_unit_head): ... here. New function.
12782 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12783 Delete arg "abfd". New arg "type_offset". All callers updated.
12784 (create_debug_types_hash_table): Simplify by using
12785 read_and_check_type_unit_head.
12786
1a4eeb98
DE
12787 * parser-defs.h (namecopy): Delete.
12788 * parse.c (namecopy, namecopy_size): Move into copy_name.
12789
2e6af8c0
JK
127902012-01-09 Jan Kratochvil <[email protected]>
12791
12792 Partially fix duplicate .o files after omitting libbfd.a.
12793 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12794 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12795 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12796 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12797 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12798 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12799 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12800
9f2f828a
PA
128012012-01-09 Pedro Alves <[email protected]>
12802
12803 * MAINTAINERS: Update my email address.
12804
4d72c0bc
DE
128052012-01-08 Doug Evans <[email protected]>
12806
d467dd73
DE
12807 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12808 n_type_units. Rename type_comp_units to all_type_units.
12809 All uses updated.
12810 (add_signatured_type_cu_to_table): Renamed from
12811 add_signatured_type_cu_to_list. All callers updated.
12812
4d72c0bc
DE
12813 * gdbtypes.h (struct cplus_struct_type): Delete member
12814 nfn_fields_total. All uses removed.
12815
21b2bd31
DE
128162012-01-06 Doug Evans <[email protected]>
12817
12818 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12819 to top of file.
12820 (dwarf2_find_comp_unit): Delete.
12821 (process_psymtab_comp_unit): Make result "void".
12822 Delete args buffer, info_ptr, buffer_size, and replace with
12823 "section". All callers updated.
12824 (dwarf2_build_psymtabs_hard): Simplify.
12825
bfd189b1
SDJ
128262012-01-06 Sergio Durigan Junior <[email protected]>
12827 Thiago Jung Bauermann <[email protected]>
12828
12829 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12830 before `struct gdb_exception'.
12831 * breakpoint.c (update_global_location_list_nothrow)
12832 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12833 * cp-abi.c (value_rtti_type): Likewise.
12834 * cp-support.c (cp_validate_operator): Likewise.
12835 * infrun.c (insert_exception_resume_breakpoint)
12836 (check_exception_resume, keep_going): Likewise.
12837 * mi-interp.c (mi_breakpoint_created)
12838 (mi_breakpoint_modified): Likewise.
12839 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12840 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12841 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12842
6b07635f
DE
128432012-01-05 Doug Evans <[email protected]>
12844
0b30b85c
DE
12845 * dwarf2read.c (statement_prologue): Delete, unused.
12846
98714339
DE
12847 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12848 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12849
6b07635f
DE
12850 * dwarf2read.c (comp_unit_header): Delete, unused.
12851
761f4555
UW
128522012-01-05 Ulrich Weigand <[email protected]>
12853
12854 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12855 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12856
2ca0b532
PA
128572012-01-05 Khoo Yit Phang <[email protected]>
12858
12859 * infrun.c (normal_stop): Don't skip calling the normal_stop
12860 observers if the thread was doing a multi-step, but stopped for
12861 some reason other than stepping.
12862
50aeff07
PA
128632012-01-05 Pedro Alves <[email protected]>
12864
12865 * cli/cli-decode.h: Add comments.
12866 (CMD_LIST_AMBIGUOUS): Moved to command.h
12867 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12868 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12869 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12870 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12871 (add_com, add_com_alias, add_info, add_info_alias)
12872 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12873 declarations.
12874 * command.h: Add and adjust comments.
12875 (CMD_LIST_AMBIGUOUS): Moved here.
12876 (help_cmd, help_cmd_list): Delete declarations.
12877
5953832c
DE
128782012-01-04 Doug Evans <[email protected]>
12879
e5fe5e75
DE
12880 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12881 All callers updated.
12882 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12883 Replace all arguments with "per_cu". All callers updated.
12884
28dee7f5
DE
12885 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12886
23745b47
DE
12887 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12888 New arg "per_cu". All callers updated.
12889
5953832c
DE
12890 Delete #if 0'd out code.
12891 * language.c (binop_result_type): Delete.
12892 (simple_type, ordered_type, same_type, integral_type): Delete.
12893 (numeric_type, character_type, string_type, boolean_type): Delete.
12894 (float_type, structured_type): Delete.
12895 * language.h: Update.
12896
0f5b7562
TT
128972012-01-04 Tom Tromey <[email protected]>
12898
12899 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12900
78218f56
JB
129012012-01-04 Joel Brobecker <[email protected]>
12902
12903 * corefile.c (close_exec_file): Delete.
12904 (reopen_exec_file): Remove commented out code that seems related
12905 to close_exec_file, which is being deleted here.
12906 * inferior.h (close_exec_file): Delete.
12907 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12908
0fcd72ba
JB
129092012-01-04 Joel Brobecker <[email protected]>
12910
12911 * ada-lang.c: #include "cli/cli-utils.h".
12912 (get_selections): Use skip_spaces.
12913 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12914 (catch_ada_exception_command_split): Use skip_spaces.
12915 (ada_decode_assert_location): Likewise.
12916
1dabb4c4
JB
129172012-01-04 Joel Brobecker <[email protected]>
12918
12919 * linespec.c (decode_line_internal): Check for C++ or Java
12920 compound constructs only if the current language is C, C++
12921 or Java.
12922
5931a2fa
JK
129232012-01-04 Jan Kratochvil <[email protected]>
12924
12925 Revert:
12926 2012-01-02 Jan Kratochvil <[email protected]>
12927 Joel Brobecker <[email protected]>
12928 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12929 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12930 3 times.
12931 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12932 fall through into AT_ENTRY_POINT.
12933 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12934 DUMMY_ADDR with it.
12935 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12936 PPC_INSN_SIZE skip to 3 times.
12937
1a2da5ee
JB
129382012-01-04 Joel Brobecker <[email protected]>
12939
12940 * linespec.c (add_minsym): Preserve function descriptors.
12941
8645ff69
UW
129422012-01-04 Ulrich Weigand <[email protected]>
12943
12944 * breakpoint.c (all_locations_are_pending): Consider locations
12945 in program spaces executing during startup pending as well.
12946
0b302171
JB
129472012-01-04 Joel Brobecker <[email protected]>
12948
12949 Copyright year update in most files of the GDB Project.
12950
8ba098ad
JB
129512012-01-04 Joel Brobecker <[email protected]>
12952
12953 * copyright.sh: Delete.
12954 * copyright.py: Rewrite.
12955
09c01c30
JB
129562012-01-04 Joel Brobecker <[email protected]>
12957
12958 * gnulib/extra/update-copyright: New file, imported from gnulib.
12959
3c36c0af
JB
129602012-01-04 Joel Brobecker <[email protected]>
12961
12962 * README (Copyright and License Notices): New section.
12963
888fe1e1
TT
129642012-01-03 Tom Tromey <[email protected]>
12965
12966 PR python/12533:
12967 * python/py-value.c (valpy_dereference, valpy_get_address
12968 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12969 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12970 (valpy_absolute, valpy_richcompare): Free intermediate values.
12971
6e681866
JB
129722011-01-03 Joel Brobecker <[email protected]>
12973
12974 * ada-lang.c: Reformat the copyright notice.
12975
0cd09acb
JK
129762012-01-02 Jan Kratochvil <[email protected]>
12977
12978 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12979 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12980 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12981 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12982 Revert this part of:
12983 2012-01-02 Jan Kratochvil <[email protected]>
12984 Build gdb directly from *.o files not using libgdb.a.
12985 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12986
12c3e59c
JB
129872012-01-02 Joel Brobecker <[email protected]>
12988
12989 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12990 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12991 Reformat the copyright header.
12992
11bf1490
JK
129932012-01-02 Jan Kratochvil <[email protected]>
12994
12995 Revert this part of:
12996 2012-01-02 Jan Kratochvil <[email protected]>
12997 Remove the gdbtui binary.
12998 * gdb.c (main): Remove args.interpreter_p initialization.
12999 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13000 * main.h (struct captured_main_args): Remove interpreter_p.
13001
1fef196f
JB
130022012-01-02 Joel Brobecker <[email protected]>
13003
13004 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
13005
67827812
JB
130062012-01-02 Joel Brobecker <[email protected]>
13007
13008 * top.c (print_gdb_version): Update copyright year.
13009
a4d0b831
YQ
130102012-01-02 Yao Qi <[email protected]>
13011
13012 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
13013
b5914469
JK
130142012-01-02 Jan Kratochvil <[email protected]>
13015 Joel Brobecker <[email protected]>
13016
13017 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
13018 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
13019 3 times.
13020 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
13021 fall through into AT_ENTRY_POINT.
13022 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
13023 DUMMY_ADDR with it.
13024 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
13025 PPC_INSN_SIZE skip to 3 times.
13026
8da828f7
JK
130272012-01-02 Jan Kratochvil <[email protected]>
13028
13029 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
13030 the return value.
13031 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
13032
8574e74b
JK
130332012-01-02 Jan Kratochvil <[email protected]>
13034
13035 Build gdb directly from *.o files not using libgdb.a.
13036 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
13037 (COMMON_OBS): Remove solib-target.o.
13038 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
13039 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
13040 (LIBGDB_OBS, libgdb.a): Move it above.
13041 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
13042 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
13043 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
13044 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
13045 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
13046 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
13047 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
13048 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
13049 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
13050 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
13051 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
13052 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
13053 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
13054 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
13055 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
13056 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
13057 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
13058 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
13059 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
13060 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
13061 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
13062 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
13063 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
13064 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
13065 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
13066 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
13067 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
13068
217bff3e
JK
130692012-01-02 Jan Kratochvil <[email protected]>
13070
13071 Remove the gdbtui binary.
13072 * .gitignore (/gdbtui): Remove.
13073 * Makefile.in (TUI): Remove.
13074 (SUBDIR_TUI_OBS): Remove tui-main.o.
13075 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
13076 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
13077 (tui-main.o): Remove.
13078 (all_object_files): Remove tui-main.o.
13079 * NEWS: New note for the gdbtui removal.
13080 * configure: Rebuilt.
13081 * configure.ac: No longer add all-tui, clean-tui, install-tui and
13082 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
13083 CONFIG_UNINSTALL respectively.
13084 * gdb.c (main): Remove args.interpreter_p initialization.
13085 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
13086 * main.h (struct captured_main_args): Remove interpreter_p.
13087 * tui/tui-main.c: Remove.
13088
9cdd5dbd
DE
130892012-01-01 Doug Evans <[email protected]>
13090
bb5ed363
DE
13091 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13092 (dwarf2_physname, read_import_statement): Ditto.
13093 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13094 (process_structure_scope read_subroutine_type): Ditto.
13095 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13096 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13097 (dwarf2_fetch_die_location_block): Ditto.
13098 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13099
a0f42c21
DE
13100 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13101 All callers updated.
13102 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13103 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13104 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13105
2dc860c0
DE
13106 * dwarf2read.c (load_cu): Move assert to more useful location.
13107
68dc6402
DE
13108 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13109 All callers updated.
13110
9cdd5dbd
DE
13111 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13112 (dwarf2_elf_names): Minor reformat.
13113 (dwarf2_per_cu_data): Tweak comment.
13114 (dwarf2_read_section): Fix comment.
13115 (create_all_comp_units): Fix comment.
13116 (load_full_comp_unit): Fix comment.
13117 (process_full_comp_unit): Fix comment.
13118 (read_signatured_type): Fix comment.
13119
0c10e53e 13120For older changes see ChangeLog-2011.
c906108c
SS
13121\f
13122Local Variables:
13123mode: change-log
13124left-margin: 8
13125fill-column: 74
13126version-control: never
57da7796 13127coding: utf-8
c906108c 13128End:
This page took 4.576576 seconds and 4 git commands to generate.