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