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