2012-04-18 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
770d76d7
PA
12012-04-18 Pedro Alves <palves@redhat.com>
2
3 Update gnulib from latest git.
4 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5
6 * gnulib/Makefile.am: Update.
7 * gnulib/dummy.c: Update.
8 * gnulib/extra/arg-nonnull.h: Update.
9 * gnulib/extra/c++defs.h: Update.
10 * gnulib/extra/update-copyright: Update.
11 * gnulib/extra/warn-on-use.h: Update.
12 * gnulib/inttypes.in.h: Update.
13 * gnulib/m4/00gnulib.m4: Update.
14 * gnulib/m4/extensions.m4: Update.
15 * gnulib/m4/gnulib-cache.m4: Update.
16 * gnulib/m4/gnulib-common.m4: Update.
17 * gnulib/m4/gnulib-comp.m4: Update.
18 * gnulib/m4/gnulib-tool.m4: Update.
19 * gnulib/m4/include_next.m4: Update.
20 * gnulib/m4/inttypes-pri.m4: Update.
21 * gnulib/m4/inttypes.m4: Update.
22 * gnulib/m4/longlong.m4: Update.
23 * gnulib/m4/memchr.m4: Update.
24 * gnulib/m4/memmem.m4: Update.
25 * gnulib/m4/mmap-anon.m4: Update.
26 * gnulib/m4/multiarch.m4: Update.
27 * gnulib/m4/onceonly.m4: Update.
28 * gnulib/m4/stddef_h.m4: Update.
29 * gnulib/m4/stdint.m4: Update.
30 * gnulib/m4/string_h.m4: Update.
31 * gnulib/m4/warn-on-use.m4: Update.
32 * gnulib/m4/wchar_h.m4: Update.
33 * gnulib/m4/wchar_t.m4: Update.
34 * gnulib/m4/wint_t.m4: Update.
35 * gnulib/memchr.c: Update.
36 * gnulib/memmem.c: Update.
37 * gnulib/stddef.in.h: Update.
38 * gnulib/stdint.in.h: Update.
39 * gnulib/str-two-way.h: Update.
40 * gnulib/string.in.h: Update.
41 * gnulib/wchar.in.h: Update.
42
43 * gnulib/extra/arg-nonnull.h: Delete.
44 * gnulib/extra/c++defs.h: Delete.
45 * gnulib/extra/warn-on-use.h: Delete.
46 * gnulib/m4/wchar_h.m4: Delete.
47 * gnulib/m4/wint_t.m4: Delete.
48 * gnulib/wchar.in.h: Delete.
49
50 * gnulib/extra/snippets/arg-nonnull.h: New.
51 * gnulib/extra/snippets/c++defs.h: New.
52 * gnulib/extra/snippets/warn-on-use.h: New.
53
54 * aclocal.m4: Regenerate.
55 * config.in: Regenerate.
56 * configure: Regenerate.
57 * gnulib/Makefile.in: Regenerate.
58
59 * gdbserver/aclocal.m4: Regenerate.
60 * gdbserver/config.in: Regenerate.
61 * gdbserver/configure: Regenerate.
62
174e088e
PA
632012-04-18 Pedro Alves <palves@redhat.com>
64
65 Reimport the update-copyright module from gnulib
66 (250b80067c1e1d8faa0c42fb572f721975b929c5).
67
68 * configure: Regenerate.
69 * gnulib/Makefile.am: Update.
70 * gnulib/Makefile.in: Regenerate.
71 * gnulib/extra/update-copyright: Update.
72 * gnulib/m4/gnulib-cache.m4: Update.
73 * gnulib/m4/gnulib-comp.m4: Update.
74
7f533142
JB
752012-04-18 Tristan Gingold <gingold@adacore.com>
76
77 * configure.ac (aix): Put -lpthread into libs.
78 * configure: Regenerate.
79
001822aa
TT
802012-04-18 Tom Tromey <tromey@redhat.com>
81
82 * linespec.c (convert_linespec_to_sals): Don't use
83 SYMBOL_OBJ_SECTION.
84 (compare_msymbols): Arguments are minsym_and_objfile, not
85 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
86
db026a31
PA
872012-04-18 Pedro Alves <palves@redhat.com>
88
89 Revert gnulib/ part of:
90 2011-01-01 Joel Brobecker <brobecker@adacore.com>
91 Copyright year update in most files (performed by copyright.sh).
92
12df843f
JK
932012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
94
95 Fix 64-bit constants on 32-bit hosts.
96 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
97 from unsigned long to ULONGEST.
98 (read_signed_leb128): Change declaration return type from long to
99 LONGEST.
100 (dwarf2_const_value_attr): Change declaration parameter value from long
101 to LONGEST.
102 (dwarf2_compute_name): Change variable value from long to LONGEST.
103 (read_unsigned_leb128): Change return type, variable result and some
104 casts from unsigned long to ULONGEST.
105 (read_signed_leb128): Change return type, variable result and some
106 casts from long to LONGEST.
107 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
108 value from long to LONGEST.
109 (dwarf2_const_value): Change variable value from long to LONGEST.
110 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
111 plongest and hex_string.
112 * symtab.h (struct general_symbol_info): Change ivalue from long to
113 LONGEST, remove the comment.
114 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
115 Change SYMBOL_VALUE format strings to use plongest and hex_string.
116
14e75d8e
JK
1172012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
118
119 PR symtab/7259:
120 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
121 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
122 (ada_discrete_type_low_bound): Fix function comment. Use
123 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
124 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
125 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
126 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
127 Use TYPE_FIELD_ENUMVAL.
128 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
129 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
130 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
131 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
132 TYPE_CODE_ENUM.
133 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
134 * dwarf2read.c (process_enumeration_scope): Likewise.
135 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
136 field.bitpos.
137 (class StructMainTypePrettyPrinter): Support also
138 FIELD_LOC_KIND_ENUMVAL.
139 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
140 TYPE_CODE_ENUM.
141 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
142 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
143 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
144 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
145 field enumval.
146 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
147 accommodate enumval.
148 (struct call_site): Adjust loc_kind to accommodate enumval.
149 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
150 (TYPE_FIELD_ENUMVAL): New macros.
151 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
152 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
153 TYPE_CODE_ENUM.
154 * p-typeprint.c (pascal_type_print_base): Likewise.
155 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
156 enumval.
157 * python/lib/gdb/types.py (make_enum_dict): Likewise.
158 * python/py-type.c (convert_field): New variable addrstring. Use
159 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
160 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
161 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
162 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
163 TYPE_CODE_ENUM.
164 * valprint.c (generic_val_print): Likewise.
165
380bca97
DE
1662012-04-17 Doug Evans <dje@google.com>
167
dcc07052
DE
168 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
169
380bca97
DE
170 * dwarf2read.c: Whitespace fixes.
171 (lookup_signatured_type): Tweak comment.
172 (get_die_type_at_offset): Fix comment.
173
ec92004f
JB
1742012-04-17 Joel Brobecker <brobecker@adacore.com>
175
176 * xcoffread.c (xcoff_secnum_to_sections): New function.
177 (secnum_to_section, secnum_to_bfd_section): Reimplement
178 using xcoff_secnum_to_sections. Rename "secnum" parameter
179 into "n_scnum".
180 (RECORD_MINIMAL_SYMBOL): Delete.
181 (record_minimal_symbol): New function.
182 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
183 by call to record_minimal_symbol and set misc_func_recorded
184 to 1. Set last_csect_sec to the XCOFF section index instead
185 of GDB's section_offset index. Update calls to
186 prim_record_minimal_symbol_and_info to pass the BFD section
187 as well.
188
40301fb7
JB
1892012-04-17 Joel Brobecker <brobecker@adacore.com>
190
191 * xcoffread.c (read_xcoff_symtab): Delete variables
192 last_csect_val and last_csect_sec and associated code.
193
e0088cfd
DE
1942012-04-17 Doug Evans <dje@google.com>
195
58d5e2c3
DE
196 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
197 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
198 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
199 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
200
c27f5738
DE
201 * cleanups.h: New file.
202 * cleanups.c: New file.
203 * Makefile.in (SFILES): Add cleanups.c.
204 (HFILES_NO_SRCDIR): Add cleanups.h.
205 (COMMON_OBS): Add cleanups.o.
206 * defs.h (struct cleanup): Moved to cleanups.h.
207 (do_cleanups,do_final_cleanups): Ditto.
208 (discard_cleanups,discard_final_cleanups): Ditto
209 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
210 (save_cleanups,save_final_cleanups): Ditto.
211 (restore_cleanups,restore_final_cleanups): Ditto.
212 (null_cleanup): Ditto.
213 (make_my_cleanup,make_my_cleanup2): Ditto.
214 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
215 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
216 (do_cleanups,do_final_cleanups): Ditto.
217 (discard_cleanups,discard_final_cleanups): Ditto
218 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
219 (save_cleanups,save_final_cleanups): Ditto.
220 (restore_cleanups,restore_final_cleanups): Ditto.
221 (null_cleanup): Ditto.
222 (make_my_cleanup,make_my_cleanup2): Ditto.
223 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
224
e0088cfd
DE
225 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
226 make_my_cleanup.
227 (make_cleanup_dyn_string_delete): Ditto.
228 (make_cleanup_ui_file_delete): Ditto.
229 (make_cleanup_ui_out_redirect_pop): Ditto.
230 (make_cleanup_free_section_addr_info): Ditto.
231 (make_cleanup_restore_integer): Ditto.
232 (make_cleanup_unpush_target): Ditto.
233 (make_cleanup_value_free_to_mark): Ditto.
234 (make_cleanup_value_free): Ditto.
235 (make_cleanup_free_so): Ditto.
236
4dc84fd1
JK
2372012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
238
239 New option "set debug auto-load".
240 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
241 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
242 (auto_load_safe_path_vec_update)
243 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
244 if DEBUG_AUTO_LOAD.
245 (file_is_auto_load_safe): New parameters debug_fmt and ....
246 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
247 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
248 caller by explanatory string.
249 (_initialize_auto_load): Register "set debug auto-load".
250 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
251 and ....
252 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
253 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
254 by explanatory string.
255 * main.c (captured_main): Likewise.
256 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
257 (source_section_scripts): Likewise.
258
bccbefd2
JK
2592012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
260
261 New option "set auto-load safe-path".
262 * NEWS: New commands "set auto-load safe-path"
263 and "show auto-load safe-path".
264 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
265 (auto_load_safe_path, auto_load_safe_path_vec)
266 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
267 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
268 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
269 (source_gdb_script_for_objfile): New variable is_safe. Call
270 file_is_auto_load_safe. Return if it is not.
271 (struct loaded_script): New field loaded.
272 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
273 (print_script): Use LOADED indicator instead of FULL_PATH. Change
274 output "Missing" to "No".
275 (_initialize_auto_load): New variable cmd. Initialize
276 auto_load_safe_path. Register "set auto-load safe-path",
277 "show auto-load safe-path" and "add-auto-load-safe-path".
278 * auto-load.h (maybe_add_script): Add parameter loaded.
279 (file_is_auto_load_safe): New declaration.
280 * config.in: Regenerate.
281 * configure: Regenerate.
282 * configure.ac: New parameters --with-auto-load-safe-path
283 and --without-auto-load-safe-path.
284 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
285 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
286 * main.c (captured_main): Check file_is_auto_load_safe for
287 LOCAL_GDBINIT.
288 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
289 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
290 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
291 not.
292
bf88dd68
JK
2932012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
294
295 auto-load: Implementation.
296 * NEWS: New descriptions for "info auto-load",
297 "info auto-load gdb-scripts", "info auto-load python-scripts",
298 "info auto-load local-gdbinit" and "info auto-load libthread-db".
299 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
300 and "show auto-load-scripts". New description for "set auto-load",
301 "show auto-load", "set auto-load gdb-scripts",
302 "show auto-load gdb-scripts", "set auto-load python-scripts",
303 "show auto-load python-scripts", "set auto-load local-gdbinit",
304 "show auto-load local-gdbinit", "set auto-load libthread-db" and
305 "show auto-load libthread-db".
306 * auto-load.c: Remove include python/python-internal.h. Add includes
307 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
308 cli/cli-setshow.h.
309 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
310 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
311 (gdbpy_global_auto_load): Rename to ...
312 (global_auto_load): ... here.
313 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
314 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
315 (script_language_gdb, source_gdb_script_for_objfile): New.
316 (struct loaded_script): New field language.
317 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
318 LANGUAGE.
319 (maybe_add_script): Add parameter language. Drop redundant
320 entry.full_path initialization. Initialize entry.language and
321 (*slot)->language.
322 (auto_load_objfile_script): Change parameter suffix to language.
323 Remove the call of maybe_add_script.
324 Call language->source_script_for_objfile.
325 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
326 New.
327 (collect_matching_scripts): Adjust it for
328 struct collect_matching_scripts_data.
329 (auto_load_info_scripts_pattern_nl): New variable.
330 (info_auto_load_scripts): Rename to ...
331 (auto_load_info_scripts): ... here, add parameter language. Adjust it
332 for struct collect_matching_scripts_data.
333 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
334 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
335 (auto_load_show_cmdlist_get, info_auto_load_cmd)
336 (auto_load_info_cmdlist_get): New.
337 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
338 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
339 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
340 "info auto-load local-gdbinit".
341 * auto-load.h (struct script_language): New.
342 (gdbpy_global_auto_load): Rename to ...
343 (global_auto_load): ... here.
344 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
345 (auto_load_local_gdbinit_loaded): New declarations.
346 (maybe_add_script): New parameter language.
347 (auto_load_objfile_script): Change parameter suffix to language.
348 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
349 (auto_load_info_scripts, auto_load_set_cmdlist_get)
350 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
351 declarations.
352 * linux-thread-db.c: Include auto-load.h and ctype.h.
353 (auto_load_thread_db, show_auto_load_thread_db): New.
354 (struct thread_db_info): New field filename.
355 (delete_thread_db_info): Call xfree for FILENAME.
356 (try_thread_db_load): Initialize FILENAME.
357 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
358 if !AUTO_LOAD_THREAD_DB.
359 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
360 (_initialize_thread_db): Install auto_load_thread_db
361 as "set auto-load libthread-db" and install info_auto_load_libthread_db
362 as "info auto-load libthread-db".
363 * main.c (captured_main): Rename gdbpy_global_auto_load to
364 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
365 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
366 (print_gdb_help): Extend the help for 'local init file'.
367 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
368 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
369 (auto_load_scripts): Rename to ...
370 (auto_load_python_scripts): ... here, update the comment.
371 (gdbpy_load_auto_script_for_objfile): New declaration.
372 (show_auto_load_python_scripts, script_language_python)
373 (gdbpy_load_auto_script_for_objfile): New.
374 (source_section_scripts): Refactor the code.
375 (load_auto_scripts_for_objfile): Rename to ...
376 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
377 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
378 (info_auto_load_python_scripts): New.
379 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
380 Rename "set auto-load-scripts" to "set auto-load python-scripts".
381 Register "set auto-load-scripts" as its deprecated alias. Register
382 "info auto-load python-scripts". Register "info auto-load-scripts" as
383 its deprecated alias.
384 (load_auto_scripts_for_objfile): Rename to ...
385 (gdbpy_load_auto_scripts_for_objfile): ... here.
386 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
387 (gdbpy_load_auto_scripts_for_objfile): ... here.
388
e2207b9a
JK
3892012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
390
391 auto-load: Move files.
392 * Makefile.in (SFILES): Add auto-load.c.
393 (HFILES_NO_SRCDIR): Add auto-load.h.
394 (COMMON_OBS): Add auto-load.o.
395 (distclean): Change .gdbinit for gdb-gdb.gdb.
396 * auto-load.c: New file, with parts from python/py-auto-load.c.
397 * auto-load.h: New file, with parts from python/python.h.
398 * configure: Regenerate.
399 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
400 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
401 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
402 * main.c: Include auto-load.h.
403 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
404 command.h, observer.h and progspace.h to auto-load.c. Add include
405 auto-load.h.
406 (gdbpy_global_auto_load, struct auto_load_pspace_info)
407 (struct loaded_script, auto_load_pspace_data)
408 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
409 (hash_loaded_script_entry, eq_loaded_script_entry)
410 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
411 (maybe_add_script): Move to auto-load.c.
412 (source_section_scripts): Change maybe_add_script parameters passing,
413 use script_not_found_warning_print.
414 (clear_section_scripts, auto_load_objfile_script)
415 (auto_load_new_objfile, loaded_script_ptr)
416 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
417 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
418 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
419 auto_load_new_objfile and info_auto_load_scripts initizations to
420 auto-load.c.
421 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
422
e4ab2fad
JK
4232012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
424
425 Code cleanup.
426 * charset.c (find_charset_names): Remove variables ix and elt.
427 Use free_char_ptr_vec.
428 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
429 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
430 debugdir_end. New variable debugdir_len.
431 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
432 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
433 declarations.
434 * progspace.c (clear_program_space_solib_cache): Remove variables ix
435 and elt. Use free_char_ptr_vec.
436 * source.c (add_path): Remove variables argv, arg and argv_index.
437 New variables dir_vec, back_to, ix and name.
438 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
439 make_cleanup_freeargv. Remove variable separator. Simplify the code
440 no longer expecting DIRNAME_SEPARATOR.
441 (openp): Remove variable p, p1 and len. New variables dir_vec,
442 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
443 no longer expecting DIRNAME_SEPARATOR.
444 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
445 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
446 debugdir_end.
447 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
448 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
449 (dirnames_to_char_ptr_vec): New functions.
450
5ee4ed9f
JK
4512012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
452
453 Code cleanup.
454 * source.c (add_path): Remove always true conditional 'p == 0' and
455 unindent its code block.
456
f41f5e61
PA
4572012-04-17 Pedro Alves <palves@redhat.com>
458
459 * gdbtypes.h (FIELD_BITPOS): Rename to ...
460 (FIELD_BITPOS_LVAL): ... this.
461 (FIELD_BITPOS): New.
462 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
463 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
464 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
465 SET_FIELD_BITPOS.
466 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
467 SET_FIELD_BITPOS.
468 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
469 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
470 * target-descriptions.c (tdesc_gdb_type): Adjust to use
471 SET_FIELD_BITPOS.
472
945b3a32
JK
4732012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
474
475 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
476 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
477 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
478 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
479 * jv-lang.c (java_link_class_type): Likewise, once.
480 * stabsread.c (read_enum_type): Likewise.
481
42476b70
YQ
4822012-04-16 Yao Qi <yao@codesourcery.com>
483
484 * common/agent.c (agent_run_command): Add one more parameter `len'.
485 Update callers.
486 * common/agent.h: Update declaration.
487 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
488 Update.
489 (linux_child_static_tracepoint_markers_by_strid): Ditto.
490
8264ba82
AG
4912012-04-14 Anton Gorenkov <xgsa@yandex.ru>
492
493 PR mi/13393
494 * value.c (value_actual_type): New function.
495 * value.h (value_actual_type): New declaration.
496 * varobj.c (update_type_if_necessary): New function.
497 (varobj_create): Call value_actual_type instead of
498 value_type.
499 (install_dynamic_child): distinct changed and type changed MI variable
500 objects.
501 (update_dynamic_varobj_children): Updated for install_dynamic_child
502 change. All callers updated.
503 (varobj_update): Support for MI variable object type change if
504 the value changed and RTTI is used to determine the type.
505 (create_child_with_value): Call value_actual_type instead of
506 value_type.
507 (adjust_value_for_child_access): Extended with a new parameter which
508 specify whether the given value should be casted to enclosing type.
509 All callers updated.
510
55a8c076
YQ
5112012-04-14 Yao Qi <yao@codesourcery.com>
512
513 Import gnulib module inttypes from git
514 (250b80067c1e1d8faa0c42fb572f721975b929c5)
515 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
516 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and gnulib/m4/inttypes-pri.m4
517 * aclocal.m4, config.in, configure: Regenerated.
518 * gnulib/Makefile.am: Update.
519 * gnulib/Makefile.in: Update.
520 * gnulib/m4/gnulib-cache.m4: Update.
521 * gnulib/m4/gnulib-comp.m4: Update.
522 * gnulib/inttypes.in.h: New.
523 * gnulib/m4/inttypes-pri.m4: New.
524 * gnulib/m4/inttypes.m4: New.
525
ca7781d2
LM
5262012-04-13 Luis Machado <lgustavo@codesourcery.com>
527
528 * infrun.c (resume): Update PC address to the real PC after
529 preparing to do displaced stepping.
530
e319fa28
DE
5312012-04-12 Doug Evans <dje@google.com>
532
533 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
534 All callers updated.
535
15add3f5
MK
5362012-04-12 Mark Kettenis <kettenis@gnu.org>
537
538 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
539
52dc124a
DE
5402012-04-12 Doug Evans <dje@google.com>
541
0e50663e
DE
542 * dwarf2read.c (create_all_type_units): Renamed from
543 create_debug_types_hash_table. All callers updated.
544
52dc124a
DE
545 * dwarf2read.c (create_signatured_type_table_from_index): Rename
546 local type_sig to sig_type, type_offset to type_offset_in_tu.
547 (hash_signatured_type): Renamed from hash_type_signature,
548 all callers updated.
549 (eq_signatured_type): Renamed from eq_type_signature,
550 all callers updated.
551 (create_debug_types_hash_table): Rename local type_sig to sig_type.
552 (process_enumeration_scope): Ditto.
553 (lookup_signatured_type_at_offset): Ditto.
554 (load_full_type_unit, read_signatured_type): Ditto.
555
248fd3bf
YQ
5562012-04-12 Yao Qi <yao@codesourcery.com>
557
558 * remote.c (async_remote_interrupt): Correct function name in
559 debug message.
560 (async_remote_interrupt_twice): Ditto.
561
bc3aa6c3
DE
5622012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
563
564 * source.c (find_and_open_source): Consistently pass resulting
565 full path through xfullpath.
566
9e529e1d
JK
5672012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
568
569 Provide more specific displaced-stepping memory error message.
570 * infrun.c (displaced_step_prepare): New variable status. Call
571 target_read_memory instead of read_memory, provide more specific
572 error message.
573
82e0cec1
TG
5742012-04-11 Tristan Gingold <gingold@adacore.com>
575
576 PR gdb/13901
577 * darwin-nat.c (darwin_execvp): Revert previous patch.
578
d987a266
TG
5792012-04-11 Tristan Gingold <gingold@adacore.com>
580
581 PR gdb/13901
582 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
583 in case of change.
584
016b7430
TG
5852012-04-11 Tristan Gingold <gingold@adacore.com>
586
587 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
588 warning.
589
06fc020f
SCR
5902012-04-11 Siva Chandra Reddy <sivachandra@google.com>
591
592 New command 'explore' which helps explore values and types in
593 scope.
594 * NEWS: Add an entry about the new 'explore' command.
595 * data-directory/Makefile.in: Add gdb/command/explore.py
596 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
597 command using the GDB Python API.
598
de0919f8 5992012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
600
601 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
602 extension in jump target calculation.
603
de0919f8 6042012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
605
606 * mips-tdep.c (mips32_next_pc): Handle JALX.
607
2f26ef89
YQ
6082012-04-10 Yao Qi <yao@codesourcery.com>
609
610 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
611
2e505b66
YQ
6122012-04-10 Yao Qi <yao@codesourcery.com>
613
614 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
615 and gnulib/m4/gnulib-tool.m4.
616
0d99eb77
DE
6172012-04-10 Doug Evans <dje@google.com>
618
619 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
620 (load_partial_dies): Clarify comment.
621 (find_partial_die): Support rereading type units.
622 Clarify CU handling, if we know offset is in CU, don't search for the
623 containing CU. Add comment regarding memory waste.
624
9a82b8ff
L
6252012-04-10 H.J. Lu <hongjiu.lu@intel.com>
626
627 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
628 i386/x32-avx and i386/x32-avx-linux.
629 (i386/x32-expedite): New.
630 (i386/x32-linux-expedite): Likewise.
631 (i386/x32-avx-expedite): Likewise.
632 (i386/x32-avx-linux-expedite): Likewise.
633 ($(outdir)/i386/x32.dat): Likewise.
634 ($(outdir)/i386/x32-linux.dat): Likewise.
635 ($(outdir)/i386/x32-avx.dat): Likewise.
636 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
637
638 * features/i386/x32-avx-linux.xml: New file.
639 * features/i386/x32-avx.xml: Likewise.
640 * features/i386/x32-core.xml: Likewise.
641 * features/i386/x32-linux.xml: Likewise.
642 * features/i386/x32.xml: Likewise.
643
644 * features/i386/x32-avx-linux.c: New. Generated.
645 * features/i386/x32-avx.c: Likewise.
646 * features/i386/x32-linux.c: Likewise.
647 * features/i386/x32.c: Likewise.
648 * regformats/i386/x32-avx-linux.dat: Likewise.
649 * regformats/i386/x32-avx.dat: Likewise.
650 * regformats/i386/x32-linux.dat: Likewise.
651 * regformats/i386/x32.dat: Likewise.
652
ee41036f
TG
6532012-04-10 Tristan Gingold <gingold@adacore.com>
654
655 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
656 code to kill the inferior.
657
a7aa5b8a
MK
6582012-04-09 Mark Kettenis <kettenis@gnu.org>
659
660 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
661 defines.
662 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
663 defines.
664 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
665 (yyvsp): New defines.
666 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
667 defines.
668 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
669 defines.
670 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
671 defines.
672 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
673 defines.
674 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
675 defines.
676
fb57d452
MK
6772012-04-09 Mark Kettenis <kettenis@gnu.org>
678
679 * sparc64-tdep.c (sparc64_store_arguments)
680 (sparc64_store_arguments): Fix coding style.
681
cdc7b32f
MK
6822012-04-07 Mark Kettenis <kettenis@gnu.org>
683
684 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
685 complex floats, adjust some related comments and tighten a related
686 assertion.
687 (sparc64_extract_return_value): Handle complex floats.
688
7adf1e79
DE
6892012-04-07 Doug Evans <dje@google.com>
690
691 * dwarf2read.c (load_partial_dies): Change condition to assert.
692
50f1ae7b
DE
6932012-04-06 Doug Evans <dje@google.com>
694
695 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
696 "mov %rsp,%rbp".
697
55fa75c3
KB
6982012-04-05 Kevin Buettner <kevinb@redhat.com>
699
700 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
701 fencepost error.
702 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
703 (v850_gdbarch_init): Set `num_regs' as appropriate for the
704 architecture.
705
40e084e1
KS
7062012-04-05 Keith Seitz <keiths@redhat.com>
707
708 * linespec.c (decode_compound): Remove.
709 (enum offset_relative_sign): New enum.
710 (struct line_offset): New struct.
711 (struct linespec): New struct.
712 (struct linespec_state): Move file_symtabs,
713 user_filename, and user_function into struct linespec.
714 Make result an anonymous struct holding vectors of
715 symbolp and minsym_and_objfile_d.
716 Add language member.
717 (enum ls_token_type): New enum.
718 (linespec_keywords): New array.
719 (struct ls_token): New struct.
720 (struct ls_parser): New struct.
721 (linespec_lexer_lex_number): New function.
722 (linespec_lexer_lex_keyword): New function.
723 (is_ada_operator): New function.
724 (skip_quote_char): New function.
725 (copy_token_string): New function.
726 (is_closing_quote_enclosed): New function.
727 (find_parameter_list_end): New function.
728 (linespec_lexer_lex_string): New function.
729 (linespec_lexer_lex_one): New function.
730 (linespec_lexer_consume_token): New function.
731 (linespec_lexer_peek_token): New function.
732 (cplusplus_error): Remove unused function.
733 (find_methods): Update comment.
734 (find_toplevel_char): Return const.
735 (is_objc_method_format): Remove unused function.
736 (find_toplevel_string): New function.
737 (is_linespec_boundary): Remove.
738 (symbol_not_found_error): New function.
739 (find_method_overload_end): Remove function.
740 (unexpected_linespec_error): New function.
741 (keep_name_info): Remove.
742 (linespec_parse_line_offset): New function.
743 (linespec_parse_basic): New function.
744 (canonicalize_linespec): New function.
745 (decode_line_internal): Remove.
746 (create_sals_line_offset): New function adapted from
747 decode_all_digits.
748 (convert_linespec_to_sals): New function.
749 (parse_linespec): New function.
750 (linespec_parser_new): New function.
751 (linespec_state_destructor): Change parameter type to
752 struct linespec_state *.
753 Add language parameter.
754 Remove freeing of moved members.
755 (linespec_parser_delete): New function.
756 (decode_line_full): Use parse_linespec and linespec_parser_new.
757 (decode_line_1): Likewise.
758 (decode_indirect): Rename to ...
759 (linespec_expression_to_pc): ... this and rewrite
760 to simply find CORE_ADDR, storing this result for later
761 conversion to SALs.
762 (locate_first_half): Remove.
763 (deocde_objc): Add parameter LS.
764 Initialize new struct collect_info members.
765 Handle minimal symbols, too.
766 (decode_compound): Delete.
767 (lookup_prefix_sym): Rewrite.
768 (compare_msymbols): New function.
769 (find_method): Rewrite.
770 Do not call cplusplus_error.
771 (symtabs_from_filename): Rewrite.
772 (collect_function_symbols): Delete.
773 (find_function_symbols): Rewrite without ARGPTR-style
774 processing.
775 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
776 (decode_dollar): Adapted and renamed to ...
777 (linespec_parse_variable): ... this.
778 (find_linespec_symbols): New function.
779 (decode_label): Adapted and renamed to ...
780 (find_label_symbols): ... this.
781 (decode_digits_list_mode): Add and use LS argument.
782 (decode_digits_ordinary): Likewise.
783 (collect_symbols): Do not collect SALs, just symbols and msymbols.
784 If in list mode, allow any symbol class. Otherwise, only
785 permit LOC_BLOCK symbols.
786 (minsym_found): Update comments.
787 (search_minsyms_for_name): Do not convert the matching symbol
788 into a SAL. Simply push the symbol and objfile into the
789 result vector.
790 (decode_variable): Delete. Contents adapted into
791 find_linespec_symbols.
792
793 * cp-support.c (SKIP_SPACE): Remove.
794 (operator_tokens): Remove unused global.
795 (cp_validate_operator): Remove.
796 * cp-support.h (cp_validate_operator): Remove declaration.
797
a72c8f6a
JK
7982012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
799
800 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
801 for TYPE_VPTR_FIELDNO.
802 * valprint.c (valprint_check_validity): Make it global, move the
803 function comment ...
804 * value.h (valprint_check_validity): ... to this new declaration.
805
cf9bb588
TG
8062012-04-02 Tristan Gingold <gingold@adacore.com>
807
808 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
809 the STATE32 api for i386 state.
810 (i386_darwin_store_inferior_registers): Likewise.
811
17092398
TG
8122012-04-02 Tristan Gingold <gingold@adacore.com>
813
814 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
815 SS offset.
816 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
817 format_string.
818
ece0061f
TG
8192012-04-02 Tristan Gingold <gingold@adacore.com>
820
821 PR gdb/13901
d987a266 822 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 823
cf65ecd3
JK
8242012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
825
826 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
827
9bc3523d
TT
8282012-03-30 Tom Tromey <tromey@redhat.com>
829
830 * python/python.c (gdbpy_decode_line): Move cleanup creation out
831 of TRY_CATCH. Fix error handling.
832 * python/py-value.c (convert_value_from_python): Move 'old'
833 declaration to innermost scope.
834
b1ed564a
JB
8352012-03-29 Joel Brobecker <brobecker@adacore.com>
836 Andrey Smirnov <andrew.smirnov@gmail.com>
837
838 -Wshadow warning fix.
839 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
840 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
841 Adjust code accordingly.
842
cb8e9b97
JB
8432012-03-29 Joel Brobecker <brobecker@adacore.com>
844
845 * ada-lang.c (symbol_completion_add): Rename parameter
846 "encoded" into "encoded_p". Ajust code and documentation
847 accordingly.
848
c0af1706
JB
8492012-03-29 Joel Brobecker <brobecker@adacore.com>
850 Andrey Smirnov <andrew.smirnov@gmail.com>
851
852 -Wshadow warning fix.
853 * ada-lang.c (symbol_completion_add): Rename parameter
854 "wild_match" into wild_match_p. Update code and documentation
855 accordingly.
856
6ea35997
JB
8572012-03-29 Joel Brobecker <brobecker@adacore.com>
858
859 * ada-lang.c (symbol_completion_match): Rename parameter
860 "encoded" into "encoded_p". Ajust code and documentation
861 accordingly.
862
e701b3c0
JB
8632012-03-29 Joel Brobecker <brobecker@adacore.com>
864 Andrey Smirnov <andrew.smirnov@gmail.com>
865
866 -Wshadow warning fix.
867 * ada-lang.c (symbol_completion_match): Rename parameter
868 "wild_match" into "wild_match_p". Adjust code and function
869 documentation accordingly.
870
5e2336be
JB
8712012-03-29 Joel Brobecker <brobecker@adacore.com>
872 Andrey Smirnov <andrew.smirnov@gmail.com>
873
874 -Wshadow warning fix.
875 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
876 "symbol_info" into "info". Adjust code accordingly.
877 (ada_lookup_symbol): Likewise.
878
9f88c959
JB
8792012-03-29 Joel Brobecker <brobecker@adacore.com>
880
881 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
882 of this function's documentation.
883
82ccd55e
JB
8842012-03-29 Joel Brobecker <brobecker@adacore.com>
885 Andrey Smirnov <andrew.smirnov@gmail.com>
886
887 -Wshadow warning fix.
888 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
889 variable into "wild_match_p". Adjust code accordingly.
890
d0a8ab18
JB
8912012-03-29 Joel Brobecker <brobecker@adacore.com>
892 Andrey Smirnov <andrew.smirnov@gmail.com>
893
894 -Wshadow warning fix.
895 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
896 parameter into "wild_match_p". Adjust code accordingly.
897 Document this parameter in the function description.
898
48b78332
JB
8992012-03-29 Joel Brobecker <brobecker@adacore.com>
900 Andrey Smirnov <andrew.smirnov@gmail.com>
901
902 -Wshadow warning fix.
903 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
904 "wild_match" parameter to "wild_match_p" (-Wshadow).
905
2e6e0353
JB
9062012-03-29 Joel Brobecker <brobecker@adacore.com>
907
908 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
909 in function documentation.
910
dc4024cd
JB
9112012-03-29 Joel Brobecker <brobecker@adacore.com>
912 Andrey Smirnov <andrew.smirnov@gmail.com>
913
914 -Wshadow warning fix.
915 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
916 variable into wild_match_p. Adjust code accordingly.
917
6c88661c
JB
9182012-03-29 Joel Brobecker <brobecker@adacore.com>
919 Andrey Smirnov <andrew.smirnov@gmail.com>
920
921 * ada-valprint.c (ada_val_print_1): Move the code handling
922 TYPE_CODE_ENUM inside its own lexical block. Declare
923 variables len and val there, instead of in the function's
924 top level block. Avoid declaring deref_val again in a way
925 that shadows another variable of the same name declared
926 in one of the up-level blocks. Just re-use the up-level
927 variable instead.
928
4e5c77fe
JB
9292012-03-29 Joel Brobecker <brobecker@adacore.com>
930
931 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
932 Replace block_found argument by symbol_info. Adjust
933 implementation accordingly. Add function documentation.
934 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
935 Fix documentation.
936 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
937 * ada-exp.y (write_object_renaming): Adjust to new
938 ada_lookup_encoded_symbol API.
939
1c0ac8c7
JB
9402012-03-29 Joel Brobecker <brobecker@adacore.com>
941
942 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
943 documentation.
944
2aaed979
KB
9452012-03-28 Rathish C <rathish.c@kpitcummins.com>
946
947 * v850-tdep.c: Add the enum values for mpu and fpu registers.
948 (v850_register_name): Add the mpu and fpu register names.
949 (v850e_register_name): Add the mpu and fpu register names.
950 (v850e2_register_name): New function.
951 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
952 bfd_mach_v850e2v3.
953
927fbba6
JB
9542012-03-28 Joel Brobecker <brobecker@adacore.com>
955
956 * NEWS: Add entry for Ada varobj support.
957
d32cafc7
JB
9582012-03-28 Joel Brobecker <brobecker@adacore.com>
959
960 * varobj.c (default_value_is_changeable_p): New function,
961 extracted from varobj_value_is_changeable_p. Add declaration.
962 (ada_value_is_changeable_p): New function, extracted from
963 varobj_value_is_changeable_p. Add declaration.
964 (struct language_specific): New field "value_is_changeable_p".
965 (languages): Add entries for new field.
966 (varobj_create): Set language before calling install_new_value.
967 (varobj_value_is_changeable_p): Reimplement to call the varobj's
968 "value_is_changeable_p" language callback.
969
181875a4
JB
9702012-03-28 Joel Brobecker <brobecker@adacore.com>
971
972 * ada-varobj.h, ada-varobj.c: New files.
973 * Makefile.in (SFILES): Add ada-varobj.c.
974 (HFILES_NO_SRCDIR): Add ada-varobj.h.
975 (COMMON_OBS): Add ada-varobj.o.
976
7a290c40
JB
9772012-03-28 Joel Brobecker <brobecker@adacore.com>
978
979 * varobj.c (ada_value_has_mutated): Add declaration. New function.
980 (struct language_specific): New field "value_has_mutated".
981 (languages): Set field "value_has_mutated" in each entry of array.
982 (varobj_value_has_mutated): New function.
983 (varobj_udpdate): Add handling of type mutation.
984 (value_of_root): Add handling of type mutation.
985 (ada_value_has_mutated): New function.
986
ca9b8b9c
PA
9872012-03-28 Pedro Alves <palves@redhat.com>
988
989 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
990 Always supply $fr0 as 0.0 and $fr1 as 1.0.
991
cc0265cd
TT
9922012-03-28 Tom Tromey <tromey@redhat.com>
993
994 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
995 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
996 before returning.
997
3ad2ec6f
TT
9982012-03-28 Tom Tromey <tromey@redhat.com>
999
1000 * .dir-locals.el: New file.
1001
4a6510ba
PA
10022012-03-28 Pedro Alves <palves@redhat.com>
1003
1004 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1005
5a75128f
JB
10062012-03-28 Joel Brobecker <brobecker@adacore.com>
1007
1008 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1009 handling for r0.
1010
f99d8bf4
PA
10112012-03-27 Pedro Alves <palves@redhat.com>
1012
1013 Eliminate struct ui_stream.
1014
1015 * ui-out.h (struct ui_stream): Delete.
1016 (ui_out_field_stream): Adjust prototype.
1017 (ui_out_stream_new, ui_out_stream_delete)
1018 (make_cleanup_ui_out_stream_delete): Delete declarations.
1019 * ui-out.c (ui_out_field_stream): Change prototype to take a
1020 ui_file instead of a ui_stream. Adjust.
1021 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
1022 (make_cleanup_ui_out_stream_delete): Delete.
1023 * breakpoint.c (print_breakpoint_location)
1024 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
1025 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1026 * disasm.c (dump_insns): Ditto.
1027 (do_mixed_source_and_assembly, do_assembly_only): Adjust
1028 prototype.
1029 (gdb_disassembly): Use ui_file/mem_fileopen instead of
1030 ui_stream/ui_out_stream_new.
1031 * infcmd.c (print_return_value): Ditto.
1032 * osdata.c (info_osdata_command): Don't allocate a local
1033 ui_stream.
1034 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
1035 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1036 * tracepoint.c (print_one_static_tracepoint_marker): Don't
1037 allocate a local ui_stream.
1038 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
1039 instead of ui_stream/ui_out_stream_new.
1040 (list_args_or_locals): Don't allocate a local ui_stream.
1041 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
1042 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
1043 ui_stream/ui_out_stream_new.
1044 * cli/cli-setshow.c (do_setshow_command): Ditto.
1045
6350a066 10462012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 1047
6350a066
PA
1048 * arm-linux-tdep.c (arm_linux_init_abi): Call
1049 set_gdbarch_process_record. Initialize `arm_swi_record' field.
1050 * arm-tdep.c (arm_process_record): New function.
1051 (deallocate_reg_mem): New function.
1052 (decode_insn): New function.
1053 (thumb_record_branch): New function.
1054 (thumb_record_ldm_stm_swi(): New function.
1055 (thumb_record_misc): New function.
1056 (thumb_record_ld_st_stack): New function.
1057 (thumb_record_ld_st_imm_offset): New function.
1058 (thumb_record_ld_st_reg_offset(): New function.
1059 (thumb_record_add_sub_cmp_mov): New function.
1060 (thumb_record_shift_add_sub): New function.
1061 (arm_record_coproc_data_proc): New function.
1062 (arm_record_coproc): New function.
1063 (arm_record_b_bl): New function.
1064 (arm_record_ld_st_multiple): New function.
1065 (arm_record_ld_st_reg_offset): New function.
1066 (arm_record_ld_st_imm_offset): New function.
1067 (arm_record_data_proc_imm): New function.
1068 (arm_record_data_proc_misc_ld_str): New function.
1069 (arm_record_extension_space): New function.
1070 (arm_record_strx): New function.
1071 (sbo_sbz): New function.
1072 (struct insn_decode_record): New structure for arm insn record.
1073 (REG_ALLOC): New macro for reg allocations.
1074 (MEM_ALLOC): New macro for memory allocations.
1075 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 1076
89e028e2
AS
10772012-03-27 Andreas Schwab <schwab@linux-m68k.org>
1078
1079 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
1080 (store_register): Likewise.
1081
6350a066 10822012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 1083
6350a066 1084 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 1085
5b43fab2
JK
10862012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1087
1088 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
1089 Describe also the option "auto".
1090
b5453b95
RH
10912012-03-22 Richard Henderson <rth@redhat.com>
1092
1093 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
1094 * sparc-nat.c (sparc_xfer_wcookie): Make static.
1095
227ee7fc
RH
10962012-03-22 Richard Henderson <rth@redhat.com>
1097
1098 * jit.c (jit_read_code_entry): Compute alignment and offset of
1099 int64_t member before computing entry_size.
1100
7b282c5a
SCR
11012012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1102
1103 Python scripting: Add new method Value.referenced_value to
1104 gdb.Value which can dereference pointer as well as reference
1105 values.
1106 * NEWS: Add entry under 'Python scripting' about the new method
1107 Value.referenced_value on gdb.Value objects.
1108 * python/py-value.c (valpy_referenced_value): New function
1109 defining a new method on gdb.Value objects which can dereference
1110 pointer and reference values.
1111
0c83539f
SCR
11122012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1113
1114 * MAINTAINERS (Write After Approval): Add myself to the list.
1115
7ccffd7c
KB
11162012-03-21 Kevin Buettner <kevinb@redhat.com>
1117
1118 * symtab.c (skip_prologue_sal): Change test to check for "main()"
1119 in addition to "main".
1120
bd0b9f9e
JB
11212012-03-21 Joel Brobecker <brobecker@adacore.com>
1122
1123 * expression.h (op_name): Add declaration.
1124 * expprint.c (op_name): Remove declaration. Make non-static.
1125 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
1126
a5362b9a
TS
11272012-03-21 Thomas Schwinge <thomas@codesourcery.com>
1128
1129 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
1130 of struct siginfo.
1131 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
1132 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1133 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
1134 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
1135 (linux_nat_get_siginfo): Likewise.
1136 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
1137 (linux_nat_get_siginfo): Likewise.
1138 * linux-tdep.c (linux_get_siginfo_type): Likewise.
1139 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
1140 * procfs.c (gdb_siginfo_t): Likewise.
1141
adcadaab
MF
11422012-03-21 Mike Frysinger <vapier@gentoo.org>
1143
1144 * .gitignore: Ignore more files.
1145
e278ad5b
PA
11462012-03-20 Pedro Alves <palves@redhat.com>
1147
1148 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
1149 returns.
1150
741e63d7
YQ
11512012-03-20 Yao Qi <yao@codesourcery.com>
1152
1153 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
1154 comment.
1155
b64f50a1
JK
11562012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1157
1158 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
1159 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
1160 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
1161 sect_offset.
1162 * dwarf2expr.h (cu_offset, sect_offset): New types.
1163 (struct dwarf_expr_context_funcs) <dwarf_call>
1164 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
1165 sect_offset.
1166 (struct dwarf_expr_context) <len>: Improve the comment.
1167 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
1168 cu_offset and sect_offset.
1169 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
1170 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
1171 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
1172 * dwarf2loc.h: Include dwarf2expr.h.
1173 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
1174 and sect_offset.
1175 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
1176 Improve the comment.
1177 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
1178 (struct signatured_type, struct line_header, struct partial_die_info)
1179 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
1180 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
1181 (get_die_type_at_offset, create_cus_from_index)
1182 (create_signatured_type_table_from_index, dw2_get_file_names)
1183 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
1184 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
1185 (create_debug_types_hash_table, process_psymtab_comp_unit)
1186 (load_partial_comp_unit, create_all_comp_units)
1187 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
1188 (load_full_comp_unit, dwarf2_physname, read_import_statement)
1189 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
1190 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
1191 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
1192 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
1193 (find_partial_die, read_attribute_value, lookup_die_type)
1194 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
1195 (is_ref_attr): New function comment.
1196 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
1197 Use cu_offset and sect_offset.
1198 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
1199 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
1200 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
1201 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
1202 (offset_and_type_hash, offset_and_type_eq, set_die_type)
1203 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
1204 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
1205 sect_offset.
1206
e97a38f7
JK
12072012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1208
1209 Code cleanup.
1210 * python/py-auto-load.c (source_section_scripts): New variable back_to.
1211 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
1212 with xfree.
1213 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
1214
8320cc4f
JK
12152012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1216
1217 * NEWS: Describe new options --init-command=FILE, -ix and
1218 --init-eval-command=COMMAND, -iex.
1219 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
1220 CMDARG_INIT_COMMAND.
1221 (captured_main): New enum items OPT_IX and OPT_IEX. Add
1222 "init-command", "init-eval-command", "ix" and "iex" to the variable
1223 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
1224 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
1225 (print_gdb_help): Describe --init-command=FILE, -ix and
1226 --init-eval-command=COMMAND, -iex.
1227
26743505
JK
12282012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1229
1230 Code cleanup.
1231 * main.c (struct cmdarg): Move it here from main. Add more comments.
1232 (cmdarg_s, VEC (cmdarg_s)): New.
1233 (main): Move struct cmdarg from here. New variables cmdarg_vec and
1234 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
1235 Install cleanup for cmdarg_vec. Update filling for options 'x' and
1236 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
1237 of CMDARG.
1238
5ff5c7b4
TT
12392012-03-19 Tom Tromey <tromey@redhat.com>
1240
1241 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
1242
ab260dad
JK
12432012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1244
1245 PR symtab/13777
1246 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
1247 GCC >=4.5.
1248
c366c1f0
TT
12492012-03-16 Chris January <chris.january@allinea.com>
1250
1251 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
1252 of clear.
1253
e16edb45
TT
12542012-03-16 Chris January <chris.january@allinea.com>
1255
1256 * source.c (add_path): Use memmove instead of strcpy because the
1257 strings overlap.
1258
53ba8333
JB
12592012-03-16 Joel Brobecker <brobecker@adacore.com>
1260
1261 * value.h (set_value_parent): Add declaration.
1262 * value.c (set_value_parent): New function.
1263 (value_address): If VALUE->PARENT is not NULL, then use it as
1264 the base address instead of VALUE->LOCATION.address.
1265 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
1266 the same as OBJ's address. Adjust V's offset accordingly.
1267 Set V's parent.
1268
481860b3
GB
12692012-03-16 Gary Benson <gbenson@redhat.com>
1270
1271 PR breakpoints/10738
1272 * dwarf2read.c (use_deprecated_index_sections): New global.
1273 (struct partial_die_info): New member may_be_inlined.
1274 (read_partial_die): Set may_be_inlined where appropriate.
1275 (add_partial_subprogram): Add partial symbols for partial
1276 DIEs that may be inlined.
1277 (new_symbol_full): Add inlined subroutines to the current
1278 scope.
1279 (write_psymtabs_to_index): Bump version number.
1280 (dwarf2_read_index): Read only version 6 indices unless
1281 use_deprecated_index_sections is set.
1282 * linespec.c (symbol_and_data_callback): New structure.
1283 (iterate_inline_only): New function.
1284 (iterate_over_all_matching_symtabs): New argument
1285 "include_inline". If nonzero, also call the callback for
1286 symbols representing inlined subroutines.
1287 (lookup_prefix_sym): Pass extra argument to the above.
1288 (find_function_symbols): Likewise.
1289 (add_matching_symbols_to_info): Likewise.
1290 * NEWS: Mention that GDB can now set breakpoints on inlined
1291 functions.
1292
d0e7e15a
PM
12932012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1294
1295 * p-typeprint.c (pascal_type_print_method_args):
1296 Fix display of parameter of methods.
1297
3d354654
PM
12982012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1299
1300 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
1301 Add missing prototype.
1302
cafe75b0
JK
13032012-03-16 Yao Qi <yao@codesourcery.com>
1304 Jan Kratochvil <jan.kratochvil@redhat.com>
1305
1306 Fix false compilation warning.
1307 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
1308
25f8c692
JL
13092012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
1310 Pedro Alves <pedro@codesourcery.com>
1311
1312 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
1313 (arm_register_g_packet_guesses): New function.
1314 (arm_gdbarch_init): Don't force a target description with
1315 registers when the executable is detected as M-profile. Instead
1316 set gdbarch->tdep->is_m. Register `g' packet guesses.
1317 (_initialize_arm_tdep): Initialize the new target description.
1318 * features/arm-with-m-fpa-layout.xml: New description.
1319 * features/arm-with-m-fpa-layout.c: New, generated.
1320
35c63cd8
JB
13212012-03-15 Joel Brobecker <brobecker@adacore.com>
1322
1323 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
1324 Update function description.
1325 (insert_bp_location): Do not wipe bl->target_info out.
1326 * mem-break.c: #include "gdb_string.h".
1327 (default_memory_insert_breakpoint): Do not call target_read_memory
1328 with a pointer to the breakpoint's shadow_contents buffer. Use
1329 a local buffer instead.
1330 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
1331
57651221
TT
13322012-03-15 Tom Tromey <tromey@redhat.com>
1333
1334 * NEWS: Mention "info vtbl", not "info vtable".
1335 * cp-support.c (info_vtbl_command): Fix comment.
1336 (_initialize_cp_support): Fix text.
1337
410528f0
TT
13382012-03-15 Tom Tromey <tromey@redhat.com>
1339
1340 * cp-valprint.c (cp_print_value_fields): Use
1341 print_function_pointer_address for vtable slot.
1342
c4aeac85
TT
13432012-03-15 Tom Tromey <tromey@redhat.com>
1344
1345 * gnu-v3-abi.c (struct value_and_voffset): New.
1346 (hash_value_and_voffset, eq_value_and_voffset)
1347 (compare_value_and_voffset, compute_vtable_size)
1348 (print_one_vtable, gnuv3_print_vtable): New functions.
1349 (init_gnuv3_ops): Initialize 'print_vtable' field.
1350 * cp-support.c (info_vtbl_command): New function.
1351 (_initialize_cp_support): Add "info vtbl".
1352 * cp-abi.h (cplus_print_vtable): Declare.
1353 (struct cp_abi_ops) <print_vtable>: New field.
1354 * cp-abi.c (cplus_print_vtable): New function.
1355 * NEWS: Update.
1356
95cbceff
TT
13572012-03-15 Tom Tromey <tromey@redhat.com>
1358
1359 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
1360 iterate_over_symbols.
1361
589b4a32
DE
13622012-03-14 Doug Evans <dje@google.com>
1363
1364 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
1365 DW_OP_GNU_parameter_ref.
1366
e837f12a
JK
13672012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1368
1369 Fix double prompt of 'interpreter-exec mi'.
1370 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
1371 (mi_interpreter_resume): use it.
1372 (mi_execute_command_input_handler): New function.
1373 * mi/mi-main.c (mi_execute_command): Move prompt printing to
1374 mi_execute_command_input_handler.
1375
ff1e4526 13762012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
1377
1378 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
1379 prototype.
1380 (darwin_debug_port_info): Make static.
1381 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
1382 * machoread.c (_initialize_machoread): Add prototype.
1383 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
1384 (i386_darwin_set_control, i386_darwin_get_control)
1385 i386_darwin_dr_set_addr, i386_darwin_get_addr)
1386 i386_darwin_get_status, i386_darwin_get_control):
1387 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
1388
d8a5d6ee
JB
13892012-03-13 Joel Brobecker <brobecker@adacore.com>
1390
1391 * ax-gdb.c (gen_usual_unary): Remove special handling of
1392 enum and bool types.
1393
af381b8c
JB
13942012-03-13 Joel Brobecker <brobecker@adacore.com>
1395
1396 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
1397
786c562f
JB
13982012-03-13 Joel Brobecker <brobecker@adacore.com>
1399
1400 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
1401
e3ebf1bb
JB
14022012-03-13 Chris January <chris.january@allinea.com>
1403
1404 * aix-thread.c (fill_sprs): Store the floating point registers
1405 at the correct offsets into vals.
1406
c5b7e1cb
DE
14072012-03-13 Doug Evans <dje@google.com>
1408
16899756
DE
1409 * NEWS: Mention symbol-reloading has been deleted.
1410 * symfile.c (symbol_reloading): Delete.
1411 (show_symbol_reloading): Delete.
1412 (_initialize_symfile): Delete set/show symbol-reloading.
1413
c5b7e1cb
DE
1414 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
1415 read_in_chain until we have successfully read it in.
1416 (load_full_comp_unit): Ditto.
1417 (read_signatured_type): Add comment.
1418
46cb6474
JB
14192012-03-13 Chris January <chris.january@allinea.com>
1420
1421 * stabsread.c (fix_common_block): Change type of valu argument
1422 to CORE_ADDR.
1423
76219d77
JB
14242012-03-13 Chris January <chris.january@allinea.com>
1425
1426 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
1427 instruction.
1428
87b0bb13
JK
14292012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1430
1431 * common/linux-procfs.c (linux_proc_get_int): New, from
1432 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
1433 field.
1434 (linux_proc_get_tgid): Only call linux_proc_get_int.
1435 (linux_proc_get_tracerpid): New.
1436 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
1437 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
1438 linux_proc_pid_has_state.
1439 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
1440 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
1441 (linux_ptrace_attach_warnings): New.
1442 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
1443 New declaration.
1444 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
1445 (linux_nat_attach): New variables ex, buffer, message and message_s.
1446 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
1447
5f572dec
JK
14482012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1449
1450 * Makefile.in (linux-ptrace.o): New.
1451 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
1452 from linux-nat.c.
1453 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
1454 * common/linux-ptrace.c: New file.
1455 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
1456 * config/arm/linux.mh: Likewise.
1457 * config/i386/linux.mh: Likewise.
1458 * config/i386/linux64.mh: Likewise.
1459 * config/ia64/linux.mh: Likewise.
1460 * config/m32r/linux.mh: Likewise.
1461 * config/m68k/linux.mh: Likewise.
1462 * config/mips/linux.mh: Likewise.
1463 * config/pa/linux.mh: Likewise.
1464 * config/powerpc/linux.mh: Likewise.
1465 * config/powerpc/ppc64-linux.mh: Likewise.
1466 * config/powerpc/spu-linux.mh: Likewise.
1467 * config/s390/s390.mh: Likewise.
1468 * config/sparc/linux.mh: Likewise.
1469 * config/sparc/linux64.mh: Likewise.
1470 * config/xtensa/linux.mh: Likewise.
1471 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
1472 common/linux-procfs.c.
1473 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
1474
44f238bb
PA
14752012-03-13 Hui Zhu <teawater@gmail.com>
1476 Pedro Alves <palves@redhat.com>
1477
1478 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
1479 CREATE_BREAKPOINT_FLAGS_INSERTED.
1480 (create_breakpoint_sal, create_breakpoints_sal)
1481 (base_breakpoint_create_breakpoints_sal)
1482 (tracepoint_create_breakpoints_sal)
1483 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
1484 down.
1485 (break_command_1, handle_gnu_v3_exceptions, trace_command)
1486 (ftrace_command, strace_command): Adjust.
1487 (create_tracepoint_from_upload): Pass
1488 CREATE_BREAKPOINT_FLAGS_INSERTED.
1489 * breakpoint.h (enum breakpoint_create_flags): New.
1490 (create_breakpoint): New flags parameter.
1491 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
1492 * python/py-breakpoint.c (bppy_init): Adjust.
1493 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
1494 * spu-tdep.c (spu_catch_start): Adjust.
1495
1e51243a
PA
14962012-03-13 Pedro Alves <palves@redhat.com>
1497 Hui Zhu <teawater@gmail.com>
1498 Yao Qi <yao@codesourcery.com>
1499
1500 * remote.c (struct remote_state): New field `starting_up'.
1501 (remote_start_remote): Set and clear it.
1502 (remote_can_download_tracepoint): If starting up, return false.
1503
fa3064dd
YQ
15042012-03-13 Yao Qi <yao@codesourcery.com>
1505
1506 * inferior.h (struct inferior): Remove fields any_syscall_count,
1507 syscalls_counts and total_syscalls_count. Move them to new
1508 struct catch_syscall_inferior_data in breakpoint.c.
1509 * breakpoint.c: Call DEF_VEC_I(int).
1510 (struct catch_syscall_inferior_data): New.
1511 (get_catch_syscall_inferior_data): New.
1512 (catch_syscall_inferior_data_cleanup): New.
1513 (insert_catch_syscall): Update to access data in
1514 struct catch_syscall_inferior_data.
1515 (insert_catch_syscall): Likewise.
1516 (remove_catch_syscall): Likewise.
1517 (remove_catch_syscall): Likewise.
1518 (is_syscall_catchpoint_enabled): Likewise.
1519 (add_catch_command): Likewise.
1520 (_initialize_breakpoint): Register cleanup.
1521 * breakpoint.h: Removed DEF_VEC_I(int).
1522 * dwarf2loc.c: Call DEF_VEC_I(int).
1523 * mi/mi-main.c: Likewise.
1524
460fac3c
MK
15252012-03-12 Mark Kettenis <kettenis@gnu.org>
1526
1527 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
1528
e1aca11e
JB
15292012-03-12 Chris January <chris.january@allinea.com>
1530
1531 * aix-thread.c (_initialize_aix_thread): Add prototype.
1532 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
1533 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
1534
649c7061
JB
15352012-03-12 Joel Brobecker <brobecker@adacore.com>
1536
1537 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
1538 include of "amd64-nat.h".
1539
0b49e518
TT
15402012-03-12 Tom Tromey <tromey@redhat.com>
1541
1542 * buildsym.c (record_pending_block): Now static.
1543 * buildsym.h: (record_pending_block): Remove.
1544
fd24fa94
AT
15452012-03-12 Andreas Tobler <andreast@fgznet.ch>
1546
1547 * amd64bsd-nat.c: Include amd64bsd-nat.h.
1548
ba919b58
TT
15492012-03-09 Tom Tromey <tromey@redhat.com>
1550
1551 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
1552 producer_is_gxx_lt_4_6>: New fields.
1553 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
1554
a48e046c
TT
15552012-03-09 Tom Tromey <tromey@redhat.com>
1556
1557 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
1558
6f5e9362
JB
15592012-03-08 Joel Brobecker <brobecker@adacore.com>
1560
1561 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
1562 prototype.
1563
8d037db9
JB
15642012-03-08 Joel Brobecker <brobecker@adacore.com>
1565
1566 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
1567
4e841acf
JK
15682012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1569
1570 Fix -Wmissing-prototypes build.
1571 * arm-linux-nat.c (get_thread_id): Make it static.
1572 * xtensa-linux-nat.c (get_thread_id): Likewise.
1573
c6030312
JB
15742012-03-08 Joel Brobecker <brobecker@adacore.com>
1575
1576 * server.c (process_point_options): If a conditional expression
1577 is found, only print a message if remote_debug is nonzero.
1578
52323be9
LM
15792012-03-08 Luis Machado <lgustavo@codesourcery.com>
1580
1581 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
1582 of internal error for unknown/unsupported types.
1583
7fe25d9b
JK
15842012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1585
1586 Fix CU relative vs. absolute DIE offsets.
1587 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
1588 offset to offset_in_cu.
1589 * dwarf2read.c (process_enumeration_scope): Add CU offset to
1590 TYPE_OFFSET.
1591 (dwarf2_fetch_die_location_block): Rename parameter offset to
1592 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
1593
05e7c244
JK
15942012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1595
1596 * libunwind-frame.c: Rename to ...
1597 * ia64-libunwind-tdep.c: ... here.
1598 * libunwind-frame.h: Rename to ...
1599 * ia64-libunwind-tdep.h: ... here.
1600 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
1601 ia64-libunwind-tdep.h.
1602 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
1603 * README (--with-libunwind): Rename to ...
1604 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
1605 * config.in: Regenerate.
1606 * configure: Regenerate.
1607 * configure.ac: New option --with-libunwind-ia64, make the
1608 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
1609 Remove AC_DEFINE for HAVE_LIBUNWIND.
1610 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
1611 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
1612 Rename libunwind-frame in the general comment.
1613 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
1614 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
1615 Move forward declarations inside #ifndef. Rename libunwind-frame in
1616 the general comment.
1617 * ia64-tdep.c: Rename libunwind-frame.h #include to
1618 ia64-libunwind-tdep.h.
1619 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
1620 (ia64_libunwind_descr): Rename libunwind-frame to
1621 ia64-libunwind-tdep in these function comments.
1622 * ia64-tdep.h: Rename libunwind-frame.h #include to
1623 ia64-libunwind-tdep.h.
1624 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
1625 ia64-libunwind-tdep in that data comment.
1626
3755cbfd
JK
16272012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
1628
1629 * libunwind-frame.h (struct frame_unwind): New declaration.
1630
d1cda5d9
JB
16312012-03-08 Joel Brobecker <brobecker@adacore.com>
1632
1633 * breakpoint.c (_initialize_breakpoint): Fix error in help of
1634 "set breakpoint condition-evaluation" command.
1635
a0ba0aa2
TG
16362012-03-08 Tristan Gingold <gingold@adacore.com>
1637
1638 * sparc-stub.c: Move to stubs/
1639 * sh-stub.c: Likewise.
1640 * m68k-stub.c: Likewise.
1641 * m32r-stub.c: Likewise.
1642 * i386-stub.c: Likewise.
1643
7b8b6d6d
AS
16442012-03-08 Andreas Schwab <schwab@linux-m68k.org>
1645
007cafee
AS
1646 * m68klinux-tdep.c (m68k_linux_init_abi): Register
1647 linux_get_siginfo_type.
1648
7b8b6d6d
AS
1649 * m68klinux-nat.c: Include "gdb_proc_service.h".
1650 (PTRACE_GET_THREAD_AREA): Define.
1651 (ps_get_thread_area): New function.
1652
bba74b36
YQ
16532012-03-08 Yao Qi <yao@codesourcery.com>
1654
1655 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
1656 `xsnprintf'.
1657 (remote_query_attached): Likewise.
1658 (remote_static_tracepoint_marker_at): Likewise.
1659 (remote_set_permissions): Likewise.
1660 (remote_detach_1, extended_remote_attach_1): Likewise.
1661 (send_g_packet, remote_vkill): Likewise.
1662 (extended_remote_disable_randomization): Likewise.
1663 (remote_add_target_side_condition): Likewise.
1664 (remote_insert_breakpoint): Likewise.
1665 (remote_remove_breakpoint): Likewise.
1666 (remote_insert_watchpoint): Likewise.
1667 (remote_remove_watchpoint): Likewise.
1668 (remote_insert_hw_breakpoint): Likewise.
1669 (remote_insert_hw_breakpoint): Likewise.
1670 (remote_remove_hw_breakpoint): Likewise.
1671 (remote_download_command_source): Likewise.
1672 (remote_download_tracepoint): Likewise.
1673 (remote_download_trace_state_variable): Likewise.
1674 (remote_disable_tracepoint): Likewise.
1675 (remote_trace_set_readonly_regions): Likewise.
1676 (remote_get_tracepoint_status): Likewise.
1677 (remote_trace_find): Likewise.
1678 (remote_get_trace_state_variable_value): Likewise.
1679 (remote_set_disconnected_tracing): Likewise.
1680 (remote_set_circular_trace_buffer): Likewise.
1681 (remote_get_min_fast_tracepoint_insn_len): Likewise.
1682 (remote_use_agent): Likewise.
1683 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
1684 Update callers.
1685
9b224c5e
PA
16862012-03-07 Pedro Alves <palves@redhat.com>
1687
1688 * NEWS: Mention QProgramSignals.
1689 * inferior.h (update_signals_program_target): Declare.
1690 * infrun.c: (update_signals_program_target): New.
1691 (handle_command): Update the target of the new program signals
1692 array changes.
1693 * remote.c (PACKET_QProgramSignals): New enum.
1694 (last_program_signals_packet): New global.
1695 (remote_program_signals): New.
1696 (remote_start_remote): Update the target with the program signals
1697 list.
1698 (remote_protocol_features): Add entry for QPassSignals.
1699 (remote_open_1): Free anc clear last_program_signals_packet.
1700 (init_remote_ops): Install remote_program_signals.
1701 * target.c (update_current_target): Adjust.
1702 (target_program_signals): New.
1703 * target.h (struct target_ops) <to_program_signals>: New field.
1704 (target_program_signals): Declare.
1705
74c48cbb
PA
17062012-03-07 Pedro Alves <palves@redhat.com>
1707
1708 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
1709 extensions.
1710
0c13fc49
AS
17112012-03-07 Andreas Schwab <schwab@linux-m68k.org>
1712
1713 * m68klinux-nat.c (getregs_supplies): Make static.
1714 (getfpregs_supplies): Likewise.
1715 (have_ptrace_getregs): Likewise.
1716
1281d2a3
JB
17172012-03-06 Joel Brobecker <brobecker@adacore.com>
1718
1719 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
1720 in call to get_die_type_at_offset.
1721
2b03b41d
SS
17222012-03-06 Stan Shebs <stan@codesourcery.com>
1723
1724 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
1725 * mi/mi-cmd-disas.c: Ditto.
1726 * mi/mi-cmd-env.c: Ditto.
1727 * mi/mi-cmd-file.c: Ditto.
1728 * mi/mi-cmd-stack.c: Ditto.
1729 * mi/mi-cmd-target.c: Ditto.
1730 * mi/mi-cmd-var.c: Ditto.
1731 * mi/mi-cmds.c: Ditto.
1732 * mi/mi-cmds.h: Ditto.
1733 * mi/mi-console.c: Ditto.
1734 * mi/mi-getopt.c: Ditto.
1735 * mi/mi-getopt.h: Ditto.
1736 * mi/mi-interp.c: Ditto.
1737 * mi/mi-main.c: Ditto.
1738 * mi/mi-out.c: Ditto.
1739 * mi/mi-parse.c: Ditto.
1740 * mi/mi-parse.h: Ditto.
1741 * mi/mi-symbol-cmds.c: Ditto.
1742
1743 * mi/mi-getopt.h: Move mi_opt struct up.
1744 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
1745 return.
1746 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
1747
c988ad87
TT
17482012-03-06 Tom Tromey <tromey@redhat.com>
1749
1750 * proc-service.c (ps_pglobal_lookup): Set the current program
1751 space.
1752
1b7c1b10
PA
17532012-03-06 Pedro Alves <palves@redhat.com>
1754
1755 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
1756
3c182069
JB
17572012-03-05 Joel Brobecker <brobecker@adacore.com>
1758
1759 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
1760
2e794194
JK
17612012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1762
1763 Code cleanup.
1764 * common/linux-osdata.c (linux_common_core_of_thread): New function
1765 comment.
1766 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
1767 call by linux_common_core_of_thread.
1768 (linux_nat_core_of_thread_1): Remove.
1769 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
1770 * linux-thread-db.c: Include linux-osdata.h.
1771 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
1772 linux_common_core_of_thread.
1773
9f9f1f31
TT
17742012-03-05 Tom Tromey <tromey@redhat.com>
1775
1776 * value.c (value_primitive_field): Don't fetch contents for
1777 non-virtual bases.
1778
b7b189f3
TT
17792012-03-05 Tom Tromey <tromey@redhat.com>
1780
1781 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
1782
05b8a789 17832012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 1784
5538f557
JB
1785 * s390-nat.c: Include "gregset.h".
1786
75528772
JK
17872012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1788
1789 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
1790 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
1791 (libunwind_load): New variable so_error, use it for dlerror. Try to
1792 load also LIBUNWIND_SO_7.
1793
275418ae
PA
17942012-03-05 Pedro Alves <palves@redhat.com>
1795
1796 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
1797 is not NULL, and remove resulting dead code.
1798
5cbb9812
TS
17992012-03-05 Thomas Schwinge <thomas@codesourcery.com>
1800
1801 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
1802 prologue to sh_analyze_prologue.
1803 (sh_analyze_prologue): Make better use of such an upper limit, and
1804 generally be more cautious about accessing memory.
1805
541515ad
TT
18062012-03-05 Tom Tromey <tromey@redhat.com>
1807
1808 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
1809 _initialize_ia64_hpux_tdep.
1810
b4d36fb8
PA
18112012-03-05 Pedro Alves <palves@redhat.com>
1812
24490249
PA
1813 PR gdb/13766
1814
b4d36fb8
PA
1815 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
1816 the register state is clear, supply explicit zero, instead of
1817 marking the register unavailable.
1818
60c9a3c0
TG
18192012-03-05 Tristan Gingold <gingold@adacore.com>
1820
1821 * NEWS: Mention OpenVMS ia64 new target.
1822
696759ad
TG
18232012-03-05 Tristan Gingold <gingold@adacore.com>
1824
1825 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
1826 (ia64_unw_accessors, ia64_unw_rse_accessors)
1827 (ia64_libunwind_descr): Declare.
1828 * ia64-vms-tdep.c: New file.
1829 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
1830 (ia64_libunwind_descr): Make them public.
1831 * configure.tgt: Add ia64-*-*vms*.
1832 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
1833 (ALLDEPFILES): Add ia64-vms-tdep.c
1834
34864976
TG
18352012-03-05 Tristan Gingold <gingold@adacore.com>
1836
169081d0
TG
1837 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
1838 * remote.c (PACKET_qXfer_uib): New enum value.
1839 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
1840 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
1841 (_initialize_remote): Call add_packet_config_cmd for
1842 xfer:uib packet.
1843
18442012-03-05 Tristan Gingold <gingold@adacore.com>
1845
1846 * osabi.c (gdb_osabi_names): Add OpenVMS.
1847 (generic_elf_osabi_sniffer): Likewise.
1848 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 1849
6597b100
JK
18502012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1851
1852 Removed unused code.
1853 * libunwind-frame.c (libunwind_frame_unwind)
1854 (libunwind_frame_base_address): Remove.
1855 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
1856
87399aa1
YQ
18572012-03-04 Yao Qi <yao@codesourcery.com>
1858
1859 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
1860 remove trailing new line.
1861 (agent_run_command, agent_run_command): Add _ markup.
1862 (agent_capability_check): Likewise.
1863
abf1152a
JK
18642012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1865
1866 * breakpoint.c (set_condition_evaluation_mode): Set
1867 CONDITION_EVALUATION_MODE unconditionally.
1868
5808517f
YQ
18692012-03-03 Yao Qi <yao@codesourcery.com>
1870
1871 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
1872 * common/agent.h: Update declaration.
1873 * inf-child.c (inf_child_use_agent): New.
1874 (inf_child_can_use_agent): New.
1875 (inf_child_target): Initialize fields `to_use_agent'
1876 and `to_can_use_agent'.
1877 * agent.c (agent_new_objfile): New.
89b7509a 1878 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
1879 observer.
1880
1881 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1882 New.
89b7509a 1883 (linux_target_install_ops): Initialize field
5808517f
YQ
1884 `to_static_tracepoint_markers_by_strid'.
1885 * remote.c (free_current_marker): Move it to ...
1886 * tracepoint.c (free_current_marker): ... here. New.
1887 (cleanup_target_stop): New.
1888 * tracepoint.h: Declare free_current_marker.
1889 * NEWS: Add one entry about `info static-tracepoint-marker'.
1890
58b4daa5
YQ
18912012-03-03 Yao Qi <yao@codesourcery.com>
1892
1893 * common/agent.c (agent_loaded_p): New.
89b7509a 1894 (agent_look_up_symbols): New global.
58b4daa5
YQ
1895 * common/agent.h: Declare agent_loaded_p.
1896
8ffcbaaf
YQ
18972012-03-03 Yao Qi <yao@codesourcery.com>
1898
1899 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
1900 (agent_capability_check, agent_capability_invalidate): New.
1901 (symbol_list): New array element.
1902 * common/agent.h (enum agent_capa): New.
1903 * target.c (target_pre_inferior): Call agent_capability_invalidate.
1904
d1feda86
YQ
19052012-03-03 Yao Qi <yao@codesourcery.com>
1906
1907 * target.h (struct target_ops) <to_use_agent>: New field.
1908 (struct target_ops) <to_can_use_agent>: New field.
1909 (target_use_agent, target_can_use_agent): New macro.
1910 * target.c (update_current_target): Update.
1911 * remote.c: New enum `PACKET_QAgent'.
1912 (remote_protocol_features): Add a new element.
1913 (remote_use_agent, remote_can_use_agent): New.
1914 (init_remote_ops): Initialize field `can_use_agent' with
1915 remote_can_use_agent. Intiailize field `use_agent' with
1916 remote_use_agent.
1917 * common/agent.c (use_agent): New global.
1918 * common/agent.h: Declare it.
1919 * tracepoint.c (info_static_tracepoint_markers_command): Add
1920 comment.
1921 * Makefile.in (SFILES): Add common/agent.c and agent.c.
1922 (COMMON_OBS): Add common/agent.o and agent.o
1923 (common-agent.o): New rule.
1924 * agent.c: New.
1925
2fa291ac
YQ
19262012-03-03 Yao Qi <yao@codesourcery.com>
1927
1928 * common/agent.c: New.
1929 * common/agent.h: New.
1930 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
1931 AC_CHECK_HEADERS.
1932 * configure, configh.in: Regenerated.
1933
9fc05685
KB
19342012-03-02 Kevin Buettner <kevinb@redhat.com>
1935
1936 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
1937 unless it exists for this architecture.
1938
a5ee536b
JB
19392012-03-02 Joel Brobecker <brobecker@adacore.com>
1940
1941 * language.h (struct language_defn): New "method" la_read_var_value.
1942 * findvar.c: #include "language.h".
1943 (default_read_var_value): Renames read_var_value. Rewrite
1944 function description.
1945 (read_var_value): New function.
1946 * value.h (default_read_var_value): Add prototype.
1947 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
1948 New functions.
1949 (ada_language_defn): Add entry for la_read_var_value.
1950 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
1951 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
1952 language_defn structures to add entry for new la_read_var_value
1953 field.
1954
f59f708a
PA
19552012-03-02 Tom Tromey <tromey@redhat.com>
1956 Pedro Alves <palves@redhat.com>
1957
1958 PR breakpoints/13776:
1959 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
1960 breakpoints.
1961 (delete_longjmp_breakpoint_at_next_stop): New.
1962 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
1963 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
1964 before deleting the inferior. Add comments.
1965 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
1966 breakpoints immediately, but only on next stop. Move that code
1967 next to where we mark other breakpoints for deletion.
1968
44099a67
JB
19692012-03-02 Joel Brobecker <brobecker@adacore.com>
1970
1971 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
1972 marker.
1973 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
1974 violation.
1975
2a2ef594
PA
19762012-03-02 Pedro Alves <palves@redhat.com>
1977
1978 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
1979
b261e0c5
UW
19802012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
1981
1982 Fix -Wmissing-prototypes build.
1983 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
1984 * remote-sim.c (gdbsim_has_all_memory): Likewise.
1985 (gdbsim_has_memory): Likewise.
1986
a95babbf
YQ
19872012-03-02 Yao Qi <yao@codesourcery.com>
1988
1989 Fix -Wmissing-prototypes build.
1990 * charset.c (phony_iconv_open): Make static.
1991 (phony_iconv_close, phony_iconv): Likewise.
1992 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
1993 * i386-windows-nat.c (_initialize_i386_windows_nat): New
1994 prototype.
1995 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
1996 * ser-mingw.c (create_select_thread): Make static.
1997 * windows-termcap.c (tgetent): New prototype.
1998 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
1999
d603d4b3
JK
20002012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
2001
2002 Fix -Wmissing-prototypes build.
2003 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2004 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2005 (_initialize_loadable): New prototypes.
2006
7fb3ad1f
DE
20072012-03-02 Doug Evans <dje@google.com>
2008
2009 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2010 abbrev table, read_comp_unit will do it.
2011
693be288
JK
20122012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2013
2014 Fix -Wmissing-prototypes build.
2015 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
2016 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
2017 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
2018 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
2019 (_initialize_arm_symbian_tdep): New prototype.
2020 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
2021 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
2022 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
2023 static.
2024 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
2025 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
2026 prototype.
2027 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
2028 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
2029 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
2030 static.
2031 * moxie-tdep.c (moxie_process_record): Likewise.
2032 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
2033 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
2034 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
2035 (_initialize_rl78_tdep): New prototype.
2036 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
2037 (_initialize_rx_tdep): New prototype.
2038 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
2039 (_initialize_darwin_solib): New prototype.
2040 * solib-spu.c: Include solib-spu.h.
2041 (_initialize_spu_solib): New prototype.
2042 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
2043 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
2044 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
2045 (tic6x_software_single_step): Make it static.
2046 (_initialize_tic6x_tdep): New prototype.
2047
638234e5
JK
20482012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2049
2050 Fix -Wmissing-prototypes build.
2051 * cris-tdep.c (cris_can_use_hardware_watchpoint)
2052 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
2053
f4a6f16d
JK
20542012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2055
2056 Fix -Wmissing-prototypes build.
2057 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
2058 (frv_have_stopped_data_address): Remove.
2059
04dcf5fa
JK
20602012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2061
2062 Fix -Wmissing-prototypes build.
2063 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
2064 * sh-tdep.c: Include sh64-tdep.h.
2065 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
2066 * sh64-tdep.c: Include sh64-tdep.h.
2067 * sh64-tdep.h: New file.
2068
19080931
MR
20692012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2070
2071 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
2072
9aac7884
MR
20732012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2074
2075 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
2076 sp_regnum once the gdbarch_init_osabi hook has been called.
2077
a385295e
MR
20782012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2079
2080 * mips-tdep.c (mips32_bc1_pc): New function.
2081 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
2082 BPOSGE32 and BPOSGE64 instructions.
2083 (deal_with_atomic_sequence): Likewise.
2084 (mips32_instruction_has_delay_slot): Likewise.
2085
1faeff08
MR
20862012-03-01 Maciej W. Rozycki <macro@mips.com>
2087 Chris Dearman <chris@mips.com>
2088 Maciej W. Rozycki <macro@codesourcery.com>
2089 Joseph Myers <joseph@codesourcery.com>
2090
2091 * features/mips-dsp.xml: New file.
2092 * features/mips64-dsp.xml: New file.
2093 * features/mips-dsp-linux.xml: New file.
2094 * features/mips64-dsp-linux.xml: New file.
2095 * features/Makefile (WHICH): Add mips-dsp-linux and
2096 mips64-dsp-linux.
2097 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
2098 * features/mips-dsp-linux.c: New file.
2099 * features/mips64-dsp-linux.c: New file.
2100 * regformats/mips-dsp-linux.dat: New file.
2101 * regformats/mips64-dsp-linux.dat: New file.
2102 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
2103 registers.
2104 (mips64_linux_register_addr): Likewise.
2105 (mips64_linux_regsets_fetch_registers): Likewise.
2106 (mips64_linux_regsets_store_registers): Likewise.
2107 (mips64_linux_fetch_registers): Update call to
2108 mips64_linux_regsets_fetch_registers.
2109 (mips64_linux_store_registers): Update call to
2110 mips64_linux_regsets_store_registers.
2111 (mips_linux_read_description): Probe for DSP registers.
2112 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
2113 and initialize_tdesc_mips64_dsp_linux.
2114 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
2115 Remove padding of no longer used embedded register slots.
2116 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
2117 (MIPS_RESTART_REGNUM): Redefine enum value.
2118 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
2119 strings.
2120 (mips_tx39_reg_names): Likewise.
2121 (mips_linux_reg_names): New array of register names for Linux
2122 targets.
2123 (mips_register_name): Check for a null pointer in
2124 mips_processor_reg_names and return an empty string.
2125 (mips_register_type): Exclude embedded registers for the IRIX
2126 and Linux ABIs.
2127 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
2128 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
2129 DSP registers.
2130 (mips_stab_reg_to_regnum): Handle DSP accumulators.
2131 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
2132 (mips_gdbarch_init): Likewise. Initialize internal register
2133 indices for the Linux ABI. Use dynamic numbers to refer to
2134 registers, as applicable, while parsing the target description.
2135 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
2136
263689d8
JB
21372012-03-01 Joel Brobecker <brobecker@adacore.com>
2138
2139 * frame.h (read_frame_register_unsigned): Fix typo in function
2140 description.
2141
f3b4f45c
PA
21422012-03-01 Pedro Alves <palves@redhat.com>
2143
2144 * jit-reader.in [!__cplusplus]
2145 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
2146
b03a2011
PA
21472012-03-01 Pedro Alves <palves@redhat.com>
2148
2149 * configure.ac (build_warnings): Add -Wmissing-prototypes.
2150 * configure: Regenerate.
2151
70221824
PA
21522012-03-01 Pedro Alves <palves@redhat.com>
2153
2154 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
2155 * breakpoint.c (create_exception_master_breakpoint, trace_command)
2156 (ftrace_command, strace_command): Make static.
2157 * d-lang.c (_initialize_d_language): Declare.
2158 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
2159 * dwarf2loc.c (_initialize_dwarf2loc):
2160 * dwarf2read.c (process_psymtab_comp_unit): Make static.
2161 * exec.c (exec_get_section_table): Make static.
2162 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
2163 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
2164 * inferior.c (remove_inferior_command, add_inferior_command)
2165 (clone_inferior_command): Make static.
2166 * linux-nat.c (linux_nat_thread_address_space)
2167 (linux_nat_core_of_thread): Make static.
2168 * linux-tdep.c (_initialize_linux_tdep): Declare.
2169 * objc-lang.c (_initialize_objc_lang): Declare.
2170 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
2171 Make static.
2172 (_initialize_opencl_language): Declare.
2173 * record.c (_initialize_record): Declare.
2174 * remote.c (demand_private_info, remote_get_tib_address)
2175 (remote_supports_cond_tracepoints)
2176 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
2177 Make static.
2178 * skip.c (_initialize_step_skip): Declare.
2179 * symtab.c (skip_prologue_using_lineinfo): Make static.
2180 * tracepoint.c (delete_trace_state_variable)
2181 (trace_variable_command, delete_trace_variable_command)
2182 (get_uploaded_tsv, find_matching_tracepoint_location)
2183 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
2184 Make static.
2185 * value.c (pack_unsigned_long): Make static.
2186 * varobj.c (varobj_ensure_python_env): Make static.
2187 * windows-tdep.c (_initialize_windows_tdep): Declare.
2188 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
2189
33fbcbee
PA
21902012-03-01 Pedro Alves <palves@redhat.com>
2191
2192 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
2193 gdbarch parameter.
2194 (linux_init_abi): Install it as has_shared_address_space gdbarch
2195 callback.
2196
44d0cd3b
PA
21972012-03-01 Pedro Alves <palves@redhat.com>
2198
2199 * observer.c (observer_test_first_notification_function)
2200 (observer_test_second_notification_function)
2201 (observer_test_third_notification_function): Add declarations.
2202
ed01b82c
PA
22032012-03-01 Pedro Alves <palves@redhat.com>
2204
2205 * common/signals.c (default_target_signal_to_host)
2206 (default_target_signal_from_host): Move ...
2207 * arch-utils.c: ... here.
2208 * arch-utils.h (default_target_signal_to_host)
2209 (default_target_signal_from_host): Declare.
2210
2211 * common/signals.c (target_signal_from_command): Move ...
2212 * infrun.c: ... here.
2213 * inferior.h (target_signal_from_command): Declare.
2214 * target.h (target_signal_from_command)
2215 (default_target_signal_from_host, default_target_signal_to_host):
2216 Delete declarations.
2217
2218 * common/signals.c (_initialize_signals): Delete.
2219
c9b87335
PA
22202012-03-01 Pedro Alves <palves@redhat.com>
2221
2222 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
2223 both __cplusplus and !__cplusplus.
2224
9340a6c0
PA
22252012-03-01 Pedro Alves <palves@redhat.com>
2226
2227 * psymtab.c (find_and_open_source): Delete declaration.
2228 * source.c (find_and_open_source): Move comment ...
2229 * source.h (find_and_open_source): ... to this new declaration.
2230
e451c4a1
PA
22312012-03-01 Pedro Alves <palves@redhat.com>
2232
2233 * inline-frame.c: Include inline-frame.h.
2234
983fb104
PA
22352012-03-01 Pedro Alves <palves@redhat.com>
2236
2237 * tui/tui-data.c (set_gen_win_origin): Delete.
2238 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
2239 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
2240
5fbce5df
PA
22412012-03-01 Pedro Alves <palves@redhat.com>
2242
2243 * remote.c (encode_actions): Delete declaration.
2244 * tracepoint.c (encode_actions): Make extern.
2245 * tracepoint.h (encode_actions): Declare.
2246
49a8461d
PA
22472012-03-01 Pedro Alves <palves@redhat.com>
2248
2249 * python/py-breakpoint.c: Include python.h.
2250 * python/py-continueevent.c (create_continue_event_object): Make
2251 static.
2252 * python/py-lazy-string.c (stpy_get_type): Make static.
2253 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2254 Make static.
2255 * python/py-utils.c (unicode_to_target_python_string): Make
2256 static.
2257 * python/py-value.c: Include python.h.
2258
9079102f
PA
22592012-03-01 Pedro Alves <palves@redhat.com>
2260
2261 * inferior.c (delete_threads_of_inferior): Delete.
2262
a298c5e8
PA
22632012-03-01 Pedro Alves <palves@redhat.com>
2264
2265 Import fallback definitions from glibc.
2266
2267 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
2268 ps_prochandle): Forward declare.
2269 (ps_err_e): Use glibc's comments.
2270 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
2271 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2272 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
2273 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
2274 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
2275 (struct ps_prochandle): Adjust comment.
2276
e3084549
PA
22772012-03-01 Pedro Alves <palves@redhat.com>
2278
2279 * ada-lang.c (ada_modulus_from_name): Delete.
2280 * ada-lex.l (lexer_init): Make static.
2281
ad5f7d6e
PA
22822012-03-01 Pedro Alves <palves@redhat.com>
2283
2284 PR gdb/13767
2285
2286 * frame.c (read_frame_register_unsigned): New.
2287 * frame.h (read_frame_register_unsigned): Declare.
2288 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
2289 Handle it.
2290 (print_i387_control_word): New parameter `control_p'. Handle it.
2291 (i387_print_float_info): Handle unavailable float registers.
2292
e0a4d108
KS
22932012-03-01 Keith Seitz <keiths@redhat.com>
2294
2295 * linespec.c (decode_line_2): Sort the list of methods
2296 alphabetically before presenting the user with a selection
2297 menu.
2298
122d1940
DE
22992012-03-01 Doug Evans <dje@google.com>
2300
2301 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
2302 has_namespace_info.
2303 (dwarf2_read_abbrevs): Remove corresponding initialization.
2304
7d74f244
DE
23052012-03-01 Scott J. Goldman <scottjg@vmware.com>
2306
2307 * NEWS: Mention new python command class gdb.COMMAND_USER.
2308 * cli/cli-cmds.c (show_user): Print error when used on a python
2309 command.
2310 (init_cli_cmds): Update documentation strings for "show user" and
2311 "set/show max-user-call-depth" to clarify that it does not apply to
2312 python commands.
2313 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
2314 error check.
2315 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
2316 gdb python api.
2317 * top.c (execute_command): Only execute a user-defined command as a
2318 legacy macro if c->user_commands is set.
2319
e88acd96
TT
23202012-03-01 Tom Tromey <tromey@redhat.com>
2321
2322 * valprint.h (struct generic_val_print_decorations): New.
2323 (generic_val_print): Declare.
2324 * valprint.c (generic_val_print): New function.
2325 * p-valprint.c (p_decorations): New global.
2326 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
2327 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
2328 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
2329 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
2330 * m2-valprint.c (m2_decorations): New global.
2331 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
2332 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
2333 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
2334 TYPE_CODE_ERROR>: Call generic_val_print.
2335 * f-valprint.c (f_decorations): New global.
2336 (f_val_print): Use print_function_pointer_address.
2337 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
2338 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
2339 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
2340 generic_val_print.
2341 * c-valprint.c (c_decorations): New global.
2342 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
2343 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
2344 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
2345 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
2346 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
2347 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
2348 case.
2349
d3eab38a
TT
23502012-03-01 Tom Tromey <tromey@redhat.com>
2351
2352 * valprint.c (val_print): Update.
2353 * p-valprint (pascal_val_print): Return void.
2354 * p-lang.h (pascal_val_print): Return void.
2355 * m2-valprint.c (m2_val_print): Return void.
2356 * m2-lang.h (m2_val_print): Return void.
2357 * language.h (struct language_defn) <la_val_print>: Return void.
2358 * language.c (unk_lang_val_print): Return void.
2359 * jv-valprint.c (java_val_print): Return void.
2360 * jv-lang.h (java_val_print): Return void.
2361 * f-valprint.c (f_val_print): Return void.
2362 * f-lang.h (f_val_print): Return void.
2363 * d-valprint.c (d_val_print): Return void.
2364 (dynamic_array_type): Update.
2365 * d-lang.h (d_val_print): Return void.
2366 * c-valprint.c (c_val_print): Return void.
2367 * c-lang.h (c_val_print): Return void.
2368 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
2369 void.
2370 * ada-lang.h (ada_val_print): Return void.
2371
35c0084b
TT
23722012-03-01 Tom Tromey <tromey@redhat.com>
2373
2374 * value.h (val_print): Return void.
2375 * valprint.c (val_print): Return void.
2376
a1f5dd1b
TT
23772012-03-01 Tom Tromey <tromey@redhat.com>
2378
2379 * value.h (common_val_print): Return void.
2380 * valprint.c (common_val_print): Return void.
2381
8e069a98
TT
23822012-03-01 Tom Tromey <tromey@redhat.com>
2383
2384 * value.h (value_print): Return void.
2385 * valprint.c (value_print): Return void.
2386 * p-valprint.c (pascal_value_print): Return void.
2387 * p-lang.h (pascal_value_print): Return void.
2388 * language.h (struct language_defn) <la_value_print>: Return
2389 void.
2390 * language.c (unk_lang_value_print): Return void.
2391 * jv-valprint.c (java_value_print): Return void.
2392 * jv-lang.h (java_value_print): Return void.
2393 * f-valprint.c (c_value_print): Don't declare.
2394 Include c-lang.h.
2395 * c-valprint.c (c_value_print): Return void.
2396 * c-lang.h (c_value_print): Return void.
2397 * ada-valprint.c (ada_value_print): Return void.
2398 * ada-lang.h (ada_value_print): Return void.
2399
be335936
TT
24002012-03-01 Tom Tromey <tromey@redhat.com>
2401
2402 * value.c (value_primitive_field): Handle virtual base classes.
2403
b0db66a7
TT
24042012-03-01 Tom Tromey <tromey@redhat.com>
2405
2406 * gdbtypes.h (struct vbase): Remove.
2407
132c57b4
TT
24082012-03-01 Tom Tromey <tromey@redhat.com>
2409
2410 * c-valprint.c (print_function_pointer_address): Move...
2411 * valprint.c: ... here. Make non-static.
2412 * m2-valprint.c (print_function_pointer_address): Remove.
2413 * valprint.h (print_function_pointer_address): Declare.
2414
e41eec66
JB
24152012-03-01 Joel Brobecker <brobecker@adacore.com>
2416
2417 * NEWS: Document the fact that one can provide a condition when
2418 creating an Ada exception catchpoint.
2419
19c37f24
TT
24202012-03-01 Tom Tromey <tromey@redhat.com>
2421
2422 * valprint.c (val_print_type_code_flags): Fix placement of
2423 trailing brace.
2424
f0fed3a3
JB
24252012-03-01 Joel Brobecker <brobecker@adacore.com>
2426
2427 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
2428 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
2429 environment variable before calling update-copyright.
2430
8ba85d85
JB
24312012-03-01 Joel Brobecker <brobecker@adacore.com>
2432
2433 * gnulib/extra/update-copyright: Update to the latest from
2434 gnulib's git repository.
2435 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
2436 variable to 2 instead of 1.
2437
8219b1e8
JB
24382012-02-29 Joel Brobecker <brobecker@adacore.com>
2439
2440 * varobj.c (c_value_of_variable): Remove dead code.
2441
718cb7da
JB
24422012-02-29 Joel Brobecker <brobecker@adacore.com>
2443
2444 * ada-lex.p (processId): Do not modify already encoded IDs.
2445 Update function documentation.
2446
739593e0
JB
24472012-02-29 Joel Brobecker <brobecker@adacore.com>
2448
2449 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
2450 "name" with "struct symbol *name_sym".
2451 * ada-exp.y (write_var_or_type): Update call to
2452 ada_find_renaming_symbol.
2453 "name" with "struct symbol *name_sym". Adjust Implementation
2454 accordingly. Adjust the function documentation.
2455
852dff6c
JB
24562012-02-29 Joel Brobecker <brobecker@adacore.com>
2457
2458 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
2459 * ada-lang.c (ada_find_any_type): Add advance declaration.
2460 Make static. Replace ada_find_any_symbol by
2461 ada_find_any_type_symbol.
2462 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
2463 Improve function description. Make static.
2464 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
2465 Replace ada_find_any_symbol by ada_find_any_type_symbol.
2466
1b611343
JB
24672012-02-29 Joel Brobecker <brobecker@adacore.com>
2468
2469 * ada-lang.c (struct tag_args): Delete.
2470 (ada_get_tsd_type): Function body moved up in source file.
2471 (ada_tag_name_1, ada_tag_name_2): Delete.
2472 (ada_get_tsd_from_tag): New function.
2473 (ada_tag_name_from_tsd): New function.
2474 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
2475 to determine the tag name.
2476
41246937
JB
24772012-02-29 Joel Brobecker <brobecker@adacore.com>
2478
2479 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
2480 declaration.
2481 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
2482 function.
2483
ffde82bf
JB
24842012-02-29 Joel Brobecker <brobecker@adacore.com>
2485
2486 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
2487
2ad01556
JB
24882012-02-29 Joel Brobecker <brobecker@adacore.com>
2489
2490 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
2491 full searches.
2492
99b1c762
JB
24932012-02-29 Joel Brobecker <brobecker@adacore.com>
2494
2495 * ada-lang.c (constrained_packed_array_type): If there is a
2496 parallel XA type, use it to determine the array index type.
2497
2d4a02ee
JB
24982012-02-29 Joel Brobecker <brobecker@adacore.com>
2499
2500 * ada-valprint.c (ada_val_print_1): If our value is a reference
2501 to an array descriptor, dereference it before converting it
2502 to a simple array.
2503
c48db5ca
JB
25042012-02-29 Joel Brobecker <brobecker@adacore.com>
2505
2506 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
2507 creating fixed value.
2508 (ada_value_ind, ada_coerce_ref, assign_component)
2509 (ada_evaluate_subexp): Remove call to unwrap_value before
2510 call to ada_to_fixed_value.
2511
2e6fda7d
JB
25122012-02-29 Joel Brobecker <brobecker@adacore.com>
2513
2514 * ada-lang.c (to_fixed_array_type): Set result's type name.
2515
5845583d
JB
25162012-02-29 Joel Brobecker <brobecker@adacore.com>
2517
2518 * ada-lang.c (catch_ada_exception_command_split): Add new
2519 argument cond_string. Add support for condition at end of
2520 "catch exception" commands.
2521 (ada_decode_exception_location): Add new argument cond_string.
2522 Update call to catch_ada_exception_command_split.
2523 (create_ada_exception_catchpoint): Add new argument cond_string.
2524 Set the breakpoint condition if needed.
2525 (catch_ada_exception_command): Update call to
2526 ada_decode_exception_location.
2527 (ada_decode_assert_location): Add function documentation.
2528 Add support for condition at end of "catch assert" command.
2529 (catch_assert_command): Update calls to ada_decode_assert_location
2530 and create_ada_exception_catchpoint.
2531
9a7f938f
JK
25322012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2533
2534 Fix disp-step-syscall.exp: fork: single step over fork.
2535 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
2536 (i386_linux_get_syscall_number_from_regcache): ... here, new function
2537 comment, change parameters gdbarch and ptid to regcache. Remove
2538 parameter regcache, initialize gdbarch from regcache here.
2539 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
2540 New functions.
2541 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
2542 instead.
2543 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
2544 'syscall'. Make the 'int' check more strict.
2545
ffdf6de5
JK
25462012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2547
2548 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
2549 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
2550 (i386_linux_intx80_sysenter_syscall_record): ... here.
2551 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
2552 Use the renamed function name.
2553
c70a6932
JK
25542012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
2555
2556 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
2557 * breakpoint.c (until_break_command): Likewise.
2558 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
2559 * infcall.c (call_function_by_hand): Likewise.
2560 * infcmd.c (finish_forward): Likewise.
2561 * infrun.c (insert_exception_resume_breakpoint): Likewise.
2562
05b8a789 25632012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 2564
d4cd3da9
JB
2565 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
2566 avoid variable assignments inside condition.
2567
6425366c
JK
25682012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2569
2570 Fix static analysis issue found by cppcheck.
2571 * microblaze-tdep.c (microblaze_extract_return_value): Fix
2572 uninitialized BUF for size 2.
2573
c8cef75f
MR
25742012-02-27 Chris Dearman <chris@mips.com>
2575 Nathan Froyd <froydnj@codesourcery.com>
2576 Maciej W. Rozycki <macro@codesourcery.com>
2577
2578 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
2579 (mips16_instruction_has_delay_slot): Likewise.
2580 (mips_segment_boundary): Likewise.
2581 (mips_adjust_breakpoint_address): Likewise.
2582 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
2583
473347ad
MR
25842012-02-27 Maciej W. Rozycki <macro@mips.com>
2585 Maciej W. Rozycki <macro@codesourcery.com>
2586
2587 * infrun.c (handle_inferior_event): Don't proceed through
2588 shared library trampolines if stepping at the machine
2589 instruction level.
2590
cf233303
MR
25912012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
2592
2593 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
2594 too.
2595
cb2cf4ce
TS
25962012-02-27 Thomas Schwinge <thomas@codesourcery.com>
2597
2598 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
2599 (sh_stub_unwind_sniffer): New functions.
2600 (sh_stub_unwind): New variable.
2601 (sh_gdbarch_init): Wire everything.
2602
644cebc9
PA
26032012-02-27 Pedro Alves <palves@redhat.com>
2604
2605 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
2606 (linux_nat_post_attach_wait): Adjust to use
2607 linux_proc_pid_is_stopped.
2608 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
2609 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
2610 based on pid_is_stopped from both linux-nat.c and
2611 gdbserver/linux-low.c, and renamed.
2612
283002cf
MR
26132012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2614
2615 * remote.c (remote_watchpoint_addr_within_range): New function.
2616 (init_remote_ops): Use it.
2617
9b3e86b1
MR
26182012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2619
2620 * target.h (target_watchpoint_addr_within_range): Document macro.
2621
e36930bb
PA
26222012-02-24 Pedro Alves <palves@redhat.com>
2623
2624 * stack.c (set_last_displayed_sal): Issue internal_error instead
2625 of warning, and issue it after clearing the last displayed sal.
2626
883bc8d1
PA
26272012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2628 Pedro Alves <palves@redhat.com>
2629
2630 * breakpoint.c (until_break_command): Install breakpoints after
2631 all frame manipulations.
2632
b775012e
LM
26332012-02-24 Luis Machado <lgustavo@codesourcery.com>
2634
2635 * remote.c (remote_supports_cond_breakpoints): New forward
2636 declaration.
2637 (remote_add_target_side_condition): New function.
2638 (remote_insert_breakpoint): Add target-side breakpoint
2639 conditional if supported.
2640 (remote_insert_hw_breakpoint): Likewise.
2641 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
2642 hook.
2643
2644 * target.c (update_current_target): Inherit
2645 to_supports_evaluation_of_breakpoint_conditions.
2646 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
2647
2648 * target.h (struct target_ops)
2649 <to_supports_evaluation_of_breakpoint_conditions>: New field.
2650 (target_supports_evaluation_of_breakpoint_conditions): New #define.
2651
2652 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
2653 (condition_evaluation_both, condition_evaluation_auto,
2654 condition_evaluation_host, condition_evaluation_target,
2655 condition_evaluation_enums, condition_evaluation_mode_1,
2656 condition_evaluation_mode): New static globals.
2657 (translate_condition_evaluation_mode): New function.
2658 (breakpoint_condition_evaluation_mode): New function.
2659 (gdb_evaluates_breakpoint_condition_p): New function.
2660 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
2661 (mark_breakpoint_modified): New function.
2662 (mark_breakpoint_location_modified): New function.
2663 (set_condition_evaluation_mode): New function.
2664 (show_condition_evaluation_mode): New function.
2665 (bp_location_compare_addrs): New function.
2666 (get_first_location_gte_addr): New helper function.
2667 (set_breakpoint_condition): Free condition bytecode if locations
2668 has become unconditional. Call mark_breakpoint_modified (...).
2669 (condition_command): Call update_global_location_list (1) for
2670 breakpoints.
2671 (breakpoint_xfer_memory): Use is_breakpoint (...).
2672 (is_breakpoint): New function.
2673 (parse_cond_to_aexpr): New function.
2674 (build_target_condition_list): New function.
2675 (insert_bp_location): Handle target-side conditional
2676 breakpoints and call build_target_condition_list (...).
2677 (update_inserted_breakpoint_locations): New function.
2678 (insert_breakpoint_locations): Handle target-side conditional
2679 breakpoints.
2680 (bpstat_check_breakpoint_conditions): Add comment.
2681 (bp_condition_evaluator): New function.
2682 (bp_location_condition_evaluator): New function.
2683 (print_breakpoint_location): Print information on where the condition
2684 will be evaluated.
2685 (print_one_breakpoint_location): Likewise.
2686 (init_bp_location): Call mark_breakpoint_location_modified (...) for
2687 breakpoint location.
2688 (force_breakpoint_reinsertion): New functions.
2689 (update_global_location_list): Handle target-side breakpoint
2690 conditions.
2691 Reinsert locations that are already inserted if conditions have
2692 changed.
2693 (bp_location_dtor): Free agent expression bytecode.
2694 (disable_breakpoint): Call mark_breakpoint_modified (...).
2695 Call update_global_location_list (...) with parameter 1 for breakpoints.
2696 (disable_command): Call mark_breakpoint_location_modified (...).
2697 Call update_global_location_list (...) with parameter 1 for breakpoints.
2698 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
2699 (enable_command): mark_breakpoint_location_modified (...).
2700 (_initialize_breakpoint): Update documentation and add
2701 condition-evaluation breakpoint subcommand.
2702
2703 * breakpoint.h: Include ax.h.
2704 (condition_list): New data structure.
2705 (condition_status): New enum.
2706 (bp_target_info) <cond_list>: New field.
2707 (bp_location) <condition_changed, cond_bytecode>: New fields.
2708 (is_breakpoint): New prototype.
2709
3788aec7
LM
27102012-02-24 Luis Machado <lgustavo@codesourcery.com>
2711
2712 * remote.c (remote_state) <cond_breakpoints>: New field.
2713 (PACKET_ConditionalBreakpoints): New enum.
2714 (remote_cond_breakpoint_feature): New function.
2715 (remote_protocol_features): Add new ConditionalBreakpoints entry.
2716 (remote_supports_cond_breakpoints): New function.
2717 (_initialize_remote): Add new packet configuration for
2718 target-side conditional breakpoints.
2719
72895ff6
LM
27202012-02-24 Luis Machado <lgustavo@codesourcery.com>
2721
2722 * NEWS: Mention target-side conditional breakpoint support,
2723 new condition-evaluation breakpoint subcommand and remote
2724 packet extensions.
2725
dea2aa5f
LM
27262012-02-24 Luis Machado <lgustavo@codesourcery.com>
2727
2728 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
2729 number.
2730
8a8bc27f
TS
27312012-02-24 Thomas Schwinge <thomas@codesourcery.com>
2732
2733 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
2734 (after_prologue): Remove.
2735
6b446fdf
TT
27362012-02-23 Tom Tromey <tromey@redhat.com>
2737
2738 * jv-valprint.c (java_val_print): Remove dead code.
2739
ef59abfb
TG
27402012-02-23 Tristan Gingold <gingold@adacore.com>
2741
2742 * ada-tasks.c (struct ada_tasks_inferior_data): Add
2743 known_tasks_element and known_tasks_length fields.
2744 (read_known_tasks_array): Change argument type. Use pointer type
2745 and number of elements from DATA. Adjust.
2746 (read_known_tasks_list): Likewise.
2747 (get_known_tasks_addr): Remove.
2748 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
2749 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
2750 type and array length. Merge former get_known_tasks_addr code.
2751
def166f6
JK
27522012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 PR backtrace/13716
2755 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
2756 it after set_momentary_breakpoint.
2757
aeaa2474
SA
27582012-02-22 Sterling Augustine <saugustine@google.com>
2759
2760 PR 13689:
2761 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
2762
feea76c2
GB
27632012-02-22 Gary Benson <gbenson@redhat.com>
2764
2765 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
2766 (find_slot_in_mapped_hash): Likewise.
2767
f06e05e0
JK
27682012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
2769
2770 PR build/13638
2771 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
2772 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
2773 * configure: Regenerate.
2774
b54a8fd7
PA
27752012-02-21 Tristan Gingold <gingold@adacore.com>
2776 Pedro Alves <palves@redhat.com>
2777
2778 * ia64-tdep.c: Do not include libunwind-ia64.h.
2779 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
2780 Include libunwind-ia64.h instead of libunwind.h.
2781 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
2782 for libunwind.h existence.
2783 * configure, config.in: Regenerate.
2784
dfcee124
AG
27852012-02-21 Anton Gorenkov <xgsa@yandex.ru>
2786
2787 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
2788 instead of value_rtti_target_type.
2789 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
2790 instead of value_rtti_target_type.
2791 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
2792 value_rtti_target_type.
2793 * valops.c (value_ind): Extract function readjust_indirect_value_type.
2794 (value_rtti_target_type): Rename to ...
2795 (value_rtti_indirect_type): ... here and make it indirect. Update
2796 function comment.
2797 * value.c (readjust_indirect_value_type): New function.
2798 (coerce_ref): Support for enclosing type setting for references
2799 with readjust_indirect_value_type.
2800 * value.h (readjust_value_type): New declaration.
2801 (value_rtti_target_type): Rename to ...
2802 (value_rtti_indirect_type): ... here.
2803
02568277
AG
28042012-02-21 Anton Gorenkov <xgsa@yandex.ru>
2805
2806 * MAINTAINERS (Write After Approval): Add myself to the list.
2807
10c07b7e 28082012-02-20 Doug Evans <dje@google.com>
28ee876a 2809
d82ea6a8
DE
2810 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
2811 Rename objfile_p_char parameter to objfilep.
2812 (build_objfile_section_table): Result is now void. All callers
2813 updated.
2814 * objfiles.h (struct objfile): Tweak comments, whitespace.
2815 (build_objfile_section_table): Update.
2816
28ee876a
DE
2817 * elfread.c (elf_symfile_segments): Fix warning text.
2818
24c79950
TT
28192012-02-20 Tom Tromey <tromey@redhat.com>
2820
2821 PR gdb/13498:
2822 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
2823 particular set of file names once.
2824 (dw2_map_symbol_filenames): Likewise.
2825
3a9b40b6
JK
28262012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2827
2828 Code cleanup.
2829 * main.c (write_files): Remove the declaration.
2830 (external_editor_command): Move the declaration ...
2831 [GDBTK] (external_editor_command): ... here. Fix the comment.
2832
4d0795ca
TT
28332012-02-20 Tom Tromey <tromey@redhat.com>
2834
2835 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
2836 extraneous block.
2837
637fd620
TG
28382012-02-20 Tristan Gingold <gingold@adacore.com>
2839
2840 * darwin-nat.h (enum darwin_msg_state): Add comments.
2841
6f124894
TG
28422012-02-20 Tristan Gingold <gingold@adacore.com>
2843
2844 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
2845 value.
2846
2e6e3d9c
JB
28472012-20-18 Joel Brobecker <brobecker@adacore.com>
2848
2849 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
2850 between function description and implementation.
2851
2e8265fd
TT
28522012-02-17 Tom Tromey <tromey@redhat.com>
2853
2854 PR python/12070:
2855 * python/py-event.c (event_object_getset): New global.
2856 (event_object_type): Reference it.
2857 * python/py-type.c (field_object_getset): New global.
2858 (field_object_type): Reference it.
2859 * python/python-internal.h (gdb_py_generic_dict): Declare.
2860 * python/py-utils.c (gdb_py_generic_dict): New function.
2861
8544a150 28622012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 2863
8544a150 2864 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 2865
ca193e27
TS
28662012-02-17 Thomas Schwinge <thomas@codesourcery.com>
2867
2868 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
2869 TYPE_CALLING_CONVENTION annotation.
2870
e5586183
KB
28712012-02-16 Kevin Buettner <kevinb@redhat.com>
2872
2873 * MAINTAINERS: Add rx to target ISA section.
2874 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
2875 (ALLDEPFILES): Add rx-tdep.c.
2876
7dcd53a0
TT
28772012-02-16 Tom Tromey <tromey@redhat.com>
2878
2879 * symfile.c (symbol_file_add_main_1): Use inferior's
2880 symfile_flags.
2881 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
2882 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
2883 inferior.
2884 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
2885 inferior.
2886 (follow_exec): Use inferior's symfile_flags.
2887 * inferior.h (struct inferior) <symfile_flags>: New field.
2888
ddd60447
MF
28892012-02-16 Mike Frysinger <vapier@gentoo.org>
2890
2891 PR gdb/9734:
2892 * remote-sim.c (gdbsim_create_inferior): Call error() when
2893 sim_create_inferior() fails.
2894
b0d32fb6
TG
28952012-02-16 Josh Matthews <josh@joshmatthews.net>
2896
2897 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
2898
9addecb9
TT
28992012-02-16 Tom Tromey <tromey@redhat.com>
2900
2901 PR c++/13653:
2902 * thread.c (struct current_thread_cleanup) <was_removable>: New
2903 field.
2904 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
2905 (make_cleanup_restore_current_thread): Initialize new field.
2906
a58b110a
KB
29072012-02-15 Kevin Buettner <kevinb@redhat.com>
2908
2909 * MAINTAINERS: Add rl78 to target ISA section.
2910 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
2911 (ALLDEPFILES): Add rl78-tdep.c.
2912 * NEWS: Mention rl78 as a new target.
2913
4cb6da1c
AR
29142012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
2915
2916 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
2917 data.
2918 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
2919
3af2590d
TT
29202012-02-15 Tom Tromey <tromey@redhat.com>
2921
2922 PR gdb/12659:
2923 * infcmd.c (registers_info): Print just the current register's
2924 name.
2925
c6910659
TT
29262012-02-15 Tom Tromey <tromey@redhat.com>
2927
2928 * python/py-symbol.c (sympy_value): Use _().
2929
7cee1e54
PA
29302012-02-15 Pedro Alves <palves@redhat.com>
2931
2932 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
2933 output to be like native targets'.
2934 (remote_pid_to_str): Special case the null ptid.
2935
816338b5
SS
29362012-02-14 Stan Shebs <stan@codesourcery.com>
2937
2938 * NEWS: Mention enable count command.
2939 * breakpoint.h (struct breakpoint): New field enable_count.
2940 * breakpoint.c (enable_breakpoint_disp): Add count argument.
2941 (enable_breakpoint): Add arg to call.
2942 (struct disp_data): New struct.
2943 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
2944 (do_map_enable_once_breakpoint): Create a struct and pass it.
2945 (do_map_enable_delete_breakpoint): Ditto.
2946 (do_map_enable_count_breakpoint): New function.
2947 (enable_count_command): New function.
2948 (bpstat_stop_status): Decrement enable_count.
2949 (print_one_breakpoint_location): Report enable count.
2950 (_initialize_breakpoint): Add enable count command.
2951
c47a44f4
KB
29522012-02-14 Kevin Buettner <kevinb@redhat.com>
2953
2954 * rl78-tdep.c (reggroups.h): Include.
2955 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
2956 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
2957 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
2958 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
2959 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
2960 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
2961 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
2962 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
2963 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
2964 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
2965 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
2966 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
2967 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
2968 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
2969 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
2970 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
2971 beginning of register list.
2972 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
2973 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
2974 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
2975 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
2976 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
2977 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
2978 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
2979 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
2980 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
2981 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
2982 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
2983 the pseudo registers. Rearrange other pseudo registers too so
2984 that the bank registers appear at the end.
2985 (rl78_register_type): Account for the fact that the byte sized
2986 bank registers are now pseudo-registers.
2987 (rl78_register_name): Rearrange the register name array. Make
2988 initial set of raw banked registers inaccessible.
2989 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
2990 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
2991 case for copying bytes back and forth between raw and pseudo
2992 versions of the banked registers. Update other cases to reflect
2993 the changed names.
2994 (rl78_return_value): Update to account for changed names of
2995 raw registers.
2996 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
2997 rl78_register_sim_regno().
2998
e4569f1e
KB
29992012-02-14 Kevin Buettner <kevinb@redhat.com>
3000
3001 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3002 the name parameter being passed to find_pc_partial_function().
3003
7a05aae7
JK
30042012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3005
3006 * MAINTAINERS: Step down from being ia64 target maintainer.
3007
11fde611
JK
30082012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3009
3010 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3011 compilation warning.
3012
57008375
JK
30132012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3014
3015 Fix crash on loaded shlibs without loaded exec_bfd.
3016 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
3017 (set_section_command): Replace exec_bfd by p->bfd.
3018
ff3c9849
TT
30192012-02-10 Tom Tromey <tromey@redhat.com>
3020
3021 * linespec.c (decode_line_internal): Skip symtabs_from_filename
3022 when we have a C++ qualified name.
3023
db2b9fdd
PA
30242012-02-10 Pedro Alves <palves@redhat.com>
3025
3026 * inferior.c (inferior_pid_to_str): New.
3027 (print_inferior, inferior_command): Use it.
3028
12cd34f3
PA
30292012-02-10 Pedro Alves <palves@redhat.com>
3030
3031 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
3032 the test CFLAGS.
3033 * configure: Regenerate.
3034
e871429d
JK
30352012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3036
3037 * linespec.c (decode_line_internal): Fix comment correctness.
3038
1916efaf
PA
30392012-02-09 Valery Khromov <valery.khromov@gmail.com>
3040
3041 PR gdb/12953
3042 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
3043 * amd64bsd-nat.c: Add support for debug registers (adapted from
3044 i386bsd-nat.c).
3045 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
3046 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
3047 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
3048 (amd64bsd_dr_get_control): New functions.
3049 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
3050 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
3051 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
3052 watchpoints initialization.
3053 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
3054
f4859d94
JK
30552012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3056
3057 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
3058 flds_bnds.fields.
3059 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
3060
c56a97f9
JK
30612012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3062
3063 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
3064
1a119f36
JB
30652012-02-08 Joel Brobecker <brobecker@adacore.com>
3066
3067 * language.h (symbol_name_cmp_ftype): Renames
3068 symbol_name_match_p_ftype.
3069 (struct language_defn)[la_get_symbol_name_cmp]: Renames
3070 la_get_symbol_name_match_p.
3071 * ada-lang.c (ada_get_symbol_name_cmp): Renames
3072 ada_get_symbol_name_match_p. Update comment.
3073 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
3074 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
3075 Renames symbol_name_match_p. Update field type.
3076 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
3077 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
3078 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
3079 "la_get_symbol_name_cmp" in comments.
3080 * language.c: Likewise.
3081
c71bb1cf
RO
30822012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3083
3084 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
3085 %eflags offset.
3086 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
3087 (amd64_sol2_gregset32_reg_offs): Likewise.
3088
4b2d20a5
TG
30892012-02-08 Joel Brobecker <brobecker@adacore.com>
3090
3091 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
3092 of the returned BFD is allocated by GDB.
3093
f0823d2c
TT
30942012-02-07 Tom Tromey <tromey@redhat.com>
3095
3096 PR python/12027:
3097 * python/python-internal.h (frame_object_type): Declare.
3098 * python/py-symbol.c (sympy_needs_frame): New function.
3099 (sympy_value): New function.
3100 (symbol_object_getset): Add "needs_frame".
3101 (symbol_object_methods): Add "value".
3102 * python/py-frame.c (frame_object_type): No longer static.
3103
64e7d9dd
TT
31042012-02-07 Tom Tromey <tromey@redhat.com>
3105
3106 PR python/13599:
3107 * python/py-symbol.c (sympy_line): New function.
3108 (symbol_object_getset): Add "line".
3109
1d6b2d2b
TT
31102012-02-07 Tom Tromey <tromey@redhat.com>
3111
3112 * charset.c (find_charset_names): Check 'in' against NULL.
3113
0d5cff50
DE
31142012-02-06 Doug Evans <dje@google.com>
3115
3116 * gdbtypes.h (struct main_type): Change type of name,tag_name,
3117 and fields.name members from char * to const char *. All uses updated.
3118 (struct cplus_struct_type): Change type of fn_fieldlists.name member
3119 from char * to const char *. All uses updated.
3120 (type_name_no_tag): Update.
3121 (lookup_unsigned_typename, lookup_signed_typename): Update.
3122 * gdbtypes.c (type_name_no_tag): Change result type
3123 from char * to const char *. All callers updated.
3124 (lookup_unsigned_typename, lookup_signed_typename): Change type of
3125 name parameter from char * to const char *.
3126 * symtab.h (struct cplus_specific): Change type of demangled_name
3127 member from char * to const char *. All uses updated.
3128 (struct general_symbol_info): Change type of name and
3129 mangled_lang.demangled_name members from char * to const char *.
3130 All uses updated.
3131 (symbol_get_demangled_name, symbol_natural_name): Update.
3132 (symbol_demangled_name, symbol_search_name): Update.
3133 * symtab.c (symbol_get_demangled_name): Change result type
3134 from char * to const char *. All callers updated.
3135 (symbol_natural_name, symbol_demangled_name): Ditto.
3136 (symbol_search_name): Ditto.
3137 (completion_list_add_name): Change type of symname,sym_text,
3138 text,word parameters from char * to const char *.
3139 (completion_list_objc_symbol): Change type of sym_text,
3140 text,word parameters from char * to const char *.
3141 * ada-lang.c (find_struct_field): Change type of name parameter
3142 from char * to const char *.
3143 (encoded_ordered_before): Similarly for N0,N1 parameters.
3144 (old_renaming_is_invisible): Similarly for function_name parameter.
3145 (ada_type_name): Change result type from char * to const char *.
3146 All callers updated.
3147 * ada-lang.h (ada_type_name): Update.
3148 * buildsym.c (hashname): Change type of name parameter
3149 from char * to const char *.
3150 * buildsym.h (hashname): Update.
3151 * dbxread.c (end_psymtab): Change type of include_list parameter
3152 from char ** to const char **.
3153 * dwarf2read.c (determine_prefix): Change result type
3154 from char * to const char *. All callers updated.
3155 * f-lang.c (find_common_for_function): Change type of name, funcname
3156 parameters from char * to const char *.
3157 * f-lang.c (find_common_for_function): Update.
3158 * f-valprint.c (list_all_visible_commons): Change type of funcname
3159 parameters from char * to const char *.
3160 * gdbarch.sh (static_transform_name): Change type of name parameter
3161 and result from char * to const char *.
3162 * gdbarch.c: Regenerate.
3163 * gdbarch.h: Regenerate.
3164 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
3165 of name parameter from char * to const char *.
3166 * jv-lang.c (java_primitive_type_from_name): Ditto.
3167 (java_demangled_signature_length): Similarly for signature parameter.
3168 (java_demangled_signature_copy): Ditto.
3169 (java_demangle_type_signature): Ditto.
3170 * jv-lang.h (java_primitive_type_from_name): Update.
3171 (java_demangle_type_signature): Update.
3172 * objc-lang.c (specialcmp): Change type of a,b parameters
3173 from char * to const char *.
3174 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
3175 from char * to const char *. All callers updated.
3176 * p-lang.h (is_pascal_string_type): Update.
3177 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
3178 of name parameter from char * to const char *.
3179 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
3180 * utils.c (fprintf_symbol_filtered): Ditto.
3181 * defs.h (fprintf_symbol_filtered): Update.
3182 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
3183 * stabsread.h (end_psymtab): Update.
3184 * stack.c (find_frame_funname): Change type of funname parameter
3185 from char ** to const char **.
3186 * stack.h (find_frame_funname): Update.
3187 * typeprint.c (type_print): Change type of varstring parameter
3188 from char * to const char *.
3189 * value.h (type_print): Update.
3190 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
3191 from char * to const char *. All callers updated.
3192 (xcoff_end_psymtab): Change type of include_list parameter
3193 from char ** to const char **. All callers updated.
3194 (swap_sym): Similarly for name parameter. All callers updated.
3195 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
3196 Use xstrdup.
3197 (process_coff_symbol): Use xstrdup.
3198 * stabsread.c (stabs_method_name_from_physname): Renamed from
3199 update_method_name_from_physname. Change result type from void
3200 to char *. All callers updated.
3201 (read_member_functions): In has_destructor case, store name in objfile
3202 obstack instead of malloc space. In !has_stub case, fix mem leak.
3203
5579a92e
TT
32042012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
3205
3206 * configure: Rebuild.
3207 * configure.ac: Put -L../bfd and -L../libiberty at the front of
3208 LDFLAGS.
3209
9058f767
KB
32102012-02-03 Kevin Buettner <kevinb@redhat.com>
3211
3212 * configure.tgt (rl78-*-elf): New target.
3213 * rl78-tdep.c: New file.
3214
5b37825d
PW
32152012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3216
3217 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
3218 and continue the loop. Add QUIT statement.
3219
e009ee71
TT
32202012-02-03 Tom Tromey <tromey@redhat.com>
3221
3222 PR gdb/13596:
3223 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
3224 bfd_lookup_symbol_from_symtab.
3225 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3226 gdb_bfd_lookup_symbol_from_symtab.
3227
f7e44f65
JB
32282012-02-03 Joel Brobecker <brobecker@adacore.com>
3229
3230 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
3231 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
3232 symbol. Add assertion that sym2 is never NULL.
3233
2c02bd72
DE
32342012-02-02 Doug Evans <dje@google.com>
3235
3236 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
3237 "name" parameter to const char ** from char **. All callers updated.
3238 (find_pc_partial_function): Ditto.
3239 (cache_pc_function_name): Change type to const char * from char *.
3240 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
3241 (find_pc_partial_function): Update.
3242 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
3243 type of "name" parameter to const char * from char *.
3244 All uses updated.
3245 * arch-utils.c (generic_in_solib_return_trampoline): Change
3246 type of "name" parameter to const char * from char *.
3247 * arch-utils.h (generic_in_solib_return_trampoline): Update.
3248 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
3249 type of "name" parameter to const char * from char *.
3250 * gdbarch.sh (in_solib_return_trampoline): Ditto.
3251 * gdbarch.c: Regenerate.
3252 * gdbarch.h: Regenerate.
3253 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
3254 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
3255 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
3256 type of "name" parameter to const char * from char *.
3257 * skip.c (skip_function_pc): Ditto.
3258 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
3259 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
3260 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
3261 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
3262 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
3263 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
3264 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
3265 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
3266 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
3267
e886a173
PA
32682012-02-02 Pedro Alves <palves@redhat.com>
3269
3270 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
3271 the current inferior has no execution. Make sure the current
3272 remote process matches gdb's current inferior.
3273
c709a7c2
TT
32742012-02-02 Tom Tromey <tromey@redhat.com>
3275
3276 PR gdb/13405:
3277 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
3278 read-only memory.
3279
f149aabd
TT
32802012-02-02 Tom Tromey <tromey@redhat.com>
3281
3282 PR gdb/9307:
3283 * symtab.c (lookup_language_this): Set block_found.
3284
03bef283
TT
32852012-02-01 Tom Tromey <tromey@redhat.com>
3286
3287 PR gdb/13431:
3288 * jit.c (struct jit_inferior_data): Rewrite.
3289 (struct jit_objfile_data): New.
3290 (get_jit_objfile_data): New function.
3291 (add_objfile_entry): Update.
3292 (jit_read_descriptor): Return int. Replace descriptor_addr
3293 argument with inf_data. Update. Don't call error.
3294 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
3295 descriptor here.
3296 (jit_inferior_init): Don't look up descriptor. Don't call error.
3297 (jit_reset_inferior_data_and_breakpoints)
3298 (jit_inferior_created_observer): Remove.
3299 (jit_inferior_exit_hook): Update.
3300 (jit_executable_changed_observer): Remove.
3301 (jit_event_handler): Update.
3302 (free_objfile_data): Reset inferior data if needed.
3303 (_initialize_jit): Update.
3304
f0bbc364
TT
33052012-02-01 Tom Tromey <tromey@redhat.com>
3306
3307 * jit.c (bfd_open_from_target_memory): Move higher in file.
3308
47c1316c
TG
33092012-02-01 Tristan Gingold <gingold@adacore.com>
3310
3311 * libunwind-frame.c (libunwind_load): Display message if dlopen
3312 failed.
3313
8e704927
GB
33142012-02-01 Gary Benson <gbenson@redhat.com>
3315
09c7a31f 3316 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
3317 (iterate_over_symbols): Use the above.
3318 * symtab.c (iterate_over_symbols): Likewise.
3319 * language.h (language_defn->la_iterate_over_symbols): Likewise.
3320 * ada-lang.c (ada_iterate_over_symbols): Likewise.
3321 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
3322 (iterate_name_matcher): Document return values.
3323 (collect_one_symbol): Likewise.
3324 (collect_function_symbols): Likewise.
3325 (collect_symbols): Likewise.
3326
d9680e73
TT
33272012-02-01 Tom Tromey <tromey@redhat.com>
3328
3329 * ada-lang.c (resolve_subexp): Update.
3330 (ada_lookup_symbol_list): Add 'full_search' argument.
3331 (ada_iterate_over_symbols): Pass 0 as full_search argument to
3332 ada_lookup_symbol_list.
3333 (ada_lookup_encoded_symbol): Update.
3334 (get_var_value): Update.
3335 * ada-exp.y (block_lookup): Update.
3336 (write_var_or_type): Update.
3337 (write_name_assoc): Update.
3338 * ada-lang.h (ada_lookup_symbol_list): Update.
3339
72e1143f
TT
33402012-01-31 Tom Tromey <tromey@redhat.com>
3341
3342 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
3343 comment.
3344
ab2d2ad3
DE
33452012-01-31 Doug Evans <dje@google.com>
3346
3347 * symtab.h: Remove outdated comment.
e9111bf7 3348 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 3349
bc884eba
JB
33502012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
3351
3352 Fix build error in Darwin port.
3353 * i386-darwin-nat.c: Include i386-nat.h.
3354
8fc3fc34
TT
33552012-01-30 Tom Tromey <tromey@redhat.com>
3356
3357 PR breakpoints/13568:
3358 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
3359 argument. Check for recursive includes.
3360 (dwarf_decode_macros): Create an include hash.
3361
5d853008
ME
33622012-01-30 Michael Eager <eager@eagercon.com>
3363
3364 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
3365 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 3366 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
3367 (powerpc_linux_in_plt_stub): New function.
3368 (powerpc_linux_in_dynsym_resolve_code): New function.
3369 (ppc_skip_trampoline_code): New function.
3370 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
3371 Use glibc_skip_solib_resolver.
3372
40478521
JK
33732012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3374
3375 Code cleanup: Make 1440 bytes of data segment read-only.
3376 * arch-utils.c (endian_enum): Make it const char *const [].
3377 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
3378 Likewise.
3379 * breakpoint.c (always_inserted_enums): Likewise.
3380 * cli/cli-cmds.c (script_ext_enums): Likewise.
3381 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
3382 enumlist parameter const char *const *.
3383 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
3384 const char *const *.
3385 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
3386 parameter const char *const *.
3387 * cris-tdep.c (cris_modes): Make it const char *const [].
3388 * filesystem.c (target_file_system_kinds): Likewise.
3389 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
3390 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
3391 (can_use_displaced_stepping_enum, scheduler_enums)
3392 (exec_direction_names): Likewise.
3393 * language.c (_initialize_language): Make the type_or_range_names and
3394 case_sensitive_names variables const char *const [].
3395 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
3396 * python/python.c (python_excp_enums): Likewise.
3397 * remote.c (interrupt_sequence_modes): Likewise.
3398 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
3399 * serial.c (logbase_enums): Likewise.
3400 * sh-tdep.c (sh_cc_enum): Likewise.
3401 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
3402 Likewise.
3403 * symtab.c (multiple_symbols_modes): Likewise.
3404 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
3405 Likewise.
3406 * utils.c (internal_problem_modes): Likewise.
3407
b3b8b934
JK
34082012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3409
3410 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
3411 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
3412 result.
3413
8c85a4e2
DE
34142012-01-27 Doug Evans <dje@google.com>
3415
3416 * configure.ac (with_python): Fix absolute path handling for win32.
3417 * configure: Regenerate.
3418
78d8b4d7
DE
34192012-01-26 Doug Evans <dje@google.com>
3420
eca864fe
DE
3421 * symtab.c: Whitespace cleanup, no code changes.
3422
7e082072
DE
3423 * symtab.c (lookup_symbol_in_language): Improve comment.
3424 (lookup_symbol_aux): Fix comment.
3425
7dc25483
DE
3426 * psymtab.c (add_psymbol_to_list): Result is now "void".
3427 * psympriv.h (add_psymbol_to_list): Update.
3428
78d8b4d7
DE
3429 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
3430
4c63965b
JK
34312012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3432
3433 Do not open script filenames twice.
3434 * cli/cli-cmds.c (source_script_from_stream): Pass to
3435 source_python_script also STREAM.
3436 * python/py-auto-load.c (source_section_scripts): Pass to
3437 source_python_script_for_objfile also STREAM.
3438 (auto_load_objfile_script): Pass to source_python_script_for_objfile
3439 also INPUT.
3440 * python/python-internal.h (source_python_script_for_objfile): New
3441 parameter file, rename parameter file to filename.
3442 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
3443 instead if !_WIN32. Update the function comment.
3444 (source_python_script, source_python_script_for_objfile)
3445 (source_python_script): New parameter file, rename parameter file to
3446 filename. Pass FILENAME to python_run_simple_file.
3447 * python/python.h (source_python_script): New parameter file, rename
3448 parameter file to filename.
3449
88f38a04
PA
34502012-01-26 Pedro Alves <palves@redhat.com>
3451
3452 * corelow.c (core_has_fake_pid): Delete.
3453 (core_close): Delete references to `core_has_fake_pid'.
3454 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
3455 (core_open): Delete references to `core_has_fake_pid'.
3456 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
3457 the removed global.
3458
e078317b
JB
34592012-01-26 Joel Brobecker <brobecker@adacore.com>
3460
3461 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
3462 Remove language parameter from name_matcher. Adjust the comment.
3463 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
3464 Remove language parameter.
3465 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
3466 * linespec.c (iterate_name_matcher): Likewise.
3467 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
3468 name_matcher. Adjust call accordingly.
3469 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
3470 (maintenance_check_symtabs): Adjust type of parameter "fun".
3471 * psymtab.h (maintenance_check_symtabs): Likewise.
3472
74ccd7f5
JB
34732012-01-26 Joel Brobecker <brobecker@adacore.com>
3474
3475 * language.h (symbol_name_match_p_ftype): New typedef.
3476 (struct language_defn): Replace field la_symbol_name_compare
3477 by la_get_symbol_name_match_p.
3478 * ada-lang.c (ada_get_symbol_name_match_p): New function.
3479 (ada_language_defn): Use it.
3480 * linespec.c (struct symbol_matcher_data): New type.
3481 (iterate_name_matcher): Rewrite.
3482 (iterate_over_all_matching_symtabs): Pass a pointer to
3483 a symbol_matcher_data struct to expand_symtabs_matching
3484 instead of just the lookup name.
3485 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
3486 opencl-lang.c, p-lang.c, language.c: Delete field
3487 la_symbol_name_compare, and replace by NULL for new field
3488 la_get_symbol_name_match_p.
3489 * symfile.h (struct quick_symbol_functions): Update comment.
3490
5d268276
TT
34912012-01-25 Tom Tromey <tromey@redhat.com>
3492
3493 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
3494 dereferencing.
3495
edcc5120
TT
34962012-01-24 Tom Tromey <tromey@redhat.com>
3497
3498 PR symtab/12406:
3499 * solib.c (update_solib_list): Update the program space's
3500 added_solibs and deleted_solibs fields.
3501 * progspace.h (struct program_space) <added_solibs,
3502 deleted_solibs>: New fields.
3503 (clear_program_space_solib_cache): Declare.
3504 * progspace.c (release_program_space): Call
3505 clear_program_space_solib_cache.
3506 (clear_program_space_solib_cache): New function.
3507 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
3508 bpstat_stop_status. Use handle_solib_event.
3509 * breakpoint.c: Include gdb_regex.h.
3510 (print_solib_event): New function.
3511 (bpstat_print): Use print_solib_event.
3512 (bpstat_stop_status): Add special case for bp_shlib_event.
3513 (handle_solib_event): New function.
3514 (bpstat_what): Use handle_solib_event.
3515 (struct solib_catchpoint): New.
3516 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
3517 (breakpoint_hit_catch_solib, check_status_catch_solib)
3518 (print_it_catch_solib, print_one_catch_solib)
3519 (print_mention_catch_solib, print_recreate_catch_solib): New
3520 functions.
3521 (catch_solib_breakpoint_ops): New global.
3522 (catch_load_or_unload, catch_load_command_1)
3523 (catch_unload_command_1): New functions.
3524 (internal_bkpt_check_status): Add special case for
3525 bp_shlib_event.
3526 (internal_bkpt_print_it): Use print_solib_event.
3527 (initialize_breakpoint_ops): Initialize
3528 catch_solib_breakpoint_ops.
3529 (_initialize_breakpoint): Register "catch load" and "catch
3530 unload".
3531 * breakpoint.h (handle_solib_event): Declare.
3532 * NEWS: Add entry for "catch load" and "catch unload".
3533
fa864999
TT
35342012-01-24 Tom Tromey <tromey@redhat.com>
3535
3536 * ada-lang.c: Include gdb_vecs.h.
3537 * charset.c: Include gdb_vecs.h.
3538 * tracepoint.h: Include gdb_vecs.h.
3539 * gdb_vecs.h: New file.
3540
f90263c1
TT
35412012-01-24 Pedro Alves <pedro@codesourcery.com>
3542
3543 * breakpoint.c (breakpoint_hit_catch_fork)
3544 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
3545 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
3546 * infrun.c (inferior_has_forked, inferior_has_vforked)
3547 (inferior_has_execd, inferior_has_called_syscall): Delete.
3548 (handle_syscall_event): Get syscall_number from the execution
3549 control state's wait status.
3550 (wait_for_inferior): Don't clear syscall_number.
3551
09ac7c10
TT
35522012-01-24 Pedro Alves <palves@redhat.com>
3553
3554 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
3555 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
3556 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
3557 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
3558 `ws' parameter.
3559 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
3560 false for events other than TARGET_SIGNAL_TRAP.
3561 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
3562 Add `ws' parameter.
3563 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
3564 events other than TARGET_SIGNAL_TRAP.
3565 (tracepoint_breakpoint_hit): Add `ws' parameter.
3566 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
3567 parameter.
3568 (bpstat_stop_status): Same.
3569 (pc_at_non_inline_function): Same.
3570 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
3571 to pass the current event's waitstatus to bpstat_stop_status
3572 and pc_at_non_inline_function.
3573
86eb7e95
JK
35742012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3575
3576 Code cleanup.
3577 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
3578 Update the function comment for it.
3579 (source_script_with_search): Call make_cleanup_fclose for STREAM.
3580 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
3581 for STREAM.
3582
a9b3a50f
PA
35832012-01-24 Pedro Alves <palves@redhat.com>
3584
3585 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
3586 outside `bs->stop' block.
3587 (bpstat_what): Rework bp_shlib_event handling.
3588 (internal_bkpt_check_status): If the breakpoint is a
3589 bp_shlib_event, then set bs->stop and bs->print if
3590 stop_on_solib_events is set.
3591
53fe1783
GB
35922012-01-24 Gary Benson <gbenson@redhat.com>
3593
3594 Delete #if 0'd out code.
3595 * stack.c (print_frame_label_vars): Remove.
3596 (catch_info): Likewise.
3597 (_initialize_stack): Remove "info catch" command.
3598 * NEWS: Mention the above.
3599
49c62f2e
PA
36002012-01-24 Pedro Alves <palves@redhat.com>
3601
3602 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
3603 it.
3604 (remote_notice_new_inferior): If the remote end doesn't support
3605 the multiprocess extensions, then the PID is fake.
3606 (add_current_inferior_and_thread): New.
3607 (remote_start_remote): Use it.
3608 (extended_remote_attach_1): Adjust.
3609 (extended_remote_create_inferior_1): Use
3610 add_current_inferior_and_thread.
3611
d0d8b0c6
JK
36122012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3613
3614 Fix watchpoints to be specific for each inferior.
3615 * breakpoint.c (watchpoint_in_thread_scope): Verify also
3616 current_program_space.
3617 * i386-nat.c (i386_inferior_data_cleanup): New.
3618 (i386_inferior_data_get): Replace variable inf_data_local by an
3619 inferior_data call.
3620 (i386_use_watchpoints): Initialize i386_inferior_data.
3621 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
3622 specific iterate_over_lwps.
3623
4403d8e9
JK
36242012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3625
3626 Fix watchpoints across inferior fork.
3627 * amd64-linux-nat.c (update_debug_registers_callback): Update the
3628 comment for linux_nat_iterate_watchpoint_lwps.
3629 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
3630 linux_nat_iterate_watchpoint_lwps.
3631 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
3632 * i386-linux-nat.c (update_debug_registers_callback): Update the
3633 comment for linux_nat_iterate_watchpoint_lwps.
3634 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
3635 linux_nat_iterate_watchpoint_lwps.
3636 (i386_linux_prepare_to_resume): New comment on Linux kernel.
3637 * i386-nat.c: Include inferior.h.
3638 (dr_mirror): Remove.
3639 (i386_inferior_data, struct i386_inferior_data)
3640 (i386_inferior_data_get): New.
3641 (i386_debug_reg_state): Use i386_inferior_data_get.
3642 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
3643 (i386_insert_watchpoint, i386_remove_watchpoint)
3644 (i386_stopped_data_address, i386_insert_hw_breakpoint)
3645 (i386_remove_hw_breakpoint): New variable state, use
3646 i386_debug_reg_state instead of DR_MIRROR.
3647 * linux-nat.c (delete_lwp): New declaration.
3648 (num_lwps): Move here from downwards.
3649 (delete_lwp_cleanup): New.
3650 (linux_child_follow_fork): Create new child_lp, call
3651 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
3652 PTRACE_DETACH.
3653 (num_lwps): Move upwards.
3654 (linux_nat_iterate_watchpoint_lwps): New.
3655 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
3656 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
3657
2992c9a7 36582012-01-24 Joel Brobecker <brobecker@adacore.com>
3659
3660 GDB 7.4 released.
3661
e360902b
PA
36622012-01-23 Pedro Alves <palves@redhat.com>
3663
3664 * top.c (caution): Rename to ...
3665 (confirm): ... this.
3666 (show_caution): Rename to ...
3667 (show_confirm): ... this.
3668 (quit_cover): Adjust.
3669 (init_main): Adjust.
3670 * top.h (caution): Rename to ...
3671 (confirm): ... this.
3672 * utils.c (internal_vproblem, defaulted_query): Adjust.
3673
050a2e1d
PA
36742012-01-23 Pedro Alves <palves@redhat.com>
3675
3676 * top.c (caution): Update comment.
3677 (execute_command): Don't consider the current value of `caution'.
3678
77a35dd8
JK
36792012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3680
3681 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
3682
a71b5a38
UW
36832012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
3684
3685 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
3686 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
3687 * target.c (target_fileio_pwrite): Remove buffer address from
3688 debug output.
3689 (target_fileio_pread): Likewise.
3690
d99bd577
UW
36912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3692
3693 * NEWS: Document remote "info proc" and "generate-core-file".
3694
35c2fab7
UW
36952012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3696
3697 * gdbarch.sh (find_memory_regions): New callback.
3698 * gdbarch.c, gdbarch.h: Regenerate.
3699
3700 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
3701 callback before falling back to target method.
3702
3703 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
3704 (linux_target_install_ops): No longer install it.
3705
3706 * linux-tdep.c (linux_find_memory_regions): New function.
3707 (linux_init_abi): Install it.
3708
6432734d
UW
37092012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3710
3711 * gdbarch.sh (make_corefile_notes): New architecture callback.
3712 * gdbarch.c: Regenerate.
3713 * gdbarch.h: Likewise.
3714
3715 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
3716 before target_make_corefile_notes. If NULL is returned, the
3717 target does not support core file generation.
3718
3719 * linux-nat.c: Include "linux-tdep.h".
3720 (find_signalled_thread, find_stop_signal): Remove.
3721 (linux_nat_do_thread_registers): Likewise.
3722 (struct linux_nat_corefile_thread_data): Likewise.
3723 (linux_nat_corefile_thread_callback): Likewise.
3724 (iterate_over_spus): Likewise.
3725 (struct linux_spu_corefile_data): Likewise.
3726 (linux_spu_corefile_callback): Likewise.
3727 (linux_spu_make_corefile_notes): Likewise.
3728 (linux_nat_collect_thread_registers): New function.
3729 (linux_nat_make_corefile_notes): Replace contents by call to
3730 linux_make_corefile_notes passing linux_nat_collect_thread_registers
3731 as native-only callback.
3732
3733 * linux-tdep.h: Include "bfd.h".
3734 (struct regcache): Add forward declaration.
3735 (linux_collect_thread_registers_ftype): New typedef.
3736 (linux_make_corefile_notes): Add prototype.
3737 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
3738 "regset.h", and "elf-bfd.h".
3739 (find_signalled_thread, find_stop_signal): New functions.
3740 (linux_spu_make_corefile_notes): Likewise.
3741 (linux_collect_thread_registers): Likewise.
3742 (struct linux_corefile_thread_data): New data structure.
3743 (linux_corefile_thread_callback): New funcion.
3744 (linux_make_corefile_notes): Likewise.
3745 (linux_make_corefile_notes_1): Likewise.
3746 (linux_init_abi): Install it.
3747
3030c96e
UW
37482012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3749
3750 * gdbarch.sh (info_proc): New callback.
3751 * gdbarch.c, gdbarch.h: Regenerate.
3752
3753 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
3754 before falling back to the target info_proc callback.
3755
3756 * linux-nat.c: Do not include "cli/cli-utils.h".
3757 (linux_nat_info_proc): Remove.
3758 (linux_target_install_ops): No longer install it.
3759
3760 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
3761 (read_mapping): New function.
3762 (linux_info_proc): Likewise.
3763 (linux_init_abi): Install it.
3764
145b16a9
UW
37652012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3766
3767 * defs.h (enum info_proc_what): Moved here from linux-nat.c
3768 * infcmd.c: (info_proc_cmd_1): New function.
3769 (info_proc_cmd): New function, moved here from equivalent routine
3770 orignally in linux-nat.c.
3771 (info_proc_cmd_mappings): Likewise.
3772 (info_proc_cmd_stat): Likewise.
3773 (info_proc_cmd_status): Likewise.
3774 (info_proc_cmd_cwd): Likewise.
3775 (info_proc_cmd_cmdline): Likewise.
3776 (info_proc_cmd_exe): Likewise.
3777 (info_proc_cmd_all): Likewise.
3778 (_initialize_infcmd): Install "info proc" command and subcommands.
3779
3780 * target.h (struct target_ops): Add to_info_proc.
3781 (target_info_proc): Add prototype.
3782 * target.c (target_info_proc): New function.
3783
3784 * procfs.c (procfs_info_proc): Add prototype.
3785 (info_proc_cmd): Rename into ...
3786 (procfs_info_proc): ... this. Update argument types as appropriate
3787 for a to_info_proc implementation. Handle "what" argument.
3788 (procfs_target): Install procfs_info_proc.
3789 (_initialize_procfs): No longer install "info proc" command.
3790
3791 * linux-nat.c: (enum info_proc_what): Remove.
3792 (linux_nat_info_proc_cmd_1): Rename into ...
3793 (linux_nat_info_proc): ... this. Update argument types as appropriate
3794 for a to_info_proc implementation.
3795 (linux_nat_info_proc_cmd): Remove.
3796 (linux_nat_info_proc_cmd_mappings): Likewise.
3797 (linux_nat_info_proc_cmd_stat): Likewise.
3798 (linux_nat_info_proc_cmd_status): Likewise.
3799 (linux_nat_info_proc_cmd_cwd): Likewise.
3800 (linux_nat_info_proc_cmd_cmdline): Likewise.
3801 (linux_nat_info_proc_cmd_exe): Likewise.
3802 (linux_nat_info_proc_cmd_all): Likewise.
3803 (linux_target_install_ops): Install linux_nat_info_proc.
3804 (_initialize_linux_nat): No longer install "info proc" command
3805 and subcommands.
3806
b9e7b9c3
UW
38072012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
3808
3809 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
3810 * config.in, configure: Regenerate.
3811
3812 * target.h (struct target_ops): Add to_fileio_readlink.
3813 (target_fileio_readlink): Add prototype.
3814 * target.c (target_fileio_readlink): New function.
3815
3816 * inf-child.c: Conditionally include <sys/param.h>.
3817 (inf_child_fileio_readlink): New function.
3818 (inf_child_target): Install it.
3819
3820 * remote.c (PACKET_vFile_readlink): New enum value.
3821 (remote_hostio_readlink): New function.
3822 (init_remote_ops): Install it.
3823 (_initialize_remote): Handle vFile:readlink packet type.
3824
7313baad
UW
38252012-01-20 Pedro Alves <palves@redhat.com>
3826 Ulrich Weigand <ulrich.weigand@linaro.org>
3827
3828 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
3829 * config.in, configure: Regenerate.
3830
3831 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
3832 to_fileio_pread, to_fileio_close, to_fileio_unlink.
3833 (target_fileio_open): Add prototype.
3834 (target_fileio_pwrite): Likewise.
3835 (target_fileio_pread): Likewise.
3836 (target_fileio_close): Likewise.
3837 (target_fileio_unlink): Likewise.
3838 (target_fileio_read_alloc): Likewise.
3839 (target_fileio_read_stralloc): Likewise.
3840
3841 * target.c: Include "gdb/fileio.h".
3842 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
3843 (default_fileio_target): New function.
3844 (target_fileio_open): Likewise.
3845 (target_fileio_pwrite): Likewise.
3846 (target_fileio_pread): Likewise.
3847 (target_fileio_close): Likewise.
3848 (target_fileio_unlink): Likewise.
3849 (target_fileio_close_cleanup): Likewise.
3850 (target_fileio_read_alloc_1): Likewise.
3851 (target_fileio_read_alloc): Likewise.
3852 (target_fileio_read_stralloc): Likewise.
3853
3854 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
3855 <fcntl.h>, and <unistd.h>.
3856 (inf_child_fileio_open_flags_to_host): New function.
3857 (inf_child_errno_to_fileio_error): Likewise.
3858 (inf_child_fileio_open): Likewise.
3859 (inf_child_fileio_pwrite): Likewise.
3860 (inf_child_fileio_pread): Likewise.
3861 (inf_child_fileio_close): Likewise.
3862 (inf_child_fileio_unlink): Likewise.
3863 (inf_child_target): Install to_fileio routines.
3864
3865 * remote.c (init_remote_ops): Install to_fileio routines.
3866
901f9912
UW
38672012-01-20 Pedro Alves <palves@redhat.com>
3868 Ulrich Weigand <ulrich.weigand@linaro.org>
3869
3870 * remote.c (remote_multi_process_p): Only check for multi-process
3871 protocol feature, do not check for extended protocol.
3872 (remote_supports_multi_process): Check for extended protocol here.
3873 (set_general_process): Likewise.
3874 (extended_remote_kill): Likewise.
3875 (remote_pid_to_str): Likewise.
3876 (remote_query_supported): Always query multiprocess mode.
3877
e714e1bf
UW
38782012-01-20 Pedro Alves <palves@redhat.com>
3879 Ulrich Weigand <ulrich.weigand@linaro.org>
3880
3881 * inferior.h (struct inferior): Add fake_pid_p.
3882 * inferior.c (exit_inferior_1): Clear fake_pid_p.
3883 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
3884 magic_null_ptid since the remote side doesn't provide a real PID.
3885
50897289
TT
38862012-01-19 Tom Tromey <tromey@redhat.com>
3887
3888 * NEWS: Combine the two Python sections.
3889
1afc2033
JK
38902012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
3891
3892 * target.h (target_close): Update comment on the target's unpush state.
3893
305436e0
PA
38942012-01-19 Pedro Alves <palves@redhat.com>
3895
3896 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
3897 linux_nat_async directly instead of going through the target
3898 vector.
3899 * target.c (unpush_target): Close target after unpushing it, not
3900 before.
3901
49323895
GB
39022012-01-19 Gary Benson <gbenson@redhat.com>
3903
3904 * mdebugread.c (sort_blocks): Replace integer constants with ones
3905 derived from FIRST_LOCAL_BLOCK.
3906
1db33378
PP
39072012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
3908 Jan Kratochvil <jan.kratochvil@redhat.com>
3909
3910 PR gdb/9538
3911 * symfile.c (find_separate_debug_file): New function.
3912 (terminate_after_last_dir_separator): Likewise.
3913 (find_separate_debug_file_by_debuglink): Also try realpath.
3914 * configure.ac (AC_CHECK_FUNCS): Add lstat.
3915 * configure: Regenerate.
3916 * config.in: Regenerate.
3917
f83d8a90
DE
39182012-01-18 Doug Evans <dje@google.com>
3919
3920 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
3921 (main.o): Remove rule.
3922 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
3923 (--with-sysroot): Rewrite.
3924 * configure: Regenerate.
3925 * config.in: Regenerate.
3926
2dbca4d6
SDJ
39272012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
3928
3929 * parse.c (initialize_expout): New function.
3930 (reallocate_expout): Likewise.
3931 (parse_exp_in_context): Use `initialize_expout' and
3932 `reallocate_expout' when appropriate.
3933
0695b514
PA
39342012-01-18 Pedro Alves <palves@redhat.com>
3935
3936 * record.c (struct record_breakpoint, record_breakpoint_p)
3937 (record_breakpoints): New.
3938 (record_insert_breakpoint, record_remove_breakpoint): Manage
3939 record breakpoints list. Only remove breakpoints from the
3940 inferior if they had been inserted there in the first place.
3941
136e1c30
DE
39422012-01-17 Doug Evans <dje@google.com>
3943
3944 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
3945 if we know we don't have a file name to look for.
3946
c0bf857d
PA
39472012-01-17 Pedro Alves <palves@redhat.com>
3948
3949 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
3950 the frame's stop reason is UNWIND_UNAVAILABLE.
3951
b486de60
JK
39522012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3953
3954 Fix compilation error.
3955 * m2-exp.y (yyerror): Use ANSI C prototype.
3956
d04550a6
SDJ
39572012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3958
3959 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
3960 (growbuf_by_size): Likewise.
3961 (yyerror): Likewise.
3962 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
3963 (modblock): Remove variable (was #if 0'ed).
3964 (parse_number): Convert prototype from K&R to ANSI C.
3965 (yyerror): Likewise.
3966 * objc-exp.y (parse_number): Likewise.
3967 (yyerror): Likewise.
3968 (yylex): Remove #if 0'ed code.
3969 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
3970 (yyerror): Likewise.
3971
4aac40c8
TT
39722012-01-16 Tom Tromey <tromey@redhat.com>
3973
3974 * NEWS: Add item.
3975 * symtab.h (compare_filenames_for_search): Declare.
3976 * symtab.c (compare_filenames_for_search): New function.
3977 (iterate_over_some_symtabs): Use it.
3978 * symfile.h (struct quick_symbol_functions)
3979 <map_symtabs_matching_filename>: Change spec.
3980 * psymtab.c (partial_map_symtabs_matching_filename): Use
3981 compare_filenames_for_search. Update for new spec.
3982 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
3983 compare_filenames_for_search. Update for new spec.
3984 * breakpoint.c (clear_command): Use compare_filenames_for_search.
3985
cafec441
TT
39862012-01-16 Tom Tromey <tromey@redhat.com>
3987
3988 PR python/13281:
3989 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
3990 (struct main_type) <flag_flag_enum>: New field.
3991 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
3992 * NEWS: Add entries.
3993 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
3994 enums.
3995 * python/lib/gdb/printing.py (_EnumInstance): New class.
3996 (FlagEnumerationPrinter): Likewise.
3997
983af33b
SDJ
39982012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
3999
4000 * breakpoint.c (create_sals_from_address_default): New function.
4001 (create_breakpoints_sal_default): Likewise.
4002 (decode_linespec_default): Likewise.
4003 (is_marker_spec): Removed.
4004 (strace_marker_p): New function.
4005 (init_breakpoint_sal): Using `strace_marker_p' instead of
4006 `is_marker_spec'.
4007 (create_breakpoint): Call method `create_sals_from_address' from
4008 breakpoint_ops, replacing code that created SALs conditionally
4009 on the type of the breakpoint. Call method `create_breakpoints_sal',
4010 replacing code that created breakpoints conditionally on the type
4011 wanted.
4012 (base_breakpoint_create_sals_from_address): New function.
4013 (base_breakpoint_create_breakpoints_sal): Likewise.
4014 (base_breakpoint_decode_linespec): Likewise.
4015 (base_breakpoint_ops): Add methods
4016 `base_breakpoint_create_sals_from_address',
4017 `base_breakpoint_create_breakpoints_sal' and
4018 `base_breakpoint_decode_linespec'.
4019 (bkpt_create_sals_from_address): New function.
4020 (bkpt_create_breakpoints_sal): Likewise.
4021 (bkpt_decode_linespec): Likewise.
4022 (tracepoint_create_sals_from_address): Likewise.
4023 (tracepoint_create_breakpoints_sal): Likewise.
4024 (tracepoint_decode_linespec): Likewise.
4025 (strace_marker_create_sals_from_address): Likewise.
4026 (strace_marker_create_breakpoints_sal): Likewise.
4027 (strace_marker_decode_linespec): Likewise.
4028 (strace_marker_breakpoint_ops): New variable.
4029 (addr_string_to_sals): Remove `marker_spec'. Call method
4030 `decode_linespec' from breakpoint_ops, replacing code that decoded
4031 an address string into a SAL. Use `strace_marker_p' instead of
4032 `marker_spec'.
4033 (strace_command): Decide whether we are dealing with a static
4034 tracepoint with marker or not. Use the appropriate breakpoint_ops.
4035 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
4036 * breakpoint.h (linespec_result, linespec_sals): New forward
4037 declarations.
4038 (breakpoint_ops) <create_sals_from_address>,
4039 <create_breakpoints_sal>, <decode_linespec>: New methods.
4040
4795f398
DE
40412012-01-14 Doug Evans <dje@google.com>
4042
4043 * NEWS: Update text for "maint set python print-stack".
4044 It is deprecated in gdb 7.4 and deleted in 7.5.
4045
ee5106fe
EZ
40462012-01-13 Eli Zaretskii <eliz@gnu.org>
4047
4048 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
4049 including curses.h.
4050
b161e06f
JK
40512012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4052
4053 * configure: Regenerate.
4054 * config.in: Regenerate.
4055
85254831
KS
40562012-01-12 Keith Seitz <keiths@redhat.com>
4057
4058 PR mi/10586
4059 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
4060 (ANONYMOUS_UNION_NAME): Define.
4061 (is_path_expr_parent): New function.
4062 (get_path_expr_parent): New function.
4063 (is_anonymous_child): New function.
4064 (create_child_with_value): If the child is anonymous and without
4065 a name, assign an object name to it.
4066 (c_describe_child): Use get_path_expr_parent to determine
4067 the parent expression.
4068 If there field represents an anonymous struct or union and
4069 has no name, set an appropriate display name and expression.
4070 (cplus_describe_child): Likewise.
4071
620fa63a
PA
40722012-01-12 Pedro Alves <palves@redhat.com>
4073
4074 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
4075 available when %ebp is found to be zero (outermost).
4076
2efa2c79
AT
40772012-01-11 Andreas Tobler <andreast@fgznet.ch>
4078
4079 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
4080 an internal gdb_static_assert.
4081 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
4082
88e7d25d
TT
40832012-01-11 Tom Tromey <tromey@redhat.com>
4084
4085 PR gdb/9598:
4086 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
4087 catch" and "catch throw".
4088
72384ba3
PH
40892012-01-11 Paul Hilfinger <hilfingr@adacore.com>
4090
4091 * blockframe.c (block_innermost_frame): Start search from selected
4092 frame, if present, or otherwise the current frame.
4093
4094 * c-exp.y (variable): Update innermost_block for
4095 'block COLONCOLON NAME' clause.
4096 * m2-exp.y (variable): Ditto.
4097 * objc-exp.y (variable): Ditto.
4098
065a711f
TT
40992012-01-10 Tom Tromey <tromey@redhat.com>
4100
4101 PR python/13199:
4102 * python/python.c (finish_python_initialization): Set sys.argv.
4103
f3f5162e
DE
41042012-01-10 Doug Evans <dje@google.com>
4105
4106 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
4107 "want_line_info". All callers updated.
4108 (dwarf_decode_lines_1): New function.
4109 (handle_DW_AT_stmt_list): Add function comment.
4110 New arg "want_line_info". All callers updated.
4111 (read_file_scope,read_type_unit_scope): Move comment from
4112 handle_DW_AT_stmt_list to here.
4113
9934703b
JK
41142012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4115
4116 Fix regression after libiberty/ update for GCC PR 6057 and others.
4117 * c-exp.y (operator) <OPERATOR DELETE>
4118 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4119 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
4120 (make_builtin_type, make_name): New variable i, add gdb_assert.
4121 (operator) <OPERATOR NEW>: Update ARGS to 3.
4122 (operator) <OPERATOR DELETE>: Add trailing space.
4123 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
4124 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4125 * cp-support.c (cp_canonicalize_string): Check NULL from
4126 cp_comp_to_string, call warning and return.
4127
06b9f45f
JK
41282012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4129
4130 Fix duplicate .o files after omitting libbfd.a.
4131 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
4132 (SFILES): Add corelow.c.
4133 (COMMON_OBS): Add corelow.o.
4134 (ALLDEPFILES): Remove corelow.c.
4135 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
4136 * config/alpha/alpha-osf3.mh: Likewise.
4137 * config/alpha/fbsd.mh: Likewise.
4138 * config/arm/nbsdaout.mh: Likewise.
4139 * config/arm/nbsdelf.mh: Likewise.
4140 * config/i386/i386gnu.mh: Likewise.
4141 * config/ia64/hpux.mh: Likewise.
4142 * config/ia64/linux.mh: Likewise.
4143 * config/m32r/linux.mh: Likewise.
4144 * config/m68k/linux.mh: Likewise.
4145 * config/mips/irix5.mh: Likewise.
4146 * config/mips/irix6.mh: Likewise.
4147 * config/pa/hpux.mh: Likewise.
4148 * config/pa/linux.mh: Likewise.
4149 * config/powerpc/aix.mh: Likewise.
4150 * config/sparc/linux.mh: Likewise.
4151 * config/sparc/linux64.mh: Likewise.
4152 * config/sparc/sol2.mh: Likewise.
4153 * config/vax/vax.mh: Likewise.
4154 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
4155 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
4156 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
4157 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
4158 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
4159 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
4160 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
4161 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
4162 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
4163 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
4164 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
4165 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
4166 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
4167 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
4168 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
4169 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
4170 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
4171 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
4172 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
4173 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
4174 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
4175 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
4176 corelow.o from gdb_target_obs.
4177 * corefile.c (core_target): Update the comment on NULL value.
4178 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
4179 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
4180 MATCHES. Drop YUMMY set on NULL.
4181 (core_close): Do not call exit_inferior_silent on zero PID. Do not
4182 reclaim CORE_DATA if it is already NULL.
4183
34365054
DE
41842012-01-09 Doug Evans <dje@google.com>
4185
4186 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
4187 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
4188
696166a3
KS
41892012-01-09 Keith Seitz <keiths@redhat.com>
4190
4191 * breakpoint.c (wrapper.h): Don't include.
4192
8e7b59a5
KS
41932012-01-09 Keith Seitz <keiths@redhat.com>
4194
4195 * Makefile.in (SFILES): Remove wrapper.c.
4196 (HFILES_NO_SRCDIR): Remove wrapper.h.
4197 (COMMON_OBS): Remove wrapper.o.
4198 * cli/cli-interp.c: Don't inlude wrapper.h.
4199 * corelow.c: Likewise.
4200 (core_open): Replace gdb_target_find_new_threads with
4201 TRY_CATCH around target_find_new_threads.
4202 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
4203 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
4204 * varobj.c (varobj_create): Likewise for parse_exp_1 and
4205 evaluate_expression.
4206 (varobj_set_value): Likewise for evaluate_expression and
4207 value_assign.
4208 (install_new_variable): Likewise for value_fetch_lazy.
4209 (adjust_value_for_child_access): Likewise for value_ind.
4210 (c_describe_child): Likewise for value_subscript and
4211 value_ind.
4212 (c_value_of_root): Likewise for evaluate_expression.
4213 * wrapper.c: Remove.
4214 * wrapper.h: Remove.
4215
1a4eeb98
DE
42162012-01-09 Doug Evans <dje@google.com>
4217
9ff913ba
DE
4218 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
4219 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
4220 "abfd" args with "section". All callers updated.
4221 Error checking code moved ...
4222 (error_check_comp_unit_head): ... here. New function.
4223 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
4224 Delete arg "abfd". New arg "type_offset". All callers updated.
4225 (create_debug_types_hash_table): Simplify by using
4226 read_and_check_type_unit_head.
4227
1a4eeb98
DE
4228 * parser-defs.h (namecopy): Delete.
4229 * parse.c (namecopy, namecopy_size): Move into copy_name.
4230
2e6af8c0
JK
42312012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4232
4233 Partially fix duplicate .o files after omitting libbfd.a.
4234 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
4235 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4236 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
4237 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4238 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
4239 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
4240 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4241
9f2f828a
PA
42422012-01-09 Pedro Alves <palves@redhat.com>
4243
4244 * MAINTAINERS: Update my email address.
4245
4d72c0bc
DE
42462012-01-08 Doug Evans <dje@google.com>
4247
d467dd73
DE
4248 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
4249 n_type_units. Rename type_comp_units to all_type_units.
4250 All uses updated.
4251 (add_signatured_type_cu_to_table): Renamed from
4252 add_signatured_type_cu_to_list. All callers updated.
4253
4d72c0bc
DE
4254 * gdbtypes.h (struct cplus_struct_type): Delete member
4255 nfn_fields_total. All uses removed.
4256
21b2bd31
DE
42572012-01-06 Doug Evans <dje@google.com>
4258
4259 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
4260 to top of file.
4261 (dwarf2_find_comp_unit): Delete.
4262 (process_psymtab_comp_unit): Make result "void".
4263 Delete args buffer, info_ptr, buffer_size, and replace with
4264 "section". All callers updated.
4265 (dwarf2_build_psymtabs_hard): Simplify.
4266
bfd189b1
SDJ
42672012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
4268 Thiago Jung Bauermann <bauerman@br.ibm.com>
4269
4270 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
4271 before `struct gdb_exception'.
4272 * breakpoint.c (update_global_location_list_nothrow)
4273 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
4274 * cp-abi.c (value_rtti_type): Likewise.
4275 * cp-support.c (cp_validate_operator): Likewise.
4276 * infrun.c (insert_exception_resume_breakpoint)
4277 (check_exception_resume, keep_going): Likewise.
4278 * mi-interp.c (mi_breakpoint_created)
4279 (mi_breakpoint_modified): Likewise.
4280 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
4281 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
4282 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
4283
6b07635f
DE
42842012-01-05 Doug Evans <dje@google.com>
4285
0b30b85c
DE
4286 * dwarf2read.c (statement_prologue): Delete, unused.
4287
98714339
DE
4288 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
4289 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
4290
6b07635f
DE
4291 * dwarf2read.c (comp_unit_header): Delete, unused.
4292
761f4555
UW
42932012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
4294
4295 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
4296 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
4297
2ca0b532
PA
42982012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
4299
4300 * infrun.c (normal_stop): Don't skip calling the normal_stop
4301 observers if the thread was doing a multi-step, but stopped for
4302 some reason other than stepping.
4303
50aeff07
PA
43042012-01-05 Pedro Alves <alves.ped@gmail.com>
4305
4306 * cli/cli-decode.h: Add comments.
4307 (CMD_LIST_AMBIGUOUS): Moved to command.h
4308 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4309 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
4310 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
4311 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
4312 (add_com, add_com_alias, add_info, add_info_alias)
4313 (complete_on_cmdlist, complete_on_enum, help_list): Remove
4314 declarations.
4315 * command.h: Add and adjust comments.
4316 (CMD_LIST_AMBIGUOUS): Moved here.
4317 (help_cmd, help_cmd_list): Delete declarations.
4318
5953832c
DE
43192012-01-04 Doug Evans <dje@google.com>
4320
e5fe5e75
DE
4321 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
4322 All callers updated.
4323 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
4324 Replace all arguments with "per_cu". All callers updated.
4325
28dee7f5
DE
4326 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
4327
23745b47
DE
4328 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
4329 New arg "per_cu". All callers updated.
4330
5953832c
DE
4331 Delete #if 0'd out code.
4332 * language.c (binop_result_type): Delete.
4333 (simple_type, ordered_type, same_type, integral_type): Delete.
4334 (numeric_type, character_type, string_type, boolean_type): Delete.
4335 (float_type, structured_type): Delete.
4336 * language.h: Update.
4337
0f5b7562
TT
43382012-01-04 Tom Tromey <tromey@redhat.com>
4339
4340 * python/py-value.c (valpy_binop): Initialize 'res_val'.
4341
78218f56
JB
43422012-01-04 Joel Brobecker <brobecker@adacore.com>
4343
4344 * corefile.c (close_exec_file): Delete.
4345 (reopen_exec_file): Remove commented out code that seems related
4346 to close_exec_file, which is being deleted here.
4347 * inferior.h (close_exec_file): Delete.
4348 * fork-child.c (fork_inferior): Remove call to fork_inferior.
4349
0fcd72ba
JB
43502012-01-04 Joel Brobecker <brobecker@adacore.com>
4351
4352 * ada-lang.c: #include "cli/cli-utils.h".
4353 (get_selections): Use skip_spaces.
4354 (ada_get_next_arg): Use skip_spaces and skip_to_space.
4355 (catch_ada_exception_command_split): Use skip_spaces.
4356 (ada_decode_assert_location): Likewise.
4357
1dabb4c4
JB
43582012-01-04 Joel Brobecker <brobecker@adacore.com>
4359
4360 * linespec.c (decode_line_internal): Check for C++ or Java
4361 compound constructs only if the current language is C, C++
4362 or Java.
4363
5931a2fa
JK
43642012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4365
4366 Revert:
4367 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4368 Joel Brobecker <brobecker@adacore.com>
4369 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
4370 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
4371 3 times.
4372 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
4373 fall through into AT_ENTRY_POINT.
4374 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
4375 DUMMY_ADDR with it.
4376 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
4377 PPC_INSN_SIZE skip to 3 times.
4378
1a2da5ee
JB
43792012-01-04 Joel Brobecker <brobecker@adacore.com>
4380
4381 * linespec.c (add_minsym): Preserve function descriptors.
4382
8645ff69
UW
43832012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4384
4385 * breakpoint.c (all_locations_are_pending): Consider locations
4386 in program spaces executing during startup pending as well.
4387
0b302171
JB
43882012-01-04 Joel Brobecker <brobecker@adacore.com>
4389
4390 Copyright year update in most files of the GDB Project.
4391
8ba098ad
JB
43922012-01-04 Joel Brobecker <brobecker@adacore.com>
4393
4394 * copyright.sh: Delete.
4395 * copyright.py: Rewrite.
4396
09c01c30
JB
43972012-01-04 Joel Brobecker <brobecker@adacore.com>
4398
4399 * gnulib/extra/update-copyright: New file, imported from gnulib.
4400
3c36c0af
JB
44012012-01-04 Joel Brobecker <brobecker@adacore.com>
4402
4403 * README (Copyright and License Notices): New section.
4404
888fe1e1
TT
44052012-01-03 Tom Tromey <tromey@redhat.com>
4406
4407 PR python/12533:
4408 * python/py-value.c (valpy_dereference, valpy_get_address
4409 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
4410 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
4411 (valpy_absolute, valpy_richcompare): Free intermediate values.
4412
6e681866
JB
44132011-01-03 Joel Brobecker <brobecker@adacore.com>
4414
4415 * ada-lang.c: Reformat the copyright notice.
4416
0cd09acb
JK
44172012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4418
4419 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4420 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
4421 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
4422 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
4423 Revert this part of:
4424 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4425 Build gdb directly from *.o files not using libgdb.a.
4426 * Makefile.in (COMMON_OBS): Remove solib-target.o.
4427
12c3e59c
JB
44282012-01-02 Joel Brobecker <brobecker@adacore.com>
4429
4430 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
4431 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
4432 Reformat the copyright header.
4433
11bf1490
JK
44342012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 Revert this part of:
4437 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4438 Remove the gdbtui binary.
4439 * gdb.c (main): Remove args.interpreter_p initialization.
4440 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
4441 * main.h (struct captured_main_args): Remove interpreter_p.
4442
1fef196f
JB
44432012-01-02 Joel Brobecker <brobecker@adacore.com>
4444
4445 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
4446
67827812
JB
44472012-01-02 Joel Brobecker <brobecker@adacore.com>
4448
4449 * top.c (print_gdb_version): Update copyright year.
4450
a4d0b831
YQ
44512012-01-02 Yao Qi <yao@codesourcery.com>
4452
4453 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
4454
b5914469
JK
44552012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4456 Joel Brobecker <brobecker@adacore.com>
4457
4458 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
4459 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
4460 3 times.
4461 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
4462 fall through into AT_ENTRY_POINT.
4463 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
4464 DUMMY_ADDR with it.
4465 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
4466 PPC_INSN_SIZE skip to 3 times.
4467
8da828f7
JK
44682012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4469
4470 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
4471 the return value.
4472 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
4473
8574e74b
JK
44742012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4475
4476 Build gdb directly from *.o files not using libgdb.a.
4477 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
4478 (COMMON_OBS): Remove solib-target.o.
4479 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
4480 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
4481 (LIBGDB_OBS, libgdb.a): Move it above.
4482 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
4483 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
4484 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
4485 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
4486 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
4487 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
4488 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
4489 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
4490 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
4491 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
4492 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
4493 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
4494 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
4495 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
4496 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
4497 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
4498 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
4499 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
4500 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
4501 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
4502 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
4503 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
4504 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
4505 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
4506 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
4507 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
4508 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
4509
217bff3e
JK
45102012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4511
4512 Remove the gdbtui binary.
4513 * .gitignore (/gdbtui): Remove.
4514 * Makefile.in (TUI): Remove.
4515 (SUBDIR_TUI_OBS): Remove tui-main.o.
4516 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
4517 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
4518 (tui-main.o): Remove.
4519 (all_object_files): Remove tui-main.o.
4520 * NEWS: New note for the gdbtui removal.
4521 * configure: Rebuilt.
4522 * configure.ac: No longer add all-tui, clean-tui, install-tui and
4523 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
4524 CONFIG_UNINSTALL respectively.
4525 * gdb.c (main): Remove args.interpreter_p initialization.
4526 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
4527 * main.h (struct captured_main_args): Remove interpreter_p.
4528 * tui/tui-main.c: Remove.
4529
9cdd5dbd
DE
45302012-01-01 Doug Evans <dje@google.com>
4531
bb5ed363
DE
4532 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
4533 (dwarf2_physname, read_import_statement): Ditto.
4534 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
4535 (process_structure_scope read_subroutine_type): Ditto.
4536 (read_typedef, load_partial_dies, read_partial_die): Ditto.
4537 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
4538 (dwarf2_fetch_die_location_block): Ditto.
4539 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
4540
a0f42c21
DE
4541 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
4542 All callers updated.
4543 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
4544 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
4545 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
4546
2dc860c0
DE
4547 * dwarf2read.c (load_cu): Move assert to more useful location.
4548
68dc6402
DE
4549 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
4550 All callers updated.
4551
9cdd5dbd
DE
4552 * dwarf2read.c (dwarf2_per_objfile): Add comment.
4553 (dwarf2_elf_names): Minor reformat.
4554 (dwarf2_per_cu_data): Tweak comment.
4555 (dwarf2_read_section): Fix comment.
4556 (create_all_comp_units): Fix comment.
4557 (load_full_comp_unit): Fix comment.
4558 (process_full_comp_unit): Fix comment.
4559 (read_signatured_type): Fix comment.
4560
0c10e53e 4561For older changes see ChangeLog-2011.
c906108c
SS
4562\f
4563Local Variables:
4564mode: change-log
4565left-margin: 8
4566fill-column: 74
4567version-control: never
57da7796 4568coding: utf-8
c906108c 4569End:
This page took 1.825737 seconds and 4 git commands to generate.