remove unused variable in lynx_create_inferior.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
3d745be3
JK
12012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 Code cleanup.
4 * skip.c (skip_function_command, skip_file_command, skip_info): Remove
5 unused forward declarations.
6 (skip_file_command): Make variables symtab and filename targets const.
7 Use proper 0 vs. NULL constant everywhere.
8 (skip_function_command): Use proper 0 vs. NULL constant everywhere.
9 Include empty line after declarations. Use GNU spacing in a comment.
10 Do not use strlen for end of string check.
11 (skip_info): Use proper 0 vs. NULL constant everywhere. Add column 5
12 comments.
13 (skip_enable_command, skip_disable_command, skip_delete_command)
14 (add_skiplist_entry): Use proper 0 vs. NULL constant everywhere.
15 (function_pc_is_marked_for_skip): Make variable filename target const.
16 Use proper 0 vs. NULL constant everywhere. Fix GNU non-compliant
17 comment formatting.
18 (skip_re_set): Add empty line after function comment. Use proper 0 vs.
19 NULL constant everywhere. Include empty line after declarations. Make
20 variable symtab target const. Do not use strlen for end of string
21 check.
22
b57a636e
JK
232012-12-16 Jan Kratochvil <jan.kratochvil@redhat.com>
24
25 Code cleanup.
26 * breakpoint.c (clear_command): Remove variable sal_name_len and its
27 initialization, remove it from the compare_filenames_for_search call.
28 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
29 name_len and its initialization, remove it from the
30 compare_filenames_for_search calls.
31 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
32 * symtab.c (compare_filenames_for_search): Remove the search_len
33 parameter, update the function comment, new variable search_len
34 initialized from SEARCH_NAME.
35 (iterate_over_some_symtabs): Remove variable name_len and its
36 initialization, remove it from the compare_filenames_for_search calls.
37 * symtab.h (compare_filenames_for_search): Remove the search_len
38 parameter,
39
67c50e6e
JB
402012-12-16 Joel Brobecker <brobecker@adacore.com>
41
42 * Makefile.in (SFILES): Move ravenscar-thread.c from here...
43 (ALLDEPFILES): ... to there.
44
5d214698
JB
452012-12-15 Joel Brobecker <brobecker@adacore.com>
46
47 * configure.tgt (sparc-*-*): Add missing '\' in gdb_target_ops.
48
debb1f09
JB
492012-12-15 Joel Brobecker <brobecker@adacore.com>
50
51 * ppc-ravenscar-thread.h, ppc-ravenscar-thread.c: New files.
52 * Makefile.in (ALL_TARGET_OBS): Add ppc-ravenscar-thread.o.
53 (HFILES_NO_SRCDIR): Add ppc-ravenscar-thread.h.
54 (ALLDEPFILES): Add ppc-ravenscar-thread.c.
55 * configure.tgt: Add ravenscar-thread.o and ppc-ravenscar-thread.o
56 to gdb_target_obs for every target that uses rs6000-tdep.o.
57 * rs6000-tdep.c: #include "ppc-ravenscar-thread.h".
58 (rs6000_gdbarch_init): Call register_e500_ravenscar_ops
59 or register_ppc_ravenscar_ops.
60
c16998a7
JB
612012-12-15 Joel Brobecker <brobecker@adacore.com>
62
63 * sparc-ravenscar-thread.h: SPARC_RAVENSCAR_THREAD_H renames
64 RAVENSCAR_SPARC_THREAD_H.
65 * sparc-ravenscar-thread.c: Rename all global entities
66 whose name is uses "ravenscar_sparc" as the prefix to use
67 "sparc_ravenscar" instead.
68
e6f9c00b
JB
692012-12-15 Joel Brobecker <brobecker@adacore.com>
70
71 * sparc-ravenscar-thread.h: Renames ravenscar-sparc-thread.h.
72 * sparc-ravenscar-thread.c: Renames ravenscar-sparc-thread.c.
73 Adjust sparc-ravenscar-thread.h #include.
74 * sparc-tdep.c: Adjust sparc-ravenscar-thread.h #include
75 accordingly.
76 * Makefile.in: Replace ravenscar-sparc-thread with
77 sparc-ravenscar-thread throughout.
78 * configure.tgt: Likewise.
79
7e35103a
JB
802012-12-15 Joel Brobecker <brobecker@adacore.com>
81
e924e903 82 * gdbarch.sh: Add "struct ravenscar_arch_ops" forward
7e35103a
JB
83 declaration.
84 (ravenscar_ops): New gdbarch variable.
85 * gdbarch.h, gdbarch.c: Regenerate.
86 * ravenscar-thread.h (ravenscar_register_arch_ops): Delete.
87 * ravenscar-thread.c (current_arch_ops): Delete.
88 (ravenscar_fetch_registers): Get the ravenscar_arch_ops
89 from the gdbarch.
90 (ravenscar_store_registers, ravenscar_prepare_to_store): Likewise.
91 (ravenscar_inferior_created): Add gdbarch_ravenscar_ops check.
92 (ravenscar_register_arch_ops): Delete.
93 * ravenscar-sparc-thread.h: New file.
94 * ravenscar-sparc-thread.c: #include "ravenscar-sparc-thread.h".
95 (ravenscar_sparc_ops): Define value statically.
96 (_initialize_ravenscar_sparc): Delete.
97 (register_sparc_ravenscar_ops): New function.
98 * sparc-tdep.c: #include "ravenscar-sparc-thread.h".
99 (sparc32_gdbarch_init): Add call to register_sparc_ravenscar_ops.
100 * Makefile.in (ALL_TARGET_OBS): Add ravenscar-thread.o and
101 ravenscar-sparc-thread.o.
102 (SFILES): Add ravenscar-thread.c.
103 (HFILES_NO_SRCDIR): Add ravenscar-sparc-thread.h.
104 (ALLDEPFILES): ravenscar-sparc-thread.c.
105 * configure.tgt: Add ravenscar-thread.o and ravenscar-sparc-thread.o
106 to gdb_target_obs
107 for all the targets that use sparc-tdep.o.
108
25abf4de
JB
1092012-12-15 Joel Brobecker <brobecker@adacore.com>
110
111 * ravenscar-thread.c (ravenscar_is_open): Delete.
112 (ravenscar_initialize): Move most of the code from here...
113 (ravenscar_inferior_created): ... to there. Invert logic.
114 (ravenscar_close): Delete.
115 (init_ravenscar_thread_ops): Remove setting of
116 ravenscar_ops.to_close.
117
3d6e24f0
JB
1182012-12-15 Joel Brobecker <brobecker@adacore.com>
119
120 * objfiles.c (init_entry_point_info): Move function from here...
121 * symfile.c (init_entry_point_info): ... to there. Make static.
122 * objfiles.h (objfiles.h): Delete declaration.
123
36e4d068
JB
1242012-12-15 Joel Brobecker <brobecker@adacore.com>
125
126 * symfile.c (syms_from_objfile_1): Renames syms_from_objfile.
127 Remove call to init_entry_point_info. Add OBJFILE's
128 section_offsets and num_sections initialization. Add note
129 about entry info in the function documentation.
130 (syms_from_objfile): New function.
131 * coffread.c (coff_symfile_init): Remove call to
132 init_entry_point_info.
133 * machoread.c (macho_symfile_init): Likewise.
134 * xcoffread.c(xcoff_symfile_init): Likewise.
135
c9b6281a
YQ
1362012-12-15 Yao Qi <yao@codesourcery.com>
137
138 * remote-notif.c (_initialize_notif): Add new commands
139 'set debug notification' and 'show debug notification'.
140 * NEWS: Mention these new commands.
141
722247f1
YQ
1422012-12-15 Yao Qi <yao@codesourcery.com>
143
144 * Makefile.in (REMOTE_OBS): Add "remote-notif.o".
145 (SFILES): Add "remote-notif.c".
146 (HFILES_NO_SRCDIR): Add "remote-notif.h" and "common/queue.h".
147 * remote-notif.c: New. Factored out from remote.c.
148 * remote-notif.h: New.
149 * remote.c: Include "remote-notif.h".
150 (stop_reply_xmalloc, do_stop_reply_xfree):
151 (remote_parse_stop_reply, remote_get_pending_stop_replies):
152 (remote_async_get_pending_events_handler): Remove declarations.
153 (remote_parse_stop_reply): Declare.
154 (pending_stop_reply): Remove.
155 (remote_async_get_pending_events_token): Move to
156 remote-notif.c.
157 (remote_close): Replace 'delete_async_event_handler' with
158 remote_notif_unregister_async_event_handler.
159 Don't call discard_pending_stop_replies.
160 (remote_start_remote): Replace code with remote_notif_parse
161 and remote_notif_get_pending_replies.
162 (remote_open_1): Replace 'create_async_event_handler' with
163 remote_notif_register_async_event_handler.
164 (extended_remote_attach_1): Call remote_notif_parse and
165 notif_stop_reply_push.
166 (struct stop_reply) <next>: Remove.
167 <base>: New field.
168 Callers update.
169 (stop_reply_queue): Change its type.
170 (stop_reply_xmalloc, do_stop_reply_xfree): Remove.
171 (remote_notif_remove_all): New.
172 (discard_pending_stop_replies): Update.
173 (remote_notif_stop_ack, stop_reply_dtr): New.
174 (remote_notif_stop_alloc_event): New.
175 (notif_client_stop): New variable.
176 (stop_reply_match_ptid, stop_reply_match_ptid_and_ws: New.
177 (queued_stop_reply, peek_stop_reply): Adjust.
178 (remote_get_pending_stop_replies): Rename to
179 remote_notif_get_pending_events.
180 (handle_notification): Move to remote-notif.c.
181 (remote_async_get_pending_events_handler): Likewise.
182 (remote_wait_as): Adjust to call remote_notif_parse.
183 Call 'getpkt_or_notif_sane' instead of 'getpkt_sane'.
184 Return minus_one_ptid early if gets a notification.
185 (remote_wait): Call QUEUE_is_empty (notif_reply_p).
186 (_initialize_remote): Call QUEUE_alloc. Update caller.
187 (remote_resume): Call 'remote_notif_process' in all-stop mode.
188 * remote.h: Include "remote-notif.h".
189 (remote_notif_get_pending_replies): Declare.
190
5f4cf0bb
YQ
1912012-12-15 Yao Qi <yao@codesourcery.com>
192
193 * remote.c (discard_pending_stop_replies): Update declaration.
194 (remote_detach_1, extended_remote_mourn_1): Likewise.
195 (discard_pending_stop_replies): Change parameter from PID to
196 INF.
197 (remote_close): Update caller.
198 (_initialize_remote): Attach discard_pending_stop_replies to
199 inferior_exit observer.
200
fee9eda9
YQ
2012012-12-15 Yao Qi <yao@codesourcery.com>
202
203 * remote.c (getpkt_or_notif_sane): Add one more argument in
204 its declaration.
205 (getpkt_or_notif_sane_1): Add one more argument.
206 (getpkt_sane): Update caller.
207 (getpkt_or_notif_sane): Likewise. Update call
208 togetpkt_or_notif_sane_1.
209 (remote_wait_ns): Update caller.
210
dbb0cf06
YQ
2112012-12-15 Yao Qi <yao@codesourcery.com>
212 Doug Evans <dje@google.com>
213
214 * common/queue.h: New.
215
f2a8bc8a
YQ
2162012-12-15 Yao Qi <yao@codesourcery.com>
217
218 * breakpoint.c (print_one_breakpoint_location): Display the
219 state of 'installed' of each non-pending location of a tracepoint
220 in both CLI and MI.
221 (download_tracepoint_locations): Notify 'breakpoint-modified'
222 observer if any tracepoint location is downloaded.
223 * tracepoint.c (start_tracing): Likewise.
224 (merge_uploaded_tracepoints): Record all modified
225 tracepoints and notify 'breakpoint-modified' observer for them.
226
227 * NEWS: Mention the change for CLI and MI.
228
7ed2c994
YQ
2292012-12-15 Yao Qi <yao@codesourcery.com>
230
231 * breakpoint.c (download_tracepoint_locations): Iterate over
232 ALL_TRACEPOINTS first and then iterate over locations of
233 each tracepoint.
234
b25d79d4
PM
2352012-12-14 Pierre Muller <muller@sourceware.org>
236 Pedro Alves <palves@redhat.com>
237
238 * solib-target.c (solib_target_current_sos): Remove 'const'
239 qualifier from type of library_document local variable to be
240 able to free it and avoid a memory leak.
241 Use cleanup chain to avoid leak even if exceptino is generated.
242
6592e36f
TT
2432012-12-14 Tom Tromey <tromey@redhat.com>
244
245 PR c++/8888:
246 * symtab.c (lookup_symbol_aux): If constructor is found, consider
247 returning the type instead.
248 * c-exp.y (classify_name): Check STRUCT_DOMAIN if a constructor is
249 found.
250
7d27a96d
TT
2512012-12-14 Tom Tromey <tromey@redhat.com>
252
253 Partial fix for PR c++/14160:
254 * c-typeprint.c (c_type_print_base): Use TYPE_FN_FIELD_CONSTRUCTOR.
255 * dwarf2read.c (dwarf2_is_constructor): New function.
256 (dwarf2_add_member_fn): Use it.
257 * gnu-v3-abi.c (gnuv3_pass_by_reference): Use
258 TYPE_FN_FIELD_CONSTRUCTOR.
259 * jv-typeprint.c (java_type_print_base): Use
260 TYPE_FN_FIELD_CONSTRUCTOR.
261 * gdbtypes.h (struct fn_field) <is_constructor>: New field.
262 <dummy>: Shrink.
263 (TYPE_FN_FIELD_CONSTRUCTOR): New macro.
264
1993b719
TT
2652012-12-14 Tom Tromey <tromey@redhat.com>
266
267 * c-exp.y (block, variable, name_not_typename, lex_one_token,
268 classify_name): Update.
269 * c-valprint.c (c_val_print): Update.
270 * f-exp.y (yylex): Update.
271 * go-exp.y (package_name_p, classify_packaged_name)
272 (classify_name): Update.
273 * jv-exp.y (push_variable): Update.
274 * m2-exp.y (variable): Update.
275 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
276 * p-exp.y (block, variable, yylex): Update.
277 * p-valprint.c (pascal_val_print): Update.
278 * parse.c (write_dollar_variable): Update.
279 * printcmd.c (address_info): Update.
280 * python/py-symbol.c (gdbpy_lookup_symbol): Update.
281 * symtab.c (lookup_symbol_aux, lookup_symbol_in_language)
282 (lookup_symbol): Change type of 'is_a_field_of_this'.
283 (check_field): Add 'is_a_field_of_this' argument.
284 * symtab.h (struct field_of_this_result): New.
285 (lookup_symbol, lookup_symbol_in_language): Update.
286
2dc3df72
TT
2872012-12-14 Tom Tromey <tromey@redhat.com>
288
289 * symtab.c (check_field): Now static. Move from...
290 * valops.c (check_field): ... here. Remove.
291 * value.h (check_field): Don't declare.
292
451b7c33
TT
2932012-12-14 Tom Tromey <tromey@redhat.com>
294
295 * NEWS: Mention "info proc" and core files.
296 * corelow.c (core_info_proc): New function.
297 (init_core_ops): Set to_info_proc.
298 * gdbarch.c, gdbarch.h: Rebuild.
299 * gdbarch.sh (core_info_proc): New method.
300 * infcmd.c (info_proc_cmd_1): Invoke target_info_proc first.
301 * linux-tdep.c (linux_core_info_proc_mappings)
302 (linux_core_info_proc): New functions.
303 (linux_find_memory_region_ftype): New typedef.
304 (linux_find_memory_regions_full): New function, from
305 linux_find_memory_regions.
306 (struct linux_find_memory_regions_data): New.
307 (linux_find_memory_regions_thunk): New function.
308 (linux_find_memory_regions): Rewrite.
309 (struct linux_make_mappings_data): New.
310 (linux_make_mappings_callback)
311 (linux_make_mappings_corefile_notes): New functions.
312 (linux_make_corefile_notes): Call linux_make_mappings_corefile_notes.
313 (linux_init_abi): Call set_gdbarch_core_info_proc.
314 * target.c (target_info_proc): Return 'int'.
315 * target.h (target_info_proc): Update.
316
49dc7f4b
PM
3172012-12-14 Pierre Muller <muller@sourceware.org>
318
319 * windows-nat.c (windows_xfer_shared_libraries): Avoid
320 memory leak when OFFSET >= LEN_AVAIL.
321
e03e6279
TT
3222012-12-13 Tom Tromey <tromey@redhat.com>
323
324 * solib-svr4.c (enable_break): Use SECT_OFF_TEXT.
325
7b9c0bfb
TT
3262012-12-13 Tom Tromey <tromey@redhat.com>
327
328 * acinclude.m4 (CY_AC_C_WORKS): Remove.
329
d8f4a83e
PM
3302012-12-13 Pierre Muller <muller@sourceware.org>
331
332 * coff-pe-read.c (pe_text_section_offset): Increase size of sname
333 local variable and zero terminate it to avoid possible problems
334 in strcmp.
335
aab2f004
PA
3362012-12-13 Pedro Alves <palves@redhat.com>
337
338 * coff-pe-read.c: Include coff/internal.h.
339 (read_pe_exported_syms): Use SCNNMLEN instead of hardcoded 8.
340 Null terminate buffer explicitly instead of memset the whole
341 buffer.
342
78ea0eca
PM
3432012-12-13 Pierre Muller <muller@sourceware.org>
344
345 * coff-pe-read.c (IMAGE_SCN_CNT_TEXT, IMAGE_SCN_CNT_INITIALIZED_DATA)
346 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Remove useless checks
347 for already defined macros.
348
3999122f
PM
3492012-12-13 Pierre Muller <muller@sourceware.org>
350
351 * coff-pe-read.h (pe_text_section_offset): Declare new function.
352 * coff-pe-read.c (debug_coff_pe_read): New static variable.
353 (struct read_pe_section_data): Add section_name field.
354 (IMAGE_SCN_CNT_CODE): New macro, if not already defined.
355 (IMAGE_SCN_CNT_INITIALIZED_DATA): Ditto.
356 (IMAGE_SCN_CNT_UNINITIALIZED_DATA): Ditto.
357 (get_pe_section_index): New function.
358 (struct pe_sections_info): New type.
359 (get_section_vmas): Use new struct pe_sections_info.
360 (add_pe_exported_sym): Handle unnamed exported function.
361 (add_pe_forwarded_sym): New function.
362 (read_pe_truncate_name): Truncate at last dot.
363 (pe_as16): New function.
364 (read_pe_exported_syms): Use ordinal of function to
365 retrieve correct RVA address of function and handle
366 forwarded symbol.
367 (pe_text_section_offset): New function.
368 (show_debug_coff_pe_read): New function.
369 (_initialize_coff_pe_read): New function adding
370 'set/show debug coff_pe_read' commands.
371
372 * windows-tdep.c (windows_xfer_shared_library): Use
373 pe_text_section_offset function instead of possibly wrong
374 0x1000 constant for .text sextion offset.
375
c9023fb3
PA
3762012-12-13 Pedro Alves <palves@redhat.com>
377
378 * gdbarch.sh (do_read): Set IFS to blank.
379
3fa7bf06
MG
3802012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
381
382 * NEWS: Mention the -catch-load/-catch-unload MI commands.
383
91985142 3842012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
f87e3f15 385
91985142
MG
386 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-catch.o.
387 (SUBDIR_MI_SRCS): Add mi/mi-cmd-catch.c.
388 * breakpoint.c (add_solib_catchpoint): New function that
389 can be used by both CLI and MI, factored out from
390 catch_load_or_unload.
391 (catch_load_or_unload): Strip it down and make it use the
392 new add_solib_catchpoint.
393 * breakpoint.h (add_solib_catchpoint): Declare it.
394 * mi/mi-cmd-break.h: New file.
395 * mi/mi-cmd-break.c: Include mi-cmd-break.h.
396 (setup_breakpoint_reporting): New function used for both
397 catchpoints and breakpoints.
398 (mi_cmd_break_insert): Use setup_breakpoint_reporting.
399 * mi/mi-cmd-catch.c: New file.
400 * mi/mi-cmds.c (mi_cmds): Add the handlers for -catch-load
401 and -catch-unload.
402 * mi/mi-cmds.h: Declare the handlers for -catch-load and
403 -catch-unload.
404
5c80ed9d
TT
4052012-11-28 Tom Tromey <tromey@redhat.com>
406
407 * dbxread.c (read_dbx_symtab): Update.
408 (end_psymtab, dbx_psymtab_to_symtab_1, dbx_psymtab_to_symtab)
409 (read_ofile_symtab): Add 'objfile' argument.
410 * dwarf2read.c (process_psymtab_comp_unit_reader)
411 (build_type_psymtabs_reader): Update.
412 (dwarf2_psymtab_to_symtab): Add 'objfile' argument.
413 * mdebugread.c (mdebug_psymtab_to_symtab): Add 'objfile'
414 argument.
415 (parse_procedure, parse_partial_symbols): Update.
416 (psymtab_to_symtab_1): Add 'objfile' argument.
417 * psympriv.h (struct partial_symtab) <objfile>: Remove.
418 <read_symtab>: Add 'objfile' argument.
419 (sort_pst_symbols, discard_psymtab): Update.
420 * psymtab.c (partial_map_expand_apply): Update.
421 (find_pc_sect_psymtab_closer): Add 'objfile' argument.
422 (find_pc_sect_psymtab, find_pc_sect_symtab_from_partial): Update.
423 (find_pc_sect_psymbol): Add 'objfile' argument.
424 (lookup_symbol_aux_psymtabs): Update.
425 (match_partial_symbol, lookup_partial_symbol, psymtab_to_symtab):
426 Add 'objfile' argument.
427 (find_last_source_symtab_from_partial, dump_psymtab)
428 (dump_psymtabs_for_objfile, read_symtabs_for_function)
429 (expand_partial_symbol_tables, read_psymtabs_with_filename)
430 (find_symbol_file_from_partial, map_matching_symbols_psymtab)
431 (expand_symtabs_matching_via_partial): Update.
432 (sort_pst_symbols): Add 'objfile' argument.
433 (allocate_psymtab): Update.
434 (discard_psymtab): Add 'objfile' argument.
435 (maintenance_info_psymtabs, maintenance_check_symtabs): Update.
436 * stabsread.h (end_psymtab): Update.
437 * xcoffread.c (this_symtab_objfile): New global.
438 (process_linenos, enter_line_range, xcoff_next_symbol_text):
439 Update.
440 (read_xcoff_symtab): Add 'objfile' argument.
441 (read_symbol, read_symbol_lineno): Update.
442 (xcoff_psymtab_to_symtab_1, xcoff_psymtab_to_symtab)
443 (xcoff_end_psymtab): Add 'objfile' argument.
444 (scan_xcoff_symtab): Update.
445
9a27f2c6
PK
4462012-12-12 Paul Koning <paul_koning@dell.com>
447
448 Add support for Python 3.
449 * NEWS: Mention Python 3 support.
450 * varobj.c (value_get_print_value): Use
451 python_string_to_target_string.
452 * python/py-block.c: Use PyVarObject_HEAD_INIT in initialization
453 of type objects.
454 * python/py-breakpoint.c: Ditto.
455 * python/py-cmd.c: Ditto.
456 * python/py-event.c: Ditto.
457 * python/py-event.h: Ditto.
458 * python/py-evtregistry.c: Ditto.
459 * python/py-finishbreakpoint.c: Ditto.
460 * python/py-frame.c: Ditto.
461 * python/py-function.c: Ditto.
462 * python/py-infthread.c: Ditto.
463 * python/py-lazy-string.c: Ditto.
464 * python/py-progspace.c: Ditto.
465 * /python/py-symbol.c: Ditto.
466 * python/py-evts.c: (gdbpy_initialize_py_events): Add module
467 initialization for Python 3.
468 * python/py-inferior.c: Use PyVarObject_HEAD_INIT in initialization
469 of type objects.
470 (infpy_read_memory): Return memoryview object if Python 3.
471 (infpy_write_memory): Use "s*" operand parsing code for Python 3.
472 (infpy_search_memory): Ditto.
473 (get_buffer): New function for Python 3.
474 * python/py-objfile.c: Use PyVarObject_HEAD_INIT in initialization
475 of type objects.
476 (objfpy_dealloc): Use Py_TYPE to call tp_free.
477 * python/py-param.c: Use PyVarObject_HEAD_INIT in initialization
478 of type objects.
479 (get_attr): Use PyUnicode_CompareWithASCIIString if Python 3.
480 (set_attr): Ditto.
481 * python/py-prettyprint.c (print_string_repr): use PyBytes methods
482 instead of PyString methods if Python 3.
483 (print_children): Skip push_dummy_python_frame call if Python 3.
484 * python/py-symtab.c: Use PyVarObject_HEAD_INIT in initialization
485 of type objects.
486 (salpy_dealloc): Use Py_TYPE to call tp_free.
487 * python/py-type.c: Use PyVarObject_HEAD_INIT in initialization
488 of type objects.
489 (field_dealloc): Use Py_TYPE to call tp_free.
490 (typy_dealloc): Ditto.
491 (type_object_as_number): Adjust struct initializations for
492 differences in layout for Python 2 vs. Python 3.
493 * python/py-utils.c (python_string_to_unicode): Omit non-Unicode
494 string case for Python 3.
495 (unicode_to_encoded_python_string): Shorten code (no functional
f87e3f15 496 change).
9a27f2c6
PK
497 (python_string_to_target_python_string): Comment that in Python 3
498 returned value is a Python "bytes" type.
499 (gdbpy_is_string): Omit non-Unicode string check in Python 3.
500 (gdb_py_object_from_longest): Omit non-long integer case in Python
501 3.
502 (gdb_py_object_from_ulongest): Ditto.
503 * python/py-value.c: Use PyVarObject_HEAD_INIT in initialization
504 of type objects.
505 (valpy_dealloc): Use Py_TYPE to call tp_free.
506 (valpy_int): Omit function if Python 3.
507 (convert_value_from_python): Use "%S" format (Python object as a
508 string) if Python 3.
509 (value_object_as_number): Adjust struct initializations for
510 differences in layout for Python 2 vs. Python 3.
511 * python/python-config.py: Adjust syntax for Python 3
f87e3f15 512 compatibility.
9a27f2c6
PK
513 Include "sys.abiflags" string as part of python library name, if
514 that attribute exists (Python 3).
515 * python/python-internal.h (IS_PY3): Define if Python 3.
516 (Py_TPFLAGS_HAVE_ITER, Py_TPFLAGS_CHECKTYPES): Define with
517 placeholder value if Python 3.
518 (PyInt_Check, PyInt_FromLong, PyInt_AsLong, PyString_FromString,
519 PyString_Decode, PyString_FromFormat, PyString_Check): Define as
520 analogous Python 3 API function if Python 3.
521 (PyVarObject_HEAD_INIT): Define if not already defined.
522 (Py_TYPE): Ditto.
523 * python/python.c (eval_python_command): Omit Py_FlushLine call if
524 Python 3.
525 Check return values of all Python API calls for error.
526 Supply dummy "python" and "python-interactive" commands if Python
527 initialization failed.
528 (_initialize_python): Convert argc to wchar_t** if Python 3.
529 Add module initialization for Python 3.
530 (finish_python_initialization): Pass wchar_t * argument to
531 PySys_SetPath if Python 3.
532 * python/lib/gdb/__init__.py: Define "reload" if Python 3.
533 (_GdbFile): New class for common output file behavior.
534 (GdbOutFile): Subclass from _GdbFile.
535 (GdbOutputErrorFile): Ditto.
536 (auto_load_packages): Adjust syntax for Python 3 compatibility.
537 * python/lib/gdb/printing.py: Define basestr and int if Python 3.
538 * python/lib/gdb/prompt.py: Use sorted() function rather than
539 sort() method.
540 * python/lib/gdb/command/explore.py: Define raw_input if Python 3.
541 Adjust syntax for Python 3 compatibility.
542 * python/lib/gdb/command/pretty_printers.py: Use sorted() function
543 rather than sort() method.
544 Adjust syntax for Python 3 compatibility.
545 * python/lib/gdb/command/type_printers.py: Ditto.
546 * doc/gdb.texinfo (Inferior.read_memory): Mention that the return
547 value is a memoryview object if Python 3.
548
b8b98ad1
TT
5492012-12-12 Tom Tromey <tromey@redhat.com>
550
551 * coffread.c (coff_objfile_data_key): New global.
552 (coff_symfile_init): Use set_objfile_data.
553 (coff_symfile_read): Use objfile_data.
554 (coff_symfile_finish): Don't free deprecated_sym_private.
555 (coff_free_info): New function.
556 (_initialize_coffread): Initialize coff_objfile_data_key.
557 * mdebugread.c (pending_list): Update comment.
558 * objfiles.h (struct objfile) <deprecated_sym_private>: Remove.
559 * symfile.c (reread_symbols): Don't mention
560 deprecated_sym_private.
561 * xcoffread.c (xcoff_objfile_data_key): New global.
562 (XCOFF_DATA): New macro.
563 (process_linenos, enter_line_range, xcoff_next_symbol_text)
564 (read_xcoff_symtab, coff_getfilename, read_symbol_lineno): Use
565 XCOFF_DATA.
566 (xcoff_new_init) Use set_objfile_data.
567 (xcoff_symfile_finish): Don't free deprecated_sym_private.
568 (init_stringtab, swap_sym, scan_xcoff_symtab)
569 (xcoff_get_toc_offset, xcoff_initial_scan): Use XCOFF_DATA.
570 (xcoff_free_info): New function.
571 (_initialize_xcoffread): Initialize xcoff_objfile_data_key.
572
afedb563
MG
5732012-12-12 Mircea Gherzan <mircea.gherzan@intel.com>
574
575 * MAINTAINERS (Write After Approval): Add "Mircea Gherzan".
576
d2f4b8fe
TT
5772012-12-12 Tom Tromey <tromey@redhat.com>
578
579 * coffread.c (coff_symfile_init): Use set_objfile_data.
580 (coff_symfile_read): Use DBX_SYMFILE_INFO.
581 * dbxread.c (dbx_objfile_data_key): New global.
582 (dbx_symfile_init): Use set_objfile_data.
583 (dbx_symfile_finish): Don't free deprecated_sym_stab_info.
584 (dbx_free_symfile_info): New function.
585 (coffstab_build_psymtabs, elfstab_build_psymtabs): Use
586 DBX_SYMFILE_INFO.
587 (stabsect_build_psymtabs): Use set_objfile_data.
588 (_initialize_dbxreadb): Initialize dbx_objfile_data_key.
589 * elfread.c (elf_symtab_read): Use DBX_SYMFILE_INFO,
590 set_objfile_data.
591 (free_elfinfo): Use DBX_SYMFILE_INFO.
592 (elf_symfile_finish): Don't free deprecated_sym_stab_info.
593 (elfstab_offset_sections): Use DBX_SYMFILE_INFO.
594 * gdb-stabs.h (dbx_objfile_data_key): Declare.
595 (DBX_SYMFILE_INFO): Rewrite to use objfile_data.
596 * objfiles.h (struct objfile) <deprecated_sym_stab_info>: Remove.
597 * somread.c (som_symfile_finish): Don't free
598 deprecated_sym_stab_info.
599
6f112b18
JB
6002012-12-12 Joel Brobecker <brobecker@adacore.com>
601
602 * gdbarch.sh (software_single_step): Remove trailing space in
603 comment (gdbarch.h is already correct).
604
8d2cc612
TT
6052012-12-11 Tom Tromey <tromey@redhat.com>
606
607 * dwarf2read.c (dwarf2_get_dwz_file): Set 'dwz_file'.
608
735522c2
TT
6092012-12-11 Tom Tromey <tromey@redhat.com>
610
611 * dsrec.c (report_transfer_performance): Don't declare.
612 (load_srec): Use gettimeofday, print_transfer_performance.
613 * symfile.c (report_transfer_performance): Remove.
614
3e3420f6
PA
6152012-12-11 Pedro Alves <pedro@codesourcery.com>
616 Pedro Alves <palves@redhat.com>
617
618 * procfs.c (procfs_make_note_section) [NEW_PROC_API]: Output a
619 NT_PSTATUS note.
620 * sol2-tdep.c (sol2_core_pid_to_str): Print process IDs
621 differently from LWP IDs.
622
05b4bd79
PA
6232012-12-11 Pedro Alves <palves@redhat.com>
624
625 * configure.ac (detect type of /proc): Remove Unixware handling.
626 * configure: Regenerate.
627 * proc-api.c (ioctl_table) [PIOCLSTATUS]: Don't mention Unixware.
628 (ioctl_table) [PCRESET]: Remove entry.
629 * proc-events.c (SYS_lwp_create, SYS_lwp_exit, SYS_lwp_wait)
630 (SYS_lwp_self, SYS_lwp_info, SYS_lwp_private, SYS_lwp_kill)
631 (SYS_lwp_suspend, SYS_lwp_continue): Don't define.
632 * proc-why.c (pr_why_table) [PR_SUSPENDED]: Don't mention Unixware.
633 * procfs.c: Remove all UNIXWARE guarded code, and all traces of
634 Unixware in comments throughout.
635 * i386-tdep.c (i386_svr4_sigtramp_p): Don't match _sigacthandler,
636 and remove mention of Unixware.
637
072cabfe
DE
6382012-12-10 Doug Evans <dje@google.com>
639
ab435259
DE
640 * dwarf2read.c (dwarf2_cu): Enhance comment.
641 (dwarf2_get_pc_bounds): Only add ranges_base for DIEs that live in
642 the DWO file.
643 (dwarf2_record_block_ranges): Ditto.
644
c766f7ec
DE
645 * dwarf2read.c (create_dwo_in_dwp): Tweak comment.
646
072cabfe
DE
647 * symtab.c (find_pc_sect_symtab): Add comment.
648
660ff106
TT
6492012-12-10 Tom Tromey <tromey@redhat.com>
650
651 * defs.h: Don't check for definition of LONGEST.
652 (min, max): Remove duplicates.
653
8b9737bf
TT
6542012-12-10 Tom Tromey <tromey@redhat.com>
655
656 * dwarf2read.c (dwarf2_fetch_die_loc_sect_off): New function.
657 (dwarf2_fetch_die_loc_cu_off): Rename from
658 dwarf2_fetch_die_location_block. Rewrite to use
659 dwarf2_fetch_die_loc_sect_off.
660 * dwarf2loc.h (dwarf2_fetch_die_loc_sect_off): Declare.
661 (dwarf2_fetch_die_loc_cu_off): Rename.
662 * dwarf2loc.c (indirect_pieced_value): Use
663 dwarf2_fetch_die_loc_sect_off.
664 * dwarf2expr.h (struct dwarf_expr_context) <len, data>: Update
665 comment.
666 (struct dwarf_expr_piece) <v.ptr.die>: Now a sect_offset.
667 * dwarf2expr.c (add_piece): Update.
668 (execute_stack_op) <DW_OP_GNU_implicit_pointer>: Update comment.
669
93eed41f
TT
6702012-12-10 Tom Tromey <tromey@redhat.com>
671
672 * buildsym.c (struct pending_block): Move from buildsym.h.
673 (pending_blocks): Likewise; now static.
674 (pending_block_obstack): New global.
675 (free_pending_blocks): Free blocks.
676 (record_pending_block): Use pending_block_obstack.
677 * buildsym.h (struct pending_block): Move definition to
678 buildsym.c.
679 (pending_blocks): Don't declare.
680
d2e5c99a
PA
6812012-12-10 Pedro Alves <palves@redhat.com>
682
683 * solib-svr4.c (svr4_solib_create_inferior_hook) [_SCO_DS]: Remove
684 dead SCO code, and adjust function description comment.
685
74a0d9f6
JK
6862012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
687
688 * configure.ac (CC_HAS_LONG_LONG): Replace by AC_MSG_ERROR.
689 * defs.h (LONGEST, ULONGEST): Remove conditionalization for
690 CC_HAS_LONG_LONG.
691 * dwarf2-frame.c (DW64_CIE_ID): Likewise.
692 * dwarf2read.c (extract_cu_value): Remove the function.
693 (create_cus_from_index_list): Make the return type void, inline the
694 extract_cu_value caller, include new gdb_static_assert.
695 (create_cus_from_index): Make the return type void, update the function
696 comment, update the create_cus_from_index_list caller.
697 (create_signatured_type_table_from_index): Make the return type void,
698 inline the extract_cu_value caller, include new gdb_static_assert.
699 (dwarf2_read_index): Update the create_cus_from_index and
700 create_signatured_type_table_from_index caller.
701 * printcmd.c (ui_printf): Remove conditionalizations for
702 CC_HAS_LONG_LONG.
703 * config.in: Regenerate.
704 * configure: Regenerate.
705
1b80a9fa
JK
7062012-12-09 Jan Kratochvil <jan.kratochvil@redhat.com>
707
708 * dwarf2read.c (struct dwarf2_cu): New field producer_is_gcc_lt_4_3.
709 Update the comment for checked_producer.
710 (check_producer): New forward declaration.
711 (producer_is_gcc_lt_4_3): New function.
712 (find_file_and_directory): Simulate *COMP_DIR only for gcc < 4.3.
713 (check_producer): Initialize also PRODUCER_IS_GCC_LT_4_3.
714
2f68a895
TT
7152012-12-07 Tom Tromey <tromey@redhat.com>
716
717 * ada-lang.c (ada_make_symbol_completion_list): Add 'code'
718 argument, assertion.
719 * c-exp.y (typebase): Add completion productions.
720 * completer.c (expression_completer): Handle tag completion.
721 * expression.h (parse_expression_for_completion): Add argument.
722 * f-lang.c (f_make_symbol_completion_list): Add 'code'
723 argument.
724 * language.h (struct language_defn)
725 <la_make_symbol_completion_list>: Add 'code' argument.
726 * parse.c (expout_tag_completion_type, expout_completion_name):
727 New globals.
728 (mark_struct_expression): Add assertion.
729 (mark_completion_tag): New function.
730 (parse_exp_in_context): Initialize new globals.
731 (parse_expression_for_completion): Add 'code' argument. Handle
732 tag completion.
733 * parser-defs.h (mark_completion_tag): Declare.
734 * symtab.c (default_make_symbol_completion_list_break_on): Add
735 'code' argument. Update.
736 (default_make_symbol_completion_list): Add 'code' argument.
737 (make_symbol_completion_list): Update.
738 (make_symbol_completion_type): New function.
739 * symtab.h (default_make_symbol_completion_list_break_on)
740 (default_make_symbol_completion_list): Update.
741 (make_symbol_completion_type): Declare.
742
155da517
TT
7432012-12-07 Tom Tromey <tromey@redhat.com>
744
745 * expression.h (parse_expression_for_completion): Rename
746 from parse_field_expression.
747 (parse_completion): Rename from in_parse_field.
748 * c-exp.y (lex_one_token): Update.
749 * completer.c (expression_completer): Update.
750 * go-exp.y (lex_one_token): Update.
751 * p-exp.y (yylex): Update.
752 * parse.c (parse_completion): Rename from in_parse_field.
753 (parse_exp_in_context): Update.
754 (parse_expression_for_completion): Rename from
755 parse_field_expression. Update.
756
4fc5d43e
TT
7572012-12-07 Tom Tromey <tromey@redhat.com>
758
759 * typeprint.c (_initialize_typeprint): Set completer
760 for "whatis" and "ptype".
761
ab39020b
JB
7622012-12-07 Joel Brobecker <brobecker@adacore.com>
763
764 * copyright.py (NOT_FSF_LIST): Remove duplicate entry
765 "sim/common/cgen-fpu.h". Remove invalid entries
766 "sim/common/sim-fpu.c" and "sim/mn10300/sim-main.h",
767 which actually have an FSF copyright header.
768
2cb50f9d
JB
7692012-12-07 Joel Brobecker <brobecker@adacore.com>
770
771 * osf-share/AT386/cma_thread_io.h: Delete.
772 * osf-share/HP800/cma_thread_io.h: Delete.
773 * osf-share/README: Delete.
774 * osf-share/RIOS/cma_thread_io.h: Delete.
775 * osf-share/cma_attr.h: Delete.
776 * osf-share/cma_deb_core.h: Delete.
777 * osf-share/cma_debug_client.h: Delete.
778 * osf-share/cma_errors.h: Delete.
779 * osf-share/cma_handle.h: Delete.
780 * osf-share/cma_init.h: Delete.
781 * osf-share/cma_list.h: Delete.
782 * osf-share/cma_mutex.h: Delete.
783 * osf-share/cma_sched.h: Delete.
784 * osf-share/cma_semaphore_defs.h: Delete.
785 * osf-share/cma_sequence.h: Delete.
786 * osf-share/cma_stack.h: Delete.
787 * osf-share/cma_stack_int.h: Delete.
788 * osf-share/cma_tcb_defs.h: Delete.
789 * osf-share/cma_util.h: Delete.
790 * Makefile.in (HFILES_NO_SRCDIR): Remove entries for the files
791 in osf-share.
792 * config/djgpp/fnchange.lst: Remove osf-share/cma_stack_int.h entry.
793 * contrib/ari/gdb_find.sh: Remove handling of osf-share.
794 * copyright.sh (NOT_FSF_LIST): Remove "gdb/osf-share" entry.
795
0ba2eb0f
TT
7962012-12-06 Pedro Alves <palves@redhat.com>
797 Tom Tromey <tromey@redhat.com>
798
799 * valops.c (value_cast): Move TYPE_CODE_VOID case earlier.
800
731145cb
TT
8012012-12-06 Jens Elmenthaler <jens.elmenthaler@advantest.com>
802
803 PR mi/14741:
804 * mi/mi-cmd-var.c (varobj_update_one): Take value of
805 attribute "dynamic" and "displayhint" from printed child,
806 not the root variable.
807
eff44fea
JB
8082012-12-06 Joel Brobecker <brobecker@adacore.com>
809
810 * aix-thread.c (getthrds): Fix type of 4th parameter.
811 (get_signaled_thread): Change type of variable ktid to tid_t.
812
c90a0773
HZ
8132012-12-06 Hui Zhu <hui_zhu@mentor.com>
814
815 * dwarf2loc.c (dwarf_expr_frame_base): Add check for the return
816 value of get_frame_block.
817
5bc81a00
PM
8182012-12-05 Pierre Muller <muller@sourceware.org>
819
820 Avoid memory leaks on struct cmd_list_element.doc field.
821 * cli/cli-decode.c (add_alias_cmd): Make a copy of doc field
822 if flags contains DOC_ALLOCATED.
823 (add_setshow_cmd_full): Add DOC_ALLOCATED to set and show
824 flags.
825 (delete_cmd): Handle DOC_ALLOCATED flag.
826 * cli/cli-decode.h (DOC_ALLOCATED): New macro for use
827 in flags filed of struct cmd_list_element.
828 (struct cmd_list_element): Document new flag item.
829
b5ebcee6
DE
8302012-12-04 Doug Evans <dje@google.com>
831
832 * symmisc.c: Whitespace fixes.
833
56bf0743
KB
8342012-12-04 Karthik Bhat <kv.bhat@samsung.com>
835
836 * i386-tdep.c (i386_skip_prologue): Using symbol table
837 to find the end of prologue for clang compiled binaries.
838 * amd64-tdep.c (amd64_skip_prologue): Using symbol table
839 to find the end of prologue for clang compiled binaries.
840
56e64610
DE
8412012-12-03 Doug Evans <dje@google.com>
842
843 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
844 (dw2_find_symbol_file): Delete unused local file_data.
845
270140bd
TT
8462012-12-03 Tom Tromey <tromey@redhat.com>
847
848 * ada-exp.y (write_object_renaming, write_var_or_type)
849 (write_ambiguous_var, write_var_from_sym): Make blocks const.
850 * ada-lang.c (replace_operator_with_call)
851 (find_old_style_renaming_symbol): Make blocks const.
852 * ada-lang.h (ada_find_renaming_symbol): Update.
853 (struct ada_symbol_info) <block>: Now const.
854 * breakpoint.c (watch_command_1): Update.
855 * breakpoint.h (struct watchpoint) <exp_valid_block,
856 cond_exp_valid_block>: Now const.
857 * c-exp.y (classify_inner_name, classify_name): Make block
858 argument const.
859 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
860 const.
861 * expression.h (innermost_block, parse_exp_1): Update.
862 (union exp_element) <block>: Now const.
863 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
864 (lookup_struct): Make block argument const.
865 * gdbtypes.h (lookup_template_type): Update.
866 * go-exp.y (classify_name, classify_packaged_name)
867 (package_name_p): Make block argument const.
868 * objc-lang.c (lookup_struct_typedef): Make block argument const.
869 * objc-lang.h (lookup_struct_typedef): Update.
870 * parse.c (parse_exp_in_context, parse_exp_1)
871 (write_exp_elt_block): Make block arguments const.
872 (expression_context_block, innermost_block): Now const.
873 * parser-defs.h (write_exp_elt_block): Update.
874 (expression_context_block, innermost_block, block_found): Now
875 const.
876 * printcmd.c (struct display) <block>: Now const.
877 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
878 * valops.c (address_of_variable): Make block argument const.
879 * value.h (value_of_variable): Update.
880 * varobj.c (struct varobj_root) <valid_block>: Now const.
881
31f56a27
YQ
8822012-11-30 Yao Qi <yao@codesourcery.com>
883
884 * breakpoint.c (print_one_breakpoint_location): Indent code.
885
556ec64d
YQ
8862012-11-30 Yao Qi <yao@codesourcery.com>
887
888 * breakpoint.c (print_one_breakpoint_location): Combine two
889 blocks handling 'hit count' together.
890
3d3fef6b
YQ
8912012-11-30 Yao Qi <yao@codesourcery.com>
892
893 * infrun.c (error_is_running, ensure_not_running): Move them
894 to ...
895 * infcmd.c (error_is_running, ensure_not_running): ... here.
896 Make them 'static'.
897 * inferior.h: Remove declarations of error_is_running and
898 ensure_not_running.
899
7cd12a76
YQ
9002012-11-30 Yao Qi <yao@codesourcery.com>
901
902 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
903 check REGNUM >= 0.
904
7a76f5b8
YQ
9052012-11-30 Yao Qi <yao@codesourcery.com>
906
907 * infrun.c: Make the declaration of 'init_infwait_state'
908 static.
909 (init_infwait_state): Make it 'static'.
910
b1209b03
UW
9112012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
912
913 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
914 return value to void to avoid compiler warning.
915
ea5e6b0e
UW
9162012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
917
918 * opencl-lang.c (opencl_print_type): New function.
919 (opencl_language_arch_info): Install it.
920
a93478ea
TT
9212012-11-29 Tom Tromey <tromey@redhat.com>
922
923 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
924 xvasprintf.
925 * common/common-utils.c (xasprintf, xvasprintf): Remove.
926 * common/common-utils.h (xasprintf, xvasprintf): Remove.
927
ac4a2da4
JG
9282012-11-29 Jerome Guitton <guitton@adacore.com>
929
930 * ada-lang.c (ada_is_interface_tag): New function.
931 (ada_is_ignored_field): Add interface tags to the list
932 of ignored fields.
933
b50d69b5
JG
9342012-11-29 Jerome Guitton <guitton@adacore.com>
935
f87e3f15 936 * ada-lang.h (ada_tag_value_at_base_address): New function
b50d69b5
JG
937 declaration.
938 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
939 New functions.
940 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
941 relocate the class-wide value if need be.
942 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
943 Let ada_tag_value_at_base_address relocate the class-wide access/ref
944 before dereferencing it.
945 * ada-valprint.c (ada_val_print_1): Relocate to base address
946 before displaying the content of an interface-wide ref.
947
ca1f964d
JG
9482012-11-29 Jerome Guitton <guitton@adacore.com>
949
950 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
951
38d03cf1 9522012-11-29 Joel Brobecker <brobecker@adacore.com>
953
954 GDB 7.5.1 released.
955
f5682501
YQ
9562012-11-29 Yao Qi <yao@codesourcery.com>
957 Tom Tromey <tromey@redhat.com>
958
959 * eval.c (evaluate_subexp_standard): Get the correct pointer
960 type for TYPE_CODE_MEMBERPTR.
961
f359d716
EBM
9622012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
963
964 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
965 since now it is being done by binutils' powerpc_init_dialect().
966
0cd61f44
TT
9672012-11-28 Tom Tromey <tromey@redhat.com>
968
969 PR gdb/14290:
970 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
971 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
972 Use it.
973 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
974 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
975 (gdb_bfd_openr_next_archived_file): Use it.
976
945bf713
MM
9772012-11-28 Markus Metzger <markus.t.metzger@intel.com>
978
979 * configure.ac: Check for linux/perf_event.h.
980 * config.in: Regenerated.
981 * configure: Regenerated.
982
7e20dfcd
YQ
9832012-11-28 Yao Qi <yao@codesourcery.com>
984
985 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
986 abbreviate 'delete tracepoints' to 'delete tr'.
987 * corefile.c (_initialize_core): Call add_alias_cmd to
988 abbreviate 'set gnutarget' to 'set g'.
989 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
990 'show convenience' to 'show conv'.
991
b8293cc8
JB
9922012-11-27 Joel Brobecker <brobecker@adacore.com>
993
994 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
995 call to sparc_supply_fpregset.
996 (fill_fpregset): Fix first parameter in call to
997 sparc_collect_fpregset.
998
8c2b9656
YQ
9992012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1000 Kazu Hirata <kazu@codesourcery.com>
1001 Yao Qi <yao@codesourcery.com>
1002
1003 * objfiles.c (init_entry_point_info): Call
1004 gdbarch_convert_from_func_ptr_addr and
1005 gdbarch_addr_bits_remove here ...
1006 (entry_point_address_query): ... instead of here.
1007 * solib-svr4.c (exec_entry_point): Call
1008 gdbarch_addr_bits_remove.
1009 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
1010 the entry address.
1011
5edf51fe
YQ
10122012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
1013 Yao Qi <yao@codesourcery.com>
1014
1015 * eval.c (evaluate_subexp_standard): Add handling of
1016 TYPE_CODE_MEMBERPTR when calling functions. Correct the
1017 result of ptype for calling a TYPE_CODE_METHODPTR.
1018
ca242aad
YQ
10192012-11-27 Yao Qi <yao@codesourcery.com>
1020
1021 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
1022 warning.
1023 Add i18n markup.
1024
608e2dbb
TT
10252012-11-26 Alexander Larsson <alexl@redhat.com>
1026 Jan Kratochvil <jan.kratochvil@redhat.com>
1027 Tom Tromey <tromey@redhat.com>
1028
1029 * NEWS: Mention mini debuginfo feature.
1030 * minidebug.c: New file.
1031 * configure.ac: Check for lzma.
1032 * configure, config.in: Rebuild.
1033 * Makefile.in (LIBLZMA): New variable.
1034 (CLIBS): Include LIBLZMA.
1035 (SFILES): Mention minidebug.c.
1036 (COMMON_OBS): Mention minidebug.o.
1037 * symfile.c (read_symbols): New function.
1038 (syms_from_objfile, reread_symbols): Call it.
1039 * symfile.h (find_separate_debug_file_in_section): Declare.
1040
17d6efc4
JB
10412012-11-26 Keith Seitz <keiths@redhat.com>
1042
1043 * exec.c (exec_file_attach): Move cleanup after verifying that
1044 memory has in fact been allocated.
1045
210bbc17
TT
10462012-11-26 Tom Tromey <tromey@redhat.com>
1047
1048 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
1049 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
1050 SYMBOL_SYMTAB.
1051 * skip.c (skip_info): Use SYMBOL_SYMTAB.
1052
0270a750
PA
10532012-11-26 Maxime Villard <rustyBSD@gmx.fr>
1054 Pedro Alves <palves@redhat.com>
1055
1056 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
1057 size parameter passed to readlink by one byte.
1058 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
1059 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
1060 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
1061 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
1062 size by one byte.
1063
9c16be9a
YQ
10642012-11-26 Yao Qi <yao@codesourcery.com>
1065
1066 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
1067 extraneous parentheses.
1068
e6f3fa52
YQ
10692012-11-26 Yao Qi <yao@codesourcery.com>
1070
1071 * remote.c (remote_start_remote): Typo fix.
1072
db75c717
DM
10732012-11-23 David S. Miller <davem@davemloft.net>
1074
1075 * sparc-tdep.h (struct sparc_fpregset): New data structure.
1076 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
1077 sparc32_sol2_fpregset): Declare new globals.
1078 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
1079 'fpregset' argument.
1080 * sparc64-tdep.h (sparc64_supply_fpregset,
1081 sparc64_collect_fpregset): Likewise.
1082 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
1083 globals.
1084 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
1085 (sparc_fpregset): Declare new global.
1086 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
1087 'fpregset' argument.
1088 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
1089 into handler.
1090 (fill_fpregset): Likewise.
1091 (_initialize_sparc_linux_nat): Set sparc_fpregset to
1092 sparc32_bsd_fpregset.
1093 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
1094 sparc32_bsd_fpregset down into handler.
1095 (sparc32_linux_collect_core_fpregset): Likewise.
1096 * sparc-nat.c (sparc_fpregset): Define.
1097 (sparc_supply_fpregset): Add 'fpregset' argument.
1098 (sparc_collect_fpregset): Likewise.
1099 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
1100 into fpregset handler.
1101 (sparc_store_inferior_registers): Likewise.
1102 (_initialize_sparc_nat): Set sparc_fpregset to
1103 sparc32_sunos4_fpregset if NULL.
1104 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
1105 down into handler.
1106 (fill_fpregset): Likewise.
1107 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
1108 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
1109 use it to compute offsets.
1110 (sparc32_collect_fpregset): Likewise.
1111 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
1112 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
1113 down into handler.
1114 (fill_fpregset): Likewise.
1115 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
1116 Likewise.
1117 (sparc64_linux_collect_core_fpregset): Likewise.
1118 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
1119 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
1120 use it to compute offsets.
1121 (sparc64_collect_fpregset): Likewise.
1122 (sparc64_bsd_fpregset): Define.
1123 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
1124 sparc64_bsd_fpregset down into handler.
1125 (sparc64fbsd_collect_fpregset): Likewise.
1126 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
1127 and pass sparc{32,64}_bsd_fpregset down into handler.
1128 (sparc64nbsd_collect_fpregset): Likewise.
1129 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
1130 sparc64_bsd_fpregset down into handler.
1131 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
1132 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
1133 to sparc32_bsd_fpregset.
1134 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
1135 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
1136 (sparc32nbsd_supply_fpregset): Likewise.
1137
cfcad218
TT
11382012-11-21 Tom Tromey <tromey@redhat.com>
1139
1140 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
1141 field.
1142 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
1143 Remove.
1144 * c-typeprint.c (c_type_print_base): Update.
1145
85ddcc70
YQ
11462012-11-21 Yao Qi <yao@codesourcery.com>
1147
1148 PR tdep/7438
1149 * gdbarch.sh (smash_text_address): Remove.
1150 * gdbarch.c, gdbarch.h: Regenerate.
1151 * arm-tdep.c (arm_smash_text_address): Remove.
1152 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1153 * hppa-tdep.c (hppa_smash_text_address): Remove.
1154 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
1155 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
1156 Caller update.
1157 * coffread.c (coff_symtab_read): Caller update.
1158 * dbxread.c (process_one_symbol): Likewise.
1159 * elfread.c (record_minimal_symbol): Likewise.
1160 * somread.c (som_symtab_read): Likewise.
1161
11522069
PM
11622012-11-20 Pierre Muller <muller@sourceware.org>
1163
1164 ARI fixes: sprintf rule.
1165 Replace sprintf function calls for char arrays by
1166 calls to xsnprintf calls.
1167 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
1168 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
1169 (arm_neon_quad_read, arm_pseudo_read): Ditto.
1170 (arm_neon_quad_write, arm_pseudo_write): Ditto.
1171 * breakpoint.c (condition_completer): Ditto.
1172 (create_tracepoint_from_upload): Ditto.
1173 * dwarf2read.c (file_full_name): Ditto.
1174 * gcore.c (gcore_command): Ditto.
1175 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
1176 * go32-nat.c (go32_sysinfo): Ditto.
1177 * interps.c (interp_set): Ditto.
1178 * m32c-tdep.c (make_types): Ditto.
1179 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
1180 * remote-m32r-sdi.c (m32r_open): Ditto.
1181 * sol-thread.c (td_err_string): Ditto.
1182 (td_state_string, solaris_pid_to_str): Ditto.
1183 * symtab.c (gdb_mangle_name): Ditto.
1184 * cli/cli-script.c (execute_control_command): Ditto.
1185 (define_command, document_command): Ditto.
1186 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
1187 * tui/tui-stack.c (tui_make_status_line): Ditto.
1188 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
1189
ace21957
MF
11902012-11-20 Mike Frysinger <vapier@gentoo.org>
1191
1192 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
1193 it when looking at ptr->func.
1194 * command.h (complete_on_cmdlist): Add a fourth arg.
1195 * completer.c (complete_line_internal): Add local ignore_help_classes,
1196 and set it to 1 when reason is not handle_help. Pass this down to
1197 lookup_cmd_1 and complete_on_cmdlist.
1198
ec6632d7
TT
11992012-11-20 Tom Tromey <tromey@redhat.com>
1200
1201 * completer.c (count_struct_fields): Remove.
1202 (expression_completer): Don't call count_struct_fields.
1203
ef37bb07
PA
12042012-11-20 Pedro Alves <palves@redhat.com>
1205
1206 * annotate.c (breakpoints_changed): Rename to ...
1207 (annotate_breakpoints_changed): ... this.
1208 (annotate_stopped, breakpoint_changed): Adjust caller.
1209 * annotate.h (breakpoints_changed): Rename to ...
1210 (annotate_breakpoints_changed): ... this.
1211 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
1212 (do_map_commands_command, init_raw_breakpoint, clear_command)
1213 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
1214
b245bdfc
DM
12152012-11-20 David S. Miller <davem@davemloft.net>
1216
1217 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
1218 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
1219 sysconf.
1220 (get_cores_used_by_process): Update comment.
1221
bd0cfc4d
YQ
12222012-11-20 Yao Qi <yao@codesourcery.com>
1223
1224 * objfiles.c (init_entry_point_info): Remove trailing spaces.
1225
de9f1b68
YQ
12262012-11-20 Yao Qi <yao@codesourcery.com>
1227
1228 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
1229 to deprecated_context_hook.
1230
8870954f
YQ
12312012-11-19 Yao Qi <yao@codesourcery.com>
1232
1233 * infrun.c (infwait_state): Add static.
1234
8dea366b
KS
12352012-11-16 Keith Seitz <keiths@redhat.com>
1236
1237 PR c++/13615
1238 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
1239 parameter and pass it to lookup_symbol_file.
1240 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
1241 to search base classes.
1242 (cp_lookup_symbol_namespace): Likewise.
1243 (lookup_namespace_scope): Likewise.
1244 (lookup_symbol_file): Add SEARCH parameter.
1245 If SEARCH is non-zero and no symbol is found, lookup the class
1246 and call cp_lookup_nested_symbol.
1247 (find_symbol_in_baseclass): New function.
1248 (cp_lookup_nested_symbol): Do not let
1249 cp_lookup_symbol_in_namespace search through base classes.
1250 Do that later when there is no global symbol match.
1251
e64e0392
DE
12522012-11-16 Doug Evans <dje@google.com>
1253
1254 * main.c (gdb_datadir_provided): New static global.
1255 (get_init_files): If --data-directory is provided,
1256 and SYSTEM_GDBINIT lives in data-directory, look for it there.
1257 * NEWS: Mention it.
1258
8bdce1ff
PM
12592012-11-15 Pierre Muller <muller@sourceware.org>
1260
1261 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
1262 * gdb_stat.h: Delete. Moved to common directory.
1263 * common/gdb_stat.h: New file.
1264 * gdb_wait.h: Delete. Moved to common directory.
1265 * common/gdb_wait.h: New file.
1266 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
1267 location.
1268 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
1269 location.
1270 (stat.h rule): Adapt to new gdb_stat.h location.
1271 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
1272 <sys/stat.h> header.
1273 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
1274 <sys/wait.h> header.
1275
3a731e0f
PM
12762012-11-15 Pierre Muller <muller@sourceware.org>
1277
1278 * configure.ac (AC_HEADER_STAT): Remove.
1279 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
1280 and corresponding code.
1281 * configure: Regenerate.
1282 * config.in: Regenerate.
1283
2792b94d
PM
12842012-11-15 Pierre Muller <muller@sourceware.org>
1285
1286 ARI xasprintf rule fixes.
1287 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
1288 instead of xasprintf.
1289 (open_and_init_dwp_file): Ditto.
1290
5e34c6c3
LM
12912012-11-14 Luis Machado <lgustavo@codesourcery.com>
1292
1293 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
1294 target types.
1295
e68227b9
TT
12962012-11-14 Tom Tromey <tromey@redhat.com>
1297
1298 * configure, config.in: Rebuild.
1299 * configure.ac: Don't check for ctype.h, time.h.
1300 * expprint.c: Don't use HAVE_CTYPE_H.
1301
aff68abb
TT
13022012-11-13 Tom Tromey <tromey@redhat.com>
1303
1304 * gdbarch.h, gdbarch.c: Rebuild.
1305 * gdbarch.sh (set_target_gdbarch): Rename from
1306 deprecated_target_gdbarch_select_hack.
1307 * arch-utils.c (gdbarch_update_p): Update.
1308 (set_gdbarch_from_file): Update.
1309
84277139 13102012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
1311
1312 * MAINTAINERS (Responsible Maintainers/misc): Add myself
1313 as responsible of contrib/ari directory.
1314
2ae28aa9
YQ
13152012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
1316 Yao Qi <yao@codesourcery.com>
1317
1318 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
1319 bit of EXC_RETURN.
1320 (arm_m_exception_cache, arm_m_exception_this_id)
1321 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
1322 (arm_m_exception_unwind): New.
1323 (arm_gdbarch_init): Register arm_m_exception_unwind.
1324
62747a60
TT
13252012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
1326
1327 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
1328 parameter COUNT, for pattern filling of memory regions.
1329 * NEWS: Mention it.
1330
4cd29721
MM
13312012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1332
1333 * disasm.h (DISASSEMBLY_FILENAME): New macro.
1334 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
1335 to print_source_lines ().
1336 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
1337 flag.
1338 * source.c (print_source_lines_base): Prefix source line with
1339 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
1340
dfaae886
MM
13412012-11-13 Markus Metzger <markus.t.metzger@intel.com>
1342
1343 * symtab.h (print_source_lines_flags): New enum.
1344 * source.c (print_source_lines_base): Change noerror to flags.
1345 (print_source_lines): Change noerror to flags.
1346
08850b56
PM
13472012-11-13 Pierre Muller <muller@sourceware.org>
1348
1349 ARI fixes: Avoid sprintf function use rule.
1350 * charset.c (convert_between_encodings): Use xsnprintf.
1351 * cli-out.c (cli_field_int): Likewise.
1352 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
1353 * expprint.c (op_name_standard): Likewise.
1354 * frv-tdep.c (set_variant_num_gprs): Likewise.
1355 (set_variant_num_fprs): Likewise.
1356 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
1357 * nto-tdep.c (nto_find_and_open_solib): Likewise.
1358 (nto_init_solib_absolute_prefix): Likewise.
1359 * source.c (init_source_path): Likewise.
1360 (print_source_lines_base): Likewise.
1361 * valprint.c (print_wchar): Likewise.
1362 * mi/mi-out.c (mi_field_int): Likewise.
1363 windows-nat.c (windows_pid_to_exec_file): Likewise.
1364 (windows_create_inferior): Likewise.
1365 (_initialize_check_for_gdb_ini): Likewise.
1366
ca9d61b9
JB
13672012-11-12 Joel Brobecker <brobecker@adacore.com>
1368
1369 * frame.h (deprecated_frame_register_read): Renames
1370 frame_register_read.
1371 * frame.c (deprecated_frame_register_read): Renames
1372 frame_register_read. Update all callers.
1373 * i386-tdep.c: Update all callers of frame_register_read.
1374 * infcmd.c: Likewise.
1375 * jit.c: Likewise.
1376 * mips-tdep.c: Likewise.
1377 * mt-tdep.c: Likewise.
1378 * sh64-tdep.c: Likewise.
1379
b2c7d45a
JB
13802012-11-12 Joel Brobecker <brobecker@adacore.com>
1381
1382 * frame.h (frame_register_read): Remove FIXME comment.
1383 * frame.c (frame_register_read): Add suggestion explaining
1384 which function to use in place of this one.
1385
31594462
TT
13862012-11-12 Tom Tromey <tromey@redhat.com>
1387
1388 * python/python.c (start_type_printers): Initialize 'result_obj'.
1389
18a9fc12
TT
13902012-11-12 Tom Tromey <tromey@redhat.com>
1391
1392 * NEWS: Update.
1393 * data-directory/Makefile.in (PYTHON_FILES): Add
1394 type_printers.py.
1395 * python/lib/gdb/command/type_printers.py: New file.
1396 * python/lib/gdb/command/types.py (TypePrinter): New class.
1397 (_get_some_type_recognizers, get_type_recognizers,
1398 apply_type_recognizers, register_type_printer): New
1399 functions.
1400 * python/py-objfile.c (objfile_object) <type_printers>: New
1401 field.
1402 (objfpy_dealloc): Decref new field.
1403 (objfpy_new): Set new field.
1404 (objfpy_get_type_printers, objfpy_set_type_printers): New
1405 functions.
1406 (objfile_to_objfile_object): Set new field.
1407 (objfile_getset): Add "type_printers".
1408 * python/py-progspace.c (pspace_object) <type_printers>: New
1409 field.
1410 (pspy_dealloc): Decref new field.
1411 (pspy_new): Set new field.
1412 (pspy_get_type_printers, pspy_set_type_printers): New functions.
1413 (pspace_to_pspace_object): Set new field.
1414 (pspace_getset): Add "type_printers".
1415 * python/python.c (start_type_printers, apply_type_printers,
1416 free_type_printers): New functions.
1417 (_initialize_python): Set gdb.type_printers.
1418 * python/python.h (start_type_printers, apply_type_printers,
1419 free_type_printers): Declare.
1420 * typeprint.c (type_print_raw_options, default_ptype_flags):
1421 Update for new fields.
1422 (do_free_global_table, create_global_typedef_table,
1423 find_global_typedef): New functions.
1424 (find_typedef_in_hash): Use find_global_typedef.
1425 (whatis_exp): Use create_global_typedef_table. Change cleanup
1426 handling.
1427 * typeprint.h (struct type_print_options) <global_typedefs,
1428 global_printers>: New fields.
1429
bd69fc68
TT
14302012-11-12 Tom Tromey <tromey@redhat.com>
1431
1432 * c-typeprint.c (find_typedef_for_canonicalize,
1433 print_name_maybe_canonical): New functions.
1434 (c_print_type): Look up type name.
1435 (cp_type_print_derivation_info): Add flags argument. Use
1436 print_name_maybe_canonical.
1437 (cp_type_print_method_args): Add wrapping.
1438 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
1439 (c_type_print_template_args): New function.
1440 (c_type_print_base): Change wrapping. Use
1441 print_name_maybe_canonical.
1442 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
1443 type name lookups.
1444 * gdbtypes.c (types_equal): No longer static.
1445 * gdbtypes.h (types_equal): Declare.
1446 * typeprint.c (type_print_raw_options, default_ptype_flags):
1447 Update.
1448 (struct typedef_hash_table): New.
1449 (hash_typedef_field, eq_typedef_field,
1450 recursively_update_typedef_hash, add_template_parameters,
1451 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
1452 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
1453 copy_typedef_hash, find_typedef_in_hash): New functions.
1454 * typeprint.h (struct type_print_options) <local_typedefs>:
1455 New field.
1456 (recursively_update_typedef_hash, add_template_parameters,
1457 create_typedef_hash, free_typedef_hash,
1458 make_cleanup_free_typedef_hash, copy_typedef_hash,
1459 find_typedef_in_hash): Declare.
1460
2621e0fd
TT
14612012-11-12 Tom Tromey <tromey@redhat.com>
1462
1463 * cp-support.c (inspect_type,
1464 replace_typedefs_qualified_name, replace_typedefs): Add
1465 finder, data arguments. Call as needed.
1466 (cp_canonicalize_string_full): New function.
1467 (cp_canonicalize_string_no_typedefs): Rewrite.
1468 * cp-support.h (canonicalization_ftype): New typedef.
1469 (cp_canonicalize_string_full): Declare.
1470
53342f27
TT
14712012-11-12 Tom Tromey <tromey@redhat.com>
1472
1473 * NEWS: Update.
1474 * c-typeprint.c (c_type_print_base): Handle print_method and
1475 print_typedefs flags.
1476 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
1477 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
1478 options.
1479 * typeprint.c (type_print_raw_options, default_ptype_flags):
1480 Update for new field.s
1481 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
1482 (setprinttypelist, showprinttypelist, print_methods,
1483 print_typedefs): New globals.
1484 (set_print_type, show_print_type, set_print_type_methods,
1485 show_print_type_methods, set_print_type_typedefs,
1486 show_print_type_typedefs): New functions.
1487 (_initialize_typeprint): Update documentation. Add "print
1488 type methods" and "print type typedefs" parameters.
1489 * typeprint.h (struct type_print_options) <print_methods,
1490 print_typedefs>: New fields.
1491
6c8702eb
TT
14922012-11-12 Tom Tromey <tromey@redhat.com>
1493
1494 * c-typeprint.c (cp_type_print_method_args): Add flags
1495 argument. Call c_print_type, not type_print.
1496 (c_type_print_base): Call c_print_type, not type_print.
1497 Update.
1498
79d43c61
TT
14992012-11-12 Tom Tromey <tromey@redhat.com>
1500
1501 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
1502 to type-printing functions.
1503 * ada-lang.h (ada_print_type): Add argument.
1504 * ada-typeprint.c (print_array_type, print_variant_clauses,
1505 print_variant_part, print_selected_record_field_types,
1506 print_record_field_types, print_unchecked_union_type,
1507 print_func_type, ada_print_type): Add flags argument.
1508 (ada_print_typedef): Update.
1509 * c-exp.y (OPERATOR conversion_type_id): Update.
1510 * c-lang.h (c_print_type, c_type_print_base): Update.
1511 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
1512 c_type_print_modifier, c_type_print_args,
1513 c_type_print_varspec_suffix, c_type_print_base): Add flags
1514 argument.
1515 * cp-valprint.c (cp_print_class_member): Update.
1516 * dwarf2read.c (dwarf2_compute_name): Update.
1517 * f-lang.h (f_print_type): Add argument.
1518 * f-typeprint.c (f_print_type): Add flags argument.
1519 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
1520 * go-lang.h (go_print_type): Add argument.
1521 * go-typeprint.c (go_print_type): Add flags argument.
1522 * jv-lang.h (java_print_type): Add argument.
1523 * jv-typeprint.c (java_type_print_base, java_print_type): Add
1524 flags argument.
1525 * language.c (unk_lang_print_type): Add flags argument.
1526 * language.h (struct language_defn) <la_print_type>: Add flags
1527 argument.
1528 (LA_PRINT_TYPE): Likewise.
1529 * m2-lang.h (m2_print_type): Add argument.
1530 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
1531 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
1532 m2_unbounded_array, m2_record_fields): Add flags argument.
1533 * p-lang.h (pascal_print_type, pascal_type_print_base,
1534 pascal_type_print_varspec_prefix): Add argument.
1535 * p-typeprint.c (pascal_print_type,
1536 pascal_type_print_varspec_prefix, pascal_print_func_args,
1537 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
1538 flags argument.
1539 * symmisc.c (print_symbol): Update.
1540 * typeprint.c (type_print_raw_options, default_ptype_flags):
1541 New globals.
1542 (type_print): Update.
1543 * typeprint.h (struct type_print_options): New.
1544 (type_print_raw_options): Declare.
1545 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
1546
cf4ded82
KS
15472012-11-10 Keith Seitz <keiths@redhat.com>
1548
1549 * breakpoint.c (clear_command): Add cleanup for
1550 sals.sals if an argument is given.
1551
1552 * linespec.c (parse_linespec): Do cleanups after
1553 parsing a convenience variable.
1554
0d63ecda
KS
15552012-11-10 Keith Seitz <keiths@redhat.com>
1556
1557 PR gdb/14288
1558 * c-valprint.c (c_val_print): For character arrays
1559 with "print null" option on, print ellipses if
1560 the output is truncated and the next character is not \000.
1561 * valprint.c (MAX_WCHARS): Define.
1562 (WCHAR_BUFLEN): Likewise.
1563 (WCHAR_BUFLEN_MAX): Likewise.
1564 (struct converted_character): New structure.
1565 (count_next_character): New function.
1566 (print_converted_chars_to_obstack): New function.
1567 (generic_printstr): Rewrite using count_next_character
1568 and print_converted_chars_to_obstack.
1569
9b8d6827
SC
15702012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1571
1572 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
1573 while executing the gdb command.
1574 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
1575 are called from prompt_for_continue.
1576 * tui/tui-io.c (tui_redisplay_readline): Likewise.
1577
e840f632
SC
15782012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
1579
1580 PR tui/9584
1581
1582 * tui/tui.c (tui_rl_command_key): Do not call execute_command
1583 but insert the command to execute in readline's buffer.
1584
f5656ead
TT
15852012-11-09 Tom Tromey <tromey@redhat.com>
1586
1587 * gdbarch.sh (target_gdbarch): Remove macro.
1588 (get_target_gdbarch): Rename to target_gdbarch.
1589 * gdbarch.c, gdbarch.h: Rebuild.
1590 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
1591 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
1592 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
1593 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
1594 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
1595 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
1596 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
1597 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
1598 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
1599 procfs.c, progspace.c, ravenscar-thread.c, record.c,
1600 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
1601 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
1602 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
1603 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
1604 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
1605 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
1606 target-descriptions.c, target.c, target.h, tracepoint.c,
1607 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
1608 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
1609 python/py-inferior.c, python/python.c: Update.
1610
ed8a1c2d
AB
16112012-11-09 Andrew Burgess <aburgess@broadcom.com>
1612
1613 * source.c (print_source_lines_base): Add fullname field giving
1614 full path to file in mi output.
1615 * NEWS: Mention the new fullname field.
1616
504b36fd
YQ
16172012-11-09 Yao Qi <yao@codesourcery.com>
1618
1619 * NEWS: Mention the fix to the ambiguity of 'fo' command.
1620
9107fc8d
PA
16212012-11-09 Pedro Alves <palves@redhat.com>
1622
1623 PR gdb/14306
1624
1625 * infrun.c: Include target-descriptions.h.
1626 (follow_exec): Fetch new target description.
1627
30f8135b
YQ
16282012-11-09 Yao Qi <yao@codesourcery.com>
1629
1630 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
1631 0x8d (lea).
1632
558a9d82
YQ
16332012-11-09 Yao Qi <yao@codesourcery.com>
1634
1635 * breakpoint.c: Declare set_tracepoint_count.
1636 (install_breakpoint): Call set_tracepoint_count if B is a
1637 tracepoint.
1638 (trace_command): Don't call set_tracepoint_count. Re-indent.
1639 (strace_command, ftrace_command):
1640 (create_tracepoint_from_upload): Likewise.
1641
6ecd4729
PA
16422012-11-09 Pedro Alves <palves@redhat.com>
1643
1644 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
1645 (get_target_gdbarch) <gdbarch.h>: New function.
1646 (startup_gdbarch) <gdbarch.h>: Declare.
1647 <gdbarch.c> (target_gdbarch): Delete.
1648 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
1649 current inferior's gdbarch.
1650 <gdbarch.c> (get_target_gdbarch): New function.
1651 * inferior.c: Include target-descriptions.h.
1652 (free_inferior): Free target description info.
1653 (add_inferior_with_spaces): Set the inferior's initial
1654 architecture.
1655 (clone_inferior_command): Copy the original inferior's target
1656 description if it was user specified.
1657 (initialize_inferiors): Add comment.
1658 * inferior.h (struct target_desc_info): Forward declare.
1659 (struct inferior) <gdbarch>: New field.
1660 * linux-nat.c: Include target-descriptions.h.
1661 (linux_child_follow_fork): Copy the parent's architecture and
1662 target description to the child.
1663 * target-descriptions.c: Include inferior.h.
1664 (struct target_desc_info): New structure, holding the equivalents
1665 of ...
1666 (target_desc_fetched, current_target_desc)
1667 (target_description_filename): ... these removed globals.
1668 (get_tdesc_info, target_desc_info_from_user_p)
1669 (copy_inferior_target_desc_info, target_desc_info_free): New.
1670 (target_desc_fetched, current_target_desc)
1671 (target_description_filename): Reimplemented as convenience
1672 macros.
1673 (tdesc_filename_cmd_string): New global.
1674 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
1675 tdescs filename ..." commands to the per-inferior equivalent.
1676 (show_tdesc_filename_cmd): Get the value to show from the
1677 per-inferior description filename.
1678 (_initilize_target_descriptions): Change the "set/show tdesc
1679 filename" commands' variable.
1680 * target-descriptions.h (struct target_desc, struct target_desc_info)
1681 (struct inferior): Forward declare.
1682 (target_find_description, target_clear_description)
1683 (target_current_description): Adjust comments.
1684 (copy_inferior_target_desc_info, target_desc_info_free)
1685 (target_desc_info_from_user_p). Declare.
1686
4ca4d161
SC
16872012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1688
1689 * tui/tui-hooks.c (tui_about_to_proceed): New function.
1690 (tui_target_wait_hook): Remove.
1691 (tui_install_hooks): Install the about_to_proceed observer.
1692 (tui_remove_hooks): And remove it here.
1693
9015683b
TT
16942012-11-08 Tom Tromey <tromey@redhat.com>
1695
1696 * linux-tdep.c (linux_make_siginfo_note): New function.
1697 (linux_make_corefile_notes): Use it.
1698 * corelow.c (get_core_siginfo): New function.
1699 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
1700
ea9f10bb
TT
17012012-11-08 Tom Tromey <tromey@redhat.com>
1702
1703 PR gdb/14704:
1704 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
1705 (zlib_decompress_section): Remove.
1706 (gdb_bfd_map_section): Only check for compressed section
1707 in mmap case. Use bfd_get_full_section_contents.
1708 * osabi.c (check_note): Add 'sectsize' argument. Read
1709 section data.
1710 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
1711 section data. Update for check_note change.
1712 * xcoffread.c (xcoff_initial_scan): Use
1713 bfd_get_full_section_contents.
1714 * py-auto-load.c (auto_load_section_scripts): Use
1715 bfd_get_full_section_contents.
1716 * contrib/cc-with-tweaks.sh: Add -Z option.
1717
d071a26b
TT
17182012-11-08 Tom Tromey <tromey@redhat.com>
1719
1720 * python/py-bpevent.c: Include defs.h.
1721 * python/py-continueevent.c: Include defs.h.
1722 * python/py-event.c: Include defs.h.
1723 * python/py-event.h: Don't include defs.h.
1724 * python/py-events.h: Don't include defs.h.
1725 * python/py-evts.c: Include defs.h.
1726 * python/py-exitedevent.c: Include defs.h.
1727 * python/py-newobjfileevent.c: Include defs.h.
1728 * python/py-signalevent.c: Include defs.h.
1729 * python/py-stopevent.c: Include defs.h.
1730 * python/py-threadevent.c: Include defs.h.
1731
4574b35a
PM
17322012-11-08 Pierre Muller <muller@sourceware.org>
1733
1734 * update-web-ari.sh (print_heading): Add number of files
1735 checked.
1736 (nb_files): New variable counting the number of sources
1737 files found by gdb_find.sh script.
1738 (debug_awk): New variable to allow extra debug output.
1739 (indexes): Add more information if DEBUG_AWK is set.
1740
2834ab42
EBM
17412012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
1742
1743 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
1744 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
1745 following the change in PLT call stubs on linker.
1746
84f13595
PM
17472012-11-08 Pierre Muller <muller@sourceware.org>
1748
1749 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
1750 as default language.
1751 (AWK): Use = instead of == for sh test to avoid warning.
1752 (Linux rule): Correct [:digit] into [[:digit:]].
1753 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
1754 (vasprintf rule): Adapt to common subdirectory moves.
1755 (xasprintf rule): Idem.
1756 (xvasprintf rule): Idem.
1757 (var_boolean rule): Accept occurence in == or != test.
1758
1759 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
1760
d69e6a33
SC
17612012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
1762
1763 * tui/tui-hooks.c (tui_inferior_exit): New function.
1764 (tui_detach_hook): Remove.
1765 (tui_install_hooks): Install the inferior exit observer.
1766 (tui_remove_hooks): Remove it.
1767
1e96de83
YQ
17682012-11-08 Yao Qi <yao@codesourcery.com>
1769
1770 PR gdb/14777.
1771 * source.c (_initialize_source): Call add_com_alias to abbreviate
1772 'forward-search' as 'fo'.
1773
0baeab03
PA
17742012-11-07 Pedro Alves <palves@redhat.com>
1775
1776 * arm-tdep.c: Make defs.h be the first include.
1777 * coff-pe-read.c: Ditto.
1778 * gnu-nat.c: Ditto.
1779 * go32-nat.c: Ditto.
1780 * i386-nat.c: Ditto.
1781 * ppcnbsd-nat.c: Ditto.
1782 * ada-varobj.h: Don't include defs.h.
1783 * i386-darwin-tdep.h: Ditto.
1784 * i386-nat.h: Ditto.
1785
892a8570
PA
17862012-11-07 Pedro Alves <palves@redhat.com>
1787
1788 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
1789 Committee.
1790
719502e9
PM
17912012-11-07 Pierre Muller <muller@sourceware.org>
1792
1793 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
1794 File already uses "gdb_dirent.h" header.
1795
ed86b350
YQ
17962012-11-07 Yao Qi <yao@codesourcery.com>
1797
1798 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
1799 tracepoint_count'.
1800
9a4f1e4f
TT
18012012-11-06 Tom Tromey <tromey@redhat.com>
1802
1803 * target.h (inferior_has_forked, inferior_has_vforked)
1804 (inferior_has_execd, inferior_has_called_syscall): Remove
1805 declarations.
1806
0316657e
PM
18072012-11-06 Pierre Muller <muller@sourceware.org>
1808
1809 * remote.c (remote_insert_hw_breakpoint): ARI fix,
1810 add missing internalization markup.
1811
f6592439
PA
18122012-11-06 Pedro Alves <palves@redhat.com>
1813
1814 PR gdb/14810
1815
1816 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
1817
01f2564a
PM
18182012-11-06 Pierre Muller <muller@sourceware.org>
1819
1820 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
1821 is not executable.
1822
f37c4431
JB
18232012-11-05 Joel Brobecker <brobecker@adacore.com>
1824
1825 * gnulib/update-gnulib.sh: New script.
1826
550889c3
JB
18272012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
1828
1829 * MAINTAINERS: Update my email address.
1830
954b50b3
TT
18312012-11-05 Tom Tromey <tromey@redhat.com>
1832
1833 * frame.c (put_frame_register): Don't use temporary buffer.
1834
68c9da30
PA
18352012-11-05 Pedro Alves <palves@redhat.com>
1836
1837 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
1838 child. Clear 'pending_detach'.
1839 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1840 'pending_detach' in the vfork parent.
1841
80626a55
DE
18422012-11-05 Doug Evans <dje@google.com>
1843
1844 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1845 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1846 * dwarf2read.c: #include "elf-bfd.h".
1847 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1848 (dwop_section_names): Renamed from dwo_section names. All uses
1849 updated. Add entries for .debug_cu_index, .debug_tu_index.
1850 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1851 All uses updated.
1852 (struct dwp_sections): New type.
1853 (struct virtual_dwo_sections): New type.
1854 (struct dwp_hash_table): New type.
1855 (struct dwp_file): New type.
1856 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1857 read in. Handle DWOs coming from DWP files.
1858 (lookup_dwo_file_slot): New function.
1859 (dwarf2_locate_dwo_sections): Move definition closer to use.
1860 (create_dwo_debug_info_hash_table_reader): Renamed from
1861 create_debug_info_hash_table_reader. All callers updated.
1862 (create_dwo_debug_info_hash_table): Renamed from
1863 create_debug_info_hash_table. All callers updated.
1864 (create_dwp_hash_table): New function.
1865 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1866 (lookup_dwo_in_dwp): New function.
1867 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1868 is_dwp. All callers updated.
1869 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1870 (open_and_init_dwo_file): Renamed from init_dwo_file.
1871 All callers updated.
1872 (lookup_dwo_file): Delete.
1873 (dwarf2_locate_dwp_sections): New function.
1874 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1875 (allocate_dwp_loaded_cutus_table): New function.
1876 (open_and_init_dwp_file): New function.
1877 (lookup_dwo_cutu): New function.
1878 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1879
6f6484cd
YQ
18802012-11-03 Yao Qi <yao@codesourcery.com>
1881
1882 Fix PR gdb/14617.
1883 * breakpoint.c (trace_pass_set_count): Call
1884 observer_notify_breakpoint_modified instead of
1885 observer_notify_tracepoint_modified.
1886 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1887
b45627a0
TT
18882012-11-02 Tom Tromey <tromey@redhat.com>
1889
1890 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1891 argument to complete_on_enum.
1892
d4fb63e1
TT
18932012-11-02 Tom Tromey <tromey@redhat.com>
1894
1895 * configure: Rebuild.
1896 * configure.ac (build_warnings): Add -Wempty-body.
1897 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1898 * remote.c (handle_notification): Use braces for empty 'else' body.
1899 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1900 'else' body.
1901 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1902 'else' body.
1903 * solib-som.c (som_relocate_section_addresses): Use braces
1904 for empty 'else' body.
1905 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1906 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1907
f50f4e56
PA
19082012-11-02 Pedro Alves <palves@redhat.com>
1909
1910 PR gdb/14766
1911
1912 * infrun.c (handle_inferior_event)
1913 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1914 null_ptid before handling a vfork child exec or exit. Switch to
1915 the event ptid afterwards.
1916
f0559fff
YQ
19172012-11-02 Yao Qi <yao@codesourcery.com>
1918
1919 * std-operator.def: Remove OP_LABELED.
1920 * eval.c: Remove the declaration of 'get_label'.
1921 (get_label): Remove.
1922 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1923 Update comment.
1924 Remove local variable 'variantno' and related code.
1925 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1926 with 'fieldno'.
1927 * expprint.c (print_subexp_standard): Likewise.
1928 (dump_subexp_body_standard): Likewise.
1929 * parse.c (operator_length_standard): Likewise.
1930
e5496e3e
PM
19312012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1932
1933 Incorporate ARI web page generator into GDB sources.
1934 * contrib/ari/create-web-ari-in-src.sh: New file.
1935 * contrib/ari/gdb_ari.sh: New file.
1936 * contrib/ari/gdb_find.sh: New file.
1937 * contrib/ari/update-web-ari.sh: New file.
1938
c66fb220
TT
19392012-10-31 Tom Tromey <tromey@redhat.com>
1940
1941 * gdbarch.c: Rebuild.
1942 * gdbarch.sh: Remove references to gdbarch_swap.
1943 * corelow.c (core_open): Remove obsolete comment.
1944
2f27adfe
AB
19452012-10-31 Andrew Burgess <aburgess@broadcom.com>
1946
1947 PR cli/14772
1948 * c-typeprint.c (c_print_type): Don't print a space for vector
1949 types, this is handled within the suffix.
1950 (c_type_print_varspec_suffix): Add a space to vector suffix.
1951
144db827
PA
19522012-10-26 Pedro Alves <palves@redhat.com>
1953
1954 * amd64-tdep.c (amd64_relocate_instruction): Use
1955 store_unsigned_integer instead of memcpy.
1956 * i386-tdep.c (i386_relocate_instruction): Ditto.
1957
940c3c06
PA
19582012-10-26 Pedro Alves <palves@redhat.com>
1959
1960 * infrun.c (handle_inferior_event): Merge handling of
1961 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1962 switch case.
1963
47b19065
PA
19642012-10-26 Pedro Alves <palves@redhat.com>
1965
1966 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1967 Remove comment.
1968
87d2d2a4
PA
19692012-10-26 Pedro Alves <palves@redhat.com>
1970
1971 * target.c (target_waitstatus_to_string): Handle
1972 TARGET_WAITKIND_VFORK_DONE.
1973
fed708ed
PA
19742012-10-26 Pedro Alves <palves@redhat.com>
1975
1976 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1977 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1978
2590b645
JB
19792012-10-24 Tristan Gingold <gingold@adacore.com>
1980
1981 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1982 Add comments.
1983
bed0c243
JB
19842012-10-24 Joel Brobecker <brobecker@adacore.com>
1985
1986 * ravenscar-thread.c (ravenscar_wait): Only update the list
1987 of threads and inferior_ptid if the inferior is still alive.
1988
f69c91ad
JB
19892012-10-24 Joel Brobecker <brobecker@adacore.com>
1990
1991 * ada-lang.c (is_known_support_routine): Use lbasename when
1992 matching the symtab's filename against
1993 known_runtime_file_name_patterns.
1994
d99dcf51
JB
19952012-10-24 Joel Brobecker <brobecker@adacore.com>
1996
1997 * ada-lang.c (ada_same_array_size_p): New function.
1998 (ada_promote_array_of_integrals): New function.
1999 (coerce_for_assign): Add handling of arrays where the elements
2000 are integrals of a smaller size than the size of the target
2001 array element type.
2002
32560274
JB
20032012-10-24 Joel Brobecker <brobecker@adacore.com>
2004
2005 * doublest.c (convert_doublest_to_floatformat): Fix comparison
2006 against maximum exponent value.
2007
5a04cc98
JB
20082012-10-24 Joel Brobecker <brobecker@adacore.com>
2009
2010 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
2011 "unwind-seh.c".
2012
5ded5331
JB
20132012-10-24 Joel Brobecker <brobecker@adacore.com>
2014
2015 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
2016 strip typedef layer when computing the fixed type's field type,
2017 only when computing its size.
2018
2445fd7b
MK
20192012-10-24 Mark Kettenis <kettenis@gnu.org>
2020
2021 PR gdb/12783
2022 * i386-tdep.c (i386_return_value): Handle complex double and long
2023 double.
2024
8f205f9c
JB
20252012-10-24 Joel Brobecker <brobecker@adacore.com>
2026
2027 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
2028 New local variable args_len.
2029 Quote the name of the executable when computing the command line.
2030
7f7930dd
MK
20312012-10-23 Mark Kettenis <kettenis@gnu.org>
2032
2033 PR gdb/12796
2034 PR gdb/12798
2035 PR gdb/12800
2036 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
2037 AMD64_FTAG_REGNUM.
2038 * amd64-tdep.c (amd64_classify): Classify complex types.
2039 (amd64_return_value): Handle the COMPLEX_X87 class.
2040
38a69d0a
JB
20412012-10-23 Joel Brobecker <brobecker@adacore.com>
2042
2043 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
2044 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2045
83ab93c6
JB
20462012-10-23 Joel Brobecker <brobecker@adacore.com>
2047
2048 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
2049 function.
2050 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
2051 to amd64_windows_auto_wide_charset.
2052
f6fbab7d
YQ
20532012-10-23 Yao Qi <yao@codesourcery.com>
2054
2055 * event-top.c (mark_async_signal_handler_wrapper): Remove.
2056 * event-top.h: Remove its declaration.
2057 (async_request_quit): Call mark_async_signal_handler instead of
2058 mark_async_signal_handler_wrapper.
2059 (async_do_nothing, async_disconnect): Likewise.
2060 (async_stop_sig): Likewise.
2061 * remote.c (handle_remote_sigint): Likewise.
2062 (handle_remote_sigint_twice): Likewise.
2063
05fa9251
YQ
20642012-10-23 Yao Qi <yao@codesourcery.com>
2065
2066 * event-top.c (sigint_token, sighup_token): Replace 'void *'
2067 with 'static struct async_signal_handler *'.
2068 (sighup_token, sigquit_token, sigstp_token): Likewise.
2069
08af7a40
AA
20702012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
2071
2072 * gdbarch.sh (function_list): Use 'pstring' when printing
2073 a variable which could return NULL.
2074 * gdbarch.c: Regenerate.
2075
beb4b03c 20762012-10-10 Joel Brobecker <brobecker@adacore.com>
f87e3f15 2077 Tom Tromey <tromey@redhat.com>
beb4b03c
JB
2078
2079 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
2080 inneffective if condition by gdb assertion. Add function
2081 description comment.
2082
a5b12627
JB
20832012-10-19 Joel Brobecker <brobecker@adacore.com>
2084
2085 * parser-defs.h (struct exp_descriptor): Document constraint
2086 on return value for "op_name" callbacks.
2087
0b0865da
TT
20882012-10-18 Tom Tromey <tromey@redhat.com>
2089
2090 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
2091 * symtab.c (iterate_over_some_symtabs): Constify.
2092 * source.h (symtab_to_fullname): Return 'const char *'.
2093 * source.c (symtab_to_fullname): Return 'const char *'.
2094 * python/py-symtab.c (stpy_fullname): Constify.
2095 * cli/cli-cmds.c (edit_command): Constify.
2096 * breakpoint.c (print_breakpoint_location)
2097 (update_static_tracepoint): Constify.
2098
94b0e70d
TT
20992012-10-18 Tom Tromey <tromey@redhat.com>
2100
2101 * breakpoint.c (compare_breakpoints): Fix comparison.
2102
fff10684
TT
21032012-10-18 Tom Tromey <tromey@redhat.com>
2104
2105 * valprint.c (generic_emit_char, generic_printstr): Pass size of
2106 gdb_wchar_t to convert_between_encodings.
2107
8de0566d
YQ
21082012-10-17 Yao Qi <yao@codesourcery.com>
2109
2110 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
2111 more parameter 'inferior'.
2112 * corefile.c (write_memory_with_notification): Caller update.
2113
2114 * mi/mi-cmd-var.c: Include "mi-main.h".
2115 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
2116 to 1 and restore it later.
2117 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
2118 and "data-write-memory-bytes.
2119 * mi/mi-interp.c: Include objfiles.h.
2120 (mi_interpreter_init): Call observer_attach_memory_changed.
2121 (mi_memory_changed): New.
2122 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
2123 New field.
2124
2125 * NEWS: Mention new MI notification "memory-changed".
2126
6235cdd1
JK
21272012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
2128
2129 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2130
07540c15
DE
21312012-10-15 Doug Evans <dje@google.com>
2132
2133 New option -nh: inhibit loading of ~/.gdbinit.
2134 * NEWS: Mention -nh.
2135 * main.c (captured_main): Recognize and process -nh.
2136 (print_gdb_help): Mention -nh.
2137 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
2138
eab09350
L
21392012-10-15 H.J. Lu <hongjiu.lu@intel.com>
2140
2141 PR backtrace/14646
2142 PR gdb/14647
2143 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
2144 pc_regnum_from_eax.
2145 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
2146 nor pc_regnum_from_eax.
2147 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
2148 nor pc_regnum_from_eax.
2149
9e3a7d65
JK
21502012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 Fix entry values resolving in inlined frames.
2153 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
2154 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
2155 entries of FRAME.
2156
c83393b9
JB
21572012-10-15 Joel Brobecker <brobecker@adacore.com>
2158
2159 * configure.ac: Build with -DMS_WIN64 if building with Python
2160 enabled using GCC on amd64-windows.
2161 * configure: Regenerate.
2162
801e4185
TT
21632012-10-15 Tom Tromey <tromey@redhat.com>
2164
2165 PR python/14635:
2166 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
2167 to Py_None.
2168
74f910c8
TT
21692012-10-15 Tom Tromey <tromey@redhat.com>
2170
2171 PR python/14634:
2172 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
2173
2a7c8fd5
AB
21742012-10-11 Andrew Burgess <aburgess@broadcom.com>
2175
2176 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
2177 reset thread numbering back to 1.
2178
7c09e5a0
DE
21792012-10-11 Doug Evans <dje@google.com>
2180
2181 PR breakpoints/14643.
2182 * linespec.c (struct ls_parser): New member keyword_ok.
2183 (linespec_lexer_lex_string): Add comment.
2184 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
2185 for one.
2186 (parse_linespec): Set keyword_ok.
2187
a1855c1d
DE
21882012-10-10 Doug Evans <dje@google.com>
2189
844226d6
DE
2190 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
2191 "0x" prefix on address in log message.
2192
a1855c1d
DE
2193 * dwarf2read.c (read_1_byte): Add const to buf parameter.
2194 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
2195 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
2196 (lookup_dwo_file): Add const to dwo_name parameter.
2197 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2198
2e24f4aa
JK
21992012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2200
2201 Fix crash during stepping on ppc32.
2202 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
2203 SYM.
2204
aa14df25
DE
22052012-10-03 Doug Evans <dje@google.com>
2206
2207 PR symtab/14601
2208 * buildsym.c (buildsym_init): Reset using_directives to NULL.
2209
3d468296
AB
22102012-10-02 Andrew Burgess <aburgess@broadcom.com>
2211
2212 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
2213 output and use uint32_t not long to ensure 4 byte size.
2214
8f0ee2eb
JB
22152012-10-02 Joel Brobecker <brobecker@adacore.com>
2216
2217 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
2218 unref'ed it.
2219
b3dc46ff
AB
22202012-10-01 Andrew Burgess <aburgess@broadcom.com>
2221
2222 * target.c (simple_search_memory): Include access length in
2223 warning message.
2224
f712f01f
EBM
22252012-09-28 Nathan Miller <nathanm2@us.ibm.com>
2226 Edjunior Machado <emachado@linux.vnet.ibm.com>
2227
2228 PR gdb/13989
2229 * solib.c (solib_find): Prevent GDB from loading native libraries when
2230 debugging a cross-target corefile.
2231
39181896
PA
22322012-09-28 selven <pcthegreat@gmail.com>
2233
2234 Make definition match declaration.
2235
2236 * regcache.c (regcache_register_status): Change return type to
2237 enum register_status.
2238
4c2786ba
YQ
22392012-09-28 Yao Qi <yao@codesourcery.com>
2240
2241 * mi/mi-main.c (mi_cmd_data_write_memory): Call
2242 write_memory_with_notification instead of write_memory.
2243 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
2244 instead of target_write_memory.
2245
1ae0c35e
YQ
22462012-09-28 Yao Qi <yao@codesourcery.com>
2247
2248 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
2249 when the length of content is not an even number.
2250
7977e5d2
TT
22512012-09-27 Tom Tromey <tromey@redhat.com>
2252
2253 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
2254 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
2255
807160da
JB
22562012-09-27 Joel Brobecker <brobecker@adacore.com>
2257
2258 * sol-thread.c (sol_thread_fetch_registers)
2259 (sol_thread_store_registers): Delete commented out code.
2260
43c75337
JB
22612012-09-27 Joel Brobecker <brobecker@adacore.com>
2262
2263 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2264 Move these functions to sparc-sol-thread.c.
2265 * sparc-sol-thread.c: New file.
2266 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
2267 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
2268 configurations.
2269 * configure: Regenerate.
2270
d292a972
JB
22712012-09-27 Joel Brobecker <brobecker@adacore.com>
2272
2273 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2274 Remove commented-out code.
2275
8c3da003
JB
22762012-09-27 Joel Brobecker <brobecker@adacore.com>
2277
2278 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2279 Enable this code for sparc hosts only.
2280
f00482b6
JB
22812012-09-27 Joel Brobecker <brobecker@adacore.com>
2282
2283 * procfs.h (procfs_find_LDT_entry): Add declaration.
2284 * sol-thread.c (ps_lgetLDT): Delete local declaration of
2285 function procfs_find_LDT_entry.
2286
337c776f
JB
22872012-09-27 Joel Brobecker <brobecker@adacore.com>
2288
2289 * procfs.c (proc_get_LDT_entry): Make static.
2290
1a04d88f
JB
22912012-09-27 Joel Brobecker <brobecker@adacore.com>
2292
2293 * procfs.c (proc_find_memory_regions): Fix declaration.
2294
bad43aa5
SP
22952012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2296
2297 * amd64-tdep.c (amd64_return_value): Revert previous change
2298 that used TYPE_LENGTH directly.
2299 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2300 (bfin_store_return_value): Likewise.
2301 * cris-tdep.c (cris_store_return_value): Likewise.
2302 (cris_extract_return_value): Likewise.
2303 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2304 * hppa-tdep.c (hppa64_return_value): Likewise.
2305 * lm32-tdep.c (lm32_store_return_value): Likewise.
2306 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2307 * spu-tdep.c (spu_value_from_register): Likewise.
2308 * vax-tdep.c (vax_return_value): Likewise.
2309
63375b74
SP
23102012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
2311
2312 * gdbtypes.c (lookup_array_range_type): Expand parameters
2313 LOW_BOUND and HIGH_BOUND to LONGEST.
2314 (lookup_string_range_type): Likewise.
2315 * gdbtypes.h (lookup_array_range_type): Likewise.
2316 (lookup_string_range_type): Likewise.
2317 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
2318 Expand HIGHBOUND to ssize_t.
2319 (value_string): Likewise.
2320 * value.h (value_cstring): Expand parameter LEN to ssize_t.
2321 (value_string): Likewise.
2322
19ca11c5
YQ
23232012-09-27 Yao Qi <yao@codesourcery.com>
2324
2325 PR breakpoints/13898
2326 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
2327 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
2328 per breakpoint type.
2329
92107356
PM
23302012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
2331
2332 * procfs.c: Add gdb_bfd header.
2333 * rs6000-nat.c: Likewise.
2334 * solib-pa64.c: Likewise.
2335 * spu-linux-nat.c: Likewise.
2336 * windows-nat.c: Likewise.
2337
9742094a
TT
23382012-09-26 Tom Tromey <tromey@redhat.com>
2339
2340 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
2341
0971de02
TT
23422012-09-26 Tom Tromey <tromey@redhat.com>
2343
2344 * dwarf2read.c (mark_common_block_symbol_computed): New function.
2345 (read_common_block): Handle child DIEs with
2346 DW_AT_data_member_location.
2347 (new_symbol_full): Add special case for common blocks.
2348
4357ac6c
TT
23492012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2350 Tom Tromey <tromey@redhat.com>
2351
2352 * dwarf2read.c (read_common_block): Rewrite.
2353 (new_symbol_full): Handle DW_TAG_common_block.
2354 * f-lang.c (head_common_list, find_common_for_function):
2355 Remove.
2356 * f-lang.h (struct common_entry, struct saved_f77_common,
2357 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
2358 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
2359 BLANK_COMMON_NAME_LOCAL): Remove.
2360 (struct common_block): New.
2361 * f-valprint.c (list_all_visible_commons): Remove.
2362 (info_common_command_for_block): New function.
2363 (info_common_command): Use it.
2364 * stack.c (iterate_over_block_locals): Special case for
2365 COMMON_BLOCK_DOMAIN.
2366 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
2367 constant.
2368 (struct general_symbol_info) <value.common_block>: New field.
2369 (SYMBOL_VALUE_COMMON_BLOCK): New define.
2370
965f07a8
TT
23712012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2372 Tom Tromey <tromey@redhat.com>
2373
2374 * f-lang.c (allocate_saved_bf_node,
2375 allocate_saved_function_node, allocate_saved_f77_common_node,
2376 allocate_common_entry_node, tail_common_list, current_common,
2377 saved_bf_list, saved_bf_list_end, current_head_bf_list,
2378 tmp_bf_ptr, add_common_block, add_common_entry,
2379 find_first_common_named, patch_common_entries,
2380 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
2381 global_remote_debug, get_bf_for_fcn, saved_function_list,
2382 saved_function_list_end, clear_function_list, struct saved_fcn,
2383 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
2384 SAVED_BF, SAVED_BF_PTR): Remove.
2385 * f-lang.h (tail_common_list, current_common,
2386 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
2387 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
2388 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
2389 real_main_c_value): Remove.
2390 * f-valprint.c (there_is_a_visible_common_named): Remove.
2391
6f380991
AB
23922012-09-26 Andrew Burgess <aburgess@broadcom.com>
2393
2394 * breakpoint.c (update_global_location_list): Ignore previous
2395 duplicate status of a breakpoint when starting a new scan for
2396 duplicate breakpoints.
2397
9ead7ae4 23982012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 2399 PR breakpoints/14419
2536b51c
YQ
2400 * arm-tdep.c (arm_skip_prologue): Extending producer check to
2401 support LLVM compiler.
9ead7ae4 2402
8f8a23a2
SP
24032012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2404
2405 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
2406 * bfin-tdep.c (bfin_extract_return_value): Likewise.
2407 (bfin_store_return_value): Likewise.
2408 * cris-tdep.c (cris_store_return_value): Likewise.
2409 (cris_extract_return_value): Likewise.
2410 * h8300-tdep.c (h8300_extract_return_value): Likewise.
2411 * hppa-tdep.c (hppa64_return_value): Likewise.
2412 * lm32-tdep.c (lm32_store_return_value): Likewise.
2413 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
2414 * spu-tdep.c (spu_value_from_register): Likewise.
2415 * vax-tdep.c (vax_return_value): Likewise.
2416
d7019589
SP
24172012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2418
2419 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
2420 parameter LEN to ssize_t.
2421
744a8059
SP
24222012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2423
2424 * ada-valprint.c (ada_val_print_1): Eliminate single-use
2425 variable LEN.
2426 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
2427 directly.
2428 (alpha_store_return_value): Likewise.
2429 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
2430 (amd64_push_arguments): Likewise.
2431 * ax-gdb.c (gen_trace_static_fields): Likewise.
2432 (gen_traced_pop): Likewise.
2433 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2434 * breakpoint.c (update_watchpoint): Likewise.
2435 * findcmd.c (parse_find_args): Use local variable for type
2436 instead of length.
2437 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
2438 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
2439 (h8300_store_return_value): Likewise.
2440 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
2441 Use i386_darwin_arg_type_alignment directly.
2442 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
2443 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
2444 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
2445 (m68hc11_extract_return_value): Likewise.
2446 * mep-tdep.c (mep_push_dummy_call): Likewise.
2447 * printcmd.c (float_type_from_length): Likewise.
2448 * s390-tdep.c (s390_value_from_register): Likewise.
2449 * stack.c (read_frame_arg): Likewise.
2450 * tracepoint.c (encode_actions_1): Likewise.
2451 * valops.c (value_fetch_lazy): Use local variable for type
2452 instead of length. Use TYPE_LENGTH directly.
2453 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
2454
a4b411d6
JB
24552012-09-25 Joel Brobecker <brobecker@adacore.com>
2456
2457 * symtab.c (skip_prologue_sal): Fix typo in comment.
2458
11dba07a
JB
24592012-09-25 Joel Brobecker <brobecker@adacore.com>
2460
2461 * linespec.c (create_sals_line_offset): Fix typo in comment.
2462
318102b9
SP
24632012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
2464
2465 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
2466 use plongest to print the array size.
2467
b4aa388a
SP
24682012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2469
2470 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
2471 * p-valprint.c (pascal_type_print_base): Likewise.
2472
84cebc4a
YQ
24732012-09-22 Yao Qi <yao@codesourcery.com>
2474
2475 * remote.c (remote_get_trace_status): Remove setting default
2476 values of fields of 'ts'.
2477
04e7407c
JK
24782012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2479
2480 Fix internal error on canonicalization of clang types.
2481 * cp-name-parser.y (operator): New comment at make_operator call for
2482 new, delete, new[] and delete[].
2483 (exp): Use "sizeof ". Add new comment at make_operator call.
2484
9bf4bce9
JK
24852012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2486
2487 Fix disassemble without parameters in tailcall frame.
2488 * cli/cli-cmds.c (disassemble_current_function): Use
2489 get_frame_address_in_block.
2490
1c5b7826
TT
24912012-09-21 Tom Tromey <tromey@redhat.com>
2492
2493 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
2494 TYPE_CODE_UNION>: Unify, removing a goto.
2495
62a49610
TT
24962012-09-21 Tom Tromey <tromey@redhat.com>
2497
2498 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
2499
2603f7ee
AB
25002012-09-21 Andrew Burgess <aburgess@broadcom.com>
2501
2502 * findvar.c (read_frame_register_value): Mark the result value as
2503 optimized out if any of the input registers have been optimized out.
2504
810849a3
AS
25052012-09-21 Andreas Schwab <schwab@linux-m68k.org>
2506
2507 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
2508
0953dec1
SP
25092012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
2510
2511 * eval.c (evaluate_subexp_standard): Eliminate single-use
2512 variable LOWER.
2513
82a90ccf
YQ
25142012-09-21 Yao Qi <yao@codesourcery.com>
2515
2516 * mi/mi-interp.c: Declare mi_record_changed.
2517 (mi_interpreter_init): Call observer_attach_record_changed.
2518 (mi_record_changed): New.
2519 * record.c (record_open): Call observer_notify_record_changed.
2520 (cmd_record_stop): Call observer_notify_record_changed.
2521 * NEWS: Mention it.
2522
d7de8e3c
TT
25232012-09-20 Tom Tromey <tromey@redhat.com>
2524
2525 * NEWS: Update.
2526 * python/python.c (finalize_python): New function.
2527 (_initialize_python): Make a final cleanup.
2528
43c7c83d
DE
25292012-09-19 Doug Evans <dje@google.com>
2530
2531 * buildsym.h (param_symbols): Delete, unused.
2532 (context_stack): Delete member "params", unused.
2533 * buildsym.c (push_context): Update.
2534 * dwarf2read.c (read_func_scope): Update.
2535
aa9259cc
TS
25362012-09-19 Thomas Schwinge <thomas@codesourcery.com>
2537
a6521d9a
TS
2538 * sh-tdep.c (sh_register_convert_to_virtual)
2539 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
2540 all callers. Just do a memcpy if not the little-endian case.
2541
f92589cb
TS
2542 * h8300-tdep.c (h8300_gdbarch_init): Invoke
2543 set_gdbarch_double_format and set_gdbarch_long_double_format.
2544 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
2545 set_gdbarch_double_format.
2546 * sh-tdep.c (sh_gdbarch_init): Likewise.
2547
aa9259cc
TS
2548 * NEWS: Document the removal of SH's 'regs' command.
2549 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
2550 command.
2551
c1d780c2
SDJ
25522012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
2553
2554 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
2555 `jump'.
2556
4ae24af0
JB
25572012-09-18 Joel Brobecker <brobecker@adacore.com>
2558
2559 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
2560 language when iterating over symbols.
2561
bb25a15c
YQ
25622012-09-18 Yao Qi <yao@codesourcery.com>
2563
2564 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
2565 (mi_interpreter_init): Call observer_attach_tsv_created and
2566 observer_attach_tsv_deleted.
2567 (mi_tsv_created, mi_tsv_deleted): New.
2568 * tracepoint.c (delete_trace_state_variable): Call
2569 observer_notify_tsv_deleted.
2570 (trace_variable_command): Call observer_notify_tsv_created.
2571 (delete_trace_variable_command): Call
2572 observer_notify_tsv_deleted.
2573 (create_tsv_from_upload): Call observer_notify_tsv_created.
2574 * NEWS: Mention it.
2575
201b4506
YQ
25762012-09-18 Yao Qi <yao@codesourcery.com>
2577
2578 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
2579 if traceframe changed.
2580 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
2581 "trace-find".
2582 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
2583 (mi_interpreter_init): Hook mi_traceframe_changed to observer
2584 'traceframe_changed'.
2585 (mi_traceframe_changed): New.
2586 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
2587 New field.
2588 * NEWS: Mention the new MI notification.
2589
eaeb12db
MW
25902012-09-17 Mike Wrighton <wrighton@codesourcery.com>
2591
2592 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
2593
6e3c039e
JK
25942012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2595
2596 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
2597 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
2598 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
2599 Extend code also for PaX support. Convert all gdb_assert to warning
2600 calls.
2601
9a950c7c
JK
26022012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 Implement auto-load user conveniences suggested by Doug Evans.
2605 * auto-load.c: Include top.h.
2606 (file_is_auto_load_safe): New variable advice_printed. Print advice.
2607 (_initialize_auto_load): New variable scripts_directory_help. Mention
2608 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
2609 scripts-directory. Document in online help one can use also files for
2610 set auto-load safe-path.
2611 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
2612 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
2613
deec9a9d
SP
26142012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2615
2616 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
2617 of LEN.
2618
354ecfd5
SP
26192012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2620
2621 * m2-valprint.c (m2_print_array_contents): Eliminate variable
2622 ELTLEN and use TYPE_LENGTH directly.
2623 (m2_val_print): Likewise.
2624 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
2625 variable LEN and use TYPE_LENGTH directly.
2626 (m68k_svr4_store_return_value): Likewise.
2627 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
2628 ARGLEN and use TYPE_LENGTH directly.
2629 (mips_o64_push_dummy_call): Likewise.
2630 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
2631 variable LENGTH and use TYPE_LENGTH directly.
2632 (s390_function_arg_float): Likewise.
2633 (s390_function_arg_integer): Likewise.
2634 (s390_push_dummy_call): Likewise.
2635 (s390_return_value_convention): Likewise.
2636 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
2637 TYPE_LENGTH directly.
2638
6fc1c773
YQ
26392012-09-17 Yao Qi <yao@codesourcery.com>
2640
2641 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
2642 Update comment to add_setshow_integer_cmd.
2643 * cli/cli-setshow.c (do_set_command): Handle case
2644 'var_zuinteger_unlimited'.
2645 (do_show_command): Likewise.
2646 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
2647 for command 'remotetimeout'.
2648 * command.h (enum var_types): New zuinteger_unlimited. Update comment
2649 to var_integer.
f87e3f15
PA
2650 * source.c (_initialize_source): Call
2651 add_setshow_zuinteger_unlimited_cmd for command 'set listsize'.
6fc1c773 2652
6acef6cd
SP
26532012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
2654
2655 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
2656 variable LEN.
2657
1ab3b62c
JK
26582012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2659
2660 PR 14119
2661 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
2662 (frame_pop): Drop also TAILCALL_FRAME frames.
2663 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
2664
acf9414f
JK
26652012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2666 Pedro Alves <palves@redhat.com>
2667
2668 PR 14548
2669 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
2670 function start if we are already at function start. Both for
2671 reverse-next and for reverse-step into function without line number
2672 info.
2673
193facb3
JK
26742012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2675
2676 Code cleanup - rename 'inline' depth to 'artificial' depth.
2677 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
2678 frame_id_artificial_p, extend the comment.
2679 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
2680 * frame.c (fprint_frame_id): Rename at a user, change debug output
2681 text to "artificial=".
2682 (skip_inlined_frames): Rename to ...
2683 (skip_artificial_frames): ... here. Extend the comment.
2684 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
2685 (frame_id_inlined_p): Rename to ...
2686 (frame_id_artificial_p): ... here. Rename at a user.
2687 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
2688 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
2689 at a user.
2690 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
2691 Extend the comment.
2692 (frame_id_inlined_p): Rename to ...
2693 (frame_id_artificial_p): ... here.
2694 * inline-frame.c (inline_frame_this_id): Rename at a user.
2695
42056501
AB
26962012-09-14 Andrew Burgess <aburgess@broadcom.com>
2697
2698 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
2699 vector variables using vector_size syntax rather than array
2700 syntax.
2701
84c47588
SP
27022012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2703
2704 * valarith.c (value_concat): Replace unsafe ALLOCA with
2705 XMALLOC/XFREE.
2706
f4045bcb
PA
27072012-09-14 Pedro Alves <palves@redhat.com>
2708
2709 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
2710
63b46266
YPK
27112012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
2712
2713 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
2714 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
2715 data-directory as appropriate.
2716
ddd7a8e7
SP
27172012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
2718
2719 * printcmd.c (ui_printf): Eliminate single-use variable
2720 PARAM_LEN.
2721
d649a38e
YQ
27222012-09-14 Yao Qi <yao@codesourcery.com>
2723 Pedro Alves <palves@redhat.com>
2724
2725 * valops.c (value_assign): Move observer_notify_target_changed
2726 below to replace reinit_frame_cache.
2727
b9516fa1
YPK
27282012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
2729
2730 Refactor Python "gdb" module into a proper Python package, by
2731 introducing a new "_gdb" module for code implemented in C, and
2732 using reload/__import__ instead of exec.
2733 * python/lib/gdb/__init__.py: Import * from _gdb.
2734 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
2735 prompt_hook, sys.argv): Moved from finish_python_initialization.
2736 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
2737 (packages, auto_load_packages): New list and function replacing
2738 module_dict and auto-loading code, using __file__ instead of
2739 gdb.PYTHONDIR and reload/__import__ instead of exec.
2740 (GdbSetPythonDirectory): Replacing function of the same name
2741 from finish_python_initialization, using reload/__import__ instead
2742 of exec, as well as call auto_load_packages.
2743 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
2744 gdb_python_module and not gdb_module.
2745 * python/python-internal.h (gdb_python_module): Declare.
2746 * python/python.c (gdb_python_module): New global.
2747 (before_prompt_hook): Check gdb_python_module and not gdb_module.
2748 (_initialize_python): Rename gdb module to _gdb.
2749 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
2750 (finish_python_initialization): Move Python code to
2751 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
2752 __main__.
2753
aa0fbdd8
PA
27542012-09-13 Pedro Alves <palves@redhat.com>
2755
2756 * Makefile.in (COMMON_OBS): Add registry.o.
2757 * registry.c: New file.
2758 * registry.h (struct registry_container): Declare.
2759 (registry_data_callback): New typedef.
2760 (struct registry_data, struct registry_data_registration, struct
2761 registry_data_registry): New type.
2762 (register_data_with_cleanup, registry_alloc_data)
2763 (registry_callback_adaptor, registry_clear_data)
2764 (registry_container_free_data, registry_set_data, registry_data):
2765 Declare.
2766 (DEFINE_REGISTRY): Refactor structures and functions as shims over
2767 the new common structures and functions.
2768 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
2769 callback typedefs.
2770
42b5c53d
MW
27712012-09-12 Mike Wrighton <wrighton@codesourcery.com>
2772
2773 * remote.c (remote_insert_hw_breakpoint): Throw exception if
2774 there is an error inserting hardware breakpoints and use the
2775 error message from the target.
2776
2777 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
f87e3f15
PA
2778 Catch this exception and print the error message contained within.
2779 Do not print the default hardware error breakpoint message in this
2780 case.
42b5c53d 2781
a1b64ce1
DE
27822012-09-12 Doug Evans <dje@google.com>
2783
2784 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
2785 cu == NULL.
2786
83a788b8
DE
27872012-09-11 Doug Evans <dje@google.com>
2788
2789 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
2790 .gdb_index symbol attributes if there are none.
2791
d9eaeb59
JB
27922012-09-11 Joel Brobecker <brobecker@adacore.com>
2793
2794 * symtab.h (struct minimal_symbol) [has_size]: New field.
2795 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
2796 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
2797 * printcmd.c (build_address_symbolic): Only filter out zero-sized
2798 minimal symbols if the symbol's size is actually known.
2799 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
2800 of msymbol's size field. Add comment.
2801 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
2802 SET_MSYMBOL_SIZE to set the minimal symbol size.
2803
a83e9154
JB
28042012-09-11 Joel Brobecker <brobecker@adacore.com>
2805
2806 * minsyms.c (install_minimal_symbols): Use memset to fill entire
2807 minimal_symbol struct object, rather than setting some of its
2808 fields one by one.
2809
350b1b26
AB
28102012-09-11 Andrew Burgess <aburgess@broadcom.com>
2811
2812 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
2813 passed_a_ptr flag when displaying typedef types.
2814
2fa15f23
JB
28152012-09-10 Joel Brobecker <brobecker@adacore.com>
2816
2817 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
2818 the optimized_out flag is preserved.
2819
5152ff90
AG
28202012-09-10 Anthony Green <green@moxielogic.com>
2821
2822 * moxie-tdep.c (moxie_analyze_prologue): Update for function
2823 prologue changes in GCC.
2824
5b4f6e25
KS
28252012-09-10 Keith Seitz <keiths@redhat.com>
2826
2827 PR gdb/13483
2828 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
2829 (BOOL_CONVERSION_BADNESS): ... this.
2830 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
2831 (rank_one_type): Allow all boolean conversions
2832 permitted by the standard.
2833
f1070426
TT
28342012-09-06 Tom Tromey <tromey@redhat.com>
2835
2836 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2837 Don't decref py_objfile.
2838
a8db4212
YPK
28392012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
2840
2841 Do not enable -lmcheck by default when Python is enabled with
2842 threading support.
2843 * configure.ac: (python_has_threads) New variable, by testing
2844 if WITH_THREAD is defined in Python.h.
2845 Move --enable-lmcheck after --with-python.
2846 Do not enable -lmcheck by default if python_has_threads=yes.
2847 Warn if --enable-lmcheck and python_has_threads=yes.
2848 * configure: Regenerate.
2849
648beb2b
YQ
28502012-08-31 Yao Qi <yao@codesourcery.com>
2851
2852 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2853 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2854 Update some commands.
2855 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
f87e3f15
PA
2856 * mi/mi-main.c (mi_cmd_execute): Set
2857 '*parse->cmd->suppress_notification' to 1.
648beb2b 2858
ef07a9f7
YQ
28592012-08-31 Yao Qi <yao@codesourcery.com>
2860
2861 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2862
fda395cf
YPK
28632012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2864
2865 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2866
8efd8e78
DE
28672012-08-29 Doug Evans <dje@google.com>
2868
2869 * main.c (print_gdb_help): Remove reference to
2870 --use-deprecated-index-sections.
2871
883b9c6c
YQ
28722012-08-28 Yao Qi <yao@codesourcery.com>
2873
2874 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2875 (init_cmds): Call add_setshow_uinteger_cmd for command
2876 'max-user-call-depth'.
2877 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2878 declaration of 'max_user_call_depth'.
2879 * frame.c (backtrace_limit): Add 'unsigned'.
2880 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2881 'limit'.
2882 * remote.c (remoteaddresssize): Add 'unsigned'.
2883 (remote_address_masked): Change local var 'address_size' to
2884 'unsigned'.
2885 (_initialize_remote): Call add_setshow_uinteger_cmd for
2886 'remoteaddresssize'.
2887 * top.c (history_size): Add 'unsigned'.
2888 (show_commands): Change local variables to 'unsigned'.
2889 (set_history_size_command): Don't check history_size is negative.
2890 Adjust the condition to call unstifle_history and set history_size
2891 to UNIT_MAX.
2892
1292279a
PA
28932012-08-28 Pedro Alves <palves@redhat.com>
2894
2895 PR gdb/14428
2896
2897 * infcmd.c (default_print_one_register_info): New, factored out
2898 from default_print_registers_info.
2899 (default_print_registers_info): Use it. Mark value unavailable if
2900 necessary.
2901 (registers_info): Print user registers with
2902 default_print_one_register_info.
2903
f629cd75
L
29042010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2905
2906 PR tui/14486
2907 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2908 is not NULL before referencing it.
2909
1c8cdcb1
JK
29102012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2911
2912 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2913 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2914 original PC for it.
2915
e9687799
JK
29162012-08-27 Eli Zaretskii <eliz@gnu.org>
2917 Jan Kratochvil <jan.kratochvil@redhat.com>
2918
2919 * auto-load.c (auto_load_objfile_script): Rename to ...
2920 (auto_load_objfile_script_1): ... here, change variable realname to
2921 parameter realname, document it, add return value, add variable retval.
2922 (auto_load_objfile_script): New function.
2923
7afa1642
JK
29242012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2925
2926 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2927 followed by a whitespace.
2928
dc7650b8
JK
29292012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2930
28e66c70 2931 PR gdb/14494.
dc7650b8
JK
2932 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2933 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2934 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2935 here.
2936
1591a1e8
PA
29372012-08-27 Wei-cheng Wang <cole945@gmail.com>
2938
2939 * memattr.c (create_mem_region): Fix memory region overlapping
2940 checking.
2941
ecfb0d68
SP
29422012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2943
2944 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2945 with xmalloc/cleanup.
2946 * mt-tdep.c (mt_push_dummy_call): Likewise.
2947 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2948 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2949
8c56c1b9
YQ
29502012-08-24 Yao Qi <yao@codesourcery.com>
2951
2952 * jv-exp.y (push_expression_name): Add "." at the end of error
2953 message.
2954
e3480f4a
YPK
29552012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2956
2957 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2958 * python/python.c (_initialize_python): Update documentation.
2959
dfbd5e7b
PA
29602012-08-23 Pedro Alves <palves@redhat.com>
2961
2962 * infrun.c (_initialize_infrun) <handle command help text>:
2963 Mention that multiple signals are supported.
2964
2edda2ff
PA
29652012-08-23 Pedro Alves <palves@redhat.com>
2966
2967 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2968 string.
2969
8d735b87
YQ
29702012-08-23 Yao Qi <yao@codesourcery.com>
2971
2972 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2973 (tfind_1): Don't call registers_changed, set_traceframe_num,
2974 and clear_traceframe_info.
2975 Call set_current_traceframe.
2976 (set_current_traceframe): call set_traceframe_num.
2977
c5d9b215
SDJ
29782012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2979
2980 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2981 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2982
037bbc8e
YPK
29832012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2984
2985 Enable readline in Python in a GDB-specific way and block the
2986 standard Python readline module to prevent conflicts with GDB.
2987 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2988 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2989 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2990 * python/py-gdb-readline.c: New file.
2991 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2992 prototype.
2993 * python/python.c (_initialize_python): Call
2994 gdbpy_initialize_gdb_readline.
2995
406b1477
KS
29962012-08-22 Keith Seitz <keiths@redhat.com>
2997
2998 * defs.h: Include build-gnulib/config.h
2999
6ca1b147
JM
30002012-08-22 Joseph Myers <joseph@codesourcery.com>
3001
3002 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
3003 and blx pc.
3004
8315665e
YPK
30052012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
3006
3007 Add a new "python-interactive" command that starts a standard
3008 Python interactive prompt with "pi" as alias, and add "py" as
3009 an alias to "python".
3010 * NEWS: Mention the new commands.
8315665e
YPK
3011 * python/python.c (eval_python_command): New function.
3012 (python_interactive_command): For "python-interactive" with
3013 arguments, call eval_python_command. For "python-interactive"
3014 without arguments, call PyRun_InteractiveLoop.
3015 (_initialize_python): Add "python-interactive" command with
3016 "pi" as alias, and add "py" as an alias to "python".
3017
522002f9
TT
30182012-08-22 Tom Tromey <tromey@redhat.com>
3019
3020 * defs.h (quit_flag): Don't declare.
3021 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
3022 (QUIT): Use new functions.
3023 * event-top.c (command_handler): Use clear_quit_flag.
3024 (handle_sigint): Use set_quit_flag.
3025 (async_request_quit): Use check_quit_flag. Don't check
3026 immediate_quit.
3027 * exceptions.c (throw_exception): Use clear_quit_flag.
3028 * main.c (captured_main): Use clear_quit_flag.
3029 * python/python.c (clear_quit_flag, set_quit_flag)
3030 (check_quit_flag): New functions.
3031 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
3032 clear_quit_flag.
3033 * remote.c (remote_wait_as): Use check_quit_flag,
3034 clear_quit_flag.
3035 (remote_start_remote): Call QUIT.
3036 * symfile.c (load_progress): Use check_quit_flag.
3037 * top.c (command_loop): Use clear_quit_flag.
3038 (command_line_input): Call QUIT.
3039 * utils.c (quit_flag): Conditionally define.
3040 (clear_quit_flag, check_quit_flag, set_quit_flag): New
3041 functions.
3042 (prompt_for_continue): Call QUIT. Use quit, not
3043 async_request_quit.
3044 * remote-mips.c (mips_expect_timeout): Call QUIT.
3045 * monitor.c (monitor_expect): Call QUIT.
3046
b583003e
TT
30472012-08-22 Tom Tromey <tromey@redhat.com>
3048
3049 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
3050 (async_init_signals): Update.
3051 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
3052 (SIGWINCH_HANDLER_BODY): Remove.
3053
e1507e95
TT
30542012-08-22 Tom Tromey <tromey@redhat.com>
3055
3056 * jit.c (jit_object_close_impl): Don't malloc the objfile
3057 name.
3058 * objfiles.c (allocate_objfile): Don't malloc the objfile
3059 name.
3060 (free_objfile): Don't free the objfile name.
3061 * objfiles.h (struct objfile) <name>: Update comment.
3062 * symfile.c (reread_symbols): Fix reference counting. Don't
3063 malloc objfile name.
3064
1c00ec6b
TT
30652012-08-22 Tom Tromey <tromey@redhat.com>
3066
3067 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
3068 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
3069 (symfile_bfd_open): Likewise.
3070 (generic_load): Likewise.
3071 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
3072 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3073 gdb_bfd_open.
3074 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3075 Use gdb_bfd_open.
3076 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
3077 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
3078 (pmon_load_fast): Likewise.
3079 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
3080 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
3081 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
3082 (macho_check_dsym): Likewise.
3083 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
3084 (m32r_upload_command): Likewise.
3085 * gdb_bfd.h (gdb_bfd_cache): Declare.
3086 * gdb_bfd.c (struct gdb_bfd_data): New.
3087 (gdb_bfd_cache): New global.
3088 (struct gdb_bfd_cache_search): New.
3089 (hash_bfd): New function.
3090 (eq_bfd): Likewise.
3091 (gdb_bfd_open): Likewise.
3092 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
3093 (gdb_bfd_unref): Remove closed BFD from cache. Update for
3094 gdb_bfd_data.
3095 * exec.c (exec_file_attach): Use gdb_bfd_open.
3096 * dsrec.c (load_srec): Use gdb_bfd_open.
3097
6532ff36
TT
30982012-08-22 Tom Tromey <tromey@redhat.com>
3099
3100 * dwarf2read.c (macro_start_file): Update.
3101 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
3102 (free_objfile_per_bfd_storage): Destroy macro_cache.
3103 (allocate_objfile, free_objfile): Update.
3104 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
3105 New field.
3106 (struct objfile) <macro_cache>: Remove.
3107 * symfile.c (reread_symbols): Update.
3108 * symmisc.c (print_symbol_bcache_statistics): Update.
3109 (print_objfile_statistics): Update.
3110
706e3705
TT
31112012-08-22 Tom Tromey <tromey@redhat.com>
3112
3113 * elfread.c (elf_symtab_read): Update.
3114 * objfiles.c (objfiles_bfd_data): New global.
3115 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
3116 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
3117 (allocate_objfile, free_objfile): Update.
3118 (_initialize_objfiles): Initialize objfiles_bfd_data.
3119 * objfiles.h (struct objfile_per_bfd_storage): New.
3120 (struct objfile) <per_bfd>: New field.
3121 <filename_cache>: Remove.
3122 (set_objfile_per_bfd): Declare.
3123 * symfile.c (reread_symbols): Update. Call
3124 set_objfile_per_bfd.
3125 (allocate_symtab): Update.
3126 * symmisc.c (print_symbol_bcache_statistics): Update.
3127 (print_objfile_statistics): Print the size of the BFD obstack.
3128
e992eda4
TT
31292012-08-22 Tom Tromey <tromey@redhat.com>
3130
3131 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
3132 * gdb_bfd.c: Use DEFINE_REGISTRY.
3133 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
3134 (gdb_bfd_ref): Call bfd_alloc_data.
3135 (gdb_bfd_unref): Call bfd_free_data.
3136
6b81941e
TT
31372012-08-22 Tom Tromey <tromey@redhat.com>
3138
3139 * registry.h (struct registry_fields): New.
3140 (REGISTRY_FIELDS): Redefine.
3141 (REGISTRY_ACCESS_FIELD): New macro.
3142 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
3143 functions.
3144
8e260fc0
TT
31452012-08-22 Tom Tromey <tromey@redhat.com>
3146
3147 * auto-load.c (_initialize_auto_load): Update.
3148 * solib-svr4.c (_initialize_svr4_solib): Update
3149 * solib-dsbt.c (_initialize_dsbt_solib): Update.
3150 * solib-darwin.c (_initialize_darwin_solib): Update.
3151 * registry.h: New file.
3152 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
3153 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
3154 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
3155 (register_program_space_data_with_cleanup)
3156 (register_program_space_data, program_space_alloc_data)
3157 (clear_program_space_data, set_program_space_data)
3158 (program_space_data): Don't declare.
3159 * progspace.c: Use DEFINE_REGISTRY.
3160 (struct program_space_data, struct
3161 program_space_data_registration, struct
3162 program_space_data_registry, program_space_data_registry)
3163 (register_program_space_data_with_cleanup)
3164 (register_program_space_data, program_space_alloc_data)
3165 (program_space_free_data, clear_program_space_data)
3166 (set_program_space_data, program_space_data): Remove.
3167 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
3168 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
3169 (register_objfile_data_with_cleanup, register_objfile_data)
3170 (clear_objfile_data, set_objfile_data, objfile_data): Don't
3171 declare.
3172 * objfiles.c: Use DEFINE_REGISTRY.
3173 (struct objfile_data, struct objfile_data_registration, struct
3174 objfile_data_registry, objfile_data_registry)
3175 (register_objfile_data_with_cleanup, register_objfile_data)
3176 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
3177 (set_objfile_data, objfile_data): Remove.
3178 (_initialize_objfiles): Update.
3179 * jit.c (_initialize_jit): Update.
3180 * inflow.c (_initialize_inflow): Update.
3181 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
3182 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
3183 (register_inferior_data_with_cleanup, register_inferior_data)
3184 (clear_inferior_data, set_inferior_data, inferior_data): Don't
3185 declare.
3186 * inferior.c: Use DEFINE_REGISTRY.
3187 (struct inferior_data, struct inferior_data_registration, struct
3188 inferior_data_registry, inferior_data_registry)
3189 (register_inferior_data_with_cleanup, register_inferior_data)
3190 (inferior_alloc_data, inferior_free_data clear_inferior_data)
3191 (set_inferior_data, inferior_data): Remove.
3192 * auxv.c (_initialize_auxv): Update.
3193 * ada-lang.c (_initialize_ada_language): Update.
3194 * breakpoint.c (_initialize_breakpoint): Update.
3195 * i386-nat.c (i386_use_watchpoints): Update.
3196
ed9eebaf
TT
31972012-08-22 Tom Tromey <tromey@redhat.com>
3198
3199 * exec.c (exec_close, exec_file_attach): Update.
3200 (add_to_section_table): Initialize 'key' field.
3201 (add_target_sections, remove_target_sections): Add 'key' argument.
3202 * exec.h (add_target_sections, remove_target_sections): Add
3203 'key' argument.
3204 * solib.c (solib_map_sections, update_solib_list, clear_solib)
3205 (reload_shared_libraries_1): Update.
3206 * target.h (struct target_section) <key>: New field.
3207
2f2e97fa
TT
32082012-08-22 Tom Tromey <tromey@redhat.com>
3209
3210 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
3211
b3dbbd6f
PM
32122012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
3213
3214 * symfile.c (allocate_symtab): Use host_address_to_string
3215 function instead of cast of pointer to long which is not
3216 compatible with x86_64-w64-mingw32 build.
3217
f94363d7
AP
32182012-08-19 Andrew Pinski <apinski@cavium.com>
3219
3220 * mips-tdep.c (is_octeon): New function.
3221 (is_octeon_bbit_op): New function.
3222 (mips32_next_pc): Handle Octeon's bbit instructions.
3223 (mips32_instruction_has_delay_slot): Likewise.
3224
78a59c2f
AP
32252012-08-19 Andrew Pinski <apinski@cavium.com>
3226
3227 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
3228 before the function.
3229
4f5bcb50
AP
32302012-08-19 Andrew Pinski <apinski@cavium.com>
3231
3232 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
3233
e5afdbd7
KS
32342012-08-19 Keith Seitz <keiths@redhat.com>
3235
3236 PR c++/14365
3237 * c-typeprint.c (c_type_print_varspec_prefix): Pass
3238 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
3239
13c9750e
EZ
32402012-08-18 Eli Zaretskii <eliz@gnu.org>
3241
3242 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
3243 The typo broke "make TAGS".
3244
db761810 32452012-08-17 Joel Brobecker <brobecker@adacore.com>
3246
3247 GDB 7.5 released.
3248
a451cb65
KS
32492012-08-17 Keith Seitz <keiths@redhat.com>
3250
3251 PR c++/13356
3252 * gdbtypes.c (strict_type_checking): New variable.
3253 (show_strict_type_checking): New function.
3254 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
3255 if strict type checking is disabled.
3256 (_initialize_gdbtypes): Add "check type" subcommand.
3257 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
3258
32592012-08-17 Keith Seitz <keiths@redhat.com>
3260
3261 * language.h (type_mode): Remove.
3262 (type_check): Remove.
3263 (struct language_defn): Remove la_type_check.
3264 (STRICT_TYPE): Remove unused macro.
3265 (type_error): Remove.
3266 * language.c (set_type_range_case): Renamed to ...
3267 (set_range_case): ... this. Update all callers.
3268 Remove type_mode/type_check.
3269 (type_mode): Remove.
3270 (type_check): Remove.
3271 (show_type_command): Remove.
3272 (set_type_command): Remove.
3273 (language_info): Remove type checking output.
3274 (type_error): Remove unused function.
3275 (range_error): Update comment.
3276 (unknown_language_defn): Remove la_type_check.
3277 (auto_language_defn): Likewise.
3278 (local_language_defn): Likewise.
3279 (_initialize_language): Remove "check type" subcommand.
3280 * ada-lang.c (ada_language_defn): Remove la_type_check.
3281 * c-lang.c (c_language_defn): Likewise.
3282 (cplus_language_defn): Likewise.
3283 (asm_language_defn): Likewise.
3284 (minimal_language_defn): Likewise.
3285 * d-lang.c (d_language_defn): Likewise.
3286 * f-lang.c (f_language_defn): Likewise.
3287 * go-lang.c (go_language_defn): Likewise.
3288 * jv-lang.c (java_language_defn): Likewise.
3289 * m2-lang.c (m2_language_defn): Likewise.
3290 * objc-lang.c (objc_language_defn): Likewise.
3291 * opencl-lang.c (opencl_language_defn): Likewise.
3292 * p-lang.c (pascal_language_defn): Likewise.
3293
dbf6a605
MF
32942012-08-16 Mike Frysinger <vapier@gentoo.org>
3295
3296 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
3297
973e3cf7
JB
32982012-08-16 Joel Brobecker <brobecker@adacore.com>
3299
3300 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
3301 New function.
3302 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
3303 using the regache. Use ia64_hpux_get_register_from_save_state_t
3304 to access the bsp and bspstore registers if not.
3305
d80ee84f
JB
33062012-08-16 Joel Brobecker <brobecker@adacore.com>
3307
3308 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
3309 * breakpoint.c (detach_breakpoints): Change pid parameter into
3310 a ptid. Adjust code accordingly.
3311 * infrun.c (handle_inferior_event): Delete variable child_pid.
3312 Update call to detach_breakpoints to pass the child ptid for
3313 fork events.
3314 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
3315 assert that inferior_ptid's lwp is zero.
3316 (linux_handle_extended_wait): Update call to detach_breakpoints.
3317 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
3318 detach_breakpoints.
3319
2dcc6086
JB
33202012-08-16 Joel Brobecker <brobecker@adacore.com>
3321
3322 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
3323 parent, only call detach_breakpoints if tts.tts_event ==
3324 TTEVT_VFORK.
3325
0c92d8c1
JB
33262012-08-16 Joel Brobecker <brobecker@adacore.com>
3327
3328 * dwarf2-frame.c (dwarf2_frame_cache): Use
3329 get_frame_address_in_block instead of get_frame_pc as
3330 the bound for executing the frame's FDE.
3331
6b1755ce
YQ
33322012-08-16 Yao Qi <yao@codesourcery.com>
3333
3334 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
3335 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
3336 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
3337 (c_type_print_varspec_suffix): Likewise.
3338 * eval.c (evaluate_subexp_standard): Likewise.
3339 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
3340 (f_type_print_varspec_suffix): Likewise.
3341 * gdbtypes.c (is_scalar_type): Likewise.
3342 (recursive_dump_type): Likewise.
3343 * infcall.c (value_arg_coerce): Likewise.
3344 * m2-valprint.c (m2_val_print): Likewise.
3345 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
3346 (pascal_type_print_varspec_suffix): Likewise.
3347 (pascal_type_print_base): Likewise.
3348 * p-valprint.c (pascal_val_print): Likewise.
3349 (pascal_val_print): Likewise.
3350 * valops.c (value_slice): Likewise.
3351 * valprint.c (scalar_type_p): Likewise.
3352 * valarith.c (value_bitstring_subscript): Remove.
3353 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
3354 Remove comment on TYPE_CODE_BITSTRING.
3355
3356 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
3357 TYPE_CODE_BITSTRING.
3358
3359 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
3360 slot 0.
3361
8acc4065
YQ
33622012-08-16 Yao Qi <yao@codesourcery.com>
3363
3364 * tracepoint.c (trace_find_none_command): Remove.
3365 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
3366
8128fd8e
YQ
33672012-08-16 Yao Qi <yao@codesourcery.com>
3368
3369 * remote.c (handle_notification): Remove parameter 'length'.
3370 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
3371
2873700e
KS
33722012-08-15 Keith Seitz <keiths@redhat.com>
3373
3374 * gdbtypes.c (opaque_type_resolution): Make static.
3375 Add missing comment.
3376 (overload_debug): Add missing comment.
3377 (show_opaque_type_resolution): Likewise.
3378 (show_overload_debug): Likewise.
3379 (print_bit_vector): Remove unnecessary forward declaration.
3380 (print_arg_types): Likewise.
3381 (dump_fn_fieldlists): Likewise.
3382 (print_cplus_stuff): Likewise.
3383
b82d08cd
TT
33842012-08-15 Tom Tromey <tromey@redhat.com>
3385
3386 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
3387 (gdb_bfd_ref): Initialize new field.
3388 (gdb_bfd_unref): Unref the archive BFD.
3389 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
3390 parent archive.
3391
db6573d6
TT
33922012-08-15 Tom Tromey <tromey@redhat.com>
3393
3394 PR python/14387:
3395 * python/py-bpevent.c (create_breakpoint_event_object): Update
3396 comment.
3397 * python/py-event.c (evpy_add_attribute): Update comment.
3398 * python/py-exitedevent.c (create_exited_event_object): Fix
3399 reference counting and error handling.
3400 * python/py-newobjfileevent.c (create_new_objfile_event_object):
3401 Fix reference counting.
3402 * python/py-signalevent.c (create_signal_event_object): Fix
3403 reference counting and error handling.
3404 * python/py-stopevent.c (emit_stop_event): Fix reference
3405 counting.
3406 * python/py-threadevent.c (get_event_thread): Return a
3407 borrowed reference.
3408 * python/py-type.c (convert_field): Fix reference counting.
3409
a036ba48
TT
34102012-08-15 Tom Tromey <tromey@redhat.com>
3411
3412 * dwarf2read.c (dwarf_decode_macro_bytes)
3413 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
3414 as hash key.
3415
486c7739
MF
34162012-08-14 Mike Frysinger <vapier@gentoo.org>
3417
3418 * infcmd.c (_initialize_infcmd): Update help text for the signal,
3419 stepi, nexti, finish, next, step, jump, and continue commands.
3420 * infrun.c (_initialize_infrun): Update help text for the handle
3421 command.
3422
4cf93a03
DE
34232012-08-14 Doug Evans <dje@google.com>
3424
70b099cf
DE
3425 * gdbtypes.c (struct extra): Delete, unused.
3426
5212577a
DE
3427 * gdbtypes.c: Whitespace cleanup.
3428 (address_space_name_to_int): Remove "extern" from definition.
3429 (_initialize_gdbtypes): Declare with initialize_file_ftype.
3430
4cf93a03
DE
3431 * gdbtypes.c (make_pointer_type): Remove redundant setting of
3432 TYPE_POINTER_TYPE (type).
3433
3756ef7e
GB
34342012-08-14 Gary Benson <gbenson@redhat.com>
3435
3436 * solib-svr4.c (svr4_free_library_list): Use free_so.
3437
40d72643
MF
34382012-08-13 Mike Frysinger <vapier@gentoo.org>
3439
3440 * .gitignore: Add go-exp.c.
3441
f47f77df
DE
34422012-08-13 Doug Evans <dje@google.com>
3443
3444 * value.c (show_convenience): Tweak comment.
3445 (_initialize_values): Mention convenience functions in the help text
3446 for "show convenience".
3447
7507c54a
YQ
34482012-08-13 Yao Qi <yao@codesourcery.com>
3449
3450 * std-operator.def: Remove TERNOP_SLICE_COUNT.
3451 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
3452 TERNOP_SLICE_COUNT.
3453 * eval.c (evaluate_subexp_standard): Likewise.
3454 * expprint.c (print_subexp_standard): Likewise.
3455 (dump_subexp_body_standard): Likewise.
3456 * parse.c (operator_length_standard): Likewise.
3457
5cad9736
YQ
34582012-08-13 Yao Qi <yao@codesourcery.com>
3459
3460 * std-operator.def: Remove OP_BITSTRING.
3461 * breakpoint.c (watchpoint_exp_is_const): Update.
3462 * eval.c (evaluate_subexp_standard): Remove handling to
3463 OP_BITSTRING.
3464 * expprint.c (print_subexp_standard): Likewise.
3465 (dump_subexp_body_standard): Likewise.
3466 * parse.c (operator_length_standard): Likewise.
3467 * valops.c (value_bitstring): Remove.
3468 * value.h: Remove the declaration of 'value_bitstring'.
3469
bad7670a
SDJ
34702012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3471
3472 * linespec.c (find_methods): Remove unused variables `i1' and
3473 `name_len'.
3474 (decode_line_full): Likewise for `arg_start'.
3475
d9dce7fa
SDJ
34762012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
3477
3478 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
3479 (zlib_decompress_section): Likewise for `section_data'.
3480 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
3481
a72c3253
DE
34822012-08-10 Doug Evans <dje@google.com>
3483
3484 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
3485 * NEWS: Document them.
3486 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
3487 function/strfns.py.
3488 * python/py-type.c (typy_array_1): New function.
3489 (typy_array): Call it.
3490 (typy_vector): New function.
3491 (type_object_methods): Add "vector".
3492 * python/lib/gdb/function/__init__.py: New file.
3493 * python/lib/gdb/function/strfns.py: New file.
3494
200bc880
SP
34952012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
3496
3497 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
3498 for TYPE_FIELD_BITPOS.
3499 (typy_get_sizeof): Likewise for TYPE_LENGTH.
3500
de0bea00
MF
35012012-08-10 Mike Frysinger <vapier@gentoo.org>
3502
3503 PR cli/10436:
3504 * common/vec.h (VEC_merge): Define.
3505 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
3506 (DEF_VEC_ALLOC_FUNC_P): Likewise.
3507 (DEF_VEC_ALLOC_FUNC_O): Likewise.
3508 * completer.c: Include gdb_signals.h.
3509 (signal_completer): Define.
3510 * completer.h (signal_completer): Add prototype.
3511 * infcmd.c (_initialize_infcmd): Assign the command
3512 completer for "signal" to handle_completer.
3513 * infrun.c: Include completer.h.
3514 (handle_completer): Define.
3515 (_initialize_infrun): Declare a new local variable c. Store the
3516 result of add_com("handle") to it. Assign the command
3517 completer for "handle" to handle_completer.
3518
5b9afe8a
YQ
35192012-08-09 Yao Qi <yao@codesourcery.com>
3520
3521 * cli/cli-decode.c (set_cmd_prefix): New.
3522 (lookup_cmd_for_prefixlist): New.
3523 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
3524 of each cmd_list_element in *prefixlist.
3525 (add_setshow_cmd_full): set_cmd_prefix.
3526 (add_alias_cmd): Likewise.
3527 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
3528 Declare 'auto_boolean_enums'.
3529 * cli/cli-setshow.c: Include "observer.h".
3530 (notify_command_param_changed_p): New.
3531 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
3532 Remove 'static'.
3533 (do_setshow_command): Split it to ...
3534 (do_set_command, do_show_command): ... them. New.
3535 (do_set_command): Call observer_notify_command_param_changed if
3536 notify_command_param_changed_p returns true.
3537 (cmd_show_list): Caller update.
3538 * auto-load.c (set_auto_load_cmd): Likewise.
3539 * remote.c (show_remote_cmd): Likewise.
3540 * cli/cli-setshow.h: Update declarations.
3541 * top.c (execute_command): Call do_set_command and do_show_command.
3542
3543 * NEWS: Mention new MI notification.
3544 * mi/mi-interp.c: Declare mi_command_param_changed.
3545 (mi_interpreter_init): Attach mi_command_param_changed to
3546 observer command_param_changed.
3547 (mi_command_param_changed): New.
3548 Remove mi_suppress_breakpoint_notifications.
3549 Define global variable mi_suppress_notification.
3550 (mi_breakpoint_created): Update.
3551 (mi_breakpoint_deleted): Likewise.
3552 (mi_breakpoint_modified): Likewise.
3553 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
3554 'gdb-set' and set mi_suppress_notification.
3555 * mi/mi-main.h: (mi_suppress_notification): New struct.
3556
1969df89
JK
35572012-08-09 Andreas Tobler <andreast@fgznet.ch>
3558 Jan Kratochvil <jan.kratochvil@redhat.com>
3559
3560 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
3561
8bfd80db
YQ
35622012-08-09 Yao Qi <yao@codesourcery.com>
3563
3564 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
3565 (skiplist): Move it to skip.c.
3566 (init_cmd_lists): Remove code setting enablebreaklist and
3567 skiplist to NULL.
3568 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
3569 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
3570 skiplist.
3571 * gdbcmd.h: Likewise.
3572 * skip.c (_initialize_step_skip): Move 'skiplist' from
3573 cli/cli-cmds.c.
3574
28578e6b
YQ
35752012-08-09 Yao Qi <yao@codesourcery.com>
3576
3577 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
3578 * gnu-nat.c, symfile.c: Likewise.
3579
260c0b2a
DE
35802012-08-08 Aaron Gamble <agamble@google.com>
3581
3582 * utils.c (prompt_for_continue_wait_time): New static global.
3583 (make_command_stats_cleanup): Initialize it.
3584 (report_command_stats): Subtract time waiting for user.
3585 (prompt_for_continue): Track time waiting for user.
3586 (defaulted_query): Track time waiting for user.
3587
4f485ebc
DE
35882012-08-08 Doug Evans <dje@google.com>
3589
3590 * eval.c (evaluate_subexp_standard): Fix thinko in handling
3591 UNOP_MEMVAL_TYPE.
3592 * expprint.c (print_subexp_standard, case OP_TYPE): New.
3593 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
3594 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
3595 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
3596 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
3597 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
3598 elt.
3599 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
3600 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
3601 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
3602 (dump_prefix_expression): Handle OP_TYPE.
3603
2acf2b39
KS
36042012-08-08 Keith Seitz <keiths@redhat.com>
3605
3606 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
3607 addr_start.
3608
e6712ff1
DE
36092012-08-08 Doug Evans <dje@google.com>
3610
3611 * linux-thread-db.c: #include "gdb_vecs.h".
3612 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
3613 updated.
3614 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
3615 (thread_db_load_search): Use a vector to iterate over path elements.
3616 Handle text appearing after "$pdir".
3617
3618 * gdb_string.h: Moved to ...
3619 * common/gdb_string.h: ... here.
3620 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
3621 gdb_string.h and gdb_assert.h.
3622
ab854e54
YQ
36232012-08-08 Yao Qi <yao@codesourcery.com>
3624
3625 * tic6x-tdep.c (tic6x_register_to_value): Remove.
3626 (tic6x_value_to_register): Likewise.
3627 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
3628 and set_gdbarch_value_to_register.
3629
4f69f4c2
JK
36302012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3631 Jean-Marc Saffroy <saffroy@gmail.com>
3632
3633 PR 11804
3634 * defs.h (find_memory_region_ftype): New comment. New arg modified.
3635 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
3636 * gcore.c (gcore_create_callback): New function comment. Add modified
3637 parameter. Only write modified regions. Set SEC_READONLY exactly
3638 according to MODIFIED.
3639 (objfile_find_memory_regions): Ignore separate debug info files. Ass
3640 the passed modified value to FUNC.
3641 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
3642 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
3643 first. New variables modified and has_anonymous. Parse the lines of
3644 smaps file. Add the passed MODIFIED value to FUNC.
3645 * procfs.c (find_memory_regions_callback): Add the passed modified
3646 value.
3647
78ac5f83
TT
36482012-08-06 Tom Tromey <tromey@redhat.com>
3649
3650 * dwarf2-frame.c (clear_pointer_cleanup): New function.
3651 (dwarf2_frame_cache): Use it.
3652 * frame-unwind.h (frame_sniffer_ftype): Document prologue
3653 cache initialization constraint.
3654
2c12abee
TT
36552012-08-06 Tom Tromey <tromey@redhat.com>
3656
3657 PR python/14386:
3658 * varobj.c (update_dynamic_varobj_children): Don't call
3659 PyIter_Check.
3660
4979d7f0
TT
36612012-08-06 Tom Tromey <tromey@redhat.com>
3662
3663 PR cli/14392:
3664 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
3665
f3c8a52a
JK
36662012-08-06 Nathaniel Flath <flat0103@gmail.com>
3667
3668 * NEWS: New entry for 'cd' default parameters.
3669 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
3670
5a1cf4d6
TT
36712012-08-03 Tom Tromey <tromey@redhat.com>
3672
3673 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
3674 return.
3675
7c3270ae
UW
36762012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
3677
3678 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
3679 to attempting lseek/write.
3680 (inf_child_fileio_pread): Likewise for pread.
3681
ccce17b0
YQ
36822012-08-02 Yao Qi <yao@codesourcery.com>
3683
3684 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
3685 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
3686 add_setshow_zinteger_cmd.
3687 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
3688 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
3689 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
3690 instead of add_setshow_zinteger_cmd.
3691 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
3692 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
3693 instead of add_setshow_zinteger_cmd.
3694 * frame.c (frame_debug): Add 'unsigned'.
3695 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
3696 add_setshow_zinteger_cmd.
3697 * frame.h: Update the declaration of 'frame_debug'.
3698 * gdbtypes.c (overload_debug): Add 'unsigned'.
3699 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
3700 add_setshow_zinteger_cmd.
3701 * inferior.h: Update declaration of 'debug_infrun'.
3702 * infrun.c (debug_infrun): Add 'unsigned'.
3703 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
3704 add_setshow_zinteger_cmd.
3705 * jit.c (jit_debug): Add 'unsigned'.
3706 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
3707 add_setshow_zinteger_cmd.
3708 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
3709 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
3710 instead of add_setshow_zinteger_cmd.
3711 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
3712 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
3713 add_setshow_zinteger_cmd.
3714 * machoread.c (mach_o_debug_level): Add 'unsigned'.
3715 (_initialize_machoread): Call add_setshow_zuinteger_cmd
3716 instead of add_setshow_zinteger_cmd.
3717 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
3718 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
3719 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
3720 intead of add_setshow_zinteger_cmd.
3721 * mips-tdep.c (mips_debug): Add 'unsigned'.
3722 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
3723 instead of add_setshow_zinteger_cmd.
3724 * monitor.c (monitor_debug): Add 'unsigned'.
3725 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
3726 add_setshow_zinteger_cmd.
3727 * observer.c (observer_debug): Add 'unsigned'.
3728 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
3729 add_setshow_zinteger_cmd.
3730 * parse.c (expressiondebug): Add 'unsigned'.
3731 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
3732 add_setshow_zinteger_cmd.
3733 * record.c (record_debug): Add 'unsigned'.
3734 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
3735 add_setshow_zinteger_cmd.
3736 * record.h: Update the declaration of 'record_debug'.
3737 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
3738 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
3739 add_setshow_zinteger_cmd.
3740 * serial.c (global_serial_debug_p): Add 'unsigned'.
3741 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
3742 add_setshow_zinteger_cmd.
3743 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
3744 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
3745 add_setshow_zinteger_cmd.
3746 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
3747 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
3748 add_setshow_zinteger_cmd.
3749 * target.c (targetdebug): Add 'unsigned'.
3750 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
3751 add_setshow_zinteger_cmd.
3752 * valops.c (overload_debug): Add 'unsigned'.
3753 * varobj.c (varobjdebug): Add 'unsigned'.
3754 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
3755 add_setshow_zinteger_cmd.
3756 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
3757 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
3758 instead of add_setshow_zinteger_cmd.
3759
3760 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
3761 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
3762 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
3763 instead of add_setshow_zinteger_cmd.
3764 * gdbarch.c, gdbarch.h: Re-generated.
3765
95b07c96
YQ
37662012-08-02 Yao Qi <yao@codesourcery.com>
3767
3768 * nto-tdep.c: Don't include cli/cli-decode.h and
3769 cli/cli-cmds.h.
3770 (_initialize_nto_tdep): Remove.
3771 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
3772 Remove field.
3773 Remove macro nto_internal_debugging.
3774
57295b0b
RH
37752012-08-01 Richard Henderson <rth@redhat.com>
3776
3777 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
3778 (mep-*-*) [gdb_target_obs]: Likewise.
3779
f782ad9b
AS
37802012-07-31 Andreas Schwab <schwab@linux-m68k.org>
3781
3782 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
3783 linux_get_siginfo_type.
3784
a14dd77e
JK
37852012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
3788 AT_ENTRY_POINT.
3789 (call_function_by_hand) <ON_STACK>: Call write_memory with
3790 gdbarch_breakpoint_from_pc, if possible.
3791 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
3792 here.
3793
1467929f
YQ
37942012-07-31 Yao Qi <yao@codesourcery.com>
3795
3796 * tracepoint.c: Add 'static' for some variables.
3797
70976b65
YQ
37982012-07-31 Yao Qi <yao@codesourcery.com>
3799
3800 * go32-nat.c: Declare _initialize_go32_nat.
3801 * ser-go32.c: Declare _initialize_ser_dos.
3802 * top.c (do_chdir_cleanup): Add 'static'.
3803
eff9c3e6
KS
38042012-07-30 Keith Seitz <keiths@redhat.com>
3805
3806 * linespec.c (linespec_lex_number): A number followed
3807 by quotes is a valid number, too.
3808
728400d7
TT
38092012-07-30 Tom Tromey <tromey@redhat.com>
3810
3811 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
3812
fcf303ab
UW
38132012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
3814
3815 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
3816 attempt to 4-byte-align HW breakpoint addresses for Thumb.
3817
4e969b4f
AB
38182012-07-30 Andrew Burgess <aburgess@broadcom.com>
3819
3820 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
3821 invalid or reevaluated to prevent prevent references to possibly
3822 delete'd type objects being left in the varobj.
3823
c4bfde41
JK
38242012-07-27 Tom Tromey <tromey@redhat.com>
3825 Jan Kratochvil <jan.kratochvil@redhat.com>
3826
3827 * copying.awk: Print buffer-read-only and vi ro markers.
3828 * copying.c: Rebuild.
3829 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
3830 * gdbarch.c, gdbarch.h: Rebuild.
3831 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
3832 buffer-read-only and vi ro markers.
3833 * features/arm-with-iwmmxt.c: Rebuild.
3834 * features/arm-with-m-fpa-layout.c: Rebuild.
3835 * features/arm-with-m-vfp-d16.c: Rebuild.
3836 * features/arm-with-m.c: Rebuild.
3837 * features/arm-with-neon.c: Rebuild.
3838 * features/arm-with-vfpv2.c: Rebuild.
3839 * features/arm-with-vfpv3.c: Rebuild.
3840 * features/i386/amd64-avx-linux.c: Rebuild.
3841 * features/i386/amd64-avx.c: Rebuild.
3842 * features/i386/amd64-linux.c: Rebuild.
3843 * features/i386/amd64.c: Rebuild.
3844 * features/i386/i386-avx-linux.c: Rebuild.
3845 * features/i386/i386-avx.c: Rebuild.
3846 * features/i386/i386-linux.c: Rebuild.
3847 * features/i386/i386-mmx-linux.c: Rebuild.
3848 * features/i386/i386-mmx.c: Rebuild.
3849 * features/i386/i386.c: Rebuild.
3850 * features/i386/x32-avx-linux.c: Rebuild.
3851 * features/i386/x32-avx.c: Rebuild.
3852 * features/i386/x32-linux.c: Rebuild.
3853 * features/i386/x32.c: Rebuild.
3854 * features/mips-dsp-linux.c: Rebuild.
3855 * features/mips-linux.c: Rebuild.
3856 * features/mips64-dsp-linux.c: Rebuild.
3857 * features/mips64-linux.c: Rebuild.
3858 * features/rs6000/powerpc-32.c: Rebuild.
3859 * features/rs6000/powerpc-32l.c: Rebuild.
3860 * features/rs6000/powerpc-403.c: Rebuild.
3861 * features/rs6000/powerpc-403gc.c: Rebuild.
3862 * features/rs6000/powerpc-405.c: Rebuild.
3863 * features/rs6000/powerpc-505.c: Rebuild.
3864 * features/rs6000/powerpc-601.c: Rebuild.
3865 * features/rs6000/powerpc-602.c: Rebuild.
3866 * features/rs6000/powerpc-603.c: Rebuild.
3867 * features/rs6000/powerpc-604.c: Rebuild.
3868 * features/rs6000/powerpc-64.c: Rebuild.
3869 * features/rs6000/powerpc-64l.c: Rebuild.
3870 * features/rs6000/powerpc-7400.c: Rebuild.
3871 * features/rs6000/powerpc-750.c: Rebuild.
3872 * features/rs6000/powerpc-860.c: Rebuild.
3873 * features/rs6000/powerpc-altivec32.c: Rebuild.
3874 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3875 * features/rs6000/powerpc-altivec64.c: Rebuild.
3876 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3877 * features/rs6000/powerpc-cell32l.c: Rebuild.
3878 * features/rs6000/powerpc-cell64l.c: Rebuild.
3879 * features/rs6000/powerpc-e500.c: Rebuild.
3880 * features/rs6000/powerpc-e500l.c: Rebuild.
3881 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3882 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3883 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3884 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3885 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3886 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3887 * features/rs6000/powerpc-vsx32.c: Rebuild.
3888 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3889 * features/rs6000/powerpc-vsx64.c: Rebuild.
3890 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3891 * features/rs6000/rs6000.c: Rebuild.
3892 * features/s390-linux32.c: Rebuild.
3893 * features/s390-linux32v1.c: Rebuild.
3894 * features/s390-linux32v2.c: Rebuild.
3895 * features/s390-linux64.c: Rebuild.
3896 * features/s390-linux64v1.c: Rebuild.
3897 * features/s390-linux64v2.c: Rebuild.
3898 * features/s390x-linux64.c: Rebuild.
3899 * features/s390x-linux64v1.c: Rebuild.
3900 * features/s390x-linux64v2.c: Rebuild.
3901 * features/tic6x-c62x-linux.c: Rebuild.
3902 * features/tic6x-c62x.c: Rebuild.
3903 * features/tic6x-c64x-linux.c: Rebuild.
3904 * features/tic6x-c64x.c: Rebuild.
3905 * features/tic6x-c64xp-linux.c: Rebuild.
3906 * features/tic6x-c64xp.c: Rebuild.
3907
826f0041
TT
39082012-07-27 Tom Tromey <tromey@redhat.com>
3909
3910 * c-exp.y (classify_name): Avoid assignment in condition.
3911
84552b16
PA
39122012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3913
3914 * amd64-windows-tdep.c: Include "frame.h".
3915 (amd64_windows_skip_trampoline_code): New function.
3916 (amd64_windows_init_abi): Add trampoline registration.
3917
a8a64aa8
YQ
39182012-07-27 Yao Qi <yao@codesourcery.com>
3919
3920 * tracepoint.c (cur_traceframe_number): Remove.
3921 (set_tfile_traceframe): Remove.
3922 (tfile_trace_find, tfile_fetch_registers): Update callers.
3923 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3924 (tfile_open, tfile_trace_find): Likewise.
3925
d99067cb
YQ
39262012-07-27 Yao Qi <yao@codesourcery.com>
3927
3928 * thread.c (switch_to_thread): Don't call registers_changed.
3929
f2e8016f
TT
39302012-07-26 Tom Tromey <tromey@redhat.com>
3931
f782ad9b
AS
3932 * Makefile.in (SFILES): Remove objc-exp.y.
3933 (YYFILES): Remove objc-exp.c.
3934 (YYOBJ): Remove objc-exp.o.
3935 (local-maintainer-clean): Don't mention objc-exp.c.
3936 * c-exp.y: Include objc-lang.h.
3937 (%union) <class>: New field.
3938 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3939 (exp): Clone subscript production for OBJC_LBRAC. Add various
3940 Objective C productions.
3941 (msglist, msgarglist, msgarg): New productions.
3942 (array_mod, func_mod, operator): Clone productions for
3943 OBJC_LBRAC.
3944 (parse_string_or_char): Handle '@' strings.
3945 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3946 (classify_name): Check la_name_of_this. Recognize ObjC class
3947 names.
3948 * objc-exp.y: Remove.
3949 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3950 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3951
f66713d2
JK
39522012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3953
3954 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3955
7cfe01b4
JK
39562012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3957
3958 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3959 and decrement.
3960
5ba19b4c
TT
39612012-07-26 Tom Tromey <tromey@redhat.com>
3962
3963 * copying.c: Rebuild.
3964 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3965 'no_class'.
3966
27618ce4
TT
39672012-07-26 Tom Tromey <tromey@redhat.com>
3968
3969 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3970 immediate_quit.
3971 (print_objfile_statistics): Likewise.
3972 (maintenance_print_symbols): Likewise.
3973 (maintenance_print_msymbols): Likewise.
3974 (maintenance_print_objfiles): Likewise.
3975 * psymtab.c (print_partial_symbols): Call QUIT.
3976 (maintenance_print_psymbols): Likewise. Don't modify
3977 immediate_quit.
3978 * copying.c (show_copying_command): Don't modify immediate_quit.
3979 (show_warranty_command): Likewise.
3980 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3981
dd3818c8
KS
39822012-07-26 Keith Seitz <keiths@redhat.com>
3983
3984 * linespec.c (linespec_lexer_lex_number): The input
3985 is also a valid number if the next character is a comma
3986 or colon.
3987
23a80689
JB
39882012-07-26 Joel Brobecker <brobecker@adacore.com>
3989
3990 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3991 configure options.
3992
29f77997
TG
39932012-07-26 Tristan Gingold <gingold@adacore.com>
3994
3995 * machoread.c: Include gdb_bfd.h.
3996
a55c1f32
TG
39972012-07-26 Tristan Gingold <gingold@adacore.com>
3998
3999 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
4000 offset.
4001
56eb65bd
SP
40022012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
4003
4004 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
4005 SIZE to size_t.
4006 (dwarf2_evaluate_loc_desc): Likewise.
4007 (dwarf2_loc_desc_needs_frame): Likewise.
4008 (locexpr_describe_location_1): Likewise.
4009 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
4010 size_t.
4011 (struct dwarf2_loclist_baton): Likewise.
4012 * dwarf2read.c (struct dwarf_block): Likewise.
4013 (dump_die_shallow): Use pulongest to print dwarf_block.size.
4014 (decode_locdesc): Expand SIZE and I to size_t.
4015
aec8845c
JK
40162012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4017
4018 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
4019
33d7655b
JB
40202012-07-25 Joel Brobecker <brobecker@adacore.com>
4021
4022 * doublest.c (convert_doublest_to_floatformat): If the exponent
4023 is too small, treat the value as zero. If the exponent is too
4024 large, treat the value as infinity.
4025
a22d44ff
JB
40262012-07-25 Joel Brobecker <brobecker@adacore.com>
4027
4028 * configure.ac: Add --enable-lmcheck configure option.
4029 * configure: Regenerate.
4030
d6b28940
TT
40312012-07-25 Tom Tromey <tromey@redhat.com>
4032
f782ad9b
AS
4033 * NEWS: Mention maint info bfds.
4034 * gdb_bfd.c (all_bfds): New global.
4035 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
4036 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
4037 New functions.
d6b28940 4038
6e73ba20
RC
40392012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
4040
4041 * configure.tgt: Add v850*-*-rtems*.
4042
d560eebd
TT
40432012-07-25 Tom Tromey <tromey@redhat.com>
4044
4045 * macrotab.c (macro_bcache_str): Remove cast.
4046
d7cbec71
HZ
40472012-07-25 Hui Zhu <hui_zhu@mentor.com>
4048
4049 * linespec.c (linespec_lexer_lex_number): Update comments,
4050 change the return and add check to make sure the input is
4051 the decimal numbers.
4052 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
4053 false, call linespec_lexer_lex_string.
4054
882f447f
TT
40552012-07-24 Tom Tromey <tromey@redhat.com>
4056
4057 * symfile.c (symbol_file_add): Don't open BFD twice.
4058
53ab4066 40592012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
4060
4061 * breakpoint.c (create_breakpoint): Store condition for pending
4062 breakpoints.
4063
108fb0f7
AS
40642012-07-24 Andreas Schwab <schwab@linux-m68k.org>
4065
4066 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
4067 (m68k_return_value): Handle complex types like structures.
4068 (m68k_svr4_return_value): Likewise.
4069
1634dcbe
JK
40702012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
4071
4072 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
4073 parameters to bfd_get_section_name.
4074
e2d12c21
YQ
40752012-07-24 Yao Qi <yao@codesourcery.com>
4076
4077 * cli/cli-setshow.c: Handle case 'var_uinteger'
4078 and 'var_zuninteger' together. Handle case 'var_integer' and
4079 'var_zinteger' together.
4080
64b92e45
KS
40812012-07-23 Keith Seitz <keiths@redhat.com>
4082
4083 * linespec.c (convert_linespec_to_sal): Don't add
4084 any symbols to the result vector if symbol_to_sal
4085 returns zero.
4086
0f5f4ffe
KS
40872012-07-23 Keith Seitz <keiths@redhat.com>
4088
4089 * linespec.c (decode_objc): Record the function name
4090 in the linespec.
4091
da1cc82f
TT
40922012-07-23 Tom Tromey <tromey@redhat.com>
4093
4094 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
4095 counting.
4096 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
4097 (map_vmap): Acquire a reference to the BFD.
4098
6c18f3e0
SP
40992012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
4100
4101 * p-valprint.c (pascal_object_print_value): Replace potentially
4102 unsafe alloca with xmalloc/xfree.
4103 * valops.c (search_struct_method): Likewise.
4104
695c3173
TT
41052012-07-23 Tom Tromey <tromey@redhat.com>
4106
4107 * solib-svr4.c (enable_break): Update.
4108 * bfd-target.h (target_bfd_reopen): Update documentation.
4109
08d2cd74
TT
41102012-07-23 Tom Tromey <tromey@redhat.com>
4111
4112 * symfile.c (separate_debug_file_exists): Update.
4113 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
4114 (reread_symbols): Update.
4115 * elfread.c (build_id_verify): Update.
4116 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
4117 bfd_open_maybe_remote.
4118
596f7d67
TT
41192012-07-23 Tom Tromey <tromey@redhat.com>
4120
4121 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
4122
8ac244b4
TT
41232012-07-23 Tom Tromey <tromey@redhat.com>
4124
4125 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
4126 and 'abfd'.
4127 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
4128 and 'abfd'.
4129 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
4130 * machoread.c (macho_add_oso_symfile): Make a cleanup for
4131 'abfd'.
4132 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
4133 * objfiles.c (allocate_objfile): Acquire a new reference.
4134 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
4135 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
4136 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
4137 a cleanup for 'nbfd'.
4138 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
4139 for 'nbfd'.
4140 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
4141 make a cleanup for 'abfd'.
4142 (symbol_file_add): Make a BFD cleanup.
4143
64c31149
TT
41442012-07-23 Tom Tromey <tromey@redhat.com>
4145
4146 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
4147 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
4148 * corelow.c (core_open): Use gdb_bfd_fopen.
4149 * dsrec.c (load_srec): Use gdb_bfd_openr.
4150 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
4151 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
4152 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4153 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4154 (gdb_bfd_fdopenr): New functions.
4155 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
4156 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
4157 (gdb_bfd_fdopenr): Declare.
4158 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
4159 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
4160 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
4161 gdb_bfd_openr_next_archived_file.
4162 (macho_check_dsym): Use gdb_bfd_openr.
4163 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
4164 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
4165 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
4166 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
4167 gdb_bfd_openr.
4168 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
4169 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
4170 gdb_bfd_openr_next_archived_file.
4171 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4172 Use gdb_bfd_openr.
4173 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
4174 gdb_bfd_openr.
4175 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
4176 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
4177 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
4178 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
4179 (symfile_bfd_open): Use gdb_bfd_fopen.
4180 (generic_load): Use gdb_bfd_openr.
4181 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
4182
520b0001
TT
41832012-07-23 Tom Tromey <tromey@redhat.com>
4184
4185 * bfd-target.c (target_bfd_reopen): Update.
4186 * cli/cli-dump.c (bfd_openr_with_cleanup)
4187 (bfd_openw_with_cleanup): Update.
4188 * corelow.c (core_open): Update.
4189 * dsrec.c (load_srec): Update.
4190 * exec.c (exec_file_attach): Update.
4191 * gcore.c (create_gcore_bfd): Update.
4192 * gdb_bfd.c (gdb_bfd_ref): Return void.
4193 (gdb_bfd_open): Update.
4194 * gdb_bfd.h (gdb_bfd_ref): Return void.
4195 Update comments.
4196 * jit.c (jit_bfd_try_read_symtab): Update.
4197 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4198 * machoread.c (macho_symfile_read_all_oso): Update.
4199 (macho_check_dsym): Update.
4200 * procfs.c (insert_dbx_link_bpt_in_file): Update.
4201 * remote-m32r-sdi.c (m32r_load): Update.
4202 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
4203 * rs6000-nat.c (add_vmap): Update.
4204 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4205 Update.
4206 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
4207 * solib-spu.c (spu_bfd_open): Update.
4208 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
4209 * spu-linux-nat.c (spu_bfd_open): Update.
4210 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
4211 (generic_load): Update.
4212 * windows-nat.c (windows_make_so): Update.
4213
2322ff16
SP
42142012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
4215
4216 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
4217
3def0b36
PA
42182012-07-20 Jeff Kenton <jkenton@tilera.com>
4219
4220 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
4221 SIGTRAMP_FRAME unwinding.
4222
e615022a
DE
42232012-07-20 Doug Evans <dje@google.com>
4224
4225 * NEWS: Document new options "set/show use-deprecated-index-sections",
4226 and delete reference to --use-deprecated-index-sections.
4227 * symfile.h (use_deprecated_index_sections): Delete.
4228 * dwarf2read.c (use_deprecated_index_sections): Make static.
4229 (read_index_from_section): Update wording of how to load
4230 deprecated index sections.
4231 (_initialize_dwarf2_read): New options
4232 "set/show use-deprecated-index-sections".
4233 * main.c (captured_main): Delete --use-deprecated-index-sections.
4234
64776a0b
PA
42352012-07-20 Pedro Alves <palves@redhat.com>
4236
4237 PR threads/11692
4238 PR gdb/12203
4239
4240 * infrun.c (handle_inferior_event) <new thread>: Don't special
4241 case minus_one_ptid.
4242 <TARGET_WAITKIND_SPURIOUS>: Ditto.
4243 * linux-thread-db.c (thread_get_info_callback): Don't return early
4244 if the thread is zombie.
4245 (thread_from_lwp): Change return type to void. Rewrite stale
4246 comment.
4247 (attach_thread): Don't return early if the thread is zombie,
4248 instead set its "dying" flag.
4249 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
4250 (find_new_threads_callback): Don't return early if the thread is
4251 zombie.
4252
09826ec5
PA
42532012-07-20 Pedro Alves <palves@redhat.com>
4254
4255 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
4256 * target.c (target_wait): Likewise.
4257 (str_comma_list_concat_elem, do_option, target_options_to_string):
4258 New functions.
4259 * target.h (target_options_to_string): Declare.
4260
f7a35f02
TT
42612012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4262 Tom Tromey <tromey@redhat.com>
4263
4264 * dwarf2read.c (dwarf_decode_macros)
4265 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
4266 DW_MACRO_GNU_transparent_include_alt>: New cases.
4267 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
4268 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
4269
b81e1ee0
TT
42702012-07-20 Tom Tromey <tromey@redhat.com>
4271
4272 * dwarf2read.c (try_open_dwo_file): Don't call
4273 gdb_bfd_stash_filename.
4274
99c1624c
PA
42752012-07-20 Pedro Alves <palves@redhat.com>
4276
4277 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4278 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
4279 (i386_process_record): Tweak description comments.
4280
4ffa4fc7
PA
42812012-07-20 Pedro Alves <palves@redhat.com>
4282
4283 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
4284 (i386_process_record): Use record_read_memory.
4285 * record.c (record_read_memory): New function.
4286 (record_arch_list_add_mem, record_exec_insn): Use
4287 record_read_memory.
4288 * record.h (record_read_memory): Declare.
4289
c24343e2
YQ
42902012-07-20 Yao Qi <yao@codesourcery.com>
4291
4292 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
4293 NULL for xfree.
4294
90f47860
PA
42952012-07-19 Pedro Alves <palves@redhat.com>
4296
4297 * record.c (record_resume): Ask the target beneath to report all
4298 signals.
4299
01093045
DE
43002012-07-19 Doug Evans <dje@google.com>
4301
4302 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
4303 there's no section at address zero.
4304 (dwarf2_record_block_ranges): Ditto.
4305
a7c3d162
YQ
43062012-07-19 Yao Qi <yao@codesourcery.com>
4307
4308 * command.h, remote.c: Fix a typo in comment.
4309
608b4967
TT
43102012-07-19 Tom Tromey <tromey@redhat.com>
4311
4312 PR exp/13206:
4313 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
4314 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
4315 OP_DECLTYPE>: New cases.
4316 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
4317 (type_exp): Add new productions.
4318 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
4319 and decltype.
4320 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
4321 New case.
4322 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
4323 OP_DECLTYPE>: New case.
4324 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
4325 New case.
4326 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
4327 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
4328
274b54d7
TT
43292012-07-19 Tom Tromey <tromey@redhat.com>
4330
4331 * c-exp.y (enum token_flags): New.
4332 (struct token) <cxx_only>: Remove.
4333 <flags>: New field.
4334 (tokentab3, tokentab2, ident_tokens): Update.
4335 (lex_one_token): Update. Handle FLAG_SHADOW.
4336
9eaf6705
TT
43372012-07-19 Tom Tromey <tromey@redhat.com>
4338
4339 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
4340 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
4341 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
4342 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
4343 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
4344 type_exp production where appropriate.
4345 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
4346 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
4347 <UNOP_MEMVAL_TYPE>: New case.
4348 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
4349 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
4350 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
4351 <UNOP_MEMVAL_TYPE>: New case.
4352 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
4353 UNOP_REINTERPRET_CAST>: Update.
4354 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4355 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
4356 UNOP_REINTERPRET_CAST>: Update.
4357 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
4358 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
4359 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
4360 constants.
4361
6ace3df1
YQ
43622012-07-19 Yao Qi <yao@codesourcery.com>
4363 Jan Kratochvil <jan.kratochvil@redhat.com>
4364
4365 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
4366 and case 'var_optional_filename' together.
4367 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
4368 instead of add_setshow_optional_filename_cmd for setshow command
4369 'args'. Set completer for 'set args'.
4370
48faced0
DE
43712012-07-18 Doug Evans <dje@google.com>
4372
4373 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
4374 * common/gdb_vecs.c: New file, contents from utils.c.
4375 * common/host-defs.h: New file, contents from defs.h.
4376 * utils.h: New file, contents from defs.h.
4377 * defs.h: Move all declarations of objects defined in utils.c
4378 to utils.h (except QUIT() and related).
4379 #include "utils.h", "host-defs.h".
4380 * probe.h (probe_p): Move here from gdb_vecs.h.
4381 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
4382 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
4383 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
4384 * Makefile.in (SFILES): Add common/gdb_vecs.c.
4385 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
4386 (COMMON_OBS): Add gdb_vecs.o.
4387 (gdb_vecs.o): New rule.
4388
66f1999b
KS
43892012-07-18 Keith Seitz <keiths@redhat.com>
4390
4391 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
4392 parameter. If non-zero, use SYMNAME as the canonical name
4393 for the SaL.
4394 Update all callers.
4395 (convert_linespec_to_sals): Use add_sal_to_sals for
4396 expressions, too.
4397 (decode_line_full): No need to "fill in missing canonical names"
4398 anymore. Simply make cleanups for the allocated names.
4399
5d94e27b
KS
44002012-07-18 Keith Seitz <keiths@redhat.com>
4401
4402 * linespec.c (struct linespec): Constify expression,
4403 source_filename, function_name, and label_name.
4404 (symbol_not_found_error): Make all parameters const.
4405 (linespec_parser_delete): No need to check for NULL
4406 when using xfree. Cast const char * to char * for xfree.
4407
af4908ba
KS
44082012-07-18 Keith Seitz <keiths@redhat.com>
4409
4410 * breakpoint.c (invalid_thread_id_error): New function.
4411 (find_condition_and_thread): Use invalid_thread_id_error.
4412 (watch_command_1): Likewise.
4413
853254db
TT
44142012-07-18 Tom Tromey <tromey@redhat.com>
4415
4416 * cc-with-index.sh, cc-with-dwz.sh: Remove.
4417 * contrib/cc-with-tweaks.sh: New file.
4418
2ec9a5e0
TT
44192012-07-18 Tom Tromey <tromey@redhat.com>
4420
4421 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
4422 (locate_dwz_sections): Recognize .gdb_index.
4423 (create_cus_from_index_list): New function.
4424 (create_cus_from_index): Use it. Handle .dwz data.
4425 (read_index_from_section): New function, extracted from
4426 dwarf2_read_index.
4427 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
4428 if needed.
4429
36586728
TT
44302012-07-18 Tom Tromey <tromey@redhat.com>
4431
4432 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
4433 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
4434 <is_dwz>: New field.
4435 (struct dwz_file): New.
4436 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
4437 (locate_dwz_sections, dwarf2_get_dwz_file)
4438 (get_abbrev_section_for_cu): New functions.
4439 (error_check_comp_unit_head, read_and_check_comp_unit_head)
4440 (read_and_check_type_unit_head): Add abbrev_section argument.
4441 (create_debug_types_hash_table): Update.
4442 (init_cutu_and_read_dies): Use proper abbrev section.
4443 (init_cutu_and_read_dies_no_follow): Likewise.
4444 (set_partial_user): Do nothing if PST==NULL.
4445 (read_comp_units_from_section): New function.
4446 (create_all_comp_units): Use it.
4447 (scan_partial_symbols, partial_die_parent_scope): Update.
4448 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4449 (process_imported_unit_die, read_partial_die): Handle .dwz files.
4450 (find_partial_die): Add offset_in_dwz argument. Update.
4451 (guess_partial_die_structure_name, fixup_partial_die): Update.
4452 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
4453 DW_FORM_GNU_strp_alt.
4454 (read_indirect_string_from_dwz): New function.
4455 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
4456 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
4457 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
4458 (follow_die_offset): Add offset_in_dwz argument.
4459 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
4460 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
4461 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
4462 Handle new macro forms.
4463 (dwarf_decode_macros): Update.
4464 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
4465 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
4466 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
4467 (create_debug_types_hash_table): Use correct abbrev section.
4468 (get_debug_line_section): New function.
4469 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
4470 (process_full_comp_unit): Pass 'required' argument to
4471 end_symtab_get_static_block.
4472 * buildsym.h (end_symtab_get_static_block): Update.
4473 * buildsym.c (end_symtab_get_static_block): Add 'required'
4474 argument.
4475 (end_symtab, end_expandable_symtab): Update.
4476
4bf44c1c
TT
44772012-07-18 Tom Tromey <tromey@redhat.com>
4478
4479 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
4480 (pagesize): Remove.
4481 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
4482 (zlib_decompress_section): Remove.
4483 (dwarf2_read_section): Use gdb_bfd_map_section.
4484 (munmap_section_buffer): Remove.
4485 (free_dwo_file, dwarf2_per_objfile_free): Don't use
4486 munmap_section_buffer.
4487 * gdb_bfd.c: Include zlib.h, sys/mman.h.
4488 (struct gdb_bfd_section_data): New.
4489 (free_one_bfd_section): New function.
4490 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
4491 (get_section_descriptor, zlib_decompress_section)
4492 (gdb_bfd_map_section): New functions.
4493 * gdb_bfd.h (gdb_bfd_map_section): Declare.
4494
bb397797
TT
44952012-07-18 Tom Tromey <tromey@redhat.com>
4496
4497 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
4498
6ec53d05
TT
44992012-07-18 Tom Tromey <tromey@redhat.com>
4500
4501 * gdb_bfd.c (struct gdb_bfd_data): New.
4502 (gdb_bfd_cache): New global.
4503 (struct gdb_bfd_cache_search): New.
4504 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
4505 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
4506 * gdb_bfd.h (gdb_bfd_open): Declare.
4507
f9a062ff
TT
45082012-07-18 Tom Tromey <tromey@redhat.com>
4509
4510 * utils.c (make_cleanup_bfd_unref): Rename from
4511 make_cleanup_bfd_close.
4512 * defs.h (make_cleanup_bfd_unref): Rename from
4513 make_cleanup_bfd_close.
4514 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
4515 (bfd_openw_with_cleanup): Update.
4516 * corelow.c (core_open): Update.
4517 * dsrec.c (load_srec): Update.
4518 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
4519 * remote-m32r-sdi.c (m32r_load): Update.
4520 * remote-mips.c (mips_load_srec): Update.
4521 (pmon_load_fast): Update.
4522 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4523 Update.
4524 (darwin_bfd_open): Update.
4525 * solib.c (solib_bfd_fopen): Update.
4526 * symfile-mem.c (symbol_file_add_from_memory): Update.
4527 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
4528 (symfile_bfd_open): Update.
4529 (generic_load): Update.
4530
d6ad71ba
TT
45312012-07-18 Tom Tromey <tromey@redhat.com>
4532
4533 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
4534 (pmon_load_fast): Likewise.
4535 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
4536 (m32r_upload_command): Likewise.
4537 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
4538 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4539 Use make_cleanup_bfd_close.
4540
a4453b7e
TT
45412012-07-18 Tom Tromey <tromey@redhat.com>
4542
4543 * symfile.c (symfile_bfd_open): Don't copy name. Call
4544 gdb_bfd_stash_filename.
4545 (load_command): Open the new BFD before freeing the old.
4546 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
4547 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
4548 Call gdb_bfd_stash_filename.
4549 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
4550 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
4551 gdb_bfd_stash_filename.
4552 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
4553 Free found_pathname.
4554 * rs6000-nat.c (add_vmap): Don't copy filename. Call
4555 gdb_bfd_stash_filename.
4556 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
4557 * machoread.c (macho_add_oso_symfile): Call
4558 gdb_bfd_stash_filename.
4559 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
4560 gdb_bfd_stash_filename.
4561 (macho_check_dsym): Don't copy filename. Call
4562 gdb_bfd_stash_filename.
4563 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
4564 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
4565 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
4566 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
4567 * exec.c (exec_close): Don't free the BFD's filename.
4568 (exec_file_attach): Don't copy the filename. Call
4569 gdb_bfd_stash_filename.
4570 * corelow.c (core_close): Don't free the BFD's filename.
4571 (core_open): Call gdb_bfd_stash_filename.
4572 * corefile.c (reopen_exec_file): Remove #if 0 code.
4573 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
4574 pathname.
4575 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
4576
cbb099e8
TT
45772012-07-18 Tom Tromey <tromey@redhat.com>
4578
4579 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
4580 gdb_bfd_unref.
4581 (free_dwo_file): Use gdb_bfd_unref.
4582 * cli/cli-dump.c: Include gdb_bfd.h.
4583 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
4584 (bfd_openr_with_cleanup): Likewise.
4585 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
4586 gdb_bfd_unref.
4587 * utils.c: Include gdb_bfd.h.
4588 (do_bfd_close_cleanup): Use gdb_bfd_unref.
4589 * symfile.c: Include gdb_bfd.h.
4590 (separate_debug_file_exists): Use gdb_bfd_unref.
4591 (bfd_open_maybe_remote): Use gdb_bfd_ref.
4592 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4593 (generic_load): Use gdb_bfd_ref.
4594 (reread_symbols): Use gdb_bfd_unref.
4595 * symfile-mem.c: Include gdb_bfd.h.
4596 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
4597 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
4598 * solib.c: Include gdb_bfd.h.
4599 (solib_bfd_fopen): Use gdb_bfd_ref.
4600 (solib_bfd_open): Use gdb_bfd_unref.
4601 (free_so_symbols): Use gdb_bfd_unref.
4602 (reload_shared_libraries_1): Use gdb_bfd_unref.
4603 * solib-spu.c: Include gdb_bfd.h.
4604 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
4605 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
4606 gdb_bfd_unref.
4607 * solib-frv.c: Include gdb_bfd.h.
4608 (enable_break2): Use gdb_bfd_unref.
4609 * solib-dsbt.c: Include gdb_bfd.h.
4610 (enable_break2): Use gdb_bfd_unref.
4611 * solib-darwin.c: Include gdb_bfd.h.
4612 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
4613 gdb_bfd_unref.
4614 (darwin_bfd_open): Use gdb_bfd_unref.
4615 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
4616 * remote-mips.c: Include gdb_bfd.h.
4617 (mips_load_srec): Use gdb_bfd_ref.
4618 (pmon_load_fast): Use gdb_bfd_ref.
4619 * remote-m32r-sdi.c: Include gdb_bfd.h.
4620 (m32r_load): Use gdb_bfd_ref.
4621 * record.c: Include gdb_bfd.h.
4622 (record_save_cleanups): Use gdb_bfd_unref.
4623 (cmd_record_save): Use gdb_bfd_unref.
4624 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
4625 gdb_bfd_unref.
4626 * objfiles.h (gdb_bfd_close_or_warn): Remove.
4627 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
4628 * objfiles.c: Include gdb_bfd.h.
4629 (free_objfile): Use gdb_bfd_unref.
4630 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
4631 gdb_bfd.c.
4632 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
4633 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
4634 (macho_check_dsym): Likewise.
4635 * m32r-rom.c: Include gdb_bfd.h.
4636 (m32r_load): Use gdb_bfd_ref.
4637 (m32r_upload_command): Use gdb_bfd_ref.
4638 * jit.c: Include gdb_bfd.h.
4639 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
4640 * gdb_bfd.h: New file.
4641 * gdb_bfd.c: New file.
4642 * gcore.c: Include gdb_bfd.h.
4643 (create_gcore_bfd): Use gdb_bfd_ref.
4644 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
4645 (gcore_command): Use gdb_bfd_unref.
4646 * exec.c: Include gdb_bfd.h.
4647 (exec_close): Use gdb_bfd_unref.
4648 (exec_close_1): Use gdb_bfd_unref.
4649 (exec_file_attach): Use gdb_bfd_ref.
4650 * elfread.c: Include gdb_bfd.h.
4651 (build_id_verify): Use gdb_bfd_unref.
4652 * dsrec.c: Include gdb_bfd.h.
4653 (load_srec): Use gdb_bfd_ref.
4654 * corelow.c: Include gdb_bfd.h.
4655 (core_close): Use gdb_bfd_unref.
4656 (core_open): Use gdb_bfd_ref.
4657 * bfd-target.c: Include gdb_bfd.h.
4658 (target_bfd_xclose): Use gdb_bfd_unref.
4659 (target_bfd_reopen): Use gdb_bfd_ref.
4660 * Makefile.in (SFILES): Add gdb_bfd.c.
4661 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
4662 (COMMON_OBS): Add gdb_bfd.o.
4663
ed1d1739
KS
46642012-07-18 Keith Seitz <keiths@redhat.com>
4665
4666 * breakpoint.c (find_condition_and_thread): Initialize
4667 TASK and REST.
4668 (create_breakpiont): find_condition_and_thread will now
4669 initialize COND_STRING, THREAD, and REST (and TASK).
4670 (addr_string_to_sals): Likewise.
4671
eab402df
PA
46722012-07-18 Pedro Alves <palves@redhat.com>
4673
4674 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
4675 Pull the single step breakpoints out of the target.
4676
2b963b68
SDJ
46772012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4678
4679 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
4680 * stap-probe.c (compile_probe_arg): Likewise.
4681
6bac7473
SDJ
46822012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
4683
4684 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
4685 (elf_compile_to_ax): Likewise.
4686 * infrun.c (insert_exception_resume_from_probe): Likewise.
4687 (check_exception_resume): Remove `objfile' variable.
4688 * probe.c (find_probe_by_pc): Remove `objfile' argument.
4689 (struct probe_and_objfile, probe_and_objfile_s): Delete.
4690 (collect_probes): Adjust return value to `VEC (probe_p) *'.
4691 (compare_entries): Rename to...
4692 (compare_probes): ...this. Adjust function to work with
4693 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
4694 respectively.
4695 (gen_ui_out_table_header_info): Adjust `probes' argument to be
4696 `VEC (probe_p) *'.
4697 (print_ui_out_info): Adjust argument to be `struct probe *'.
4698 (info_probes_for_ops): Adjust internal computations to use
4699 `VEC (probe_p) *'.
4700 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
4701 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
4702 gen_info_probes_table_values>: Remove `objfile' argument.
4703 (struct probe) <objfile>: New field.
4704 (find_probe_by_pc): Remove `objfile' argument.
4705 * stap-probe.c (stap_parse_probe_arguments): Likewise.
4706 (stap_get_probe_argument_count): Likewise.
4707 (stap_get_arg): Likewise.
4708 (stap_evaluate_probe_argument): Likewise.
4709 (stap_compile_to_ax): Likewise.
4710 (compile_probe_arg): Refactor not to pass `objfile' anymore.
4711 (handle_stap_probe): Fill `objfile' field from `struct probe'.
4712 (stap_gen_info_probes_table_header): Remove `objfile' argument.
4713 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
4714 sym_compile_to_ax>: Likewise.
4715
3347eb1a 47162012-07-18 Terry Guo <terry.guo@arm.com>
4717
4718 PR 14329
4719 * defs.h (GDB_MI_MSG_WIDTH): New.
4720 * ser_base (ser_base_read_error_fd): New function.
4721 (do_ser_base_readchar): Poll error file descriptor as well as
4722 standard output.
f782ad9b 4723 (generic_readchar): Refactor error handling.
3347eb1a 4724
80c8d323
JB
47252012-07-18 Joel Brobecker <brobecker@adacore.com>
4726
4727 * NEWS: Create a new section for the next release branch.
4728 Rename the section of the current branch, now that it has
4729 been cut.
4730
b45a0664 47312012-07-18 Joel Brobecker <brobecker@adacore.com>
4732
4733 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
4734 * version.in: Bump version to 7.5.50.20120718-cvs.
4735
09cf2b22
KS
47362012-07-17 Keith Seitz <keiths@redhat.com>
4737
4738 * linespec.c (linespec_parse_line_offset): Make parameter
4739 const.
4740
8f043999
JK
47412012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4742
4743 PR 11914
4744 * f-valprint.c (info_common_command): New variable frame_id.
4745 Reinitialize FI form FRAME_ID after each print_variable_and_value.
4746 * printcmd.c (print_variable_and_value): Extend function comment.
4747 Add comment for invalidated FRAME.
4748 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
4749 FI form FRAME_ID after each print_frame_local_vars.
4750 (struct print_variable_and_value_data): Change frame to frame_id.
4751 (do_print_variable_and_value): New variable frame, initialize it from
4752 p->frame_id. Add comment for invalidated FRAME.
4753 (print_frame_local_vars, print_frame_arg_vars): New function comment.
4754 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
4755 for invalidated FRAME.
4756
ae5e0686
MK
47572012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
4758 Pedro Alves <palves@redhat.com>
4759
4760 * linux-nat.c (linux_nat_detach): Don't unregister from the event
4761 loop.
4762
5049c5be
TT
47632012-07-16 Tom Tromey <tromey@redhat.com>
4764
4765 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
4766
2908cac6
DE
47672012-07-15 Doug Evans <dje@google.com>
4768
094b34ac
DE
4769 * dwarf2read.c (stmt_list_hash): New struct.
4770 (type_unit_group): Embed "per_cu" member, remove pointer.
4771 New union member "t", move member "tus" into it, all uses updated.
4772 New member "hash", replaces member "line_offset, all uses updated.
4773 (quick_file_names): Replace member "offset" with "hash", all uses
4774 updated.
4775 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
4776 (hash_file_name_entry, eq_file_name_entry): Call them.
4777 (hash_type_unit_group, eq_type_unit_group): Ditto.
4778 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
4779 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
4780 (dw2_get_file_names): Update.
4781 (create_type_unit_group): Replace "per_cu" arg with "cu".
4782 All callers updated. Fix "quick" (.gdb_index) handling.
4783 (get_type_unit_group): Replace "per_cu" arg with "cu".
4784 All callers updated.
4785 (build_type_unit_groups): Don't reset tu_stats.
4786
2908cac6
DE
4787 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
4788 "tab_cur_size". Change member "tab" to be a htab_t.
4789 (create_filename_seen_cache): Update.
4790 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
4791 (filename_seen): Update.
4792
a2b6eff5
DE
47932012-07-13 Doug Evans <dje@google.com>
4794
4795 * symtab.c (filename_seen): Update comment.
4796
4359dff1
JK
47972012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4798 Doug Evans <dje@google.com>
4799
4800 * buildsym.c (end_symtab_1): Split it to ...
4801 (end_symtab_get_static_block): ... this ...
4802 (end_symtab_from_static_block): ... and this function.
4803 (end_symtab, end_expandable_symtab): Call them.
4804 * buildsym.h (end_symtab_get_static_block)
4805 (end_symtab_from_static_block): New declarations.
4806 * dwarf2read.c (process_full_comp_unit): New variable static_block.
4807 Set its valid CU ranges.
4808
a24f71ab
JK
48092012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4810
4811 * dwarf2loc.c (disassemble_dwarf_expression): Handle
4812 DW_OP_GNU_parameter_ref.
4813
d76b7dbc
JK
48142012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4815
4816 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
4817 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
4818
9fdc877b
DE
48192012-07-13 Doug Evans <dje@google.com>
4820
4821 * symtab.c (output_source_filename): Delete unnecessary forward decl.
4822 (filename_seen_cache): New struct.
4823 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
4824 (create_filename_seen_cache): New function.
4825 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
4826 (filename_seen): Delete arg "first". New arg "cache". All callers
4827 updated.
4828 (output_source_filename_data): New struct.
4829 (output_source_filename): Delete arg "first". New arg "data".
4830 All callers updated.
4831 (sources_info): Delete local "first". New locals "data", "cleanups".
4832 Rewrite to use filename_seen_cache.
4833 (add_partial_filename_data): Delete member "first". New member
4834 "filename_seen_cache". All uses updated.
4835 (make_source_files_completion_list): Rewrite to use
4836 filename_seen_cache.
4837
f80c6f3f
DE
48382012-07-12 Doug Evans <dje@google.com>
4839
4840 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4841
0bfa869d
DE
48422012-07-10 Doug Evans <dje@google.com>
4843
f4dc4d17
DE
4844 PR gdb/13498
4845 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4846 all_type_unit_groups, type_unit_groups, tu_stats.
4847 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4848 All uses updated. Add type_unit_group to union "s".
4849 (type_unit_group): New struct.
4850 (IS_TYPE_UNIT_GROUP): New macro.
4851 (abbrev_table): Delete unused member "section".
4852 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4853 (dw2_get_cu): Assert not used with type_unit_group.
4854 (dw2_get_primary_cu): New function.
4855 (dw2_build_type_unit_groups_reader): New function.
4856 (dw2_build_type_unit_groups): New function.
4857 (dw2_get_file_names): Assert not called on type units.
4858 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4859 Redo loop to iterate over type unit groups instead of type units.
4860 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4861 (read_abbrev_offset): New function.
4862 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4863 updated.
4864 (create_partial_symtab): New function.
4865 (process_psymtab_comp_unit_reader): Assert not used with type units.
4866 Call create_partial_symtab.
4867 (process_psymtab_type_unit): Delete.
4868 (hash_type_unit_group, eq_type_unit_group): New functions.
4869 (allocate_type_unit_groups_table): New function.
4870 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4871 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4872 (create_type_unit_group, get_type_unit_group): New functions.
4873 (tu_abbrev_offset): New struct.
4874 (sort_tu_by_abbrev_offset): New function.
4875 (add_type_unit_group_to_table): New function.
4876 (build_type_unit_groups): New function.
4877 (build_type_psymtabs_reader): New function.
4878 (build_type_psymtab_dependencies): New function.
4879 (build_type_psymtabs): Rewrite.
4880 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4881 is seen in a type unit.
4882 (process_queue): Move symtab expansion debugging printfs here.
4883 Call process_full_type_unit for type units.
4884 (compute_symtab_includes): Assert not called for type units.
4885 (process_cu_includes): Don't call compute_symtab_includes for
4886 type units.
4887 (process_full_type_unit): New function.
4888 (process_imported_unit_die): Flag an error if called for type units.
4889 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4890 updated. Assert not called for type units.
4891 (read_file_scope): Call dwarf2_start_symtab.
4892 (setup_type_unit_groups): New function.
4893 (read_type_unit_scope): Rewrite.
4894 (abbrev_table_read_table): Initialize abbrev_table->offset.
4895 (abbrev_table_free_cleanup): New function.
4896 (dwarf2_start_symtab): New function.
4897 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4898 * buildsym.c (finish_block_internal): New arg "expandable".
4899 All callers updated.
4900 (start_symtab): Move most contents to ...
4901 (restart_symtab): ... here. New function.
4902 (reset_symtab_globals): New function.
4903 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4904 Call reset_symtab_globals.
4905 (end_symtab, end_expandable_symtab): New functions.
4906 (set_missing_symtab, augment_type_symtab): New functions.
4907 * buildsym.h (end_expandable_symtab): Declare.
4908 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4909 * psympriv.h (struct partial_symtab): New member "anonymous".
4910 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4911 anonymous psymtabs.
4912 (read_psymtabs_with_filename): Ditto.
4913 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4914 (expand_symtabs_matching_via_partial): Ditto.
4915 (dump_psymtab): Update.
0bfa869d
DE
4916 * dictionary.c (dict_add_pending): New function.
4917 * dictionary.h (dict_add_pending): Declare.
4918
45e58e77
DE
49192012-07-09 Doug Evans <dje@google.com>
4920
b74db436
DE
4921 * buildsym.c (start_subfile): Remove unnecessary check for
4922 name == NULL.
4923
fd55216c
DE
4924 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4925
6721b2ec
DE
4926 * dwarf2read.c (load_full_type_unit): Simplify.
4927
b4dd5633
DE
4928 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4929 to struct signatured_type **. All uses updated.
4930
45e58e77
DE
4931 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4932 All callers updated.
4933
e314d629
TT
49342012-07-09 Tom Tromey <tromey@redhat.com>
4935
4936 * c-exp.y (check_parameter_typelist): New function.
4937 (parameter_typelist): Call it.
4938 * eval.c (make_params): Handle '(void)' case.
4939 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4940 '(void)' case.
4941
aa7c7447
JK
49422012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4943
4944 * common/linux-ptrace.c: Include gdb_assert.h.
4945 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4946 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4947 stdint.h.
4948 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4949 functions.
4950 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4951 * linux-nat.c (linux_child_post_attach)
4952 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4953
889003ed
JK
49542012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4955
4956 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4957 nptl <2.7 bug workaround for core files.
4958
da559b09
JK
49592012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4960
4961 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4962 clearing.
4963 (save_siginfo): Remove.
4964 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4965 call.
4966 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4967 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4968 * linux-nat.h (struct lwp_info): Remove field siginfo.
4969
f865ee35
JK
49702012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4971
4972 Code cleanup for the next patch.
4973 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4974 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4975 call for it.
4976 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4977 (ia64_linux_stopped_data_address):
4978 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4979 the return value.
4980 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4981 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4982 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4983 call for it.
4984
76b83c51
JK
49852012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4986
4987 PR 14321
4988 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4989 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4990
a6fb9c08
TT
49912012-07-06 Tom Tromey <tromey@redhat.com>
4992
4993 * c-exp.y (DOTDOTDOT): New token.
4994 (func_mod, exp): Use parameter_typelist.
4995 (parameter_typelist): New production.
4996 (tokentab3): Add "..." token.
4997 * eval.c (make_params): Handle varargs.
4998 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4999 varargs.
5000
71918a86
TT
50012012-07-06 Tom Tromey <tromey@redhat.com>
5002
5003 PR exp/9608:
5004 * c-exp.y (%union) <tvec>: Change type.
5005 (func_mod): Now uses <tvec> type.
5006 (exp): Update for tvec change.
5007 (direct_abs_decl): Push the typelist.
5008 (func_mod): Return a typelist.
5009 (nonempty_typelist): Update for tvec change.
5010 * gdbtypes.c (lookup_function_type_with_arguments): New function.
5011 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
5012 * parse.c (pop_type_list): New function.
5013 (push_typelist): New function.
5014 (follow_types): Handle tp_function_with_arguments.
5015 * parser-defs.h (type_ptr): New typedef. Define a VEC.
5016 (enum type_pieces) <tp_function_with_arguments>: New constant.
5017 (union type_stack_elt) <typelist_val>: New field.
5018 (push_typelist): Declare.
5019
fcde5961
TT
50202012-07-06 Tom Tromey <tromey@redhat.com>
5021
5022 * c-exp.y (%union) <type_stack>: New field.
5023 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
5024 (ptr_operator_ts): New production.
5025 (ptype): Update.
5026 * parse.c (type_stack_reserve): New function.
5027 (check_type_stack_depth): Use it.
5028 (pop_type_stack, append_type_stack, push_type_stack)
5029 (get_type_stack, type_stack_cleanup): New functions.
5030 (follow_types): Handle tp_type_stack.
5031 (_initialize_parse): Simplify initialization.
5032 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
5033 constant.
5034 (union type_stack_elt) <stack_val>: New field.
5035 (get_type_stack, append_type_stack, push_type_stack)
5036 (type_stack_cleanup): Declare.
5037
1a7d0ce4
TT
50382012-07-06 Tom Tromey <tromey@redhat.com>
5039
5040 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
5041 Remove.
5042 (struct type_stack): New.
5043 * parse.c (type_stack, type_stack_size, type_stack_depth):
5044 Remove.
5045 (type_stack): New global.
5046 (parse_exp_in_context, check_type_stack_depth)
5047 (insert_into_type_stack, insert_type, push_type, push_type_int)
5048 (insert_type_address_space, pop_type, pop_type_int)
5049 (_initialize_parse): Update.
5050
16d01384
TT
50512012-07-06 Tom Tromey <tromey@redhat.com>
5052
5053 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
5054 Remove %type.
5055
9bfc60bf
SP
50562012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5057
5058 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
5059
d5161074
SP
50602012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5061 Jan Kratochvil <jan.kratochvil@redhat.com>
5062
5063 * cp-valprint.c (cp_print_value): Replace potentially unsafe
5064 alloca with xmalloc/xfree.
5065
a74bc576
SP
50662012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
5067
5068 * MAINTAINERS (Write After Approval): Add myself to the list.
5069
667e0a4b
DE
50702012-07-05 Doug Evans <dje@google.com>
5071
5072 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
5073
34b536a8
HZ
50742012-07-05 Hui Zhu <hui_zhu@mentor.com>
5075
5076 * ax-gdb.c (cli/cli-utils.h): New include.
5077 (linespec.h): Ditto.
5078 (agent_eval_command_one): New function.
5079 (agent_command_1): Ditto.
5080 (agent_command): Call function agent_command_1.
5081 (agent_eval_command): Ditto.
5082 (_initialize_ax_gdb): Change help for "maint agent"
5083 and "maint agent-eval".
5084
e6f0bce7
HZ
50852012-07-05 Hui Zhu <hui_zhu@mentor.com>
5086
5087 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
5088 * cli/cli-utils.c (check_for_argument): New function.
5089 * cli/cli-utils.h (check_for_argument): Ditto.
5090
1b3371b1
L
50912012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5092
5093 * NEWS: Mention x32 ABI support.
5094
23e2d720
L
50952012-07-04 H.J. Lu <hongjiu.lu@intel.com>
5096
5097 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
5098 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
5099
5100 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
5101 and pc_regnum_from_eax to -1. Update SP regnum from
5102 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
5103 needed.
5104
5105 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
5106 pc_regnum_from_eax.
5107
836bf454
JK
51082012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
5109
5110 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
5111 * dwarf2expr.h: Include gdbtypes.h.
5112 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
5113 these forward declarations.
5114 (cu_offset, sect_offset): Move these ...
5115 * gdbtypes.h: Remove include dwarf2expr.h.
5116 (cu_offset, sect_offset): ... here.
5117
1e55e04f
L
51182012-07-03 H.J. Lu <hongjiu.lu@intel.com>
5119
5120 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
5121 (amd64_linux_sigtramp_code): This.
5122 (amd64_x32_linux_sigtramp_code): New.
5123 (LINUX_SIGTRAMP_LEN): Updated.
5124 (amd64_linux_sigtramp_start): Check x32 sigtramp.
5125
7d0e21ad
JK
51262012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5127
5128 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
5129
8775fd2d
JK
51302012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5131
5132 * config.in: Regenerate.
5133 * configure: Regenerate.
5134 * configure.ac: Remove check for gnu/libc-version.h.
5135 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
5136 gnu/libc-version.h.
5137 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
5138 variables libc_version, libc_major and libc_minor. Replace sscanf by
5139 inferior_has_bug. Extend the comment.
5140
fcb44371
JK
51412012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5142
5143 * linux-thread-db.c (inferior_has_bug): New function.
5144 (thread_db_find_new_threads_silently): Return boolean as checked by
5145 inferior_has_bug, describe it in the comments.
5146 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
5147 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 5148 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
5149 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
5150 if UNTIL_NO_NEW,
5151
09406207
DE
51522012-07-02 Doug Evans <dje@google.com>
5153
0907af0c
DE
5154 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
5155 related to queue management.
5156
09406207
DE
5157 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
5158 instead of "debug dwarf2-die" in debugging printfs.
5159 (create_debug_info_hash_table_reader): Ditto.
5160 (create_debug_info_hash_table): Ditto.
5161 (init_dwo_file): Ditto.
5162 (init_cutu_and_read_dies): Add debugging printf.
5163 (init_cutu_and_read_dies_no_follow): Ditto.
5164 (process_psymtab_comp_unit_reader): Ditto.
5165
d3ce09f5
SS
51662012-07-02 Stan Shebs <stan@codesourcery.com>
5167
5168 Add target-side support for dynamic printf.
5169 * NEWS: Mention the additional style.
5170 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
5171 (struct bp_location): New field cmd_bytecode.
5172 * breakpoint.c: Include format.h.
5173 (disconnected_dprintf): New global.
5174 (parse_cmd_to_aexpr): New function.
5175 (build_target_command_list): New function.
5176 (insert_bp_location): Call it.
5177 (remove_breakpoints_pid): Skip dprintf breakpoints.
5178 (print_one_breakpoint_location): Ditto.
5179 (dprintf_style_agent): New global.
5180 (dprintf_style_enums): Add dprintf_style_agent.
5181 (update_dprintf_command_list): Add agent case.
5182 (agent_printf_command): New function.
5183 (_initialize_breakpoint): Add new commands.
5184 * common/ax.def (printf): New bytecode.
5185 * ax.h (ax_string): Declare.
5186 * ax-gdb.h (gen_printf): Declare.
5187 * ax-gdb.c: Include cli-utils.h, format.h.
5188 (gen_printf): New function.
5189 (maint_agent_print_command): New function.
5190 (_initialize_ax_gdb): Add maint agent-printf command.
5191 * ax-general.c (ax_string): New function.
5192 (ax_print): Add printf disassembly.
5193 * Makefile.in (SFILES): Add format.c
5194 (COMMON_OBS): Add format.o.
5195 * common/format.h: New file.
5196 * common/format.c: New file.
5197 * printcmd.c: Include format.h.
5198 (ui_printf): Call parse_format_string.
5199 * remote.c (remote_state): New field breakpoint_commands.
5200 (PACKET_BreakpointCommands): New enum.
5201 (remote_breakpoint_commands_feature): New function.
5202 (remote_protocol_features): Add new BreakpointCommands entry.
5203 (remote_can_run_breakpoint_commands): New function.
5204 (remote_add_target_side_commands): New function.
5205 (remote_insert_breakpoint): Call it.
5206 (remote_insert_hw_breakpoint): Ditto.
5207 (_initialize_remote): Add new packet configuration for
5208 target-side breakpoint commands.
5209 * target.h (struct target_ops): New field
5210 to_can_run_breakpoint_commands.
5211 (target_can_run_breakpoint_commands): New macro.
5212 * target.c (update_current_target): Handle
5213 to_can_run_breakpoint_commands.
5214
2d7b58e8
JK
52152012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5216
5217 Execute -ix and -iex only after system and user gdbinit files.
5218 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
5219 processing down after gdbinit files.
5220
8690e634
JK
52212012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5222
5223 Add fnmatch-gnu module.
5224 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
5225 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
5226 * gnulib/aclocal.m4: Regenerate.
5227 * gnulib/config.in: Regenerate.
5228 * gnulib/configure: Regenerate.
5229 * gnulib/import/dummy.c: Remove.
5230 * gnulib/import/Makefile.am: Regenerate.
5231 * gnulib/import/Makefile.in: Likewise.
5232 * gnulib/import/m4/gnulib-cache.m4: Likewise.
5233 * gnulib/import/m4/gnulib-comp.m4: Likewise.
5234 * gnulib/import/alloca.c: New file.
5235 * gnulib/import/alloca.in.h: Likewise.
5236 * gnulib/import/config.charset: Likewise.
5237 * gnulib/import/fnmatch.c: Likewise.
5238 * gnulib/import/fnmatch.in.h: Likewise.
5239 * gnulib/import/fnmatch_loop.c: Likewise.
5240 * gnulib/import/localcharset.c: Likewise.
5241 * gnulib/import/localcharset.h: Likewise.
5242 * gnulib/import/m4/alloca.m4: Likewise.
5243 * gnulib/import/m4/codeset.m4: Likewise.
5244 * gnulib/import/m4/configmake.m4: Likewise.
5245 * gnulib/import/m4/fcntl-o.m4: Likewise.
5246 * gnulib/import/m4/fnmatch.m4: Likewise.
5247 * gnulib/import/m4/glibc21.m4: Likewise.
5248 * gnulib/import/m4/localcharset.m4: Likewise.
5249 * gnulib/import/m4/locale-fr.m4: Likewise.
5250 * gnulib/import/m4/locale-ja.m4: Likewise.
5251 * gnulib/import/m4/locale-zh.m4: Likewise.
5252 * gnulib/import/m4/mbrtowc.m4: Likewise.
5253 * gnulib/import/m4/mbsinit.m4: Likewise.
5254 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
5255 * gnulib/import/m4/mbstate_t.m4: Likewise.
5256 * gnulib/import/m4/stdbool.m4: Likewise.
5257 * gnulib/import/m4/wchar_h.m4: Likewise.
5258 * gnulib/import/m4/wctype_h.m4: Likewise.
5259 * gnulib/import/m4/wint_t.m4: Likewise.
5260 * gnulib/import/mbrtowc.c: Likewise.
5261 * gnulib/import/mbsinit.c: Likewise.
5262 * gnulib/import/mbsrtowcs-impl.h: Likewise.
5263 * gnulib/import/mbsrtowcs-state.c: Likewise.
5264 * gnulib/import/mbsrtowcs.c: Likewise.
5265 * gnulib/import/ref-add.sin: Likewise.
5266 * gnulib/import/ref-del.sin: Likewise.
5267 * gnulib/import/stdbool.in.h: Likewise.
5268 * gnulib/import/streq.h: Likewise.
5269 * gnulib/import/strnlen1.c: Likewise.
5270 * gnulib/import/strnlen1.h: Likewise.
5271 * gnulib/import/verify.h: Likewise.
5272 * gnulib/import/wchar.in.h: Likewise.
5273 * gnulib/import/wctype.in.h: Likewise.
5274
202cbf1c
JK
52752012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5276
5277 Support shell wildcards for 'set auto-load safe-path'.
5278 * auto-load.c: Include fnmatch.h.
5279 (filename_is_in_dir): Rename to ...
5280 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
5281 it. Update function comment. Rename dir_len to pattern_len. New
5282 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
5283 messages. Use gdb_filename_fnmatch.
5284 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
5285 pattern.
5286 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
5287 * defs.h (gdb_filename_fnmatch): New declaration.
5288 * utils.c: Include fnmatch.h.
5289 (gdb_filename_fnmatch): New function.
5290
fb7b5af4
SDJ
52912012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
5292
5293 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
5294 `-probe' and `-probe-stap' options.
5295
72d0e2c5
YQ
52962012-07-01 Yao Qi <yao@codesourcery.com>
5297
5298 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
5299 always_inserted_off, and always_inserted_enums.
5300 Change always_inserted_mode's type to 'enum auto_boolean'.
5301 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
5302 callers.
5303 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
5304 of add_setshow_enum_cmd.
5305 * infrun.c: Remove can_use_displaced_stepping_auto,
5306 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
5307 can_use_displaced_stepping_enum.
5308 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
f87e3f15
PA
5309 (show_can_use_displaced_stepping, use_displaced_stepping): Update
5310 callers.
72d0e2c5
YQ
5311 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
5312 add_setshow_enum_cmd.
5313
42e7ad6c
DE
53142012-06-30 Doug Evans <dje@google.com>
5315
5316 * dwarf2read.c (signatured_type): Make "per_cu" member first.
5317 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
5318 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
5319
39cf75f7
DE
53202012-06-29 Doug Evans <dje@google.com>
5321
5322 * linespec.c: #include "stack.h".
5323 (decode_line_with_current_source): Moved here from symtab.c and
5324 renamed from decode_line_spec. All callers updated.
5325 (decode_line_with_last_displayed): Moved here from breakpoint.c and
5326 renamed from decode_line_spec_1. All callers updated.
5327 * linespec.h (decode_line_with_current_source): Move declaration here
5328 from symtab.h and renamed from decode_line_spec.
5329 (decode_line_with_last_displayed): Move declaration here from symtab.h
5330 and renamed from decode_line_spec_1.
5331 * macrocmd.c: #include "linespec.h".
5332 * symtab.c: Remove #include "linespec.h".
5333
433df2d4
DE
53342012-06-28 Doug Evans <dje@google.com>
5335
1ce1cefd
DE
5336 * dwarf2read.c (get_cu_length): New function.
5337 (offset_in_cu_p, error_check_comp_unit_head): Call it.
5338 (create_debug_types_hash_table): Ditto.
5339 (init_cutu_and_read_dies): Ditto.
5340 (init_cutu_and_read_dies_no_follow): Ditto.
5341
3b80fe9b
DE
5342 * dwarf2read.c (dwarf2_find_base_address): Move definition.
5343
433df2d4
DE
5344 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
5345 (struct abbrev_table): Define.
5346 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
5347 abbrev_table.
5348 (init_cutu_and_read_dies): Update.
5349 (abbrev_table_alloc_abbrev): New function. Replaces
5350 dwarf_alloc_abbrev. All callers updated.
5351 (abbrev_table_add_abbrev): New function.
5352 (abbrev_table_lookup_abbrev): New function. Replaces
5353 dwarf2_lookup_abbrev. All callers updated.
5354 (abbrev_table_read_table): New function. Contents moved here from
5355 dwarf2_read_abbrevs.
5356 (dwarf2_read_abbrevs): Call it.
5357 (abbrev_table_free): New function.
5358 (dwarf2_free_abbrev_table): Call it.
5359
71caed83
SS
53602012-06-28 Stan Shebs <stan@codesourcery.com>
5361
5362 * osdata.c (info_osdata_command): Filter out "Title" columns
5363 from non-MI uses.
5364 * common/linux-osdata.c (struct osdata_type): Add title field.
5365 (osdata_table): Add titles to each entry.
5366 (linux_command_xfer_osdata): Add a column for title data.
5367
37ce89eb
SS
53682012-06-28 Stan Shebs <stan@codesourcery.com>
5369
5370 Make logging work for MI.
5371 * NEWS: Mention it.
5372 * interps.h (interp_set_logging_ftype): New typedef.
5373 (struct interp_procs): New field set_logging_proc.
5374 (current_interp_set_logging): Declare.
5375 * interps.c (current_interp_set_logging): New function.
5376 * cli/cli-logging.c: Include interps.h.
5377 (set_logging_redirect): Call current_interp_set_logging.
5378 (pop_output_files): Ditto.
5379 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
5380 * mi/mi-console.h (mi_console_set_raw): Declare.
5381 * mi/mi-console.c (mi_console_set_raw): New function.
5382 * mi/mi-interp.c (saved_raw_stdout): New global.
5383 (mi_set_logging): New function.
5384 (_initialize_mi_interp): Add it to interp procs.
5385
659c9f3a
DE
53862012-06-28 Doug Evans <dje@google.com>
5387
a743abeb
DE
5388 * symtab.c (lookup_symbol_aux_objfile): Use
5389 ALL_OBJFILE_PRIMARY_SYMTABS.
5390
659c9f3a
DE
5391 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
5392
da2d6d3d
JK
53932012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5394
5395 * common/buffer.c: Include inttypes.h and stdint.h.
5396 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
5397
e5ef252a
PA
53982012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5399 Pedro Alves <palves@redhat.com>
5400
5401 * gdbthread.h (ALL_THREADS): New macro.
5402 (thread_list): Declare.
5403 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
5404 going, but instead fall through to the stepping handling.
5405 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
5406 the passed in signal. Adjust debug output.
5407 (resume_callback): Rename to ...
5408 (linux_nat_resume_callback): ... this. Pass the thread's last
5409 stop signal, if in "pass" state.
5410 (linux_nat_resume): Adjust to rename.
5411 (stop_wait_callback): New assertion. Don't respawn signals;
5412 instead let the LWP remain with SIGNALLED set.
5413 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
5414 * remote.c (append_pending_thread_resumptions): New.
5415 (remote_vcont_resume): Call it.
5416 * target.h (target_resume): Extend comment.
5417
1d7975eb
IS
54182012-06-28 Iain Sandoe <iain@codesourcery.com>
5419
5420 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
5421
2e3cf129
DE
54222012-06-27 Doug Evans <dje@google.com>
5423
5424 * dwarf2read.c (dwarf2_cu): Add ranges_base.
5425 Delete have_addr_base, unused. All uses updated.
5426 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
5427 (dwarf2_get_pc_bounds): Add ranges_base.
5428 (dwarf2_record_block_ranges): Ditto.
5429
1bb9788d
TT
54302012-06-27 Tom Tromey <tromey@redhat.com>
5431
5432 PR macros/7961:
5433 * varobj.c (varobj_create): Update.
5434 (varobj_set_value): Update.
5435 * tracepoint.c (validate_actionline): Update.
5436 (encode_actions_1): Update.
5437 * parse.c (parse_exp_1): Add 'pc' argument.
5438 (parse_exp_in_context): Add 'pc' argument. Change how
5439 expression_context_pc is set.
5440 (parse_expression): Update.
5441 (parse_field_expression): Update.
5442 * expression.h (parse_exp_1): Update.
5443 * eval.c (parse_to_comma_and_eval): Update.
5444 * breakpoint.c (set_breakpoint_condition): Update.
5445 (update_watchpoint): Update.
5446 (init_breakpoint_sal): Update
5447 (find_condition_and_thread): Update.
5448 (watch_command_1): Update.
5449 (update_breakpoint_locations): Update.
5450 * ada-lang.c (ada_read_renaming_var_value): Update.
5451 (create_excep_cond_exprs): Update.
5452
0bc3a05c
DE
54532012-06-27 Doug Evans <dje@google.com>
5454
5455 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
5456 type units.
5457
4bdcc0c1
DE
54582012-06-26 Doug Evans <dje@google.com>
5459
5460 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
5461 prototype.
5462 (error_check_comp_unit_head): New arg abbrev_section. All callers
5463 updated.
5464 (read_and_check_comp_unit_head): Ditto.
5465 (read_and_check_type_unit_head): Ditto.
5466
ee0bf529
SCR
54672012-06-26 Siva Chandra Reddy <sivachandra@google.com>
5468
5469 New attribute 'last' for gdb.Symtab_and_line.
5470 * NEWS (Python Scripting): Add entry about the new attribute.
5471 * python/py-symtab.c (salpy_get_last): New function which
5472 implements the get method for the 'last' attribute of
5473 gdb.Symtab_and_line.
5474 (sal_object_getset): Add entry for the 'last' attribute.
5475
1c658ad5
DE
54762012-06-26 Doug Evans <dje@google.com>
5477
09262596
DE
5478 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
5479 (dwo_sections): Add macinfo, macro.
5480 (dwarf2_locate_dwo_sections): Watch for macro sections.
5481 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
5482 All callers updated. Handle DWO files.
5483
45cfd468
DE
5484 * NEWS: Mention new options "set debug dwarf2-read" and
5485 "set debug symtab-create".
5486 * dwarf2read.c (dwarf2_read_debug): New static global.
5487 (dwarf2_build_psymtabs_hard): Add debugging printfs.
5488 (process_queue): Ditto.
5489 (process_full_comp_unit): Ditto.
5490 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
5491 * elfread.c (elf_symfile_read): Add debugging printf.
5492 * minsyms.c (install_minimal_symbols): Ditto.
5493 * psymtab.c (allocate_psymtab): Ditto.
5494 * symfile.c (allocate_symtab): Ditto.
5495 * symtab.c (symtab_create_debug): New global.
5496 (_initialize_symtab): Add new option "set debug symtab-create".
5497 * symtab.h (symtab_create_debug): Declare.
5498
1c658ad5
DE
5499 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
5500 (lookup_dwo_type_unit): Ditto.
5501
6fea9e18
L
55022012-06-26 Roland McGrath <roland@hack.frob.com>
5503 H.J. Lu <hongjiu.lu@intel.com>
5504
5505 * amd64-linux-nat.c: Include <sys/user.h>.
5506 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
5507 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
5508 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
5509
5510 * configure.ac: Check if the fs_base and gs_base members of
5511 `struct user_regs_struct' exist.
5512 * config.in: Regenerated.
5513 * configure: Likewise.
5514
adb4fe3b
ME
55152012-06-25 Michael Eager <eager@eagercon.com>
5516
5517 PR python/14291
f782ad9b 5518 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 5519
fc51cce1
MGD
55202012-06-25 Greta Yorsh <greta.yorsh@arm.com>
5521
5522 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
5523 register as a stack alignment in ARM mode.
5524
40a73391
JK
55252012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5526
5527 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
5528 * gnulib/config.in: Regenerate.
5529 * gnulib/configure: Likewise.
5530 * gnulib/import/m4/extensions.m4: Update it.
5531 * gnulib/import/m4/gnulib-common.m4: Likewise.
5532 * gnulib/import/m4/memmem.m4: Likewise.
5533 * gnulib/import/m4/mmap-anon.m4: Likewise.
5534 * gnulib/import/m4/multiarch.m4: Likewise.
5535 * gnulib/import/stdint.in.h: Likewise.
5536
972daa01
YQ
55372012-06-24 Yao Qi <yao@codesourcery.com>
5538
5539 * corefile.c (write_memory_with_notification): New.
5540 * gdbcore.h: Declare write_memory_with_notification.
5541 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
5542 'observer_notify_memory_changed' with 'write_memory_with_notification'.
5543 * valops.c (value_assign): Likewise.
5544 * python/py-inferior.c (infpy_write_memory): Call
5545 'write_memory_with_notification'.
5546
8d6e0714
JK
55472012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5548
5549 * cc-with-index.sh: Use also -ex "set auto-load no".
5550
156942c7
DE
55512012-06-23 Doug Evans <dje@google.com>
5552
5553 PR 14125
5554 * NEWS: Document additions to .gdb_index.
5555 * dwarf2read.c: #include "gdb/gdb-index.h".
5556 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
5557 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
5558 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
5559 (dwarf2_read_index): Recognize version 7.
5560 (dw2_do_expand_symtabs_matching): New args want_specific_block,
5561 block_kind, domain): All callers updated.
5562 (dw2_find_symbol_file): Handle new index CU values.
5563 (dw2_expand_symtabs_matching): Match symbol kind if requested.
5564 (add_index_entry): New args is_static, kind. All callers updated.
5565 (offset_type_compare, uniquify_cu_indices): New functions
5566 (symbol_kind): New function.
5567 (write_psymtabs_to_index): Remove duplicate CU values.
5568 (write_psymtabs_to_index): Write .gdb_index version 7.
5569
352b3eda
JB
55702012-06-22 Joel Brobecker <brobecker@adacore.com>
5571
5572 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
5573 * configure: Regenerate.
5574
2678e2af
YQ
55752012-06-20 Yao Qi <yao@codesourcery.com>
5576
5577 * python/py-inferior.c: Update comments of infpy_read_memory
5578 and infpy_write_memory.
5579
95c391b6
TT
55802012-06-19 Tom Tromey <tromey@redhat.com>
5581
5582 PR exp/9514:
5583 * parser-defs.h (insert_type, insert_type_address_space): Declare.
5584 (push_type_address_space): Remove.
5585 * parse.c (insert_into_type_stack): New function.
5586 (insert_type): Likewise.
5587 (insert_type_address_space): Rename from push_type_address_space.
5588 Insert tp_space_identifier.
5589 * c-exp.y (ptr_operator): New production.
5590 (abs_decl): Use ptr_operator.
5591 (space_identifier): Call insert_type_address_space.
5592 (ptype): Don't use const_or_volatile_or_space_identifier.
5593 (const_or_volatile_noopt): Call insert_type.
5594 (conversion_type_id, conversion_declarator): New productions.
5595 (operator): Use conversion_type_id.
5596
6ac9ef80
DE
55972012-06-18 Doug Evans <dje@google.com>
5598
422d65e7
DE
5599 * symtab.h (minimal_symbol): New member created_by_gdb.
5600 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
5601 created by gdb.
5602 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
5603 (search_symbols): Call it instead of lookup_symbol.
5604 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
5605
49f6c839
DE
5606 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
5607 Adjust address for DW_OP_GNU_addr_index.
5608 * dwarf2expr.h (dwarf_expr_context): Update comment.
5609 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
5610 all callers updated. Handle TLS vars described with
5611 DW_OP_GNU_const_index.
5612 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
5613 and DW_OP_GNU_const_index.
5614 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
5615
6ac9ef80
DE
5616 * block.c (find_block_in_blockvector): Make explicit the fact that we
5617 ignore GLOBAL_BLOCK.
5618
4cd18215
TT
56192012-06-18 Tom Tromey <tromey@redhat.com>
5620
5621 * c-exp.y (operator): Remove trailing space after "delete" and
5622 "delete[]".
5623
a9b8d892
JK
56242012-06-18 Mark Kettenis <kettenis@gnu.org>
5625 Jan Kratochvil <jan.kratochvil@redhat.com>
5626
5627 Switch i386 and derived targets to ON_STACK.
5628 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
5629 (amd64_dicos_init_abi): Remove its installment.
5630 * dicos-tdep.c (dicos_init_abi): Remove the
5631 set_gdbarch_call_dummy_location call. Update the comment here.
5632 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
5633 (i386_dicos_init_abi): Remove its installment.
5634 * i386-tdep.c (i386_push_dummy_code): New function.
5635 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
5636 i386_push_dummy_code.
5637
e2e4d78b
JK
56382012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5639
5640 Remove stale dummy frames.
5641 * breakpoint.c: Include dummy-frame.h.
5642 (longjmp_breakpoint_ops): New variable.
5643 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
5644 bp_longjmp_call_dummy.
5645 (bpstat_what, bptype_string, print_one_breakpoint_location)
5646 (init_bp_location): Support bp_longjmp_call_dummy.
5647 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
5648 (set_longjmp_breakpoint_for_call_dummy)
5649 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
5650 functions.
5651 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
5652 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
5653 FIXME comment and extend the other comment for bp_call_dummy.
5654 (set_longjmp_breakpoint_for_call_dummy)
5655 (check_longjmp_breakpoint_for_call_dummy): New declarations.
5656 * dummy-frame.c: Include gdbthread.h.
5657 (pop_dummy_frame_bpt): New function.
5658 (pop_dummy_frame): Call pop_dummy_frame_bpt.
5659 (dummy_frame_discard): New function.
5660 (cleanup_dummy_frames): Update the comment about longjmps.
5661 * dummy-frame.h (dummy_frame_discard): New declaration.
5662 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
5663 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
5664 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
5665 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
5666 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
5667 keep_going if IS_LONGJMP and there is no other reason to stop.
5668
09d5912c
TT
56692012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
5670
5671 * remote-sim.c (sim_command_completer): Initialize
5672 variable 'result'.
5673
1788b2d3
JK
56742012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5675
5676 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
5677 * dwarf2loc.c (call_site_parameter_matches): Support
5678 CALL_SITE_PARAMETER_PARAM_OFFSET.
5679 (needs_dwarf_reg_entry_value): Push stub value.
5680 * dwarf2read.c (read_call_site_scope): New variable origin. Support
5681 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
5682 * gdbtypes.h (enum call_site_parameter_kind): New item
5683 CALL_SITE_PARAMETER_PARAM_OFFSET.
5684 (struct call_site.parameter.u): New field param_offset.
5685
24c5c679
JK
56862012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5687
5688 Code cleanup: Generalize call_site.parameter key.
5689 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
5690 variable dwarf_reg. New variable kind_u. Update parameters to
5691 push_dwarf_reg_entry_value.
5692 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5693 * dwarf2expr.h (enum call_site_parameter_kind)
5694 (union call_site_parameter_u): Forward declarations.
5695 (struct dwarf_expr_context_funcs): Update parameters and their
5696 description for push_dwarf_reg_entry_value.
5697 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
5698 * dwarf2loc.c (call_site_parameter_matches): New function.
5699 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
5700 description. Use call_site_parameter_matches.
5701 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
5702 Update parameters and their description.
5703 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
5704 New variable kind_u. Adjust the caller for updated parameters.
5705 (needs_dwarf_reg_entry_value): Update parameters.
5706 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
5707 instead of attr. Update for the changed fields of struct
5708 call_site_parameter.
5709 * gdbtypes.h: Include dwarf2expr.h.
5710 (enum call_site_parameter_kind): New.
5711 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
5712 fb_offset into new union u.
5713
ac142d96
L
57142012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5715
5716 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
5717 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
5718 for x32.
5719
ba224c70
L
57202012-06-16 H.J. Lu <hongjiu.lu@intel.com>
5721
5722 * amd64-linux-nat.c (compat_x32_clock_t): New.
5723 (compat_x32_siginfo_t): Likewise.
5724 (compat_x32_siginfo_from_siginfo): Likewise.
5725 (siginfo_from_compat_x32_siginfo): Likewise.
5726 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
5727 and siginfo_from_compat_x32_siginfo for x32.
5728
7ecbc825
HZ
57292012-06-15 Hui Zhu <hui_zhu@mentor.com>
5730
5731 * tracepoint.c (tfile_xfer_partial): Add a lseek.
5732
233dfcf0
L
57332012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5734
5735 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
5736 instead of gdbarch_ptr_bit.
5737 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
5738 (amd64_supply_native_gregset): Likewise.
5739 (amd64_collect_native_gregset): Likewise.
5740 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
5741 (amd64_supply_xsave): Likewise.
5742 (amd64_collect_fxsave): Likewise.
5743 (amd64_collect_xsave): Likewise.
5744
6da38f42
L
57452012-06-15 H.J. Lu <hongjiu.lu@intel.com>
5746
5747 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
5748 (amd64_linux_read_description): Check DS segment register for
5749 x32 process.
5750
663b969e
TT
57512012-06-15 Tom Tromey <tromey@redhat.com>
5752
5753 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
5754 init_cutu_and_read_dies.
5755
d6f05027
IS
57562012-06-15 Iain Sandoe <iain@codesourcery.com>
5757
5758 * MAINTAINERS (Write After Approval): Add myself to the list.
5759
6598ed07
TT
57602012-06-15 Tom Tromey <tromey@redhat.com>
5761
5762 * valops.c (value_find_oload_method_list): Now static.
5763 * value.h (value_find_oload_method_list): Don't declare.
5764
2b214ea6
TT
57652012-06-15 Tom Tromey <tromey@redhat.com>
5766
5767 * valops.c (find_overload_match): Use value_ind.
5768
a210c238
MR
57692012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
5770
5771 * infrun.c (handle_inferior_event): Correct indentation.
5772
3771a44c
DE
57732012-06-14 Doug Evans <dje@google.com>
5774
5775 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
5776 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
5777 All uses updated.
5778 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
5779 updated. Handle DEBUG_LOC_START_LENGTH.
5780 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
5781 (loclist_describe_location): Ditto.
5782
1c5a993e
MR
57832012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
5784
5785 PR backtrace/13866
5786 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
5787 after hiding inline functions.
5788
0b155465
JB
57892012-06-13 Joel Brobecker <brobecker@adacore.com>
5790
5791 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
5792 _initialize_inf_ttrace.
5793
45717bac
JB
57942012-06-13 Joel Brobecker <brobecker@adacore.com>
5795
5796 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
5797 _initialize_hppa_hpux_nat.
5798
34370865
JB
57992012-06-13 Joel Brobecker <brobecker@adacore.com>
5800
5801 * remote-sim.c (sim_command_completer): Change type of return
5802 value to "VEC (char_ptr) *". Adjust implementation accordingly.
5803
284c5a60
MK
58042012-06-13 Mark Kettenis <kettenis@gnu.org>
5805 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 PR tdep/14222
5808 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
5809 stack on a 16-byte boundary.
5810
2535757a
TT
58112012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
5812
5813 * jit.c (finalize_symtab): Set function's return type to 'void' by
5814 default.
5815
fff4548b
MK
58162012-06-13 Mark Kettenis <kettenis@gnu.org>
5817 H.J. Lu <hongjiu.lu@intel.com>
5818
5a83521a
MK
5819 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
5820 Move bits common to both the classic LP64 and the new x32 ILP32
5821 ABI here.
5822 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
5823 (amd64_x32_linux_init_abi): New function.
5824 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
5825 subtype.
5826
fff4548b
MK
5827 * i386-tdep.h (i386_pseudo_register_name): New prototype.
5828 * i386-tdep.c (i386_pseudo_register_name): Make public.
5829 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
5830 * amd64-tdep.c (amd64_dword_names): Add "eip".
5831 (amd64_x32_pseudo_register_type): New function
5832 (amd64_x32_init_abi): New function.
5833
dd80ea3c
JK
58342012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5835
5836 PR build/14003
5837 * inferior.h (struct inferior_suspend_state): Comment out.
5838 (struct inferior): Comment out the field suspend.
5839 * infrun.c (struct infcall_suspend_state): Comment out the field
5840 inferior_suspend.
5841 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5842 out its assignment.
5843
50af5481
JK
58442012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5845
5846 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5847 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5848 function comment. Return ERROR for unresolved cases. Implement
5849 returning proper NAME.
5850 (yylex): Accept also NAME from classify_inner_name.
5851 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5852 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5853 LOC_TYPEDEF type.
5854 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5855
d55637df
TT
58562012-06-13 Tom Tromey <tromey@redhat.com>
5857
5858 * breakpoint.c (condition_completer): New function.
5859 (_initialize_breakpoint): Use it.
5860 * value.c (complete_internalvar): New function.
5861 * value.h (complete_internalvar): Declare.
5862
49c4e619
TT
58632012-06-13 Tom Tromey <tromey@redhat.com>
5864
5865 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5866 * breakpoint.c (catch_syscall_completer): Return a VEC.
5867 * cli/cli-cmds.c (complete_command): Update.
5868 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5869 (complete_on_enum): Likewise.
5870 * command.h: Include gdb_vecs.h.
5871 (completer_ftype): Change return type.
5872 (complete_on_cmdlist, complete_on_enum): Likewise.
5873 * completer.c (noop_completer, filename_completer)
5874 (location_completer): Return a VEC.
5875 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5876 to a VEC.
5877 (expression_completer, complete_line_internal, complete_line)
5878 (command_completer): Return a VEC.
5879 (gdb_completion_word_break_characters, line_completion_function):
5880 Update.
5881 * completer.h: Include gdb_vecs.h.
5882 (complete_line, noop_completer, filename_completer)
5883 (expression_completer, location_completer, command_completer):
5884 Update.
5885 * f-lang.c (f_word_break_characters): Return a VEC.
5886 * interps.c (interpreter_completer): Return a VEC.
5887 * language.h (struct language_defn)
5888 <la_make_symbol_completion_list>: Return a VEC.
5889 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5890 * symtab.c (free_completion_list): Take a VEC.
5891 (return_val_size, return_val_index): Remove.
5892 (return_val): Now a VEC.
5893 (completion_list_add_name): Update.
5894 (default_make_symbol_completion_list_break_on)
5895 (default_make_symbol_completion_list, make_symbol_completion_list)
5896 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5897 Return a VEC.
5898 (add_filename_to_list): Update.
5899 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5900 <list>: Now a VEC.
5901 (maybe_add_partial_symtab_filename): Update.
5902 (make_source_files_completion_list): Return a VEC.
5903 * symtab.h (default_make_symbol_completion_list_break_on)
5904 (default_make_symbol_completion_list, make_symbol_completion_list)
5905 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5906 (make_source_files_completion_list): Update.
5907
625e8578
TT
59082012-06-13 Tom Tromey <tromey@redhat.com>
5909
5910 * breakpoint.c (add_catch_command): Use completer_ftype.
5911 * breakpoint.h: Include command.h.
5912 (add_catch_command): Use completer_ftype.
5913 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5914 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5915 Use completer_ftype.
5916 * command.h (completer_ftype): New typedef.
5917 (set_cmd_completer): Use it.
5918 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5919 completer_ftype.
5920
5eb3b062
PA
59212012-06-13 Pedro Alves <palves@redhat.com>
5922
5923 Partial revert of previous change.
5924
5925 * serial.c (scb_base): New global.
5926 (serial_for_fd): New.
5927 (serial_open, serial_fdopen_ops): Link new serial in open serials
5928 chain.
5929 (do_serial_close): Unlink serial from the open serials chain.
5930
8b3ee56d
PA
59312012-06-12 Pedro Alves <palves@redhat.com>
5932
5933 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5934 threads here.
5935 (prepare_for_detach): No longer context switch here in non-stop
5936 mode.
5937 (fetch_inferior_event): Ditto.
5938 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5939 to the event thread before removing breakpoints. Switch to the
5940 event thread before inserting breakpoints and resuming.
5941 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5942 event thread before resuming.
5943 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5944 Switch to the event thread before removing breakpoints.
5945
5d60742e
EZ
59462012-06-12 Eli Zaretskii <eliz@gnu.org>
5947
5948 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5949 special characters correctly for the Windows shells. See
5950 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5951 report.
5952 [!__MINGW32__]: Remove extra double quote character from special
5953 characters.
5954
a6feecf7
SS
59552012-06-11 Stan Shebs <stan@codesourcery.com>
5956
5957 * ui-out.h: Remove #if 0 declarations.
5958 * ui-out.c: Remove #if 0 functions.
5959
ddefb60f
PA
59602012-06-11 Pedro Alves <palves@redhat.com>
5961
5962 * ser-base.c (run_async_handler_and_reschedule): New.
5963 (fd_event, push_event): Use it.
5964 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5965 reference count to 1.
5966 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5967 instead of xfree.
5968 (serial_is_open, serial_ref, serial_unref): New.
5969 * serial.h (serial_open): Adjust comment.
5970 (serial_is_open): Declare.
5971 (serial_close): Adjust comment.
5972 (serial_ref, serial_unref) Declare.
5973 (struct serial): New field 'refcnt'.
5974
d5ad6aa5
PA
59752012-06-11 Pedro Alves <palves@redhat.com>
5976
5977 Remove #if 0'd "connect" command, and unnecessary associated
5978 refcounting and serial reuse bits.
5979
5980 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5981 * serial.c (last_serial_opened): Delete.
5982 (scb_base): Delete.
5983 (serial_open): Adjust.
5984 (serial_for_fd): Delete.
5985 (serial_fdopen_ops, do_serial_close): Adjust.
5986 (serial_fdopen_ops): Adjust.
5987
318aa544
PA
59882012-06-11 Pedro Alves <palves@redhat.com>
5989
5990 * serial.c (do_serial_close): Remove early return when SCB is
5991 null.
5992
07261596
TT
59932012-06-11 Tom Tromey <tromey@redhat.com>
5994
5995 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5996
cc80f267
JK
59972012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5998
5999 Fix regression by the "ambiguous linespec" series.
6000 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
6001 get_last_displayed_symtab and get_last_displayed_line and depending
6002 on CURSAL.
6003
356d9f9d
TT
60042012-06-11 Tom Tromey <tromey@redhat.com>
6005
6006 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
6007 (dw2_find_symbol_file): Use it.
6008
232b8704
ME
60092012-06-11 Michael Eager <eager@eagercon.com>
6010
6011 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
6012 * mips-linux-tdep.h (mips_signals): New
6013
e81a37f7
TT
60142012-06-11 Tom Tromey <tromey@redhat.com>
6015
6016 * infrun.c (handle_inferior_event)
6017 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
6018 breakpoint.
6019 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
6020 exception logic in all cases. Update comments.
6021 (insert_longjmp_resume_breakpoint): Set the exception resume
6022 breakpoint.
6023
2e81047f
MR
60242012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
6025
6026 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
6027
4e32eda7
SCR
60282012-06-09 Siva Chandra Reddy <sivachandra@google.com>
6029
6030 * valarith.c (binop_types_user_defined_p): Fix a typo.
6031
18648a37 60322012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 6033 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
6034
6035 * arch-utils.c (default_return_in_first_hidden_param_p): New.
6036 * arch-utils.h: Declare.
6037 * gdbarch.sh: Add return_in_first_hidden_param_p.
6038 * gdbarch.c, gdbarch.h: Regenerated.
6039 * infcall.c (call_function_by_hand): Call
6040 gdbarch_return_in_first_hidden_param_p instead of
6041 language_pass_by_reference.
6042
6043 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
6044 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
6045 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
6046 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
6047 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
6048 `cplus_return_struct_by_reference'.
6049 (tic6x_return_value): Handle language cplusplus.
6050 (tic6x_return_in_first_hidden_param_p): New.
6051 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
6052
034e5797
DE
60532012-06-07 Doug Evans <dje@google.com>
6054
6055 * dwarf2read.c (dwarf2_cu): Add comment.
6056
6a00aa1e
MR
60572012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6058
6059 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
6060 variable.
6061 (mips_eabi_push_dummy_call): Likewise.
6062 (mips_n32n64_push_dummy_call): Likewise.
6063 (mips_o32_push_dummy_call): Likewise.
6064 (mips_o64_push_dummy_call): Likewise.
6065
eaa05d59
MR
60662012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6067
6068 * mips-tdep.c (mips_convert_register_p): Correct coding style.
6069
de13fcf2
MR
60702012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
6071
6072 * mips-tdep.c (mips_pseudo_register_type): Use
6073 mips_float_register_p.
6074
c3a01a22
PA
60752012-06-06 Pedro Alves <palves@redhat.com>
6076
6077 * infrun.c (handle_inferior_event): Remove calls to
6078 reinit_frame_cache that follow a context_switch call.
6079
d25f45d9
PA
60802012-06-06 Pedro Alves <palves@redhat.com>
6081
6082 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
6083 context_switch and remove stale comment.
6084
359f5fe6
PA
60852012-06-06 Pedro Alves <palves@redhat.com>
6086
6087 * infrun.c (struct execution_control_state): Remove
6088 `new_thread_event' field.
6089 (handle_inferior_event): Simplify new threads handling; don't
6090 resume the inferior if we find a new thread.
6091
2d4c29c5
TS
60922012-06-06 Thomas Schwinge <thomas@codesourcery.com>
6093
6094 * NEWS: Document the deprecation of SH's 'regs' command.
6095 * inferior.h (all_registers_info): Add function declaration.
6096 * sh-tdep.c (sh_show_regs): Remove variable.
6097 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
6098 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
6099 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
6100 (sh_show_regs_command): Remove functions.
6101 (sh_gdbarch_init): Don't set sh_show_regs.
6102 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
6103 'info all-registers'.
6104 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
6105 (sh64_show_regs): Remove functions.
6106 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
6107
f5f1cdb6
JK
61082012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6109
6110 * configure.ac: Move development=true below AC_INIT.
6111 * configure: Regenerate.
6112
bf6309af
SS
61132012-06-05 Stan Shebs <stan@codesourcery.com>
6114
6115 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
6116 gdb_stdout.
6117
45aa4659
JK
61182012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
6119
6120 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
6121 argument as ssize_t.
6122 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
6123 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
6124 * target.c (target_read_stack, target_write_memory)
6125 (target_write_raw_memory): Likewise.
6126 * target.h (target_read_stack, target_write_memory)
6127 (target_write_raw_memory): Likewise.
6128
1b162304
JK
61292012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6130
6131 * symfile-mem.c: Change gdb_static_assert to ssize_t.
6132 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
6133 * target.c (target_read_memory): Change LEN to ssize_t.
6134 * target.h (target_read_memory): Change LEN to ssize_t.
6135
8556afb4
PA
61362012-06-05 Pedro Alves <palves@redhat.com>
6137
6138 PR backtrace/13866
6139
6140 * breakpoint.c (until_break_command): Only fetch the selected
6141 frame after decode_line_1.
6142
fb139f32
PA
61432012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
6144
6145 * solib-svr4.c (enable_break): Don't fallback to setting the solib
6146 event breakpoint at _start, __start or main if a program
6147 interpreter is not found.
6148
a8e1bb34
JB
61492012-06-05 Joel Brobecker <brobecker@adacore.com>
6150
6151 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
6152 Add declaration.
6153 * windows-tdep.c: #include "objfiles.h".
6154 (windows_iterate_over_objfiles_in_search_order): New function.
6155 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
6156 iterate_over_objfiles_in_search_order gdbarch method to
6157 windows_iterate_over_objfiles_in_search_order.
6158 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
6159
19630284
JB
61602012-06-05 Joel Brobecker <brobecker@adacore.com>
6161
6162 * gdbarch.sh: Add generation of
6163 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
6164 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
6165 (iterate_over_objfiles_in_search_order): New gdbarch method.
6166 * gdbarch.h, gdbarch.c: Regenerate.
6167 * objfiles.h (default_iterate_over_objfiles_in_search_order):
6168 Add declaration.
6169 * objfiles.c (default_iterate_over_objfiles_in_search_order):
6170 New function.
6171 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6172 out of lookup_symbol_aux_symtabs.
6173 (lookup_symbol_aux_symtabs): Replace extracted-out code by
6174 call to lookup_symbol_aux_objfile.
6175 (struct global_sym_lookup_data): New type.
6176 (lookup_symbol_global_iterator_cb): New function.
6177 (lookup_symbol_global): Search for symbol using
6178 gdbarch_iterate_over_objfiles_in_search_order and
6179 lookup_symbol_global_iterator_cb.
6180 * findvar.c (struct minsym_lookup_data): New type.
6181 (minsym_lookup_iterator_cb): New function.
6182 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
6183 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
6184 and minsym_lookup_iterator_cb.
6185
67ff19f7
JB
61862012-06-05 Joel Brobecker <brobecker@adacore.com>
6187
6188 Revert the following patch:
6189 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6190 try locating the symbol in the symbol's own objfile first, before
6191 extending the search to all objfiles.
6192 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6193 out of lookup_symbol_aux_symtabs.
6194 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6195 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6196 Do not search EXCLUDE_OBJFILE.
6197 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6198 (lookup_symbol_global): Search for matches in the block's objfile
6199 first, before searching all other objfiles.
6200
ccab2054
JB
62012012-06-05 Joel Brobecker <brobecker@adacore.com>
6202
6203 * breakpoint.c (find_condition_and_thread): Stop parsing
6204 as soon as the first invalid keyword is found.
6205
e23d4a9c
JB
62062012-06-05 Joel Brobecker <brobecker@adacore.com>
6207
6208 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
6209
70160166
JB
62102012-06-05 Joel Brobecker <brobecker@adacore.com>
6211
6212 * config/djgpp/djcheck.sh: Add copyright header.
6213
399501a5
JB
62142012-06-05 Joel Brobecker <brobecker@adacore.com>
6215
6216 * copyright.py (update_files, main): Fix path to update-copyright
6217 script.
6218
3770a159
JB
62192012-06-05 Joel Brobecker <brobecker@adacore.com>
6220
6221 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
6222 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
6223 for which a reminder to update by hand is printed.
6224
4aad0dfc
DE
62252012-06-04 Doug Evans <dje@google.com>
6226
6227 * buildsym.c (make_blockvector): Add comment.
6228
1f8cf220
PA
62292012-06-04 Pedro Alves <palves@redhat.com>
6230
6231 * arch-utils.c (default_gdb_signal_from_target): Delete.
6232 * arch-utils.h (default_gdb_signal_from_target): Delete.
6233 * corelow.c (core_open) <signal mapping>: Extended comment. Check
6234 gdbarch_gdb_signal_from_target_p.
6235 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
6236 predicate).
6237 * gdbarch.h: Regenerate.
6238 * gdbarch.c: Regenerate.
6239
86b49880
PA
62402012-06-04 Pedro Alves <palves@redhat.com>
6241
6242 * gdbarch.sh (gdb_signal_from_target): Mention that the
6243 implementation of the method must be host independent.
6244 * gdbarch.h: Regenerate.
6245
fe78531d
JK
62462012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6247
6248 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
6249 parameters.
6250 (target_read_memory_bfd): New function.
6251 (symbol_file_add_from_memory): Use it.
6252
d790cf0a
DE
62532012-06-03 Doug Evans <dje@google.com>
6254
78e5175a
DE
6255 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
6256 of primary symtab.
6257 (basic_lookup_transparent_type): Ditto.
6258
d790cf0a
DE
6259 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
6260 (ALL_PRIMARY_SYMTABS): Use it.
6261 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
6262 * dwarf2read.c (dw2_find_symbol_file): Ditto.
6263 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
6264 * symtab.c (lookup_symbol_aux_objfile): Ditto.
6265 (basic_lookup_transparent_type): Ditto.
6266
c6e5ee5e
SDJ
62672012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
6268
6269 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
6270 it to optimize resolution of demangled name.
6271
a68ffae9
JK
62722012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6273
6274 * configure.ac (development): Define new variable.
6275 Call AC_CHECK_LIB for mcheck if $development.
6276 (ERROR_ON_WARNING): Enable it by default only if $development.
6277 * config.in: Regenerate.
6278 * configure: Regenerate.
6279
5299c1c4
JK
62802012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
6281
6282 * target.c (target_read_memory): Make LEN argument as size_t.
6283 * target.h (target_read_memory): Likewise.
6284
62852012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
6286
6287 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
6288
0c56f59b
EBM
62892012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
6290
6291 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
6292 BookE interface for PowerPC server processors if not available
6293 in the Linux Kernel.
6294
71bdabee
KS
62952012-05-31 Keith Seitz <keiths@redhat.com>
6296
6297 * linespec.c (decode_objc): Add cleanup to free
6298 INFO.FILE_SYMTABS.
6299 (find_linespec_symbols): Add cleanup to free CLASSES.
6300 * symfile.c (find_separate_debug_file_by_debuglink): Add
6301 cleanup to free DEBUGLINK.
6302 * ui-out.c (clear_header_list): No need to check if
6303 HEADER_NEXT.COLHDR is NULL.
6304 Free HEADER_NEXT.COL_NAME.
6305
acbd605d
MGD
63062012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
6307
6308 * ada-lang.c (standard_lookup): Prevent uninitialized variable
6309 warning.
6310
65662cde
PA
63112012-05-30 Jeff Kenton <jkenton@tilera.com>
6312
6313 * configure.host (gdb_host_cpu): Handle tilegx*.
6314 (gdb_host): Handle tilegx-*-linux*.
6315 * tilegx-linux-nat.c: New file.
6316 * config/tilegx/linux.mh: New file.
6317
ade64f0e
PA
63182012-05-30 Jeff Kenton <jkenton@tilera.com>
6319
6320 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
6321 tilegx-linux-tdep.o.
6322 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
6323 tilegx-linux-tdep.c.
6324 * configure.tgt: Handle tilegx-*-linux*.
6325 * tilegx-tdep.h: New file.
6326 * tilegx-tdep.c: New file.
6327 * tilegx-linux-tdep.c: New file.
6328 * regformats/reg-tilegx.dat: New file.
6329
bb08bdbd
EBM
63302012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
6331
6332 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
6333 accounting of hw watchpoints on ppc.
6334
ebd86fb5
TJB
63352012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
6336
6337 * source.c (openp): Expand tilde in path entries.
6338
0a0edcd5
DE
63392012-05-29 Doug Evans <dje@google.com>
6340
98cc87bd
DE
6341 * buildsym.c (block_compar): Fix comment.
6342 (end_symtab): Fix and clarify some comments.
6343
0a0edcd5
DE
6344 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
6345 cleanup_undefined_types.
6346 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
6347 All callers updated.
6348
6f0c7050
TT
63492012-05-29 Tom Tromey <tromey@redhat.com>
6350
6351 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
6352 fails.
6353 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
6354 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
6355 fails.
6356 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
6357 fails.
6358
ec95993c
TG
63592012-05-29 Tristan Gingold <gingold@adacore.com>
6360
6361 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
6362 (struct darwin_info): ... New struct.
6363 (solib_darwin_pspace_data): New variable.
6364 (darwin_pspace_data_cleanup): New function.
6365 (get_darwin_info): Likewise.
6366 (darwin_dyld_version_ok, darwin_load_image_infos)
6367 (darwin_solib_get_all_image_info_addr_at_init)
6368 (darwin_solib_read_all_image_info_addr): Add info argument.
6369 Adjust code.
6370 (darwin_current_sos): Use per pspace structure.
6371 (darwin_solib_create_inferior_hook): Likewise.
6372 (darwin_clear_solib): Likewise.
6373 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
6374
ae25568b
PA
63752012-05-28 Pedro Alves <palves@redhat.com>
6376
6377 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
6378 block that uses them. Clear ecss before handling each event.
6379
0c5bf5a9
JK
63802012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6381
6382 * solib-svr4.c (svr4_current_sos): New comment on
6383 svr4_current_sos_via_xfer_libraries fall back.
6384
bfb05775
JK
63852012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6386
6387 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
6388 it as a fallback for TYPE_IS_OPAQUE.
6389 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
6390 symbols for lookup_symbol.
6391
685b1105
JK
63922012-05-24 John Steele Scott <toojays@toojays.net>
6393
6394 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
6395 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
6396 (producer_is_gxx_lt_4_6): Move the checking and caching to...
6397 (check_producer): ... this new function, which also checks for ICC
6398 and caches the result.
6399 (producer_is_icc): New function.
6400 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
6401 producer was ICC.
6402
22203bbf
PA
64032012-05-24 Pedro Alves <palves@redhat.com>
6404
6405 PR gdb/7205
6406
6407 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
6408 (default_gdb_signal_to_target): ... this. Add comment.
6409 (default_gdb_signal_from_host): Rename to ...
6410 (default_gdb_signal_from_target): ... this. Add comment.
6411 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
6412 (default_gdb_signal_to_target): ... this.
6413 (default_gdb_signal_from_host): Rename to ...
6414 (default_gdb_signal_from_target): ... this.
6415 * corelow.c (core_open): Adjust to naming change. Replace comment.
6416 * gdbarch.sh (gdb_signal_from_host): Rename to ...
6417 (gdb_signal_from_target): ... this. Adjust to
6418 default_gdb_signal_from_host naming change. Extend comment.
6419 (gdb_signal_to_host): Rename to ...
6420 (gdb_signal_to_target): ... this. Adjust to
6421 default_gdb_signal_to_host naming change.
6422 * gdbarch.h, gdbarch.c: Renegerate.
6423
a493e3e2
PA
64242012-05-24 Pedro Alves <palves@redhat.com>
6425
6426 PR gdb/7205
6427
f782ad9b 6428 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 6429
2ea28649
PA
64302012-05-24 Pedro Alves <palves@redhat.com>
6431
6432 PR gdb/7205
6433
6434 Replace target_signal with gdb_signal throughout.
6435
b09846a9
PA
64362012-05-24 Pedro Alves <palves@redhat.com>
6437
6438 PR tui/14159
6439
6440 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
6441 string, instead of reusing the va_list argument.
6442
e77c107e
TT
64432012-05-24 Tom Tromey <tromey@redhat.com>
6444
6445 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
6446 Remove.
6447
9fccedf7
DE
64482012-05-23 Doug Evans <dje@google.com>
6449
d50bd42b
DE
6450 * symtab.c (search_symbols): Formatting fixes.
6451 (print_symbol_info): Formatting fixes.
6452
9fccedf7
DE
6453 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
6454 int64_t change to leb128 API.
6455 (read_encoded_value, decode_frame_entry_1): Ditto.
6456 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
6457 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
6458 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6459 (execute_stack_op): Ditto.
6460 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
6461 (safe_read_uleb128, safe_read_sleb128): Ditto.
6462 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
6463 (dwarf2_compile_expr_to_ax): Ditto.
6464 (locexpr_describe_location_piece): Ditto.
6465 (disassemble_dwarf_expression): Ditto.
6466 (locexpr_describe_location_1): Ditto.
6467
f3e0e960
SS
64682012-05-23 Stan Shebs <stan@codesourcery.com>
6469 Kwok Cheung Yeung <kcy@codesourcery.com>
6470
6471 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
6472 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
6473 (mi-cmd-info.o): New rule.
6474 * osdata.h (info_osdata_command): New declaration.
6475 * osdata.c (info_osdata_command): Change to non-static.
6476 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
6477 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
6478 * mi/mi-cmd-info.c: New file.
6479
c51fe631
DE
64802012-05-23 Doug Evans <dje@google.com>
6481
71cddcc1
DE
6482 * symtab.c (search_symbols): Pass NULL for file_matcher to
6483 expand_symtabs_matching if there are no files to match.
6484
c51fe631
DE
6485 * gdbtypes.c (lookup_typename): Simplify.
6486
a79378d4
PA
64872012-05-23 Pedro Alves <palves@redhat.com>
6488
6489 * arch-utils.h (default_target_signal_to_host): Delete.
6490 * arch-utils.c (default_target_signal_to_host): Delete.
6491 * gdbarch.sh (target_signal_to_host): Remove.
6492 * gdbarch.h, gdbarch.c: Regenerate.
6493
f664829e
DE
64942012-05-22 Doug Evans <dje@google.com>
6495
6496 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
6497 "const gdb_byte *".
6498 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
6499 (execute_cfa_program): Update to match API of leb128 functions.
6500 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
6501 "const gdb_byte *".
6502 (read_unsigned_leb128, read_signed_leb128): Delete.
6503 (read_initial_length): Change type of buf argument to
6504 "const gdb_byte *".
6505 (read_encoded_value): Update to match API of leb128 functions.
6506 (decode_frame_entry): Change result to "const gdb_byte *", and
6507 similarly for "start" parameter.
6508 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
6509 (dwarf2_build_frame_info): Change local frame_ptr to
6510 "const gdb_byte *".
6511 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
6512 read_uleb128, read_sleb128. All callers updated.
6513 (safe_skip_leb128): New function.
6514 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
6515 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
6516 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
6517 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
6518 read_uleb128, read_sleb128.
6519 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
6520 (execute_stack_op): Update to match API of leb128 functions.
6521 * dwarf2expr.h: #include "leb128.h".
6522 (read_uleb128, read_sleb128): Delete.
6523 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
6524 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
6525 * dwarf2loc.c (debug_loc_kind): New enum.
6526 (decode_debug_loc_addresses): New function.
6527 (decode_debug_loc_dwo_addresses): New function.
6528 (dwarf2_find_location_expression): Rewrite.
6529 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
6530 (locexpr_describe_location_piece): Ditto.
6531 (disassemble_dwarf_expression): Ditto.
6532 (locexpr_describe_location_1): Ditto.
6533 (loclist_describe_location): Rewrite.
6534 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
6535 * dwarf2read.c (die_reader_specs): New member "buffer_end".
6536 (dwarf2_section_buffer_overflow_complaint): Renamed from
6537 dwarf2_macros_too_long_complaint. All callers updated.
6538 (skip_leb128): Delete.
6539 (init_cu_die_reader): Initialize reader->buffer_end.
6540 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
6541 (skip_form_bytes): New arg buffer_end. All callers updated.
6542 Replace call to skip_leb128 with gdb_skip_leb128.
6543 (skip_unknown_opcode): New arg mac_end. All callers updated.
6544 (fill_in_loclist_baton): Initialize baton->from_dwo.
6545
837a1b32
MR
65462012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6547
6548 * mips-linux-nat.c (mips_linux_read_description): Use a more
6549 verbose error message.
6550
d0e64392
MR
65512012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
6552
6553 * NEWS: Add MIPS/Linux DSP support.
6554 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
6555 (SIGCONTEXT_DSPCTL): New macro.
6556 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
6557 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
6558 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
6559 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
6560 (N64_SIGCONTEXT_HI3): Likewise.
6561 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
6562 (N64_SIGCONTEXT_LO3): Likewise.
6563 (N64_SIGCONTEXT_DSPCTL): Likewise.
6564 (N64_SIGCONTEXT_FPCSR): Clarify definition.
6565 (mips_linux_o32_sigframe_init): Handle DSP registers.
6566 (mips_linux_n32n64_sigframe_init): Likewise.
6567
8bea7ed1
PM
65682012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6569
6570 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
6571 call to abort.
6572
dab06dbe
PA
65732012-05-22 Pedro Alves <palves@redhat.com>
6574
6575 * target.h (store_waitstatus): Move declaration ...
6576 * inf-child.h (store_waitstatus): ... here.
6577 * target.c: Move inclusion of gdb_wait.h, and ...
6578 (store_waitstatus): ... this ...
6579 * inf-child.c: ... here.
6580 * linux-nat.c: Include inf-child.h.
6581 * rs6000-nat.c: Include inf-child.h.
6582 * spu-linux-nat.c: Include inf-child.h.
6583
43011e52
PM
65842012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
6585
6586 * tracepoint.c (start_tracing): Add missing i18n markup.
6587 (stop_tracing, set_trace_user): Ditto.
6588 (set_trace_notes, set_trace_stop_notes): Ditto.
6589
b1af9e97
TT
65902012-05-21 Tom Tromey <tromey@redhat.com>
6591
6592 PR c++/7173:
6593 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
6594 types.
6595 * value.h (value_cast_pointers): Update.
6596 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
6597 (value_cast): Update.
6598 (update_search_result): New function.
6599 (do_search_struct_field): New, from search_struct_field. Check
6600 for ambiguous results.
6601 (search_struct_field): Rewrite.
6602 * infcall.c (value_arg_coerce): Update.
6603 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
6604 value_cast_pointers.
6605 * ada-lang.c (ada_convert_actual): Update.
6606
e9e5e6b3
TT
66072012-05-21 Tom Tromey <tromey@redhat.com>
6608
6609 * macroexp.c (macro_stringify): Terminate the string.
6610
1564a261
JK
66112012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
6612
6613 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
6614 Describe it.
6615 * auto-load.c (auto_load_expand_dir_vars): New function.
6616 (auto_load_safe_path_vec_update): Use it, remove the
6617 substitute_path_component call thanks to it.
6618 (auto_load_objfile_script): Remove the debug_file_directory processing.
6619 Use auto_load_expand_dir_vars, remove the substitute_path_component
6620 call thanks to it.
6621 * configure: Regenerate.
6622 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
6623 path. Escape $ also for $debugdir.
6624 (--with_auto_load_safe_path): Escape $ also for $debugdir.
6625 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
6626
a3ec0bb1
DE
66272012-05-20 Doug Evans <dje@google.com>
6628
6629 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
6630 before use. Check for symtab->includes == NULL before scanning it.
6631
d467df4e
MR
66322012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6633
6634 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
6635
4cc0665f
MR
66362012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6637
6638 * NEWS: Add microMIPS support and "set mips compression",
6639 "show mips compression" commands.
6640 * mips-tdep.h (mips_isa): New enum.
6641 (gdbarch_tdep): Add mips_isa.
6642 (mips_pc_is_mips16): Update prototype.
6643 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
6644 * mips-tdep.c (mips_compression_mips16): New variable.
6645 (mips_compression_micromips): Likewise.
6646 (mips_compression_strings): Likewise.
6647 (mips_compression_string): Likewise.
6648 (is_mips16_isa, is_micromips_isa): New functions.
6649 (is_mips16_addr): Rename to...
6650 (is_compact_addr): ... this.
6651 (unmake_mips16_addr): Likewise to...
6652 (unmake_compact_addr): ... this.
6653 (make_mips16_addr): Likewise to...
6654 (make_compact_addr): ... this.
6655 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
6656 functions.
6657 (mips_elf_make_msymbol_special): Handle microMIPS code.
6658 (msymbol_is_special): Rename to...
6659 (msymbol_is_mips16): ... this.
6660 (mips_make_symbol_special, mips_pc_is_mips16): Update
6661 accordingly.
6662 (msymbol_is_mips, msymbol_is_micromips): New functions.
6663 (mips16_to_32_reg): Rename to...
6664 (mips_reg3_to_reg): ... this.
6665 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
6666 (mips_pc_isa): Likewise.
6667 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
6668 code.
6669 (mips_fetch_instruction): Pass return status instead of printing
6670 an error message if requested. Handle microMIPS code. Bail out
6671 on an invalid ISA.
6672 (micromips_op): New macro.
6673 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
6674 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
6675 (b6s4_op, b7s3_reg): Likewise.
6676 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
6677 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
6678 (mips_insn_size): New function.
6679 (mips32_next_pc): Update mips_fetch_instruction call.
6680 (micromips_relative_offset7): New function.
6681 (micromips_relative_offset10): Likewise.
6682 (micromips_relative_offset16): Likewise.
6683 (micromips_pc_insn_size): Likewise.
6684 (micromips_bc1_pc): Likewise.
6685 (micromips_next_pc): Likewise.
6686 (unpack_mips16): Update mips_fetch_instruction call.
6687 (extended_mips16_next_pc): Update according to change to
6688 mips16_to_32_reg.
6689 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
6690 code.
6691 (mips16_scan_prologue): Update mips_fetch_instruction call.
6692 Update according to change to mips16_to_32_reg.
6693 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
6694 (mips_insn16_frame_base_sniffer): Likewise.
6695 (micromips_decode_imm9): New function.
6696 (micromips_scan_prologue): Likewise.
6697 (mips_micro_frame_cache): Likewise.
6698 (mips_micro_frame_this_id): Likewise.
6699 (mips_micro_frame_prev_register): Likewise.
6700 (mips_micro_frame_sniffer): Likewise.
6701 (mips_micro_frame_unwind): New variable.
6702 (mips_micro_frame_base_address): New function.
6703 (mips_micro_frame_base): New variable.
6704 (mips_micro_frame_base_sniffer): New function.
6705 (mips32_scan_prologue): Update mips_fetch_instruction call.
6706 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
6707 rather than for MIPS16.
6708 (mips_insn32_frame_base_sniffer): Likewise.
6709 (mips_addr_bits_remove): Handle microMIPS code.
6710 (deal_with_atomic_sequence): Rename to...
6711 (mips_deal_with_atomic_sequence): ... this. Update the type
6712 of the variable used to hold an instruction. Remove the ISA bit
6713 check. Update mips_fetch_instruction call.
6714 (micromips_deal_with_atomic_sequence): New function.
6715 (deal_with_atomic_sequence): Likewise.
6716 (mips_about_to_return): Handle microMIPS code. Update
6717 mips_fetch_instruction call.
6718 (heuristic_proc_start): Check for the standard MIPS ISA rather
6719 than for MIPS16. Update mips_pc_is_mips16 and
6720 mips_fetch_instruction calls. Handle microMIPS code.
6721 (mips_push_dummy_code): Handle microMIPS code.
6722 (mips_eabi_push_dummy_call): Likewise.
6723 (mips_o32_return_value): Update mips_pc_is_mips16 call.
6724 (mips_o64_push_dummy_call): Handle microMIPS code.
6725 (mips_o64_return_value): Update mips_pc_is_mips16 call.
6726 (is_delayed): Remove function.
6727 (mips_single_step_through_delay): Replace the call to is_delayed
6728 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
6729 Handle microMIPS code.
6730 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
6731 microMIPS code.
6732 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
6733 call.
6734 (micromips_in_function_epilogue_p): New function.
6735 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
6736 call.
6737 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
6738 Handle microMIPS.
6739 (gdb_print_insn_mips): Likewise.
6740 (mips_breakpoint_from_pc): Likewise.
6741 (mips_remote_breakpoint_from_pc): New function.
6742 (mips32_instruction_has_delay_slot): Simplify making use of the
6743 updated mips_fetch_instruction interface.
6744 (micromips_instruction_has_delay_slot): New function.
6745 (mips16_instruction_has_delay_slot): Simplify making use of the
6746 updated mips_fetch_instruction interface.
6747 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 6748 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
6749 calls. Handle microMIPS code.
6750 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
6751 (mips_skip_trampoline_code): Handle microMIPS code.
6752 (global_mips_compression): New function.
6753 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
6754 file flags. Register the microMIPS remote breakpoint handler
6755 and heuristic frame unwinder.
6756 (show_mips_compression): New function.
6757 (_initialize_mips_tdep): Add the "set mips compression" and
6758 "show mips compression" commands.
6759
22e048c9
SDJ
67602012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
6761
6762 * ada-lang.c:
6763 * ada-tasks.c:
6764 * ada-varobj.c:
6765 * amd64-darwin-tdep.c:
6766 * arm-symbian-tdep.c:
6767 * arm-tdep.c:
6768 * avr-tdep.c:
6769 * ax-gdb.c:
6770 * bfin-linux-tdep.c:
6771 * breakpoint.c:
6772 * c-valprint.c:
6773 * cli/cli-cmds.c:
6774 * coffread.c:
6775 * cp-support.c:
6776 * cris-tdep.c:
6777 * dwarf2-frame-tailcall.c:
6778 * dwarf2-frame.c:
6779 * dwarf2expr.c:
6780 * dwarf2loc.c:
6781 * dwarf2read.c:
6782 * elfread.c:
6783 * eval.c:
6784 * expprint.c:
6785 * f-valprint.c:
6786 * frv-tdep.c:
6787 * h8300-tdep.c:
6788 * hppa-hpux-tdep.c:
6789 * hppa-tdep.c:
6790 * hppanbsd-tdep.c:
6791 * i386-nto-tdep.c:
6792 * i386-tdep.c:
6793 * i387-tdep.c:
6794 * ia64-tdep.c:
6795 * jit.c:
6796 * linespec.c:
6797 * linux-tdep.c:
6798 * lm32-tdep.c:
6799 * m2-valprint.c:
6800 * m32c-tdep.c:
6801 * m32r-rom.c:
6802 * m32r-tdep.c:
6803 * m68k-tdep.c:
6804 * m68klinux-tdep.c:
6805 * mi/mi-main.c:
6806 * microblaze-tdep.c:
6807 * mips-linux-tdep.c:
6808 * mips-tdep.c:
6809 * mn10300-tdep.c:
6810 * p-valprint.c:
6811 * parse.c:
6812 * ppc-linux-tdep.c:
6813 * ppc-sysv-tdep.c:
6814 * printcmd.c:
6815 * python/py-finishbreakpoint.c:
6816 * python/py-inferior.c:
6817 * python/py-infthread.c:
6818 * python/py-type.c:
6819 * python/python.c:
6820 * remote-fileio.c:
6821 * remote-m32r-sdi.c:
6822 * remote-mips.c:
6823 * reverse.c:
6824 * rl78-tdep.c:
6825 * rs6000-aix-tdep.c:
6826 * rs6000-tdep.c:
6827 * s390-tdep.c:
6828 * score-tdep.c:
6829 * sh64-tdep.c:
6830 * skip.c:
6831 * solib-darwin.c:
6832 * solib-dsbt.c:
6833 * solib-frv.c:
6834 * sparc-tdep.c:
6835 * spu-multiarch.c:
6836 * spu-tdep.c:
6837 * stack.c:
6838 * symfile.c:
6839 * symtab.c:
6840 * tic6x-tdep.c:
6841 * tracepoint.c:
6842 * v850-tdep.c:
6843 * valarith.c:
6844 * valprint.c:
6845 * value.c:
6846 * xcoffread.c:
6847 * xtensa-tdep.c:
6848 * ada-lang.c:
6849 * ada-tasks.c:
6850 * ada-varobj.c:
6851 * amd64-darwin-tdep.c:
6852 * arm-symbian-tdep.c:
6853 * arm-tdep.c: Delete unused variables.
6854
aff139ff
JK
68552012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6856
6857 Rename $ddir to $datadir.
6858 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6859 * auto-load.c (auto_load_safe_path_vec_update)
6860 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6861 * configure: Regenerate.
6862 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6863 Likewise. Remove the 'use $ddir' help string.
6864
f7bfa992
JK
68652012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6866
6867 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6868 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6869
9cb709b6
TT
68702012-05-18 Tom Tromey <tromey@redhat.com>
6871
6872 PR exp/13907:
6873 * valprint.h (struct value_print_options) <symbol_print>: New
6874 field.
6875 * valprint.c (user_print_options): Add default for symbol_print.
6876 (show_symbol_print): New function.
6877 (generic_val_print): Respect symbol_print.
6878 (_initialize_valprint): Add "print symbol" setting.
6879 * f-valprint.c (f_val_print): Respect symbol_print.
6880 * c-valprint.c (c_val_print): Respect symbol_print.
6881 * NEWS: Update.
6882 * printcmd.c (print_address_symbolic): Return int. Ignore some
6883 zero-size symbols.
6884 (print_address_demangle): Return int.
6885 * defs.h: (print_address_symbolic): Return int.
6886 * value.h (print_address_demangle): Return int.
6887
b012acdd
TT
68882012-05-18 Tom Tromey <tromey@redhat.com>
6889
6890 * valprint.c (val_print_string): Don't print leading space.
6891 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6892 print space before string or vtbl.
6893 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6894 before string.
6895 * jv-valprint.c (java_value_print): Print space before string.
6896 * go-valprint.c (print_go_string): Print space before string.
6897 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6898 space before string.
6899 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6900 space before string or vtbl.
6901 * auxv.c (fprint_target_auxv): Print space after address.
6902
1d51a733
TT
69032012-05-18 Tom Tromey <tromey@redhat.com>
6904
6905 * printcmd.c (print_address_demangle): Remove special case for 0.
6906
edf0c1b7
TT
69072012-05-18 Tom Tromey <tromey@redhat.com>
6908
6909 * printcmd.c (print_address_demangle): Add 'opts' argument.
6910 * p-valprint.c (pascal_val_print): Update.
6911 * jv-valprint.c (java_val_print): Update.
6912 * value.h: Update.
6913 * valprint.c (generic_val_print): Update.
6914 (print_function_pointer_address): Add 'options' argument. Remove
6915 'addressprint' argument. Update.
6916 * m2-valprint.c (print_unpacked_pointer): Update.
6917 * gnu-v3-abi.c (print_one_vtable): Update.
6918 (gnuv3_print_method_ptr): Update.
6919 * f-valprint.c (f_val_print): Update.
6920 * cp-valprint.c (cp_print_value_fields): Update.
6921 * valprint.h (print_function_pointer_address): Update.
6922 * c-valprint.c (c_val_print): Update.
6923
9703b513
TT
69242012-05-18 Tom Tromey <tromey@redhat.com>
6925
6926 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6927 directly corresponding to the found psymtab.
6928 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6929 (dw2_find_pc_sect_symtab): Use it.
6930 * block.h (blockvector_contains_pc): Declare.
6931 * block.c (find_block_in_blockvector): New function.
6932 (blockvector_for_pc_sect): Use it.
6933 (blockvector_contains_pc): New function.
6934
5a439849
MR
69352012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6936
6937 * mips-tdep.h (mips_write_pc): New prototype.
6938 * mips-tdep.c (mips_write_pc): Make external, add description.
6939 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6940 add description.
6941
8376de04
MR
69422012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6943
6944 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6945 mips_regnum->pc.
6946 (mips_unwind_pc, mips_write_pc): Likewise.
6947 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6948 gdbarch_read_pc.
6949
d3581e61
JB
69502012-05-17 Joel Brobecker <brobecker@adacore.com>
6951
6952 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6953 proc_warn, proc_error, proc_get_status, proc_flags,
6954 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6955 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6956 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6957 proc_stop_process, proc_wait_for_stop, proc_run_process,
6958 proc_set_traced_signals, proc_set_traced_faults,
6959 proc_set_traced_sysentry, proc_set_traced_sysexit,
6960 proc_set_held_signals, proc_get_held_signals,
6961 proc_get_traced_signals, proc_get_traced_faults,
6962 proc_get_traced_sysentry, proc_get_traced_sysexit,
6963 proc_clear_current_fault, proc_set_current_signal,
6964 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6965 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6966 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6967 proc_get_current_thread, proc_get_current_thread,
6968 proc_get_current_thread, proc_update_threads,
6969 proc_update_threads, proc_update_threads, proc_update_threads,
6970 proc_iterate_over_threads, procfs_find_new_threads,
6971 procfs_pid_to_str): Make static. Remove advance declaration.
6972 (proc_cursig): Make static. Conditionalized defintion on
6973 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6974 (proc_syscall, proc_set_kill_on_last_close,
6975 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6976 proc_get_pending_signals, proc_get_signal_actions,
6977 proc_trace_signal, proc_ignore_signal): Delete.
6978
81b9b86e
SDJ
69792012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6980
6981 * coffread.c (cs_section_address): Passing proper argument for
6982 `bfd_get_section_vma'.
6983 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6984 `bfd_get_section_flags'.
6985 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6986 `bfd_get_section_vma'.
6987
abc9d0dc
TT
69882012-05-16 Tom Tromey <tromey@redhat.com>
6989
6990 PR macros/13205:
6991 * macrotab.h: (macro_define_special): Declare.
6992 (enum macro_special_kind): New.
6993 (struct macro_definition) <argc, replacement>: Update comments.
6994 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6995 (macro_define_object_internal): New function.
6996 (macro_define_object): Use it.
6997 (macro_define_special): New function.
6998 (fixup_definition): New function.
6999 (macro_lookup_definition, foreach_macro_in_scope)
7000 (foreach_macro): Use fixup_definition.
7001 * macroexp.h (macro_stringify): Declare.
7002 * macroexp.c (free_buffer_return_text): New function.
7003 (stringify): Constify "arg".
7004 (macro_stringify): New function.
7005 * dwarf2read.c (macro_start_file): Call macro_define_special.
7006
6a3a010b 70072012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 7008 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
7009
7010 * breakpoint.h (bp_location): Add related_address member.
7011 * inferior.h (get_return_value): Take a pointer to struct value
7012 instead of struct type for the function requested.
7013 * value.h (using_struct_return): Likewise.
7014 * gdbarch.sh (return_value): Take a pointer to struct value
7015 instead of struct type for the function requested.
7016 * breakpoint.c (set_breakpoint_location_function): Initialize
7017 related_address for bp_gnu_ifunc_resolver breakpoints.
7018 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
7019 requested function's address to gdbarch_return_value.
7020 * eval.c (evaluate_subexp_standard): Pass the requested
7021 function's address to using_struct_return.
7022 * infcall.c (call_function_by_hand): Pass the requested
7023 function's address to using_struct_return and
7024 gdbarch_return_value.
7025 * infcmd.c (get_return_value): Take a pointer to struct value
7026 instead of struct type for the function requested.
7027 (print_return_value): Update accordingly.
7028 (finish_command_continuation): Likewise.
7029 * stack.c (return_command): Pass the requested function's
7030 address to using_struct_return and gdbarch_return_value.
7031 * value.c (using_struct_return): Take a pointer to struct value
7032 instead of struct type for the function requested. Pass the
7033 requested function's address to gdbarch_return_value.
7034 * python/py-finishbreakpoint.c (finish_breakpoint_object):
7035 New function_value member, replacing function_type.
7036 (bpfinishpy_dealloc): Update accordingly.
7037 (bpfinishpy_pre_stop_hook): Likewise.
7038 (bpfinishpy_init): Likewise. Record the requested function's
7039 address.
7040 * mips-tdep.c (mips_fval_reg): New enum.
7041 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
7042 words put in GP registers.
7043 (mips_o64_push_dummy_call): Update a comment.
7044 (mips_o32_return_value): Take a pointer to struct value instead
7045 of struct type for the function requested and use it to check if
7046 using the MIPS16 calling convention. Return the designated
7047 general purpose registers for floating-point values returned in
7048 MIPS16 mode.
7049 (mips_o64_return_value): Likewise.
7050 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
7051 (ppc_sysv_abi_broken_return_value): Likewise.
7052 (ppc64_sysv_abi_return_value): Likewise.
7053 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
7054 value instead of struct type for the function requested.
7055 * amd64-tdep.c (amd64_return_value): Likewise.
7056 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
7057 * arm-tdep.c (arm_return_value): Likewise.
7058 * avr-tdep.c (avr_return_value): Likewise.
7059 * bfin-tdep.c (bfin_return_value): Likewise.
7060 * cris-tdep.c (cris_return_value): Likewise.
7061 * frv-tdep.c (frv_return_value): Likewise.
7062 * h8300-tdep.c (h8300_return_value): Likewise.
7063 (h8300h_return_value): Likewise.
7064 * hppa-tdep.c (hppa32_return_value): Likewise.
7065 (hppa64_return_value): Likewise.
7066 * i386-tdep.c (i386_return_value): Likewise.
7067 * ia64-tdep.c (ia64_return_value): Likewise.
7068 * iq2000-tdep.c (iq2000_return_value): Likewise.
7069 * lm32-tdep.c (lm32_return_value): Likewise.
7070 * m32c-tdep.c (m32c_return_value): Likewise.
7071 * m32r-tdep.c (m32r_return_value): Likewise.
7072 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
7073 * m68k-tdep.c (m68k_return_value): Likewise.
7074 (m68k_svr4_return_value): Likewise.
7075 * m88k-tdep.c (m88k_return_value): Likewise.
7076 * mep-tdep.c (mep_return_value): Likewise.
7077 * microblaze-tdep.c (microblaze_return_value): Likewise.
7078 * mn10300-tdep.c (mn10300_return_value): Likewise.
7079 * moxie-tdep.c (moxie_return_value): Likewise.
7080 * mt-tdep.c (mt_return_value): Likewise.
7081 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
7082 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
7083 (ppc_sysv_abi_broken_return_value): Likewise.
7084 (ppc64_sysv_abi_return_value): Likewise.
7085 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
7086 * rl78-tdep.c (rl78_return_value): Likewise.
7087 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
7088 * rx-tdep.c (rx_return_value): Likewise.
7089 * s390-tdep.c (s390_return_value): Likewise.
7090 * score-tdep.c (score_return_value): Likewise.
7091 * sh-tdep.c (sh_return_value_nofpu): Likewise.
7092 (sh_return_value_fpu): Likewise.
7093 * sh64-tdep.c (sh64_return_value): Likewise.
7094 * sparc-tdep.c (sparc32_return_value): Likewise.
7095 * sparc64-tdep.c (sparc64_return_value): Likewise.
7096 * spu-tdep.c (spu_return_value): Likewise.
7097 * tic6x-tdep.c (tic6x_return_value): Likewise.
7098 * v850-tdep.c (v850_return_value): Likewise.
7099 * vax-tdep.c (vax_return_value): Likewise.
7100 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
7101 * xtensa-tdep.c (xtensa_return_value): Likewise.
7102 * gdbarch.c: Regenerate.
7103 * gdbarch.h: Regenerate.
7104
29ca12b3
TT
71052012-05-15 Tom Tromey <tromey@redhat.com>
7106
7107 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
7108
588ae58c
JB
71092012-05-15 Joel Brobecker <brobecker@adacore.com>
7110
7111 * breakpoint.c (init_breakpoint_sal): Add quotes around part
7112 of command in two error message.
7113
855a6e68
JB
71142012-05-15 Joel Brobecker <brobecker@adacore.com>
7115
7116 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
7117
d634f2de
JB
71182012-05-15 Joel Brobecker <brobecker@adacore.com>
7119
7120 * breakpoint.c (find_condition_and_thread): Minor reformatting.
7121
9cc815f5
JK
71222012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7123
7124 * NEWS (show auto-load scripts-directory): Add forgotten command.
7125
6a609e58
JK
71262012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7127
7128 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
7129 parameters.
7130
ac1438b5
L
71312012-05-14 H.J. Lu <hongjiu.lu@intel.com>
7132
7133 * amd64-tdep.c: Include features/i386/x32.c and
7134 features/i386/x32-avx.c.
7135 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
7136 initialize_tdesc_x32_avx.
7137
e7e0cddf
SS
71382012-05-14 Stan Shebs <stan@codesourcery.com>
7139
7140 Add dynamic printf.
7141 * breakpoint.h (enum bptype): New type bp_dprintf.
7142 (struct breakpoint): New field extra_string.
7143 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
7144 (create_breakpoint): Add extra_string arg.
7145 * breakpoint.c (dprintf_breakpoint_ops): New.
7146 (is_breakpoint): Add bp_dprintf.
7147 (bpstat_what): Add dprintf case.
7148 (bptype_string): Ditto.
7149 (print_one_breakpoint_location): Ditto.
7150 (init_bp_location): Ditto.
7151 (bkpt_print_mention): Ditto.
7152 (dprintf_style_enums): New array.
7153 (dprintf_style): New global.
7154 (dprintf_function): New global.
7155 (dprintf_channel): New global.
7156 (update_dprintf_command_list): New function.
7157 (update_dprintf_commands): New function.
7158 (init_breakpoint_sal): Add extra_string argument, handle it.
7159 (create_breakpoint_sal): Add extra_string argument.
7160 (create_breakpoints_sal): Add extra_string argument, update callers.
7161 (find_condition_and_thread): Add extra argument.
7162 (create_breakpoint): Add extra_string argument, record it.
7163 (dprintf_command): New function.
7164 (break_command_1): Add arg to create_breakpoint call.
7165 (handle_gnu_v3_exceptions): Ditto.
7166 (trace_command): Ditto.
7167 (ftrace_command): Ditto.
7168 (strace_command): Ditto.
7169 (bkpt_print_mention): Add dprintf case.
7170 (create_breakpoint_sal_default): Add extra_string argument.
7171 (_initialize_breakpoint): Add new commands.
7172 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
7173 * python/py-breakpoint.c (bppy_init): Ditto.
7174 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
7175
8ae38c14
MR
71762012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
7177
7178 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
7179
9f676e66
SCR
71802012-05-14 Siva Chandra Reddy <sivachandra@google.com>
7181
7182 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
7183 unsigned long long.
7184
7efc75aa
SCR
71852012-05-13 Siva Chandra Reddy <sivachandra@google.com>
7186
7187 Add a new function gdb.find_pc_line to the Python API.
7188 * NEWS (Python Scripting): Add entry about the new function.
7189 * python/python.c (gdbpy_find_pc_line): New function which
7190 implements gdb.find_pc_line.
7191 (GdbMethods): Add entry for the new function.
7192
70af3797
PA
71932012-05-12 Pedro Alves <palves@redhat.com>
7194
7195 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
7196 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
7197
06da564e
EZ
71982012-05-12 Eli Zaretskii <eliz@gnu.org>
7199
7200 * inferior.c: Include completer.h
7201 (initialize_inferiors): Set completer of add-inferior to
7202 filename_completer.
7203
0288cee2
L
72042012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7205
7206 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
7207 gdbarch_ptr_bit for x32 core dump.
7208
f6537a2c
L
72092012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7210
7211 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
7212 and features/i386/x32-avx-linux.c.
7213
85d4a676
SS
72142012-05-11 Stan Shebs <stan@codesourcery.com>
7215 Kwok Cheung Yeung <kcy@codesourcery.com>
7216
7217 * NEWS: Describe new info os commands.
7218 * common/linux-osdata.c (PID_T, TIME_T): Define.
7219 (MAX_PID_T_STRLEN): New.
7220 (linux_common_core_of_thread): Add comment. Change to use PID_T and
7221 MAX_PID_T_STRLEN.
7222 (command_from_pid): Add comment. Change to use PID_T.
7223 (commandline_from_pid): Change to use PID_T.
7224 (user_from_pid): Add comment.
7225 (get_process_owner): Add comment. Change to use PID_T and
7226 MAX_PID_T_STRLEN.
7227 (get_number_of_cpu_cores): Add comment.
7228 (get_cores_used_by_process): Add comment. Change to use PID_T and
7229 MAX_PID_T_STRLEN.
7230 (linux_xfer_osdata_processes): Change to use PID_T and
7231 MAX_PID_T_STRLEN.
7232 (compare_processes): New function.
7233 (linux_xfer_osdata_processgroups): New function.
7234 (linux_xfer_osdata_threads): Change to use PID_T.
7235 (linux_xfer_osdata_fds): New function.
7236 (format_socket_state, print_sockets): New functions.
7237 (union socket_addr): New union.
7238 (linux_xfer_osdata_isockets): New function.
7239 (time_from_time_t, group_from_gid): New functions.
7240 (linux_xfer_osdata_shm): New function.
7241 (linux_xfer_osdata_sem): New function.
7242 (linux_xfer_osdata_msg): New function.
7243 (linux_xfer_osdata_modules): New function.
7244 (osdata_table): Add new entries.
7245 * common/buffer.c (buffer_xml_printf): Add support for long and
7246 long long format specifiers.
7247
f24afd6d
L
72482012-05-11 H.J. Lu <hongjiu.lu@intel.com>
7249
7250 * amd64-linux-tdep.h (tdesc_x32_linux): New.
7251 (tdesc_x32_avx_linux): Likewise.
7252
7349ff92
JK
72532012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7254
7255 Implement multi-component --with-auto-load-dir.
7256 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
7257 entries.
7258 (--with-auto-load-safe-path): Update the default value description.
7259 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
7260 New.
7261 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
7262 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
7263 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
7264 (_initialize_auto_load): Initialize also auto_load_dir. Install new
7265 "set auto-load scripts-directory".
7266 * config.in: Regenerate.
7267 * configure: Regenerate.
7268 * configure.ac (--with-auto-load-dir): New configure option.
7269 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
7270
6dea1fbd
JK
72712012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7272
7273 Provide $ddir substitution for --with-auto-load-safe-path.
7274 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
7275 entries.
7276 * auto-load.c: Include observer.h.
7277 (auto_load_safe_path_vec_update): Call substitute_path_component for
7278 each component. New variable ddir_subst.
7279 (auto_load_gdb_datadir_changed): New function.
7280 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7281 AUTO_LOAD_SAFE_PATH. New comment.
7282 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
7283 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
7284 * config.in: Regenerate.
7285 * configure: Regenerate.
7286 * configure.ac (--auto-load-safe-path): Rename
7287 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
7288 GDB_DATADIR/auto-load.
7289 * defs.h (substitute_path_component): New declaration.
7290 * top.c: Include observer.h.
7291 (set_gdb_datadir): New function.
7292 (init_main): Install it for "set data-directory".
7293 * utils.c (substitute_path_component): New function.
7294
b09aca3a
JK
72952012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7296
7297 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
7298 * auto-load.c (auto_load_objfile_script): Remove check for NULL
7299 DEBUG_FILE_DIRECTORY. Handle multiple components of
7300 DEBUG_FILE_DIRECTORY.
7301
95554aad
TT
73022012-05-10 Tom Tromey <tromey@redhat.com>
7303
7304 * dwarf2read.c (recursively_write_psymbols): New function.
7305 (write_psymtabs_to_index): Use it.
7306
7307 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
7308 field.
7309 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
7310 (load_partial_comp_unit): Update.
7311 (queue_comp_unit): Add argument 'pretend_language'.
7312 (process_queue): Update.
7313 (psymtab_to_symtab_1): Skip dependencies that have a user.
7314 (load_partial_comp_unit_reader): Give meaning to the 'data'
7315 argument.
7316 (load_full_comp_unit): Add 'pretend_language' argument.
7317 (process_full_comp_unit): Add 'pretend_language' argument. Set
7318 language on CU.
7319 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
7320 Update.
7321 (maybe_queue_comp_unit): Add 'pretend_language' argument.
7322 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
7323 Update.
7324 (prepare_one_comp_unit): Add 'pretend_language' argument.
7325
7326 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
7327 (struct dwarf2_per_objfile) <just_read_cus>: New field.
7328 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
7329 (dw2_do_instantiate_symtab): Check whether symtab was read in
7330 before queueing.
7331 (dw2_instantiate_symtab): Add assertion. Call
7332 process_cu_includes.
7333 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
7334 (partial_symtab_p): New typedef.
7335 (set_partial_user): New function.
7336 (dwarf2_build_psymtabs_hard): Use set_partial_user.
7337 (scan_partial_symbols): Add imported CU to imported_symtabs.
7338 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
7339 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
7340 (get_symtab, recursively_compute_inclusions)
7341 (compute_symtab_includes, process_cu_includes)
7342 (process_imported_unit_die): New functions.
7343 (process_die) <DW_TAG_imported_unit>: New case.
7344 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
7345
7346 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
7347 comment.
7348 (struct partial_die_info) <locdesc>: Remove.
7349 <d>: New field.
7350 (process_psymtab_comp_unit): Add 'read_partial' argument.
7351 Update.
7352 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
7353 (scan_partial_symbols): Handle DW_TAG_imported_unit.
7354 (add_partial_symbol): Update.
7355 (process_die): Handle DW_TAG_partial_unit.
7356 (read_file_scope): Update comment.
7357 (load_partial_dies): Handle DW_TAG_imported_unit.
7358 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
7359 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
7360
e871fbb9
TT
73612012-05-10 Tom Tromey <tromey@redhat.com>
7362
7363 * cc-with-dwz.sh: New file.
7364
b5b04b5b
TT
73652012-05-10 Tom Tromey <tromey@redhat.com>
7366
7367 * symtab.h (struct symtab) <includes, user>: New fields.
7368 * block.h (struct block_iterator) <d, idx, which>: New fields.
7369 * block.c (initialize_block_iterator, find_iterator_symtab)
7370 (block_iterator_step, block_iter_name_step)
7371 (block_iter_match_step): New functions.
7372 (block_iterator_first, block_iterator_next)
7373 (block_iter_name_first, block_iter_name_next)
7374 (block_iter_match_first, block_iter_match_next): Rewrite.
7375 (get_block_symtab): New function.
7376
84a146c9
TT
73772012-05-10 Tom Tromey <tromey@redhat.com>
7378
7379 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
7380 set_block_symtab.
7381 * jit.c (finalize_symtab): Use allocate_global_block,
7382 set_block_symtab.
7383 * buildsym.c (finish_block_internal): New function, from old
7384 finish_block.
7385 (finish_block): Rewrite.
7386 (end_symtab): Use finish_block_internal, set_block_symtab.
7387 * block.h (struct global_block): New.
7388 (allocate_global_block, set_block_symtab): Declare.
7389 * block.c (allocate_global_block, set_block_symtab): New
7390 functions.
7391
9439a077
TT
73922012-05-10 Tom Tromey <tromey@redhat.com>
7393
7394 * psymtab.c (partial_map_expand_apply): Add assertion.
7395 (partial_map_symtabs_matching_filename): Skip included psymtabs.
7396 (psymtab_to_symtab): Find unshared psymtab.
7397 (dump_psymtab): Print including psymtabs.
7398 (recursively_search_psymtabs): New function.
7399 (expand_symtabs_matching_via_partial): Use it.
7400 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
7401 fields.
7402 (enum psymtab_search_status): New.
7403
8157b174
TT
74042012-05-10 Tom Tromey <tromey@redhat.com>
7405
7406 * tracepoint.c (scope_info): Update.
7407 * symtab.c (lookup_block_symbol, iterate_over_symbols)
7408 (find_pc_sect_symtab, search_symbols)
7409 (default_make_symbol_completion_list_break_on)
7410 (make_file_symbol_completion_list): Update.
7411 * symmisc.c (dump_symtab_1): Update.
7412 * stack.c (print_frame_args, iterate_over_block_locals)
7413 (print_frame_labels, iterate_over_block_arg_vars): Update.
7414 * python/py-block.c (block_object) <dict>: Remove.
7415 <block>: New field.
7416 <iter>: Change type.
7417 (blpy_iter): Update.
7418 (blpy_block_syms_iternext): Update.
7419 * psymtab.c (map_block): Use block iterators.
7420 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
7421 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
7422 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
7423 * infrun.c (check_exception_resume): Update.
7424 * cp-support.c (make_symbol_overload_list_block): Update.
7425 * coffread.c (patch_opaque_types): Update.
7426 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
7427 * block.h (struct block_iterator): New.
7428 (block_iterator_first, block_iterator_next, block_iter_name_first)
7429 (block_iter_name_next, block_iter_match_first)
7430 (block_iter_match_next): Declare.
7431 (ALL_BLOCK_SYMBOLS): Redefine.
7432 * block.c (block_iterator_first, block_iterator_next)
7433 (block_iter_name_first, block_iter_name_next)
7434 (block_iter_match_first, block_iter_match_next): New functions.
7435 * ada-lang.c (ada_add_block_symbols)
7436 (ada_make_symbol_completion_list): Use block iterator.
7437
a2ca7a52
TT
74382012-05-10 Tom Tromey <tromey@redhat.com>
7439
7440 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
7441 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
7442 (lookup_partial_symbol, find_last_source_symtab_from_partial)
7443 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
7444 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
7445 Update.
7446
64ea88dc
JB
74472012-05-10 Joel Brobecker <brobecker@adacore.com>
7448
7449 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
7450 print-file-var-lib2.c, print-file-var-main.c and
7451 print-file-var.exp (located in gdb/testsuite/gdb.base).
7452
99a547d6
JB
74532012-05-10 Joel Brobecker <brobecker@adacore.com>
7454
7455 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
7456 try locating the symbol in the symbol's own objfile first, before
7457 extending the search to all objfiles.
7458 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
7459 out of lookup_symbol_aux_symtabs.
7460 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
7461 Replace extracted-out code by call to lookup_symbol_aux_objfile.
7462 Do not search EXCLUDE_OBJFILE.
7463 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
7464 (lookup_symbol_global): Search for matches in the block's objfile
7465 first, before searching all other objfiles.
7466
0ece64fd
TG
74672012-05-10 Tristan Gingold <gingold@adacore.com>
7468
7469 * printcmd.c (set_command): Add pre/post inc/dec.
7470
3d16a105
FCE
74712012-05-09 Frank Ch. Eigler <fche@redhat.com>
7472
7473 * gdb.1: Document -ex option.
7474
2efbc0f7
JB
74752012-05-09 Joel Brobecker <brobecker@adacore.com>
7476
7477 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
7478 * inferior.h (AT_SYMBOL): Delete.
7479
2c76a0c7
JB
74802012-05-09 Joel Brobecker <brobecker@adacore.com>
7481
7482 * mips-tdep.c (mips_push_dummy_code): New function.
7483 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
7484 ON_STACK and install mips_push_dummy_code as our gdbarch
7485 push_dummy_code routine.
7486
9401a810
PA
74872012-05-09 Pedro Alves <palves@redhat.com>
7488
7489 * target.c (set_maintenance_target_async_permitted): Rename to ...
7490 (set_target_async_command): ... this.
7491 (show_maintenance_target_async_permitted): Rename to ...
7492 (show_target_async_command): ... this.
7493 (initialize_targets): Adjust.
7494
3929b321
DE
74952012-05-08 Doug Evans <dje@google.com>
7496
7497 * go-exp.y (classify_name): Add missing assignment of fields of
7498 yylval.ssym.
7499
c41535fd
EZ
75002012-05-08 Eli Zaretskii <eliz@gnu.org>
7501
7502 Display the ">" prompt in interactive mode while reading canned
7503 commands, even when the current interpreter is MI.
7504
7505 * interps.c (interp_set_temp): New function.
7506
7507 * interps.h (interp_set_temp): Add prototype.
7508
7509 * cli/cli-script.c (restore_interp): New cleanup function.
7510 (read_command_lines): Temporarily override the current interpreter
7511 with CLI and arrange for restoring the original one.
7512
c0749c4d
JS
75132012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
7514
7515 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
7516
d7333987
SDJ
75172012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
7518
7519 * probe.c (parse_probes): Move conditional to check for
7520 debuginfo files from here...
7521 * stap-probe.c (stap_get_probes): ... to here.
7522
649e6d92
MK
75232012-05-07 Mark Kettenis <kettenis@gnu.org>
7524 H.J. Lu <hongjiu.lu@intel.com>
7525
7526 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
7527 `movl %esp, %ebp' for the X32 ABI.
7528
f39c6ffd
TT
75292012-05-07 Tom Tromey <tromey@redhat.com>
7530
7531 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
7532 get_DW_TAG_name.
7533 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
7534 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
7535 (dwarf_stack_op_name): Remove.
7536 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
7537 (decode_locdesc): Use get_DW_OP_name.
7538 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
7539 (dwarf2_compile_expr_to_ax): Likewise.
7540 (disassemble_dwarf_expression): Likewise.
7541 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
7542
1e1f6591
CLT
75432012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
7544
7545 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
7546 (sh_linux_sigtramp_cache): New function.
7547 (sh_linux_sigreturn_init): New function.
7548 (sh_linux_rt_sigreturn_init): New function.
7549 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
7550 patterns.
7551 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
7552 syscall codes.
7553 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
7554 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
7555 (sh_linux_init_abi): Add init calls to register new tramp_frame
7556 definitions under 32-bit SH, update comments.
7557
545c08b4
PA
75582012-05-07 Pedro Alves <palves@redhat.com>
7559
daac165e
PA
7560 PR gdb/10952
7561
545c08b4
PA
7562 * amd64-linux-tdep.c: Include glibc-tdep.h.
7563 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
7564 gdbarch_skip_solib_resolver callback.
7565
af2c1515
JK
75662012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
7567
7568 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
7569 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
7570 (show_auto_load_safe_path): Check any-directory by comparison with "/".
7571 (add_auto_load_safe_path): Change the error message.
7572 (_initialize_auto_load): Change the "safe-path" help text.
7573 * configure: Regenerate
7574 * configure.ac (--without-auto-load-safe-path): Set
7575 WITH_AUTO_LOAD_SAFE_PATH to /.
7576
1067f998
SDJ
75772012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
7578
7579 * stap-probe.h: Do not include unecessary `probe.h'.
7580
45dfa85a
AM
75812012-05-05 Alan Modra <amodra@gmail.com>
7582
7583 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
7584 bfd_und_section_ptr.
7585 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
7586 and bfd_com_section_ptr.
7587
cf093994
JB
75882012-05-04 Joel Brobecker <brobecker@adacore.com>
7589
762ebb75 7590 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 7591
d40dc7a8
JB
75922012-05-04 Joel Brobecker <brobecker@adacore.com>
7593
7594 * windows-nat.h (segment_register_p_ftype): New typedef.
7595 (windows_set_segment_register_p): Add declaration.
7596 * windows-nat.c (segment_register_p): New static global.
7597 (windows_set_segment_register_p): New function.
7598 (do_windows_fetch_inferior_registers): Add special handling
7599 for segment registers.
7600 * amd64-windows-nat.c: #include "amd64-tdep.h".
7601 (amd64_windows_segment_register_p): New function.
7602 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
7603 * i386-windows-nat.c: #include "i386-tdep.h".
7604 (i386_windows_segment_register_p): New function.
7605 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
7606
52b3699b
TG
76072012-05-04 Tristan Gingold <gingold@adacore.com>
7608
7609 * printcmd.c (set_command): Emit a warning if the expression is not
7610 an assignment.
7611
94c74239
JB
76122012-05-03 Joel Brobecker <brobecker@adacore.com>
7613
7614 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
7615 Make static.
7616
fcf57f19
SDJ
76172012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
7618
7619 * stap-probe.c (stap_is_operator): Change declaration.
7620 (stap_get_opcode): Change return value.
7621 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
7622 `stap_parse_argument_1'.
7623
27d2932e
PA
76242012-05-03 Pedro Alves <pedro@codesourcery.com>
7625
7626 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
7627 debug log.
7628
a20ee7a4
SCR
76292012-05-03 Siva Chandra Reddy <sivachandra@google.com>
7630
7631 Add two new methods global_block and static_block to gdb.Symtab
7632 objects.
7633 * NEWS (Python scripting): Add entry about the new methods.
7634 * python/py-symtab.c (stpy_global_block): New function which
7635 implements the gdb.Symtab.global_block() method.
7636 (stpy_static_block): New function which implements the
7637 gdb.Symtab.static_block() method.
7638 (symtab_object_methods): Add entries for the two new methods.
7639
943cb756
DE
76402012-05-03 Doug Evans <dje@google.com>
7641
7642 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
7643 files.
7644
f4644a3f
YQ
76452012-05-03 Yao Qi <yao@codesourcery.com>
7646
7647 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
7648 space.
7649 (i386_process_record): Ditto.
7650
ef61f180
JB
76512012-05-02 Joel Brobecker <brobecker@adacore.com>
7652
7653 * infcall.c (unwind_on_signal_p): Make static.
7654
02f1df11
JB
76552012-05-02 Joel Brobecker <brobecker@adacore.com>
7656
7657 * sol-thread.c (solaris_pid_to_str): Make static.
7658 (_initialize_sol_thread): Add prototype.
7659
39023530
JB
76602012-05-02 Joel Brobecker <brobecker@adacore.com>
7661
7662 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
7663
c6b0c501
CF
76642012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
7665
7666 * MAINTAINERS: Remove myself.
7667
1ef71717
JK
76682012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7669
7670 Fix --without-auto-load-safe-path for MS-Windows host platform.
7671 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
7672
b31b86a7
EZ
76732012-05-02 Eli Zaretskii <eliz@gnu.org>
7674
7675 * gdb_curses.h: Undefine KEY_EVENT before including curses
7676 headers. Move "#undef MOUSE_MOVED" before any curses header
7677 inclusion.
7678
777532fc
SDJ
76792012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7680
7681 * features/i386/i386-mmx-linux.c: Regenerate.
7682 * features/rs6000/powerpc-32.c: Likewise.
7683 * features/rs6000/powerpc-32l.c: Likewise.
7684 * features/rs6000/powerpc-403.c: Likewise.
7685 * features/rs6000/powerpc-403gc.c: Likewise.
7686 * features/rs6000/powerpc-405.c: Likewise.
7687 * features/rs6000/powerpc-505.c: Likewise.
7688 * features/rs6000/powerpc-601.c: Likewise.
7689 * features/rs6000/powerpc-602.c: Likewise.
7690 * features/rs6000/powerpc-603.c: Likewise.
7691 * features/rs6000/powerpc-604.c: Likewise.
7692 * features/rs6000/powerpc-64.c: Likewise.
7693 * features/rs6000/powerpc-64l.c: Likewise.
7694 * features/rs6000/powerpc-750.c: Likewise.
7695 * features/rs6000/powerpc-860.c: Likewise.
7696 * features/rs6000/powerpc-e500.c: Likewise.
7697 * features/rs6000/powerpc-e500l.c: Likewise.
7698 * features/rs6000/powerpc-isa205-32l.c: Likewise.
7699 * features/rs6000/powerpc-isa205-64l.c: Likewise.
7700 * features/rs6000/rs6000.c: Likewise.
7701
d71871bc
SDJ
77022012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
7703
7704 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
7705 variable.
7706 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
7707 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
7708 (stap_parse_argument) <e>: Likewise.
7709 (handle_stap_probe) <byte_order>: Likewise.
7710
fd820528
DE
77112012-04-30 Doug Evans <dje@google.com>
7712
7713 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
7714 init_and_read_dies_worker. All callers updated.
7715 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
7716 replaced with init_cutu_and_read_dies.
7717 (load_partial_comp_unit): Pass 1 for use_existing_cu.
7718 (find_partial_die): Remove FIXME. Don't free current CU.
7719
ec3f619d 77202012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
7721
7722 * contrib: New directory.
7723 * contrib/test_pubnames_and_indexes.py: New file.
7724
fceca515
DE
77252012-04-30 Doug Evans <dje@google.com>
7726
7727 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
7728 All callers updated.
7729 (init_cu_die_reader): Verify the section is non-empty.
7730 (dwarf_decode_line_header): Don't dereference section->asection
7731 until we know the section is present.
7732
311fe7e1
SDJ
77332012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
7734
7735 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
7736 probes.
7737
5977971a
YQ
77382012-04-29 Yao Qi <yao@codesourcery.com>
7739
7740 * gdb-code-style.el: New hook gdb-markup-hook
7741 and gdb-comment-hook.
7742
dee91e82
DE
77432012-04-28 Doug Evans <dje@google.com>
7744
3019eac3
DE
7745 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
7746 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
7747 objfile->obfd.
7748 * symfile.h (dwarf2_debug_sections): New member addr.
7749 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
7750 (ctx_no_get_addr_index): New function.
7751 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
7752 (ctx_no_get_addr_index): Declare.
7753 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
7754 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
7755 (dwarf_expr_ctx_funcs): Update.
7756 (needs_get_addr_index): New function.
7757 (needs_frame_ctx_funcs): Update.
7758 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
7759 * dwarf2read.c: #include "gdbcore.h".
7760 (dwarf2_per_objfile): New members addr, dwo_files.
7761 (dwarf2_elf_names): Add entry for addr.
7762 (struct dwo_section_names): New type.
7763 (dwo_section_names): New static global.
7764 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
7765 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
7766 old debug_types_section member updated to use this.
7767 Rename member debug_types_section to info_or_types_section,
7768 all uses updated.
7769 (signatured_type): Rename member type_offset to type_offset_in_tu,
7770 all uses updated. New member type_offset_in_section.
7771 (struct dwo_sections): New type.
7772 (struct dwo_unit): New type.
7773 (struct dwo_file): New type.
7774 (die_reader_specs): New member dwo_file.
7775 (dwarf2_locate_sections): Watch for .debug_addr.
7776 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
7777 (dwarf2_read_section): Get bfd of section from bfd's asection,
7778 instead of objfile.
7779 (create_cus_from_index): Initialize the_cu->info_or_types_section.
7780 (create_signatured_type_table_from_index): Initialize
7781 sig_type->info_or_types_section.
7782 (dw2_get_file_names): Statement lists for type units with DWO files
7783 live in the DWO file.
7784 (create_debug_types_hash_table): New function.
7785 (create_all_type_units): Rewrite.
7786 (init_cu_die_reader): New arg dwo_file, all callers updated.
7787 (init_and_read_dies_worker): Get section from
7788 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
7789 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
7790 continue reading the CU/TU from there.
7791 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
7792 updated. Get section from this_cu->info_or_types_section.
7793 (create_all_comp_units): Initialize this_cu->info_or_types_section.
7794 (skip_one_die): New cases DW_FORM_GNU_addr_index,
7795 DW_FORM_GNU_str_index.
7796 (hash_dwo_file, eq_dwo_file): New functions.
7797 (allocate_dwo_file_hash_table): New function.
7798 (hash_dwo_unit, eq_dwo_unit): New functions.
7799 (allocate_dwo_unit_table): New function.
7800 (dwarf2_locate_dwo_sections): New function.
7801 (struct create_dwo_info_table_data): New type.
7802 (create_debug_info_hash_table_reader): New function.
7803 (create_debug_info_hash_table): New function.
7804 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
7805 (lookup_dwo_file): New function.
7806 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
7807 (free_dwo_file, free_dwo_file_cleanup): New functions.
7808 (free_dwo_file_from_slot, free_dwo_files): New functions.
7809 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
7810 (dwarf2_record_block_ranges): Ditto.
7811 (read_partial_die): Ditto.
7812 (process_enumeration_scope): Update to use type_offset_in_section.
7813 (read_full_die_1): New function.
7814 (read_full_die): Rewrite.
7815 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
7816 DW_FORM_GNU_str_index.
7817 (read_addr_index_1, read_addr_index): New functions.
7818 (read_addr_index_from_leb128): New function.
7819 (struct dwarf2_read_addr_index_data): New type.
7820 (dwarf2_read_addr_index_reader): New function.
7821 (dwarf2_read_addr_index): New function.
7822 (read_str_index): New function.
7823 (leb128_size): New function.
7824 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
7825 If processing a type unit from a DWO file, get the line section
7826 from the DWO file.
7827 (var_decode_location): Watch for DW_OP_GNU_addr_index.
7828 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
7829 DW_FORM_GNU_str_index.
7830 (lookup_die_type): Check whether section offset of type's die is
7831 known before looking it up. Remove assert. Condition can
7832 legimately happen for inter-cu type references.
7833 (dwarf_attr_name): Handle Fission attributes.
7834 (dwarf_form_name): Handle Fission forms.
7835 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
7836 DW_FORM_GNU_str_index.
7837 (follow_die_sig): Update to use type_offset_in_section.
7838 (decode_locdesc): New case DW_OP_GNU_addr_index.
7839 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
7840 DW_FORM_GNU_str_index.
7841 (cu_debug_loc_section): New function.
7842 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7843 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7844 Free DWO files if present.
7845 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7846
dee91e82
DE
7847 Refactor DIE reading.
7848 * dwarf2read.c (dwarf2_per_objfile): Replace members
7849 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7850 (die_reader_specs): New member "die_section". Temporarily make
7851 member "buffer" non-const, pending constifying all info_ptr uses.
7852 (die_reader_func_ftype): New typedef.
7853 (dw2_get_file_names_reader): New function.
7854 (dw2_get_file_names): Rewrite.
7855 (read_and_check_type_unit_head): Rename arg type_offset to
7856 type_offset_in_tu.
7857 (create_all_type_units): Improve debugging message.
7858 Improve dummy type unit check.
7859 (init_cu_die_reader): New arg "section". All callers updated.
7860 (init_and_read_dies_worker): New function.
7861 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7862 (init_cutu_and_read_dies_no_follow): New function.
7863 (init_cutu_and_read_dies_simple): New function.
7864 (process_psymtab_comp_unit_reader): New function.
7865 (process_psymtab_comp_unit): Delete args section,
7866 is_debug_types_section. Rewrite. All callers updated.
7867 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7868 All callers updated. Rewrite.
7869 (load_partial_comp_unit_reader): New function.
7870 (load_partial_comp_unit): Rewrite.
7871 (skip_children): New arg reader. Delete args buffer, cu.
7872 All callers updated.
7873 (skip_one_die): New arg reader. Delete args buffer, cu.
7874 All callers updated.
7875 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7876 All callers updated.
7877 (load_full_comp_unit_reader): New function.
7878 (load_full_comp_unit): Rewrite.
7879 (read_comp_unit): Delete.
7880 (read_die_and_children_1): Delete, contents moved ...
7881 (read_die_and_children): ... here.
7882 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7883 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7884 All callers updated.
7885 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7886 All callers updated.
7887 (find_partial_die): Rewrite load_all_dies support.
7888 (read_attribute_value): New arg reader. Delete args abfd, cu.
7889 All callers updated.
7890 (read_attribute): New arg reader. Delete args abfd, cu.
7891 All callers updated.
7892 (load_full_type_unit): Add assert.
7893 (read_signatured_type_reader): New function.
7894 (read_signatured_type): Rewrite.
7895 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7896 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7897 All callers updated. Set per_cu->cu = NULL after freeing it.
7898 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7899 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7900 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7901 (set_die_type): Update.
7902 (get_die_type_at_offset): Update.
7903 (read_file_scope): Call prepare_one_comp_unit.
7904 (read_type_unit_scope): Ditto.
7905 (prepare_one_comp_unit): Set producer if present.
7906
72d59e0d
SDJ
79072012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7908
7909 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7910 gettext function on `error'.
7911
0fefef59
DE
79122012-04-27 Doug Evans <dje@google.com>
7913
7914 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7915 is empty.
7916
28106bc2
SDJ
79172012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7918 Tom Tromey <tromey@redhat.com>
7919
7920 * breakpoint.c (struct breakpoint_objfile_data)
7921 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7922 <exception_probes>: New fields.
7923 (free_breakpoint_probes): New function.
7924 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7925 `_Unwind_DebugHook'.
7926 (create_exception_master_breakpoint): Likewise.
7927 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7928 * infrun.c: Including necessary header files for handling SystemTap
7929 probes.
7930 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7931 via SystemTap probes.
7932 (check_exception_resume): Remove `func' argument. Handle exception
7933 unwinding breakpoint set via a SystemTap probe.
7934 (insert_exception_resume_from_probe): New function.
7935
55aa24fb
SDJ
79362012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7937 Tom Tromey <tromey@redhat.com>
7938 Jan Kratochvil <jan.kratochvil@redhat.com>
7939
7940 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7941 (COMMON_OBS): Likewise.
7942 (HFILES_NO_SRCDIR): Add `probe'.
7943 * NEWS: Mention support for static and SystemTap probes.
7944 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7945 SystemTap probes' arguments parser.
7946 * arm-linux-tdep.c: Including headers needed to perform the parsing
7947 of SystemTap probes' arguments.
7948 (arm_stap_is_single_operand): New function.
7949 (arm_stap_parse_special_token): Likewise.
7950 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7951 probes' arguments parser.
7952 * ax-gdb.c (require_rvalue): Removing static declaration.
7953 (gen_expr): Likewise.
7954 * ax-gdb.h (gen_expr): Declaring function.
7955 (require_rvalue): Likewise.
7956 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7957 (bkpt_probe_breakpoint_ops): New variable.
7958 (momentary_breakpoint_from_master): Set the `probe' value.
7959 (add_location_to_breakpoint): Likewise.
7960 (break_command_1): Using proper breakpoint_ops according to the
7961 argument passed by the user in the command line.
7962 (bkpt_probe_insert_location): New function.
7963 (bkpt_probe_remove_location): Likewise.
7964 (bkpt_probe_create_sals_from_address): Likewise.
7965 (bkpt_probe_decode_linespec): Likewise.
7966 (tracepoint_probe_create_sals_from_address): Likewise.
7967 (tracepoint_probe_decode_linespec): Likewise.
7968 (tracepoint_probe_breakpoint_ops): New variable.
7969 (trace_command): Using proper breakpoint_ops according to the
7970 argument passed by the user in the command line.
7971 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7972 static probes on breakpoints and tracepoints.
7973 * breakpoint.h (struct bp_location) <probe>: New field.
7974 * cli-utils.c (skip_spaces_const): New function.
7975 (extract_arg): Likewise.
7976 * cli-utils.h (skip_spaces_const): Likewise.
7977 (extract_arg): Likewise.
7978 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7979 * configure.ac: Append `stap-probe.o' to be generated when ELF
7980 support is present.
7981 * configure: Regenerate.
7982 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7983 * elfread.c: Include `probe.h' and `arch-utils.h'.
7984 (probe_key): New variable.
7985 (elf_get_probes): New function.
7986 (elf_get_probe_argument_count): Likewise.
7987 (elf_evaluate_probe_argument): Likewise.
7988 (elf_compile_to_ax): Likewise.
7989 (elf_symfile_relocate_probe): Likewise.
7990 (stap_probe_key_free): Likewise.
7991 (elf_probe_fns): New variable.
7992 (elf_sym_fns): Add `sym_probe_fns' value.
7993 (elf_sym_fns_lazy_psyms): Likewise.
7994 (elf_sym_fns_gdb_index): Likewise.
7995 (_initialize_elfread): Initialize objfile cache for static
7996 probes.
7997 * gdb_vecs.h (struct probe): New forward declaration.
7998 (probe_p): New VEC declaration.
7999 * gdbarch.c: Regenerate.
8000 * gdbarch.h: Regenerate.
8001 * gdbarch.sh (stap_integer_prefix): New variable.
8002 (stap_integer_suffix): Likewise.
8003 (stap_register_prefix): Likewise.
8004 (stap_register_suffix): Likewise.
8005 (stap_register_indirection_prefix): Likewise.
8006 (stap_register_indirection_suffix): Likewise.
8007 (stap_gdb_register_prefix): Likewise.
8008 (stap_gdb_register_suffix): Likewise.
8009 (stap_is_single_operand): New function.
8010 (stap_parse_special_token): Likewise.
8011 (struct stap_parse_info): Forward declaration.
8012 * i386-tdep.c: Including headers needed to perform the parsing
8013 of SystemTap probes' arguments.
8014 (i386_stap_is_single_operand): New function.
8015 (i386_stap_parse_special_token): Likewise.
8016 (i386_elf_init_abi): Initializing proper fields used by SystemTap
8017 probes' arguments parser.
8018 * i386-tdep.h (i386_stap_is_single_operand): New function.
8019 (i386_stap_parse_special_token): Likewise.
8020 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
8021 * mipsread.c (ecoff_sym_fns): Likewise.
8022 * objfiles.c (objfile_relocate1): Support relocation for static
8023 probes.
8024 * parse.c (prefixify_expression): Remove static declaration.
8025 (initialize_expout): Likewise.
8026 (reallocate_expout): Likewise.
8027 * parser-defs.h (initialize_expout): Declare function.
8028 (reallocate_expout): Likewise.
8029 (prefixify_expression): Likewise.
8030 * ppc-linux-tdep.c: Including headers needed to perform the parsing
8031 of SystemTap probes' arguments.
8032 (ppc_stap_is_single_operand): New function.
8033 (ppc_stap_parse_special_token): Likewise.
8034 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
8035 probes' arguments parser.
8036 * probe.c: New file, for generic statically defined probe support.
8037 * probe.h: Likewise.
8038 * s390-tdep.c: Including headers needed to perform the parsing of
8039 SystemTap probes' arguments.
8040 (s390_stap_is_single_operand): New function.
8041 (s390_gdbarch_init): Initializing proper fields used by SystemTap
8042 probes' arguments parser.
8043 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
8044 * stap-probe.c: New file, for SystemTap probe support.
8045 * stap-probe.h: Likewise.
8046 * symfile.h: Include `gdb_vecs.h'.
8047 (struct sym_probe_fns): New struct.
8048 (struct sym_fns) <sym_probe_fns>: New field.
8049 * symtab.c (init_sal): Initialize `probe' field.
8050 * symtab.h (struct probe): Forward declaration.
8051 (struct symtab_and_line) <probe>: New field.
8052 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
8053 locations.
8054 (stop_tracing): Likewise.
8055 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
8056
22d2b532
SDJ
80572012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
8058 Tom Tromey <tromey@redhat.com>
8059
8060 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
8061 and to compile agent expressions.
8062 * infrun.c (siginfo_make_value): New argument `ignore'.
8063 (siginfo_funcs): New struct.
8064 (_initialize_infrun): New argument when calling
8065 `create_internalvar_type_lazy'.
8066 * thread.c (thread_id_make_value): New argument `ignore'.
8067 (thread_funcs): New struct.
8068 (_initialize_thread): New argument when calling
8069 `create_internalvar_type_lazy'.
8070 * tracepoint.c (sdata_make_value): New argument `ignore'.
8071 (sdata_funcs): New struct.
8072 (_initialize_tracepoint): New argument when calling
8073 `create_internalvar_type_lazy'.
8074 * value.c (make_value): New struct.
8075 (create_internalvar_type_lazy): New argument `data'.
8076 (compile_internalvar_to_ax): New function.
8077 (value_of_internalvar): Properly handling `make_value' case.
8078 (clear_internalvar): Likewise.
8079 (show_convenience): Adding `TRY_CATCH' block.
8080 * value.h (internalvar_make_value): Delete, replace by...
8081 (struct internalvar_funcs): ... this.
8082 (create_internalvar_type_lazy) <fun>: Delete argument.
8083 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
8084 (compile_internalvar_to_ax): New function.
8085 * windows-tdep.c (tlb_make_value): New argument `ignore'.
8086 (tlb_funcs): New struct.
8087 (_initialize_windows_tdep): New argument when calling
8088 `create_internalvar_type_lazy'.
8089
91da1414
MW
80902012-04-27 Mark Wielaard <mjw@redhat.com>
8091
8092 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
8093 see whether it is an address or a constant offset from DW_AT_low_pc.
8094 (dwarf2_record_block_ranges): Likewise.
8095 (read_partial_die): Likewise.
8096
4ab9d8ec
MW
80972012-04-26 Mark Wielaard <mjw@redhat.com>
8098
8099 * MAINTAINERS (Write After Approval): Add myself to the list.
8100
a0911fd0
MR
81012012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8102
8103 * proc-utils.h (proc_prettyprint_signalset): New prototype.
8104 (proc_prettyprint_signal): Likewise.
8105 (proc_prettyprint_faultset): Likewise.
8106 (proc_prettyprint_fault): Likewise.
8107 (proc_prettyprint_actionset): Likewise.
8108 (proc_prettyprint_flags): Move to new proc-flags.c section.
8109 (proc_prettyfprint_flags): New prototype.
8110 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
8111 (proc_syscall, proc_cursig): Likewise.
8112 (proc_set_kill_on_last_close): Likewise.
8113 (proc_unset_kill_on_last_close): Likewise.
8114 (proc_set_watchpoint): Make static.
8115 (proc_delete_dead_threads): Likewise.
8116 (procfs_set_watchpoint): Likewise.
8117 (_initialize_procfs): Add prototype.
8118 * proc-events.c: Include proc-utils.h.
8119 (init_syscall_table): Make static.
8120 * proc-api.c (_initialize_proc_api): Add prototype.
8121 * proc-flags.c: Include proc-utils.h.
8122
9009e1ae
MR
81232012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
8124
8125 * configure.ac: Add AC_ARG_PROGRAM.
8126 * configure: Regenerate.
8127
4fae6e18
JK
81282012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 Fix DW_AT_lower_bound defaults for DWARF-4+.
8131 * dwarf2read.c (read_subrange_type): Remove initialization of low and
8132 high. New variable low_default_is_valid. Implement DWARF-4+
8133 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
8134 no default by the DWARF standard.
8135
14132e89 81362012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 8137 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
8138
8139 * infrun.c (handle_inferior_event): Move the check for return
8140 trampolines ahead of the check for function trampolines.
8141 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
8142 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
8143 (mips_str_mips16_ret_stub): Likewise.
8144 (mips_str_call_fp_stub): Likewise.
8145 (mips_str_call_stub): Likewise.
8146 (mips_str_fn_stub): Likewise.
8147 (mips_str_pic): Likewise.
8148 (mips_in_frame_stub): New function.
8149 (mips_unwind_pc): Return the return address rather than the PC
8150 if the PC of an intermediate frame is inside a call thunk.
8151 (mips_is_stub_suffix): New function.
8152 (mips_is_stub_mode): Likewise.
8153 (mips_get_mips16_fn_stub_pc): Likewise.
8154 (mips_skip_mips16_trampoline_code): Update to handle all the
8155 currently generated stub types. Don't recurse into __fn_stub
8156 thunks. Remove heuristics to handle stubs beyond etext/_etext.
8157 Use cooked register accesses.
8158 (mips_in_return_stub): Reintroduce function.
8159 (mips_skip_trampoline_code): Traverse trampolines recursively.
8160 (mips_gdbarch_init): Handle MIPS16 return trampolines.
8161
518f0db5 81622012-04-26 Joel Brobecker <brobecker@adacore.com>
8163
8164 GDB 7.4.1 released.
8165
3184d3f9
JL
81662012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
8167
8168 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
8169 * features/arm-with-m-vfp-d16.xml: New file. Describes
8170 Cortex-M with VFPv4-sp-d16 FPU register layout.
8171 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
8172 * features/arm-with-m-vfp-d16.c: New. Generated from above.
8173 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
8174 (arm-register_g_packet_guesses): Add vfp-d16 guess.
8175 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
8176
b6201d44
DE
81772012-04-25 Doug Evans <dje@google.com>
8178
8179 * cli/cli-decode.c (print_doc_line): Use stream instead of
8180 current_uiout.
8181
4e2f8df6
SDJ
81822012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
8183
8184 * features/arm-with-iwmmxt.c: Regenerate.
8185 * features/arm-with-m-fpa-layout.c: Likewise.
8186 * features/arm-with-m.c: Likewise.
8187 * features/arm-with-neon.c: Likewise.
8188 * features/arm-with-vfpv2.c: Likewise.
8189 * features/arm-with-vfpv3.c: Likewise.
8190 * features/mips-dsp-linux.c: Likewise.
8191 * features/mips-linux.c: Likewise.
8192 * features/mips64-dsp-linux.c: Likewise.
8193 * features/mips64-linux.c: Likewise.
8194 * features/s390-linux32.c: Likewise.
8195 * features/s390-linux32v1.c: Likewise.
8196 * features/s390-linux32v2.c: Likewise.
8197 * features/s390-linux64.c: Likewise.
8198 * features/s390-linux64v1.c: Likewise.
8199 * features/s390-linux64v2.c: Likewise.
8200 * features/s390x-linux64.c: Likewise.
8201 * features/s390x-linux64v1.c: Likewise.
8202 * features/s390x-linux64v2.c: Likewise.
8203 * features/tic6x-c62x-linux.c: Likewise.
8204 * features/tic6x-c62x.c: Likewise.
8205 * features/tic6x-c64x-linux.c: Likewise.
8206 * features/tic6x-c64x.c: Likewise.
8207 * features/tic6x-c64xp-linux.c: Likewise.
8208 * features/tic6x-c64xp.c: Likewise.
8209 * target-descriptions.c: Only generate `field_type' and `type'
8210 variables when needed.
8211
2def3e66
JB
82122012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
8213
8214 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
8215
a766d390
DE
82162012-04-25 Doug Evans <dje@google.com>
8217
8218 Initial pass at Go language support.
8219 * NEWS: Mention Go.
8220 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
8221 go-valprint.c.
8222 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
8223 (YYFILES): Add go-exp.c.
8224 (YYOBJ): Add go-exp.o.
8225 (local-maintainer-clean): Delete go-exp.c.
8226 * defs.h (enum language): Add language_go.
8227 * dwarf2read.c: #include "go-lang.h".
8228 (fixup_go_packaging): New function.
8229 (process_full_comp_unit): Call it when processing Go CUs.
8230 (dwarf2_physname): Add Go support.
8231 (read_file_scope): Handle missing language spec for GNU Go.
8232 (set_cu_language): Handle DW_LANG_Go.
8233 * go-exp.y: New file.
8234 * go-lang.h: New file.
8235 * go-lang.c: New file.
8236 * go-typeprint.c: New file.
8237 * go-valprint.c: New file.
8238 * symtab.c: #include "go-lang.h".
8239 (symbol_set_language): Handle language_go.
8240 (symbol_find_demangled_name, symbol_set_names): Ditto.
8241 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
8242
4e2af517
JM
82432012-04-24 Jim Meyering <meyering@redhat.com>
8244
8245 avoid a few strncpy-induced buffer overruns
8246 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
8247 fname and psargs before trying to concatenate.
8248 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
8249 "name" before applying strchr.
8250
b77b7f52
SCR
82512012-04-25 Siva Chandra Reddy <sivachandra@google.com>
8252
8253 * CONTRIBUTE: Use unified diff instead of context diff when
8254 generating patches.
8255
6321c22a
MR
82562012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8257
8258 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
8259 code. Handle JR.HB correctly.
8260
742c84f6
MR
82612012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
8262
8263 * mips-tdep.c
8264 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
8265 with the other MIPS16 helpers.
8266
7fc7e0c3
SDJ
82672012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
8268
8269 * observer.sh: Conditionally declare `args', thus cleaning up
8270 unused instances of this variable.
8271
20388dd6
YQ
82722012-04-24 Yao Qi <yao@codesourcery.com>
8273
8274 Revert this patch to allow breakpoint always-inserted
8275 in record target.
8276 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
8277 * breakpoint.c: Include record.h.
8278 (breakpoints_always_inserted_mode): Return false when the record
8279 target is in use.
20388dd6
YQ
8280
8281 * breakpoint.c (iterate_over_bp_locations): New.
8282 * breakpoint.h: Declare.
8283 New typedef walk_bp_location_callback.
8284 * record.c (record_open): Call record_init_record_breakpoints.
8285 (record_sync_record_breakpoints): New.
8286 (record_init_record_breakpoints): New.
8287 * NEWS: Mention supporting breakpoint always-inserted mode in
8288 record target.
8289
4734f50e
MK
82902012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
8291
8292 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
8293 any thread.
8294
c326b90e
YQ
82952012-04-24 Yao Qi <yao@codesourcery.com>
8296
8297 * breakpoint.c (ep_is_catchpoint): Renamed to ...
8298 (is_catchpoint): ... it.
8299 (print_one_breakpoint_location): Caller update.
8300 * breakpoint.h: Update declaration.
8301
d8fb5a1e
DM
83022012-04-23 David S. Miller <davem@davemloft.net>
8303
8304 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
8305
34431a2a
TT
83062012-04-23 Tom Tromey <tromey@redhat.com>
8307
8308 * buildsym.c (add_free_pendings): Remove.
8309 * buildsym.h (add_free_pendings): Remove.
8310
4568ecf9
DE
83112012-04-23 Doug Evans <dje@google.com>
8312
8313 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
8314 attr.u.unsnd instead of attr.u.addr.
8315 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
8316 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
8317 DW_FORM_ref_udata.
8318 (dump_die_shallow): Update cases DW_FORM_ref_addr,
8319 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
8320 DW_FORM_ref_udata.
8321 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
8322
dca9aa3a
MR
83232012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
8324
8325 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
8326 (mips_o32_return_value): Likewise.
8327 (mips_o64_return_value): Likewise.
8328
c8ea1972
PH
83292012-04-21 Paul Hilfinger <hilfinger@adacore.com>
8330
8331 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
8332 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
8333 their treatment in eval.c.
c8ea1972 8334
8d1b3521
DM
83352012-04-21 David S. Miller <davem@davemloft.net>
8336
8337 * sparc-tdep.c (X_DISP10): Define.
8338 (sparc_analyze_control_transfer): Handle compare-and-branch.
8339
03145bf4
JL
83402012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
8341
8342 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
8343 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
8344
004159a2 83452012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 8346 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
8347
8348 * mips-tdep.c (mips_float_register_p): New function.
8349 (mips_convert_register_float_case_p): Use mips_float_register_p.
8350 (mips_register_type): Likewise.
8351 (mips_print_register): Likewise.
8352 (print_gp_register_row): Likewise.
8353 (mips_print_registers_info): Likewise.
8354
7f0e6aae
MR
83552012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
8356
8357 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
8358 of mips16 symbols.
8359
bc17beea
AP
83602012-04-20 Andrew Pinski <apinski@cavium.com>
8361
8362 * MAINTAINERS (Write After Approval): Add myself to the list.
8363
1730a5a5
SDJ
83642012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8365
8366 * MAINTAINERS: Update my e-mail address.
8367
38ea300a
PA
83682012-04-20 Pedro Alves <palves@redhat.com>
8369
8370 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
8371 $srcdir.
8372 * configure: Regenerate.
8373
111dfaae
SDJ
83742012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
8375
8376 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
8377 declaration.
8378 * gdb_vecs.h: Declare `const_char_ptr' VEC.
8379
4fb2c64a
JK
83802012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8381
8382 Fix compilation compatibility with python-2.4
8383 * python/py-type.c (convert_field): Cast ADDRSTRING for
8384 PyObject_SetAttrString as non-const. New comment.
8385
6328eb38
TT
83862012-04-19 Tom Tromey <tromey@redhat.com>
8387
8388 * top.c (quit_target): Use all_cleanups.
8389 * main.c (captured_command_loop): Use all_cleanups.
8390 * exceptions.c (throw_exception): Use all_cleanups.
8391
c971b7fa
PA
83922012-04-19 Pedro Alves <palves@redhat.com>
8393
8394 * Makefile.in (GNULIB_BUILDDIR): New.
8395 (LIBGNU, INCGNU, GNULIB_H): Adjust.
8396 (SUBDIRS): Add $(GNULIB_BUILDDIR).
8397 (CLEANDIRS). Remove gnulib/import.
8398 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
8399 (all-lib): Ditto.
8400 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
8401 (gnulib/import/Makefile): Replace gnulib/import with
8402 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
8403 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
8404 (aclocal_m4_deps): Remove the gnulib dependencies. Add
8405 acx_configure_dir.m4.
8406 * acinclude.m4: Include acx_configure_dir.m4.
8407 * acx_configure_dir.m4: New file.
8408 * aclocal.m4: Regenerate.
a09130f9
PA
8409 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
8410 calls. Configure gnulib using ACX_CONFIGURE_DIR.
8411 (GNULIB): New variable.
8412 (GNULIB_STDINT_H): Adjust.
8413 (AC_OUTPUT): Don't output gnulib/Makefile.
8414 * gdb/defs.h: Include build-gnulib/config.h.
8415 * aclocal.m4: Regenerate.
8416 * config.in: Regenerate.
8417 * configure: Regenerate.
8418
8419 * gnulib/Makefile.in: New file.
8420 * gnulib/configure.ac: New file.
8421 * gnulib/aclocal.m4: New file.
8422 * gnulib/config.in: New file.
8423 * gnulib/configure: New file.
c971b7fa
PA
8424 * gnulib/: Re-run gnulib-tool to adjust.
8425
b10faa68
DE
84262012-04-19 Doug Evans <dje@google.com>
8427
8428 * cleanups.h (struct cleanup): Move to cleanups.c.
8429 (make_cleanup_dtor_ftype): New typedef.
8430 (make_cleanup_dtor): Use it.
8431 (ALL_CLEANUPS): Replace with ...
8432 (all_cleanups): ... this. Declare. All uses updated.
8433 * cleanups.c: #include "gdb_assert.h".
8434 (sentinel_cleanup): New static global.
8435 (SENTINEL_CLEANUP): Define.
8436 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
8437 (make_my_cleanup2): Assert result is non-NULL.
8438 (all_cleanups): New function.
8439 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
8440 of NULL.
8441
d8c267cc
PA
84422012-04-19 Pedro Alves <palves@redhat.com>
8443
8444 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
8445 Adjust paths to gnulib imported files.
8446
809277f8
PA
84472012-04-19 Pedro Alves <palves@redhat.com>
8448
8449 * gnulib/: Move whole directory ...
8450 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
8451 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
8452 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
8453 (aclocal_m4_deps): Adjust.
8454 * aclocal.m4: Regenerate.
8455 * configure: Regenerate.
8456 * configure.ac: Adjust AC_OUTPUT output.
8457
aad9eab9
YQ
84582012-04-19 Yao Qi <yao@codesourcery.com>
8459
8460 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
8461 (vec.o): New rule.
8462 * vec.c: Move it ...
8463 * common/vec.c: ... here.
8464 * vec.h: Move it ...
8465 * common/vec.h: ... here.
8466
48fe4669
YQ
84672012-04-19 Yao Qi <yao@codesourcery.com>
8468
8469 * gdb-code-style.el: New.
8470
770d76d7
PA
84712012-04-18 Pedro Alves <palves@redhat.com>
8472
8473 Update gnulib from latest git.
8474 (639ea5ae15e39fe48d43e04864b2997301e4b969)
8475
8476 * gnulib/Makefile.am: Update.
8477 * gnulib/dummy.c: Update.
8478 * gnulib/extra/arg-nonnull.h: Update.
8479 * gnulib/extra/c++defs.h: Update.
8480 * gnulib/extra/update-copyright: Update.
8481 * gnulib/extra/warn-on-use.h: Update.
8482 * gnulib/inttypes.in.h: Update.
8483 * gnulib/m4/00gnulib.m4: Update.
8484 * gnulib/m4/extensions.m4: Update.
8485 * gnulib/m4/gnulib-cache.m4: Update.
8486 * gnulib/m4/gnulib-common.m4: Update.
8487 * gnulib/m4/gnulib-comp.m4: Update.
8488 * gnulib/m4/gnulib-tool.m4: Update.
8489 * gnulib/m4/include_next.m4: Update.
8490 * gnulib/m4/inttypes-pri.m4: Update.
8491 * gnulib/m4/inttypes.m4: Update.
8492 * gnulib/m4/longlong.m4: Update.
8493 * gnulib/m4/memchr.m4: Update.
8494 * gnulib/m4/memmem.m4: Update.
8495 * gnulib/m4/mmap-anon.m4: Update.
8496 * gnulib/m4/multiarch.m4: Update.
8497 * gnulib/m4/onceonly.m4: Update.
8498 * gnulib/m4/stddef_h.m4: Update.
8499 * gnulib/m4/stdint.m4: Update.
8500 * gnulib/m4/string_h.m4: Update.
8501 * gnulib/m4/warn-on-use.m4: Update.
8502 * gnulib/m4/wchar_h.m4: Update.
8503 * gnulib/m4/wchar_t.m4: Update.
8504 * gnulib/m4/wint_t.m4: Update.
8505 * gnulib/memchr.c: Update.
8506 * gnulib/memmem.c: Update.
8507 * gnulib/stddef.in.h: Update.
8508 * gnulib/stdint.in.h: Update.
8509 * gnulib/str-two-way.h: Update.
8510 * gnulib/string.in.h: Update.
8511 * gnulib/wchar.in.h: Update.
8512
8513 * gnulib/extra/arg-nonnull.h: Delete.
8514 * gnulib/extra/c++defs.h: Delete.
8515 * gnulib/extra/warn-on-use.h: Delete.
8516 * gnulib/m4/wchar_h.m4: Delete.
8517 * gnulib/m4/wint_t.m4: Delete.
8518 * gnulib/wchar.in.h: Delete.
8519
8520 * gnulib/extra/snippets/arg-nonnull.h: New.
8521 * gnulib/extra/snippets/c++defs.h: New.
8522 * gnulib/extra/snippets/warn-on-use.h: New.
8523
8524 * aclocal.m4: Regenerate.
8525 * config.in: Regenerate.
8526 * configure: Regenerate.
8527 * gnulib/Makefile.in: Regenerate.
8528
174e088e
PA
85292012-04-18 Pedro Alves <palves@redhat.com>
8530
8531 Reimport the update-copyright module from gnulib
8532 (250b80067c1e1d8faa0c42fb572f721975b929c5).
8533
8534 * configure: Regenerate.
8535 * gnulib/Makefile.am: Update.
8536 * gnulib/Makefile.in: Regenerate.
8537 * gnulib/extra/update-copyright: Update.
8538 * gnulib/m4/gnulib-cache.m4: Update.
8539 * gnulib/m4/gnulib-comp.m4: Update.
8540
7f533142
JB
85412012-04-18 Tristan Gingold <gingold@adacore.com>
8542
8543 * configure.ac (aix): Put -lpthread into libs.
8544 * configure: Regenerate.
8545
001822aa
TT
85462012-04-18 Tom Tromey <tromey@redhat.com>
8547
8548 * linespec.c (convert_linespec_to_sals): Don't use
8549 SYMBOL_OBJ_SECTION.
8550 (compare_msymbols): Arguments are minsym_and_objfile, not
8551 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
8552
db026a31
PA
85532012-04-18 Pedro Alves <palves@redhat.com>
8554
8555 Revert gnulib/ part of:
8556 2011-01-01 Joel Brobecker <brobecker@adacore.com>
8557 Copyright year update in most files (performed by copyright.sh).
8558
12df843f
JK
85592012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
8560
8561 Fix 64-bit constants on 32-bit hosts.
8562 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
8563 from unsigned long to ULONGEST.
8564 (read_signed_leb128): Change declaration return type from long to
8565 LONGEST.
8566 (dwarf2_const_value_attr): Change declaration parameter value from long
8567 to LONGEST.
8568 (dwarf2_compute_name): Change variable value from long to LONGEST.
8569 (read_unsigned_leb128): Change return type, variable result and some
8570 casts from unsigned long to ULONGEST.
8571 (read_signed_leb128): Change return type, variable result and some
8572 casts from long to LONGEST.
8573 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
8574 value from long to LONGEST.
8575 (dwarf2_const_value): Change variable value from long to LONGEST.
8576 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
8577 plongest and hex_string.
8578 * symtab.h (struct general_symbol_info): Change ivalue from long to
8579 LONGEST, remove the comment.
8580 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
8581 Change SYMBOL_VALUE format strings to use plongest and hex_string.
8582
14e75d8e
JK
85832012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
8584
8585 PR symtab/7259:
8586 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
8587 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
8588 (ada_discrete_type_low_bound): Fix function comment. Use
8589 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
8590 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
8591 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8592 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
8593 Use TYPE_FIELD_ENUMVAL.
8594 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
8595 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8596 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
8597 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
8598 TYPE_CODE_ENUM.
8599 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
8600 * dwarf2read.c (process_enumeration_scope): Likewise.
8601 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
8602 field.bitpos.
8603 (class StructMainTypePrettyPrinter): Support also
8604 FIELD_LOC_KIND_ENUMVAL.
8605 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
8606 TYPE_CODE_ENUM.
8607 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8608 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
8609 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
8610 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
8611 field enumval.
8612 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
8613 accommodate enumval.
8614 (struct call_site): Adjust loc_kind to accommodate enumval.
8615 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
8616 (TYPE_FIELD_ENUMVAL): New macros.
8617 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
8618 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
8619 TYPE_CODE_ENUM.
8620 * p-typeprint.c (pascal_type_print_base): Likewise.
8621 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
8622 enumval.
8623 * python/lib/gdb/types.py (make_enum_dict): Likewise.
8624 * python/py-type.c (convert_field): New variable addrstring. Use
8625 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
8626 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
8627 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
8628 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
8629 TYPE_CODE_ENUM.
8630 * valprint.c (generic_val_print): Likewise.
8631
380bca97
DE
86322012-04-17 Doug Evans <dje@google.com>
8633
dcc07052
DE
8634 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
8635
380bca97
DE
8636 * dwarf2read.c: Whitespace fixes.
8637 (lookup_signatured_type): Tweak comment.
8638 (get_die_type_at_offset): Fix comment.
8639
ec92004f
JB
86402012-04-17 Joel Brobecker <brobecker@adacore.com>
8641
8642 * xcoffread.c (xcoff_secnum_to_sections): New function.
8643 (secnum_to_section, secnum_to_bfd_section): Reimplement
8644 using xcoff_secnum_to_sections. Rename "secnum" parameter
8645 into "n_scnum".
8646 (RECORD_MINIMAL_SYMBOL): Delete.
8647 (record_minimal_symbol): New function.
8648 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
8649 by call to record_minimal_symbol and set misc_func_recorded
8650 to 1. Set last_csect_sec to the XCOFF section index instead
8651 of GDB's section_offset index. Update calls to
8652 prim_record_minimal_symbol_and_info to pass the BFD section
8653 as well.
8654
40301fb7
JB
86552012-04-17 Joel Brobecker <brobecker@adacore.com>
8656
8657 * xcoffread.c (read_xcoff_symtab): Delete variables
8658 last_csect_val and last_csect_sec and associated code.
8659
e0088cfd
DE
86602012-04-17 Doug Evans <dje@google.com>
8661
58d5e2c3
DE
8662 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
8663 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8664 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
8665 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
8666
c27f5738
DE
8667 * cleanups.h: New file.
8668 * cleanups.c: New file.
8669 * Makefile.in (SFILES): Add cleanups.c.
8670 (HFILES_NO_SRCDIR): Add cleanups.h.
8671 (COMMON_OBS): Add cleanups.o.
8672 * defs.h (struct cleanup): Moved to cleanups.h.
8673 (do_cleanups,do_final_cleanups): Ditto.
8674 (discard_cleanups,discard_final_cleanups): Ditto
8675 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8676 (save_cleanups,save_final_cleanups): Ditto.
8677 (restore_cleanups,restore_final_cleanups): Ditto.
8678 (null_cleanup): Ditto.
8679 (make_my_cleanup,make_my_cleanup2): Ditto.
8680 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8681 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
8682 (do_cleanups,do_final_cleanups): Ditto.
8683 (discard_cleanups,discard_final_cleanups): Ditto
8684 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
8685 (save_cleanups,save_final_cleanups): Ditto.
8686 (restore_cleanups,restore_final_cleanups): Ditto.
8687 (null_cleanup): Ditto.
8688 (make_my_cleanup,make_my_cleanup2): Ditto.
8689 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
8690
e0088cfd
DE
8691 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
8692 make_my_cleanup.
8693 (make_cleanup_dyn_string_delete): Ditto.
8694 (make_cleanup_ui_file_delete): Ditto.
8695 (make_cleanup_ui_out_redirect_pop): Ditto.
8696 (make_cleanup_free_section_addr_info): Ditto.
8697 (make_cleanup_restore_integer): Ditto.
8698 (make_cleanup_unpush_target): Ditto.
8699 (make_cleanup_value_free_to_mark): Ditto.
8700 (make_cleanup_value_free): Ditto.
8701 (make_cleanup_free_so): Ditto.
8702
4dc84fd1
JK
87032012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8704
8705 New option "set debug auto-load".
8706 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
8707 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
8708 (auto_load_safe_path_vec_update)
8709 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
8710 if DEBUG_AUTO_LOAD.
8711 (file_is_auto_load_safe): New parameters debug_fmt and ....
8712 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
8713 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
8714 caller by explanatory string.
8715 (_initialize_auto_load): Register "set debug auto-load".
8716 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
8717 and ....
8718 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8719 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
8720 by explanatory string.
8721 * main.c (captured_main): Likewise.
8722 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
8723 (source_section_scripts): Likewise.
8724
bccbefd2
JK
87252012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8726
8727 New option "set auto-load safe-path".
8728 * NEWS: New commands "set auto-load safe-path"
8729 and "show auto-load safe-path".
8730 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
8731 (auto_load_safe_path, auto_load_safe_path_vec)
8732 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
8733 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
8734 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
8735 (source_gdb_script_for_objfile): New variable is_safe. Call
8736 file_is_auto_load_safe. Return if it is not.
8737 (struct loaded_script): New field loaded.
8738 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
8739 (print_script): Use LOADED indicator instead of FULL_PATH. Change
8740 output "Missing" to "No".
8741 (_initialize_auto_load): New variable cmd. Initialize
8742 auto_load_safe_path. Register "set auto-load safe-path",
8743 "show auto-load safe-path" and "add-auto-load-safe-path".
8744 * auto-load.h (maybe_add_script): Add parameter loaded.
8745 (file_is_auto_load_safe): New declaration.
8746 * config.in: Regenerate.
8747 * configure: Regenerate.
8748 * configure.ac: New parameters --with-auto-load-safe-path
8749 and --without-auto-load-safe-path.
8750 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
8751 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
8752 * main.c (captured_main): Check file_is_auto_load_safe for
8753 LOCAL_GDBINIT.
8754 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
8755 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
8756 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
8757 not.
8758
bf88dd68
JK
87592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8760
8761 auto-load: Implementation.
8762 * NEWS: New descriptions for "info auto-load",
8763 "info auto-load gdb-scripts", "info auto-load python-scripts",
8764 "info auto-load local-gdbinit" and "info auto-load libthread-db".
8765 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
8766 and "show auto-load-scripts". New description for "set auto-load",
8767 "show auto-load", "set auto-load gdb-scripts",
8768 "show auto-load gdb-scripts", "set auto-load python-scripts",
8769 "show auto-load python-scripts", "set auto-load local-gdbinit",
8770 "show auto-load local-gdbinit", "set auto-load libthread-db" and
8771 "show auto-load libthread-db".
8772 * auto-load.c: Remove include python/python-internal.h. Add includes
8773 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
8774 cli/cli-setshow.h.
8775 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
8776 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
8777 (gdbpy_global_auto_load): Rename to ...
8778 (global_auto_load): ... here.
8779 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8780 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
8781 (script_language_gdb, source_gdb_script_for_objfile): New.
8782 (struct loaded_script): New field language.
8783 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
8784 LANGUAGE.
8785 (maybe_add_script): Add parameter language. Drop redundant
8786 entry.full_path initialization. Initialize entry.language and
8787 (*slot)->language.
8788 (auto_load_objfile_script): Change parameter suffix to language.
8789 Remove the call of maybe_add_script.
8790 Call language->source_script_for_objfile.
8791 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
8792 New.
8793 (collect_matching_scripts): Adjust it for
8794 struct collect_matching_scripts_data.
8795 (auto_load_info_scripts_pattern_nl): New variable.
8796 (info_auto_load_scripts): Rename to ...
8797 (auto_load_info_scripts): ... here, add parameter language. Adjust it
8798 for struct collect_matching_scripts_data.
8799 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
8800 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
8801 (auto_load_show_cmdlist_get, info_auto_load_cmd)
8802 (auto_load_info_cmdlist_get): New.
8803 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
8804 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
8805 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
8806 "info auto-load local-gdbinit".
8807 * auto-load.h (struct script_language): New.
8808 (gdbpy_global_auto_load): Rename to ...
8809 (global_auto_load): ... here.
8810 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
8811 (auto_load_local_gdbinit_loaded): New declarations.
8812 (maybe_add_script): New parameter language.
8813 (auto_load_objfile_script): Change parameter suffix to language.
8814 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
8815 (auto_load_info_scripts, auto_load_set_cmdlist_get)
8816 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
8817 declarations.
8818 * linux-thread-db.c: Include auto-load.h and ctype.h.
8819 (auto_load_thread_db, show_auto_load_thread_db): New.
8820 (struct thread_db_info): New field filename.
8821 (delete_thread_db_info): Call xfree for FILENAME.
8822 (try_thread_db_load): Initialize FILENAME.
8823 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
8824 if !AUTO_LOAD_THREAD_DB.
8825 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
8826 (_initialize_thread_db): Install auto_load_thread_db
8827 as "set auto-load libthread-db" and install info_auto_load_libthread_db
8828 as "info auto-load libthread-db".
8829 * main.c (captured_main): Rename gdbpy_global_auto_load to
8830 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
8831 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
8832 (print_gdb_help): Extend the help for 'local init file'.
8833 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
8834 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
8835 (auto_load_scripts): Rename to ...
8836 (auto_load_python_scripts): ... here, update the comment.
8837 (gdbpy_load_auto_script_for_objfile): New declaration.
8838 (show_auto_load_python_scripts, script_language_python)
8839 (gdbpy_load_auto_script_for_objfile): New.
8840 (source_section_scripts): Refactor the code.
8841 (load_auto_scripts_for_objfile): Rename to ...
8842 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8843 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8844 (info_auto_load_python_scripts): New.
8845 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8846 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8847 Register "set auto-load-scripts" as its deprecated alias. Register
8848 "info auto-load python-scripts". Register "info auto-load-scripts" as
8849 its deprecated alias.
8850 (load_auto_scripts_for_objfile): Rename to ...
8851 (gdbpy_load_auto_scripts_for_objfile): ... here.
8852 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8853 (gdbpy_load_auto_scripts_for_objfile): ... here.
8854
e2207b9a
JK
88552012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8856
8857 auto-load: Move files.
8858 * Makefile.in (SFILES): Add auto-load.c.
8859 (HFILES_NO_SRCDIR): Add auto-load.h.
8860 (COMMON_OBS): Add auto-load.o.
8861 (distclean): Change .gdbinit for gdb-gdb.gdb.
8862 * auto-load.c: New file, with parts from python/py-auto-load.c.
8863 * auto-load.h: New file, with parts from python/python.h.
8864 * configure: Regenerate.
8865 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8866 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8867 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8868 * main.c: Include auto-load.h.
8869 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8870 command.h, observer.h and progspace.h to auto-load.c. Add include
8871 auto-load.h.
8872 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8873 (struct loaded_script, auto_load_pspace_data)
8874 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8875 (hash_loaded_script_entry, eq_loaded_script_entry)
8876 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8877 (maybe_add_script): Move to auto-load.c.
8878 (source_section_scripts): Change maybe_add_script parameters passing,
8879 use script_not_found_warning_print.
8880 (clear_section_scripts, auto_load_objfile_script)
8881 (auto_load_new_objfile, loaded_script_ptr)
8882 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8883 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8884 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8885 auto_load_new_objfile and info_auto_load_scripts initizations to
8886 auto-load.c.
8887 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8888
e4ab2fad
JK
88892012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8890
8891 Code cleanup.
8892 * charset.c (find_charset_names): Remove variables ix and elt.
8893 Use free_char_ptr_vec.
8894 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8895 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8896 debugdir_end. New variable debugdir_len.
8897 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8898 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8899 declarations.
8900 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8901 and elt. Use free_char_ptr_vec.
8902 * source.c (add_path): Remove variables argv, arg and argv_index.
8903 New variables dir_vec, back_to, ix and name.
8904 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8905 make_cleanup_freeargv. Remove variable separator. Simplify the code
8906 no longer expecting DIRNAME_SEPARATOR.
8907 (openp): Remove variable p, p1 and len. New variables dir_vec,
8908 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8909 no longer expecting DIRNAME_SEPARATOR.
8910 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8911 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8912 debugdir_end.
8913 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8914 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8915 (dirnames_to_char_ptr_vec): New functions.
8916
5ee4ed9f
JK
89172012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8918
8919 Code cleanup.
8920 * source.c (add_path): Remove always true conditional 'p == 0' and
8921 unindent its code block.
8922
f41f5e61
PA
89232012-04-17 Pedro Alves <palves@redhat.com>
8924
8925 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8926 (FIELD_BITPOS_LVAL): ... this.
8927 (FIELD_BITPOS): New.
8928 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8929 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8930 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8931 SET_FIELD_BITPOS.
8932 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8933 SET_FIELD_BITPOS.
8934 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8935 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8936 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8937 SET_FIELD_BITPOS.
8938
945b3a32
JK
89392012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8940
8941 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8942 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8943 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8944 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8945 * jv-lang.c (java_link_class_type): Likewise, once.
8946 * stabsread.c (read_enum_type): Likewise.
8947
42476b70
YQ
89482012-04-16 Yao Qi <yao@codesourcery.com>
8949
8950 * common/agent.c (agent_run_command): Add one more parameter `len'.
8951 Update callers.
8952 * common/agent.h: Update declaration.
8953 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8954 Update.
8955 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8956
8264ba82
AG
89572012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8958
8959 PR mi/13393
8960 * value.c (value_actual_type): New function.
8961 * value.h (value_actual_type): New declaration.
8962 * varobj.c (update_type_if_necessary): New function.
8963 (varobj_create): Call value_actual_type instead of
8964 value_type.
8965 (install_dynamic_child): distinct changed and type changed MI variable
8966 objects.
8967 (update_dynamic_varobj_children): Updated for install_dynamic_child
8968 change. All callers updated.
a09130f9 8969 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8970 the value changed and RTTI is used to determine the type.
8971 (create_child_with_value): Call value_actual_type instead of
8972 value_type.
a09130f9 8973 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8974 specify whether the given value should be casted to enclosing type.
8975 All callers updated.
8976
55a8c076
YQ
89772012-04-14 Yao Qi <yao@codesourcery.com>
8978
8979 Import gnulib module inttypes from git
8980 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8981 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8982 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8983 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8984 * aclocal.m4, config.in, configure: Regenerated.
8985 * gnulib/Makefile.am: Update.
8986 * gnulib/Makefile.in: Update.
8987 * gnulib/m4/gnulib-cache.m4: Update.
8988 * gnulib/m4/gnulib-comp.m4: Update.
8989 * gnulib/inttypes.in.h: New.
8990 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8991 * gnulib/m4/inttypes.m4: New.
55a8c076 8992
ca7781d2
LM
89932012-04-13 Luis Machado <lgustavo@codesourcery.com>
8994
8995 * infrun.c (resume): Update PC address to the real PC after
8996 preparing to do displaced stepping.
8997
e319fa28
DE
89982012-04-12 Doug Evans <dje@google.com>
8999
9000 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
9001 All callers updated.
9002
15add3f5
MK
90032012-04-12 Mark Kettenis <kettenis@gnu.org>
9004
9005 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
9006
52dc124a
DE
90072012-04-12 Doug Evans <dje@google.com>
9008
0e50663e
DE
9009 * dwarf2read.c (create_all_type_units): Renamed from
9010 create_debug_types_hash_table. All callers updated.
9011
52dc124a
DE
9012 * dwarf2read.c (create_signatured_type_table_from_index): Rename
9013 local type_sig to sig_type, type_offset to type_offset_in_tu.
9014 (hash_signatured_type): Renamed from hash_type_signature,
9015 all callers updated.
9016 (eq_signatured_type): Renamed from eq_type_signature,
9017 all callers updated.
9018 (create_debug_types_hash_table): Rename local type_sig to sig_type.
9019 (process_enumeration_scope): Ditto.
9020 (lookup_signatured_type_at_offset): Ditto.
9021 (load_full_type_unit, read_signatured_type): Ditto.
9022
248fd3bf
YQ
90232012-04-12 Yao Qi <yao@codesourcery.com>
9024
9025 * remote.c (async_remote_interrupt): Correct function name in
9026 debug message.
9027 (async_remote_interrupt_twice): Ditto.
9028
bc3aa6c3
DE
90292012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
9030
9031 * source.c (find_and_open_source): Consistently pass resulting
9032 full path through xfullpath.
9033
9e529e1d
JK
90342012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
9035
9036 Provide more specific displaced-stepping memory error message.
9037 * infrun.c (displaced_step_prepare): New variable status. Call
9038 target_read_memory instead of read_memory, provide more specific
9039 error message.
9040
82e0cec1
TG
90412012-04-11 Tristan Gingold <gingold@adacore.com>
9042
9043 PR gdb/13901
9044 * darwin-nat.c (darwin_execvp): Revert previous patch.
9045
d987a266
TG
90462012-04-11 Tristan Gingold <gingold@adacore.com>
9047
9048 PR gdb/13901
9049 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
9050 in case of change.
9051
016b7430
TG
90522012-04-11 Tristan Gingold <gingold@adacore.com>
9053
9054 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9055 warning.
9056
06fc020f
SCR
90572012-04-11 Siva Chandra Reddy <sivachandra@google.com>
9058
9059 New command 'explore' which helps explore values and types in
9060 scope.
9061 * NEWS: Add an entry about the new 'explore' command.
9062 * data-directory/Makefile.in: Add gdb/command/explore.py
9063 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 9064 command using the GDB Python API.
06fc020f 9065
de0919f8 90662012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
9067
9068 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
9069 extension in jump target calculation.
9070
de0919f8 90712012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
9072
9073 * mips-tdep.c (mips32_next_pc): Handle JALX.
9074
2f26ef89
YQ
90752012-04-10 Yao Qi <yao@codesourcery.com>
9076
9077 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
9078
2e505b66
YQ
90792012-04-10 Yao Qi <yao@codesourcery.com>
9080
9081 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
9082 and gnulib/m4/gnulib-tool.m4.
9083
0d99eb77
DE
90842012-04-10 Doug Evans <dje@google.com>
9085
9086 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
9087 (load_partial_dies): Clarify comment.
9088 (find_partial_die): Support rereading type units.
9089 Clarify CU handling, if we know offset is in CU, don't search for the
9090 containing CU. Add comment regarding memory waste.
9091
9a82b8ff
L
90922012-04-10 H.J. Lu <hongjiu.lu@intel.com>
9093
9094 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
9095 i386/x32-avx and i386/x32-avx-linux.
9096 (i386/x32-expedite): New.
9097 (i386/x32-linux-expedite): Likewise.
9098 (i386/x32-avx-expedite): Likewise.
9099 (i386/x32-avx-linux-expedite): Likewise.
9100 ($(outdir)/i386/x32.dat): Likewise.
9101 ($(outdir)/i386/x32-linux.dat): Likewise.
9102 ($(outdir)/i386/x32-avx.dat): Likewise.
9103 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
9104
9105 * features/i386/x32-avx-linux.xml: New file.
9106 * features/i386/x32-avx.xml: Likewise.
9107 * features/i386/x32-core.xml: Likewise.
9108 * features/i386/x32-linux.xml: Likewise.
9109 * features/i386/x32.xml: Likewise.
9110
9111 * features/i386/x32-avx-linux.c: New. Generated.
9112 * features/i386/x32-avx.c: Likewise.
9113 * features/i386/x32-linux.c: Likewise.
9114 * features/i386/x32.c: Likewise.
9115 * regformats/i386/x32-avx-linux.dat: Likewise.
9116 * regformats/i386/x32-avx.dat: Likewise.
9117 * regformats/i386/x32-linux.dat: Likewise.
9118 * regformats/i386/x32.dat: Likewise.
9119
ee41036f
TG
91202012-04-10 Tristan Gingold <gingold@adacore.com>
9121
9122 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
9123 code to kill the inferior.
9124
a7aa5b8a
MK
91252012-04-09 Mark Kettenis <kettenis@gnu.org>
9126
9127 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9128 defines.
9129 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9130 defines.
a09130f9 9131 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
9132 (yyvsp): New defines.
9133 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9134 defines.
9135 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9136 defines.
9137 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9138 defines.
9139 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9140 defines.
9141 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
9142 defines.
9143
fb57d452
MK
91442012-04-09 Mark Kettenis <kettenis@gnu.org>
9145
a09130f9 9146 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
9147 (sparc64_store_arguments): Fix coding style.
9148
cdc7b32f
MK
91492012-04-07 Mark Kettenis <kettenis@gnu.org>
9150
9151 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
9152 complex floats, adjust some related comments and tighten a related
9153 assertion.
9154 (sparc64_extract_return_value): Handle complex floats.
9155
7adf1e79
DE
91562012-04-07 Doug Evans <dje@google.com>
9157
9158 * dwarf2read.c (load_partial_dies): Change condition to assert.
9159
50f1ae7b
DE
91602012-04-06 Doug Evans <dje@google.com>
9161
9162 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
9163 "mov %rsp,%rbp".
9164
55fa75c3
KB
91652012-04-05 Kevin Buettner <kevinb@redhat.com>
9166
9167 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
9168 fencepost error.
9169 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
9170 (v850_gdbarch_init): Set `num_regs' as appropriate for the
9171 architecture.
9172
40e084e1
KS
91732012-04-05 Keith Seitz <keiths@redhat.com>
9174
9175 * linespec.c (decode_compound): Remove.
9176 (enum offset_relative_sign): New enum.
9177 (struct line_offset): New struct.
9178 (struct linespec): New struct.
9179 (struct linespec_state): Move file_symtabs,
9180 user_filename, and user_function into struct linespec.
9181 Make result an anonymous struct holding vectors of
9182 symbolp and minsym_and_objfile_d.
9183 Add language member.
9184 (enum ls_token_type): New enum.
9185 (linespec_keywords): New array.
9186 (struct ls_token): New struct.
9187 (struct ls_parser): New struct.
9188 (linespec_lexer_lex_number): New function.
9189 (linespec_lexer_lex_keyword): New function.
9190 (is_ada_operator): New function.
9191 (skip_quote_char): New function.
9192 (copy_token_string): New function.
9193 (is_closing_quote_enclosed): New function.
9194 (find_parameter_list_end): New function.
9195 (linespec_lexer_lex_string): New function.
9196 (linespec_lexer_lex_one): New function.
9197 (linespec_lexer_consume_token): New function.
9198 (linespec_lexer_peek_token): New function.
9199 (cplusplus_error): Remove unused function.
9200 (find_methods): Update comment.
9201 (find_toplevel_char): Return const.
9202 (is_objc_method_format): Remove unused function.
9203 (find_toplevel_string): New function.
9204 (is_linespec_boundary): Remove.
9205 (symbol_not_found_error): New function.
9206 (find_method_overload_end): Remove function.
9207 (unexpected_linespec_error): New function.
9208 (keep_name_info): Remove.
9209 (linespec_parse_line_offset): New function.
9210 (linespec_parse_basic): New function.
9211 (canonicalize_linespec): New function.
9212 (decode_line_internal): Remove.
9213 (create_sals_line_offset): New function adapted from
9214 decode_all_digits.
9215 (convert_linespec_to_sals): New function.
9216 (parse_linespec): New function.
9217 (linespec_parser_new): New function.
9218 (linespec_state_destructor): Change parameter type to
9219 struct linespec_state *.
9220 Add language parameter.
9221 Remove freeing of moved members.
9222 (linespec_parser_delete): New function.
9223 (decode_line_full): Use parse_linespec and linespec_parser_new.
9224 (decode_line_1): Likewise.
9225 (decode_indirect): Rename to ...
9226 (linespec_expression_to_pc): ... this and rewrite
9227 to simply find CORE_ADDR, storing this result for later
9228 conversion to SALs.
9229 (locate_first_half): Remove.
9230 (deocde_objc): Add parameter LS.
9231 Initialize new struct collect_info members.
9232 Handle minimal symbols, too.
9233 (decode_compound): Delete.
9234 (lookup_prefix_sym): Rewrite.
9235 (compare_msymbols): New function.
9236 (find_method): Rewrite.
9237 Do not call cplusplus_error.
9238 (symtabs_from_filename): Rewrite.
9239 (collect_function_symbols): Delete.
9240 (find_function_symbols): Rewrite without ARGPTR-style
9241 processing.
9242 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
9243 (decode_dollar): Adapted and renamed to ...
9244 (linespec_parse_variable): ... this.
9245 (find_linespec_symbols): New function.
9246 (decode_label): Adapted and renamed to ...
9247 (find_label_symbols): ... this.
9248 (decode_digits_list_mode): Add and use LS argument.
9249 (decode_digits_ordinary): Likewise.
9250 (collect_symbols): Do not collect SALs, just symbols and msymbols.
9251 If in list mode, allow any symbol class. Otherwise, only
9252 permit LOC_BLOCK symbols.
9253 (minsym_found): Update comments.
9254 (search_minsyms_for_name): Do not convert the matching symbol
9255 into a SAL. Simply push the symbol and objfile into the
9256 result vector.
9257 (decode_variable): Delete. Contents adapted into
9258 find_linespec_symbols.
9259
9260 * cp-support.c (SKIP_SPACE): Remove.
9261 (operator_tokens): Remove unused global.
9262 (cp_validate_operator): Remove.
9263 * cp-support.h (cp_validate_operator): Remove declaration.
9264
a72c8f6a
JK
92652012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9266
9267 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
9268 for TYPE_VPTR_FIELDNO.
9269 * valprint.c (valprint_check_validity): Make it global, move the
9270 function comment ...
9271 * value.h (valprint_check_validity): ... to this new declaration.
9272
cf9bb588
TG
92732012-04-02 Tristan Gingold <gingold@adacore.com>
9274
9275 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
9276 the STATE32 api for i386 state.
9277 (i386_darwin_store_inferior_registers): Likewise.
9278
17092398
TG
92792012-04-02 Tristan Gingold <gingold@adacore.com>
9280
9281 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
9282 SS offset.
9283 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
9284 format_string.
9285
ece0061f
TG
92862012-04-02 Tristan Gingold <gingold@adacore.com>
9287
9288 PR gdb/13901
d987a266 9289 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 9290
cf65ecd3
JK
92912012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9292
9293 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
9294
9bc3523d
TT
92952012-03-30 Tom Tromey <tromey@redhat.com>
9296
9297 * python/python.c (gdbpy_decode_line): Move cleanup creation out
9298 of TRY_CATCH. Fix error handling.
9299 * python/py-value.c (convert_value_from_python): Move 'old'
9300 declaration to innermost scope.
9301
b1ed564a
JB
93022012-03-29 Joel Brobecker <brobecker@adacore.com>
9303 Andrey Smirnov <andrew.smirnov@gmail.com>
9304
9305 -Wshadow warning fix.
9306 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
9307 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
9308 Adjust code accordingly.
9309
cb8e9b97
JB
93102012-03-29 Joel Brobecker <brobecker@adacore.com>
9311
9312 * ada-lang.c (symbol_completion_add): Rename parameter
9313 "encoded" into "encoded_p". Ajust code and documentation
9314 accordingly.
9315
c0af1706
JB
93162012-03-29 Joel Brobecker <brobecker@adacore.com>
9317 Andrey Smirnov <andrew.smirnov@gmail.com>
9318
9319 -Wshadow warning fix.
9320 * ada-lang.c (symbol_completion_add): Rename parameter
9321 "wild_match" into wild_match_p. Update code and documentation
9322 accordingly.
9323
6ea35997
JB
93242012-03-29 Joel Brobecker <brobecker@adacore.com>
9325
9326 * ada-lang.c (symbol_completion_match): Rename parameter
9327 "encoded" into "encoded_p". Ajust code and documentation
9328 accordingly.
9329
e701b3c0
JB
93302012-03-29 Joel Brobecker <brobecker@adacore.com>
9331 Andrey Smirnov <andrew.smirnov@gmail.com>
9332
9333 -Wshadow warning fix.
9334 * ada-lang.c (symbol_completion_match): Rename parameter
9335 "wild_match" into "wild_match_p". Adjust code and function
9336 documentation accordingly.
9337
5e2336be
JB
93382012-03-29 Joel Brobecker <brobecker@adacore.com>
9339 Andrey Smirnov <andrew.smirnov@gmail.com>
9340
9341 -Wshadow warning fix.
9342 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
9343 "symbol_info" into "info". Adjust code accordingly.
9344 (ada_lookup_symbol): Likewise.
9345
9f88c959
JB
93462012-03-29 Joel Brobecker <brobecker@adacore.com>
9347
9348 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
9349 of this function's documentation.
9350
82ccd55e
JB
93512012-03-29 Joel Brobecker <brobecker@adacore.com>
9352 Andrey Smirnov <andrew.smirnov@gmail.com>
9353
9354 -Wshadow warning fix.
9355 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
9356 variable into "wild_match_p". Adjust code accordingly.
9357
d0a8ab18
JB
93582012-03-29 Joel Brobecker <brobecker@adacore.com>
9359 Andrey Smirnov <andrew.smirnov@gmail.com>
9360
9361 -Wshadow warning fix.
9362 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
9363 parameter into "wild_match_p". Adjust code accordingly.
9364 Document this parameter in the function description.
9365
48b78332
JB
93662012-03-29 Joel Brobecker <brobecker@adacore.com>
9367 Andrey Smirnov <andrew.smirnov@gmail.com>
9368
9369 -Wshadow warning fix.
9370 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
9371 "wild_match" parameter to "wild_match_p" (-Wshadow).
9372
2e6e0353
JB
93732012-03-29 Joel Brobecker <brobecker@adacore.com>
9374
9375 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
9376 in function documentation.
9377
dc4024cd
JB
93782012-03-29 Joel Brobecker <brobecker@adacore.com>
9379 Andrey Smirnov <andrew.smirnov@gmail.com>
9380
9381 -Wshadow warning fix.
9382 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
9383 variable into wild_match_p. Adjust code accordingly.
9384
6c88661c
JB
93852012-03-29 Joel Brobecker <brobecker@adacore.com>
9386 Andrey Smirnov <andrew.smirnov@gmail.com>
9387
9388 * ada-valprint.c (ada_val_print_1): Move the code handling
9389 TYPE_CODE_ENUM inside its own lexical block. Declare
9390 variables len and val there, instead of in the function's
9391 top level block. Avoid declaring deref_val again in a way
9392 that shadows another variable of the same name declared
9393 in one of the up-level blocks. Just re-use the up-level
9394 variable instead.
9395
4e5c77fe
JB
93962012-03-29 Joel Brobecker <brobecker@adacore.com>
9397
9398 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
9399 Replace block_found argument by symbol_info. Adjust
9400 implementation accordingly. Add function documentation.
9401 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
9402 Fix documentation.
9403 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
9404 * ada-exp.y (write_object_renaming): Adjust to new
9405 ada_lookup_encoded_symbol API.
9406
1c0ac8c7
JB
94072012-03-29 Joel Brobecker <brobecker@adacore.com>
9408
9409 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
9410 documentation.
9411
2aaed979
KB
94122012-03-28 Rathish C <rathish.c@kpitcummins.com>
9413
9414 * v850-tdep.c: Add the enum values for mpu and fpu registers.
9415 (v850_register_name): Add the mpu and fpu register names.
9416 (v850e_register_name): Add the mpu and fpu register names.
9417 (v850e2_register_name): New function.
a09130f9 9418 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
9419 bfd_mach_v850e2v3.
9420
927fbba6
JB
94212012-03-28 Joel Brobecker <brobecker@adacore.com>
9422
9423 * NEWS: Add entry for Ada varobj support.
9424
d32cafc7
JB
94252012-03-28 Joel Brobecker <brobecker@adacore.com>
9426
9427 * varobj.c (default_value_is_changeable_p): New function,
9428 extracted from varobj_value_is_changeable_p. Add declaration.
9429 (ada_value_is_changeable_p): New function, extracted from
9430 varobj_value_is_changeable_p. Add declaration.
9431 (struct language_specific): New field "value_is_changeable_p".
9432 (languages): Add entries for new field.
9433 (varobj_create): Set language before calling install_new_value.
9434 (varobj_value_is_changeable_p): Reimplement to call the varobj's
9435 "value_is_changeable_p" language callback.
9436
181875a4
JB
94372012-03-28 Joel Brobecker <brobecker@adacore.com>
9438
9439 * ada-varobj.h, ada-varobj.c: New files.
9440 * Makefile.in (SFILES): Add ada-varobj.c.
9441 (HFILES_NO_SRCDIR): Add ada-varobj.h.
9442 (COMMON_OBS): Add ada-varobj.o.
9443
7a290c40
JB
94442012-03-28 Joel Brobecker <brobecker@adacore.com>
9445
9446 * varobj.c (ada_value_has_mutated): Add declaration. New function.
9447 (struct language_specific): New field "value_has_mutated".
9448 (languages): Set field "value_has_mutated" in each entry of array.
9449 (varobj_value_has_mutated): New function.
9450 (varobj_udpdate): Add handling of type mutation.
9451 (value_of_root): Add handling of type mutation.
9452 (ada_value_has_mutated): New function.
9453
ca9b8b9c
PA
94542012-03-28 Pedro Alves <palves@redhat.com>
9455
9456 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
9457 Always supply $fr0 as 0.0 and $fr1 as 1.0.
9458
cc0265cd
TT
94592012-03-28 Tom Tromey <tromey@redhat.com>
9460
9461 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
9462 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
9463 before returning.
9464
3ad2ec6f
TT
94652012-03-28 Tom Tromey <tromey@redhat.com>
9466
9467 * .dir-locals.el: New file.
9468
4a6510ba
PA
94692012-03-28 Pedro Alves <palves@redhat.com>
9470
9471 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
9472
5a75128f
JB
94732012-03-28 Joel Brobecker <brobecker@adacore.com>
9474
9475 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
9476 handling for r0.
9477
f99d8bf4
PA
94782012-03-27 Pedro Alves <palves@redhat.com>
9479
9480 Eliminate struct ui_stream.
9481
9482 * ui-out.h (struct ui_stream): Delete.
9483 (ui_out_field_stream): Adjust prototype.
9484 (ui_out_stream_new, ui_out_stream_delete)
9485 (make_cleanup_ui_out_stream_delete): Delete declarations.
9486 * ui-out.c (ui_out_field_stream): Change prototype to take a
9487 ui_file instead of a ui_stream. Adjust.
9488 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
9489 (make_cleanup_ui_out_stream_delete): Delete.
9490 * breakpoint.c (print_breakpoint_location)
9491 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
9492 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9493 * disasm.c (dump_insns): Ditto.
9494 (do_mixed_source_and_assembly, do_assembly_only): Adjust
9495 prototype.
9496 (gdb_disassembly): Use ui_file/mem_fileopen instead of
9497 ui_stream/ui_out_stream_new.
9498 * infcmd.c (print_return_value): Ditto.
9499 * osdata.c (info_osdata_command): Don't allocate a local
9500 ui_stream.
9501 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
9502 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
9503 * tracepoint.c (print_one_static_tracepoint_marker): Don't
9504 allocate a local ui_stream.
9505 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
9506 instead of ui_stream/ui_out_stream_new.
9507 (list_args_or_locals): Don't allocate a local ui_stream.
9508 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
9509 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
9510 ui_stream/ui_out_stream_new.
9511 * cli/cli-setshow.c (do_setshow_command): Ditto.
9512
6350a066 95132012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 9514
6350a066
PA
9515 * arm-linux-tdep.c (arm_linux_init_abi): Call
9516 set_gdbarch_process_record. Initialize `arm_swi_record' field.
9517 * arm-tdep.c (arm_process_record): New function.
9518 (deallocate_reg_mem): New function.
9519 (decode_insn): New function.
9520 (thumb_record_branch): New function.
9521 (thumb_record_ldm_stm_swi(): New function.
9522 (thumb_record_misc): New function.
9523 (thumb_record_ld_st_stack): New function.
9524 (thumb_record_ld_st_imm_offset): New function.
9525 (thumb_record_ld_st_reg_offset(): New function.
9526 (thumb_record_add_sub_cmp_mov): New function.
9527 (thumb_record_shift_add_sub): New function.
9528 (arm_record_coproc_data_proc): New function.
9529 (arm_record_coproc): New function.
9530 (arm_record_b_bl): New function.
9531 (arm_record_ld_st_multiple): New function.
9532 (arm_record_ld_st_reg_offset): New function.
9533 (arm_record_ld_st_imm_offset): New function.
9534 (arm_record_data_proc_imm): New function.
9535 (arm_record_data_proc_misc_ld_str): New function.
9536 (arm_record_extension_space): New function.
9537 (arm_record_strx): New function.
9538 (sbo_sbz): New function.
9539 (struct insn_decode_record): New structure for arm insn record.
9540 (REG_ALLOC): New macro for reg allocations.
9541 (MEM_ALLOC): New macro for memory allocations.
9542 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 9543
89e028e2
AS
95442012-03-27 Andreas Schwab <schwab@linux-m68k.org>
9545
9546 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
9547 (store_register): Likewise.
9548
6350a066 95492012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 9550
6350a066 9551 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 9552
5b43fab2
JK
95532012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
9554
9555 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
9556 Describe also the option "auto".
9557
b5453b95
RH
95582012-03-22 Richard Henderson <rth@redhat.com>
9559
9560 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
9561 * sparc-nat.c (sparc_xfer_wcookie): Make static.
9562
227ee7fc
RH
95632012-03-22 Richard Henderson <rth@redhat.com>
9564
9565 * jit.c (jit_read_code_entry): Compute alignment and offset of
9566 int64_t member before computing entry_size.
9567
7b282c5a
SCR
95682012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9569
9570 Python scripting: Add new method Value.referenced_value to
9571 gdb.Value which can dereference pointer as well as reference
9572 values.
9573 * NEWS: Add entry under 'Python scripting' about the new method
9574 Value.referenced_value on gdb.Value objects.
9575 * python/py-value.c (valpy_referenced_value): New function
9576 defining a new method on gdb.Value objects which can dereference
9577 pointer and reference values.
9578
0c83539f
SCR
95792012-03-22 Siva Chandra Reddy <sivachandra@google.com>
9580
9581 * MAINTAINERS (Write After Approval): Add myself to the list.
9582
7ccffd7c
KB
95832012-03-21 Kevin Buettner <kevinb@redhat.com>
9584
9585 * symtab.c (skip_prologue_sal): Change test to check for "main()"
9586 in addition to "main".
9587
bd0b9f9e
JB
95882012-03-21 Joel Brobecker <brobecker@adacore.com>
9589
9590 * expression.h (op_name): Add declaration.
9591 * expprint.c (op_name): Remove declaration. Make non-static.
9592 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
9593
a5362b9a
TS
95942012-03-21 Thomas Schwinge <thomas@codesourcery.com>
9595
9596 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
9597 of struct siginfo.
9598 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
9599 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
9600 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
9601 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
9602 (linux_nat_get_siginfo): Likewise.
9603 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
9604 (linux_nat_get_siginfo): Likewise.
9605 * linux-tdep.c (linux_get_siginfo_type): Likewise.
9606 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
9607 * procfs.c (gdb_siginfo_t): Likewise.
9608
adcadaab
MF
96092012-03-21 Mike Frysinger <vapier@gentoo.org>
9610
9611 * .gitignore: Ignore more files.
9612
e278ad5b
PA
96132012-03-20 Pedro Alves <palves@redhat.com>
9614
9615 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
9616 returns.
9617
741e63d7
YQ
96182012-03-20 Yao Qi <yao@codesourcery.com>
9619
9620 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
9621 comment.
9622
b64f50a1
JK
96232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9624
9625 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
9626 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
9627 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
9628 sect_offset.
9629 * dwarf2expr.h (cu_offset, sect_offset): New types.
9630 (struct dwarf_expr_context_funcs) <dwarf_call>
9631 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
9632 sect_offset.
9633 (struct dwarf_expr_context) <len>: Improve the comment.
9634 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
9635 cu_offset and sect_offset.
9636 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
9637 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
9638 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
9639 * dwarf2loc.h: Include dwarf2expr.h.
9640 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
9641 and sect_offset.
9642 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
9643 Improve the comment.
9644 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
9645 (struct signatured_type, struct line_header, struct partial_die_info)
9646 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
9647 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
9648 (get_die_type_at_offset, create_cus_from_index)
9649 (create_signatured_type_table_from_index, dw2_get_file_names)
9650 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
9651 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
9652 (create_debug_types_hash_table, process_psymtab_comp_unit)
9653 (load_partial_comp_unit, create_all_comp_units)
9654 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
9655 (load_full_comp_unit, dwarf2_physname, read_import_statement)
9656 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
9657 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
9658 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
9659 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
9660 (find_partial_die, read_attribute_value, lookup_die_type)
9661 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
9662 (is_ref_attr): New function comment.
9663 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
9664 Use cu_offset and sect_offset.
9665 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
9666 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
9667 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
9668 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
9669 (offset_and_type_hash, offset_and_type_eq, set_die_type)
9670 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
9671 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
9672 sect_offset.
9673
e97a38f7
JK
96742012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9675
9676 Code cleanup.
9677 * python/py-auto-load.c (source_section_scripts): New variable back_to.
9678 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
9679 with xfree.
9680 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
9681
8320cc4f
JK
96822012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9683
9684 * NEWS: Describe new options --init-command=FILE, -ix and
9685 --init-eval-command=COMMAND, -iex.
9686 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
9687 CMDARG_INIT_COMMAND.
9688 (captured_main): New enum items OPT_IX and OPT_IEX. Add
9689 "init-command", "init-eval-command", "ix" and "iex" to the variable
9690 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
9691 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
9692 (print_gdb_help): Describe --init-command=FILE, -ix and
9693 --init-eval-command=COMMAND, -iex.
9694
26743505
JK
96952012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9696
9697 Code cleanup.
9698 * main.c (struct cmdarg): Move it here from main. Add more comments.
9699 (cmdarg_s, VEC (cmdarg_s)): New.
9700 (main): Move struct cmdarg from here. New variables cmdarg_vec and
9701 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
9702 Install cleanup for cmdarg_vec. Update filling for options 'x' and
9703 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
9704 of CMDARG.
9705
5ff5c7b4
TT
97062012-03-19 Tom Tromey <tromey@redhat.com>
9707
9708 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
9709
ab260dad
JK
97102012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
9711
9712 PR symtab/13777
9713 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
9714 GCC >=4.5.
9715
c366c1f0
TT
97162012-03-16 Chris January <chris.january@allinea.com>
9717
9718 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
9719 of clear.
9720
e16edb45
TT
97212012-03-16 Chris January <chris.january@allinea.com>
9722
9723 * source.c (add_path): Use memmove instead of strcpy because the
9724 strings overlap.
9725
53ba8333
JB
97262012-03-16 Joel Brobecker <brobecker@adacore.com>
9727
9728 * value.h (set_value_parent): Add declaration.
9729 * value.c (set_value_parent): New function.
9730 (value_address): If VALUE->PARENT is not NULL, then use it as
9731 the base address instead of VALUE->LOCATION.address.
9732 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
9733 the same as OBJ's address. Adjust V's offset accordingly.
9734 Set V's parent.
9735
481860b3
GB
97362012-03-16 Gary Benson <gbenson@redhat.com>
9737
9738 PR breakpoints/10738
9739 * dwarf2read.c (use_deprecated_index_sections): New global.
9740 (struct partial_die_info): New member may_be_inlined.
9741 (read_partial_die): Set may_be_inlined where appropriate.
9742 (add_partial_subprogram): Add partial symbols for partial
9743 DIEs that may be inlined.
9744 (new_symbol_full): Add inlined subroutines to the current
9745 scope.
9746 (write_psymtabs_to_index): Bump version number.
9747 (dwarf2_read_index): Read only version 6 indices unless
9748 use_deprecated_index_sections is set.
9749 * linespec.c (symbol_and_data_callback): New structure.
9750 (iterate_inline_only): New function.
9751 (iterate_over_all_matching_symtabs): New argument
9752 "include_inline". If nonzero, also call the callback for
9753 symbols representing inlined subroutines.
9754 (lookup_prefix_sym): Pass extra argument to the above.
9755 (find_function_symbols): Likewise.
9756 (add_matching_symbols_to_info): Likewise.
9757 * NEWS: Mention that GDB can now set breakpoints on inlined
9758 functions.
9759
d0e7e15a
PM
97602012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9761
9762 * p-typeprint.c (pascal_type_print_method_args):
9763 Fix display of parameter of methods.
9764
3d354654
PM
97652012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
9766
9767 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
9768 Add missing prototype.
9769
cafe75b0
JK
97702012-03-16 Yao Qi <yao@codesourcery.com>
9771 Jan Kratochvil <jan.kratochvil@redhat.com>
9772
9773 Fix false compilation warning.
9774 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
9775
25f8c692
JL
97762012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
9777 Pedro Alves <pedro@codesourcery.com>
9778
9779 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
9780 (arm_register_g_packet_guesses): New function.
9781 (arm_gdbarch_init): Don't force a target description with
9782 registers when the executable is detected as M-profile. Instead
9783 set gdbarch->tdep->is_m. Register `g' packet guesses.
9784 (_initialize_arm_tdep): Initialize the new target description.
9785 * features/arm-with-m-fpa-layout.xml: New description.
9786 * features/arm-with-m-fpa-layout.c: New, generated.
9787
35c63cd8
JB
97882012-03-15 Joel Brobecker <brobecker@adacore.com>
9789
9790 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
9791 Update function description.
9792 (insert_bp_location): Do not wipe bl->target_info out.
9793 * mem-break.c: #include "gdb_string.h".
9794 (default_memory_insert_breakpoint): Do not call target_read_memory
9795 with a pointer to the breakpoint's shadow_contents buffer. Use
9796 a local buffer instead.
9797 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
9798
57651221
TT
97992012-03-15 Tom Tromey <tromey@redhat.com>
9800
9801 * NEWS: Mention "info vtbl", not "info vtable".
9802 * cp-support.c (info_vtbl_command): Fix comment.
9803 (_initialize_cp_support): Fix text.
9804
410528f0
TT
98052012-03-15 Tom Tromey <tromey@redhat.com>
9806
9807 * cp-valprint.c (cp_print_value_fields): Use
9808 print_function_pointer_address for vtable slot.
9809
c4aeac85
TT
98102012-03-15 Tom Tromey <tromey@redhat.com>
9811
9812 * gnu-v3-abi.c (struct value_and_voffset): New.
9813 (hash_value_and_voffset, eq_value_and_voffset)
9814 (compare_value_and_voffset, compute_vtable_size)
9815 (print_one_vtable, gnuv3_print_vtable): New functions.
9816 (init_gnuv3_ops): Initialize 'print_vtable' field.
9817 * cp-support.c (info_vtbl_command): New function.
9818 (_initialize_cp_support): Add "info vtbl".
9819 * cp-abi.h (cplus_print_vtable): Declare.
9820 (struct cp_abi_ops) <print_vtable>: New field.
9821 * cp-abi.c (cplus_print_vtable): New function.
9822 * NEWS: Update.
9823
95cbceff
TT
98242012-03-15 Tom Tromey <tromey@redhat.com>
9825
9826 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
9827 iterate_over_symbols.
9828
589b4a32
DE
98292012-03-14 Doug Evans <dje@google.com>
9830
9831 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
9832 DW_OP_GNU_parameter_ref.
9833
e837f12a
JK
98342012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
9835
9836 Fix double prompt of 'interpreter-exec mi'.
9837 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
9838 (mi_interpreter_resume): use it.
9839 (mi_execute_command_input_handler): New function.
9840 * mi/mi-main.c (mi_execute_command): Move prompt printing to
9841 mi_execute_command_input_handler.
9842
ff1e4526 98432012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9844
9845 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9846 prototype.
9847 (darwin_debug_port_info): Make static.
9848 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9849 * machoread.c (_initialize_machoread): Add prototype.
9850 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9851 (i386_darwin_set_control, i386_darwin_get_control)
9852 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9853 i386_darwin_get_status, i386_darwin_get_control):
9854 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9855
d8a5d6ee
JB
98562012-03-13 Joel Brobecker <brobecker@adacore.com>
9857
9858 * ax-gdb.c (gen_usual_unary): Remove special handling of
9859 enum and bool types.
9860
af381b8c
JB
98612012-03-13 Joel Brobecker <brobecker@adacore.com>
9862
9863 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9864
786c562f
JB
98652012-03-13 Joel Brobecker <brobecker@adacore.com>
9866
9867 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9868
e3ebf1bb
JB
98692012-03-13 Chris January <chris.january@allinea.com>
9870
9871 * aix-thread.c (fill_sprs): Store the floating point registers
9872 at the correct offsets into vals.
9873
c5b7e1cb
DE
98742012-03-13 Doug Evans <dje@google.com>
9875
16899756
DE
9876 * NEWS: Mention symbol-reloading has been deleted.
9877 * symfile.c (symbol_reloading): Delete.
9878 (show_symbol_reloading): Delete.
9879 (_initialize_symfile): Delete set/show symbol-reloading.
9880
c5b7e1cb
DE
9881 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9882 read_in_chain until we have successfully read it in.
9883 (load_full_comp_unit): Ditto.
9884 (read_signatured_type): Add comment.
9885
46cb6474
JB
98862012-03-13 Chris January <chris.january@allinea.com>
9887
9888 * stabsread.c (fix_common_block): Change type of valu argument
9889 to CORE_ADDR.
9890
76219d77
JB
98912012-03-13 Chris January <chris.january@allinea.com>
9892
9893 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9894 instruction.
9895
87b0bb13
JK
98962012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9897
9898 * common/linux-procfs.c (linux_proc_get_int): New, from
9899 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9900 field.
9901 (linux_proc_get_tgid): Only call linux_proc_get_int.
9902 (linux_proc_get_tracerpid): New.
9903 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9904 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9905 linux_proc_pid_has_state.
9906 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9907 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9908 (linux_ptrace_attach_warnings): New.
9909 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9910 New declaration.
9911 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9912 (linux_nat_attach): New variables ex, buffer, message and message_s.
9913 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9914
5f572dec
JK
99152012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9916
9917 * Makefile.in (linux-ptrace.o): New.
9918 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9919 from linux-nat.c.
9920 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9921 * common/linux-ptrace.c: New file.
9922 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9923 * config/arm/linux.mh: Likewise.
9924 * config/i386/linux.mh: Likewise.
9925 * config/i386/linux64.mh: Likewise.
9926 * config/ia64/linux.mh: Likewise.
9927 * config/m32r/linux.mh: Likewise.
9928 * config/m68k/linux.mh: Likewise.
9929 * config/mips/linux.mh: Likewise.
9930 * config/pa/linux.mh: Likewise.
9931 * config/powerpc/linux.mh: Likewise.
9932 * config/powerpc/ppc64-linux.mh: Likewise.
9933 * config/powerpc/spu-linux.mh: Likewise.
9934 * config/s390/s390.mh: Likewise.
9935 * config/sparc/linux.mh: Likewise.
9936 * config/sparc/linux64.mh: Likewise.
9937 * config/xtensa/linux.mh: Likewise.
9938 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9939 common/linux-procfs.c.
9940 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9941
44f238bb
PA
99422012-03-13 Hui Zhu <teawater@gmail.com>
9943 Pedro Alves <palves@redhat.com>
9944
9945 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9946 CREATE_BREAKPOINT_FLAGS_INSERTED.
9947 (create_breakpoint_sal, create_breakpoints_sal)
9948 (base_breakpoint_create_breakpoints_sal)
9949 (tracepoint_create_breakpoints_sal)
9950 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9951 down.
9952 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9953 (ftrace_command, strace_command): Adjust.
9954 (create_tracepoint_from_upload): Pass
9955 CREATE_BREAKPOINT_FLAGS_INSERTED.
9956 * breakpoint.h (enum breakpoint_create_flags): New.
9957 (create_breakpoint): New flags parameter.
9958 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9959 * python/py-breakpoint.c (bppy_init): Adjust.
9960 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9961 * spu-tdep.c (spu_catch_start): Adjust.
9962
1e51243a
PA
99632012-03-13 Pedro Alves <palves@redhat.com>
9964 Hui Zhu <teawater@gmail.com>
9965 Yao Qi <yao@codesourcery.com>
9966
9967 * remote.c (struct remote_state): New field `starting_up'.
9968 (remote_start_remote): Set and clear it.
9969 (remote_can_download_tracepoint): If starting up, return false.
9970
fa3064dd
YQ
99712012-03-13 Yao Qi <yao@codesourcery.com>
9972
9973 * inferior.h (struct inferior): Remove fields any_syscall_count,
9974 syscalls_counts and total_syscalls_count. Move them to new
9975 struct catch_syscall_inferior_data in breakpoint.c.
9976 * breakpoint.c: Call DEF_VEC_I(int).
9977 (struct catch_syscall_inferior_data): New.
9978 (get_catch_syscall_inferior_data): New.
9979 (catch_syscall_inferior_data_cleanup): New.
9980 (insert_catch_syscall): Update to access data in
9981 struct catch_syscall_inferior_data.
9982 (insert_catch_syscall): Likewise.
9983 (remove_catch_syscall): Likewise.
9984 (remove_catch_syscall): Likewise.
9985 (is_syscall_catchpoint_enabled): Likewise.
9986 (add_catch_command): Likewise.
9987 (_initialize_breakpoint): Register cleanup.
9988 * breakpoint.h: Removed DEF_VEC_I(int).
9989 * dwarf2loc.c: Call DEF_VEC_I(int).
9990 * mi/mi-main.c: Likewise.
9991
460fac3c
MK
99922012-03-12 Mark Kettenis <kettenis@gnu.org>
9993
9994 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9995
e1aca11e
JB
99962012-03-12 Chris January <chris.january@allinea.com>
9997
9998 * aix-thread.c (_initialize_aix_thread): Add prototype.
9999 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
10000 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
10001
649c7061
JB
100022012-03-12 Joel Brobecker <brobecker@adacore.com>
10003
10004 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
10005 include of "amd64-nat.h".
10006
0b49e518
TT
100072012-03-12 Tom Tromey <tromey@redhat.com>
10008
10009 * buildsym.c (record_pending_block): Now static.
10010 * buildsym.h: (record_pending_block): Remove.
10011
fd24fa94
AT
100122012-03-12 Andreas Tobler <andreast@fgznet.ch>
10013
10014 * amd64bsd-nat.c: Include amd64bsd-nat.h.
10015
ba919b58
TT
100162012-03-09 Tom Tromey <tromey@redhat.com>
10017
10018 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
10019 producer_is_gxx_lt_4_6>: New fields.
10020 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
10021
a48e046c
TT
100222012-03-09 Tom Tromey <tromey@redhat.com>
10023
10024 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
10025
6f5e9362
JB
100262012-03-08 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
10029 prototype.
10030
8d037db9
JB
100312012-03-08 Joel Brobecker <brobecker@adacore.com>
10032
10033 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
10034
4e841acf
JK
100352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10036
10037 Fix -Wmissing-prototypes build.
10038 * arm-linux-nat.c (get_thread_id): Make it static.
10039 * xtensa-linux-nat.c (get_thread_id): Likewise.
10040
c6030312
JB
100412012-03-08 Joel Brobecker <brobecker@adacore.com>
10042
10043 * server.c (process_point_options): If a conditional expression
10044 is found, only print a message if remote_debug is nonzero.
10045
52323be9
LM
100462012-03-08 Luis Machado <lgustavo@codesourcery.com>
10047
10048 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
10049 of internal error for unknown/unsupported types.
10050
7fe25d9b
JK
100512012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10052
10053 Fix CU relative vs. absolute DIE offsets.
10054 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
10055 offset to offset_in_cu.
10056 * dwarf2read.c (process_enumeration_scope): Add CU offset to
10057 TYPE_OFFSET.
10058 (dwarf2_fetch_die_location_block): Rename parameter offset to
10059 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
10060
05e7c244
JK
100612012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10062
10063 * libunwind-frame.c: Rename to ...
10064 * ia64-libunwind-tdep.c: ... here.
10065 * libunwind-frame.h: Rename to ...
10066 * ia64-libunwind-tdep.h: ... here.
10067 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
10068 ia64-libunwind-tdep.h.
10069 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
10070 * README (--with-libunwind): Rename to ...
10071 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
10072 * config.in: Regenerate.
10073 * configure: Regenerate.
10074 * configure.ac: New option --with-libunwind-ia64, make the
10075 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
10076 Remove AC_DEFINE for HAVE_LIBUNWIND.
10077 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
10078 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
10079 Rename libunwind-frame in the general comment.
10080 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
10081 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
10082 Move forward declarations inside #ifndef. Rename libunwind-frame in
10083 the general comment.
10084 * ia64-tdep.c: Rename libunwind-frame.h #include to
10085 ia64-libunwind-tdep.h.
10086 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
10087 (ia64_libunwind_descr): Rename libunwind-frame to
10088 ia64-libunwind-tdep in these function comments.
10089 * ia64-tdep.h: Rename libunwind-frame.h #include to
10090 ia64-libunwind-tdep.h.
10091 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
10092 ia64-libunwind-tdep in that data comment.
10093
3755cbfd
JK
100942012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
10095
10096 * libunwind-frame.h (struct frame_unwind): New declaration.
10097
d1cda5d9
JB
100982012-03-08 Joel Brobecker <brobecker@adacore.com>
10099
10100 * breakpoint.c (_initialize_breakpoint): Fix error in help of
10101 "set breakpoint condition-evaluation" command.
10102
a0ba0aa2
TG
101032012-03-08 Tristan Gingold <gingold@adacore.com>
10104
10105 * sparc-stub.c: Move to stubs/
10106 * sh-stub.c: Likewise.
10107 * m68k-stub.c: Likewise.
10108 * m32r-stub.c: Likewise.
10109 * i386-stub.c: Likewise.
10110
7b8b6d6d
AS
101112012-03-08 Andreas Schwab <schwab@linux-m68k.org>
10112
007cafee
AS
10113 * m68klinux-tdep.c (m68k_linux_init_abi): Register
10114 linux_get_siginfo_type.
10115
7b8b6d6d
AS
10116 * m68klinux-nat.c: Include "gdb_proc_service.h".
10117 (PTRACE_GET_THREAD_AREA): Define.
10118 (ps_get_thread_area): New function.
10119
bba74b36
YQ
101202012-03-08 Yao Qi <yao@codesourcery.com>
10121
10122 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
10123 `xsnprintf'.
10124 (remote_query_attached): Likewise.
10125 (remote_static_tracepoint_marker_at): Likewise.
10126 (remote_set_permissions): Likewise.
10127 (remote_detach_1, extended_remote_attach_1): Likewise.
10128 (send_g_packet, remote_vkill): Likewise.
10129 (extended_remote_disable_randomization): Likewise.
10130 (remote_add_target_side_condition): Likewise.
10131 (remote_insert_breakpoint): Likewise.
10132 (remote_remove_breakpoint): Likewise.
10133 (remote_insert_watchpoint): Likewise.
10134 (remote_remove_watchpoint): Likewise.
10135 (remote_insert_hw_breakpoint): Likewise.
10136 (remote_insert_hw_breakpoint): Likewise.
10137 (remote_remove_hw_breakpoint): Likewise.
10138 (remote_download_command_source): Likewise.
10139 (remote_download_tracepoint): Likewise.
10140 (remote_download_trace_state_variable): Likewise.
10141 (remote_disable_tracepoint): Likewise.
10142 (remote_trace_set_readonly_regions): Likewise.
10143 (remote_get_tracepoint_status): Likewise.
10144 (remote_trace_find): Likewise.
10145 (remote_get_trace_state_variable_value): Likewise.
10146 (remote_set_disconnected_tracing): Likewise.
10147 (remote_set_circular_trace_buffer): Likewise.
10148 (remote_get_min_fast_tracepoint_insn_len): Likewise.
10149 (remote_use_agent): Likewise.
10150 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
10151 Update callers.
10152
9b224c5e
PA
101532012-03-07 Pedro Alves <palves@redhat.com>
10154
10155 * NEWS: Mention QProgramSignals.
10156 * inferior.h (update_signals_program_target): Declare.
10157 * infrun.c: (update_signals_program_target): New.
10158 (handle_command): Update the target of the new program signals
10159 array changes.
10160 * remote.c (PACKET_QProgramSignals): New enum.
10161 (last_program_signals_packet): New global.
10162 (remote_program_signals): New.
10163 (remote_start_remote): Update the target with the program signals
10164 list.
10165 (remote_protocol_features): Add entry for QPassSignals.
10166 (remote_open_1): Free anc clear last_program_signals_packet.
10167 (init_remote_ops): Install remote_program_signals.
10168 * target.c (update_current_target): Adjust.
10169 (target_program_signals): New.
10170 * target.h (struct target_ops) <to_program_signals>: New field.
10171 (target_program_signals): Declare.
10172
74c48cbb
PA
101732012-03-07 Pedro Alves <palves@redhat.com>
10174
10175 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
10176 extensions.
10177
0c13fc49
AS
101782012-03-07 Andreas Schwab <schwab@linux-m68k.org>
10179
10180 * m68klinux-nat.c (getregs_supplies): Make static.
10181 (getfpregs_supplies): Likewise.
10182 (have_ptrace_getregs): Likewise.
10183
1281d2a3
JB
101842012-03-06 Joel Brobecker <brobecker@adacore.com>
10185
10186 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
10187 in call to get_die_type_at_offset.
10188
2b03b41d
SS
101892012-03-06 Stan Shebs <stan@codesourcery.com>
10190
10191 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
10192 * mi/mi-cmd-disas.c: Ditto.
10193 * mi/mi-cmd-env.c: Ditto.
10194 * mi/mi-cmd-file.c: Ditto.
10195 * mi/mi-cmd-stack.c: Ditto.
10196 * mi/mi-cmd-target.c: Ditto.
10197 * mi/mi-cmd-var.c: Ditto.
10198 * mi/mi-cmds.c: Ditto.
10199 * mi/mi-cmds.h: Ditto.
10200 * mi/mi-console.c: Ditto.
10201 * mi/mi-getopt.c: Ditto.
10202 * mi/mi-getopt.h: Ditto.
10203 * mi/mi-interp.c: Ditto.
10204 * mi/mi-main.c: Ditto.
10205 * mi/mi-out.c: Ditto.
10206 * mi/mi-parse.c: Ditto.
10207 * mi/mi-parse.h: Ditto.
10208 * mi/mi-symbol-cmds.c: Ditto.
10209
10210 * mi/mi-getopt.h: Move mi_opt struct up.
10211 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
10212 return.
10213 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
10214
c988ad87
TT
102152012-03-06 Tom Tromey <tromey@redhat.com>
10216
10217 * proc-service.c (ps_pglobal_lookup): Set the current program
10218 space.
10219
1b7c1b10
PA
102202012-03-06 Pedro Alves <palves@redhat.com>
10221
10222 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
10223
3c182069
JB
102242012-03-05 Joel Brobecker <brobecker@adacore.com>
10225
10226 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
10227
2e794194
JK
102282012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10229
10230 Code cleanup.
10231 * common/linux-osdata.c (linux_common_core_of_thread): New function
10232 comment.
10233 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
10234 call by linux_common_core_of_thread.
10235 (linux_nat_core_of_thread_1): Remove.
10236 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
10237 * linux-thread-db.c: Include linux-osdata.h.
10238 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
10239 linux_common_core_of_thread.
10240
9f9f1f31
TT
102412012-03-05 Tom Tromey <tromey@redhat.com>
10242
10243 * value.c (value_primitive_field): Don't fetch contents for
10244 non-virtual bases.
10245
b7b189f3
TT
102462012-03-05 Tom Tromey <tromey@redhat.com>
10247
10248 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
10249
05b8a789 102502012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 10251
5538f557
JB
10252 * s390-nat.c: Include "gregset.h".
10253
75528772
JK
102542012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
10255
10256 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
10257 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
10258 (libunwind_load): New variable so_error, use it for dlerror. Try to
10259 load also LIBUNWIND_SO_7.
10260
275418ae
PA
102612012-03-05 Pedro Alves <palves@redhat.com>
10262
10263 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
10264 is not NULL, and remove resulting dead code.
10265
5cbb9812
TS
102662012-03-05 Thomas Schwinge <thomas@codesourcery.com>
10267
10268 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
10269 prologue to sh_analyze_prologue.
10270 (sh_analyze_prologue): Make better use of such an upper limit, and
10271 generally be more cautious about accessing memory.
10272
541515ad
TT
102732012-03-05 Tom Tromey <tromey@redhat.com>
10274
10275 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
10276 _initialize_ia64_hpux_tdep.
10277
b4d36fb8
PA
102782012-03-05 Pedro Alves <palves@redhat.com>
10279
24490249
PA
10280 PR gdb/13766
10281
b4d36fb8
PA
10282 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
10283 the register state is clear, supply explicit zero, instead of
10284 marking the register unavailable.
10285
60c9a3c0
TG
102862012-03-05 Tristan Gingold <gingold@adacore.com>
10287
10288 * NEWS: Mention OpenVMS ia64 new target.
10289
696759ad
TG
102902012-03-05 Tristan Gingold <gingold@adacore.com>
10291
10292 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
10293 (ia64_unw_accessors, ia64_unw_rse_accessors)
10294 (ia64_libunwind_descr): Declare.
10295 * ia64-vms-tdep.c: New file.
10296 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
10297 (ia64_libunwind_descr): Make them public.
10298 * configure.tgt: Add ia64-*-*vms*.
10299 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
10300 (ALLDEPFILES): Add ia64-vms-tdep.c
10301
34864976
TG
103022012-03-05 Tristan Gingold <gingold@adacore.com>
10303
169081d0
TG
10304 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
10305 * remote.c (PACKET_qXfer_uib): New enum value.
10306 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
10307 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
10308 (_initialize_remote): Call add_packet_config_cmd for
10309 xfer:uib packet.
10310
103112012-03-05 Tristan Gingold <gingold@adacore.com>
10312
10313 * osabi.c (gdb_osabi_names): Add OpenVMS.
10314 (generic_elf_osabi_sniffer): Likewise.
10315 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 10316
6597b100
JK
103172012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 Removed unused code.
10320 * libunwind-frame.c (libunwind_frame_unwind)
10321 (libunwind_frame_base_address): Remove.
10322 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
10323
87399aa1
YQ
103242012-03-04 Yao Qi <yao@codesourcery.com>
10325
10326 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
10327 remove trailing new line.
10328 (agent_run_command, agent_run_command): Add _ markup.
10329 (agent_capability_check): Likewise.
10330
abf1152a
JK
103312012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
10332
10333 * breakpoint.c (set_condition_evaluation_mode): Set
10334 CONDITION_EVALUATION_MODE unconditionally.
10335
5808517f
YQ
103362012-03-03 Yao Qi <yao@codesourcery.com>
10337
10338 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
10339 * common/agent.h: Update declaration.
10340 * inf-child.c (inf_child_use_agent): New.
10341 (inf_child_can_use_agent): New.
10342 (inf_child_target): Initialize fields `to_use_agent'
10343 and `to_can_use_agent'.
10344 * agent.c (agent_new_objfile): New.
89b7509a 10345 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
10346 observer.
10347
10348 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
10349 New.
89b7509a 10350 (linux_target_install_ops): Initialize field
5808517f
YQ
10351 `to_static_tracepoint_markers_by_strid'.
10352 * remote.c (free_current_marker): Move it to ...
10353 * tracepoint.c (free_current_marker): ... here. New.
10354 (cleanup_target_stop): New.
10355 * tracepoint.h: Declare free_current_marker.
10356 * NEWS: Add one entry about `info static-tracepoint-marker'.
10357
58b4daa5
YQ
103582012-03-03 Yao Qi <yao@codesourcery.com>
10359
10360 * common/agent.c (agent_loaded_p): New.
89b7509a 10361 (agent_look_up_symbols): New global.
58b4daa5
YQ
10362 * common/agent.h: Declare agent_loaded_p.
10363
8ffcbaaf
YQ
103642012-03-03 Yao Qi <yao@codesourcery.com>
10365
10366 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
10367 (agent_capability_check, agent_capability_invalidate): New.
10368 (symbol_list): New array element.
10369 * common/agent.h (enum agent_capa): New.
10370 * target.c (target_pre_inferior): Call agent_capability_invalidate.
10371
d1feda86
YQ
103722012-03-03 Yao Qi <yao@codesourcery.com>
10373
10374 * target.h (struct target_ops) <to_use_agent>: New field.
10375 (struct target_ops) <to_can_use_agent>: New field.
10376 (target_use_agent, target_can_use_agent): New macro.
10377 * target.c (update_current_target): Update.
10378 * remote.c: New enum `PACKET_QAgent'.
10379 (remote_protocol_features): Add a new element.
10380 (remote_use_agent, remote_can_use_agent): New.
10381 (init_remote_ops): Initialize field `can_use_agent' with
10382 remote_can_use_agent. Intiailize field `use_agent' with
10383 remote_use_agent.
10384 * common/agent.c (use_agent): New global.
10385 * common/agent.h: Declare it.
10386 * tracepoint.c (info_static_tracepoint_markers_command): Add
10387 comment.
10388 * Makefile.in (SFILES): Add common/agent.c and agent.c.
10389 (COMMON_OBS): Add common/agent.o and agent.o
10390 (common-agent.o): New rule.
10391 * agent.c: New.
10392
2fa291ac
YQ
103932012-03-03 Yao Qi <yao@codesourcery.com>
10394
10395 * common/agent.c: New.
10396 * common/agent.h: New.
10397 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
10398 AC_CHECK_HEADERS.
10399 * configure, configh.in: Regenerated.
10400
9fc05685
KB
104012012-03-02 Kevin Buettner <kevinb@redhat.com>
10402
10403 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
10404 unless it exists for this architecture.
10405
a5ee536b
JB
104062012-03-02 Joel Brobecker <brobecker@adacore.com>
10407
10408 * language.h (struct language_defn): New "method" la_read_var_value.
10409 * findvar.c: #include "language.h".
10410 (default_read_var_value): Renames read_var_value. Rewrite
10411 function description.
10412 (read_var_value): New function.
10413 * value.h (default_read_var_value): Add prototype.
10414 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
10415 New functions.
10416 (ada_language_defn): Add entry for la_read_var_value.
10417 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
10418 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
10419 language_defn structures to add entry for new la_read_var_value
10420 field.
10421
f59f708a
PA
104222012-03-02 Tom Tromey <tromey@redhat.com>
10423 Pedro Alves <palves@redhat.com>
10424
10425 PR breakpoints/13776:
10426 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
10427 breakpoints.
10428 (delete_longjmp_breakpoint_at_next_stop): New.
10429 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
10430 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
10431 before deleting the inferior. Add comments.
10432 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
10433 breakpoints immediately, but only on next stop. Move that code
10434 next to where we mark other breakpoints for deletion.
10435
44099a67
JB
104362012-03-02 Joel Brobecker <brobecker@adacore.com>
10437
10438 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
10439 marker.
10440 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
10441 violation.
10442
2a2ef594
PA
104432012-03-02 Pedro Alves <palves@redhat.com>
10444
10445 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
10446
b261e0c5
UW
104472012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
10448
10449 Fix -Wmissing-prototypes build.
10450 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
10451 * remote-sim.c (gdbsim_has_all_memory): Likewise.
10452 (gdbsim_has_memory): Likewise.
10453
a95babbf
YQ
104542012-03-02 Yao Qi <yao@codesourcery.com>
10455
10456 Fix -Wmissing-prototypes build.
10457 * charset.c (phony_iconv_open): Make static.
10458 (phony_iconv_close, phony_iconv): Likewise.
10459 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
10460 * i386-windows-nat.c (_initialize_i386_windows_nat): New
10461 prototype.
10462 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
10463 * ser-mingw.c (create_select_thread): Make static.
10464 * windows-termcap.c (tgetent): New prototype.
10465 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
10466
d603d4b3
JK
104672012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
10468
10469 Fix -Wmissing-prototypes build.
10470 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
10471 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
10472 (_initialize_loadable): New prototypes.
10473
7fb3ad1f
DE
104742012-03-02 Doug Evans <dje@google.com>
10475
10476 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
10477 abbrev table, read_comp_unit will do it.
10478
693be288
JK
104792012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10480
10481 Fix -Wmissing-prototypes build.
10482 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
10483 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
10484 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
10485 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
10486 (_initialize_arm_symbian_tdep): New prototype.
10487 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
10488 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
10489 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
10490 static.
10491 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
10492 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
10493 prototype.
10494 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
10495 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
10496 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
10497 static.
10498 * moxie-tdep.c (moxie_process_record): Likewise.
10499 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
10500 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
10501 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
10502 (_initialize_rl78_tdep): New prototype.
10503 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
10504 (_initialize_rx_tdep): New prototype.
10505 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
10506 (_initialize_darwin_solib): New prototype.
10507 * solib-spu.c: Include solib-spu.h.
10508 (_initialize_spu_solib): New prototype.
10509 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
10510 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
10511 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
10512 (tic6x_software_single_step): Make it static.
10513 (_initialize_tic6x_tdep): New prototype.
10514
638234e5
JK
105152012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10516
10517 Fix -Wmissing-prototypes build.
10518 * cris-tdep.c (cris_can_use_hardware_watchpoint)
10519 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
10520
f4a6f16d
JK
105212012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10522
10523 Fix -Wmissing-prototypes build.
10524 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
10525 (frv_have_stopped_data_address): Remove.
10526
04dcf5fa
JK
105272012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
10528
10529 Fix -Wmissing-prototypes build.
10530 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
10531 * sh-tdep.c: Include sh64-tdep.h.
10532 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
10533 * sh64-tdep.c: Include sh64-tdep.h.
10534 * sh64-tdep.h: New file.
10535
19080931
MR
105362012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10537
10538 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
10539
9aac7884
MR
105402012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10541
10542 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
10543 sp_regnum once the gdbarch_init_osabi hook has been called.
10544
a385295e
MR
105452012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
10546
10547 * mips-tdep.c (mips32_bc1_pc): New function.
10548 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
10549 BPOSGE32 and BPOSGE64 instructions.
10550 (deal_with_atomic_sequence): Likewise.
10551 (mips32_instruction_has_delay_slot): Likewise.
10552
1faeff08 105532012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
10554 Chris Dearman <chris@mips.com>
10555 Maciej W. Rozycki <macro@codesourcery.com>
10556 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
10557
10558 * features/mips-dsp.xml: New file.
10559 * features/mips64-dsp.xml: New file.
10560 * features/mips-dsp-linux.xml: New file.
10561 * features/mips64-dsp-linux.xml: New file.
10562 * features/Makefile (WHICH): Add mips-dsp-linux and
10563 mips64-dsp-linux.
10564 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
10565 * features/mips-dsp-linux.c: New file.
10566 * features/mips64-dsp-linux.c: New file.
10567 * regformats/mips-dsp-linux.dat: New file.
10568 * regformats/mips64-dsp-linux.dat: New file.
10569 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
10570 registers.
10571 (mips64_linux_register_addr): Likewise.
10572 (mips64_linux_regsets_fetch_registers): Likewise.
10573 (mips64_linux_regsets_store_registers): Likewise.
10574 (mips64_linux_fetch_registers): Update call to
10575 mips64_linux_regsets_fetch_registers.
10576 (mips64_linux_store_registers): Update call to
10577 mips64_linux_regsets_store_registers.
10578 (mips_linux_read_description): Probe for DSP registers.
10579 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
10580 and initialize_tdesc_mips64_dsp_linux.
10581 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
10582 Remove padding of no longer used embedded register slots.
10583 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
10584 (MIPS_RESTART_REGNUM): Redefine enum value.
10585 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
10586 strings.
10587 (mips_tx39_reg_names): Likewise.
10588 (mips_linux_reg_names): New array of register names for Linux
10589 targets.
10590 (mips_register_name): Check for a null pointer in
10591 mips_processor_reg_names and return an empty string.
10592 (mips_register_type): Exclude embedded registers for the IRIX
10593 and Linux ABIs.
10594 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
10595 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
10596 DSP registers.
10597 (mips_stab_reg_to_regnum): Handle DSP accumulators.
10598 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
10599 (mips_gdbarch_init): Likewise. Initialize internal register
10600 indices for the Linux ABI. Use dynamic numbers to refer to
10601 registers, as applicable, while parsing the target description.
10602 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
10603
263689d8
JB
106042012-03-01 Joel Brobecker <brobecker@adacore.com>
10605
10606 * frame.h (read_frame_register_unsigned): Fix typo in function
10607 description.
10608
f3b4f45c
PA
106092012-03-01 Pedro Alves <palves@redhat.com>
10610
10611 * jit-reader.in [!__cplusplus]
10612 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
10613
b03a2011
PA
106142012-03-01 Pedro Alves <palves@redhat.com>
10615
10616 * configure.ac (build_warnings): Add -Wmissing-prototypes.
10617 * configure: Regenerate.
10618
70221824
PA
106192012-03-01 Pedro Alves <palves@redhat.com>
10620
10621 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
10622 * breakpoint.c (create_exception_master_breakpoint, trace_command)
10623 (ftrace_command, strace_command): Make static.
10624 * d-lang.c (_initialize_d_language): Declare.
10625 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
10626 * dwarf2loc.c (_initialize_dwarf2loc):
10627 * dwarf2read.c (process_psymtab_comp_unit): Make static.
10628 * exec.c (exec_get_section_table): Make static.
10629 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
10630 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
10631 * inferior.c (remove_inferior_command, add_inferior_command)
10632 (clone_inferior_command): Make static.
10633 * linux-nat.c (linux_nat_thread_address_space)
10634 (linux_nat_core_of_thread): Make static.
10635 * linux-tdep.c (_initialize_linux_tdep): Declare.
10636 * objc-lang.c (_initialize_objc_lang): Declare.
10637 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
10638 Make static.
10639 (_initialize_opencl_language): Declare.
10640 * record.c (_initialize_record): Declare.
10641 * remote.c (demand_private_info, remote_get_tib_address)
10642 (remote_supports_cond_tracepoints)
10643 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
10644 Make static.
10645 * skip.c (_initialize_step_skip): Declare.
10646 * symtab.c (skip_prologue_using_lineinfo): Make static.
10647 * tracepoint.c (delete_trace_state_variable)
10648 (trace_variable_command, delete_trace_variable_command)
10649 (get_uploaded_tsv, find_matching_tracepoint_location)
10650 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
10651 Make static.
10652 * value.c (pack_unsigned_long): Make static.
10653 * varobj.c (varobj_ensure_python_env): Make static.
10654 * windows-tdep.c (_initialize_windows_tdep): Declare.
10655 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
10656
33fbcbee
PA
106572012-03-01 Pedro Alves <palves@redhat.com>
10658
10659 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
10660 gdbarch parameter.
10661 (linux_init_abi): Install it as has_shared_address_space gdbarch
10662 callback.
10663
44d0cd3b
PA
106642012-03-01 Pedro Alves <palves@redhat.com>
10665
10666 * observer.c (observer_test_first_notification_function)
10667 (observer_test_second_notification_function)
10668 (observer_test_third_notification_function): Add declarations.
10669
ed01b82c
PA
106702012-03-01 Pedro Alves <palves@redhat.com>
10671
10672 * common/signals.c (default_target_signal_to_host)
10673 (default_target_signal_from_host): Move ...
10674 * arch-utils.c: ... here.
10675 * arch-utils.h (default_target_signal_to_host)
10676 (default_target_signal_from_host): Declare.
10677
10678 * common/signals.c (target_signal_from_command): Move ...
10679 * infrun.c: ... here.
10680 * inferior.h (target_signal_from_command): Declare.
10681 * target.h (target_signal_from_command)
10682 (default_target_signal_from_host, default_target_signal_to_host):
10683 Delete declarations.
10684
10685 * common/signals.c (_initialize_signals): Delete.
10686
c9b87335
PA
106872012-03-01 Pedro Alves <palves@redhat.com>
10688
10689 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
10690 both __cplusplus and !__cplusplus.
10691
9340a6c0
PA
106922012-03-01 Pedro Alves <palves@redhat.com>
10693
10694 * psymtab.c (find_and_open_source): Delete declaration.
10695 * source.c (find_and_open_source): Move comment ...
10696 * source.h (find_and_open_source): ... to this new declaration.
10697
e451c4a1
PA
106982012-03-01 Pedro Alves <palves@redhat.com>
10699
10700 * inline-frame.c: Include inline-frame.h.
10701
983fb104
PA
107022012-03-01 Pedro Alves <palves@redhat.com>
10703
10704 * tui/tui-data.c (set_gen_win_origin): Delete.
10705 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
10706 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
10707
5fbce5df
PA
107082012-03-01 Pedro Alves <palves@redhat.com>
10709
10710 * remote.c (encode_actions): Delete declaration.
10711 * tracepoint.c (encode_actions): Make extern.
10712 * tracepoint.h (encode_actions): Declare.
10713
49a8461d
PA
107142012-03-01 Pedro Alves <palves@redhat.com>
10715
10716 * python/py-breakpoint.c: Include python.h.
10717 * python/py-continueevent.c (create_continue_event_object): Make
10718 static.
10719 * python/py-lazy-string.c (stpy_get_type): Make static.
10720 * python/py-newobjfileevent.c (create_new_objfile_event_object):
10721 Make static.
10722 * python/py-utils.c (unicode_to_target_python_string): Make
10723 static.
10724 * python/py-value.c: Include python.h.
10725
9079102f
PA
107262012-03-01 Pedro Alves <palves@redhat.com>
10727
10728 * inferior.c (delete_threads_of_inferior): Delete.
10729
a298c5e8
PA
107302012-03-01 Pedro Alves <palves@redhat.com>
10731
10732 Import fallback definitions from glibc.
10733
10734 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
10735 ps_prochandle): Forward declare.
10736 (ps_err_e): Use glibc's comments.
10737 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
10738 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
10739 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
10740 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
10741 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
10742 (struct ps_prochandle): Adjust comment.
10743
e3084549
PA
107442012-03-01 Pedro Alves <palves@redhat.com>
10745
10746 * ada-lang.c (ada_modulus_from_name): Delete.
10747 * ada-lex.l (lexer_init): Make static.
10748
ad5f7d6e
PA
107492012-03-01 Pedro Alves <palves@redhat.com>
10750
10751 PR gdb/13767
10752
10753 * frame.c (read_frame_register_unsigned): New.
10754 * frame.h (read_frame_register_unsigned): Declare.
10755 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
10756 Handle it.
10757 (print_i387_control_word): New parameter `control_p'. Handle it.
10758 (i387_print_float_info): Handle unavailable float registers.
10759
e0a4d108
KS
107602012-03-01 Keith Seitz <keiths@redhat.com>
10761
10762 * linespec.c (decode_line_2): Sort the list of methods
10763 alphabetically before presenting the user with a selection
10764 menu.
10765
122d1940
DE
107662012-03-01 Doug Evans <dje@google.com>
10767
10768 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
10769 has_namespace_info.
10770 (dwarf2_read_abbrevs): Remove corresponding initialization.
10771
7d74f244
DE
107722012-03-01 Scott J. Goldman <scottjg@vmware.com>
10773
10774 * NEWS: Mention new python command class gdb.COMMAND_USER.
10775 * cli/cli-cmds.c (show_user): Print error when used on a python
10776 command.
10777 (init_cli_cmds): Update documentation strings for "show user" and
10778 "set/show max-user-call-depth" to clarify that it does not apply to
10779 python commands.
10780 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
10781 error check.
10782 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
10783 gdb python api.
10784 * top.c (execute_command): Only execute a user-defined command as a
10785 legacy macro if c->user_commands is set.
10786
e88acd96
TT
107872012-03-01 Tom Tromey <tromey@redhat.com>
10788
10789 * valprint.h (struct generic_val_print_decorations): New.
10790 (generic_val_print): Declare.
10791 * valprint.c (generic_val_print): New function.
10792 * p-valprint.c (p_decorations): New global.
10793 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
10794 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
10795 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
10796 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
10797 * m2-valprint.c (m2_decorations): New global.
10798 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
10799 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
10800 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
10801 TYPE_CODE_ERROR>: Call generic_val_print.
10802 * f-valprint.c (f_decorations): New global.
10803 (f_val_print): Use print_function_pointer_address.
10804 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
10805 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
10806 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
10807 generic_val_print.
10808 * c-valprint.c (c_decorations): New global.
10809 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
10810 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
10811 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
10812 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
10813 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
10814 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
10815 case.
10816
d3eab38a
TT
108172012-03-01 Tom Tromey <tromey@redhat.com>
10818
10819 * valprint.c (val_print): Update.
10820 * p-valprint (pascal_val_print): Return void.
10821 * p-lang.h (pascal_val_print): Return void.
10822 * m2-valprint.c (m2_val_print): Return void.
10823 * m2-lang.h (m2_val_print): Return void.
10824 * language.h (struct language_defn) <la_val_print>: Return void.
10825 * language.c (unk_lang_val_print): Return void.
10826 * jv-valprint.c (java_val_print): Return void.
10827 * jv-lang.h (java_val_print): Return void.
10828 * f-valprint.c (f_val_print): Return void.
10829 * f-lang.h (f_val_print): Return void.
10830 * d-valprint.c (d_val_print): Return void.
10831 (dynamic_array_type): Update.
10832 * d-lang.h (d_val_print): Return void.
10833 * c-valprint.c (c_val_print): Return void.
10834 * c-lang.h (c_val_print): Return void.
10835 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
10836 void.
10837 * ada-lang.h (ada_val_print): Return void.
10838
35c0084b
TT
108392012-03-01 Tom Tromey <tromey@redhat.com>
10840
10841 * value.h (val_print): Return void.
10842 * valprint.c (val_print): Return void.
10843
a1f5dd1b
TT
108442012-03-01 Tom Tromey <tromey@redhat.com>
10845
10846 * value.h (common_val_print): Return void.
10847 * valprint.c (common_val_print): Return void.
10848
8e069a98
TT
108492012-03-01 Tom Tromey <tromey@redhat.com>
10850
10851 * value.h (value_print): Return void.
10852 * valprint.c (value_print): Return void.
10853 * p-valprint.c (pascal_value_print): Return void.
10854 * p-lang.h (pascal_value_print): Return void.
10855 * language.h (struct language_defn) <la_value_print>: Return
10856 void.
10857 * language.c (unk_lang_value_print): Return void.
10858 * jv-valprint.c (java_value_print): Return void.
10859 * jv-lang.h (java_value_print): Return void.
10860 * f-valprint.c (c_value_print): Don't declare.
10861 Include c-lang.h.
10862 * c-valprint.c (c_value_print): Return void.
10863 * c-lang.h (c_value_print): Return void.
10864 * ada-valprint.c (ada_value_print): Return void.
10865 * ada-lang.h (ada_value_print): Return void.
10866
be335936
TT
108672012-03-01 Tom Tromey <tromey@redhat.com>
10868
10869 * value.c (value_primitive_field): Handle virtual base classes.
10870
b0db66a7
TT
108712012-03-01 Tom Tromey <tromey@redhat.com>
10872
10873 * gdbtypes.h (struct vbase): Remove.
10874
132c57b4
TT
108752012-03-01 Tom Tromey <tromey@redhat.com>
10876
10877 * c-valprint.c (print_function_pointer_address): Move...
10878 * valprint.c: ... here. Make non-static.
10879 * m2-valprint.c (print_function_pointer_address): Remove.
10880 * valprint.h (print_function_pointer_address): Declare.
10881
e41eec66
JB
108822012-03-01 Joel Brobecker <brobecker@adacore.com>
10883
10884 * NEWS: Document the fact that one can provide a condition when
10885 creating an Ada exception catchpoint.
10886
19c37f24
TT
108872012-03-01 Tom Tromey <tromey@redhat.com>
10888
10889 * valprint.c (val_print_type_code_flags): Fix placement of
10890 trailing brace.
10891
f0fed3a3
JB
108922012-03-01 Joel Brobecker <brobecker@adacore.com>
10893
10894 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10895 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10896 environment variable before calling update-copyright.
10897
8ba85d85
JB
108982012-03-01 Joel Brobecker <brobecker@adacore.com>
10899
10900 * gnulib/extra/update-copyright: Update to the latest from
10901 gnulib's git repository.
10902 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10903 variable to 2 instead of 1.
10904
8219b1e8
JB
109052012-02-29 Joel Brobecker <brobecker@adacore.com>
10906
10907 * varobj.c (c_value_of_variable): Remove dead code.
10908
718cb7da
JB
109092012-02-29 Joel Brobecker <brobecker@adacore.com>
10910
10911 * ada-lex.p (processId): Do not modify already encoded IDs.
10912 Update function documentation.
10913
739593e0
JB
109142012-02-29 Joel Brobecker <brobecker@adacore.com>
10915
10916 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10917 "name" with "struct symbol *name_sym".
10918 * ada-exp.y (write_var_or_type): Update call to
10919 ada_find_renaming_symbol.
10920 "name" with "struct symbol *name_sym". Adjust Implementation
10921 accordingly. Adjust the function documentation.
10922
852dff6c
JB
109232012-02-29 Joel Brobecker <brobecker@adacore.com>
10924
10925 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10926 * ada-lang.c (ada_find_any_type): Add advance declaration.
10927 Make static. Replace ada_find_any_symbol by
10928 ada_find_any_type_symbol.
10929 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10930 Improve function description. Make static.
10931 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10932 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10933
1b611343
JB
109342012-02-29 Joel Brobecker <brobecker@adacore.com>
10935
10936 * ada-lang.c (struct tag_args): Delete.
10937 (ada_get_tsd_type): Function body moved up in source file.
10938 (ada_tag_name_1, ada_tag_name_2): Delete.
10939 (ada_get_tsd_from_tag): New function.
10940 (ada_tag_name_from_tsd): New function.
10941 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10942 to determine the tag name.
10943
41246937
JB
109442012-02-29 Joel Brobecker <brobecker@adacore.com>
10945
10946 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10947 declaration.
10948 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10949 function.
10950
ffde82bf
JB
109512012-02-29 Joel Brobecker <brobecker@adacore.com>
10952
10953 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10954
2ad01556
JB
109552012-02-29 Joel Brobecker <brobecker@adacore.com>
10956
10957 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10958 full searches.
10959
99b1c762
JB
109602012-02-29 Joel Brobecker <brobecker@adacore.com>
10961
10962 * ada-lang.c (constrained_packed_array_type): If there is a
10963 parallel XA type, use it to determine the array index type.
10964
2d4a02ee
JB
109652012-02-29 Joel Brobecker <brobecker@adacore.com>
10966
10967 * ada-valprint.c (ada_val_print_1): If our value is a reference
10968 to an array descriptor, dereference it before converting it
10969 to a simple array.
10970
c48db5ca
JB
109712012-02-29 Joel Brobecker <brobecker@adacore.com>
10972
10973 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10974 creating fixed value.
10975 (ada_value_ind, ada_coerce_ref, assign_component)
10976 (ada_evaluate_subexp): Remove call to unwrap_value before
10977 call to ada_to_fixed_value.
10978
2e6fda7d
JB
109792012-02-29 Joel Brobecker <brobecker@adacore.com>
10980
10981 * ada-lang.c (to_fixed_array_type): Set result's type name.
10982
5845583d
JB
109832012-02-29 Joel Brobecker <brobecker@adacore.com>
10984
10985 * ada-lang.c (catch_ada_exception_command_split): Add new
10986 argument cond_string. Add support for condition at end of
10987 "catch exception" commands.
10988 (ada_decode_exception_location): Add new argument cond_string.
10989 Update call to catch_ada_exception_command_split.
10990 (create_ada_exception_catchpoint): Add new argument cond_string.
10991 Set the breakpoint condition if needed.
10992 (catch_ada_exception_command): Update call to
10993 ada_decode_exception_location.
10994 (ada_decode_assert_location): Add function documentation.
10995 Add support for condition at end of "catch assert" command.
10996 (catch_assert_command): Update calls to ada_decode_assert_location
10997 and create_ada_exception_catchpoint.
10998
9a7f938f
JK
109992012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11000
11001 Fix disp-step-syscall.exp: fork: single step over fork.
11002 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
11003 (i386_linux_get_syscall_number_from_regcache): ... here, new function
11004 comment, change parameters gdbarch and ptid to regcache. Remove
11005 parameter regcache, initialize gdbarch from regcache here.
11006 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
11007 New functions.
11008 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
11009 instead.
11010 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
11011 'syscall'. Make the 'int' check more strict.
11012
ffdf6de5
JK
110132012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11014
11015 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
11016 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
11017 (i386_linux_intx80_sysenter_syscall_record): ... here.
11018 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
11019 Use the renamed function name.
11020
c70a6932
JK
110212012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
11022
11023 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
11024 * breakpoint.c (until_break_command): Likewise.
11025 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
11026 * infcall.c (call_function_by_hand): Likewise.
11027 * infcmd.c (finish_forward): Likewise.
11028 * infrun.c (insert_exception_resume_breakpoint): Likewise.
11029
05b8a789 110302012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 11031
d4cd3da9
JB
11032 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
11033 avoid variable assignments inside condition.
11034
6425366c
JK
110352012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11036
11037 Fix static analysis issue found by cppcheck.
11038 * microblaze-tdep.c (microblaze_extract_return_value): Fix
11039 uninitialized BUF for size 2.
11040
c8cef75f 110412012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
11042 Nathan Froyd <froydnj@codesourcery.com>
11043 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
11044
11045 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
11046 (mips16_instruction_has_delay_slot): Likewise.
11047 (mips_segment_boundary): Likewise.
11048 (mips_adjust_breakpoint_address): Likewise.
11049 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
11050
473347ad 110512012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 11052 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
11053
11054 * infrun.c (handle_inferior_event): Don't proceed through
11055 shared library trampolines if stepping at the machine
11056 instruction level.
11057
cf233303
MR
110582012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
11059
11060 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
11061 too.
11062
cb2cf4ce
TS
110632012-02-27 Thomas Schwinge <thomas@codesourcery.com>
11064
11065 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
11066 (sh_stub_unwind_sniffer): New functions.
11067 (sh_stub_unwind): New variable.
11068 (sh_gdbarch_init): Wire everything.
11069
644cebc9
PA
110702012-02-27 Pedro Alves <palves@redhat.com>
11071
11072 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
11073 (linux_nat_post_attach_wait): Adjust to use
11074 linux_proc_pid_is_stopped.
11075 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
11076 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
11077 based on pid_is_stopped from both linux-nat.c and
11078 gdbserver/linux-low.c, and renamed.
11079
283002cf
MR
110802012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11081
11082 * remote.c (remote_watchpoint_addr_within_range): New function.
11083 (init_remote_ops): Use it.
11084
9b3e86b1
MR
110852012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
11086
11087 * target.h (target_watchpoint_addr_within_range): Document macro.
11088
e36930bb
PA
110892012-02-24 Pedro Alves <palves@redhat.com>
11090
11091 * stack.c (set_last_displayed_sal): Issue internal_error instead
11092 of warning, and issue it after clearing the last displayed sal.
11093
883bc8d1
PA
110942012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11095 Pedro Alves <palves@redhat.com>
11096
11097 * breakpoint.c (until_break_command): Install breakpoints after
11098 all frame manipulations.
11099
b775012e
LM
111002012-02-24 Luis Machado <lgustavo@codesourcery.com>
11101
11102 * remote.c (remote_supports_cond_breakpoints): New forward
11103 declaration.
11104 (remote_add_target_side_condition): New function.
11105 (remote_insert_breakpoint): Add target-side breakpoint
11106 conditional if supported.
11107 (remote_insert_hw_breakpoint): Likewise.
11108 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
11109 hook.
11110
11111 * target.c (update_current_target): Inherit
11112 to_supports_evaluation_of_breakpoint_conditions.
11113 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
11114
11115 * target.h (struct target_ops)
11116 <to_supports_evaluation_of_breakpoint_conditions>: New field.
11117 (target_supports_evaluation_of_breakpoint_conditions): New #define.
11118
11119 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
11120 (condition_evaluation_both, condition_evaluation_auto,
11121 condition_evaluation_host, condition_evaluation_target,
11122 condition_evaluation_enums, condition_evaluation_mode_1,
11123 condition_evaluation_mode): New static globals.
11124 (translate_condition_evaluation_mode): New function.
11125 (breakpoint_condition_evaluation_mode): New function.
11126 (gdb_evaluates_breakpoint_condition_p): New function.
11127 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
11128 (mark_breakpoint_modified): New function.
11129 (mark_breakpoint_location_modified): New function.
11130 (set_condition_evaluation_mode): New function.
11131 (show_condition_evaluation_mode): New function.
11132 (bp_location_compare_addrs): New function.
11133 (get_first_location_gte_addr): New helper function.
11134 (set_breakpoint_condition): Free condition bytecode if locations
11135 has become unconditional. Call mark_breakpoint_modified (...).
11136 (condition_command): Call update_global_location_list (1) for
11137 breakpoints.
11138 (breakpoint_xfer_memory): Use is_breakpoint (...).
11139 (is_breakpoint): New function.
11140 (parse_cond_to_aexpr): New function.
11141 (build_target_condition_list): New function.
11142 (insert_bp_location): Handle target-side conditional
11143 breakpoints and call build_target_condition_list (...).
11144 (update_inserted_breakpoint_locations): New function.
11145 (insert_breakpoint_locations): Handle target-side conditional
11146 breakpoints.
11147 (bpstat_check_breakpoint_conditions): Add comment.
11148 (bp_condition_evaluator): New function.
11149 (bp_location_condition_evaluator): New function.
11150 (print_breakpoint_location): Print information on where the condition
11151 will be evaluated.
11152 (print_one_breakpoint_location): Likewise.
11153 (init_bp_location): Call mark_breakpoint_location_modified (...) for
11154 breakpoint location.
11155 (force_breakpoint_reinsertion): New functions.
11156 (update_global_location_list): Handle target-side breakpoint
11157 conditions.
11158 Reinsert locations that are already inserted if conditions have
11159 changed.
11160 (bp_location_dtor): Free agent expression bytecode.
11161 (disable_breakpoint): Call mark_breakpoint_modified (...).
11162 Call update_global_location_list (...) with parameter 1 for breakpoints.
11163 (disable_command): Call mark_breakpoint_location_modified (...).
11164 Call update_global_location_list (...) with parameter 1 for breakpoints.
11165 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
11166 (enable_command): mark_breakpoint_location_modified (...).
11167 (_initialize_breakpoint): Update documentation and add
11168 condition-evaluation breakpoint subcommand.
11169
11170 * breakpoint.h: Include ax.h.
11171 (condition_list): New data structure.
11172 (condition_status): New enum.
11173 (bp_target_info) <cond_list>: New field.
11174 (bp_location) <condition_changed, cond_bytecode>: New fields.
11175 (is_breakpoint): New prototype.
11176
3788aec7
LM
111772012-02-24 Luis Machado <lgustavo@codesourcery.com>
11178
11179 * remote.c (remote_state) <cond_breakpoints>: New field.
11180 (PACKET_ConditionalBreakpoints): New enum.
11181 (remote_cond_breakpoint_feature): New function.
11182 (remote_protocol_features): Add new ConditionalBreakpoints entry.
11183 (remote_supports_cond_breakpoints): New function.
11184 (_initialize_remote): Add new packet configuration for
11185 target-side conditional breakpoints.
11186
72895ff6
LM
111872012-02-24 Luis Machado <lgustavo@codesourcery.com>
11188
11189 * NEWS: Mention target-side conditional breakpoint support,
11190 new condition-evaluation breakpoint subcommand and remote
11191 packet extensions.
11192
dea2aa5f
LM
111932012-02-24 Luis Machado <lgustavo@codesourcery.com>
11194
11195 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
11196 number.
11197
8a8bc27f
TS
111982012-02-24 Thomas Schwinge <thomas@codesourcery.com>
11199
11200 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
11201 (after_prologue): Remove.
11202
6b446fdf
TT
112032012-02-23 Tom Tromey <tromey@redhat.com>
11204
11205 * jv-valprint.c (java_val_print): Remove dead code.
11206
ef59abfb
TG
112072012-02-23 Tristan Gingold <gingold@adacore.com>
11208
a09130f9
PA
11209 * ada-tasks.c (struct ada_tasks_inferior_data): Add
11210 known_tasks_element and known_tasks_length fields.
11211 (read_known_tasks_array): Change argument type. Use pointer type
11212 and number of elements from DATA. Adjust.
11213 (read_known_tasks_list): Likewise.
11214 (get_known_tasks_addr): Remove.
11215 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
11216 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
11217 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 11218
def166f6
JK
112192012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11220
11221 PR backtrace/13716
11222 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
11223 it after set_momentary_breakpoint.
11224
aeaa2474
SA
112252012-02-22 Sterling Augustine <saugustine@google.com>
11226
11227 PR 13689:
11228 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
11229
feea76c2
GB
112302012-02-22 Gary Benson <gbenson@redhat.com>
11231
11232 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
11233 (find_slot_in_mapped_hash): Likewise.
11234
f06e05e0
JK
112352012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
11236
11237 PR build/13638
11238 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
11239 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
11240 * configure: Regenerate.
11241
b54a8fd7
PA
112422012-02-21 Tristan Gingold <gingold@adacore.com>
11243 Pedro Alves <palves@redhat.com>
11244
11245 * ia64-tdep.c: Do not include libunwind-ia64.h.
11246 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
11247 Include libunwind-ia64.h instead of libunwind.h.
11248 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
11249 for libunwind.h existence.
11250 * configure, config.in: Regenerate.
11251
dfcee124
AG
112522012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11253
11254 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
11255 instead of value_rtti_target_type.
11256 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
11257 instead of value_rtti_target_type.
11258 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
11259 value_rtti_target_type.
11260 * valops.c (value_ind): Extract function readjust_indirect_value_type.
11261 (value_rtti_target_type): Rename to ...
11262 (value_rtti_indirect_type): ... here and make it indirect. Update
11263 function comment.
11264 * value.c (readjust_indirect_value_type): New function.
11265 (coerce_ref): Support for enclosing type setting for references
11266 with readjust_indirect_value_type.
11267 * value.h (readjust_value_type): New declaration.
11268 (value_rtti_target_type): Rename to ...
11269 (value_rtti_indirect_type): ... here.
11270
02568277
AG
112712012-02-21 Anton Gorenkov <xgsa@yandex.ru>
11272
11273 * MAINTAINERS (Write After Approval): Add myself to the list.
11274
10c07b7e 112752012-02-20 Doug Evans <dje@google.com>
28ee876a 11276
d82ea6a8
DE
11277 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
11278 Rename objfile_p_char parameter to objfilep.
11279 (build_objfile_section_table): Result is now void. All callers
11280 updated.
11281 * objfiles.h (struct objfile): Tweak comments, whitespace.
11282 (build_objfile_section_table): Update.
11283
28ee876a
DE
11284 * elfread.c (elf_symfile_segments): Fix warning text.
11285
24c79950
TT
112862012-02-20 Tom Tromey <tromey@redhat.com>
11287
11288 PR gdb/13498:
11289 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
11290 particular set of file names once.
11291 (dw2_map_symbol_filenames): Likewise.
11292
3a9b40b6
JK
112932012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
11294
11295 Code cleanup.
11296 * main.c (write_files): Remove the declaration.
11297 (external_editor_command): Move the declaration ...
11298 [GDBTK] (external_editor_command): ... here. Fix the comment.
11299
4d0795ca
TT
113002012-02-20 Tom Tromey <tromey@redhat.com>
11301
11302 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
11303 extraneous block.
11304
637fd620
TG
113052012-02-20 Tristan Gingold <gingold@adacore.com>
11306
11307 * darwin-nat.h (enum darwin_msg_state): Add comments.
11308
6f124894
TG
113092012-02-20 Tristan Gingold <gingold@adacore.com>
11310
11311 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
11312 value.
11313
2e6e3d9c
JB
113142012-20-18 Joel Brobecker <brobecker@adacore.com>
11315
11316 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
11317 between function description and implementation.
11318
2e8265fd
TT
113192012-02-17 Tom Tromey <tromey@redhat.com>
11320
11321 PR python/12070:
11322 * python/py-event.c (event_object_getset): New global.
11323 (event_object_type): Reference it.
11324 * python/py-type.c (field_object_getset): New global.
11325 (field_object_type): Reference it.
11326 * python/python-internal.h (gdb_py_generic_dict): Declare.
11327 * python/py-utils.c (gdb_py_generic_dict): New function.
11328
8544a150 113292012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 11330
8544a150 11331 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 11332
ca193e27
TS
113332012-02-17 Thomas Schwinge <thomas@codesourcery.com>
11334
11335 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
11336 TYPE_CALLING_CONVENTION annotation.
11337
e5586183
KB
113382012-02-16 Kevin Buettner <kevinb@redhat.com>
11339
11340 * MAINTAINERS: Add rx to target ISA section.
11341 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
11342 (ALLDEPFILES): Add rx-tdep.c.
11343
7dcd53a0
TT
113442012-02-16 Tom Tromey <tromey@redhat.com>
11345
11346 * symfile.c (symbol_file_add_main_1): Use inferior's
11347 symfile_flags.
11348 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
11349 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
11350 inferior.
11351 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
11352 inferior.
11353 (follow_exec): Use inferior's symfile_flags.
11354 * inferior.h (struct inferior) <symfile_flags>: New field.
11355
ddd60447
MF
113562012-02-16 Mike Frysinger <vapier@gentoo.org>
11357
11358 PR gdb/9734:
11359 * remote-sim.c (gdbsim_create_inferior): Call error() when
11360 sim_create_inferior() fails.
11361
b0d32fb6
TG
113622012-02-16 Josh Matthews <josh@joshmatthews.net>
11363
11364 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
11365
9addecb9
TT
113662012-02-16 Tom Tromey <tromey@redhat.com>
11367
11368 PR c++/13653:
11369 * thread.c (struct current_thread_cleanup) <was_removable>: New
11370 field.
11371 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
11372 (make_cleanup_restore_current_thread): Initialize new field.
11373
a58b110a
KB
113742012-02-15 Kevin Buettner <kevinb@redhat.com>
11375
11376 * MAINTAINERS: Add rl78 to target ISA section.
11377 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
11378 (ALLDEPFILES): Add rl78-tdep.c.
11379 * NEWS: Mention rl78 as a new target.
11380
4cb6da1c
AR
113812012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
11382
11383 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
11384 data.
11385 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
11386
3af2590d
TT
113872012-02-15 Tom Tromey <tromey@redhat.com>
11388
11389 PR gdb/12659:
11390 * infcmd.c (registers_info): Print just the current register's
11391 name.
11392
c6910659
TT
113932012-02-15 Tom Tromey <tromey@redhat.com>
11394
11395 * python/py-symbol.c (sympy_value): Use _().
11396
7cee1e54
PA
113972012-02-15 Pedro Alves <palves@redhat.com>
11398
11399 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
11400 output to be like native targets'.
11401 (remote_pid_to_str): Special case the null ptid.
11402
816338b5
SS
114032012-02-14 Stan Shebs <stan@codesourcery.com>
11404
11405 * NEWS: Mention enable count command.
11406 * breakpoint.h (struct breakpoint): New field enable_count.
11407 * breakpoint.c (enable_breakpoint_disp): Add count argument.
11408 (enable_breakpoint): Add arg to call.
11409 (struct disp_data): New struct.
11410 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
11411 (do_map_enable_once_breakpoint): Create a struct and pass it.
11412 (do_map_enable_delete_breakpoint): Ditto.
11413 (do_map_enable_count_breakpoint): New function.
11414 (enable_count_command): New function.
11415 (bpstat_stop_status): Decrement enable_count.
11416 (print_one_breakpoint_location): Report enable count.
11417 (_initialize_breakpoint): Add enable count command.
11418
c47a44f4
KB
114192012-02-14 Kevin Buettner <kevinb@redhat.com>
11420
11421 * rl78-tdep.c (reggroups.h): Include.
11422 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
11423 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
11424 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
11425 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
11426 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
11427 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
11428 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
11429 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
11430 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
11431 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
11432 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
11433 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
11434 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
11435 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
11436 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
11437 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
11438 beginning of register list.
11439 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
11440 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
11441 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
11442 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
11443 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
11444 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
11445 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
11446 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
11447 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
11448 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
11449 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
11450 the pseudo registers. Rearrange other pseudo registers too so
11451 that the bank registers appear at the end.
11452 (rl78_register_type): Account for the fact that the byte sized
11453 bank registers are now pseudo-registers.
11454 (rl78_register_name): Rearrange the register name array. Make
11455 initial set of raw banked registers inaccessible.
11456 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
11457 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
11458 case for copying bytes back and forth between raw and pseudo
11459 versions of the banked registers. Update other cases to reflect
11460 the changed names.
11461 (rl78_return_value): Update to account for changed names of
11462 raw registers.
11463 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
11464 rl78_register_sim_regno().
11465
e4569f1e
KB
114662012-02-14 Kevin Buettner <kevinb@redhat.com>
11467
11468 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
11469 the name parameter being passed to find_pc_partial_function().
11470
7a05aae7
JK
114712012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
11472
11473 * MAINTAINERS: Step down from being ia64 target maintainer.
11474
11fde611
JK
114752012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11476
11477 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
11478 compilation warning.
11479
57008375
JK
114802012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11481
11482 Fix crash on loaded shlibs without loaded exec_bfd.
11483 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
11484 (set_section_command): Replace exec_bfd by p->bfd.
11485
ff3c9849
TT
114862012-02-10 Tom Tromey <tromey@redhat.com>
11487
11488 * linespec.c (decode_line_internal): Skip symtabs_from_filename
11489 when we have a C++ qualified name.
11490
db2b9fdd
PA
114912012-02-10 Pedro Alves <palves@redhat.com>
11492
11493 * inferior.c (inferior_pid_to_str): New.
11494 (print_inferior, inferior_command): Use it.
11495
12cd34f3
PA
114962012-02-10 Pedro Alves <palves@redhat.com>
11497
11498 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
11499 the test CFLAGS.
11500 * configure: Regenerate.
11501
e871429d
JK
115022012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11503
11504 * linespec.c (decode_line_internal): Fix comment correctness.
11505
1916efaf
PA
115062012-02-09 Valery Khromov <valery.khromov@gmail.com>
11507
11508 PR gdb/12953
11509 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
11510 * amd64bsd-nat.c: Add support for debug registers (adapted from
11511 i386bsd-nat.c).
11512 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
11513 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
11514 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
11515 (amd64bsd_dr_get_control): New functions.
11516 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
11517 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
11518 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
11519 watchpoints initialization.
11520 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
11521
f4859d94
JK
115222012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11523
11524 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
11525 flds_bnds.fields.
11526 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
11527
c56a97f9
JK
115282012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11529
11530 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
11531
1a119f36
JB
115322012-02-08 Joel Brobecker <brobecker@adacore.com>
11533
11534 * language.h (symbol_name_cmp_ftype): Renames
11535 symbol_name_match_p_ftype.
11536 (struct language_defn)[la_get_symbol_name_cmp]: Renames
11537 la_get_symbol_name_match_p.
11538 * ada-lang.c (ada_get_symbol_name_cmp): Renames
11539 ada_get_symbol_name_match_p. Update comment.
11540 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
11541 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
11542 Renames symbol_name_match_p. Update field type.
11543 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
11544 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11545 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
11546 "la_get_symbol_name_cmp" in comments.
11547 * language.c: Likewise.
11548
c71bb1cf
RO
115492012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
11550
11551 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
11552 %eflags offset.
11553 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
11554 (amd64_sol2_gregset32_reg_offs): Likewise.
11555
4b2d20a5
TG
115562012-02-08 Joel Brobecker <brobecker@adacore.com>
11557
11558 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
11559 of the returned BFD is allocated by GDB.
11560
f0823d2c
TT
115612012-02-07 Tom Tromey <tromey@redhat.com>
11562
11563 PR python/12027:
11564 * python/python-internal.h (frame_object_type): Declare.
11565 * python/py-symbol.c (sympy_needs_frame): New function.
11566 (sympy_value): New function.
11567 (symbol_object_getset): Add "needs_frame".
11568 (symbol_object_methods): Add "value".
11569 * python/py-frame.c (frame_object_type): No longer static.
11570
64e7d9dd
TT
115712012-02-07 Tom Tromey <tromey@redhat.com>
11572
11573 PR python/13599:
11574 * python/py-symbol.c (sympy_line): New function.
11575 (symbol_object_getset): Add "line".
11576
1d6b2d2b
TT
115772012-02-07 Tom Tromey <tromey@redhat.com>
11578
11579 * charset.c (find_charset_names): Check 'in' against NULL.
11580
0d5cff50
DE
115812012-02-06 Doug Evans <dje@google.com>
11582
11583 * gdbtypes.h (struct main_type): Change type of name,tag_name,
11584 and fields.name members from char * to const char *. All uses updated.
11585 (struct cplus_struct_type): Change type of fn_fieldlists.name member
11586 from char * to const char *. All uses updated.
11587 (type_name_no_tag): Update.
11588 (lookup_unsigned_typename, lookup_signed_typename): Update.
11589 * gdbtypes.c (type_name_no_tag): Change result type
11590 from char * to const char *. All callers updated.
11591 (lookup_unsigned_typename, lookup_signed_typename): Change type of
11592 name parameter from char * to const char *.
11593 * symtab.h (struct cplus_specific): Change type of demangled_name
11594 member from char * to const char *. All uses updated.
11595 (struct general_symbol_info): Change type of name and
11596 mangled_lang.demangled_name members from char * to const char *.
11597 All uses updated.
11598 (symbol_get_demangled_name, symbol_natural_name): Update.
11599 (symbol_demangled_name, symbol_search_name): Update.
11600 * symtab.c (symbol_get_demangled_name): Change result type
11601 from char * to const char *. All callers updated.
11602 (symbol_natural_name, symbol_demangled_name): Ditto.
11603 (symbol_search_name): Ditto.
11604 (completion_list_add_name): Change type of symname,sym_text,
11605 text,word parameters from char * to const char *.
11606 (completion_list_objc_symbol): Change type of sym_text,
11607 text,word parameters from char * to const char *.
11608 * ada-lang.c (find_struct_field): Change type of name parameter
11609 from char * to const char *.
11610 (encoded_ordered_before): Similarly for N0,N1 parameters.
11611 (old_renaming_is_invisible): Similarly for function_name parameter.
11612 (ada_type_name): Change result type from char * to const char *.
11613 All callers updated.
11614 * ada-lang.h (ada_type_name): Update.
11615 * buildsym.c (hashname): Change type of name parameter
11616 from char * to const char *.
11617 * buildsym.h (hashname): Update.
11618 * dbxread.c (end_psymtab): Change type of include_list parameter
11619 from char ** to const char **.
11620 * dwarf2read.c (determine_prefix): Change result type
11621 from char * to const char *. All callers updated.
11622 * f-lang.c (find_common_for_function): Change type of name, funcname
11623 parameters from char * to const char *.
11624 * f-lang.c (find_common_for_function): Update.
11625 * f-valprint.c (list_all_visible_commons): Change type of funcname
11626 parameters from char * to const char *.
11627 * gdbarch.sh (static_transform_name): Change type of name parameter
11628 and result from char * to const char *.
11629 * gdbarch.c: Regenerate.
11630 * gdbarch.h: Regenerate.
11631 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
11632 of name parameter from char * to const char *.
11633 * jv-lang.c (java_primitive_type_from_name): Ditto.
11634 (java_demangled_signature_length): Similarly for signature parameter.
11635 (java_demangled_signature_copy): Ditto.
11636 (java_demangle_type_signature): Ditto.
11637 * jv-lang.h (java_primitive_type_from_name): Update.
11638 (java_demangle_type_signature): Update.
11639 * objc-lang.c (specialcmp): Change type of a,b parameters
11640 from char * to const char *.
11641 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
11642 from char * to const char *. All callers updated.
11643 * p-lang.h (is_pascal_string_type): Update.
11644 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
11645 of name parameter from char * to const char *.
11646 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
11647 * utils.c (fprintf_symbol_filtered): Ditto.
11648 * defs.h (fprintf_symbol_filtered): Update.
11649 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
11650 * stabsread.h (end_psymtab): Update.
11651 * stack.c (find_frame_funname): Change type of funname parameter
11652 from char ** to const char **.
11653 * stack.h (find_frame_funname): Update.
11654 * typeprint.c (type_print): Change type of varstring parameter
11655 from char * to const char *.
11656 * value.h (type_print): Update.
11657 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
11658 from char * to const char *. All callers updated.
11659 (xcoff_end_psymtab): Change type of include_list parameter
11660 from char ** to const char **. All callers updated.
11661 (swap_sym): Similarly for name parameter. All callers updated.
11662 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
11663 Use xstrdup.
11664 (process_coff_symbol): Use xstrdup.
11665 * stabsread.c (stabs_method_name_from_physname): Renamed from
11666 update_method_name_from_physname. Change result type from void
11667 to char *. All callers updated.
11668 (read_member_functions): In has_destructor case, store name in objfile
11669 obstack instead of malloc space. In !has_stub case, fix mem leak.
11670
5579a92e
TT
116712012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
11672
11673 * configure: Rebuild.
11674 * configure.ac: Put -L../bfd and -L../libiberty at the front of
11675 LDFLAGS.
11676
9058f767
KB
116772012-02-03 Kevin Buettner <kevinb@redhat.com>
11678
11679 * configure.tgt (rl78-*-elf): New target.
11680 * rl78-tdep.c: New file.
11681
5b37825d
PW
116822012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
11683
11684 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
11685 and continue the loop. Add QUIT statement.
11686
e009ee71
TT
116872012-02-03 Tom Tromey <tromey@redhat.com>
11688
11689 PR gdb/13596:
11690 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
11691 bfd_lookup_symbol_from_symtab.
11692 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
11693 gdb_bfd_lookup_symbol_from_symtab.
11694
f7e44f65
JB
116952012-02-03 Joel Brobecker <brobecker@adacore.com>
11696
11697 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
11698 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
11699 symbol. Add assertion that sym2 is never NULL.
11700
2c02bd72
DE
117012012-02-02 Doug Evans <dje@google.com>
11702
11703 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
11704 "name" parameter to const char ** from char **. All callers updated.
11705 (find_pc_partial_function): Ditto.
11706 (cache_pc_function_name): Change type to const char * from char *.
11707 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
11708 (find_pc_partial_function): Update.
11709 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
11710 type of "name" parameter to const char * from char *.
11711 All uses updated.
11712 * arch-utils.c (generic_in_solib_return_trampoline): Change
11713 type of "name" parameter to const char * from char *.
11714 * arch-utils.h (generic_in_solib_return_trampoline): Update.
11715 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
11716 type of "name" parameter to const char * from char *.
11717 * gdbarch.sh (in_solib_return_trampoline): Ditto.
11718 * gdbarch.c: Regenerate.
11719 * gdbarch.h: Regenerate.
11720 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
11721 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
11722 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
11723 type of "name" parameter to const char * from char *.
11724 * skip.c (skip_function_pc): Ditto.
11725 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
11726 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
11727 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
11728 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
11729 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
11730 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
11731 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
11732 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
11733 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
11734
e886a173
PA
117352012-02-02 Pedro Alves <palves@redhat.com>
11736
11737 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
11738 the current inferior has no execution. Make sure the current
11739 remote process matches gdb's current inferior.
11740
c709a7c2
TT
117412012-02-02 Tom Tromey <tromey@redhat.com>
11742
11743 PR gdb/13405:
11744 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
11745 read-only memory.
11746
f149aabd
TT
117472012-02-02 Tom Tromey <tromey@redhat.com>
11748
11749 PR gdb/9307:
11750 * symtab.c (lookup_language_this): Set block_found.
11751
03bef283
TT
117522012-02-01 Tom Tromey <tromey@redhat.com>
11753
11754 PR gdb/13431:
11755 * jit.c (struct jit_inferior_data): Rewrite.
11756 (struct jit_objfile_data): New.
11757 (get_jit_objfile_data): New function.
11758 (add_objfile_entry): Update.
11759 (jit_read_descriptor): Return int. Replace descriptor_addr
11760 argument with inf_data. Update. Don't call error.
11761 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
11762 descriptor here.
11763 (jit_inferior_init): Don't look up descriptor. Don't call error.
11764 (jit_reset_inferior_data_and_breakpoints)
11765 (jit_inferior_created_observer): Remove.
11766 (jit_inferior_exit_hook): Update.
11767 (jit_executable_changed_observer): Remove.
11768 (jit_event_handler): Update.
11769 (free_objfile_data): Reset inferior data if needed.
11770 (_initialize_jit): Update.
11771
f0bbc364
TT
117722012-02-01 Tom Tromey <tromey@redhat.com>
11773
11774 * jit.c (bfd_open_from_target_memory): Move higher in file.
11775
47c1316c
TG
117762012-02-01 Tristan Gingold <gingold@adacore.com>
11777
11778 * libunwind-frame.c (libunwind_load): Display message if dlopen
11779 failed.
11780
8e704927
GB
117812012-02-01 Gary Benson <gbenson@redhat.com>
11782
09c7a31f 11783 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
11784 (iterate_over_symbols): Use the above.
11785 * symtab.c (iterate_over_symbols): Likewise.
11786 * language.h (language_defn->la_iterate_over_symbols): Likewise.
11787 * ada-lang.c (ada_iterate_over_symbols): Likewise.
11788 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
11789 (iterate_name_matcher): Document return values.
11790 (collect_one_symbol): Likewise.
11791 (collect_function_symbols): Likewise.
11792 (collect_symbols): Likewise.
11793
d9680e73
TT
117942012-02-01 Tom Tromey <tromey@redhat.com>
11795
11796 * ada-lang.c (resolve_subexp): Update.
11797 (ada_lookup_symbol_list): Add 'full_search' argument.
11798 (ada_iterate_over_symbols): Pass 0 as full_search argument to
11799 ada_lookup_symbol_list.
11800 (ada_lookup_encoded_symbol): Update.
11801 (get_var_value): Update.
11802 * ada-exp.y (block_lookup): Update.
11803 (write_var_or_type): Update.
11804 (write_name_assoc): Update.
11805 * ada-lang.h (ada_lookup_symbol_list): Update.
11806
72e1143f
TT
118072012-01-31 Tom Tromey <tromey@redhat.com>
11808
11809 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
11810 comment.
11811
ab2d2ad3
DE
118122012-01-31 Doug Evans <dje@google.com>
11813
11814 * symtab.h: Remove outdated comment.
e9111bf7 11815 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 11816
bc884eba
JB
118172012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
11818
11819 Fix build error in Darwin port.
11820 * i386-darwin-nat.c: Include i386-nat.h.
11821
8fc3fc34
TT
118222012-01-30 Tom Tromey <tromey@redhat.com>
11823
11824 PR breakpoints/13568:
11825 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
11826 argument. Check for recursive includes.
11827 (dwarf_decode_macros): Create an include hash.
11828
5d853008
ME
118292012-01-30 Michael Eager <eager@eagercon.com>
11830
11831 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
11832 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 11833 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
11834 (powerpc_linux_in_plt_stub): New function.
11835 (powerpc_linux_in_dynsym_resolve_code): New function.
11836 (ppc_skip_trampoline_code): New function.
11837 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
11838 Use glibc_skip_solib_resolver.
11839
40478521
JK
118402012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
11841
11842 Code cleanup: Make 1440 bytes of data segment read-only.
11843 * arch-utils.c (endian_enum): Make it const char *const [].
11844 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11845 Likewise.
11846 * breakpoint.c (always_inserted_enums): Likewise.
11847 * cli/cli-cmds.c (script_ext_enums): Likewise.
11848 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11849 enumlist parameter const char *const *.
11850 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11851 const char *const *.
11852 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11853 parameter const char *const *.
11854 * cris-tdep.c (cris_modes): Make it const char *const [].
11855 * filesystem.c (target_file_system_kinds): Likewise.
11856 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11857 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11858 (can_use_displaced_stepping_enum, scheduler_enums)
11859 (exec_direction_names): Likewise.
11860 * language.c (_initialize_language): Make the type_or_range_names and
11861 case_sensitive_names variables const char *const [].
11862 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11863 * python/python.c (python_excp_enums): Likewise.
11864 * remote.c (interrupt_sequence_modes): Likewise.
11865 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11866 * serial.c (logbase_enums): Likewise.
11867 * sh-tdep.c (sh_cc_enum): Likewise.
11868 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11869 Likewise.
11870 * symtab.c (multiple_symbols_modes): Likewise.
11871 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11872 Likewise.
11873 * utils.c (internal_problem_modes): Likewise.
11874
b3b8b934
JK
118752012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11876
11877 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11878 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11879 result.
11880
8c85a4e2
DE
118812012-01-27 Doug Evans <dje@google.com>
11882
11883 * configure.ac (with_python): Fix absolute path handling for win32.
11884 * configure: Regenerate.
11885
78d8b4d7
DE
118862012-01-26 Doug Evans <dje@google.com>
11887
eca864fe
DE
11888 * symtab.c: Whitespace cleanup, no code changes.
11889
7e082072
DE
11890 * symtab.c (lookup_symbol_in_language): Improve comment.
11891 (lookup_symbol_aux): Fix comment.
11892
7dc25483
DE
11893 * psymtab.c (add_psymbol_to_list): Result is now "void".
11894 * psympriv.h (add_psymbol_to_list): Update.
11895
78d8b4d7
DE
11896 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11897
4c63965b
JK
118982012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11899
11900 Do not open script filenames twice.
11901 * cli/cli-cmds.c (source_script_from_stream): Pass to
11902 source_python_script also STREAM.
11903 * python/py-auto-load.c (source_section_scripts): Pass to
11904 source_python_script_for_objfile also STREAM.
11905 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11906 also INPUT.
11907 * python/python-internal.h (source_python_script_for_objfile): New
11908 parameter file, rename parameter file to filename.
11909 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11910 instead if !_WIN32. Update the function comment.
11911 (source_python_script, source_python_script_for_objfile)
11912 (source_python_script): New parameter file, rename parameter file to
11913 filename. Pass FILENAME to python_run_simple_file.
11914 * python/python.h (source_python_script): New parameter file, rename
11915 parameter file to filename.
11916
88f38a04
PA
119172012-01-26 Pedro Alves <palves@redhat.com>
11918
11919 * corelow.c (core_has_fake_pid): Delete.
11920 (core_close): Delete references to `core_has_fake_pid'.
11921 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11922 (core_open): Delete references to `core_has_fake_pid'.
11923 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11924 the removed global.
11925
e078317b
JB
119262012-01-26 Joel Brobecker <brobecker@adacore.com>
11927
11928 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11929 Remove language parameter from name_matcher. Adjust the comment.
11930 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11931 Remove language parameter.
11932 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11933 * linespec.c (iterate_name_matcher): Likewise.
11934 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11935 name_matcher. Adjust call accordingly.
11936 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11937 (maintenance_check_symtabs): Adjust type of parameter "fun".
11938 * psymtab.h (maintenance_check_symtabs): Likewise.
11939
74ccd7f5
JB
119402012-01-26 Joel Brobecker <brobecker@adacore.com>
11941
11942 * language.h (symbol_name_match_p_ftype): New typedef.
11943 (struct language_defn): Replace field la_symbol_name_compare
11944 by la_get_symbol_name_match_p.
11945 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11946 (ada_language_defn): Use it.
11947 * linespec.c (struct symbol_matcher_data): New type.
11948 (iterate_name_matcher): Rewrite.
11949 (iterate_over_all_matching_symtabs): Pass a pointer to
11950 a symbol_matcher_data struct to expand_symtabs_matching
11951 instead of just the lookup name.
11952 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11953 opencl-lang.c, p-lang.c, language.c: Delete field
11954 la_symbol_name_compare, and replace by NULL for new field
11955 la_get_symbol_name_match_p.
11956 * symfile.h (struct quick_symbol_functions): Update comment.
11957
5d268276
TT
119582012-01-25 Tom Tromey <tromey@redhat.com>
11959
11960 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11961 dereferencing.
11962
edcc5120
TT
119632012-01-24 Tom Tromey <tromey@redhat.com>
11964
11965 PR symtab/12406:
11966 * solib.c (update_solib_list): Update the program space's
11967 added_solibs and deleted_solibs fields.
11968 * progspace.h (struct program_space) <added_solibs,
11969 deleted_solibs>: New fields.
11970 (clear_program_space_solib_cache): Declare.
11971 * progspace.c (release_program_space): Call
11972 clear_program_space_solib_cache.
11973 (clear_program_space_solib_cache): New function.
11974 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11975 bpstat_stop_status. Use handle_solib_event.
11976 * breakpoint.c: Include gdb_regex.h.
11977 (print_solib_event): New function.
11978 (bpstat_print): Use print_solib_event.
11979 (bpstat_stop_status): Add special case for bp_shlib_event.
11980 (handle_solib_event): New function.
11981 (bpstat_what): Use handle_solib_event.
11982 (struct solib_catchpoint): New.
11983 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11984 (breakpoint_hit_catch_solib, check_status_catch_solib)
11985 (print_it_catch_solib, print_one_catch_solib)
11986 (print_mention_catch_solib, print_recreate_catch_solib): New
11987 functions.
11988 (catch_solib_breakpoint_ops): New global.
11989 (catch_load_or_unload, catch_load_command_1)
11990 (catch_unload_command_1): New functions.
11991 (internal_bkpt_check_status): Add special case for
11992 bp_shlib_event.
11993 (internal_bkpt_print_it): Use print_solib_event.
11994 (initialize_breakpoint_ops): Initialize
11995 catch_solib_breakpoint_ops.
11996 (_initialize_breakpoint): Register "catch load" and "catch
11997 unload".
11998 * breakpoint.h (handle_solib_event): Declare.
11999 * NEWS: Add entry for "catch load" and "catch unload".
12000
fa864999
TT
120012012-01-24 Tom Tromey <tromey@redhat.com>
12002
12003 * ada-lang.c: Include gdb_vecs.h.
12004 * charset.c: Include gdb_vecs.h.
12005 * tracepoint.h: Include gdb_vecs.h.
12006 * gdb_vecs.h: New file.
12007
f90263c1
TT
120082012-01-24 Pedro Alves <pedro@codesourcery.com>
12009
12010 * breakpoint.c (breakpoint_hit_catch_fork)
12011 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
12012 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
12013 * infrun.c (inferior_has_forked, inferior_has_vforked)
12014 (inferior_has_execd, inferior_has_called_syscall): Delete.
12015 (handle_syscall_event): Get syscall_number from the execution
12016 control state's wait status.
12017 (wait_for_inferior): Don't clear syscall_number.
12018
09ac7c10
TT
120192012-01-24 Pedro Alves <palves@redhat.com>
12020
12021 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
12022 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
12023 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
12024 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
12025 `ws' parameter.
12026 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
12027 false for events other than TARGET_SIGNAL_TRAP.
12028 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
12029 Add `ws' parameter.
12030 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
12031 events other than TARGET_SIGNAL_TRAP.
12032 (tracepoint_breakpoint_hit): Add `ws' parameter.
12033 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
12034 parameter.
12035 (bpstat_stop_status): Same.
12036 (pc_at_non_inline_function): Same.
12037 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
12038 to pass the current event's waitstatus to bpstat_stop_status
12039 and pc_at_non_inline_function.
12040
86eb7e95
JK
120412012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12042
12043 Code cleanup.
12044 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
12045 Update the function comment for it.
12046 (source_script_with_search): Call make_cleanup_fclose for STREAM.
12047 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
12048 for STREAM.
12049
a9b3a50f
PA
120502012-01-24 Pedro Alves <palves@redhat.com>
12051
12052 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
12053 outside `bs->stop' block.
12054 (bpstat_what): Rework bp_shlib_event handling.
12055 (internal_bkpt_check_status): If the breakpoint is a
12056 bp_shlib_event, then set bs->stop and bs->print if
12057 stop_on_solib_events is set.
12058
53fe1783
GB
120592012-01-24 Gary Benson <gbenson@redhat.com>
12060
12061 Delete #if 0'd out code.
12062 * stack.c (print_frame_label_vars): Remove.
12063 (catch_info): Likewise.
12064 (_initialize_stack): Remove "info catch" command.
12065 * NEWS: Mention the above.
12066
49c62f2e
PA
120672012-01-24 Pedro Alves <palves@redhat.com>
12068
12069 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
12070 it.
12071 (remote_notice_new_inferior): If the remote end doesn't support
12072 the multiprocess extensions, then the PID is fake.
12073 (add_current_inferior_and_thread): New.
12074 (remote_start_remote): Use it.
12075 (extended_remote_attach_1): Adjust.
12076 (extended_remote_create_inferior_1): Use
12077 add_current_inferior_and_thread.
12078
d0d8b0c6
JK
120792012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12080
12081 Fix watchpoints to be specific for each inferior.
12082 * breakpoint.c (watchpoint_in_thread_scope): Verify also
12083 current_program_space.
12084 * i386-nat.c (i386_inferior_data_cleanup): New.
12085 (i386_inferior_data_get): Replace variable inf_data_local by an
12086 inferior_data call.
12087 (i386_use_watchpoints): Initialize i386_inferior_data.
12088 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
12089 specific iterate_over_lwps.
12090
4403d8e9
JK
120912012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
12092
12093 Fix watchpoints across inferior fork.
12094 * amd64-linux-nat.c (update_debug_registers_callback): Update the
12095 comment for linux_nat_iterate_watchpoint_lwps.
12096 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
12097 linux_nat_iterate_watchpoint_lwps.
12098 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
12099 * i386-linux-nat.c (update_debug_registers_callback): Update the
12100 comment for linux_nat_iterate_watchpoint_lwps.
12101 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
12102 linux_nat_iterate_watchpoint_lwps.
12103 (i386_linux_prepare_to_resume): New comment on Linux kernel.
12104 * i386-nat.c: Include inferior.h.
12105 (dr_mirror): Remove.
12106 (i386_inferior_data, struct i386_inferior_data)
12107 (i386_inferior_data_get): New.
12108 (i386_debug_reg_state): Use i386_inferior_data_get.
12109 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
12110 (i386_insert_watchpoint, i386_remove_watchpoint)
12111 (i386_stopped_data_address, i386_insert_hw_breakpoint)
12112 (i386_remove_hw_breakpoint): New variable state, use
12113 i386_debug_reg_state instead of DR_MIRROR.
12114 * linux-nat.c (delete_lwp): New declaration.
12115 (num_lwps): Move here from downwards.
12116 (delete_lwp_cleanup): New.
12117 (linux_child_follow_fork): Create new child_lp, call
12118 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
12119 PTRACE_DETACH.
12120 (num_lwps): Move upwards.
12121 (linux_nat_iterate_watchpoint_lwps): New.
12122 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
12123 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
12124
2992c9a7 121252012-01-24 Joel Brobecker <brobecker@adacore.com>
12126
12127 GDB 7.4 released.
12128
e360902b
PA
121292012-01-23 Pedro Alves <palves@redhat.com>
12130
12131 * top.c (caution): Rename to ...
12132 (confirm): ... this.
12133 (show_caution): Rename to ...
12134 (show_confirm): ... this.
12135 (quit_cover): Adjust.
12136 (init_main): Adjust.
12137 * top.h (caution): Rename to ...
12138 (confirm): ... this.
12139 * utils.c (internal_vproblem, defaulted_query): Adjust.
12140
050a2e1d
PA
121412012-01-23 Pedro Alves <palves@redhat.com>
12142
12143 * top.c (caution): Update comment.
12144 (execute_command): Don't consider the current value of `caution'.
12145
77a35dd8
JK
121462012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
12147
12148 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
12149
a71b5a38
UW
121502012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
12151
12152 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
12153 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
12154 * target.c (target_fileio_pwrite): Remove buffer address from
12155 debug output.
12156 (target_fileio_pread): Likewise.
12157
d99bd577
UW
121582012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12159
12160 * NEWS: Document remote "info proc" and "generate-core-file".
12161
35c2fab7
UW
121622012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12163
12164 * gdbarch.sh (find_memory_regions): New callback.
12165 * gdbarch.c, gdbarch.h: Regenerate.
12166
12167 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
12168 callback before falling back to target method.
12169
12170 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
12171 (linux_target_install_ops): No longer install it.
12172
12173 * linux-tdep.c (linux_find_memory_regions): New function.
12174 (linux_init_abi): Install it.
12175
6432734d
UW
121762012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12177
12178 * gdbarch.sh (make_corefile_notes): New architecture callback.
12179 * gdbarch.c: Regenerate.
12180 * gdbarch.h: Likewise.
12181
12182 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
12183 before target_make_corefile_notes. If NULL is returned, the
12184 target does not support core file generation.
12185
12186 * linux-nat.c: Include "linux-tdep.h".
12187 (find_signalled_thread, find_stop_signal): Remove.
12188 (linux_nat_do_thread_registers): Likewise.
12189 (struct linux_nat_corefile_thread_data): Likewise.
12190 (linux_nat_corefile_thread_callback): Likewise.
12191 (iterate_over_spus): Likewise.
12192 (struct linux_spu_corefile_data): Likewise.
12193 (linux_spu_corefile_callback): Likewise.
12194 (linux_spu_make_corefile_notes): Likewise.
12195 (linux_nat_collect_thread_registers): New function.
12196 (linux_nat_make_corefile_notes): Replace contents by call to
12197 linux_make_corefile_notes passing linux_nat_collect_thread_registers
12198 as native-only callback.
12199
12200 * linux-tdep.h: Include "bfd.h".
12201 (struct regcache): Add forward declaration.
12202 (linux_collect_thread_registers_ftype): New typedef.
12203 (linux_make_corefile_notes): Add prototype.
12204 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
12205 "regset.h", and "elf-bfd.h".
12206 (find_signalled_thread, find_stop_signal): New functions.
12207 (linux_spu_make_corefile_notes): Likewise.
12208 (linux_collect_thread_registers): Likewise.
12209 (struct linux_corefile_thread_data): New data structure.
12210 (linux_corefile_thread_callback): New funcion.
12211 (linux_make_corefile_notes): Likewise.
12212 (linux_make_corefile_notes_1): Likewise.
12213 (linux_init_abi): Install it.
12214
3030c96e
UW
122152012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12216
12217 * gdbarch.sh (info_proc): New callback.
12218 * gdbarch.c, gdbarch.h: Regenerate.
12219
12220 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
12221 before falling back to the target info_proc callback.
12222
12223 * linux-nat.c: Do not include "cli/cli-utils.h".
12224 (linux_nat_info_proc): Remove.
12225 (linux_target_install_ops): No longer install it.
12226
12227 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
12228 (read_mapping): New function.
12229 (linux_info_proc): Likewise.
12230 (linux_init_abi): Install it.
12231
145b16a9
UW
122322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12233
12234 * defs.h (enum info_proc_what): Moved here from linux-nat.c
12235 * infcmd.c: (info_proc_cmd_1): New function.
12236 (info_proc_cmd): New function, moved here from equivalent routine
12237 orignally in linux-nat.c.
12238 (info_proc_cmd_mappings): Likewise.
12239 (info_proc_cmd_stat): Likewise.
12240 (info_proc_cmd_status): Likewise.
12241 (info_proc_cmd_cwd): Likewise.
12242 (info_proc_cmd_cmdline): Likewise.
12243 (info_proc_cmd_exe): Likewise.
12244 (info_proc_cmd_all): Likewise.
12245 (_initialize_infcmd): Install "info proc" command and subcommands.
12246
12247 * target.h (struct target_ops): Add to_info_proc.
12248 (target_info_proc): Add prototype.
12249 * target.c (target_info_proc): New function.
12250
12251 * procfs.c (procfs_info_proc): Add prototype.
12252 (info_proc_cmd): Rename into ...
12253 (procfs_info_proc): ... this. Update argument types as appropriate
12254 for a to_info_proc implementation. Handle "what" argument.
12255 (procfs_target): Install procfs_info_proc.
12256 (_initialize_procfs): No longer install "info proc" command.
12257
12258 * linux-nat.c: (enum info_proc_what): Remove.
12259 (linux_nat_info_proc_cmd_1): Rename into ...
12260 (linux_nat_info_proc): ... this. Update argument types as appropriate
12261 for a to_info_proc implementation.
12262 (linux_nat_info_proc_cmd): Remove.
12263 (linux_nat_info_proc_cmd_mappings): Likewise.
12264 (linux_nat_info_proc_cmd_stat): Likewise.
12265 (linux_nat_info_proc_cmd_status): Likewise.
12266 (linux_nat_info_proc_cmd_cwd): Likewise.
12267 (linux_nat_info_proc_cmd_cmdline): Likewise.
12268 (linux_nat_info_proc_cmd_exe): Likewise.
12269 (linux_nat_info_proc_cmd_all): Likewise.
12270 (linux_target_install_ops): Install linux_nat_info_proc.
12271 (_initialize_linux_nat): No longer install "info proc" command
12272 and subcommands.
12273
b9e7b9c3
UW
122742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
12275
12276 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
12277 * config.in, configure: Regenerate.
12278
12279 * target.h (struct target_ops): Add to_fileio_readlink.
12280 (target_fileio_readlink): Add prototype.
12281 * target.c (target_fileio_readlink): New function.
12282
12283 * inf-child.c: Conditionally include <sys/param.h>.
12284 (inf_child_fileio_readlink): New function.
12285 (inf_child_target): Install it.
12286
12287 * remote.c (PACKET_vFile_readlink): New enum value.
12288 (remote_hostio_readlink): New function.
12289 (init_remote_ops): Install it.
12290 (_initialize_remote): Handle vFile:readlink packet type.
12291
7313baad
UW
122922012-01-20 Pedro Alves <palves@redhat.com>
12293 Ulrich Weigand <ulrich.weigand@linaro.org>
12294
12295 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
12296 * config.in, configure: Regenerate.
12297
12298 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
12299 to_fileio_pread, to_fileio_close, to_fileio_unlink.
12300 (target_fileio_open): Add prototype.
12301 (target_fileio_pwrite): Likewise.
12302 (target_fileio_pread): Likewise.
12303 (target_fileio_close): Likewise.
12304 (target_fileio_unlink): Likewise.
12305 (target_fileio_read_alloc): Likewise.
12306 (target_fileio_read_stralloc): Likewise.
12307
12308 * target.c: Include "gdb/fileio.h".
12309 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
12310 (default_fileio_target): New function.
12311 (target_fileio_open): Likewise.
12312 (target_fileio_pwrite): Likewise.
12313 (target_fileio_pread): Likewise.
12314 (target_fileio_close): Likewise.
12315 (target_fileio_unlink): Likewise.
12316 (target_fileio_close_cleanup): Likewise.
12317 (target_fileio_read_alloc_1): Likewise.
12318 (target_fileio_read_alloc): Likewise.
12319 (target_fileio_read_stralloc): Likewise.
12320
12321 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
12322 <fcntl.h>, and <unistd.h>.
12323 (inf_child_fileio_open_flags_to_host): New function.
12324 (inf_child_errno_to_fileio_error): Likewise.
12325 (inf_child_fileio_open): Likewise.
12326 (inf_child_fileio_pwrite): Likewise.
12327 (inf_child_fileio_pread): Likewise.
12328 (inf_child_fileio_close): Likewise.
12329 (inf_child_fileio_unlink): Likewise.
12330 (inf_child_target): Install to_fileio routines.
12331
12332 * remote.c (init_remote_ops): Install to_fileio routines.
12333
901f9912
UW
123342012-01-20 Pedro Alves <palves@redhat.com>
12335 Ulrich Weigand <ulrich.weigand@linaro.org>
12336
12337 * remote.c (remote_multi_process_p): Only check for multi-process
12338 protocol feature, do not check for extended protocol.
12339 (remote_supports_multi_process): Check for extended protocol here.
12340 (set_general_process): Likewise.
12341 (extended_remote_kill): Likewise.
12342 (remote_pid_to_str): Likewise.
12343 (remote_query_supported): Always query multiprocess mode.
12344
e714e1bf
UW
123452012-01-20 Pedro Alves <palves@redhat.com>
12346 Ulrich Weigand <ulrich.weigand@linaro.org>
12347
12348 * inferior.h (struct inferior): Add fake_pid_p.
12349 * inferior.c (exit_inferior_1): Clear fake_pid_p.
12350 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
12351 magic_null_ptid since the remote side doesn't provide a real PID.
12352
50897289
TT
123532012-01-19 Tom Tromey <tromey@redhat.com>
12354
12355 * NEWS: Combine the two Python sections.
12356
1afc2033
JK
123572012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
12358
12359 * target.h (target_close): Update comment on the target's unpush state.
12360
305436e0
PA
123612012-01-19 Pedro Alves <palves@redhat.com>
12362
12363 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
12364 linux_nat_async directly instead of going through the target
12365 vector.
12366 * target.c (unpush_target): Close target after unpushing it, not
12367 before.
12368
49323895
GB
123692012-01-19 Gary Benson <gbenson@redhat.com>
12370
12371 * mdebugread.c (sort_blocks): Replace integer constants with ones
12372 derived from FIRST_LOCAL_BLOCK.
12373
1db33378
PP
123742012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
12375 Jan Kratochvil <jan.kratochvil@redhat.com>
12376
12377 PR gdb/9538
12378 * symfile.c (find_separate_debug_file): New function.
12379 (terminate_after_last_dir_separator): Likewise.
12380 (find_separate_debug_file_by_debuglink): Also try realpath.
12381 * configure.ac (AC_CHECK_FUNCS): Add lstat.
12382 * configure: Regenerate.
12383 * config.in: Regenerate.
12384
f83d8a90
DE
123852012-01-18 Doug Evans <dje@google.com>
12386
12387 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
12388 (main.o): Remove rule.
12389 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
12390 (--with-sysroot): Rewrite.
12391 * configure: Regenerate.
12392 * config.in: Regenerate.
12393
2dbca4d6
SDJ
123942012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
12395
12396 * parse.c (initialize_expout): New function.
12397 (reallocate_expout): Likewise.
12398 (parse_exp_in_context): Use `initialize_expout' and
12399 `reallocate_expout' when appropriate.
12400
0695b514
PA
124012012-01-18 Pedro Alves <palves@redhat.com>
12402
12403 * record.c (struct record_breakpoint, record_breakpoint_p)
12404 (record_breakpoints): New.
12405 (record_insert_breakpoint, record_remove_breakpoint): Manage
12406 record breakpoints list. Only remove breakpoints from the
12407 inferior if they had been inserted there in the first place.
12408
136e1c30
DE
124092012-01-17 Doug Evans <dje@google.com>
12410
12411 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
12412 if we know we don't have a file name to look for.
12413
c0bf857d
PA
124142012-01-17 Pedro Alves <palves@redhat.com>
12415
12416 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
12417 the frame's stop reason is UNWIND_UNAVAILABLE.
12418
b486de60
JK
124192012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
12420
12421 Fix compilation error.
12422 * m2-exp.y (yyerror): Use ANSI C prototype.
12423
d04550a6
SDJ
124242012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12425
12426 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
12427 (growbuf_by_size): Likewise.
12428 (yyerror): Likewise.
12429 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
12430 (modblock): Remove variable (was #if 0'ed).
12431 (parse_number): Convert prototype from K&R to ANSI C.
12432 (yyerror): Likewise.
12433 * objc-exp.y (parse_number): Likewise.
12434 (yyerror): Likewise.
12435 (yylex): Remove #if 0'ed code.
12436 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
12437 (yyerror): Likewise.
12438
4aac40c8
TT
124392012-01-16 Tom Tromey <tromey@redhat.com>
12440
12441 * NEWS: Add item.
12442 * symtab.h (compare_filenames_for_search): Declare.
12443 * symtab.c (compare_filenames_for_search): New function.
12444 (iterate_over_some_symtabs): Use it.
12445 * symfile.h (struct quick_symbol_functions)
12446 <map_symtabs_matching_filename>: Change spec.
12447 * psymtab.c (partial_map_symtabs_matching_filename): Use
12448 compare_filenames_for_search. Update for new spec.
12449 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
12450 compare_filenames_for_search. Update for new spec.
12451 * breakpoint.c (clear_command): Use compare_filenames_for_search.
12452
cafec441
TT
124532012-01-16 Tom Tromey <tromey@redhat.com>
12454
12455 PR python/13281:
12456 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
12457 (struct main_type) <flag_flag_enum>: New field.
12458 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
12459 * NEWS: Add entries.
12460 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
12461 enums.
12462 * python/lib/gdb/printing.py (_EnumInstance): New class.
12463 (FlagEnumerationPrinter): Likewise.
12464
983af33b
SDJ
124652012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
12466
12467 * breakpoint.c (create_sals_from_address_default): New function.
12468 (create_breakpoints_sal_default): Likewise.
12469 (decode_linespec_default): Likewise.
12470 (is_marker_spec): Removed.
12471 (strace_marker_p): New function.
12472 (init_breakpoint_sal): Using `strace_marker_p' instead of
12473 `is_marker_spec'.
12474 (create_breakpoint): Call method `create_sals_from_address' from
12475 breakpoint_ops, replacing code that created SALs conditionally
12476 on the type of the breakpoint. Call method `create_breakpoints_sal',
12477 replacing code that created breakpoints conditionally on the type
12478 wanted.
12479 (base_breakpoint_create_sals_from_address): New function.
12480 (base_breakpoint_create_breakpoints_sal): Likewise.
12481 (base_breakpoint_decode_linespec): Likewise.
12482 (base_breakpoint_ops): Add methods
12483 `base_breakpoint_create_sals_from_address',
12484 `base_breakpoint_create_breakpoints_sal' and
12485 `base_breakpoint_decode_linespec'.
12486 (bkpt_create_sals_from_address): New function.
12487 (bkpt_create_breakpoints_sal): Likewise.
12488 (bkpt_decode_linespec): Likewise.
12489 (tracepoint_create_sals_from_address): Likewise.
12490 (tracepoint_create_breakpoints_sal): Likewise.
12491 (tracepoint_decode_linespec): Likewise.
12492 (strace_marker_create_sals_from_address): Likewise.
12493 (strace_marker_create_breakpoints_sal): Likewise.
12494 (strace_marker_decode_linespec): Likewise.
12495 (strace_marker_breakpoint_ops): New variable.
12496 (addr_string_to_sals): Remove `marker_spec'. Call method
12497 `decode_linespec' from breakpoint_ops, replacing code that decoded
12498 an address string into a SAL. Use `strace_marker_p' instead of
12499 `marker_spec'.
12500 (strace_command): Decide whether we are dealing with a static
12501 tracepoint with marker or not. Use the appropriate breakpoint_ops.
12502 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
12503 * breakpoint.h (linespec_result, linespec_sals): New forward
12504 declarations.
12505 (breakpoint_ops) <create_sals_from_address>,
12506 <create_breakpoints_sal>, <decode_linespec>: New methods.
12507
4795f398
DE
125082012-01-14 Doug Evans <dje@google.com>
12509
12510 * NEWS: Update text for "maint set python print-stack".
12511 It is deprecated in gdb 7.4 and deleted in 7.5.
12512
ee5106fe
EZ
125132012-01-13 Eli Zaretskii <eliz@gnu.org>
12514
12515 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
12516 including curses.h.
12517
b161e06f
JK
125182012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
12519
12520 * configure: Regenerate.
12521 * config.in: Regenerate.
12522
85254831
KS
125232012-01-12 Keith Seitz <keiths@redhat.com>
12524
12525 PR mi/10586
12526 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
12527 (ANONYMOUS_UNION_NAME): Define.
12528 (is_path_expr_parent): New function.
12529 (get_path_expr_parent): New function.
12530 (is_anonymous_child): New function.
12531 (create_child_with_value): If the child is anonymous and without
12532 a name, assign an object name to it.
12533 (c_describe_child): Use get_path_expr_parent to determine
12534 the parent expression.
12535 If there field represents an anonymous struct or union and
12536 has no name, set an appropriate display name and expression.
12537 (cplus_describe_child): Likewise.
12538
620fa63a
PA
125392012-01-12 Pedro Alves <palves@redhat.com>
12540
12541 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
12542 available when %ebp is found to be zero (outermost).
12543
2efa2c79
AT
125442012-01-11 Andreas Tobler <andreast@fgznet.ch>
12545
12546 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
12547 an internal gdb_static_assert.
12548 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
12549
88e7d25d
TT
125502012-01-11 Tom Tromey <tromey@redhat.com>
12551
12552 PR gdb/9598:
12553 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
12554 catch" and "catch throw".
12555
72384ba3
PH
125562012-01-11 Paul Hilfinger <hilfingr@adacore.com>
12557
12558 * blockframe.c (block_innermost_frame): Start search from selected
12559 frame, if present, or otherwise the current frame.
12560
12561 * c-exp.y (variable): Update innermost_block for
12562 'block COLONCOLON NAME' clause.
12563 * m2-exp.y (variable): Ditto.
12564 * objc-exp.y (variable): Ditto.
12565
065a711f
TT
125662012-01-10 Tom Tromey <tromey@redhat.com>
12567
12568 PR python/13199:
12569 * python/python.c (finish_python_initialization): Set sys.argv.
12570
f3f5162e
DE
125712012-01-10 Doug Evans <dje@google.com>
12572
12573 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
12574 "want_line_info". All callers updated.
12575 (dwarf_decode_lines_1): New function.
12576 (handle_DW_AT_stmt_list): Add function comment.
12577 New arg "want_line_info". All callers updated.
12578 (read_file_scope,read_type_unit_scope): Move comment from
12579 handle_DW_AT_stmt_list to here.
12580
9934703b
JK
125812012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12582
12583 Fix regression after libiberty/ update for GCC PR 6057 and others.
12584 * c-exp.y (operator) <OPERATOR DELETE>
12585 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12586 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
12587 (make_builtin_type, make_name): New variable i, add gdb_assert.
12588 (operator) <OPERATOR NEW>: Update ARGS to 3.
12589 (operator) <OPERATOR DELETE>: Add trailing space.
12590 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
12591 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
12592 * cp-support.c (cp_canonicalize_string): Check NULL from
12593 cp_comp_to_string, call warning and return.
12594
06b9f45f
JK
125952012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
12596
12597 Fix duplicate .o files after omitting libbfd.a.
12598 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
12599 (SFILES): Add corelow.c.
12600 (COMMON_OBS): Add corelow.o.
12601 (ALLDEPFILES): Remove corelow.c.
12602 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
12603 * config/alpha/alpha-osf3.mh: Likewise.
12604 * config/alpha/fbsd.mh: Likewise.
12605 * config/arm/nbsdaout.mh: Likewise.
12606 * config/arm/nbsdelf.mh: Likewise.
12607 * config/i386/i386gnu.mh: Likewise.
12608 * config/ia64/hpux.mh: Likewise.
12609 * config/ia64/linux.mh: Likewise.
12610 * config/m32r/linux.mh: Likewise.
12611 * config/m68k/linux.mh: Likewise.
12612 * config/mips/irix5.mh: Likewise.
12613 * config/mips/irix6.mh: Likewise.
12614 * config/pa/hpux.mh: Likewise.
12615 * config/pa/linux.mh: Likewise.
12616 * config/powerpc/aix.mh: Likewise.
12617 * config/sparc/linux.mh: Likewise.
12618 * config/sparc/linux64.mh: Likewise.
12619 * config/sparc/sol2.mh: Likewise.
12620 * config/vax/vax.mh: Likewise.
12621 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
12622 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
12623 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
12624 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
12625 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
12626 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
12627 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
12628 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
12629 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
12630 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
12631 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
12632 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
12633 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12634 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
12635 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
12636 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12637 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
12638 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
12639 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
12640 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
12641 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
12642 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
12643 corelow.o from gdb_target_obs.
12644 * corefile.c (core_target): Update the comment on NULL value.
12645 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
12646 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
12647 MATCHES. Drop YUMMY set on NULL.
12648 (core_close): Do not call exit_inferior_silent on zero PID. Do not
12649 reclaim CORE_DATA if it is already NULL.
12650
34365054
DE
126512012-01-09 Doug Evans <dje@google.com>
12652
12653 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
12654 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
12655
696166a3
KS
126562012-01-09 Keith Seitz <keiths@redhat.com>
12657
12658 * breakpoint.c (wrapper.h): Don't include.
12659
8e7b59a5
KS
126602012-01-09 Keith Seitz <keiths@redhat.com>
12661
12662 * Makefile.in (SFILES): Remove wrapper.c.
12663 (HFILES_NO_SRCDIR): Remove wrapper.h.
12664 (COMMON_OBS): Remove wrapper.o.
12665 * cli/cli-interp.c: Don't inlude wrapper.h.
12666 * corelow.c: Likewise.
12667 (core_open): Replace gdb_target_find_new_threads with
12668 TRY_CATCH around target_find_new_threads.
12669 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
12670 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
12671 * varobj.c (varobj_create): Likewise for parse_exp_1 and
12672 evaluate_expression.
12673 (varobj_set_value): Likewise for evaluate_expression and
12674 value_assign.
12675 (install_new_variable): Likewise for value_fetch_lazy.
12676 (adjust_value_for_child_access): Likewise for value_ind.
12677 (c_describe_child): Likewise for value_subscript and
12678 value_ind.
12679 (c_value_of_root): Likewise for evaluate_expression.
12680 * wrapper.c: Remove.
12681 * wrapper.h: Remove.
12682
1a4eeb98
DE
126832012-01-09 Doug Evans <dje@google.com>
12684
9ff913ba
DE
12685 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
12686 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
12687 "abfd" args with "section". All callers updated.
12688 Error checking code moved ...
12689 (error_check_comp_unit_head): ... here. New function.
12690 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
12691 Delete arg "abfd". New arg "type_offset". All callers updated.
12692 (create_debug_types_hash_table): Simplify by using
12693 read_and_check_type_unit_head.
12694
1a4eeb98
DE
12695 * parser-defs.h (namecopy): Delete.
12696 * parse.c (namecopy, namecopy_size): Move into copy_name.
12697
2e6af8c0
JK
126982012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
12699
12700 Partially fix duplicate .o files after omitting libbfd.a.
12701 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
12702 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12703 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
12704 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12705 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
12706 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
12707 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
12708
9f2f828a
PA
127092012-01-09 Pedro Alves <palves@redhat.com>
12710
12711 * MAINTAINERS: Update my email address.
12712
4d72c0bc
DE
127132012-01-08 Doug Evans <dje@google.com>
12714
d467dd73
DE
12715 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
12716 n_type_units. Rename type_comp_units to all_type_units.
12717 All uses updated.
12718 (add_signatured_type_cu_to_table): Renamed from
12719 add_signatured_type_cu_to_list. All callers updated.
12720
4d72c0bc
DE
12721 * gdbtypes.h (struct cplus_struct_type): Delete member
12722 nfn_fields_total. All uses removed.
12723
21b2bd31
DE
127242012-01-06 Doug Evans <dje@google.com>
12725
12726 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
12727 to top of file.
12728 (dwarf2_find_comp_unit): Delete.
12729 (process_psymtab_comp_unit): Make result "void".
12730 Delete args buffer, info_ptr, buffer_size, and replace with
12731 "section". All callers updated.
12732 (dwarf2_build_psymtabs_hard): Simplify.
12733
bfd189b1
SDJ
127342012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
12735 Thiago Jung Bauermann <bauerman@br.ibm.com>
12736
12737 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
12738 before `struct gdb_exception'.
12739 * breakpoint.c (update_global_location_list_nothrow)
12740 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
12741 * cp-abi.c (value_rtti_type): Likewise.
12742 * cp-support.c (cp_validate_operator): Likewise.
12743 * infrun.c (insert_exception_resume_breakpoint)
12744 (check_exception_resume, keep_going): Likewise.
12745 * mi-interp.c (mi_breakpoint_created)
12746 (mi_breakpoint_modified): Likewise.
12747 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
12748 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
12749 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
12750
6b07635f
DE
127512012-01-05 Doug Evans <dje@google.com>
12752
0b30b85c
DE
12753 * dwarf2read.c (statement_prologue): Delete, unused.
12754
98714339
DE
12755 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
12756 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
12757
6b07635f
DE
12758 * dwarf2read.c (comp_unit_header): Delete, unused.
12759
761f4555
UW
127602012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
12761
12762 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
12763 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
12764
2ca0b532
PA
127652012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
12766
12767 * infrun.c (normal_stop): Don't skip calling the normal_stop
12768 observers if the thread was doing a multi-step, but stopped for
12769 some reason other than stepping.
12770
50aeff07
PA
127712012-01-05 Pedro Alves <alves.ped@gmail.com>
12772
12773 * cli/cli-decode.h: Add comments.
12774 (CMD_LIST_AMBIGUOUS): Moved to command.h
12775 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
12776 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
12777 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
12778 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
12779 (add_com, add_com_alias, add_info, add_info_alias)
12780 (complete_on_cmdlist, complete_on_enum, help_list): Remove
12781 declarations.
12782 * command.h: Add and adjust comments.
12783 (CMD_LIST_AMBIGUOUS): Moved here.
12784 (help_cmd, help_cmd_list): Delete declarations.
12785
5953832c
DE
127862012-01-04 Doug Evans <dje@google.com>
12787
e5fe5e75
DE
12788 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
12789 All callers updated.
12790 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
12791 Replace all arguments with "per_cu". All callers updated.
12792
28dee7f5
DE
12793 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
12794
23745b47
DE
12795 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
12796 New arg "per_cu". All callers updated.
12797
5953832c
DE
12798 Delete #if 0'd out code.
12799 * language.c (binop_result_type): Delete.
12800 (simple_type, ordered_type, same_type, integral_type): Delete.
12801 (numeric_type, character_type, string_type, boolean_type): Delete.
12802 (float_type, structured_type): Delete.
12803 * language.h: Update.
12804
0f5b7562
TT
128052012-01-04 Tom Tromey <tromey@redhat.com>
12806
12807 * python/py-value.c (valpy_binop): Initialize 'res_val'.
12808
78218f56
JB
128092012-01-04 Joel Brobecker <brobecker@adacore.com>
12810
12811 * corefile.c (close_exec_file): Delete.
12812 (reopen_exec_file): Remove commented out code that seems related
12813 to close_exec_file, which is being deleted here.
12814 * inferior.h (close_exec_file): Delete.
12815 * fork-child.c (fork_inferior): Remove call to fork_inferior.
12816
0fcd72ba
JB
128172012-01-04 Joel Brobecker <brobecker@adacore.com>
12818
12819 * ada-lang.c: #include "cli/cli-utils.h".
12820 (get_selections): Use skip_spaces.
12821 (ada_get_next_arg): Use skip_spaces and skip_to_space.
12822 (catch_ada_exception_command_split): Use skip_spaces.
12823 (ada_decode_assert_location): Likewise.
12824
1dabb4c4
JB
128252012-01-04 Joel Brobecker <brobecker@adacore.com>
12826
12827 * linespec.c (decode_line_internal): Check for C++ or Java
12828 compound constructs only if the current language is C, C++
12829 or Java.
12830
5931a2fa
JK
128312012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
12832
12833 Revert:
12834 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12835 Joel Brobecker <brobecker@adacore.com>
12836 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12837 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12838 3 times.
12839 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12840 fall through into AT_ENTRY_POINT.
12841 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12842 DUMMY_ADDR with it.
12843 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12844 PPC_INSN_SIZE skip to 3 times.
12845
1a2da5ee
JB
128462012-01-04 Joel Brobecker <brobecker@adacore.com>
12847
12848 * linespec.c (add_minsym): Preserve function descriptors.
12849
8645ff69
UW
128502012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12851
12852 * breakpoint.c (all_locations_are_pending): Consider locations
12853 in program spaces executing during startup pending as well.
12854
0b302171
JB
128552012-01-04 Joel Brobecker <brobecker@adacore.com>
12856
12857 Copyright year update in most files of the GDB Project.
12858
8ba098ad
JB
128592012-01-04 Joel Brobecker <brobecker@adacore.com>
12860
12861 * copyright.sh: Delete.
12862 * copyright.py: Rewrite.
12863
09c01c30
JB
128642012-01-04 Joel Brobecker <brobecker@adacore.com>
12865
12866 * gnulib/extra/update-copyright: New file, imported from gnulib.
12867
3c36c0af
JB
128682012-01-04 Joel Brobecker <brobecker@adacore.com>
12869
12870 * README (Copyright and License Notices): New section.
12871
888fe1e1
TT
128722012-01-03 Tom Tromey <tromey@redhat.com>
12873
12874 PR python/12533:
12875 * python/py-value.c (valpy_dereference, valpy_get_address
12876 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12877 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12878 (valpy_absolute, valpy_richcompare): Free intermediate values.
12879
6e681866
JB
128802011-01-03 Joel Brobecker <brobecker@adacore.com>
12881
12882 * ada-lang.c: Reformat the copyright notice.
12883
0cd09acb
JK
128842012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12885
12886 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12887 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12888 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12889 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12890 Revert this part of:
12891 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12892 Build gdb directly from *.o files not using libgdb.a.
12893 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12894
12c3e59c
JB
128952012-01-02 Joel Brobecker <brobecker@adacore.com>
12896
12897 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12898 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12899 Reformat the copyright header.
12900
11bf1490
JK
129012012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12902
12903 Revert this part of:
12904 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12905 Remove the gdbtui binary.
12906 * gdb.c (main): Remove args.interpreter_p initialization.
12907 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12908 * main.h (struct captured_main_args): Remove interpreter_p.
12909
1fef196f
JB
129102012-01-02 Joel Brobecker <brobecker@adacore.com>
12911
12912 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12913
67827812
JB
129142012-01-02 Joel Brobecker <brobecker@adacore.com>
12915
12916 * top.c (print_gdb_version): Update copyright year.
12917
a4d0b831
YQ
129182012-01-02 Yao Qi <yao@codesourcery.com>
12919
12920 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12921
b5914469
JK
129222012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12923 Joel Brobecker <brobecker@adacore.com>
12924
12925 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12926 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12927 3 times.
12928 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12929 fall through into AT_ENTRY_POINT.
12930 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12931 DUMMY_ADDR with it.
12932 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12933 PPC_INSN_SIZE skip to 3 times.
12934
8da828f7
JK
129352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12936
12937 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12938 the return value.
12939 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12940
8574e74b
JK
129412012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12942
12943 Build gdb directly from *.o files not using libgdb.a.
12944 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12945 (COMMON_OBS): Remove solib-target.o.
12946 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12947 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12948 (LIBGDB_OBS, libgdb.a): Move it above.
12949 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12950 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12951 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12952 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12953 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12954 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12955 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12956 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12957 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12958 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12959 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12960 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12961 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12962 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12963 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12964 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12965 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12966 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12967 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12968 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12969 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12970 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12971 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12972 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12973 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12974 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12975 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12976
217bff3e
JK
129772012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12978
12979 Remove the gdbtui binary.
12980 * .gitignore (/gdbtui): Remove.
12981 * Makefile.in (TUI): Remove.
12982 (SUBDIR_TUI_OBS): Remove tui-main.o.
12983 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12984 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12985 (tui-main.o): Remove.
12986 (all_object_files): Remove tui-main.o.
12987 * NEWS: New note for the gdbtui removal.
12988 * configure: Rebuilt.
12989 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12990 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12991 CONFIG_UNINSTALL respectively.
12992 * gdb.c (main): Remove args.interpreter_p initialization.
12993 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12994 * main.h (struct captured_main_args): Remove interpreter_p.
12995 * tui/tui-main.c: Remove.
12996
9cdd5dbd
DE
129972012-01-01 Doug Evans <dje@google.com>
12998
bb5ed363
DE
12999 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
13000 (dwarf2_physname, read_import_statement): Ditto.
13001 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
13002 (process_structure_scope read_subroutine_type): Ditto.
13003 (read_typedef, load_partial_dies, read_partial_die): Ditto.
13004 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
13005 (dwarf2_fetch_die_location_block): Ditto.
13006 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
13007
a0f42c21
DE
13008 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
13009 All callers updated.
13010 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
13011 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
13012 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
13013
2dc860c0
DE
13014 * dwarf2read.c (load_cu): Move assert to more useful location.
13015
68dc6402
DE
13016 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
13017 All callers updated.
13018
9cdd5dbd
DE
13019 * dwarf2read.c (dwarf2_per_objfile): Add comment.
13020 (dwarf2_elf_names): Minor reformat.
13021 (dwarf2_per_cu_data): Tweak comment.
13022 (dwarf2_read_section): Fix comment.
13023 (create_all_comp_units): Fix comment.
13024 (load_full_comp_unit): Fix comment.
13025 (process_full_comp_unit): Fix comment.
13026 (read_signatured_type): Fix comment.
13027
0c10e53e 13028For older changes see ChangeLog-2011.
c906108c
SS
13029\f
13030Local Variables:
13031mode: change-log
13032left-margin: 8
13033fill-column: 74
13034version-control: never
57da7796 13035coding: utf-8
c906108c 13036End:
This page took 2.222515 seconds and 4 git commands to generate.