2012-02-21 Pedro Alves <palves@redhat.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
b54a8fd7
PA
12012-02-21 Tristan Gingold <gingold@adacore.com>
2 Pedro Alves <palves@redhat.com>
3
4 * ia64-tdep.c: Do not include libunwind-ia64.h.
5 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
6 Include libunwind-ia64.h instead of libunwind.h.
7 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8 for libunwind.h existence.
9 * configure, config.in: Regenerate.
10
dfcee124
AG
112012-02-21 Anton Gorenkov <xgsa@yandex.ru>
12
13 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
14 instead of value_rtti_target_type.
15 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
16 instead of value_rtti_target_type.
17 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
18 value_rtti_target_type.
19 * valops.c (value_ind): Extract function readjust_indirect_value_type.
20 (value_rtti_target_type): Rename to ...
21 (value_rtti_indirect_type): ... here and make it indirect. Update
22 function comment.
23 * value.c (readjust_indirect_value_type): New function.
24 (coerce_ref): Support for enclosing type setting for references
25 with readjust_indirect_value_type.
26 * value.h (readjust_value_type): New declaration.
27 (value_rtti_target_type): Rename to ...
28 (value_rtti_indirect_type): ... here.
29
02568277
AG
302012-02-21 Anton Gorenkov <xgsa@yandex.ru>
31
32 * MAINTAINERS (Write After Approval): Add myself to the list.
33
10c07b7e 342012-02-20 Doug Evans <dje@google.com>
28ee876a 35
d82ea6a8
DE
36 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
37 Rename objfile_p_char parameter to objfilep.
38 (build_objfile_section_table): Result is now void. All callers
39 updated.
40 * objfiles.h (struct objfile): Tweak comments, whitespace.
41 (build_objfile_section_table): Update.
42
28ee876a
DE
43 * elfread.c (elf_symfile_segments): Fix warning text.
44
24c79950
TT
452012-02-20 Tom Tromey <tromey@redhat.com>
46
47 PR gdb/13498:
48 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
49 particular set of file names once.
50 (dw2_map_symbol_filenames): Likewise.
51
3a9b40b6
JK
522012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
53
54 Code cleanup.
55 * main.c (write_files): Remove the declaration.
56 (external_editor_command): Move the declaration ...
57 [GDBTK] (external_editor_command): ... here. Fix the comment.
58
4d0795ca
TT
592012-02-20 Tom Tromey <tromey@redhat.com>
60
61 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
62 extraneous block.
63
637fd620
TG
642012-02-20 Tristan Gingold <gingold@adacore.com>
65
66 * darwin-nat.h (enum darwin_msg_state): Add comments.
67
6f124894
TG
682012-02-20 Tristan Gingold <gingold@adacore.com>
69
70 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
71 value.
72
2e6e3d9c
JB
732012-20-18 Joel Brobecker <brobecker@adacore.com>
74
75 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
76 between function description and implementation.
77
2e8265fd
TT
782012-02-17 Tom Tromey <tromey@redhat.com>
79
80 PR python/12070:
81 * python/py-event.c (event_object_getset): New global.
82 (event_object_type): Reference it.
83 * python/py-type.c (field_object_getset): New global.
84 (field_object_type): Reference it.
85 * python/python-internal.h (gdb_py_generic_dict): Declare.
86 * python/py-utils.c (gdb_py_generic_dict): New function.
87
8544a150 882012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 89
8544a150 90 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 91
ca193e27
TS
922012-02-17 Thomas Schwinge <thomas@codesourcery.com>
93
94 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
95 TYPE_CALLING_CONVENTION annotation.
96
e5586183
KB
972012-02-16 Kevin Buettner <kevinb@redhat.com>
98
99 * MAINTAINERS: Add rx to target ISA section.
100 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
101 (ALLDEPFILES): Add rx-tdep.c.
102
7dcd53a0
TT
1032012-02-16 Tom Tromey <tromey@redhat.com>
104
105 * symfile.c (symbol_file_add_main_1): Use inferior's
106 symfile_flags.
107 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
108 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
109 inferior.
110 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
111 inferior.
112 (follow_exec): Use inferior's symfile_flags.
113 * inferior.h (struct inferior) <symfile_flags>: New field.
114
ddd60447
MF
1152012-02-16 Mike Frysinger <vapier@gentoo.org>
116
117 PR gdb/9734:
118 * remote-sim.c (gdbsim_create_inferior): Call error() when
119 sim_create_inferior() fails.
120
b0d32fb6
TG
1212012-02-16 Josh Matthews <josh@joshmatthews.net>
122
123 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
124
9addecb9
TT
1252012-02-16 Tom Tromey <tromey@redhat.com>
126
127 PR c++/13653:
128 * thread.c (struct current_thread_cleanup) <was_removable>: New
129 field.
130 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
131 (make_cleanup_restore_current_thread): Initialize new field.
132
a58b110a
KB
1332012-02-15 Kevin Buettner <kevinb@redhat.com>
134
135 * MAINTAINERS: Add rl78 to target ISA section.
136 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
137 (ALLDEPFILES): Add rl78-tdep.c.
138 * NEWS: Mention rl78 as a new target.
139
4cb6da1c
AR
1402012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
141
142 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
143 data.
144 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
145
3af2590d
TT
1462012-02-15 Tom Tromey <tromey@redhat.com>
147
148 PR gdb/12659:
149 * infcmd.c (registers_info): Print just the current register's
150 name.
151
c6910659
TT
1522012-02-15 Tom Tromey <tromey@redhat.com>
153
154 * python/py-symbol.c (sympy_value): Use _().
155
7cee1e54
PA
1562012-02-15 Pedro Alves <palves@redhat.com>
157
158 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
159 output to be like native targets'.
160 (remote_pid_to_str): Special case the null ptid.
161
816338b5
SS
1622012-02-14 Stan Shebs <stan@codesourcery.com>
163
164 * NEWS: Mention enable count command.
165 * breakpoint.h (struct breakpoint): New field enable_count.
166 * breakpoint.c (enable_breakpoint_disp): Add count argument.
167 (enable_breakpoint): Add arg to call.
168 (struct disp_data): New struct.
169 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
170 (do_map_enable_once_breakpoint): Create a struct and pass it.
171 (do_map_enable_delete_breakpoint): Ditto.
172 (do_map_enable_count_breakpoint): New function.
173 (enable_count_command): New function.
174 (bpstat_stop_status): Decrement enable_count.
175 (print_one_breakpoint_location): Report enable count.
176 (_initialize_breakpoint): Add enable count command.
177
c47a44f4
KB
1782012-02-14 Kevin Buettner <kevinb@redhat.com>
179
180 * rl78-tdep.c (reggroups.h): Include.
181 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
182 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
183 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
184 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
185 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
186 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
187 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
188 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
189 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
190 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
191 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
192 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
193 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
194 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
195 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
196 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
197 beginning of register list.
198 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
199 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
200 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
201 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
202 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
203 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
204 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
205 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
206 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
207 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
208 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
209 the pseudo registers. Rearrange other pseudo registers too so
210 that the bank registers appear at the end.
211 (rl78_register_type): Account for the fact that the byte sized
212 bank registers are now pseudo-registers.
213 (rl78_register_name): Rearrange the register name array. Make
214 initial set of raw banked registers inaccessible.
215 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
216 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
217 case for copying bytes back and forth between raw and pseudo
218 versions of the banked registers. Update other cases to reflect
219 the changed names.
220 (rl78_return_value): Update to account for changed names of
221 raw registers.
222 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
223 rl78_register_sim_regno().
224
e4569f1e
KB
2252012-02-14 Kevin Buettner <kevinb@redhat.com>
226
227 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
228 the name parameter being passed to find_pc_partial_function().
229
7a05aae7
JK
2302012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
231
232 * MAINTAINERS: Step down from being ia64 target maintainer.
233
11fde611
JK
2342012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
235
236 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
237 compilation warning.
238
57008375
JK
2392012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
240
241 Fix crash on loaded shlibs without loaded exec_bfd.
242 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
243 (set_section_command): Replace exec_bfd by p->bfd.
244
ff3c9849
TT
2452012-02-10 Tom Tromey <tromey@redhat.com>
246
247 * linespec.c (decode_line_internal): Skip symtabs_from_filename
248 when we have a C++ qualified name.
249
db2b9fdd
PA
2502012-02-10 Pedro Alves <palves@redhat.com>
251
252 * inferior.c (inferior_pid_to_str): New.
253 (print_inferior, inferior_command): Use it.
254
12cd34f3
PA
2552012-02-10 Pedro Alves <palves@redhat.com>
256
257 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
258 the test CFLAGS.
259 * configure: Regenerate.
260
e871429d
JK
2612012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
262
263 * linespec.c (decode_line_internal): Fix comment correctness.
264
1916efaf
PA
2652012-02-09 Valery Khromov <valery.khromov@gmail.com>
266
267 PR gdb/12953
268 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
269 * amd64bsd-nat.c: Add support for debug registers (adapted from
270 i386bsd-nat.c).
271 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
272 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
273 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
274 (amd64bsd_dr_get_control): New functions.
275 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
276 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
277 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
278 watchpoints initialization.
279 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
280
f4859d94
JK
2812012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
282
283 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
284 flds_bnds.fields.
285 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
286
c56a97f9
JK
2872012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
288
289 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
290
1a119f36
JB
2912012-02-08 Joel Brobecker <brobecker@adacore.com>
292
293 * language.h (symbol_name_cmp_ftype): Renames
294 symbol_name_match_p_ftype.
295 (struct language_defn)[la_get_symbol_name_cmp]: Renames
296 la_get_symbol_name_match_p.
297 * ada-lang.c (ada_get_symbol_name_cmp): Renames
298 ada_get_symbol_name_match_p. Update comment.
299 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
300 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
301 Renames symbol_name_match_p. Update field type.
302 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
303 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
304 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
305 "la_get_symbol_name_cmp" in comments.
306 * language.c: Likewise.
307
c71bb1cf
RO
3082012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
309
310 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
311 %eflags offset.
312 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
313 (amd64_sol2_gregset32_reg_offs): Likewise.
314
4b2d20a5
TG
3152012-02-08 Joel Brobecker <brobecker@adacore.com>
316
317 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
318 of the returned BFD is allocated by GDB.
319
f0823d2c
TT
3202012-02-07 Tom Tromey <tromey@redhat.com>
321
322 PR python/12027:
323 * python/python-internal.h (frame_object_type): Declare.
324 * python/py-symbol.c (sympy_needs_frame): New function.
325 (sympy_value): New function.
326 (symbol_object_getset): Add "needs_frame".
327 (symbol_object_methods): Add "value".
328 * python/py-frame.c (frame_object_type): No longer static.
329
64e7d9dd
TT
3302012-02-07 Tom Tromey <tromey@redhat.com>
331
332 PR python/13599:
333 * python/py-symbol.c (sympy_line): New function.
334 (symbol_object_getset): Add "line".
335
1d6b2d2b
TT
3362012-02-07 Tom Tromey <tromey@redhat.com>
337
338 * charset.c (find_charset_names): Check 'in' against NULL.
339
0d5cff50
DE
3402012-02-06 Doug Evans <dje@google.com>
341
342 * gdbtypes.h (struct main_type): Change type of name,tag_name,
343 and fields.name members from char * to const char *. All uses updated.
344 (struct cplus_struct_type): Change type of fn_fieldlists.name member
345 from char * to const char *. All uses updated.
346 (type_name_no_tag): Update.
347 (lookup_unsigned_typename, lookup_signed_typename): Update.
348 * gdbtypes.c (type_name_no_tag): Change result type
349 from char * to const char *. All callers updated.
350 (lookup_unsigned_typename, lookup_signed_typename): Change type of
351 name parameter from char * to const char *.
352 * symtab.h (struct cplus_specific): Change type of demangled_name
353 member from char * to const char *. All uses updated.
354 (struct general_symbol_info): Change type of name and
355 mangled_lang.demangled_name members from char * to const char *.
356 All uses updated.
357 (symbol_get_demangled_name, symbol_natural_name): Update.
358 (symbol_demangled_name, symbol_search_name): Update.
359 * symtab.c (symbol_get_demangled_name): Change result type
360 from char * to const char *. All callers updated.
361 (symbol_natural_name, symbol_demangled_name): Ditto.
362 (symbol_search_name): Ditto.
363 (completion_list_add_name): Change type of symname,sym_text,
364 text,word parameters from char * to const char *.
365 (completion_list_objc_symbol): Change type of sym_text,
366 text,word parameters from char * to const char *.
367 * ada-lang.c (find_struct_field): Change type of name parameter
368 from char * to const char *.
369 (encoded_ordered_before): Similarly for N0,N1 parameters.
370 (old_renaming_is_invisible): Similarly for function_name parameter.
371 (ada_type_name): Change result type from char * to const char *.
372 All callers updated.
373 * ada-lang.h (ada_type_name): Update.
374 * buildsym.c (hashname): Change type of name parameter
375 from char * to const char *.
376 * buildsym.h (hashname): Update.
377 * dbxread.c (end_psymtab): Change type of include_list parameter
378 from char ** to const char **.
379 * dwarf2read.c (determine_prefix): Change result type
380 from char * to const char *. All callers updated.
381 * f-lang.c (find_common_for_function): Change type of name, funcname
382 parameters from char * to const char *.
383 * f-lang.c (find_common_for_function): Update.
384 * f-valprint.c (list_all_visible_commons): Change type of funcname
385 parameters from char * to const char *.
386 * gdbarch.sh (static_transform_name): Change type of name parameter
387 and result from char * to const char *.
388 * gdbarch.c: Regenerate.
389 * gdbarch.h: Regenerate.
390 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
391 of name parameter from char * to const char *.
392 * jv-lang.c (java_primitive_type_from_name): Ditto.
393 (java_demangled_signature_length): Similarly for signature parameter.
394 (java_demangled_signature_copy): Ditto.
395 (java_demangle_type_signature): Ditto.
396 * jv-lang.h (java_primitive_type_from_name): Update.
397 (java_demangle_type_signature): Update.
398 * objc-lang.c (specialcmp): Change type of a,b parameters
399 from char * to const char *.
400 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
401 from char * to const char *. All callers updated.
402 * p-lang.h (is_pascal_string_type): Update.
403 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
404 of name parameter from char * to const char *.
405 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
406 * utils.c (fprintf_symbol_filtered): Ditto.
407 * defs.h (fprintf_symbol_filtered): Update.
408 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
409 * stabsread.h (end_psymtab): Update.
410 * stack.c (find_frame_funname): Change type of funname parameter
411 from char ** to const char **.
412 * stack.h (find_frame_funname): Update.
413 * typeprint.c (type_print): Change type of varstring parameter
414 from char * to const char *.
415 * value.h (type_print): Update.
416 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
417 from char * to const char *. All callers updated.
418 (xcoff_end_psymtab): Change type of include_list parameter
419 from char ** to const char **. All callers updated.
420 (swap_sym): Similarly for name parameter. All callers updated.
421 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
422 Use xstrdup.
423 (process_coff_symbol): Use xstrdup.
424 * stabsread.c (stabs_method_name_from_physname): Renamed from
425 update_method_name_from_physname. Change result type from void
426 to char *. All callers updated.
427 (read_member_functions): In has_destructor case, store name in objfile
428 obstack instead of malloc space. In !has_stub case, fix mem leak.
429
5579a92e
TT
4302012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
431
432 * configure: Rebuild.
433 * configure.ac: Put -L../bfd and -L../libiberty at the front of
434 LDFLAGS.
435
9058f767
KB
4362012-02-03 Kevin Buettner <kevinb@redhat.com>
437
438 * configure.tgt (rl78-*-elf): New target.
439 * rl78-tdep.c: New file.
440
5b37825d
PW
4412012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
442
443 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
444 and continue the loop. Add QUIT statement.
445
e009ee71
TT
4462012-02-03 Tom Tromey <tromey@redhat.com>
447
448 PR gdb/13596:
449 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
450 bfd_lookup_symbol_from_symtab.
451 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
452 gdb_bfd_lookup_symbol_from_symtab.
453
f7e44f65
JB
4542012-02-03 Joel Brobecker <brobecker@adacore.com>
455
456 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
457 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
458 symbol. Add assertion that sym2 is never NULL.
459
2c02bd72
DE
4602012-02-02 Doug Evans <dje@google.com>
461
462 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
463 "name" parameter to const char ** from char **. All callers updated.
464 (find_pc_partial_function): Ditto.
465 (cache_pc_function_name): Change type to const char * from char *.
466 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
467 (find_pc_partial_function): Update.
468 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
469 type of "name" parameter to const char * from char *.
470 All uses updated.
471 * arch-utils.c (generic_in_solib_return_trampoline): Change
472 type of "name" parameter to const char * from char *.
473 * arch-utils.h (generic_in_solib_return_trampoline): Update.
474 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
475 type of "name" parameter to const char * from char *.
476 * gdbarch.sh (in_solib_return_trampoline): Ditto.
477 * gdbarch.c: Regenerate.
478 * gdbarch.h: Regenerate.
479 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
480 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
481 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
482 type of "name" parameter to const char * from char *.
483 * skip.c (skip_function_pc): Ditto.
484 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
485 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
486 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
487 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
488 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
489 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
490 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
491 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
492 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
493
e886a173
PA
4942012-02-02 Pedro Alves <palves@redhat.com>
495
496 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
497 the current inferior has no execution. Make sure the current
498 remote process matches gdb's current inferior.
499
c709a7c2
TT
5002012-02-02 Tom Tromey <tromey@redhat.com>
501
502 PR gdb/13405:
503 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
504 read-only memory.
505
f149aabd
TT
5062012-02-02 Tom Tromey <tromey@redhat.com>
507
508 PR gdb/9307:
509 * symtab.c (lookup_language_this): Set block_found.
510
03bef283
TT
5112012-02-01 Tom Tromey <tromey@redhat.com>
512
513 PR gdb/13431:
514 * jit.c (struct jit_inferior_data): Rewrite.
515 (struct jit_objfile_data): New.
516 (get_jit_objfile_data): New function.
517 (add_objfile_entry): Update.
518 (jit_read_descriptor): Return int. Replace descriptor_addr
519 argument with inf_data. Update. Don't call error.
520 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
521 descriptor here.
522 (jit_inferior_init): Don't look up descriptor. Don't call error.
523 (jit_reset_inferior_data_and_breakpoints)
524 (jit_inferior_created_observer): Remove.
525 (jit_inferior_exit_hook): Update.
526 (jit_executable_changed_observer): Remove.
527 (jit_event_handler): Update.
528 (free_objfile_data): Reset inferior data if needed.
529 (_initialize_jit): Update.
530
f0bbc364
TT
5312012-02-01 Tom Tromey <tromey@redhat.com>
532
533 * jit.c (bfd_open_from_target_memory): Move higher in file.
534
47c1316c
TG
5352012-02-01 Tristan Gingold <gingold@adacore.com>
536
537 * libunwind-frame.c (libunwind_load): Display message if dlopen
538 failed.
539
8e704927
GB
5402012-02-01 Gary Benson <gbenson@redhat.com>
541
542 * symtab.h (symbol_name_match_p_ftype): New typedef.
543 (iterate_over_symbols): Use the above.
544 * symtab.c (iterate_over_symbols): Likewise.
545 * language.h (language_defn->la_iterate_over_symbols): Likewise.
546 * ada-lang.c (ada_iterate_over_symbols): Likewise.
547 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
548 (iterate_name_matcher): Document return values.
549 (collect_one_symbol): Likewise.
550 (collect_function_symbols): Likewise.
551 (collect_symbols): Likewise.
552
d9680e73
TT
5532012-02-01 Tom Tromey <tromey@redhat.com>
554
555 * ada-lang.c (resolve_subexp): Update.
556 (ada_lookup_symbol_list): Add 'full_search' argument.
557 (ada_iterate_over_symbols): Pass 0 as full_search argument to
558 ada_lookup_symbol_list.
559 (ada_lookup_encoded_symbol): Update.
560 (get_var_value): Update.
561 * ada-exp.y (block_lookup): Update.
562 (write_var_or_type): Update.
563 (write_name_assoc): Update.
564 * ada-lang.h (ada_lookup_symbol_list): Update.
565
72e1143f
TT
5662012-01-31 Tom Tromey <tromey@redhat.com>
567
568 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
569 comment.
570
ab2d2ad3
DE
5712012-01-31 Doug Evans <dje@google.com>
572
573 * symtab.h: Remove outdated comment.
e9111bf7 574 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 575
bc884eba
JB
5762012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
577
578 Fix build error in Darwin port.
579 * i386-darwin-nat.c: Include i386-nat.h.
580
8fc3fc34
TT
5812012-01-30 Tom Tromey <tromey@redhat.com>
582
583 PR breakpoints/13568:
584 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
585 argument. Check for recursive includes.
586 (dwarf_decode_macros): Create an include hash.
587
5d853008
ME
5882012-01-30 Michael Eager <eager@eagercon.com>
589
590 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
591 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 592 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
593 (powerpc_linux_in_plt_stub): New function.
594 (powerpc_linux_in_dynsym_resolve_code): New function.
595 (ppc_skip_trampoline_code): New function.
596 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
597 Use glibc_skip_solib_resolver.
598
40478521
JK
5992012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
600
601 Code cleanup: Make 1440 bytes of data segment read-only.
602 * arch-utils.c (endian_enum): Make it const char *const [].
603 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
604 Likewise.
605 * breakpoint.c (always_inserted_enums): Likewise.
606 * cli/cli-cmds.c (script_ext_enums): Likewise.
607 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
608 enumlist parameter const char *const *.
609 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
610 const char *const *.
611 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
612 parameter const char *const *.
613 * cris-tdep.c (cris_modes): Make it const char *const [].
614 * filesystem.c (target_file_system_kinds): Likewise.
615 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
616 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
617 (can_use_displaced_stepping_enum, scheduler_enums)
618 (exec_direction_names): Likewise.
619 * language.c (_initialize_language): Make the type_or_range_names and
620 case_sensitive_names variables const char *const [].
621 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
622 * python/python.c (python_excp_enums): Likewise.
623 * remote.c (interrupt_sequence_modes): Likewise.
624 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
625 * serial.c (logbase_enums): Likewise.
626 * sh-tdep.c (sh_cc_enum): Likewise.
627 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
628 Likewise.
629 * symtab.c (multiple_symbols_modes): Likewise.
630 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
631 Likewise.
632 * utils.c (internal_problem_modes): Likewise.
633
b3b8b934
JK
6342012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
635
636 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
637 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
638 result.
639
8c85a4e2
DE
6402012-01-27 Doug Evans <dje@google.com>
641
642 * configure.ac (with_python): Fix absolute path handling for win32.
643 * configure: Regenerate.
644
78d8b4d7
DE
6452012-01-26 Doug Evans <dje@google.com>
646
eca864fe
DE
647 * symtab.c: Whitespace cleanup, no code changes.
648
7e082072
DE
649 * symtab.c (lookup_symbol_in_language): Improve comment.
650 (lookup_symbol_aux): Fix comment.
651
7dc25483
DE
652 * psymtab.c (add_psymbol_to_list): Result is now "void".
653 * psympriv.h (add_psymbol_to_list): Update.
654
78d8b4d7
DE
655 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
656
4c63965b
JK
6572012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
658
659 Do not open script filenames twice.
660 * cli/cli-cmds.c (source_script_from_stream): Pass to
661 source_python_script also STREAM.
662 * python/py-auto-load.c (source_section_scripts): Pass to
663 source_python_script_for_objfile also STREAM.
664 (auto_load_objfile_script): Pass to source_python_script_for_objfile
665 also INPUT.
666 * python/python-internal.h (source_python_script_for_objfile): New
667 parameter file, rename parameter file to filename.
668 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
669 instead if !_WIN32. Update the function comment.
670 (source_python_script, source_python_script_for_objfile)
671 (source_python_script): New parameter file, rename parameter file to
672 filename. Pass FILENAME to python_run_simple_file.
673 * python/python.h (source_python_script): New parameter file, rename
674 parameter file to filename.
675
88f38a04
PA
6762012-01-26 Pedro Alves <palves@redhat.com>
677
678 * corelow.c (core_has_fake_pid): Delete.
679 (core_close): Delete references to `core_has_fake_pid'.
680 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
681 (core_open): Delete references to `core_has_fake_pid'.
682 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
683 the removed global.
684
e078317b
JB
6852012-01-26 Joel Brobecker <brobecker@adacore.com>
686
687 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
688 Remove language parameter from name_matcher. Adjust the comment.
689 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
690 Remove language parameter.
691 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
692 * linespec.c (iterate_name_matcher): Likewise.
693 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
694 name_matcher. Adjust call accordingly.
695 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
696 (maintenance_check_symtabs): Adjust type of parameter "fun".
697 * psymtab.h (maintenance_check_symtabs): Likewise.
698
74ccd7f5
JB
6992012-01-26 Joel Brobecker <brobecker@adacore.com>
700
701 * language.h (symbol_name_match_p_ftype): New typedef.
702 (struct language_defn): Replace field la_symbol_name_compare
703 by la_get_symbol_name_match_p.
704 * ada-lang.c (ada_get_symbol_name_match_p): New function.
705 (ada_language_defn): Use it.
706 * linespec.c (struct symbol_matcher_data): New type.
707 (iterate_name_matcher): Rewrite.
708 (iterate_over_all_matching_symtabs): Pass a pointer to
709 a symbol_matcher_data struct to expand_symtabs_matching
710 instead of just the lookup name.
711 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
712 opencl-lang.c, p-lang.c, language.c: Delete field
713 la_symbol_name_compare, and replace by NULL for new field
714 la_get_symbol_name_match_p.
715 * symfile.h (struct quick_symbol_functions): Update comment.
716
5d268276
TT
7172012-01-25 Tom Tromey <tromey@redhat.com>
718
719 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
720 dereferencing.
721
edcc5120
TT
7222012-01-24 Tom Tromey <tromey@redhat.com>
723
724 PR symtab/12406:
725 * solib.c (update_solib_list): Update the program space's
726 added_solibs and deleted_solibs fields.
727 * progspace.h (struct program_space) <added_solibs,
728 deleted_solibs>: New fields.
729 (clear_program_space_solib_cache): Declare.
730 * progspace.c (release_program_space): Call
731 clear_program_space_solib_cache.
732 (clear_program_space_solib_cache): New function.
733 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
734 bpstat_stop_status. Use handle_solib_event.
735 * breakpoint.c: Include gdb_regex.h.
736 (print_solib_event): New function.
737 (bpstat_print): Use print_solib_event.
738 (bpstat_stop_status): Add special case for bp_shlib_event.
739 (handle_solib_event): New function.
740 (bpstat_what): Use handle_solib_event.
741 (struct solib_catchpoint): New.
742 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
743 (breakpoint_hit_catch_solib, check_status_catch_solib)
744 (print_it_catch_solib, print_one_catch_solib)
745 (print_mention_catch_solib, print_recreate_catch_solib): New
746 functions.
747 (catch_solib_breakpoint_ops): New global.
748 (catch_load_or_unload, catch_load_command_1)
749 (catch_unload_command_1): New functions.
750 (internal_bkpt_check_status): Add special case for
751 bp_shlib_event.
752 (internal_bkpt_print_it): Use print_solib_event.
753 (initialize_breakpoint_ops): Initialize
754 catch_solib_breakpoint_ops.
755 (_initialize_breakpoint): Register "catch load" and "catch
756 unload".
757 * breakpoint.h (handle_solib_event): Declare.
758 * NEWS: Add entry for "catch load" and "catch unload".
759
fa864999
TT
7602012-01-24 Tom Tromey <tromey@redhat.com>
761
762 * ada-lang.c: Include gdb_vecs.h.
763 * charset.c: Include gdb_vecs.h.
764 * tracepoint.h: Include gdb_vecs.h.
765 * gdb_vecs.h: New file.
766
f90263c1
TT
7672012-01-24 Pedro Alves <pedro@codesourcery.com>
768
769 * breakpoint.c (breakpoint_hit_catch_fork)
770 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
771 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
772 * infrun.c (inferior_has_forked, inferior_has_vforked)
773 (inferior_has_execd, inferior_has_called_syscall): Delete.
774 (handle_syscall_event): Get syscall_number from the execution
775 control state's wait status.
776 (wait_for_inferior): Don't clear syscall_number.
777
09ac7c10
TT
7782012-01-24 Pedro Alves <palves@redhat.com>
779
780 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
781 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
782 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
783 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
784 `ws' parameter.
785 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
786 false for events other than TARGET_SIGNAL_TRAP.
787 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
788 Add `ws' parameter.
789 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
790 events other than TARGET_SIGNAL_TRAP.
791 (tracepoint_breakpoint_hit): Add `ws' parameter.
792 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
793 parameter.
794 (bpstat_stop_status): Same.
795 (pc_at_non_inline_function): Same.
796 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
797 to pass the current event's waitstatus to bpstat_stop_status
798 and pc_at_non_inline_function.
799
86eb7e95
JK
8002012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
801
802 Code cleanup.
803 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
804 Update the function comment for it.
805 (source_script_with_search): Call make_cleanup_fclose for STREAM.
806 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
807 for STREAM.
808
a9b3a50f
PA
8092012-01-24 Pedro Alves <palves@redhat.com>
810
811 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
812 outside `bs->stop' block.
813 (bpstat_what): Rework bp_shlib_event handling.
814 (internal_bkpt_check_status): If the breakpoint is a
815 bp_shlib_event, then set bs->stop and bs->print if
816 stop_on_solib_events is set.
817
53fe1783
GB
8182012-01-24 Gary Benson <gbenson@redhat.com>
819
820 Delete #if 0'd out code.
821 * stack.c (print_frame_label_vars): Remove.
822 (catch_info): Likewise.
823 (_initialize_stack): Remove "info catch" command.
824 * NEWS: Mention the above.
825
49c62f2e
PA
8262012-01-24 Pedro Alves <palves@redhat.com>
827
828 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
829 it.
830 (remote_notice_new_inferior): If the remote end doesn't support
831 the multiprocess extensions, then the PID is fake.
832 (add_current_inferior_and_thread): New.
833 (remote_start_remote): Use it.
834 (extended_remote_attach_1): Adjust.
835 (extended_remote_create_inferior_1): Use
836 add_current_inferior_and_thread.
837
d0d8b0c6
JK
8382012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
839
840 Fix watchpoints to be specific for each inferior.
841 * breakpoint.c (watchpoint_in_thread_scope): Verify also
842 current_program_space.
843 * i386-nat.c (i386_inferior_data_cleanup): New.
844 (i386_inferior_data_get): Replace variable inf_data_local by an
845 inferior_data call.
846 (i386_use_watchpoints): Initialize i386_inferior_data.
847 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
848 specific iterate_over_lwps.
849
4403d8e9
JK
8502012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
851
852 Fix watchpoints across inferior fork.
853 * amd64-linux-nat.c (update_debug_registers_callback): Update the
854 comment for linux_nat_iterate_watchpoint_lwps.
855 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
856 linux_nat_iterate_watchpoint_lwps.
857 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
858 * i386-linux-nat.c (update_debug_registers_callback): Update the
859 comment for linux_nat_iterate_watchpoint_lwps.
860 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
861 linux_nat_iterate_watchpoint_lwps.
862 (i386_linux_prepare_to_resume): New comment on Linux kernel.
863 * i386-nat.c: Include inferior.h.
864 (dr_mirror): Remove.
865 (i386_inferior_data, struct i386_inferior_data)
866 (i386_inferior_data_get): New.
867 (i386_debug_reg_state): Use i386_inferior_data_get.
868 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
869 (i386_insert_watchpoint, i386_remove_watchpoint)
870 (i386_stopped_data_address, i386_insert_hw_breakpoint)
871 (i386_remove_hw_breakpoint): New variable state, use
872 i386_debug_reg_state instead of DR_MIRROR.
873 * linux-nat.c (delete_lwp): New declaration.
874 (num_lwps): Move here from downwards.
875 (delete_lwp_cleanup): New.
876 (linux_child_follow_fork): Create new child_lp, call
877 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
878 PTRACE_DETACH.
879 (num_lwps): Move upwards.
880 (linux_nat_iterate_watchpoint_lwps): New.
881 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
882 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
883
2992c9a7 8842012-01-24 Joel Brobecker <brobecker@adacore.com>
885
886 GDB 7.4 released.
887
e360902b
PA
8882012-01-23 Pedro Alves <palves@redhat.com>
889
890 * top.c (caution): Rename to ...
891 (confirm): ... this.
892 (show_caution): Rename to ...
893 (show_confirm): ... this.
894 (quit_cover): Adjust.
895 (init_main): Adjust.
896 * top.h (caution): Rename to ...
897 (confirm): ... this.
898 * utils.c (internal_vproblem, defaulted_query): Adjust.
899
050a2e1d
PA
9002012-01-23 Pedro Alves <palves@redhat.com>
901
902 * top.c (caution): Update comment.
903 (execute_command): Don't consider the current value of `caution'.
904
77a35dd8
JK
9052012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
906
907 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
908
a71b5a38
UW
9092012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
910
911 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
912 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
913 * target.c (target_fileio_pwrite): Remove buffer address from
914 debug output.
915 (target_fileio_pread): Likewise.
916
d99bd577
UW
9172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
918
919 * NEWS: Document remote "info proc" and "generate-core-file".
920
35c2fab7
UW
9212012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
922
923 * gdbarch.sh (find_memory_regions): New callback.
924 * gdbarch.c, gdbarch.h: Regenerate.
925
926 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
927 callback before falling back to target method.
928
929 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
930 (linux_target_install_ops): No longer install it.
931
932 * linux-tdep.c (linux_find_memory_regions): New function.
933 (linux_init_abi): Install it.
934
6432734d
UW
9352012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
936
937 * gdbarch.sh (make_corefile_notes): New architecture callback.
938 * gdbarch.c: Regenerate.
939 * gdbarch.h: Likewise.
940
941 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
942 before target_make_corefile_notes. If NULL is returned, the
943 target does not support core file generation.
944
945 * linux-nat.c: Include "linux-tdep.h".
946 (find_signalled_thread, find_stop_signal): Remove.
947 (linux_nat_do_thread_registers): Likewise.
948 (struct linux_nat_corefile_thread_data): Likewise.
949 (linux_nat_corefile_thread_callback): Likewise.
950 (iterate_over_spus): Likewise.
951 (struct linux_spu_corefile_data): Likewise.
952 (linux_spu_corefile_callback): Likewise.
953 (linux_spu_make_corefile_notes): Likewise.
954 (linux_nat_collect_thread_registers): New function.
955 (linux_nat_make_corefile_notes): Replace contents by call to
956 linux_make_corefile_notes passing linux_nat_collect_thread_registers
957 as native-only callback.
958
959 * linux-tdep.h: Include "bfd.h".
960 (struct regcache): Add forward declaration.
961 (linux_collect_thread_registers_ftype): New typedef.
962 (linux_make_corefile_notes): Add prototype.
963 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
964 "regset.h", and "elf-bfd.h".
965 (find_signalled_thread, find_stop_signal): New functions.
966 (linux_spu_make_corefile_notes): Likewise.
967 (linux_collect_thread_registers): Likewise.
968 (struct linux_corefile_thread_data): New data structure.
969 (linux_corefile_thread_callback): New funcion.
970 (linux_make_corefile_notes): Likewise.
971 (linux_make_corefile_notes_1): Likewise.
972 (linux_init_abi): Install it.
973
3030c96e
UW
9742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
975
976 * gdbarch.sh (info_proc): New callback.
977 * gdbarch.c, gdbarch.h: Regenerate.
978
979 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
980 before falling back to the target info_proc callback.
981
982 * linux-nat.c: Do not include "cli/cli-utils.h".
983 (linux_nat_info_proc): Remove.
984 (linux_target_install_ops): No longer install it.
985
986 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
987 (read_mapping): New function.
988 (linux_info_proc): Likewise.
989 (linux_init_abi): Install it.
990
145b16a9
UW
9912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
992
993 * defs.h (enum info_proc_what): Moved here from linux-nat.c
994 * infcmd.c: (info_proc_cmd_1): New function.
995 (info_proc_cmd): New function, moved here from equivalent routine
996 orignally in linux-nat.c.
997 (info_proc_cmd_mappings): Likewise.
998 (info_proc_cmd_stat): Likewise.
999 (info_proc_cmd_status): Likewise.
1000 (info_proc_cmd_cwd): Likewise.
1001 (info_proc_cmd_cmdline): Likewise.
1002 (info_proc_cmd_exe): Likewise.
1003 (info_proc_cmd_all): Likewise.
1004 (_initialize_infcmd): Install "info proc" command and subcommands.
1005
1006 * target.h (struct target_ops): Add to_info_proc.
1007 (target_info_proc): Add prototype.
1008 * target.c (target_info_proc): New function.
1009
1010 * procfs.c (procfs_info_proc): Add prototype.
1011 (info_proc_cmd): Rename into ...
1012 (procfs_info_proc): ... this. Update argument types as appropriate
1013 for a to_info_proc implementation. Handle "what" argument.
1014 (procfs_target): Install procfs_info_proc.
1015 (_initialize_procfs): No longer install "info proc" command.
1016
1017 * linux-nat.c: (enum info_proc_what): Remove.
1018 (linux_nat_info_proc_cmd_1): Rename into ...
1019 (linux_nat_info_proc): ... this. Update argument types as appropriate
1020 for a to_info_proc implementation.
1021 (linux_nat_info_proc_cmd): Remove.
1022 (linux_nat_info_proc_cmd_mappings): Likewise.
1023 (linux_nat_info_proc_cmd_stat): Likewise.
1024 (linux_nat_info_proc_cmd_status): Likewise.
1025 (linux_nat_info_proc_cmd_cwd): Likewise.
1026 (linux_nat_info_proc_cmd_cmdline): Likewise.
1027 (linux_nat_info_proc_cmd_exe): Likewise.
1028 (linux_nat_info_proc_cmd_all): Likewise.
1029 (linux_target_install_ops): Install linux_nat_info_proc.
1030 (_initialize_linux_nat): No longer install "info proc" command
1031 and subcommands.
1032
b9e7b9c3
UW
10332012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1034
1035 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1036 * config.in, configure: Regenerate.
1037
1038 * target.h (struct target_ops): Add to_fileio_readlink.
1039 (target_fileio_readlink): Add prototype.
1040 * target.c (target_fileio_readlink): New function.
1041
1042 * inf-child.c: Conditionally include <sys/param.h>.
1043 (inf_child_fileio_readlink): New function.
1044 (inf_child_target): Install it.
1045
1046 * remote.c (PACKET_vFile_readlink): New enum value.
1047 (remote_hostio_readlink): New function.
1048 (init_remote_ops): Install it.
1049 (_initialize_remote): Handle vFile:readlink packet type.
1050
7313baad
UW
10512012-01-20 Pedro Alves <palves@redhat.com>
1052 Ulrich Weigand <ulrich.weigand@linaro.org>
1053
1054 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1055 * config.in, configure: Regenerate.
1056
1057 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1058 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1059 (target_fileio_open): Add prototype.
1060 (target_fileio_pwrite): Likewise.
1061 (target_fileio_pread): Likewise.
1062 (target_fileio_close): Likewise.
1063 (target_fileio_unlink): Likewise.
1064 (target_fileio_read_alloc): Likewise.
1065 (target_fileio_read_stralloc): Likewise.
1066
1067 * target.c: Include "gdb/fileio.h".
1068 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1069 (default_fileio_target): New function.
1070 (target_fileio_open): Likewise.
1071 (target_fileio_pwrite): Likewise.
1072 (target_fileio_pread): Likewise.
1073 (target_fileio_close): Likewise.
1074 (target_fileio_unlink): Likewise.
1075 (target_fileio_close_cleanup): Likewise.
1076 (target_fileio_read_alloc_1): Likewise.
1077 (target_fileio_read_alloc): Likewise.
1078 (target_fileio_read_stralloc): Likewise.
1079
1080 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1081 <fcntl.h>, and <unistd.h>.
1082 (inf_child_fileio_open_flags_to_host): New function.
1083 (inf_child_errno_to_fileio_error): Likewise.
1084 (inf_child_fileio_open): Likewise.
1085 (inf_child_fileio_pwrite): Likewise.
1086 (inf_child_fileio_pread): Likewise.
1087 (inf_child_fileio_close): Likewise.
1088 (inf_child_fileio_unlink): Likewise.
1089 (inf_child_target): Install to_fileio routines.
1090
1091 * remote.c (init_remote_ops): Install to_fileio routines.
1092
901f9912
UW
10932012-01-20 Pedro Alves <palves@redhat.com>
1094 Ulrich Weigand <ulrich.weigand@linaro.org>
1095
1096 * remote.c (remote_multi_process_p): Only check for multi-process
1097 protocol feature, do not check for extended protocol.
1098 (remote_supports_multi_process): Check for extended protocol here.
1099 (set_general_process): Likewise.
1100 (extended_remote_kill): Likewise.
1101 (remote_pid_to_str): Likewise.
1102 (remote_query_supported): Always query multiprocess mode.
1103
e714e1bf
UW
11042012-01-20 Pedro Alves <palves@redhat.com>
1105 Ulrich Weigand <ulrich.weigand@linaro.org>
1106
1107 * inferior.h (struct inferior): Add fake_pid_p.
1108 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1109 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1110 magic_null_ptid since the remote side doesn't provide a real PID.
1111
50897289
TT
11122012-01-19 Tom Tromey <tromey@redhat.com>
1113
1114 * NEWS: Combine the two Python sections.
1115
1afc2033
JK
11162012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1117
1118 * target.h (target_close): Update comment on the target's unpush state.
1119
305436e0
PA
11202012-01-19 Pedro Alves <palves@redhat.com>
1121
1122 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1123 linux_nat_async directly instead of going through the target
1124 vector.
1125 * target.c (unpush_target): Close target after unpushing it, not
1126 before.
1127
49323895
GB
11282012-01-19 Gary Benson <gbenson@redhat.com>
1129
1130 * mdebugread.c (sort_blocks): Replace integer constants with ones
1131 derived from FIRST_LOCAL_BLOCK.
1132
1db33378
PP
11332012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1134 Jan Kratochvil <jan.kratochvil@redhat.com>
1135
1136 PR gdb/9538
1137 * symfile.c (find_separate_debug_file): New function.
1138 (terminate_after_last_dir_separator): Likewise.
1139 (find_separate_debug_file_by_debuglink): Also try realpath.
1140 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1141 * configure: Regenerate.
1142 * config.in: Regenerate.
1143
f83d8a90
DE
11442012-01-18 Doug Evans <dje@google.com>
1145
1146 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1147 (main.o): Remove rule.
1148 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1149 (--with-sysroot): Rewrite.
1150 * configure: Regenerate.
1151 * config.in: Regenerate.
1152
2dbca4d6
SDJ
11532012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1154
1155 * parse.c (initialize_expout): New function.
1156 (reallocate_expout): Likewise.
1157 (parse_exp_in_context): Use `initialize_expout' and
1158 `reallocate_expout' when appropriate.
1159
0695b514
PA
11602012-01-18 Pedro Alves <palves@redhat.com>
1161
1162 * record.c (struct record_breakpoint, record_breakpoint_p)
1163 (record_breakpoints): New.
1164 (record_insert_breakpoint, record_remove_breakpoint): Manage
1165 record breakpoints list. Only remove breakpoints from the
1166 inferior if they had been inserted there in the first place.
1167
136e1c30
DE
11682012-01-17 Doug Evans <dje@google.com>
1169
1170 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1171 if we know we don't have a file name to look for.
1172
c0bf857d
PA
11732012-01-17 Pedro Alves <palves@redhat.com>
1174
1175 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1176 the frame's stop reason is UNWIND_UNAVAILABLE.
1177
b486de60
JK
11782012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1179
1180 Fix compilation error.
1181 * m2-exp.y (yyerror): Use ANSI C prototype.
1182
d04550a6
SDJ
11832012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1184
1185 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1186 (growbuf_by_size): Likewise.
1187 (yyerror): Likewise.
1188 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1189 (modblock): Remove variable (was #if 0'ed).
1190 (parse_number): Convert prototype from K&R to ANSI C.
1191 (yyerror): Likewise.
1192 * objc-exp.y (parse_number): Likewise.
1193 (yyerror): Likewise.
1194 (yylex): Remove #if 0'ed code.
1195 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1196 (yyerror): Likewise.
1197
4aac40c8
TT
11982012-01-16 Tom Tromey <tromey@redhat.com>
1199
1200 * NEWS: Add item.
1201 * symtab.h (compare_filenames_for_search): Declare.
1202 * symtab.c (compare_filenames_for_search): New function.
1203 (iterate_over_some_symtabs): Use it.
1204 * symfile.h (struct quick_symbol_functions)
1205 <map_symtabs_matching_filename>: Change spec.
1206 * psymtab.c (partial_map_symtabs_matching_filename): Use
1207 compare_filenames_for_search. Update for new spec.
1208 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1209 compare_filenames_for_search. Update for new spec.
1210 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1211
cafec441
TT
12122012-01-16 Tom Tromey <tromey@redhat.com>
1213
1214 PR python/13281:
1215 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1216 (struct main_type) <flag_flag_enum>: New field.
1217 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1218 * NEWS: Add entries.
1219 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1220 enums.
1221 * python/lib/gdb/printing.py (_EnumInstance): New class.
1222 (FlagEnumerationPrinter): Likewise.
1223
983af33b
SDJ
12242012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1225
1226 * breakpoint.c (create_sals_from_address_default): New function.
1227 (create_breakpoints_sal_default): Likewise.
1228 (decode_linespec_default): Likewise.
1229 (is_marker_spec): Removed.
1230 (strace_marker_p): New function.
1231 (init_breakpoint_sal): Using `strace_marker_p' instead of
1232 `is_marker_spec'.
1233 (create_breakpoint): Call method `create_sals_from_address' from
1234 breakpoint_ops, replacing code that created SALs conditionally
1235 on the type of the breakpoint. Call method `create_breakpoints_sal',
1236 replacing code that created breakpoints conditionally on the type
1237 wanted.
1238 (base_breakpoint_create_sals_from_address): New function.
1239 (base_breakpoint_create_breakpoints_sal): Likewise.
1240 (base_breakpoint_decode_linespec): Likewise.
1241 (base_breakpoint_ops): Add methods
1242 `base_breakpoint_create_sals_from_address',
1243 `base_breakpoint_create_breakpoints_sal' and
1244 `base_breakpoint_decode_linespec'.
1245 (bkpt_create_sals_from_address): New function.
1246 (bkpt_create_breakpoints_sal): Likewise.
1247 (bkpt_decode_linespec): Likewise.
1248 (tracepoint_create_sals_from_address): Likewise.
1249 (tracepoint_create_breakpoints_sal): Likewise.
1250 (tracepoint_decode_linespec): Likewise.
1251 (strace_marker_create_sals_from_address): Likewise.
1252 (strace_marker_create_breakpoints_sal): Likewise.
1253 (strace_marker_decode_linespec): Likewise.
1254 (strace_marker_breakpoint_ops): New variable.
1255 (addr_string_to_sals): Remove `marker_spec'. Call method
1256 `decode_linespec' from breakpoint_ops, replacing code that decoded
1257 an address string into a SAL. Use `strace_marker_p' instead of
1258 `marker_spec'.
1259 (strace_command): Decide whether we are dealing with a static
1260 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1261 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1262 * breakpoint.h (linespec_result, linespec_sals): New forward
1263 declarations.
1264 (breakpoint_ops) <create_sals_from_address>,
1265 <create_breakpoints_sal>, <decode_linespec>: New methods.
1266
4795f398
DE
12672012-01-14 Doug Evans <dje@google.com>
1268
1269 * NEWS: Update text for "maint set python print-stack".
1270 It is deprecated in gdb 7.4 and deleted in 7.5.
1271
ee5106fe
EZ
12722012-01-13 Eli Zaretskii <eliz@gnu.org>
1273
1274 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1275 including curses.h.
1276
b161e06f
JK
12772012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1278
1279 * configure: Regenerate.
1280 * config.in: Regenerate.
1281
85254831
KS
12822012-01-12 Keith Seitz <keiths@redhat.com>
1283
1284 PR mi/10586
1285 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1286 (ANONYMOUS_UNION_NAME): Define.
1287 (is_path_expr_parent): New function.
1288 (get_path_expr_parent): New function.
1289 (is_anonymous_child): New function.
1290 (create_child_with_value): If the child is anonymous and without
1291 a name, assign an object name to it.
1292 (c_describe_child): Use get_path_expr_parent to determine
1293 the parent expression.
1294 If there field represents an anonymous struct or union and
1295 has no name, set an appropriate display name and expression.
1296 (cplus_describe_child): Likewise.
1297
620fa63a
PA
12982012-01-12 Pedro Alves <palves@redhat.com>
1299
1300 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1301 available when %ebp is found to be zero (outermost).
1302
2efa2c79
AT
13032012-01-11 Andreas Tobler <andreast@fgznet.ch>
1304
1305 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
1306 an internal gdb_static_assert.
1307 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
1308
88e7d25d
TT
13092012-01-11 Tom Tromey <tromey@redhat.com>
1310
1311 PR gdb/9598:
1312 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
1313 catch" and "catch throw".
1314
72384ba3
PH
13152012-01-11 Paul Hilfinger <hilfingr@adacore.com>
1316
1317 * blockframe.c (block_innermost_frame): Start search from selected
1318 frame, if present, or otherwise the current frame.
1319
1320 * c-exp.y (variable): Update innermost_block for
1321 'block COLONCOLON NAME' clause.
1322 * m2-exp.y (variable): Ditto.
1323 * objc-exp.y (variable): Ditto.
1324
065a711f
TT
13252012-01-10 Tom Tromey <tromey@redhat.com>
1326
1327 PR python/13199:
1328 * python/python.c (finish_python_initialization): Set sys.argv.
1329
f3f5162e
DE
13302012-01-10 Doug Evans <dje@google.com>
1331
1332 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
1333 "want_line_info". All callers updated.
1334 (dwarf_decode_lines_1): New function.
1335 (handle_DW_AT_stmt_list): Add function comment.
1336 New arg "want_line_info". All callers updated.
1337 (read_file_scope,read_type_unit_scope): Move comment from
1338 handle_DW_AT_stmt_list to here.
1339
9934703b
JK
13402012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1341
1342 Fix regression after libiberty/ update for GCC PR 6057 and others.
1343 * c-exp.y (operator) <OPERATOR DELETE>
1344 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1345 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
1346 (make_builtin_type, make_name): New variable i, add gdb_assert.
1347 (operator) <OPERATOR NEW>: Update ARGS to 3.
1348 (operator) <OPERATOR DELETE>: Add trailing space.
1349 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
1350 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
1351 * cp-support.c (cp_canonicalize_string): Check NULL from
1352 cp_comp_to_string, call warning and return.
1353
06b9f45f
JK
13542012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1355
1356 Fix duplicate .o files after omitting libbfd.a.
1357 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
1358 (SFILES): Add corelow.c.
1359 (COMMON_OBS): Add corelow.o.
1360 (ALLDEPFILES): Remove corelow.c.
1361 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
1362 * config/alpha/alpha-osf3.mh: Likewise.
1363 * config/alpha/fbsd.mh: Likewise.
1364 * config/arm/nbsdaout.mh: Likewise.
1365 * config/arm/nbsdelf.mh: Likewise.
1366 * config/i386/i386gnu.mh: Likewise.
1367 * config/ia64/hpux.mh: Likewise.
1368 * config/ia64/linux.mh: Likewise.
1369 * config/m32r/linux.mh: Likewise.
1370 * config/m68k/linux.mh: Likewise.
1371 * config/mips/irix5.mh: Likewise.
1372 * config/mips/irix6.mh: Likewise.
1373 * config/pa/hpux.mh: Likewise.
1374 * config/pa/linux.mh: Likewise.
1375 * config/powerpc/aix.mh: Likewise.
1376 * config/sparc/linux.mh: Likewise.
1377 * config/sparc/linux64.mh: Likewise.
1378 * config/sparc/sol2.mh: Likewise.
1379 * config/vax/vax.mh: Likewise.
1380 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
1381 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
1382 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
1383 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
1384 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
1385 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
1386 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
1387 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
1388 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
1389 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
1390 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
1391 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
1392 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1393 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
1394 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
1395 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1396 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
1397 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
1398 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
1399 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
1400 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
1401 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
1402 corelow.o from gdb_target_obs.
1403 * corefile.c (core_target): Update the comment on NULL value.
1404 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
1405 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
1406 MATCHES. Drop YUMMY set on NULL.
1407 (core_close): Do not call exit_inferior_silent on zero PID. Do not
1408 reclaim CORE_DATA if it is already NULL.
1409
34365054
DE
14102012-01-09 Doug Evans <dje@google.com>
1411
1412 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
1413 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
1414
696166a3
KS
14152012-01-09 Keith Seitz <keiths@redhat.com>
1416
1417 * breakpoint.c (wrapper.h): Don't include.
1418
8e7b59a5
KS
14192012-01-09 Keith Seitz <keiths@redhat.com>
1420
1421 * Makefile.in (SFILES): Remove wrapper.c.
1422 (HFILES_NO_SRCDIR): Remove wrapper.h.
1423 (COMMON_OBS): Remove wrapper.o.
1424 * cli/cli-interp.c: Don't inlude wrapper.h.
1425 * corelow.c: Likewise.
1426 (core_open): Replace gdb_target_find_new_threads with
1427 TRY_CATCH around target_find_new_threads.
1428 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
1429 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
1430 * varobj.c (varobj_create): Likewise for parse_exp_1 and
1431 evaluate_expression.
1432 (varobj_set_value): Likewise for evaluate_expression and
1433 value_assign.
1434 (install_new_variable): Likewise for value_fetch_lazy.
1435 (adjust_value_for_child_access): Likewise for value_ind.
1436 (c_describe_child): Likewise for value_subscript and
1437 value_ind.
1438 (c_value_of_root): Likewise for evaluate_expression.
1439 * wrapper.c: Remove.
1440 * wrapper.h: Remove.
1441
1a4eeb98
DE
14422012-01-09 Doug Evans <dje@google.com>
1443
9ff913ba
DE
1444 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
1445 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
1446 "abfd" args with "section". All callers updated.
1447 Error checking code moved ...
1448 (error_check_comp_unit_head): ... here. New function.
1449 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
1450 Delete arg "abfd". New arg "type_offset". All callers updated.
1451 (create_debug_types_hash_table): Simplify by using
1452 read_and_check_type_unit_head.
1453
1a4eeb98
DE
1454 * parser-defs.h (namecopy): Delete.
1455 * parse.c (namecopy, namecopy_size): Move into copy_name.
1456
2e6af8c0
JK
14572012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1458
1459 Partially fix duplicate .o files after omitting libbfd.a.
1460 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
1461 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1462 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
1463 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1464 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
1465 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
1466 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1467
9f2f828a
PA
14682012-01-09 Pedro Alves <palves@redhat.com>
1469
1470 * MAINTAINERS: Update my email address.
1471
4d72c0bc
DE
14722012-01-08 Doug Evans <dje@google.com>
1473
d467dd73
DE
1474 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
1475 n_type_units. Rename type_comp_units to all_type_units.
1476 All uses updated.
1477 (add_signatured_type_cu_to_table): Renamed from
1478 add_signatured_type_cu_to_list. All callers updated.
1479
4d72c0bc
DE
1480 * gdbtypes.h (struct cplus_struct_type): Delete member
1481 nfn_fields_total. All uses removed.
1482
21b2bd31
DE
14832012-01-06 Doug Evans <dje@google.com>
1484
1485 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
1486 to top of file.
1487 (dwarf2_find_comp_unit): Delete.
1488 (process_psymtab_comp_unit): Make result "void".
1489 Delete args buffer, info_ptr, buffer_size, and replace with
1490 "section". All callers updated.
1491 (dwarf2_build_psymtabs_hard): Simplify.
1492
bfd189b1
SDJ
14932012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
1494 Thiago Jung Bauermann <bauerman@br.ibm.com>
1495
1496 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
1497 before `struct gdb_exception'.
1498 * breakpoint.c (update_global_location_list_nothrow)
1499 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
1500 * cp-abi.c (value_rtti_type): Likewise.
1501 * cp-support.c (cp_validate_operator): Likewise.
1502 * infrun.c (insert_exception_resume_breakpoint)
1503 (check_exception_resume, keep_going): Likewise.
1504 * mi-interp.c (mi_breakpoint_created)
1505 (mi_breakpoint_modified): Likewise.
1506 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
1507 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
1508 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
1509
6b07635f
DE
15102012-01-05 Doug Evans <dje@google.com>
1511
0b30b85c
DE
1512 * dwarf2read.c (statement_prologue): Delete, unused.
1513
98714339
DE
1514 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
1515 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
1516
6b07635f
DE
1517 * dwarf2read.c (comp_unit_header): Delete, unused.
1518
761f4555
UW
15192012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
1520
1521 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
1522 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
1523
2ca0b532
PA
15242012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
1525
1526 * infrun.c (normal_stop): Don't skip calling the normal_stop
1527 observers if the thread was doing a multi-step, but stopped for
1528 some reason other than stepping.
1529
50aeff07
PA
15302012-01-05 Pedro Alves <alves.ped@gmail.com>
1531
1532 * cli/cli-decode.h: Add comments.
1533 (CMD_LIST_AMBIGUOUS): Moved to command.h
1534 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1535 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
1536 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
1537 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
1538 (add_com, add_com_alias, add_info, add_info_alias)
1539 (complete_on_cmdlist, complete_on_enum, help_list): Remove
1540 declarations.
1541 * command.h: Add and adjust comments.
1542 (CMD_LIST_AMBIGUOUS): Moved here.
1543 (help_cmd, help_cmd_list): Delete declarations.
1544
5953832c
DE
15452012-01-04 Doug Evans <dje@google.com>
1546
e5fe5e75
DE
1547 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
1548 All callers updated.
1549 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
1550 Replace all arguments with "per_cu". All callers updated.
1551
28dee7f5
DE
1552 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
1553
23745b47
DE
1554 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
1555 New arg "per_cu". All callers updated.
1556
5953832c
DE
1557 Delete #if 0'd out code.
1558 * language.c (binop_result_type): Delete.
1559 (simple_type, ordered_type, same_type, integral_type): Delete.
1560 (numeric_type, character_type, string_type, boolean_type): Delete.
1561 (float_type, structured_type): Delete.
1562 * language.h: Update.
1563
0f5b7562
TT
15642012-01-04 Tom Tromey <tromey@redhat.com>
1565
1566 * python/py-value.c (valpy_binop): Initialize 'res_val'.
1567
78218f56
JB
15682012-01-04 Joel Brobecker <brobecker@adacore.com>
1569
1570 * corefile.c (close_exec_file): Delete.
1571 (reopen_exec_file): Remove commented out code that seems related
1572 to close_exec_file, which is being deleted here.
1573 * inferior.h (close_exec_file): Delete.
1574 * fork-child.c (fork_inferior): Remove call to fork_inferior.
1575
0fcd72ba
JB
15762012-01-04 Joel Brobecker <brobecker@adacore.com>
1577
1578 * ada-lang.c: #include "cli/cli-utils.h".
1579 (get_selections): Use skip_spaces.
1580 (ada_get_next_arg): Use skip_spaces and skip_to_space.
1581 (catch_ada_exception_command_split): Use skip_spaces.
1582 (ada_decode_assert_location): Likewise.
1583
1dabb4c4
JB
15842012-01-04 Joel Brobecker <brobecker@adacore.com>
1585
1586 * linespec.c (decode_line_internal): Check for C++ or Java
1587 compound constructs only if the current language is C, C++
1588 or Java.
1589
5931a2fa
JK
15902012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1591
1592 Revert:
1593 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1594 Joel Brobecker <brobecker@adacore.com>
1595 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1596 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1597 3 times.
1598 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1599 fall through into AT_ENTRY_POINT.
1600 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1601 DUMMY_ADDR with it.
1602 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1603 PPC_INSN_SIZE skip to 3 times.
1604
1a2da5ee
JB
16052012-01-04 Joel Brobecker <brobecker@adacore.com>
1606
1607 * linespec.c (add_minsym): Preserve function descriptors.
1608
8645ff69
UW
16092012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
1610
1611 * breakpoint.c (all_locations_are_pending): Consider locations
1612 in program spaces executing during startup pending as well.
1613
0b302171
JB
16142012-01-04 Joel Brobecker <brobecker@adacore.com>
1615
1616 Copyright year update in most files of the GDB Project.
1617
8ba098ad
JB
16182012-01-04 Joel Brobecker <brobecker@adacore.com>
1619
1620 * copyright.sh: Delete.
1621 * copyright.py: Rewrite.
1622
09c01c30
JB
16232012-01-04 Joel Brobecker <brobecker@adacore.com>
1624
1625 * gnulib/extra/update-copyright: New file, imported from gnulib.
1626
3c36c0af
JB
16272012-01-04 Joel Brobecker <brobecker@adacore.com>
1628
1629 * README (Copyright and License Notices): New section.
1630
888fe1e1
TT
16312012-01-03 Tom Tromey <tromey@redhat.com>
1632
1633 PR python/12533:
1634 * python/py-value.c (valpy_dereference, valpy_get_address
1635 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1636 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
1637 (valpy_absolute, valpy_richcompare): Free intermediate values.
1638
6e681866
JB
16392011-01-03 Joel Brobecker <brobecker@adacore.com>
1640
1641 * ada-lang.c: Reformat the copyright notice.
1642
0cd09acb
JK
16432012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1644
1645 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1646 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
1647 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1648 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1649 Revert this part of:
1650 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1651 Build gdb directly from *.o files not using libgdb.a.
1652 * Makefile.in (COMMON_OBS): Remove solib-target.o.
1653
12c3e59c
JB
16542012-01-02 Joel Brobecker <brobecker@adacore.com>
1655
1656 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1657 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1658 Reformat the copyright header.
1659
11bf1490
JK
16602012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1661
1662 Revert this part of:
1663 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1664 Remove the gdbtui binary.
1665 * gdb.c (main): Remove args.interpreter_p initialization.
1666 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1667 * main.h (struct captured_main_args): Remove interpreter_p.
1668
1fef196f
JB
16692012-01-02 Joel Brobecker <brobecker@adacore.com>
1670
1671 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
1672
67827812
JB
16732012-01-02 Joel Brobecker <brobecker@adacore.com>
1674
1675 * top.c (print_gdb_version): Update copyright year.
1676
a4d0b831
YQ
16772012-01-02 Yao Qi <yao@codesourcery.com>
1678
1679 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
1680
b5914469
JK
16812012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1682 Joel Brobecker <brobecker@adacore.com>
1683
1684 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1685 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1686 3 times.
1687 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1688 fall through into AT_ENTRY_POINT.
1689 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1690 DUMMY_ADDR with it.
1691 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1692 PPC_INSN_SIZE skip to 3 times.
1693
8da828f7
JK
16942012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1695
1696 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
1697 the return value.
1698 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
1699
8574e74b
JK
17002012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1701
1702 Build gdb directly from *.o files not using libgdb.a.
1703 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
1704 (COMMON_OBS): Remove solib-target.o.
1705 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
1706 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
1707 (LIBGDB_OBS, libgdb.a): Move it above.
1708 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
1709 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
1710 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
1711 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
1712 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
1713 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
1714 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
1715 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
1716 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
1717 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
1718 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1719 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
1720 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
1721 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
1722 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1723 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
1724 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
1725 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1726 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
1727 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
1728 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
1729 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
1730 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
1731 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
1732 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
1733 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
1734 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
1735
217bff3e
JK
17362012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1737
1738 Remove the gdbtui binary.
1739 * .gitignore (/gdbtui): Remove.
1740 * Makefile.in (TUI): Remove.
1741 (SUBDIR_TUI_OBS): Remove tui-main.o.
1742 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
1743 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
1744 (tui-main.o): Remove.
1745 (all_object_files): Remove tui-main.o.
1746 * NEWS: New note for the gdbtui removal.
1747 * configure: Rebuilt.
1748 * configure.ac: No longer add all-tui, clean-tui, install-tui and
1749 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
1750 CONFIG_UNINSTALL respectively.
1751 * gdb.c (main): Remove args.interpreter_p initialization.
1752 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1753 * main.h (struct captured_main_args): Remove interpreter_p.
1754 * tui/tui-main.c: Remove.
1755
9cdd5dbd
DE
17562012-01-01 Doug Evans <dje@google.com>
1757
bb5ed363
DE
1758 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
1759 (dwarf2_physname, read_import_statement): Ditto.
1760 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
1761 (process_structure_scope read_subroutine_type): Ditto.
1762 (read_typedef, load_partial_dies, read_partial_die): Ditto.
1763 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
1764 (dwarf2_fetch_die_location_block): Ditto.
1765 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
1766
a0f42c21
DE
1767 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
1768 All callers updated.
1769 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
1770 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
1771 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
1772
2dc860c0
DE
1773 * dwarf2read.c (load_cu): Move assert to more useful location.
1774
68dc6402
DE
1775 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
1776 All callers updated.
1777
9cdd5dbd
DE
1778 * dwarf2read.c (dwarf2_per_objfile): Add comment.
1779 (dwarf2_elf_names): Minor reformat.
1780 (dwarf2_per_cu_data): Tweak comment.
1781 (dwarf2_read_section): Fix comment.
1782 (create_all_comp_units): Fix comment.
1783 (load_full_comp_unit): Fix comment.
1784 (process_full_comp_unit): Fix comment.
1785 (read_signatured_type): Fix comment.
1786
0c10e53e 1787For older changes see ChangeLog-2011.
c906108c
SS
1788\f
1789Local Variables:
1790mode: change-log
1791left-margin: 8
1792fill-column: 74
1793version-control: never
57da7796 1794coding: utf-8
c906108c 1795End:
This page took 1.428114 seconds and 4 git commands to generate.