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