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