gdb/testsuite/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
1591a1e8
PA
12012-08-27 Wei-cheng Wang <cole945@gmail.com>
2
3 * memattr.c (create_mem_region): Fix memory region overlapping
4 checking.
5
ecfb0d68
SP
62012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
7
8 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
9 with xmalloc/cleanup.
10 * mt-tdep.c (mt_push_dummy_call): Likewise.
11 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
12 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
13
8c56c1b9
YQ
142012-08-24 Yao Qi <yao@codesourcery.com>
15
16 * jv-exp.y (push_expression_name): Add "." at the end of error
17 message.
18
e3480f4a
YPK
192012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
20
21 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
22 * python/python.c (_initialize_python): Update documentation.
23
dfbd5e7b
PA
242012-08-23 Pedro Alves <palves@redhat.com>
25
26 * infrun.c (_initialize_infrun) <handle command help text>:
27 Mention that multiple signals are supported.
28
2edda2ff
PA
292012-08-23 Pedro Alves <palves@redhat.com>
30
31 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
32 string.
33
8d735b87
YQ
342012-08-23 Yao Qi <yao@codesourcery.com>
35
36 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
37 (tfind_1): Don't call registers_changed, set_traceframe_num,
38 and clear_traceframe_info.
39 Call set_current_traceframe.
40 (set_current_traceframe): call set_traceframe_num.
41
c5d9b215
SDJ
422012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
43
44 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
45 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
46
037bbc8e
YPK
472012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
48
49 Enable readline in Python in a GDB-specific way and block the
50 standard Python readline module to prevent conflicts with GDB.
51 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
52 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
53 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
54 * python/py-gdb-readline.c: New file.
55 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
56 prototype.
57 * python/python.c (_initialize_python): Call
58 gdbpy_initialize_gdb_readline.
59
406b1477
KS
602012-08-22 Keith Seitz <keiths@redhat.com>
61
62 * defs.h: Include build-gnulib/config.h
63
6ca1b147
JM
642012-08-22 Joseph Myers <joseph@codesourcery.com>
65
66 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
67 and blx pc.
68
8315665e
YPK
692012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
70
71 Add a new "python-interactive" command that starts a standard
72 Python interactive prompt with "pi" as alias, and add "py" as
73 an alias to "python".
74 * NEWS: Mention the new commands.
8315665e
YPK
75 * python/python.c (eval_python_command): New function.
76 (python_interactive_command): For "python-interactive" with
77 arguments, call eval_python_command. For "python-interactive"
78 without arguments, call PyRun_InteractiveLoop.
79 (_initialize_python): Add "python-interactive" command with
80 "pi" as alias, and add "py" as an alias to "python".
81
522002f9
TT
822012-08-22 Tom Tromey <tromey@redhat.com>
83
84 * defs.h (quit_flag): Don't declare.
85 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
86 (QUIT): Use new functions.
87 * event-top.c (command_handler): Use clear_quit_flag.
88 (handle_sigint): Use set_quit_flag.
89 (async_request_quit): Use check_quit_flag. Don't check
90 immediate_quit.
91 * exceptions.c (throw_exception): Use clear_quit_flag.
92 * main.c (captured_main): Use clear_quit_flag.
93 * python/python.c (clear_quit_flag, set_quit_flag)
94 (check_quit_flag): New functions.
95 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
96 clear_quit_flag.
97 * remote.c (remote_wait_as): Use check_quit_flag,
98 clear_quit_flag.
99 (remote_start_remote): Call QUIT.
100 * symfile.c (load_progress): Use check_quit_flag.
101 * top.c (command_loop): Use clear_quit_flag.
102 (command_line_input): Call QUIT.
103 * utils.c (quit_flag): Conditionally define.
104 (clear_quit_flag, check_quit_flag, set_quit_flag): New
105 functions.
106 (prompt_for_continue): Call QUIT. Use quit, not
107 async_request_quit.
108 * remote-mips.c (mips_expect_timeout): Call QUIT.
109 * monitor.c (monitor_expect): Call QUIT.
110
b583003e
TT
1112012-08-22 Tom Tromey <tromey@redhat.com>
112
113 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
114 (async_init_signals): Update.
115 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
116 (SIGWINCH_HANDLER_BODY): Remove.
117
e1507e95
TT
1182012-08-22 Tom Tromey <tromey@redhat.com>
119
120 * jit.c (jit_object_close_impl): Don't malloc the objfile
121 name.
122 * objfiles.c (allocate_objfile): Don't malloc the objfile
123 name.
124 (free_objfile): Don't free the objfile name.
125 * objfiles.h (struct objfile) <name>: Update comment.
126 * symfile.c (reread_symbols): Fix reference counting. Don't
127 malloc objfile name.
128
1c00ec6b
TT
1292012-08-22 Tom Tromey <tromey@redhat.com>
130
131 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
132 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
133 (symfile_bfd_open): Likewise.
134 (generic_load): Likewise.
135 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
136 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
137 gdb_bfd_open.
138 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
139 Use gdb_bfd_open.
140 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
141 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
142 (pmon_load_fast): Likewise.
143 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
144 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
145 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
146 (macho_check_dsym): Likewise.
147 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
148 (m32r_upload_command): Likewise.
149 * gdb_bfd.h (gdb_bfd_cache): Declare.
150 * gdb_bfd.c (struct gdb_bfd_data): New.
151 (gdb_bfd_cache): New global.
152 (struct gdb_bfd_cache_search): New.
153 (hash_bfd): New function.
154 (eq_bfd): Likewise.
155 (gdb_bfd_open): Likewise.
156 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
157 (gdb_bfd_unref): Remove closed BFD from cache. Update for
158 gdb_bfd_data.
159 * exec.c (exec_file_attach): Use gdb_bfd_open.
160 * dsrec.c (load_srec): Use gdb_bfd_open.
161
6532ff36
TT
1622012-08-22 Tom Tromey <tromey@redhat.com>
163
164 * dwarf2read.c (macro_start_file): Update.
165 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
166 (free_objfile_per_bfd_storage): Destroy macro_cache.
167 (allocate_objfile, free_objfile): Update.
168 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
169 New field.
170 (struct objfile) <macro_cache>: Remove.
171 * symfile.c (reread_symbols): Update.
172 * symmisc.c (print_symbol_bcache_statistics): Update.
173 (print_objfile_statistics): Update.
174
706e3705
TT
1752012-08-22 Tom Tromey <tromey@redhat.com>
176
177 * elfread.c (elf_symtab_read): Update.
178 * objfiles.c (objfiles_bfd_data): New global.
179 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
180 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
181 (allocate_objfile, free_objfile): Update.
182 (_initialize_objfiles): Initialize objfiles_bfd_data.
183 * objfiles.h (struct objfile_per_bfd_storage): New.
184 (struct objfile) <per_bfd>: New field.
185 <filename_cache>: Remove.
186 (set_objfile_per_bfd): Declare.
187 * symfile.c (reread_symbols): Update. Call
188 set_objfile_per_bfd.
189 (allocate_symtab): Update.
190 * symmisc.c (print_symbol_bcache_statistics): Update.
191 (print_objfile_statistics): Print the size of the BFD obstack.
192
e992eda4
TT
1932012-08-22 Tom Tromey <tromey@redhat.com>
194
195 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
196 * gdb_bfd.c: Use DEFINE_REGISTRY.
197 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
198 (gdb_bfd_ref): Call bfd_alloc_data.
199 (gdb_bfd_unref): Call bfd_free_data.
200
6b81941e
TT
2012012-08-22 Tom Tromey <tromey@redhat.com>
202
203 * registry.h (struct registry_fields): New.
204 (REGISTRY_FIELDS): Redefine.
205 (REGISTRY_ACCESS_FIELD): New macro.
206 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
207 functions.
208
8e260fc0
TT
2092012-08-22 Tom Tromey <tromey@redhat.com>
210
211 * auto-load.c (_initialize_auto_load): Update.
212 * solib-svr4.c (_initialize_svr4_solib): Update
213 * solib-dsbt.c (_initialize_dsbt_solib): Update.
214 * solib-darwin.c (_initialize_darwin_solib): Update.
215 * registry.h: New file.
216 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
217 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
218 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
219 (register_program_space_data_with_cleanup)
220 (register_program_space_data, program_space_alloc_data)
221 (clear_program_space_data, set_program_space_data)
222 (program_space_data): Don't declare.
223 * progspace.c: Use DEFINE_REGISTRY.
224 (struct program_space_data, struct
225 program_space_data_registration, struct
226 program_space_data_registry, program_space_data_registry)
227 (register_program_space_data_with_cleanup)
228 (register_program_space_data, program_space_alloc_data)
229 (program_space_free_data, clear_program_space_data)
230 (set_program_space_data, program_space_data): Remove.
231 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
232 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
233 (register_objfile_data_with_cleanup, register_objfile_data)
234 (clear_objfile_data, set_objfile_data, objfile_data): Don't
235 declare.
236 * objfiles.c: Use DEFINE_REGISTRY.
237 (struct objfile_data, struct objfile_data_registration, struct
238 objfile_data_registry, objfile_data_registry)
239 (register_objfile_data_with_cleanup, register_objfile_data)
240 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
241 (set_objfile_data, objfile_data): Remove.
242 (_initialize_objfiles): Update.
243 * jit.c (_initialize_jit): Update.
244 * inflow.c (_initialize_inflow): Update.
245 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
246 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
247 (register_inferior_data_with_cleanup, register_inferior_data)
248 (clear_inferior_data, set_inferior_data, inferior_data): Don't
249 declare.
250 * inferior.c: Use DEFINE_REGISTRY.
251 (struct inferior_data, struct inferior_data_registration, struct
252 inferior_data_registry, inferior_data_registry)
253 (register_inferior_data_with_cleanup, register_inferior_data)
254 (inferior_alloc_data, inferior_free_data clear_inferior_data)
255 (set_inferior_data, inferior_data): Remove.
256 * auxv.c (_initialize_auxv): Update.
257 * ada-lang.c (_initialize_ada_language): Update.
258 * breakpoint.c (_initialize_breakpoint): Update.
259 * i386-nat.c (i386_use_watchpoints): Update.
260
ed9eebaf
TT
2612012-08-22 Tom Tromey <tromey@redhat.com>
262
263 * exec.c (exec_close, exec_file_attach): Update.
264 (add_to_section_table): Initialize 'key' field.
265 (add_target_sections, remove_target_sections): Add 'key' argument.
266 * exec.h (add_target_sections, remove_target_sections): Add
267 'key' argument.
268 * solib.c (solib_map_sections, update_solib_list, clear_solib)
269 (reload_shared_libraries_1): Update.
270 * target.h (struct target_section) <key>: New field.
271
2f2e97fa
TT
2722012-08-22 Tom Tromey <tromey@redhat.com>
273
274 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
275
b3dbbd6f
PM
2762012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
277
278 * symfile.c (allocate_symtab): Use host_address_to_string
279 function instead of cast of pointer to long which is not
280 compatible with x86_64-w64-mingw32 build.
281
f94363d7
AP
2822012-08-19 Andrew Pinski <apinski@cavium.com>
283
284 * mips-tdep.c (is_octeon): New function.
285 (is_octeon_bbit_op): New function.
286 (mips32_next_pc): Handle Octeon's bbit instructions.
287 (mips32_instruction_has_delay_slot): Likewise.
288
78a59c2f
AP
2892012-08-19 Andrew Pinski <apinski@cavium.com>
290
291 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
292 before the function.
293
4f5bcb50
AP
2942012-08-19 Andrew Pinski <apinski@cavium.com>
295
296 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
297
e5afdbd7
KS
2982012-08-19 Keith Seitz <keiths@redhat.com>
299
300 PR c++/14365
301 * c-typeprint.c (c_type_print_varspec_prefix): Pass
302 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
303
13c9750e
EZ
3042012-08-18 Eli Zaretskii <eliz@gnu.org>
305
306 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
307 The typo broke "make TAGS".
308
db761810 3092012-08-17 Joel Brobecker <brobecker@adacore.com>
310
311 GDB 7.5 released.
312
a451cb65
KS
3132012-08-17 Keith Seitz <keiths@redhat.com>
314
315 PR c++/13356
316 * gdbtypes.c (strict_type_checking): New variable.
317 (show_strict_type_checking): New function.
318 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
319 if strict type checking is disabled.
320 (_initialize_gdbtypes): Add "check type" subcommand.
321 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
322
3232012-08-17 Keith Seitz <keiths@redhat.com>
324
325 * language.h (type_mode): Remove.
326 (type_check): Remove.
327 (struct language_defn): Remove la_type_check.
328 (STRICT_TYPE): Remove unused macro.
329 (type_error): Remove.
330 * language.c (set_type_range_case): Renamed to ...
331 (set_range_case): ... this. Update all callers.
332 Remove type_mode/type_check.
333 (type_mode): Remove.
334 (type_check): Remove.
335 (show_type_command): Remove.
336 (set_type_command): Remove.
337 (language_info): Remove type checking output.
338 (type_error): Remove unused function.
339 (range_error): Update comment.
340 (unknown_language_defn): Remove la_type_check.
341 (auto_language_defn): Likewise.
342 (local_language_defn): Likewise.
343 (_initialize_language): Remove "check type" subcommand.
344 * ada-lang.c (ada_language_defn): Remove la_type_check.
345 * c-lang.c (c_language_defn): Likewise.
346 (cplus_language_defn): Likewise.
347 (asm_language_defn): Likewise.
348 (minimal_language_defn): Likewise.
349 * d-lang.c (d_language_defn): Likewise.
350 * f-lang.c (f_language_defn): Likewise.
351 * go-lang.c (go_language_defn): Likewise.
352 * jv-lang.c (java_language_defn): Likewise.
353 * m2-lang.c (m2_language_defn): Likewise.
354 * objc-lang.c (objc_language_defn): Likewise.
355 * opencl-lang.c (opencl_language_defn): Likewise.
356 * p-lang.c (pascal_language_defn): Likewise.
357
dbf6a605
MF
3582012-08-16 Mike Frysinger <vapier@gentoo.org>
359
360 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
361
973e3cf7
JB
3622012-08-16 Joel Brobecker <brobecker@adacore.com>
363
364 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
365 New function.
366 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
367 using the regache. Use ia64_hpux_get_register_from_save_state_t
368 to access the bsp and bspstore registers if not.
369
d80ee84f
JB
3702012-08-16 Joel Brobecker <brobecker@adacore.com>
371
372 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
373 * breakpoint.c (detach_breakpoints): Change pid parameter into
374 a ptid. Adjust code accordingly.
375 * infrun.c (handle_inferior_event): Delete variable child_pid.
376 Update call to detach_breakpoints to pass the child ptid for
377 fork events.
378 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
379 assert that inferior_ptid's lwp is zero.
380 (linux_handle_extended_wait): Update call to detach_breakpoints.
381 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
382 detach_breakpoints.
383
2dcc6086
JB
3842012-08-16 Joel Brobecker <brobecker@adacore.com>
385
386 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
387 parent, only call detach_breakpoints if tts.tts_event ==
388 TTEVT_VFORK.
389
0c92d8c1
JB
3902012-08-16 Joel Brobecker <brobecker@adacore.com>
391
392 * dwarf2-frame.c (dwarf2_frame_cache): Use
393 get_frame_address_in_block instead of get_frame_pc as
394 the bound for executing the frame's FDE.
395
6b1755ce
YQ
3962012-08-16 Yao Qi <yao@codesourcery.com>
397
398 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
399 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
400 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
401 (c_type_print_varspec_suffix): Likewise.
402 * eval.c (evaluate_subexp_standard): Likewise.
403 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
404 (f_type_print_varspec_suffix): Likewise.
405 * gdbtypes.c (is_scalar_type): Likewise.
406 (recursive_dump_type): Likewise.
407 * infcall.c (value_arg_coerce): Likewise.
408 * m2-valprint.c (m2_val_print): Likewise.
409 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
410 (pascal_type_print_varspec_suffix): Likewise.
411 (pascal_type_print_base): Likewise.
412 * p-valprint.c (pascal_val_print): Likewise.
413 (pascal_val_print): Likewise.
414 * valops.c (value_slice): Likewise.
415 * valprint.c (scalar_type_p): Likewise.
416 * valarith.c (value_bitstring_subscript): Remove.
417 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
418 Remove comment on TYPE_CODE_BITSTRING.
419
420 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
421 TYPE_CODE_BITSTRING.
422
423 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
424 slot 0.
425
8acc4065
YQ
4262012-08-16 Yao Qi <yao@codesourcery.com>
427
428 * tracepoint.c (trace_find_none_command): Remove.
429 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
430
8128fd8e
YQ
4312012-08-16 Yao Qi <yao@codesourcery.com>
432
433 * remote.c (handle_notification): Remove parameter 'length'.
434 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
435
2873700e
KS
4362012-08-15 Keith Seitz <keiths@redhat.com>
437
438 * gdbtypes.c (opaque_type_resolution): Make static.
439 Add missing comment.
440 (overload_debug): Add missing comment.
441 (show_opaque_type_resolution): Likewise.
442 (show_overload_debug): Likewise.
443 (print_bit_vector): Remove unnecessary forward declaration.
444 (print_arg_types): Likewise.
445 (dump_fn_fieldlists): Likewise.
446 (print_cplus_stuff): Likewise.
447
b82d08cd
TT
4482012-08-15 Tom Tromey <tromey@redhat.com>
449
450 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
451 (gdb_bfd_ref): Initialize new field.
452 (gdb_bfd_unref): Unref the archive BFD.
453 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
454 parent archive.
455
db6573d6
TT
4562012-08-15 Tom Tromey <tromey@redhat.com>
457
458 PR python/14387:
459 * python/py-bpevent.c (create_breakpoint_event_object): Update
460 comment.
461 * python/py-event.c (evpy_add_attribute): Update comment.
462 * python/py-exitedevent.c (create_exited_event_object): Fix
463 reference counting and error handling.
464 * python/py-newobjfileevent.c (create_new_objfile_event_object):
465 Fix reference counting.
466 * python/py-signalevent.c (create_signal_event_object): Fix
467 reference counting and error handling.
468 * python/py-stopevent.c (emit_stop_event): Fix reference
469 counting.
470 * python/py-threadevent.c (get_event_thread): Return a
471 borrowed reference.
472 * python/py-type.c (convert_field): Fix reference counting.
473
a036ba48
TT
4742012-08-15 Tom Tromey <tromey@redhat.com>
475
476 * dwarf2read.c (dwarf_decode_macro_bytes)
477 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
478 as hash key.
479
486c7739
MF
4802012-08-14 Mike Frysinger <vapier@gentoo.org>
481
482 * infcmd.c (_initialize_infcmd): Update help text for the signal,
483 stepi, nexti, finish, next, step, jump, and continue commands.
484 * infrun.c (_initialize_infrun): Update help text for the handle
485 command.
486
4cf93a03
DE
4872012-08-14 Doug Evans <dje@google.com>
488
70b099cf
DE
489 * gdbtypes.c (struct extra): Delete, unused.
490
5212577a
DE
491 * gdbtypes.c: Whitespace cleanup.
492 (address_space_name_to_int): Remove "extern" from definition.
493 (_initialize_gdbtypes): Declare with initialize_file_ftype.
494
4cf93a03
DE
495 * gdbtypes.c (make_pointer_type): Remove redundant setting of
496 TYPE_POINTER_TYPE (type).
497
3756ef7e
GB
4982012-08-14 Gary Benson <gbenson@redhat.com>
499
500 * solib-svr4.c (svr4_free_library_list): Use free_so.
501
40d72643
MF
5022012-08-13 Mike Frysinger <vapier@gentoo.org>
503
504 * .gitignore: Add go-exp.c.
505
f47f77df
DE
5062012-08-13 Doug Evans <dje@google.com>
507
508 * value.c (show_convenience): Tweak comment.
509 (_initialize_values): Mention convenience functions in the help text
510 for "show convenience".
511
7507c54a
YQ
5122012-08-13 Yao Qi <yao@codesourcery.com>
513
514 * std-operator.def: Remove TERNOP_SLICE_COUNT.
515 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
516 TERNOP_SLICE_COUNT.
517 * eval.c (evaluate_subexp_standard): Likewise.
518 * expprint.c (print_subexp_standard): Likewise.
519 (dump_subexp_body_standard): Likewise.
520 * parse.c (operator_length_standard): Likewise.
521
5cad9736
YQ
5222012-08-13 Yao Qi <yao@codesourcery.com>
523
524 * std-operator.def: Remove OP_BITSTRING.
525 * breakpoint.c (watchpoint_exp_is_const): Update.
526 * eval.c (evaluate_subexp_standard): Remove handling to
527 OP_BITSTRING.
528 * expprint.c (print_subexp_standard): Likewise.
529 (dump_subexp_body_standard): Likewise.
530 * parse.c (operator_length_standard): Likewise.
531 * valops.c (value_bitstring): Remove.
532 * value.h: Remove the declaration of 'value_bitstring'.
533
bad7670a
SDJ
5342012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
535
536 * linespec.c (find_methods): Remove unused variables `i1' and
537 `name_len'.
538 (decode_line_full): Likewise for `arg_start'.
539
d9dce7fa
SDJ
5402012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
541
542 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
543 (zlib_decompress_section): Likewise for `section_data'.
544 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
545
a72c3253
DE
5462012-08-10 Doug Evans <dje@google.com>
547
548 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
549 * NEWS: Document them.
550 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
551 function/strfns.py.
552 * python/py-type.c (typy_array_1): New function.
553 (typy_array): Call it.
554 (typy_vector): New function.
555 (type_object_methods): Add "vector".
556 * python/lib/gdb/function/__init__.py: New file.
557 * python/lib/gdb/function/strfns.py: New file.
558
200bc880
SP
5592012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
560
561 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
562 for TYPE_FIELD_BITPOS.
563 (typy_get_sizeof): Likewise for TYPE_LENGTH.
564
de0bea00
MF
5652012-08-10 Mike Frysinger <vapier@gentoo.org>
566
567 PR cli/10436:
568 * common/vec.h (VEC_merge): Define.
569 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
570 (DEF_VEC_ALLOC_FUNC_P): Likewise.
571 (DEF_VEC_ALLOC_FUNC_O): Likewise.
572 * completer.c: Include gdb_signals.h.
573 (signal_completer): Define.
574 * completer.h (signal_completer): Add prototype.
575 * infcmd.c (_initialize_infcmd): Assign the command
576 completer for "signal" to handle_completer.
577 * infrun.c: Include completer.h.
578 (handle_completer): Define.
579 (_initialize_infrun): Declare a new local variable c. Store the
580 result of add_com("handle") to it. Assign the command
581 completer for "handle" to handle_completer.
582
5b9afe8a
YQ
5832012-08-09 Yao Qi <yao@codesourcery.com>
584
585 * cli/cli-decode.c (set_cmd_prefix): New.
586 (lookup_cmd_for_prefixlist): New.
587 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
588 of each cmd_list_element in *prefixlist.
589 (add_setshow_cmd_full): set_cmd_prefix.
590 (add_alias_cmd): Likewise.
591 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
592 Declare 'auto_boolean_enums'.
593 * cli/cli-setshow.c: Include "observer.h".
594 (notify_command_param_changed_p): New.
595 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
596 Remove 'static'.
597 (do_setshow_command): Split it to ...
598 (do_set_command, do_show_command): ... them. New.
599 (do_set_command): Call observer_notify_command_param_changed if
600 notify_command_param_changed_p returns true.
601 (cmd_show_list): Caller update.
602 * auto-load.c (set_auto_load_cmd): Likewise.
603 * remote.c (show_remote_cmd): Likewise.
604 * cli/cli-setshow.h: Update declarations.
605 * top.c (execute_command): Call do_set_command and do_show_command.
606
607 * NEWS: Mention new MI notification.
608 * mi/mi-interp.c: Declare mi_command_param_changed.
609 (mi_interpreter_init): Attach mi_command_param_changed to
610 observer command_param_changed.
611 (mi_command_param_changed): New.
612 Remove mi_suppress_breakpoint_notifications.
613 Define global variable mi_suppress_notification.
614 (mi_breakpoint_created): Update.
615 (mi_breakpoint_deleted): Likewise.
616 (mi_breakpoint_modified): Likewise.
617 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
618 'gdb-set' and set mi_suppress_notification.
619 * mi/mi-main.h: (mi_suppress_notification): New struct.
620
1969df89
JK
6212012-08-09 Andreas Tobler <andreast@fgznet.ch>
622 Jan Kratochvil <jan.kratochvil@redhat.com>
623
624 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
625
8bfd80db
YQ
6262012-08-09 Yao Qi <yao@codesourcery.com>
627
628 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
629 (skiplist): Move it to skip.c.
630 (init_cmd_lists): Remove code setting enablebreaklist and
631 skiplist to NULL.
632 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
633 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
634 skiplist.
635 * gdbcmd.h: Likewise.
636 * skip.c (_initialize_step_skip): Move 'skiplist' from
637 cli/cli-cmds.c.
638
28578e6b
YQ
6392012-08-09 Yao Qi <yao@codesourcery.com>
640
641 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
642 * gnu-nat.c, symfile.c: Likewise.
643
260c0b2a
DE
6442012-08-08 Aaron Gamble <agamble@google.com>
645
646 * utils.c (prompt_for_continue_wait_time): New static global.
647 (make_command_stats_cleanup): Initialize it.
648 (report_command_stats): Subtract time waiting for user.
649 (prompt_for_continue): Track time waiting for user.
650 (defaulted_query): Track time waiting for user.
651
4f485ebc
DE
6522012-08-08 Doug Evans <dje@google.com>
653
654 * eval.c (evaluate_subexp_standard): Fix thinko in handling
655 UNOP_MEMVAL_TYPE.
656 * expprint.c (print_subexp_standard, case OP_TYPE): New.
657 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
658 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
659 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
660 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
661 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
662 elt.
663 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
664 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
665 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
666 (dump_prefix_expression): Handle OP_TYPE.
667
2acf2b39
KS
6682012-08-08 Keith Seitz <keiths@redhat.com>
669
670 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
671 addr_start.
672
e6712ff1
DE
6732012-08-08 Doug Evans <dje@google.com>
674
675 * linux-thread-db.c: #include "gdb_vecs.h".
676 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
677 updated.
678 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
679 (thread_db_load_search): Use a vector to iterate over path elements.
680 Handle text appearing after "$pdir".
681
682 * gdb_string.h: Moved to ...
683 * common/gdb_string.h: ... here.
684 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
685 gdb_string.h and gdb_assert.h.
686
ab854e54
YQ
6872012-08-08 Yao Qi <yao@codesourcery.com>
688
689 * tic6x-tdep.c (tic6x_register_to_value): Remove.
690 (tic6x_value_to_register): Likewise.
691 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
692 and set_gdbarch_value_to_register.
693
4f69f4c2
JK
6942012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
695 Jean-Marc Saffroy <saffroy@gmail.com>
696
697 PR 11804
698 * defs.h (find_memory_region_ftype): New comment. New arg modified.
699 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
700 * gcore.c (gcore_create_callback): New function comment. Add modified
701 parameter. Only write modified regions. Set SEC_READONLY exactly
702 according to MODIFIED.
703 (objfile_find_memory_regions): Ignore separate debug info files. Ass
704 the passed modified value to FUNC.
705 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
706 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
707 first. New variables modified and has_anonymous. Parse the lines of
708 smaps file. Add the passed MODIFIED value to FUNC.
709 * procfs.c (find_memory_regions_callback): Add the passed modified
710 value.
711
78ac5f83
TT
7122012-08-06 Tom Tromey <tromey@redhat.com>
713
714 * dwarf2-frame.c (clear_pointer_cleanup): New function.
715 (dwarf2_frame_cache): Use it.
716 * frame-unwind.h (frame_sniffer_ftype): Document prologue
717 cache initialization constraint.
718
2c12abee
TT
7192012-08-06 Tom Tromey <tromey@redhat.com>
720
721 PR python/14386:
722 * varobj.c (update_dynamic_varobj_children): Don't call
723 PyIter_Check.
724
4979d7f0
TT
7252012-08-06 Tom Tromey <tromey@redhat.com>
726
727 PR cli/14392:
728 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
729
f3c8a52a
JK
7302012-08-06 Nathaniel Flath <flat0103@gmail.com>
731
732 * NEWS: New entry for 'cd' default parameters.
733 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
734
5a1cf4d6
TT
7352012-08-03 Tom Tromey <tromey@redhat.com>
736
737 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
738 return.
739
7c3270ae
UW
7402012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
741
742 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
743 to attempting lseek/write.
744 (inf_child_fileio_pread): Likewise for pread.
745
ccce17b0
YQ
7462012-08-02 Yao Qi <yao@codesourcery.com>
747
748 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
749 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
750 add_setshow_zinteger_cmd.
751 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
752 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
753 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
754 instead of add_setshow_zinteger_cmd.
755 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
756 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
757 instead of add_setshow_zinteger_cmd.
758 * frame.c (frame_debug): Add 'unsigned'.
759 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
760 add_setshow_zinteger_cmd.
761 * frame.h: Update the declaration of 'frame_debug'.
762 * gdbtypes.c (overload_debug): Add 'unsigned'.
763 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
764 add_setshow_zinteger_cmd.
765 * inferior.h: Update declaration of 'debug_infrun'.
766 * infrun.c (debug_infrun): Add 'unsigned'.
767 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
768 add_setshow_zinteger_cmd.
769 * jit.c (jit_debug): Add 'unsigned'.
770 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
771 add_setshow_zinteger_cmd.
772 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
773 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
774 instead of add_setshow_zinteger_cmd.
775 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
776 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
777 add_setshow_zinteger_cmd.
778 * machoread.c (mach_o_debug_level): Add 'unsigned'.
779 (_initialize_machoread): Call add_setshow_zuinteger_cmd
780 instead of add_setshow_zinteger_cmd.
781 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
782 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
783 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
784 intead of add_setshow_zinteger_cmd.
785 * mips-tdep.c (mips_debug): Add 'unsigned'.
786 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
787 instead of add_setshow_zinteger_cmd.
788 * monitor.c (monitor_debug): Add 'unsigned'.
789 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
790 add_setshow_zinteger_cmd.
791 * observer.c (observer_debug): Add 'unsigned'.
792 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
793 add_setshow_zinteger_cmd.
794 * parse.c (expressiondebug): Add 'unsigned'.
795 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
796 add_setshow_zinteger_cmd.
797 * record.c (record_debug): Add 'unsigned'.
798 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
799 add_setshow_zinteger_cmd.
800 * record.h: Update the declaration of 'record_debug'.
801 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
802 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
803 add_setshow_zinteger_cmd.
804 * serial.c (global_serial_debug_p): Add 'unsigned'.
805 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
806 add_setshow_zinteger_cmd.
807 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
808 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
809 add_setshow_zinteger_cmd.
810 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
811 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
812 add_setshow_zinteger_cmd.
813 * target.c (targetdebug): Add 'unsigned'.
814 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
815 add_setshow_zinteger_cmd.
816 * valops.c (overload_debug): Add 'unsigned'.
817 * varobj.c (varobjdebug): Add 'unsigned'.
818 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
819 add_setshow_zinteger_cmd.
820 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
821 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
822 instead of add_setshow_zinteger_cmd.
823
824 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
825 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
826 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
827 instead of add_setshow_zinteger_cmd.
828 * gdbarch.c, gdbarch.h: Re-generated.
829
95b07c96
YQ
8302012-08-02 Yao Qi <yao@codesourcery.com>
831
832 * nto-tdep.c: Don't include cli/cli-decode.h and
833 cli/cli-cmds.h.
834 (_initialize_nto_tdep): Remove.
835 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
836 Remove field.
837 Remove macro nto_internal_debugging.
838
57295b0b
RH
8392012-08-01 Richard Henderson <rth@redhat.com>
840
841 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
842 (mep-*-*) [gdb_target_obs]: Likewise.
843
f782ad9b
AS
8442012-07-31 Andreas Schwab <schwab@linux-m68k.org>
845
846 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
847 linux_get_siginfo_type.
848
a14dd77e
JK
8492012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
850
851 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
852 AT_ENTRY_POINT.
853 (call_function_by_hand) <ON_STACK>: Call write_memory with
854 gdbarch_breakpoint_from_pc, if possible.
855 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
856 here.
857
1467929f
YQ
8582012-07-31 Yao Qi <yao@codesourcery.com>
859
860 * tracepoint.c: Add 'static' for some variables.
861
70976b65
YQ
8622012-07-31 Yao Qi <yao@codesourcery.com>
863
864 * go32-nat.c: Declare _initialize_go32_nat.
865 * ser-go32.c: Declare _initialize_ser_dos.
866 * top.c (do_chdir_cleanup): Add 'static'.
867
eff9c3e6
KS
8682012-07-30 Keith Seitz <keiths@redhat.com>
869
870 * linespec.c (linespec_lex_number): A number followed
871 by quotes is a valid number, too.
872
728400d7
TT
8732012-07-30 Tom Tromey <tromey@redhat.com>
874
875 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
876
fcf303ab
UW
8772012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
878
879 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
880 attempt to 4-byte-align HW breakpoint addresses for Thumb.
881
4e969b4f
AB
8822012-07-30 Andrew Burgess <aburgess@broadcom.com>
883
884 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
885 invalid or reevaluated to prevent prevent references to possibly
886 delete'd type objects being left in the varobj.
887
c4bfde41
JK
8882012-07-27 Tom Tromey <tromey@redhat.com>
889 Jan Kratochvil <jan.kratochvil@redhat.com>
890
891 * copying.awk: Print buffer-read-only and vi ro markers.
892 * copying.c: Rebuild.
893 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
894 * gdbarch.c, gdbarch.h: Rebuild.
895 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
896 buffer-read-only and vi ro markers.
897 * features/arm-with-iwmmxt.c: Rebuild.
898 * features/arm-with-m-fpa-layout.c: Rebuild.
899 * features/arm-with-m-vfp-d16.c: Rebuild.
900 * features/arm-with-m.c: Rebuild.
901 * features/arm-with-neon.c: Rebuild.
902 * features/arm-with-vfpv2.c: Rebuild.
903 * features/arm-with-vfpv3.c: Rebuild.
904 * features/i386/amd64-avx-linux.c: Rebuild.
905 * features/i386/amd64-avx.c: Rebuild.
906 * features/i386/amd64-linux.c: Rebuild.
907 * features/i386/amd64.c: Rebuild.
908 * features/i386/i386-avx-linux.c: Rebuild.
909 * features/i386/i386-avx.c: Rebuild.
910 * features/i386/i386-linux.c: Rebuild.
911 * features/i386/i386-mmx-linux.c: Rebuild.
912 * features/i386/i386-mmx.c: Rebuild.
913 * features/i386/i386.c: Rebuild.
914 * features/i386/x32-avx-linux.c: Rebuild.
915 * features/i386/x32-avx.c: Rebuild.
916 * features/i386/x32-linux.c: Rebuild.
917 * features/i386/x32.c: Rebuild.
918 * features/mips-dsp-linux.c: Rebuild.
919 * features/mips-linux.c: Rebuild.
920 * features/mips64-dsp-linux.c: Rebuild.
921 * features/mips64-linux.c: Rebuild.
922 * features/rs6000/powerpc-32.c: Rebuild.
923 * features/rs6000/powerpc-32l.c: Rebuild.
924 * features/rs6000/powerpc-403.c: Rebuild.
925 * features/rs6000/powerpc-403gc.c: Rebuild.
926 * features/rs6000/powerpc-405.c: Rebuild.
927 * features/rs6000/powerpc-505.c: Rebuild.
928 * features/rs6000/powerpc-601.c: Rebuild.
929 * features/rs6000/powerpc-602.c: Rebuild.
930 * features/rs6000/powerpc-603.c: Rebuild.
931 * features/rs6000/powerpc-604.c: Rebuild.
932 * features/rs6000/powerpc-64.c: Rebuild.
933 * features/rs6000/powerpc-64l.c: Rebuild.
934 * features/rs6000/powerpc-7400.c: Rebuild.
935 * features/rs6000/powerpc-750.c: Rebuild.
936 * features/rs6000/powerpc-860.c: Rebuild.
937 * features/rs6000/powerpc-altivec32.c: Rebuild.
938 * features/rs6000/powerpc-altivec32l.c: Rebuild.
939 * features/rs6000/powerpc-altivec64.c: Rebuild.
940 * features/rs6000/powerpc-altivec64l.c: Rebuild.
941 * features/rs6000/powerpc-cell32l.c: Rebuild.
942 * features/rs6000/powerpc-cell64l.c: Rebuild.
943 * features/rs6000/powerpc-e500.c: Rebuild.
944 * features/rs6000/powerpc-e500l.c: Rebuild.
945 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
946 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
947 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
948 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
949 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
950 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
951 * features/rs6000/powerpc-vsx32.c: Rebuild.
952 * features/rs6000/powerpc-vsx32l.c: Rebuild.
953 * features/rs6000/powerpc-vsx64.c: Rebuild.
954 * features/rs6000/powerpc-vsx64l.c: Rebuild.
955 * features/rs6000/rs6000.c: Rebuild.
956 * features/s390-linux32.c: Rebuild.
957 * features/s390-linux32v1.c: Rebuild.
958 * features/s390-linux32v2.c: Rebuild.
959 * features/s390-linux64.c: Rebuild.
960 * features/s390-linux64v1.c: Rebuild.
961 * features/s390-linux64v2.c: Rebuild.
962 * features/s390x-linux64.c: Rebuild.
963 * features/s390x-linux64v1.c: Rebuild.
964 * features/s390x-linux64v2.c: Rebuild.
965 * features/tic6x-c62x-linux.c: Rebuild.
966 * features/tic6x-c62x.c: Rebuild.
967 * features/tic6x-c64x-linux.c: Rebuild.
968 * features/tic6x-c64x.c: Rebuild.
969 * features/tic6x-c64xp-linux.c: Rebuild.
970 * features/tic6x-c64xp.c: Rebuild.
971
826f0041
TT
9722012-07-27 Tom Tromey <tromey@redhat.com>
973
974 * c-exp.y (classify_name): Avoid assignment in condition.
975
84552b16
PA
9762012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
977
978 * amd64-windows-tdep.c: Include "frame.h".
979 (amd64_windows_skip_trampoline_code): New function.
980 (amd64_windows_init_abi): Add trampoline registration.
981
a8a64aa8
YQ
9822012-07-27 Yao Qi <yao@codesourcery.com>
983
984 * tracepoint.c (cur_traceframe_number): Remove.
985 (set_tfile_traceframe): Remove.
986 (tfile_trace_find, tfile_fetch_registers): Update callers.
987 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
988 (tfile_open, tfile_trace_find): Likewise.
989
d99067cb
YQ
9902012-07-27 Yao Qi <yao@codesourcery.com>
991
992 * thread.c (switch_to_thread): Don't call registers_changed.
993
f2e8016f
TT
9942012-07-26 Tom Tromey <tromey@redhat.com>
995
f782ad9b
AS
996 * Makefile.in (SFILES): Remove objc-exp.y.
997 (YYFILES): Remove objc-exp.c.
998 (YYOBJ): Remove objc-exp.o.
999 (local-maintainer-clean): Don't mention objc-exp.c.
1000 * c-exp.y: Include objc-lang.h.
1001 (%union) <class>: New field.
1002 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
1003 (exp): Clone subscript production for OBJC_LBRAC. Add various
1004 Objective C productions.
1005 (msglist, msgarglist, msgarg): New productions.
1006 (array_mod, func_mod, operator): Clone productions for
1007 OBJC_LBRAC.
1008 (parse_string_or_char): Handle '@' strings.
1009 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
1010 (classify_name): Check la_name_of_this. Recognize ObjC class
1011 names.
1012 * objc-exp.y: Remove.
1013 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
1014 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 1015
f66713d2
JK
10162012-07-26 Markus Metzger <markus.t.metzger@intel.com>
1017
1018 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
1019
7cfe01b4
JK
10202012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1021
1022 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
1023 and decrement.
1024
5ba19b4c
TT
10252012-07-26 Tom Tromey <tromey@redhat.com>
1026
1027 * copying.c: Rebuild.
1028 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
1029 'no_class'.
1030
27618ce4
TT
10312012-07-26 Tom Tromey <tromey@redhat.com>
1032
1033 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
1034 immediate_quit.
1035 (print_objfile_statistics): Likewise.
1036 (maintenance_print_symbols): Likewise.
1037 (maintenance_print_msymbols): Likewise.
1038 (maintenance_print_objfiles): Likewise.
1039 * psymtab.c (print_partial_symbols): Call QUIT.
1040 (maintenance_print_psymbols): Likewise. Don't modify
1041 immediate_quit.
1042 * copying.c (show_copying_command): Don't modify immediate_quit.
1043 (show_warranty_command): Likewise.
1044 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
1045
dd3818c8
KS
10462012-07-26 Keith Seitz <keiths@redhat.com>
1047
1048 * linespec.c (linespec_lexer_lex_number): The input
1049 is also a valid number if the next character is a comma
1050 or colon.
1051
23a80689
JB
10522012-07-26 Joel Brobecker <brobecker@adacore.com>
1053
1054 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
1055 configure options.
1056
29f77997
TG
10572012-07-26 Tristan Gingold <gingold@adacore.com>
1058
1059 * machoread.c: Include gdb_bfd.h.
1060
a55c1f32
TG
10612012-07-26 Tristan Gingold <gingold@adacore.com>
1062
1063 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
1064 offset.
1065
56eb65bd
SP
10662012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1067
1068 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
1069 SIZE to size_t.
1070 (dwarf2_evaluate_loc_desc): Likewise.
1071 (dwarf2_loc_desc_needs_frame): Likewise.
1072 (locexpr_describe_location_1): Likewise.
1073 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
1074 size_t.
1075 (struct dwarf2_loclist_baton): Likewise.
1076 * dwarf2read.c (struct dwarf_block): Likewise.
1077 (dump_die_shallow): Use pulongest to print dwarf_block.size.
1078 (decode_locdesc): Expand SIZE and I to size_t.
1079
aec8845c
JK
10802012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1081
1082 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
1083
33d7655b
JB
10842012-07-25 Joel Brobecker <brobecker@adacore.com>
1085
1086 * doublest.c (convert_doublest_to_floatformat): If the exponent
1087 is too small, treat the value as zero. If the exponent is too
1088 large, treat the value as infinity.
1089
a22d44ff
JB
10902012-07-25 Joel Brobecker <brobecker@adacore.com>
1091
1092 * configure.ac: Add --enable-lmcheck configure option.
1093 * configure: Regenerate.
1094
d6b28940
TT
10952012-07-25 Tom Tromey <tromey@redhat.com>
1096
f782ad9b
AS
1097 * NEWS: Mention maint info bfds.
1098 * gdb_bfd.c (all_bfds): New global.
1099 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
1100 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
1101 New functions.
d6b28940 1102
6e73ba20
RC
11032012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
1104
1105 * configure.tgt: Add v850*-*-rtems*.
1106
d560eebd
TT
11072012-07-25 Tom Tromey <tromey@redhat.com>
1108
1109 * macrotab.c (macro_bcache_str): Remove cast.
1110
d7cbec71
HZ
11112012-07-25 Hui Zhu <hui_zhu@mentor.com>
1112
1113 * linespec.c (linespec_lexer_lex_number): Update comments,
1114 change the return and add check to make sure the input is
1115 the decimal numbers.
1116 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
1117 false, call linespec_lexer_lex_string.
1118
882f447f
TT
11192012-07-24 Tom Tromey <tromey@redhat.com>
1120
1121 * symfile.c (symbol_file_add): Don't open BFD twice.
1122
53ab4066 11232012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
1124
1125 * breakpoint.c (create_breakpoint): Store condition for pending
1126 breakpoints.
1127
108fb0f7
AS
11282012-07-24 Andreas Schwab <schwab@linux-m68k.org>
1129
1130 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
1131 (m68k_return_value): Handle complex types like structures.
1132 (m68k_svr4_return_value): Likewise.
1133
1634dcbe
JK
11342012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
1135
1136 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
1137 parameters to bfd_get_section_name.
1138
e2d12c21
YQ
11392012-07-24 Yao Qi <yao@codesourcery.com>
1140
1141 * cli/cli-setshow.c: Handle case 'var_uinteger'
1142 and 'var_zuninteger' together. Handle case 'var_integer' and
1143 'var_zinteger' together.
1144
64b92e45
KS
11452012-07-23 Keith Seitz <keiths@redhat.com>
1146
1147 * linespec.c (convert_linespec_to_sal): Don't add
1148 any symbols to the result vector if symbol_to_sal
1149 returns zero.
1150
0f5f4ffe
KS
11512012-07-23 Keith Seitz <keiths@redhat.com>
1152
1153 * linespec.c (decode_objc): Record the function name
1154 in the linespec.
1155
da1cc82f
TT
11562012-07-23 Tom Tromey <tromey@redhat.com>
1157
1158 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
1159 counting.
1160 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
1161 (map_vmap): Acquire a reference to the BFD.
1162
6c18f3e0
SP
11632012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
1164
1165 * p-valprint.c (pascal_object_print_value): Replace potentially
1166 unsafe alloca with xmalloc/xfree.
1167 * valops.c (search_struct_method): Likewise.
1168
695c3173
TT
11692012-07-23 Tom Tromey <tromey@redhat.com>
1170
1171 * solib-svr4.c (enable_break): Update.
1172 * bfd-target.h (target_bfd_reopen): Update documentation.
1173
08d2cd74
TT
11742012-07-23 Tom Tromey <tromey@redhat.com>
1175
1176 * symfile.c (separate_debug_file_exists): Update.
1177 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1178 (reread_symbols): Update.
1179 * elfread.c (build_id_verify): Update.
1180 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1181 bfd_open_maybe_remote.
1182
596f7d67
TT
11832012-07-23 Tom Tromey <tromey@redhat.com>
1184
1185 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1186
8ac244b4
TT
11872012-07-23 Tom Tromey <tromey@redhat.com>
1188
1189 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1190 and 'abfd'.
1191 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1192 and 'abfd'.
1193 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1194 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1195 'abfd'.
1196 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1197 * objfiles.c (allocate_objfile): Acquire a new reference.
1198 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1199 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1200 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1201 a cleanup for 'nbfd'.
1202 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1203 for 'nbfd'.
1204 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1205 make a cleanup for 'abfd'.
1206 (symbol_file_add): Make a BFD cleanup.
1207
64c31149
TT
12082012-07-23 Tom Tromey <tromey@redhat.com>
1209
1210 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1211 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1212 * corelow.c (core_open): Use gdb_bfd_fopen.
1213 * dsrec.c (load_srec): Use gdb_bfd_openr.
1214 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1215 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1216 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1217 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1218 (gdb_bfd_fdopenr): New functions.
1219 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1220 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1221 (gdb_bfd_fdopenr): Declare.
1222 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1223 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1224 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1225 gdb_bfd_openr_next_archived_file.
1226 (macho_check_dsym): Use gdb_bfd_openr.
1227 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1228 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1229 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1230 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1231 gdb_bfd_openr.
1232 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1233 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1234 gdb_bfd_openr_next_archived_file.
1235 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1236 Use gdb_bfd_openr.
1237 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1238 gdb_bfd_openr.
1239 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1240 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1241 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1242 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1243 (symfile_bfd_open): Use gdb_bfd_fopen.
1244 (generic_load): Use gdb_bfd_openr.
1245 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1246
520b0001
TT
12472012-07-23 Tom Tromey <tromey@redhat.com>
1248
1249 * bfd-target.c (target_bfd_reopen): Update.
1250 * cli/cli-dump.c (bfd_openr_with_cleanup)
1251 (bfd_openw_with_cleanup): Update.
1252 * corelow.c (core_open): Update.
1253 * dsrec.c (load_srec): Update.
1254 * exec.c (exec_file_attach): Update.
1255 * gcore.c (create_gcore_bfd): Update.
1256 * gdb_bfd.c (gdb_bfd_ref): Return void.
1257 (gdb_bfd_open): Update.
1258 * gdb_bfd.h (gdb_bfd_ref): Return void.
1259 Update comments.
1260 * jit.c (jit_bfd_try_read_symtab): Update.
1261 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1262 * machoread.c (macho_symfile_read_all_oso): Update.
1263 (macho_check_dsym): Update.
1264 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1265 * remote-m32r-sdi.c (m32r_load): Update.
1266 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1267 * rs6000-nat.c (add_vmap): Update.
1268 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1269 Update.
1270 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1271 * solib-spu.c (spu_bfd_open): Update.
1272 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1273 * spu-linux-nat.c (spu_bfd_open): Update.
1274 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1275 (generic_load): Update.
1276 * windows-nat.c (windows_make_so): Update.
1277
2322ff16
SP
12782012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1279
1280 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1281
3def0b36
PA
12822012-07-20 Jeff Kenton <jkenton@tilera.com>
1283
1284 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1285 SIGTRAMP_FRAME unwinding.
1286
e615022a
DE
12872012-07-20 Doug Evans <dje@google.com>
1288
1289 * NEWS: Document new options "set/show use-deprecated-index-sections",
1290 and delete reference to --use-deprecated-index-sections.
1291 * symfile.h (use_deprecated_index_sections): Delete.
1292 * dwarf2read.c (use_deprecated_index_sections): Make static.
1293 (read_index_from_section): Update wording of how to load
1294 deprecated index sections.
1295 (_initialize_dwarf2_read): New options
1296 "set/show use-deprecated-index-sections".
1297 * main.c (captured_main): Delete --use-deprecated-index-sections.
1298
64776a0b
PA
12992012-07-20 Pedro Alves <palves@redhat.com>
1300
1301 PR threads/11692
1302 PR gdb/12203
1303
1304 * infrun.c (handle_inferior_event) <new thread>: Don't special
1305 case minus_one_ptid.
1306 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1307 * linux-thread-db.c (thread_get_info_callback): Don't return early
1308 if the thread is zombie.
1309 (thread_from_lwp): Change return type to void. Rewrite stale
1310 comment.
1311 (attach_thread): Don't return early if the thread is zombie,
1312 instead set its "dying" flag.
1313 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1314 (find_new_threads_callback): Don't return early if the thread is
1315 zombie.
1316
09826ec5
PA
13172012-07-20 Pedro Alves <palves@redhat.com>
1318
1319 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1320 * target.c (target_wait): Likewise.
1321 (str_comma_list_concat_elem, do_option, target_options_to_string):
1322 New functions.
1323 * target.h (target_options_to_string): Declare.
1324
f7a35f02
TT
13252012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1326 Tom Tromey <tromey@redhat.com>
1327
1328 * dwarf2read.c (dwarf_decode_macros)
1329 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1330 DW_MACRO_GNU_transparent_include_alt>: New cases.
1331 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1332 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1333
b81e1ee0
TT
13342012-07-20 Tom Tromey <tromey@redhat.com>
1335
1336 * dwarf2read.c (try_open_dwo_file): Don't call
1337 gdb_bfd_stash_filename.
1338
99c1624c
PA
13392012-07-20 Pedro Alves <palves@redhat.com>
1340
1341 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1342 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1343 (i386_process_record): Tweak description comments.
1344
4ffa4fc7
PA
13452012-07-20 Pedro Alves <palves@redhat.com>
1346
1347 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1348 (i386_process_record): Use record_read_memory.
1349 * record.c (record_read_memory): New function.
1350 (record_arch_list_add_mem, record_exec_insn): Use
1351 record_read_memory.
1352 * record.h (record_read_memory): Declare.
1353
c24343e2
YQ
13542012-07-20 Yao Qi <yao@codesourcery.com>
1355
1356 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1357 NULL for xfree.
1358
90f47860
PA
13592012-07-19 Pedro Alves <palves@redhat.com>
1360
1361 * record.c (record_resume): Ask the target beneath to report all
1362 signals.
1363
01093045
DE
13642012-07-19 Doug Evans <dje@google.com>
1365
1366 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1367 there's no section at address zero.
1368 (dwarf2_record_block_ranges): Ditto.
1369
a7c3d162
YQ
13702012-07-19 Yao Qi <yao@codesourcery.com>
1371
1372 * command.h, remote.c: Fix a typo in comment.
1373
608b4967
TT
13742012-07-19 Tom Tromey <tromey@redhat.com>
1375
1376 PR exp/13206:
1377 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1378 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1379 OP_DECLTYPE>: New cases.
1380 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1381 (type_exp): Add new productions.
1382 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1383 and decltype.
1384 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1385 New case.
1386 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1387 OP_DECLTYPE>: New case.
1388 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1389 New case.
1390 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1391 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1392
274b54d7
TT
13932012-07-19 Tom Tromey <tromey@redhat.com>
1394
1395 * c-exp.y (enum token_flags): New.
1396 (struct token) <cxx_only>: Remove.
1397 <flags>: New field.
1398 (tokentab3, tokentab2, ident_tokens): Update.
1399 (lex_one_token): Update. Handle FLAG_SHADOW.
1400
9eaf6705
TT
14012012-07-19 Tom Tromey <tromey@redhat.com>
1402
1403 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1404 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1405 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1406 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1407 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1408 type_exp production where appropriate.
1409 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1410 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1411 <UNOP_MEMVAL_TYPE>: New case.
1412 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1413 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1414 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1415 <UNOP_MEMVAL_TYPE>: New case.
1416 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1417 UNOP_REINTERPRET_CAST>: Update.
1418 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1419 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1420 UNOP_REINTERPRET_CAST>: Update.
1421 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1422 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1423 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1424 constants.
1425
6ace3df1
YQ
14262012-07-19 Yao Qi <yao@codesourcery.com>
1427 Jan Kratochvil <jan.kratochvil@redhat.com>
1428
1429 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1430 and case 'var_optional_filename' together.
1431 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1432 instead of add_setshow_optional_filename_cmd for setshow command
1433 'args'. Set completer for 'set args'.
1434
48faced0
DE
14352012-07-18 Doug Evans <dje@google.com>
1436
1437 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1438 * common/gdb_vecs.c: New file, contents from utils.c.
1439 * common/host-defs.h: New file, contents from defs.h.
1440 * utils.h: New file, contents from defs.h.
1441 * defs.h: Move all declarations of objects defined in utils.c
1442 to utils.h (except QUIT() and related).
1443 #include "utils.h", "host-defs.h".
1444 * probe.h (probe_p): Move here from gdb_vecs.h.
1445 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1446 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1447 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1448 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1449 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1450 (COMMON_OBS): Add gdb_vecs.o.
1451 (gdb_vecs.o): New rule.
1452
66f1999b
KS
14532012-07-18 Keith Seitz <keiths@redhat.com>
1454
1455 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1456 parameter. If non-zero, use SYMNAME as the canonical name
1457 for the SaL.
1458 Update all callers.
1459 (convert_linespec_to_sals): Use add_sal_to_sals for
1460 expressions, too.
1461 (decode_line_full): No need to "fill in missing canonical names"
1462 anymore. Simply make cleanups for the allocated names.
1463
5d94e27b
KS
14642012-07-18 Keith Seitz <keiths@redhat.com>
1465
1466 * linespec.c (struct linespec): Constify expression,
1467 source_filename, function_name, and label_name.
1468 (symbol_not_found_error): Make all parameters const.
1469 (linespec_parser_delete): No need to check for NULL
1470 when using xfree. Cast const char * to char * for xfree.
1471
af4908ba
KS
14722012-07-18 Keith Seitz <keiths@redhat.com>
1473
1474 * breakpoint.c (invalid_thread_id_error): New function.
1475 (find_condition_and_thread): Use invalid_thread_id_error.
1476 (watch_command_1): Likewise.
1477
853254db
TT
14782012-07-18 Tom Tromey <tromey@redhat.com>
1479
1480 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1481 * contrib/cc-with-tweaks.sh: New file.
1482
2ec9a5e0
TT
14832012-07-18 Tom Tromey <tromey@redhat.com>
1484
1485 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1486 (locate_dwz_sections): Recognize .gdb_index.
1487 (create_cus_from_index_list): New function.
1488 (create_cus_from_index): Use it. Handle .dwz data.
1489 (read_index_from_section): New function, extracted from
1490 dwarf2_read_index.
1491 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1492 if needed.
1493
36586728
TT
14942012-07-18 Tom Tromey <tromey@redhat.com>
1495
1496 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1497 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1498 <is_dwz>: New field.
1499 (struct dwz_file): New.
1500 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1501 (locate_dwz_sections, dwarf2_get_dwz_file)
1502 (get_abbrev_section_for_cu): New functions.
1503 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1504 (read_and_check_type_unit_head): Add abbrev_section argument.
1505 (create_debug_types_hash_table): Update.
1506 (init_cutu_and_read_dies): Use proper abbrev section.
1507 (init_cutu_and_read_dies_no_follow): Likewise.
1508 (set_partial_user): Do nothing if PST==NULL.
1509 (read_comp_units_from_section): New function.
1510 (create_all_comp_units): Use it.
1511 (scan_partial_symbols, partial_die_parent_scope): Update.
1512 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1513 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1514 (find_partial_die): Add offset_in_dwz argument. Update.
1515 (guess_partial_die_structure_name, fixup_partial_die): Update.
1516 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1517 DW_FORM_GNU_strp_alt.
1518 (read_indirect_string_from_dwz): New function.
1519 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1520 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1521 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1522 (follow_die_offset): Add offset_in_dwz argument.
1523 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1524 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1525 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1526 Handle new macro forms.
1527 (dwarf_decode_macros): Update.
1528 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1529 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1530 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1531 (create_debug_types_hash_table): Use correct abbrev section.
1532 (get_debug_line_section): New function.
1533 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1534 (process_full_comp_unit): Pass 'required' argument to
1535 end_symtab_get_static_block.
1536 * buildsym.h (end_symtab_get_static_block): Update.
1537 * buildsym.c (end_symtab_get_static_block): Add 'required'
1538 argument.
1539 (end_symtab, end_expandable_symtab): Update.
1540
4bf44c1c
TT
15412012-07-18 Tom Tromey <tromey@redhat.com>
1542
1543 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1544 (pagesize): Remove.
1545 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1546 (zlib_decompress_section): Remove.
1547 (dwarf2_read_section): Use gdb_bfd_map_section.
1548 (munmap_section_buffer): Remove.
1549 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1550 munmap_section_buffer.
1551 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1552 (struct gdb_bfd_section_data): New.
1553 (free_one_bfd_section): New function.
1554 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1555 (get_section_descriptor, zlib_decompress_section)
1556 (gdb_bfd_map_section): New functions.
1557 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1558
bb397797
TT
15592012-07-18 Tom Tromey <tromey@redhat.com>
1560
1561 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1562
6ec53d05
TT
15632012-07-18 Tom Tromey <tromey@redhat.com>
1564
1565 * gdb_bfd.c (struct gdb_bfd_data): New.
1566 (gdb_bfd_cache): New global.
1567 (struct gdb_bfd_cache_search): New.
1568 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1569 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1570 * gdb_bfd.h (gdb_bfd_open): Declare.
1571
f9a062ff
TT
15722012-07-18 Tom Tromey <tromey@redhat.com>
1573
1574 * utils.c (make_cleanup_bfd_unref): Rename from
1575 make_cleanup_bfd_close.
1576 * defs.h (make_cleanup_bfd_unref): Rename from
1577 make_cleanup_bfd_close.
1578 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1579 (bfd_openw_with_cleanup): Update.
1580 * corelow.c (core_open): Update.
1581 * dsrec.c (load_srec): Update.
1582 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1583 * remote-m32r-sdi.c (m32r_load): Update.
1584 * remote-mips.c (mips_load_srec): Update.
1585 (pmon_load_fast): Update.
1586 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1587 Update.
1588 (darwin_bfd_open): Update.
1589 * solib.c (solib_bfd_fopen): Update.
1590 * symfile-mem.c (symbol_file_add_from_memory): Update.
1591 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1592 (symfile_bfd_open): Update.
1593 (generic_load): Update.
1594
d6ad71ba
TT
15952012-07-18 Tom Tromey <tromey@redhat.com>
1596
1597 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1598 (pmon_load_fast): Likewise.
1599 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1600 (m32r_upload_command): Likewise.
1601 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1602 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1603 Use make_cleanup_bfd_close.
1604
a4453b7e
TT
16052012-07-18 Tom Tromey <tromey@redhat.com>
1606
1607 * symfile.c (symfile_bfd_open): Don't copy name. Call
1608 gdb_bfd_stash_filename.
1609 (load_command): Open the new BFD before freeing the old.
1610 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1611 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1612 Call gdb_bfd_stash_filename.
1613 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1614 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1615 gdb_bfd_stash_filename.
1616 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1617 Free found_pathname.
1618 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1619 gdb_bfd_stash_filename.
1620 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1621 * machoread.c (macho_add_oso_symfile): Call
1622 gdb_bfd_stash_filename.
1623 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1624 gdb_bfd_stash_filename.
1625 (macho_check_dsym): Don't copy filename. Call
1626 gdb_bfd_stash_filename.
1627 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1628 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1629 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1630 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1631 * exec.c (exec_close): Don't free the BFD's filename.
1632 (exec_file_attach): Don't copy the filename. Call
1633 gdb_bfd_stash_filename.
1634 * corelow.c (core_close): Don't free the BFD's filename.
1635 (core_open): Call gdb_bfd_stash_filename.
1636 * corefile.c (reopen_exec_file): Remove #if 0 code.
1637 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1638 pathname.
1639 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1640
cbb099e8
TT
16412012-07-18 Tom Tromey <tromey@redhat.com>
1642
1643 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1644 gdb_bfd_unref.
1645 (free_dwo_file): Use gdb_bfd_unref.
1646 * cli/cli-dump.c: Include gdb_bfd.h.
1647 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1648 (bfd_openr_with_cleanup): Likewise.
1649 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1650 gdb_bfd_unref.
1651 * utils.c: Include gdb_bfd.h.
1652 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1653 * symfile.c: Include gdb_bfd.h.
1654 (separate_debug_file_exists): Use gdb_bfd_unref.
1655 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1656 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1657 (generic_load): Use gdb_bfd_ref.
1658 (reread_symbols): Use gdb_bfd_unref.
1659 * symfile-mem.c: Include gdb_bfd.h.
1660 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1661 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1662 * solib.c: Include gdb_bfd.h.
1663 (solib_bfd_fopen): Use gdb_bfd_ref.
1664 (solib_bfd_open): Use gdb_bfd_unref.
1665 (free_so_symbols): Use gdb_bfd_unref.
1666 (reload_shared_libraries_1): Use gdb_bfd_unref.
1667 * solib-spu.c: Include gdb_bfd.h.
1668 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1669 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1670 gdb_bfd_unref.
1671 * solib-frv.c: Include gdb_bfd.h.
1672 (enable_break2): Use gdb_bfd_unref.
1673 * solib-dsbt.c: Include gdb_bfd.h.
1674 (enable_break2): Use gdb_bfd_unref.
1675 * solib-darwin.c: Include gdb_bfd.h.
1676 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1677 gdb_bfd_unref.
1678 (darwin_bfd_open): Use gdb_bfd_unref.
1679 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1680 * remote-mips.c: Include gdb_bfd.h.
1681 (mips_load_srec): Use gdb_bfd_ref.
1682 (pmon_load_fast): Use gdb_bfd_ref.
1683 * remote-m32r-sdi.c: Include gdb_bfd.h.
1684 (m32r_load): Use gdb_bfd_ref.
1685 * record.c: Include gdb_bfd.h.
1686 (record_save_cleanups): Use gdb_bfd_unref.
1687 (cmd_record_save): Use gdb_bfd_unref.
1688 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1689 gdb_bfd_unref.
1690 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1691 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1692 * objfiles.c: Include gdb_bfd.h.
1693 (free_objfile): Use gdb_bfd_unref.
1694 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1695 gdb_bfd.c.
1696 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1697 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1698 (macho_check_dsym): Likewise.
1699 * m32r-rom.c: Include gdb_bfd.h.
1700 (m32r_load): Use gdb_bfd_ref.
1701 (m32r_upload_command): Use gdb_bfd_ref.
1702 * jit.c: Include gdb_bfd.h.
1703 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1704 * gdb_bfd.h: New file.
1705 * gdb_bfd.c: New file.
1706 * gcore.c: Include gdb_bfd.h.
1707 (create_gcore_bfd): Use gdb_bfd_ref.
1708 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1709 (gcore_command): Use gdb_bfd_unref.
1710 * exec.c: Include gdb_bfd.h.
1711 (exec_close): Use gdb_bfd_unref.
1712 (exec_close_1): Use gdb_bfd_unref.
1713 (exec_file_attach): Use gdb_bfd_ref.
1714 * elfread.c: Include gdb_bfd.h.
1715 (build_id_verify): Use gdb_bfd_unref.
1716 * dsrec.c: Include gdb_bfd.h.
1717 (load_srec): Use gdb_bfd_ref.
1718 * corelow.c: Include gdb_bfd.h.
1719 (core_close): Use gdb_bfd_unref.
1720 (core_open): Use gdb_bfd_ref.
1721 * bfd-target.c: Include gdb_bfd.h.
1722 (target_bfd_xclose): Use gdb_bfd_unref.
1723 (target_bfd_reopen): Use gdb_bfd_ref.
1724 * Makefile.in (SFILES): Add gdb_bfd.c.
1725 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1726 (COMMON_OBS): Add gdb_bfd.o.
1727
ed1d1739
KS
17282012-07-18 Keith Seitz <keiths@redhat.com>
1729
1730 * breakpoint.c (find_condition_and_thread): Initialize
1731 TASK and REST.
1732 (create_breakpiont): find_condition_and_thread will now
1733 initialize COND_STRING, THREAD, and REST (and TASK).
1734 (addr_string_to_sals): Likewise.
1735
eab402df
PA
17362012-07-18 Pedro Alves <palves@redhat.com>
1737
1738 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1739 Pull the single step breakpoints out of the target.
1740
2b963b68
SDJ
17412012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1742
1743 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1744 * stap-probe.c (compile_probe_arg): Likewise.
1745
6bac7473
SDJ
17462012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1747
1748 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1749 (elf_compile_to_ax): Likewise.
1750 * infrun.c (insert_exception_resume_from_probe): Likewise.
1751 (check_exception_resume): Remove `objfile' variable.
1752 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1753 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1754 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1755 (compare_entries): Rename to...
1756 (compare_probes): ...this. Adjust function to work with
1757 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1758 respectively.
1759 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1760 `VEC (probe_p) *'.
1761 (print_ui_out_info): Adjust argument to be `struct probe *'.
1762 (info_probes_for_ops): Adjust internal computations to use
1763 `VEC (probe_p) *'.
1764 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1765 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1766 gen_info_probes_table_values>: Remove `objfile' argument.
1767 (struct probe) <objfile>: New field.
1768 (find_probe_by_pc): Remove `objfile' argument.
1769 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1770 (stap_get_probe_argument_count): Likewise.
1771 (stap_get_arg): Likewise.
1772 (stap_evaluate_probe_argument): Likewise.
1773 (stap_compile_to_ax): Likewise.
1774 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1775 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1776 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1777 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1778 sym_compile_to_ax>: Likewise.
1779
3347eb1a 17802012-07-18 Terry Guo <terry.guo@arm.com>
1781
1782 PR 14329
1783 * defs.h (GDB_MI_MSG_WIDTH): New.
1784 * ser_base (ser_base_read_error_fd): New function.
1785 (do_ser_base_readchar): Poll error file descriptor as well as
1786 standard output.
f782ad9b 1787 (generic_readchar): Refactor error handling.
3347eb1a 1788
80c8d323
JB
17892012-07-18 Joel Brobecker <brobecker@adacore.com>
1790
1791 * NEWS: Create a new section for the next release branch.
1792 Rename the section of the current branch, now that it has
1793 been cut.
1794
b45a0664 17952012-07-18 Joel Brobecker <brobecker@adacore.com>
1796
1797 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1798 * version.in: Bump version to 7.5.50.20120718-cvs.
1799
09cf2b22
KS
18002012-07-17 Keith Seitz <keiths@redhat.com>
1801
1802 * linespec.c (linespec_parse_line_offset): Make parameter
1803 const.
1804
8f043999
JK
18052012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1806
1807 PR 11914
1808 * f-valprint.c (info_common_command): New variable frame_id.
1809 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1810 * printcmd.c (print_variable_and_value): Extend function comment.
1811 Add comment for invalidated FRAME.
1812 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1813 FI form FRAME_ID after each print_frame_local_vars.
1814 (struct print_variable_and_value_data): Change frame to frame_id.
1815 (do_print_variable_and_value): New variable frame, initialize it from
1816 p->frame_id. Add comment for invalidated FRAME.
1817 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1818 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1819 for invalidated FRAME.
1820
ae5e0686
MK
18212012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1822 Pedro Alves <palves@redhat.com>
1823
1824 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1825 loop.
1826
5049c5be
TT
18272012-07-16 Tom Tromey <tromey@redhat.com>
1828
1829 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1830
2908cac6
DE
18312012-07-15 Doug Evans <dje@google.com>
1832
094b34ac
DE
1833 * dwarf2read.c (stmt_list_hash): New struct.
1834 (type_unit_group): Embed "per_cu" member, remove pointer.
1835 New union member "t", move member "tus" into it, all uses updated.
1836 New member "hash", replaces member "line_offset, all uses updated.
1837 (quick_file_names): Replace member "offset" with "hash", all uses
1838 updated.
1839 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1840 (hash_file_name_entry, eq_file_name_entry): Call them.
1841 (hash_type_unit_group, eq_type_unit_group): Ditto.
1842 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1843 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1844 (dw2_get_file_names): Update.
1845 (create_type_unit_group): Replace "per_cu" arg with "cu".
1846 All callers updated. Fix "quick" (.gdb_index) handling.
1847 (get_type_unit_group): Replace "per_cu" arg with "cu".
1848 All callers updated.
1849 (build_type_unit_groups): Don't reset tu_stats.
1850
2908cac6
DE
1851 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1852 "tab_cur_size". Change member "tab" to be a htab_t.
1853 (create_filename_seen_cache): Update.
1854 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1855 (filename_seen): Update.
1856
a2b6eff5
DE
18572012-07-13 Doug Evans <dje@google.com>
1858
1859 * symtab.c (filename_seen): Update comment.
1860
4359dff1
JK
18612012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1862 Doug Evans <dje@google.com>
1863
1864 * buildsym.c (end_symtab_1): Split it to ...
1865 (end_symtab_get_static_block): ... this ...
1866 (end_symtab_from_static_block): ... and this function.
1867 (end_symtab, end_expandable_symtab): Call them.
1868 * buildsym.h (end_symtab_get_static_block)
1869 (end_symtab_from_static_block): New declarations.
1870 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1871 Set its valid CU ranges.
1872
a24f71ab
JK
18732012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1874
1875 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1876 DW_OP_GNU_parameter_ref.
1877
d76b7dbc
JK
18782012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1879
1880 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1881 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1882
9fdc877b
DE
18832012-07-13 Doug Evans <dje@google.com>
1884
1885 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1886 (filename_seen_cache): New struct.
1887 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1888 (create_filename_seen_cache): New function.
1889 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1890 (filename_seen): Delete arg "first". New arg "cache". All callers
1891 updated.
1892 (output_source_filename_data): New struct.
1893 (output_source_filename): Delete arg "first". New arg "data".
1894 All callers updated.
1895 (sources_info): Delete local "first". New locals "data", "cleanups".
1896 Rewrite to use filename_seen_cache.
1897 (add_partial_filename_data): Delete member "first". New member
1898 "filename_seen_cache". All uses updated.
1899 (make_source_files_completion_list): Rewrite to use
1900 filename_seen_cache.
1901
f80c6f3f
DE
19022012-07-12 Doug Evans <dje@google.com>
1903
1904 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1905
0bfa869d
DE
19062012-07-10 Doug Evans <dje@google.com>
1907
f4dc4d17
DE
1908 PR gdb/13498
1909 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1910 all_type_unit_groups, type_unit_groups, tu_stats.
1911 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1912 All uses updated. Add type_unit_group to union "s".
1913 (type_unit_group): New struct.
1914 (IS_TYPE_UNIT_GROUP): New macro.
1915 (abbrev_table): Delete unused member "section".
1916 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1917 (dw2_get_cu): Assert not used with type_unit_group.
1918 (dw2_get_primary_cu): New function.
1919 (dw2_build_type_unit_groups_reader): New function.
1920 (dw2_build_type_unit_groups): New function.
1921 (dw2_get_file_names): Assert not called on type units.
1922 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1923 Redo loop to iterate over type unit groups instead of type units.
1924 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1925 (read_abbrev_offset): New function.
1926 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1927 updated.
1928 (create_partial_symtab): New function.
1929 (process_psymtab_comp_unit_reader): Assert not used with type units.
1930 Call create_partial_symtab.
1931 (process_psymtab_type_unit): Delete.
1932 (hash_type_unit_group, eq_type_unit_group): New functions.
1933 (allocate_type_unit_groups_table): New function.
1934 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1935 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1936 (create_type_unit_group, get_type_unit_group): New functions.
1937 (tu_abbrev_offset): New struct.
1938 (sort_tu_by_abbrev_offset): New function.
1939 (add_type_unit_group_to_table): New function.
1940 (build_type_unit_groups): New function.
1941 (build_type_psymtabs_reader): New function.
1942 (build_type_psymtab_dependencies): New function.
1943 (build_type_psymtabs): Rewrite.
1944 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1945 is seen in a type unit.
1946 (process_queue): Move symtab expansion debugging printfs here.
1947 Call process_full_type_unit for type units.
1948 (compute_symtab_includes): Assert not called for type units.
1949 (process_cu_includes): Don't call compute_symtab_includes for
1950 type units.
1951 (process_full_type_unit): New function.
1952 (process_imported_unit_die): Flag an error if called for type units.
1953 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1954 updated. Assert not called for type units.
1955 (read_file_scope): Call dwarf2_start_symtab.
1956 (setup_type_unit_groups): New function.
1957 (read_type_unit_scope): Rewrite.
1958 (abbrev_table_read_table): Initialize abbrev_table->offset.
1959 (abbrev_table_free_cleanup): New function.
1960 (dwarf2_start_symtab): New function.
1961 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
1962 * buildsym.c (finish_block_internal): New arg "expandable".
1963 All callers updated.
1964 (start_symtab): Move most contents to ...
1965 (restart_symtab): ... here. New function.
1966 (reset_symtab_globals): New function.
1967 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1968 Call reset_symtab_globals.
1969 (end_symtab, end_expandable_symtab): New functions.
1970 (set_missing_symtab, augment_type_symtab): New functions.
1971 * buildsym.h (end_expandable_symtab): Declare.
1972 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
1973 * psympriv.h (struct partial_symtab): New member "anonymous".
1974 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1975 anonymous psymtabs.
1976 (read_psymtabs_with_filename): Ditto.
1977 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1978 (expand_symtabs_matching_via_partial): Ditto.
1979 (dump_psymtab): Update.
0bfa869d
DE
1980 * dictionary.c (dict_add_pending): New function.
1981 * dictionary.h (dict_add_pending): Declare.
1982
45e58e77
DE
19832012-07-09 Doug Evans <dje@google.com>
1984
b74db436
DE
1985 * buildsym.c (start_subfile): Remove unnecessary check for
1986 name == NULL.
1987
fd55216c
DE
1988 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1989
6721b2ec
DE
1990 * dwarf2read.c (load_full_type_unit): Simplify.
1991
b4dd5633
DE
1992 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1993 to struct signatured_type **. All uses updated.
1994
45e58e77
DE
1995 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1996 All callers updated.
1997
e314d629
TT
19982012-07-09 Tom Tromey <tromey@redhat.com>
1999
2000 * c-exp.y (check_parameter_typelist): New function.
2001 (parameter_typelist): Call it.
2002 * eval.c (make_params): Handle '(void)' case.
2003 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2004 '(void)' case.
2005
aa7c7447
JK
20062012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2007
2008 * common/linux-ptrace.c: Include gdb_assert.h.
2009 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
2010 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
2011 stdint.h.
2012 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
2013 functions.
2014 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
2015 * linux-nat.c (linux_child_post_attach)
2016 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
2017
889003ed
JK
20182012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2019
2020 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
2021 nptl <2.7 bug workaround for core files.
2022
da559b09
JK
20232012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2024
2025 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
2026 clearing.
2027 (save_siginfo): Remove.
2028 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
2029 call.
2030 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
2031 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
2032 * linux-nat.h (struct lwp_info): Remove field siginfo.
2033
f865ee35
JK
20342012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2035
2036 Code cleanup for the next patch.
2037 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
2038 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2039 call for it.
2040 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
2041 (ia64_linux_stopped_data_address):
2042 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
2043 the return value.
2044 * linux-nat.h (linux_nat_get_siginfo): Likewise.
2045 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
2046 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
2047 call for it.
2048
76b83c51
JK
20492012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2050
2051 PR 14321
2052 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
2053 Increase buffer sizes to 2x we need, not just 2x of the previous size.
2054
a6fb9c08
TT
20552012-07-06 Tom Tromey <tromey@redhat.com>
2056
2057 * c-exp.y (DOTDOTDOT): New token.
2058 (func_mod, exp): Use parameter_typelist.
2059 (parameter_typelist): New production.
2060 (tokentab3): Add "..." token.
2061 * eval.c (make_params): Handle varargs.
2062 * gdbtypes.c (lookup_function_type_with_arguments): Handle
2063 varargs.
2064
71918a86
TT
20652012-07-06 Tom Tromey <tromey@redhat.com>
2066
2067 PR exp/9608:
2068 * c-exp.y (%union) <tvec>: Change type.
2069 (func_mod): Now uses <tvec> type.
2070 (exp): Update for tvec change.
2071 (direct_abs_decl): Push the typelist.
2072 (func_mod): Return a typelist.
2073 (nonempty_typelist): Update for tvec change.
2074 * gdbtypes.c (lookup_function_type_with_arguments): New function.
2075 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
2076 * parse.c (pop_type_list): New function.
2077 (push_typelist): New function.
2078 (follow_types): Handle tp_function_with_arguments.
2079 * parser-defs.h (type_ptr): New typedef. Define a VEC.
2080 (enum type_pieces) <tp_function_with_arguments>: New constant.
2081 (union type_stack_elt) <typelist_val>: New field.
2082 (push_typelist): Declare.
2083
fcde5961
TT
20842012-07-06 Tom Tromey <tromey@redhat.com>
2085
2086 * c-exp.y (%union) <type_stack>: New field.
2087 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
2088 (ptr_operator_ts): New production.
2089 (ptype): Update.
2090 * parse.c (type_stack_reserve): New function.
2091 (check_type_stack_depth): Use it.
2092 (pop_type_stack, append_type_stack, push_type_stack)
2093 (get_type_stack, type_stack_cleanup): New functions.
2094 (follow_types): Handle tp_type_stack.
2095 (_initialize_parse): Simplify initialization.
2096 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
2097 constant.
2098 (union type_stack_elt) <stack_val>: New field.
2099 (get_type_stack, append_type_stack, push_type_stack)
2100 (type_stack_cleanup): Declare.
2101
1a7d0ce4
TT
21022012-07-06 Tom Tromey <tromey@redhat.com>
2103
2104 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
2105 Remove.
2106 (struct type_stack): New.
2107 * parse.c (type_stack, type_stack_size, type_stack_depth):
2108 Remove.
2109 (type_stack): New global.
2110 (parse_exp_in_context, check_type_stack_depth)
2111 (insert_into_type_stack, insert_type, push_type, push_type_int)
2112 (insert_type_address_space, pop_type, pop_type_int)
2113 (_initialize_parse): Update.
2114
16d01384
TT
21152012-07-06 Tom Tromey <tromey@redhat.com>
2116
2117 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
2118 Remove %type.
2119
9bfc60bf
SP
21202012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2121
2122 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
2123
d5161074
SP
21242012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2125 Jan Kratochvil <jan.kratochvil@redhat.com>
2126
2127 * cp-valprint.c (cp_print_value): Replace potentially unsafe
2128 alloca with xmalloc/xfree.
2129
a74bc576
SP
21302012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
2131
2132 * MAINTAINERS (Write After Approval): Add myself to the list.
2133
667e0a4b
DE
21342012-07-05 Doug Evans <dje@google.com>
2135
2136 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
2137
34b536a8
HZ
21382012-07-05 Hui Zhu <hui_zhu@mentor.com>
2139
2140 * ax-gdb.c (cli/cli-utils.h): New include.
2141 (linespec.h): Ditto.
2142 (agent_eval_command_one): New function.
2143 (agent_command_1): Ditto.
2144 (agent_command): Call function agent_command_1.
2145 (agent_eval_command): Ditto.
2146 (_initialize_ax_gdb): Change help for "maint agent"
2147 and "maint agent-eval".
2148
e6f0bce7
HZ
21492012-07-05 Hui Zhu <hui_zhu@mentor.com>
2150
2151 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
2152 * cli/cli-utils.c (check_for_argument): New function.
2153 * cli/cli-utils.h (check_for_argument): Ditto.
2154
1b3371b1
L
21552012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2156
2157 * NEWS: Mention x32 ABI support.
2158
23e2d720
L
21592012-07-04 H.J. Lu <hongjiu.lu@intel.com>
2160
2161 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
2162 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
2163
2164 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
2165 and pc_regnum_from_eax to -1. Update SP regnum from
2166 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
2167 needed.
2168
2169 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
2170 pc_regnum_from_eax.
2171
836bf454
JK
21722012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2173
2174 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2175 * dwarf2expr.h: Include gdbtypes.h.
2176 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2177 these forward declarations.
2178 (cu_offset, sect_offset): Move these ...
2179 * gdbtypes.h: Remove include dwarf2expr.h.
2180 (cu_offset, sect_offset): ... here.
2181
1e55e04f
L
21822012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2183
2184 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2185 (amd64_linux_sigtramp_code): This.
2186 (amd64_x32_linux_sigtramp_code): New.
2187 (LINUX_SIGTRAMP_LEN): Updated.
2188 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2189
7d0e21ad
JK
21902012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2191
2192 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2193
8775fd2d
JK
21942012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2195
2196 * config.in: Regenerate.
2197 * configure: Regenerate.
2198 * configure.ac: Remove check for gnu/libc-version.h.
2199 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2200 gnu/libc-version.h.
2201 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2202 variables libc_version, libc_major and libc_minor. Replace sscanf by
2203 inferior_has_bug. Extend the comment.
2204
fcb44371
JK
22052012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 * linux-thread-db.c (inferior_has_bug): New function.
2208 (thread_db_find_new_threads_silently): Return boolean as checked by
2209 inferior_has_bug, describe it in the comments.
2210 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2211 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2212 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2213 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2214 if UNTIL_NO_NEW,
2215
09406207
DE
22162012-07-02 Doug Evans <dje@google.com>
2217
0907af0c
DE
2218 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2219 related to queue management.
2220
09406207
DE
2221 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2222 instead of "debug dwarf2-die" in debugging printfs.
2223 (create_debug_info_hash_table_reader): Ditto.
2224 (create_debug_info_hash_table): Ditto.
2225 (init_dwo_file): Ditto.
2226 (init_cutu_and_read_dies): Add debugging printf.
2227 (init_cutu_and_read_dies_no_follow): Ditto.
2228 (process_psymtab_comp_unit_reader): Ditto.
2229
d3ce09f5
SS
22302012-07-02 Stan Shebs <stan@codesourcery.com>
2231
2232 Add target-side support for dynamic printf.
2233 * NEWS: Mention the additional style.
2234 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2235 (struct bp_location): New field cmd_bytecode.
2236 * breakpoint.c: Include format.h.
2237 (disconnected_dprintf): New global.
2238 (parse_cmd_to_aexpr): New function.
2239 (build_target_command_list): New function.
2240 (insert_bp_location): Call it.
2241 (remove_breakpoints_pid): Skip dprintf breakpoints.
2242 (print_one_breakpoint_location): Ditto.
2243 (dprintf_style_agent): New global.
2244 (dprintf_style_enums): Add dprintf_style_agent.
2245 (update_dprintf_command_list): Add agent case.
2246 (agent_printf_command): New function.
2247 (_initialize_breakpoint): Add new commands.
2248 * common/ax.def (printf): New bytecode.
2249 * ax.h (ax_string): Declare.
2250 * ax-gdb.h (gen_printf): Declare.
2251 * ax-gdb.c: Include cli-utils.h, format.h.
2252 (gen_printf): New function.
2253 (maint_agent_print_command): New function.
2254 (_initialize_ax_gdb): Add maint agent-printf command.
2255 * ax-general.c (ax_string): New function.
2256 (ax_print): Add printf disassembly.
2257 * Makefile.in (SFILES): Add format.c
2258 (COMMON_OBS): Add format.o.
2259 * common/format.h: New file.
2260 * common/format.c: New file.
2261 * printcmd.c: Include format.h.
2262 (ui_printf): Call parse_format_string.
2263 * remote.c (remote_state): New field breakpoint_commands.
2264 (PACKET_BreakpointCommands): New enum.
2265 (remote_breakpoint_commands_feature): New function.
2266 (remote_protocol_features): Add new BreakpointCommands entry.
2267 (remote_can_run_breakpoint_commands): New function.
2268 (remote_add_target_side_commands): New function.
2269 (remote_insert_breakpoint): Call it.
2270 (remote_insert_hw_breakpoint): Ditto.
2271 (_initialize_remote): Add new packet configuration for
2272 target-side breakpoint commands.
2273 * target.h (struct target_ops): New field
2274 to_can_run_breakpoint_commands.
2275 (target_can_run_breakpoint_commands): New macro.
2276 * target.c (update_current_target): Handle
2277 to_can_run_breakpoint_commands.
2278
2d7b58e8
JK
22792012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2280
2281 Execute -ix and -iex only after system and user gdbinit files.
2282 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2283 processing down after gdbinit files.
2284
8690e634
JK
22852012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2286
2287 Add fnmatch-gnu module.
2288 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2289 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2290 * gnulib/aclocal.m4: Regenerate.
2291 * gnulib/config.in: Regenerate.
2292 * gnulib/configure: Regenerate.
2293 * gnulib/import/dummy.c: Remove.
2294 * gnulib/import/Makefile.am: Regenerate.
2295 * gnulib/import/Makefile.in: Likewise.
2296 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2297 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2298 * gnulib/import/alloca.c: New file.
2299 * gnulib/import/alloca.in.h: Likewise.
2300 * gnulib/import/config.charset: Likewise.
2301 * gnulib/import/fnmatch.c: Likewise.
2302 * gnulib/import/fnmatch.in.h: Likewise.
2303 * gnulib/import/fnmatch_loop.c: Likewise.
2304 * gnulib/import/localcharset.c: Likewise.
2305 * gnulib/import/localcharset.h: Likewise.
2306 * gnulib/import/m4/alloca.m4: Likewise.
2307 * gnulib/import/m4/codeset.m4: Likewise.
2308 * gnulib/import/m4/configmake.m4: Likewise.
2309 * gnulib/import/m4/fcntl-o.m4: Likewise.
2310 * gnulib/import/m4/fnmatch.m4: Likewise.
2311 * gnulib/import/m4/glibc21.m4: Likewise.
2312 * gnulib/import/m4/localcharset.m4: Likewise.
2313 * gnulib/import/m4/locale-fr.m4: Likewise.
2314 * gnulib/import/m4/locale-ja.m4: Likewise.
2315 * gnulib/import/m4/locale-zh.m4: Likewise.
2316 * gnulib/import/m4/mbrtowc.m4: Likewise.
2317 * gnulib/import/m4/mbsinit.m4: Likewise.
2318 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2319 * gnulib/import/m4/mbstate_t.m4: Likewise.
2320 * gnulib/import/m4/stdbool.m4: Likewise.
2321 * gnulib/import/m4/wchar_h.m4: Likewise.
2322 * gnulib/import/m4/wctype_h.m4: Likewise.
2323 * gnulib/import/m4/wint_t.m4: Likewise.
2324 * gnulib/import/mbrtowc.c: Likewise.
2325 * gnulib/import/mbsinit.c: Likewise.
2326 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2327 * gnulib/import/mbsrtowcs-state.c: Likewise.
2328 * gnulib/import/mbsrtowcs.c: Likewise.
2329 * gnulib/import/ref-add.sin: Likewise.
2330 * gnulib/import/ref-del.sin: Likewise.
2331 * gnulib/import/stdbool.in.h: Likewise.
2332 * gnulib/import/streq.h: Likewise.
2333 * gnulib/import/strnlen1.c: Likewise.
2334 * gnulib/import/strnlen1.h: Likewise.
2335 * gnulib/import/verify.h: Likewise.
2336 * gnulib/import/wchar.in.h: Likewise.
2337 * gnulib/import/wctype.in.h: Likewise.
2338
202cbf1c
JK
23392012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2340
2341 Support shell wildcards for 'set auto-load safe-path'.
2342 * auto-load.c: Include fnmatch.h.
2343 (filename_is_in_dir): Rename to ...
2344 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2345 it. Update function comment. Rename dir_len to pattern_len. New
2346 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2347 messages. Use gdb_filename_fnmatch.
2348 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2349 pattern.
2350 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2351 * defs.h (gdb_filename_fnmatch): New declaration.
2352 * utils.c: Include fnmatch.h.
2353 (gdb_filename_fnmatch): New function.
2354
fb7b5af4
SDJ
23552012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2356
2357 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2358 `-probe' and `-probe-stap' options.
2359
72d0e2c5
YQ
23602012-07-01 Yao Qi <yao@codesourcery.com>
2361
2362 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2363 always_inserted_off, and always_inserted_enums.
2364 Change always_inserted_mode's type to 'enum auto_boolean'.
2365 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2366 callers.
2367 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2368 of add_setshow_enum_cmd.
2369 * infrun.c: Remove can_use_displaced_stepping_auto,
2370 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2371 can_use_displaced_stepping_enum.
2372 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2373 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2374 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2375 add_setshow_enum_cmd.
2376
42e7ad6c
DE
23772012-06-30 Doug Evans <dje@google.com>
2378
2379 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2380 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2381 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2382
39cf75f7
DE
23832012-06-29 Doug Evans <dje@google.com>
2384
2385 * linespec.c: #include "stack.h".
2386 (decode_line_with_current_source): Moved here from symtab.c and
2387 renamed from decode_line_spec. All callers updated.
2388 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2389 renamed from decode_line_spec_1. All callers updated.
2390 * linespec.h (decode_line_with_current_source): Move declaration here
2391 from symtab.h and renamed from decode_line_spec.
2392 (decode_line_with_last_displayed): Move declaration here from symtab.h
2393 and renamed from decode_line_spec_1.
2394 * macrocmd.c: #include "linespec.h".
2395 * symtab.c: Remove #include "linespec.h".
2396
433df2d4
DE
23972012-06-28 Doug Evans <dje@google.com>
2398
1ce1cefd
DE
2399 * dwarf2read.c (get_cu_length): New function.
2400 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2401 (create_debug_types_hash_table): Ditto.
2402 (init_cutu_and_read_dies): Ditto.
2403 (init_cutu_and_read_dies_no_follow): Ditto.
2404
3b80fe9b
DE
2405 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2406
433df2d4
DE
2407 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2408 (struct abbrev_table): Define.
2409 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2410 abbrev_table.
2411 (init_cutu_and_read_dies): Update.
2412 (abbrev_table_alloc_abbrev): New function. Replaces
2413 dwarf_alloc_abbrev. All callers updated.
2414 (abbrev_table_add_abbrev): New function.
2415 (abbrev_table_lookup_abbrev): New function. Replaces
2416 dwarf2_lookup_abbrev. All callers updated.
2417 (abbrev_table_read_table): New function. Contents moved here from
2418 dwarf2_read_abbrevs.
2419 (dwarf2_read_abbrevs): Call it.
2420 (abbrev_table_free): New function.
2421 (dwarf2_free_abbrev_table): Call it.
2422
71caed83
SS
24232012-06-28 Stan Shebs <stan@codesourcery.com>
2424
2425 * osdata.c (info_osdata_command): Filter out "Title" columns
2426 from non-MI uses.
2427 * common/linux-osdata.c (struct osdata_type): Add title field.
2428 (osdata_table): Add titles to each entry.
2429 (linux_command_xfer_osdata): Add a column for title data.
2430
37ce89eb
SS
24312012-06-28 Stan Shebs <stan@codesourcery.com>
2432
2433 Make logging work for MI.
2434 * NEWS: Mention it.
2435 * interps.h (interp_set_logging_ftype): New typedef.
2436 (struct interp_procs): New field set_logging_proc.
2437 (current_interp_set_logging): Declare.
2438 * interps.c (current_interp_set_logging): New function.
2439 * cli/cli-logging.c: Include interps.h.
2440 (set_logging_redirect): Call current_interp_set_logging.
2441 (pop_output_files): Ditto.
2442 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2443 * mi/mi-console.h (mi_console_set_raw): Declare.
2444 * mi/mi-console.c (mi_console_set_raw): New function.
2445 * mi/mi-interp.c (saved_raw_stdout): New global.
2446 (mi_set_logging): New function.
2447 (_initialize_mi_interp): Add it to interp procs.
2448
659c9f3a
DE
24492012-06-28 Doug Evans <dje@google.com>
2450
a743abeb
DE
2451 * symtab.c (lookup_symbol_aux_objfile): Use
2452 ALL_OBJFILE_PRIMARY_SYMTABS.
2453
659c9f3a
DE
2454 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2455
da2d6d3d
JK
24562012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2457
2458 * common/buffer.c: Include inttypes.h and stdint.h.
2459 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2460
e5ef252a
PA
24612012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2462 Pedro Alves <palves@redhat.com>
2463
2464 * gdbthread.h (ALL_THREADS): New macro.
2465 (thread_list): Declare.
2466 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2467 going, but instead fall through to the stepping handling.
2468 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2469 the passed in signal. Adjust debug output.
2470 (resume_callback): Rename to ...
2471 (linux_nat_resume_callback): ... this. Pass the thread's last
2472 stop signal, if in "pass" state.
2473 (linux_nat_resume): Adjust to rename.
2474 (stop_wait_callback): New assertion. Don't respawn signals;
2475 instead let the LWP remain with SIGNALLED set.
2476 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2477 * remote.c (append_pending_thread_resumptions): New.
2478 (remote_vcont_resume): Call it.
2479 * target.h (target_resume): Extend comment.
2480
1d7975eb
IS
24812012-06-28 Iain Sandoe <iain@codesourcery.com>
2482
2483 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2484
2e3cf129
DE
24852012-06-27 Doug Evans <dje@google.com>
2486
2487 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2488 Delete have_addr_base, unused. All uses updated.
2489 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2490 (dwarf2_get_pc_bounds): Add ranges_base.
2491 (dwarf2_record_block_ranges): Ditto.
2492
1bb9788d
TT
24932012-06-27 Tom Tromey <tromey@redhat.com>
2494
2495 PR macros/7961:
2496 * varobj.c (varobj_create): Update.
2497 (varobj_set_value): Update.
2498 * tracepoint.c (validate_actionline): Update.
2499 (encode_actions_1): Update.
2500 * parse.c (parse_exp_1): Add 'pc' argument.
2501 (parse_exp_in_context): Add 'pc' argument. Change how
2502 expression_context_pc is set.
2503 (parse_expression): Update.
2504 (parse_field_expression): Update.
2505 * expression.h (parse_exp_1): Update.
2506 * eval.c (parse_to_comma_and_eval): Update.
2507 * breakpoint.c (set_breakpoint_condition): Update.
2508 (update_watchpoint): Update.
2509 (init_breakpoint_sal): Update
2510 (find_condition_and_thread): Update.
2511 (watch_command_1): Update.
2512 (update_breakpoint_locations): Update.
2513 * ada-lang.c (ada_read_renaming_var_value): Update.
2514 (create_excep_cond_exprs): Update.
2515
0bc3a05c
DE
25162012-06-27 Doug Evans <dje@google.com>
2517
2518 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2519 type units.
2520
4bdcc0c1
DE
25212012-06-26 Doug Evans <dje@google.com>
2522
2523 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2524 prototype.
2525 (error_check_comp_unit_head): New arg abbrev_section. All callers
2526 updated.
2527 (read_and_check_comp_unit_head): Ditto.
2528 (read_and_check_type_unit_head): Ditto.
2529
ee0bf529
SCR
25302012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2531
2532 New attribute 'last' for gdb.Symtab_and_line.
2533 * NEWS (Python Scripting): Add entry about the new attribute.
2534 * python/py-symtab.c (salpy_get_last): New function which
2535 implements the get method for the 'last' attribute of
2536 gdb.Symtab_and_line.
2537 (sal_object_getset): Add entry for the 'last' attribute.
2538
1c658ad5
DE
25392012-06-26 Doug Evans <dje@google.com>
2540
09262596
DE
2541 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2542 (dwo_sections): Add macinfo, macro.
2543 (dwarf2_locate_dwo_sections): Watch for macro sections.
2544 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2545 All callers updated. Handle DWO files.
2546
45cfd468
DE
2547 * NEWS: Mention new options "set debug dwarf2-read" and
2548 "set debug symtab-create".
2549 * dwarf2read.c (dwarf2_read_debug): New static global.
2550 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2551 (process_queue): Ditto.
2552 (process_full_comp_unit): Ditto.
2553 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2554 * elfread.c (elf_symfile_read): Add debugging printf.
2555 * minsyms.c (install_minimal_symbols): Ditto.
2556 * psymtab.c (allocate_psymtab): Ditto.
2557 * symfile.c (allocate_symtab): Ditto.
2558 * symtab.c (symtab_create_debug): New global.
2559 (_initialize_symtab): Add new option "set debug symtab-create".
2560 * symtab.h (symtab_create_debug): Declare.
2561
1c658ad5
DE
2562 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2563 (lookup_dwo_type_unit): Ditto.
2564
6fea9e18
L
25652012-06-26 Roland McGrath <roland@hack.frob.com>
2566 H.J. Lu <hongjiu.lu@intel.com>
2567
2568 * amd64-linux-nat.c: Include <sys/user.h>.
2569 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2570 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2571 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2572
2573 * configure.ac: Check if the fs_base and gs_base members of
2574 `struct user_regs_struct' exist.
2575 * config.in: Regenerated.
2576 * configure: Likewise.
2577
adb4fe3b
ME
25782012-06-25 Michael Eager <eager@eagercon.com>
2579
2580 PR python/14291
f782ad9b 2581 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 2582
fc51cce1
MGD
25832012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2584
2585 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2586 register as a stack alignment in ARM mode.
2587
40a73391
JK
25882012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2589
2590 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2591 * gnulib/config.in: Regenerate.
2592 * gnulib/configure: Likewise.
2593 * gnulib/import/m4/extensions.m4: Update it.
2594 * gnulib/import/m4/gnulib-common.m4: Likewise.
2595 * gnulib/import/m4/memmem.m4: Likewise.
2596 * gnulib/import/m4/mmap-anon.m4: Likewise.
2597 * gnulib/import/m4/multiarch.m4: Likewise.
2598 * gnulib/import/stdint.in.h: Likewise.
2599
972daa01
YQ
26002012-06-24 Yao Qi <yao@codesourcery.com>
2601
2602 * corefile.c (write_memory_with_notification): New.
2603 * gdbcore.h: Declare write_memory_with_notification.
2604 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2605 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2606 * valops.c (value_assign): Likewise.
2607 * python/py-inferior.c (infpy_write_memory): Call
2608 'write_memory_with_notification'.
2609
8d6e0714
JK
26102012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2611
2612 * cc-with-index.sh: Use also -ex "set auto-load no".
2613
156942c7
DE
26142012-06-23 Doug Evans <dje@google.com>
2615
2616 PR 14125
2617 * NEWS: Document additions to .gdb_index.
2618 * dwarf2read.c: #include "gdb/gdb-index.h".
2619 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2620 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2621 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2622 (dwarf2_read_index): Recognize version 7.
2623 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2624 block_kind, domain): All callers updated.
2625 (dw2_find_symbol_file): Handle new index CU values.
2626 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2627 (add_index_entry): New args is_static, kind. All callers updated.
2628 (offset_type_compare, uniquify_cu_indices): New functions
2629 (symbol_kind): New function.
2630 (write_psymtabs_to_index): Remove duplicate CU values.
2631 (write_psymtabs_to_index): Write .gdb_index version 7.
2632
352b3eda
JB
26332012-06-22 Joel Brobecker <brobecker@adacore.com>
2634
2635 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2636 * configure: Regenerate.
2637
2678e2af
YQ
26382012-06-20 Yao Qi <yao@codesourcery.com>
2639
2640 * python/py-inferior.c: Update comments of infpy_read_memory
2641 and infpy_write_memory.
2642
95c391b6
TT
26432012-06-19 Tom Tromey <tromey@redhat.com>
2644
2645 PR exp/9514:
2646 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2647 (push_type_address_space): Remove.
2648 * parse.c (insert_into_type_stack): New function.
2649 (insert_type): Likewise.
2650 (insert_type_address_space): Rename from push_type_address_space.
2651 Insert tp_space_identifier.
2652 * c-exp.y (ptr_operator): New production.
2653 (abs_decl): Use ptr_operator.
2654 (space_identifier): Call insert_type_address_space.
2655 (ptype): Don't use const_or_volatile_or_space_identifier.
2656 (const_or_volatile_noopt): Call insert_type.
2657 (conversion_type_id, conversion_declarator): New productions.
2658 (operator): Use conversion_type_id.
2659
6ac9ef80
DE
26602012-06-18 Doug Evans <dje@google.com>
2661
422d65e7
DE
2662 * symtab.h (minimal_symbol): New member created_by_gdb.
2663 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2664 created by gdb.
2665 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2666 (search_symbols): Call it instead of lookup_symbol.
2667 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2668
49f6c839
DE
2669 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2670 Adjust address for DW_OP_GNU_addr_index.
2671 * dwarf2expr.h (dwarf_expr_context): Update comment.
2672 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2673 all callers updated. Handle TLS vars described with
2674 DW_OP_GNU_const_index.
2675 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2676 and DW_OP_GNU_const_index.
2677 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2678
6ac9ef80
DE
2679 * block.c (find_block_in_blockvector): Make explicit the fact that we
2680 ignore GLOBAL_BLOCK.
2681
4cd18215
TT
26822012-06-18 Tom Tromey <tromey@redhat.com>
2683
2684 * c-exp.y (operator): Remove trailing space after "delete" and
2685 "delete[]".
2686
a9b8d892
JK
26872012-06-18 Mark Kettenis <kettenis@gnu.org>
2688 Jan Kratochvil <jan.kratochvil@redhat.com>
2689
2690 Switch i386 and derived targets to ON_STACK.
2691 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2692 (amd64_dicos_init_abi): Remove its installment.
2693 * dicos-tdep.c (dicos_init_abi): Remove the
2694 set_gdbarch_call_dummy_location call. Update the comment here.
2695 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2696 (i386_dicos_init_abi): Remove its installment.
2697 * i386-tdep.c (i386_push_dummy_code): New function.
2698 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2699 i386_push_dummy_code.
2700
e2e4d78b
JK
27012012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2702
2703 Remove stale dummy frames.
2704 * breakpoint.c: Include dummy-frame.h.
2705 (longjmp_breakpoint_ops): New variable.
2706 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2707 bp_longjmp_call_dummy.
2708 (bpstat_what, bptype_string, print_one_breakpoint_location)
2709 (init_bp_location): Support bp_longjmp_call_dummy.
2710 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2711 (set_longjmp_breakpoint_for_call_dummy)
2712 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2713 functions.
2714 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2715 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2716 FIXME comment and extend the other comment for bp_call_dummy.
2717 (set_longjmp_breakpoint_for_call_dummy)
2718 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2719 * dummy-frame.c: Include gdbthread.h.
2720 (pop_dummy_frame_bpt): New function.
2721 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2722 (dummy_frame_discard): New function.
2723 (cleanup_dummy_frames): Update the comment about longjmps.
2724 * dummy-frame.h (dummy_frame_discard): New declaration.
2725 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2726 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2727 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2728 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2729 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2730 keep_going if IS_LONGJMP and there is no other reason to stop.
2731
09d5912c
TT
27322012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2733
2734 * remote-sim.c (sim_command_completer): Initialize
2735 variable 'result'.
2736
1788b2d3
JK
27372012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2738
2739 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2740 * dwarf2loc.c (call_site_parameter_matches): Support
2741 CALL_SITE_PARAMETER_PARAM_OFFSET.
2742 (needs_dwarf_reg_entry_value): Push stub value.
2743 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2744 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2745 * gdbtypes.h (enum call_site_parameter_kind): New item
2746 CALL_SITE_PARAMETER_PARAM_OFFSET.
2747 (struct call_site.parameter.u): New field param_offset.
2748
24c5c679
JK
27492012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2750
2751 Code cleanup: Generalize call_site.parameter key.
2752 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2753 variable dwarf_reg. New variable kind_u. Update parameters to
2754 push_dwarf_reg_entry_value.
2755 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2756 * dwarf2expr.h (enum call_site_parameter_kind)
2757 (union call_site_parameter_u): Forward declarations.
2758 (struct dwarf_expr_context_funcs): Update parameters and their
2759 description for push_dwarf_reg_entry_value.
2760 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2761 * dwarf2loc.c (call_site_parameter_matches): New function.
2762 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2763 description. Use call_site_parameter_matches.
2764 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2765 Update parameters and their description.
2766 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2767 New variable kind_u. Adjust the caller for updated parameters.
2768 (needs_dwarf_reg_entry_value): Update parameters.
2769 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2770 instead of attr. Update for the changed fields of struct
2771 call_site_parameter.
2772 * gdbtypes.h: Include dwarf2expr.h.
2773 (enum call_site_parameter_kind): New.
2774 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2775 fb_offset into new union u.
2776
ac142d96
L
27772012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2778
2779 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2780 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2781 for x32.
2782
ba224c70
L
27832012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2784
2785 * amd64-linux-nat.c (compat_x32_clock_t): New.
2786 (compat_x32_siginfo_t): Likewise.
2787 (compat_x32_siginfo_from_siginfo): Likewise.
2788 (siginfo_from_compat_x32_siginfo): Likewise.
2789 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2790 and siginfo_from_compat_x32_siginfo for x32.
2791
7ecbc825
HZ
27922012-06-15 Hui Zhu <hui_zhu@mentor.com>
2793
2794 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2795
233dfcf0
L
27962012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2797
2798 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2799 instead of gdbarch_ptr_bit.
2800 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2801 (amd64_supply_native_gregset): Likewise.
2802 (amd64_collect_native_gregset): Likewise.
2803 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2804 (amd64_supply_xsave): Likewise.
2805 (amd64_collect_fxsave): Likewise.
2806 (amd64_collect_xsave): Likewise.
2807
6da38f42
L
28082012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2809
2810 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2811 (amd64_linux_read_description): Check DS segment register for
2812 x32 process.
2813
663b969e
TT
28142012-06-15 Tom Tromey <tromey@redhat.com>
2815
2816 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2817 init_cutu_and_read_dies.
2818
d6f05027
IS
28192012-06-15 Iain Sandoe <iain@codesourcery.com>
2820
2821 * MAINTAINERS (Write After Approval): Add myself to the list.
2822
6598ed07
TT
28232012-06-15 Tom Tromey <tromey@redhat.com>
2824
2825 * valops.c (value_find_oload_method_list): Now static.
2826 * value.h (value_find_oload_method_list): Don't declare.
2827
2b214ea6
TT
28282012-06-15 Tom Tromey <tromey@redhat.com>
2829
2830 * valops.c (find_overload_match): Use value_ind.
2831
a210c238
MR
28322012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2833
2834 * infrun.c (handle_inferior_event): Correct indentation.
2835
3771a44c
DE
28362012-06-14 Doug Evans <dje@google.com>
2837
2838 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2839 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2840 All uses updated.
2841 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2842 updated. Handle DEBUG_LOC_START_LENGTH.
2843 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2844 (loclist_describe_location): Ditto.
2845
1c5a993e
MR
28462012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2847
2848 PR backtrace/13866
2849 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2850 after hiding inline functions.
2851
0b155465
JB
28522012-06-13 Joel Brobecker <brobecker@adacore.com>
2853
2854 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2855 _initialize_inf_ttrace.
2856
45717bac
JB
28572012-06-13 Joel Brobecker <brobecker@adacore.com>
2858
2859 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2860 _initialize_hppa_hpux_nat.
2861
34370865
JB
28622012-06-13 Joel Brobecker <brobecker@adacore.com>
2863
2864 * remote-sim.c (sim_command_completer): Change type of return
2865 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2866
284c5a60
MK
28672012-06-13 Mark Kettenis <kettenis@gnu.org>
2868 Jan Kratochvil <jan.kratochvil@redhat.com>
2869
2870 PR tdep/14222
2871 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2872 stack on a 16-byte boundary.
2873
2535757a
TT
28742012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2875
2876 * jit.c (finalize_symtab): Set function's return type to 'void' by
2877 default.
2878
fff4548b
MK
28792012-06-13 Mark Kettenis <kettenis@gnu.org>
2880 H.J. Lu <hongjiu.lu@intel.com>
2881
5a83521a
MK
2882 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2883 Move bits common to both the classic LP64 and the new x32 ILP32
2884 ABI here.
2885 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2886 (amd64_x32_linux_init_abi): New function.
2887 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2888 subtype.
2889
fff4548b
MK
2890 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2891 * i386-tdep.c (i386_pseudo_register_name): Make public.
2892 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2893 * amd64-tdep.c (amd64_dword_names): Add "eip".
2894 (amd64_x32_pseudo_register_type): New function
2895 (amd64_x32_init_abi): New function.
2896
dd80ea3c
JK
28972012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2898
2899 PR build/14003
2900 * inferior.h (struct inferior_suspend_state): Comment out.
2901 (struct inferior): Comment out the field suspend.
2902 * infrun.c (struct infcall_suspend_state): Comment out the field
2903 inferior_suspend.
2904 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2905 out its assignment.
2906
50af5481
JK
29072012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2908
2909 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2910 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2911 function comment. Return ERROR for unresolved cases. Implement
2912 returning proper NAME.
2913 (yylex): Accept also NAME from classify_inner_name.
2914 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2915 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2916 LOC_TYPEDEF type.
2917 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2918
d55637df
TT
29192012-06-13 Tom Tromey <tromey@redhat.com>
2920
2921 * breakpoint.c (condition_completer): New function.
2922 (_initialize_breakpoint): Use it.
2923 * value.c (complete_internalvar): New function.
2924 * value.h (complete_internalvar): Declare.
2925
49c4e619
TT
29262012-06-13 Tom Tromey <tromey@redhat.com>
2927
2928 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2929 * breakpoint.c (catch_syscall_completer): Return a VEC.
2930 * cli/cli-cmds.c (complete_command): Update.
2931 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2932 (complete_on_enum): Likewise.
2933 * command.h: Include gdb_vecs.h.
2934 (completer_ftype): Change return type.
2935 (complete_on_cmdlist, complete_on_enum): Likewise.
2936 * completer.c (noop_completer, filename_completer)
2937 (location_completer): Return a VEC.
2938 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2939 to a VEC.
2940 (expression_completer, complete_line_internal, complete_line)
2941 (command_completer): Return a VEC.
2942 (gdb_completion_word_break_characters, line_completion_function):
2943 Update.
2944 * completer.h: Include gdb_vecs.h.
2945 (complete_line, noop_completer, filename_completer)
2946 (expression_completer, location_completer, command_completer):
2947 Update.
2948 * f-lang.c (f_word_break_characters): Return a VEC.
2949 * interps.c (interpreter_completer): Return a VEC.
2950 * language.h (struct language_defn)
2951 <la_make_symbol_completion_list>: Return a VEC.
2952 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2953 * symtab.c (free_completion_list): Take a VEC.
2954 (return_val_size, return_val_index): Remove.
2955 (return_val): Now a VEC.
2956 (completion_list_add_name): Update.
2957 (default_make_symbol_completion_list_break_on)
2958 (default_make_symbol_completion_list, make_symbol_completion_list)
2959 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2960 Return a VEC.
2961 (add_filename_to_list): Update.
2962 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2963 <list>: Now a VEC.
2964 (maybe_add_partial_symtab_filename): Update.
2965 (make_source_files_completion_list): Return a VEC.
2966 * symtab.h (default_make_symbol_completion_list_break_on)
2967 (default_make_symbol_completion_list, make_symbol_completion_list)
2968 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2969 (make_source_files_completion_list): Update.
2970
625e8578
TT
29712012-06-13 Tom Tromey <tromey@redhat.com>
2972
2973 * breakpoint.c (add_catch_command): Use completer_ftype.
2974 * breakpoint.h: Include command.h.
2975 (add_catch_command): Use completer_ftype.
2976 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2977 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2978 Use completer_ftype.
2979 * command.h (completer_ftype): New typedef.
2980 (set_cmd_completer): Use it.
2981 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2982 completer_ftype.
2983
5eb3b062
PA
29842012-06-13 Pedro Alves <palves@redhat.com>
2985
2986 Partial revert of previous change.
2987
2988 * serial.c (scb_base): New global.
2989 (serial_for_fd): New.
2990 (serial_open, serial_fdopen_ops): Link new serial in open serials
2991 chain.
2992 (do_serial_close): Unlink serial from the open serials chain.
2993
8b3ee56d
PA
29942012-06-12 Pedro Alves <palves@redhat.com>
2995
2996 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2997 threads here.
2998 (prepare_for_detach): No longer context switch here in non-stop
2999 mode.
3000 (fetch_inferior_event): Ditto.
3001 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
3002 to the event thread before removing breakpoints. Switch to the
3003 event thread before inserting breakpoints and resuming.
3004 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
3005 event thread before resuming.
3006 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
3007 Switch to the event thread before removing breakpoints.
3008
5d60742e
EZ
30092012-06-12 Eli Zaretskii <eliz@gnu.org>
3010
3011 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
3012 special characters correctly for the Windows shells. See
3013 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
3014 report.
3015 [!__MINGW32__]: Remove extra double quote character from special
3016 characters.
3017
a6feecf7
SS
30182012-06-11 Stan Shebs <stan@codesourcery.com>
3019
3020 * ui-out.h: Remove #if 0 declarations.
3021 * ui-out.c: Remove #if 0 functions.
3022
ddefb60f
PA
30232012-06-11 Pedro Alves <palves@redhat.com>
3024
3025 * ser-base.c (run_async_handler_and_reschedule): New.
3026 (fd_event, push_event): Use it.
3027 * serial.c (serial_open, serial_fdopen_ops): Set the initial
3028 reference count to 1.
3029 (do_serial_close): Set the bufp field to NULL. Use serial_unref
3030 instead of xfree.
3031 (serial_is_open, serial_ref, serial_unref): New.
3032 * serial.h (serial_open): Adjust comment.
3033 (serial_is_open): Declare.
3034 (serial_close): Adjust comment.
3035 (serial_ref, serial_unref) Declare.
3036 (struct serial): New field 'refcnt'.
3037
d5ad6aa5
PA
30382012-06-11 Pedro Alves <palves@redhat.com>
3039
3040 Remove #if 0'd "connect" command, and unnecessary associated
3041 refcounting and serial reuse bits.
3042
3043 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
3044 * serial.c (last_serial_opened): Delete.
3045 (scb_base): Delete.
3046 (serial_open): Adjust.
3047 (serial_for_fd): Delete.
3048 (serial_fdopen_ops, do_serial_close): Adjust.
3049 (serial_fdopen_ops): Adjust.
3050
318aa544
PA
30512012-06-11 Pedro Alves <palves@redhat.com>
3052
3053 * serial.c (do_serial_close): Remove early return when SCB is
3054 null.
3055
07261596
TT
30562012-06-11 Tom Tromey <tromey@redhat.com>
3057
3058 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
3059
cc80f267
JK
30602012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3061
3062 Fix regression by the "ambiguous linespec" series.
3063 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
3064 get_last_displayed_symtab and get_last_displayed_line and depending
3065 on CURSAL.
3066
356d9f9d
TT
30672012-06-11 Tom Tromey <tromey@redhat.com>
3068
3069 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
3070 (dw2_find_symbol_file): Use it.
3071
232b8704
ME
30722012-06-11 Michael Eager <eager@eagercon.com>
3073
3074 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
3075 * mips-linux-tdep.h (mips_signals): New
3076
e81a37f7
TT
30772012-06-11 Tom Tromey <tromey@redhat.com>
3078
3079 * infrun.c (handle_inferior_event)
3080 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
3081 breakpoint.
3082 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
3083 exception logic in all cases. Update comments.
3084 (insert_longjmp_resume_breakpoint): Set the exception resume
3085 breakpoint.
3086
2e81047f
MR
30872012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
3088
3089 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
3090
4e32eda7
SCR
30912012-06-09 Siva Chandra Reddy <sivachandra@google.com>
3092
3093 * valarith.c (binop_types_user_defined_p): Fix a typo.
3094
18648a37 30952012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 3096 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
3097
3098 * arch-utils.c (default_return_in_first_hidden_param_p): New.
3099 * arch-utils.h: Declare.
3100 * gdbarch.sh: Add return_in_first_hidden_param_p.
3101 * gdbarch.c, gdbarch.h: Regenerated.
3102 * infcall.c (call_function_by_hand): Call
3103 gdbarch_return_in_first_hidden_param_p instead of
3104 language_pass_by_reference.
3105
3106 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
3107 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
3108 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
3109 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
3110 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
3111 `cplus_return_struct_by_reference'.
3112 (tic6x_return_value): Handle language cplusplus.
3113 (tic6x_return_in_first_hidden_param_p): New.
3114 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
3115
034e5797
DE
31162012-06-07 Doug Evans <dje@google.com>
3117
3118 * dwarf2read.c (dwarf2_cu): Add comment.
3119
6a00aa1e
MR
31202012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3121
3122 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
3123 variable.
3124 (mips_eabi_push_dummy_call): Likewise.
3125 (mips_n32n64_push_dummy_call): Likewise.
3126 (mips_o32_push_dummy_call): Likewise.
3127 (mips_o64_push_dummy_call): Likewise.
3128
eaa05d59
MR
31292012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3130
3131 * mips-tdep.c (mips_convert_register_p): Correct coding style.
3132
de13fcf2
MR
31332012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
3134
3135 * mips-tdep.c (mips_pseudo_register_type): Use
3136 mips_float_register_p.
3137
c3a01a22
PA
31382012-06-06 Pedro Alves <palves@redhat.com>
3139
3140 * infrun.c (handle_inferior_event): Remove calls to
3141 reinit_frame_cache that follow a context_switch call.
3142
d25f45d9
PA
31432012-06-06 Pedro Alves <palves@redhat.com>
3144
3145 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
3146 context_switch and remove stale comment.
3147
359f5fe6
PA
31482012-06-06 Pedro Alves <palves@redhat.com>
3149
3150 * infrun.c (struct execution_control_state): Remove
3151 `new_thread_event' field.
3152 (handle_inferior_event): Simplify new threads handling; don't
3153 resume the inferior if we find a new thread.
3154
2d4c29c5
TS
31552012-06-06 Thomas Schwinge <thomas@codesourcery.com>
3156
3157 * NEWS: Document the deprecation of SH's 'regs' command.
3158 * inferior.h (all_registers_info): Add function declaration.
3159 * sh-tdep.c (sh_show_regs): Remove variable.
3160 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
3161 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
3162 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
3163 (sh_show_regs_command): Remove functions.
3164 (sh_gdbarch_init): Don't set sh_show_regs.
3165 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
3166 'info all-registers'.
3167 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
3168 (sh64_show_regs): Remove functions.
3169 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
3170
f5f1cdb6
JK
31712012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3172
3173 * configure.ac: Move development=true below AC_INIT.
3174 * configure: Regenerate.
3175
bf6309af
SS
31762012-06-05 Stan Shebs <stan@codesourcery.com>
3177
3178 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3179 gdb_stdout.
3180
45aa4659
JK
31812012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3182
3183 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3184 argument as ssize_t.
3185 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3186 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3187 * target.c (target_read_stack, target_write_memory)
3188 (target_write_raw_memory): Likewise.
3189 * target.h (target_read_stack, target_write_memory)
3190 (target_write_raw_memory): Likewise.
3191
1b162304
JK
31922012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3193
3194 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3195 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3196 * target.c (target_read_memory): Change LEN to ssize_t.
3197 * target.h (target_read_memory): Change LEN to ssize_t.
3198
8556afb4
PA
31992012-06-05 Pedro Alves <palves@redhat.com>
3200
3201 PR backtrace/13866
3202
3203 * breakpoint.c (until_break_command): Only fetch the selected
3204 frame after decode_line_1.
3205
fb139f32
PA
32062012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3207
3208 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3209 event breakpoint at _start, __start or main if a program
3210 interpreter is not found.
3211
a8e1bb34
JB
32122012-06-05 Joel Brobecker <brobecker@adacore.com>
3213
3214 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3215 Add declaration.
3216 * windows-tdep.c: #include "objfiles.h".
3217 (windows_iterate_over_objfiles_in_search_order): New function.
3218 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3219 iterate_over_objfiles_in_search_order gdbarch method to
3220 windows_iterate_over_objfiles_in_search_order.
3221 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3222
19630284
JB
32232012-06-05 Joel Brobecker <brobecker@adacore.com>
3224
3225 * gdbarch.sh: Add generation of
3226 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3227 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3228 (iterate_over_objfiles_in_search_order): New gdbarch method.
3229 * gdbarch.h, gdbarch.c: Regenerate.
3230 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3231 Add declaration.
3232 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3233 New function.
3234 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3235 out of lookup_symbol_aux_symtabs.
3236 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3237 call to lookup_symbol_aux_objfile.
3238 (struct global_sym_lookup_data): New type.
3239 (lookup_symbol_global_iterator_cb): New function.
3240 (lookup_symbol_global): Search for symbol using
3241 gdbarch_iterate_over_objfiles_in_search_order and
3242 lookup_symbol_global_iterator_cb.
3243 * findvar.c (struct minsym_lookup_data): New type.
3244 (minsym_lookup_iterator_cb): New function.
3245 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3246 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3247 and minsym_lookup_iterator_cb.
3248
67ff19f7
JB
32492012-06-05 Joel Brobecker <brobecker@adacore.com>
3250
3251 Revert the following patch:
3252 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3253 try locating the symbol in the symbol's own objfile first, before
3254 extending the search to all objfiles.
3255 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3256 out of lookup_symbol_aux_symtabs.
3257 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3258 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3259 Do not search EXCLUDE_OBJFILE.
3260 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3261 (lookup_symbol_global): Search for matches in the block's objfile
3262 first, before searching all other objfiles.
3263
ccab2054
JB
32642012-06-05 Joel Brobecker <brobecker@adacore.com>
3265
3266 * breakpoint.c (find_condition_and_thread): Stop parsing
3267 as soon as the first invalid keyword is found.
3268
e23d4a9c
JB
32692012-06-05 Joel Brobecker <brobecker@adacore.com>
3270
3271 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3272
70160166
JB
32732012-06-05 Joel Brobecker <brobecker@adacore.com>
3274
3275 * config/djgpp/djcheck.sh: Add copyright header.
3276
399501a5
JB
32772012-06-05 Joel Brobecker <brobecker@adacore.com>
3278
3279 * copyright.py (update_files, main): Fix path to update-copyright
3280 script.
3281
3770a159
JB
32822012-06-05 Joel Brobecker <brobecker@adacore.com>
3283
3284 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3285 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3286 for which a reminder to update by hand is printed.
3287
4aad0dfc
DE
32882012-06-04 Doug Evans <dje@google.com>
3289
3290 * buildsym.c (make_blockvector): Add comment.
3291
1f8cf220
PA
32922012-06-04 Pedro Alves <palves@redhat.com>
3293
3294 * arch-utils.c (default_gdb_signal_from_target): Delete.
3295 * arch-utils.h (default_gdb_signal_from_target): Delete.
3296 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3297 gdbarch_gdb_signal_from_target_p.
3298 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3299 predicate).
3300 * gdbarch.h: Regenerate.
3301 * gdbarch.c: Regenerate.
3302
86b49880
PA
33032012-06-04 Pedro Alves <palves@redhat.com>
3304
3305 * gdbarch.sh (gdb_signal_from_target): Mention that the
3306 implementation of the method must be host independent.
3307 * gdbarch.h: Regenerate.
3308
fe78531d
JK
33092012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3310
3311 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3312 parameters.
3313 (target_read_memory_bfd): New function.
3314 (symbol_file_add_from_memory): Use it.
3315
d790cf0a
DE
33162012-06-03 Doug Evans <dje@google.com>
3317
78e5175a
DE
3318 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3319 of primary symtab.
3320 (basic_lookup_transparent_type): Ditto.
3321
d790cf0a
DE
3322 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3323 (ALL_PRIMARY_SYMTABS): Use it.
3324 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3325 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3326 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3327 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3328 (basic_lookup_transparent_type): Ditto.
3329
c6e5ee5e
SDJ
33302012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3331
3332 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3333 it to optimize resolution of demangled name.
3334
a68ffae9
JK
33352012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3336
3337 * configure.ac (development): Define new variable.
3338 Call AC_CHECK_LIB for mcheck if $development.
3339 (ERROR_ON_WARNING): Enable it by default only if $development.
3340 * config.in: Regenerate.
3341 * configure: Regenerate.
3342
5299c1c4
JK
33432012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3344
3345 * target.c (target_read_memory): Make LEN argument as size_t.
3346 * target.h (target_read_memory): Likewise.
3347
33482012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3349
3350 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3351
0c56f59b
EBM
33522012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3353
3354 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3355 BookE interface for PowerPC server processors if not available
3356 in the Linux Kernel.
3357
71bdabee
KS
33582012-05-31 Keith Seitz <keiths@redhat.com>
3359
3360 * linespec.c (decode_objc): Add cleanup to free
3361 INFO.FILE_SYMTABS.
3362 (find_linespec_symbols): Add cleanup to free CLASSES.
3363 * symfile.c (find_separate_debug_file_by_debuglink): Add
3364 cleanup to free DEBUGLINK.
3365 * ui-out.c (clear_header_list): No need to check if
3366 HEADER_NEXT.COLHDR is NULL.
3367 Free HEADER_NEXT.COL_NAME.
3368
acbd605d
MGD
33692012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3370
3371 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3372 warning.
3373
65662cde
PA
33742012-05-30 Jeff Kenton <jkenton@tilera.com>
3375
3376 * configure.host (gdb_host_cpu): Handle tilegx*.
3377 (gdb_host): Handle tilegx-*-linux*.
3378 * tilegx-linux-nat.c: New file.
3379 * config/tilegx/linux.mh: New file.
3380
ade64f0e
PA
33812012-05-30 Jeff Kenton <jkenton@tilera.com>
3382
3383 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3384 tilegx-linux-tdep.o.
3385 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3386 tilegx-linux-tdep.c.
3387 * configure.tgt: Handle tilegx-*-linux*.
3388 * tilegx-tdep.h: New file.
3389 * tilegx-tdep.c: New file.
3390 * tilegx-linux-tdep.c: New file.
3391 * regformats/reg-tilegx.dat: New file.
3392
bb08bdbd
EBM
33932012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3394
3395 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3396 accounting of hw watchpoints on ppc.
3397
ebd86fb5
TJB
33982012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3399
3400 * source.c (openp): Expand tilde in path entries.
3401
0a0edcd5
DE
34022012-05-29 Doug Evans <dje@google.com>
3403
98cc87bd
DE
3404 * buildsym.c (block_compar): Fix comment.
3405 (end_symtab): Fix and clarify some comments.
3406
0a0edcd5
DE
3407 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3408 cleanup_undefined_types.
3409 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3410 All callers updated.
3411
6f0c7050
TT
34122012-05-29 Tom Tromey <tromey@redhat.com>
3413
3414 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3415 fails.
3416 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3417 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3418 fails.
3419 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3420 fails.
3421
ec95993c
TG
34222012-05-29 Tristan Gingold <gingold@adacore.com>
3423
3424 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3425 (struct darwin_info): ... New struct.
3426 (solib_darwin_pspace_data): New variable.
3427 (darwin_pspace_data_cleanup): New function.
3428 (get_darwin_info): Likewise.
3429 (darwin_dyld_version_ok, darwin_load_image_infos)
3430 (darwin_solib_get_all_image_info_addr_at_init)
3431 (darwin_solib_read_all_image_info_addr): Add info argument.
3432 Adjust code.
3433 (darwin_current_sos): Use per pspace structure.
3434 (darwin_solib_create_inferior_hook): Likewise.
3435 (darwin_clear_solib): Likewise.
3436 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3437
ae25568b
PA
34382012-05-28 Pedro Alves <palves@redhat.com>
3439
3440 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3441 block that uses them. Clear ecss before handling each event.
3442
0c5bf5a9
JK
34432012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3444
3445 * solib-svr4.c (svr4_current_sos): New comment on
3446 svr4_current_sos_via_xfer_libraries fall back.
3447
bfb05775
JK
34482012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3449
3450 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3451 it as a fallback for TYPE_IS_OPAQUE.
3452 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3453 symbols for lookup_symbol.
3454
685b1105
JK
34552012-05-24 John Steele Scott <toojays@toojays.net>
3456
3457 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3458 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3459 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3460 (check_producer): ... this new function, which also checks for ICC
3461 and caches the result.
3462 (producer_is_icc): New function.
3463 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3464 producer was ICC.
3465
22203bbf
PA
34662012-05-24 Pedro Alves <palves@redhat.com>
3467
3468 PR gdb/7205
3469
3470 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3471 (default_gdb_signal_to_target): ... this. Add comment.
3472 (default_gdb_signal_from_host): Rename to ...
3473 (default_gdb_signal_from_target): ... this. Add comment.
3474 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3475 (default_gdb_signal_to_target): ... this.
3476 (default_gdb_signal_from_host): Rename to ...
3477 (default_gdb_signal_from_target): ... this.
3478 * corelow.c (core_open): Adjust to naming change. Replace comment.
3479 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3480 (gdb_signal_from_target): ... this. Adjust to
3481 default_gdb_signal_from_host naming change. Extend comment.
3482 (gdb_signal_to_host): Rename to ...
3483 (gdb_signal_to_target): ... this. Adjust to
3484 default_gdb_signal_to_host naming change.
3485 * gdbarch.h, gdbarch.c: Renegerate.
3486
a493e3e2
PA
34872012-05-24 Pedro Alves <palves@redhat.com>
3488
3489 PR gdb/7205
3490
f782ad9b 3491 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3492
2ea28649
PA
34932012-05-24 Pedro Alves <palves@redhat.com>
3494
3495 PR gdb/7205
3496
3497 Replace target_signal with gdb_signal throughout.
3498
b09846a9
PA
34992012-05-24 Pedro Alves <palves@redhat.com>
3500
3501 PR tui/14159
3502
3503 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3504 string, instead of reusing the va_list argument.
3505
e77c107e
TT
35062012-05-24 Tom Tromey <tromey@redhat.com>
3507
3508 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3509 Remove.
3510
9fccedf7
DE
35112012-05-23 Doug Evans <dje@google.com>
3512
d50bd42b
DE
3513 * symtab.c (search_symbols): Formatting fixes.
3514 (print_symbol_info): Formatting fixes.
3515
9fccedf7
DE
3516 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3517 int64_t change to leb128 API.
3518 (read_encoded_value, decode_frame_entry_1): Ditto.
3519 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3520 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3521 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3522 (execute_stack_op): Ditto.
3523 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3524 (safe_read_uleb128, safe_read_sleb128): Ditto.
3525 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3526 (dwarf2_compile_expr_to_ax): Ditto.
3527 (locexpr_describe_location_piece): Ditto.
3528 (disassemble_dwarf_expression): Ditto.
3529 (locexpr_describe_location_1): Ditto.
3530
f3e0e960
SS
35312012-05-23 Stan Shebs <stan@codesourcery.com>
3532 Kwok Cheung Yeung <kcy@codesourcery.com>
3533
3534 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3535 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3536 (mi-cmd-info.o): New rule.
3537 * osdata.h (info_osdata_command): New declaration.
3538 * osdata.c (info_osdata_command): Change to non-static.
3539 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3540 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3541 * mi/mi-cmd-info.c: New file.
3542
c51fe631
DE
35432012-05-23 Doug Evans <dje@google.com>
3544
71cddcc1
DE
3545 * symtab.c (search_symbols): Pass NULL for file_matcher to
3546 expand_symtabs_matching if there are no files to match.
3547
c51fe631
DE
3548 * gdbtypes.c (lookup_typename): Simplify.
3549
a79378d4
PA
35502012-05-23 Pedro Alves <palves@redhat.com>
3551
3552 * arch-utils.h (default_target_signal_to_host): Delete.
3553 * arch-utils.c (default_target_signal_to_host): Delete.
3554 * gdbarch.sh (target_signal_to_host): Remove.
3555 * gdbarch.h, gdbarch.c: Regenerate.
3556
f664829e
DE
35572012-05-22 Doug Evans <dje@google.com>
3558
3559 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3560 "const gdb_byte *".
3561 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3562 (execute_cfa_program): Update to match API of leb128 functions.
3563 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3564 "const gdb_byte *".
3565 (read_unsigned_leb128, read_signed_leb128): Delete.
3566 (read_initial_length): Change type of buf argument to
3567 "const gdb_byte *".
3568 (read_encoded_value): Update to match API of leb128 functions.
3569 (decode_frame_entry): Change result to "const gdb_byte *", and
3570 similarly for "start" parameter.
3571 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3572 (dwarf2_build_frame_info): Change local frame_ptr to
3573 "const gdb_byte *".
3574 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3575 read_uleb128, read_sleb128. All callers updated.
3576 (safe_skip_leb128): New function.
3577 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3578 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3579 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3580 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3581 read_uleb128, read_sleb128.
3582 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3583 (execute_stack_op): Update to match API of leb128 functions.
3584 * dwarf2expr.h: #include "leb128.h".
3585 (read_uleb128, read_sleb128): Delete.
3586 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3587 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3588 * dwarf2loc.c (debug_loc_kind): New enum.
3589 (decode_debug_loc_addresses): New function.
3590 (decode_debug_loc_dwo_addresses): New function.
3591 (dwarf2_find_location_expression): Rewrite.
3592 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3593 (locexpr_describe_location_piece): Ditto.
3594 (disassemble_dwarf_expression): Ditto.
3595 (locexpr_describe_location_1): Ditto.
3596 (loclist_describe_location): Rewrite.
3597 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3598 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3599 (dwarf2_section_buffer_overflow_complaint): Renamed from
3600 dwarf2_macros_too_long_complaint. All callers updated.
3601 (skip_leb128): Delete.
3602 (init_cu_die_reader): Initialize reader->buffer_end.
3603 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3604 (skip_form_bytes): New arg buffer_end. All callers updated.
3605 Replace call to skip_leb128 with gdb_skip_leb128.
3606 (skip_unknown_opcode): New arg mac_end. All callers updated.
3607 (fill_in_loclist_baton): Initialize baton->from_dwo.
3608
837a1b32
MR
36092012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3610
3611 * mips-linux-nat.c (mips_linux_read_description): Use a more
3612 verbose error message.
3613
d0e64392
MR
36142012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3615
3616 * NEWS: Add MIPS/Linux DSP support.
3617 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3618 (SIGCONTEXT_DSPCTL): New macro.
3619 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3620 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3621 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3622 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3623 (N64_SIGCONTEXT_HI3): Likewise.
3624 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3625 (N64_SIGCONTEXT_LO3): Likewise.
3626 (N64_SIGCONTEXT_DSPCTL): Likewise.
3627 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3628 (mips_linux_o32_sigframe_init): Handle DSP registers.
3629 (mips_linux_n32n64_sigframe_init): Likewise.
3630
8bea7ed1
PM
36312012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3632
3633 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3634 call to abort.
3635
dab06dbe
PA
36362012-05-22 Pedro Alves <palves@redhat.com>
3637
3638 * target.h (store_waitstatus): Move declaration ...
3639 * inf-child.h (store_waitstatus): ... here.
3640 * target.c: Move inclusion of gdb_wait.h, and ...
3641 (store_waitstatus): ... this ...
3642 * inf-child.c: ... here.
3643 * linux-nat.c: Include inf-child.h.
3644 * rs6000-nat.c: Include inf-child.h.
3645 * spu-linux-nat.c: Include inf-child.h.
3646
43011e52
PM
36472012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3648
3649 * tracepoint.c (start_tracing): Add missing i18n markup.
3650 (stop_tracing, set_trace_user): Ditto.
3651 (set_trace_notes, set_trace_stop_notes): Ditto.
3652
b1af9e97
TT
36532012-05-21 Tom Tromey <tromey@redhat.com>
3654
3655 PR c++/7173:
3656 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3657 types.
3658 * value.h (value_cast_pointers): Update.
3659 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3660 (value_cast): Update.
3661 (update_search_result): New function.
3662 (do_search_struct_field): New, from search_struct_field. Check
3663 for ambiguous results.
3664 (search_struct_field): Rewrite.
3665 * infcall.c (value_arg_coerce): Update.
3666 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3667 value_cast_pointers.
3668 * ada-lang.c (ada_convert_actual): Update.
3669
e9e5e6b3
TT
36702012-05-21 Tom Tromey <tromey@redhat.com>
3671
3672 * macroexp.c (macro_stringify): Terminate the string.
3673
1564a261
JK
36742012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3677 Describe it.
3678 * auto-load.c (auto_load_expand_dir_vars): New function.
3679 (auto_load_safe_path_vec_update): Use it, remove the
3680 substitute_path_component call thanks to it.
3681 (auto_load_objfile_script): Remove the debug_file_directory processing.
3682 Use auto_load_expand_dir_vars, remove the substitute_path_component
3683 call thanks to it.
3684 * configure: Regenerate.
3685 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3686 path. Escape $ also for $debugdir.
3687 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3688 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3689
a3ec0bb1
DE
36902012-05-20 Doug Evans <dje@google.com>
3691
3692 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3693 before use. Check for symtab->includes == NULL before scanning it.
3694
d467df4e
MR
36952012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3696
3697 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3698
4cc0665f
MR
36992012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3700
3701 * NEWS: Add microMIPS support and "set mips compression",
3702 "show mips compression" commands.
3703 * mips-tdep.h (mips_isa): New enum.
3704 (gdbarch_tdep): Add mips_isa.
3705 (mips_pc_is_mips16): Update prototype.
3706 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3707 * mips-tdep.c (mips_compression_mips16): New variable.
3708 (mips_compression_micromips): Likewise.
3709 (mips_compression_strings): Likewise.
3710 (mips_compression_string): Likewise.
3711 (is_mips16_isa, is_micromips_isa): New functions.
3712 (is_mips16_addr): Rename to...
3713 (is_compact_addr): ... this.
3714 (unmake_mips16_addr): Likewise to...
3715 (unmake_compact_addr): ... this.
3716 (make_mips16_addr): Likewise to...
3717 (make_compact_addr): ... this.
3718 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3719 functions.
3720 (mips_elf_make_msymbol_special): Handle microMIPS code.
3721 (msymbol_is_special): Rename to...
3722 (msymbol_is_mips16): ... this.
3723 (mips_make_symbol_special, mips_pc_is_mips16): Update
3724 accordingly.
3725 (msymbol_is_mips, msymbol_is_micromips): New functions.
3726 (mips16_to_32_reg): Rename to...
3727 (mips_reg3_to_reg): ... this.
3728 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3729 (mips_pc_isa): Likewise.
3730 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3731 code.
3732 (mips_fetch_instruction): Pass return status instead of printing
3733 an error message if requested. Handle microMIPS code. Bail out
3734 on an invalid ISA.
3735 (micromips_op): New macro.
3736 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3737 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3738 (b6s4_op, b7s3_reg): Likewise.
3739 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3740 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3741 (mips_insn_size): New function.
3742 (mips32_next_pc): Update mips_fetch_instruction call.
3743 (micromips_relative_offset7): New function.
3744 (micromips_relative_offset10): Likewise.
3745 (micromips_relative_offset16): Likewise.
3746 (micromips_pc_insn_size): Likewise.
3747 (micromips_bc1_pc): Likewise.
3748 (micromips_next_pc): Likewise.
3749 (unpack_mips16): Update mips_fetch_instruction call.
3750 (extended_mips16_next_pc): Update according to change to
3751 mips16_to_32_reg.
3752 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3753 code.
3754 (mips16_scan_prologue): Update mips_fetch_instruction call.
3755 Update according to change to mips16_to_32_reg.
3756 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3757 (mips_insn16_frame_base_sniffer): Likewise.
3758 (micromips_decode_imm9): New function.
3759 (micromips_scan_prologue): Likewise.
3760 (mips_micro_frame_cache): Likewise.
3761 (mips_micro_frame_this_id): Likewise.
3762 (mips_micro_frame_prev_register): Likewise.
3763 (mips_micro_frame_sniffer): Likewise.
3764 (mips_micro_frame_unwind): New variable.
3765 (mips_micro_frame_base_address): New function.
3766 (mips_micro_frame_base): New variable.
3767 (mips_micro_frame_base_sniffer): New function.
3768 (mips32_scan_prologue): Update mips_fetch_instruction call.
3769 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3770 rather than for MIPS16.
3771 (mips_insn32_frame_base_sniffer): Likewise.
3772 (mips_addr_bits_remove): Handle microMIPS code.
3773 (deal_with_atomic_sequence): Rename to...
3774 (mips_deal_with_atomic_sequence): ... this. Update the type
3775 of the variable used to hold an instruction. Remove the ISA bit
3776 check. Update mips_fetch_instruction call.
3777 (micromips_deal_with_atomic_sequence): New function.
3778 (deal_with_atomic_sequence): Likewise.
3779 (mips_about_to_return): Handle microMIPS code. Update
3780 mips_fetch_instruction call.
3781 (heuristic_proc_start): Check for the standard MIPS ISA rather
3782 than for MIPS16. Update mips_pc_is_mips16 and
3783 mips_fetch_instruction calls. Handle microMIPS code.
3784 (mips_push_dummy_code): Handle microMIPS code.
3785 (mips_eabi_push_dummy_call): Likewise.
3786 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3787 (mips_o64_push_dummy_call): Handle microMIPS code.
3788 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3789 (is_delayed): Remove function.
3790 (mips_single_step_through_delay): Replace the call to is_delayed
3791 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3792 Handle microMIPS code.
3793 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3794 microMIPS code.
3795 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3796 call.
3797 (micromips_in_function_epilogue_p): New function.
3798 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3799 call.
3800 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3801 Handle microMIPS.
3802 (gdb_print_insn_mips): Likewise.
3803 (mips_breakpoint_from_pc): Likewise.
3804 (mips_remote_breakpoint_from_pc): New function.
3805 (mips32_instruction_has_delay_slot): Simplify making use of the
3806 updated mips_fetch_instruction interface.
3807 (micromips_instruction_has_delay_slot): New function.
3808 (mips16_instruction_has_delay_slot): Simplify making use of the
3809 updated mips_fetch_instruction interface.
3810 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 3811 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
3812 calls. Handle microMIPS code.
3813 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3814 (mips_skip_trampoline_code): Handle microMIPS code.
3815 (global_mips_compression): New function.
3816 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3817 file flags. Register the microMIPS remote breakpoint handler
3818 and heuristic frame unwinder.
3819 (show_mips_compression): New function.
3820 (_initialize_mips_tdep): Add the "set mips compression" and
3821 "show mips compression" commands.
3822
22e048c9
SDJ
38232012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3824
3825 * ada-lang.c:
3826 * ada-tasks.c:
3827 * ada-varobj.c:
3828 * amd64-darwin-tdep.c:
3829 * arm-symbian-tdep.c:
3830 * arm-tdep.c:
3831 * avr-tdep.c:
3832 * ax-gdb.c:
3833 * bfin-linux-tdep.c:
3834 * breakpoint.c:
3835 * c-valprint.c:
3836 * cli/cli-cmds.c:
3837 * coffread.c:
3838 * cp-support.c:
3839 * cris-tdep.c:
3840 * dwarf2-frame-tailcall.c:
3841 * dwarf2-frame.c:
3842 * dwarf2expr.c:
3843 * dwarf2loc.c:
3844 * dwarf2read.c:
3845 * elfread.c:
3846 * eval.c:
3847 * expprint.c:
3848 * f-valprint.c:
3849 * frv-tdep.c:
3850 * h8300-tdep.c:
3851 * hppa-hpux-tdep.c:
3852 * hppa-tdep.c:
3853 * hppanbsd-tdep.c:
3854 * i386-nto-tdep.c:
3855 * i386-tdep.c:
3856 * i387-tdep.c:
3857 * ia64-tdep.c:
3858 * jit.c:
3859 * linespec.c:
3860 * linux-tdep.c:
3861 * lm32-tdep.c:
3862 * m2-valprint.c:
3863 * m32c-tdep.c:
3864 * m32r-rom.c:
3865 * m32r-tdep.c:
3866 * m68k-tdep.c:
3867 * m68klinux-tdep.c:
3868 * mi/mi-main.c:
3869 * microblaze-tdep.c:
3870 * mips-linux-tdep.c:
3871 * mips-tdep.c:
3872 * mn10300-tdep.c:
3873 * p-valprint.c:
3874 * parse.c:
3875 * ppc-linux-tdep.c:
3876 * ppc-sysv-tdep.c:
3877 * printcmd.c:
3878 * python/py-finishbreakpoint.c:
3879 * python/py-inferior.c:
3880 * python/py-infthread.c:
3881 * python/py-type.c:
3882 * python/python.c:
3883 * remote-fileio.c:
3884 * remote-m32r-sdi.c:
3885 * remote-mips.c:
3886 * reverse.c:
3887 * rl78-tdep.c:
3888 * rs6000-aix-tdep.c:
3889 * rs6000-tdep.c:
3890 * s390-tdep.c:
3891 * score-tdep.c:
3892 * sh64-tdep.c:
3893 * skip.c:
3894 * solib-darwin.c:
3895 * solib-dsbt.c:
3896 * solib-frv.c:
3897 * sparc-tdep.c:
3898 * spu-multiarch.c:
3899 * spu-tdep.c:
3900 * stack.c:
3901 * symfile.c:
3902 * symtab.c:
3903 * tic6x-tdep.c:
3904 * tracepoint.c:
3905 * v850-tdep.c:
3906 * valarith.c:
3907 * valprint.c:
3908 * value.c:
3909 * xcoffread.c:
3910 * xtensa-tdep.c:
3911 * ada-lang.c:
3912 * ada-tasks.c:
3913 * ada-varobj.c:
3914 * amd64-darwin-tdep.c:
3915 * arm-symbian-tdep.c:
3916 * arm-tdep.c: Delete unused variables.
3917
aff139ff
JK
39182012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3919
3920 Rename $ddir to $datadir.
3921 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3922 * auto-load.c (auto_load_safe_path_vec_update)
3923 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3924 * configure: Regenerate.
3925 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3926 Likewise. Remove the 'use $ddir' help string.
3927
f7bfa992
JK
39282012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3929
3930 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3931 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3932
9cb709b6
TT
39332012-05-18 Tom Tromey <tromey@redhat.com>
3934
3935 PR exp/13907:
3936 * valprint.h (struct value_print_options) <symbol_print>: New
3937 field.
3938 * valprint.c (user_print_options): Add default for symbol_print.
3939 (show_symbol_print): New function.
3940 (generic_val_print): Respect symbol_print.
3941 (_initialize_valprint): Add "print symbol" setting.
3942 * f-valprint.c (f_val_print): Respect symbol_print.
3943 * c-valprint.c (c_val_print): Respect symbol_print.
3944 * NEWS: Update.
3945 * printcmd.c (print_address_symbolic): Return int. Ignore some
3946 zero-size symbols.
3947 (print_address_demangle): Return int.
3948 * defs.h: (print_address_symbolic): Return int.
3949 * value.h (print_address_demangle): Return int.
3950
b012acdd
TT
39512012-05-18 Tom Tromey <tromey@redhat.com>
3952
3953 * valprint.c (val_print_string): Don't print leading space.
3954 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3955 print space before string or vtbl.
3956 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3957 before string.
3958 * jv-valprint.c (java_value_print): Print space before string.
3959 * go-valprint.c (print_go_string): Print space before string.
3960 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3961 space before string.
3962 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3963 space before string or vtbl.
3964 * auxv.c (fprint_target_auxv): Print space after address.
3965
1d51a733
TT
39662012-05-18 Tom Tromey <tromey@redhat.com>
3967
3968 * printcmd.c (print_address_demangle): Remove special case for 0.
3969
edf0c1b7
TT
39702012-05-18 Tom Tromey <tromey@redhat.com>
3971
3972 * printcmd.c (print_address_demangle): Add 'opts' argument.
3973 * p-valprint.c (pascal_val_print): Update.
3974 * jv-valprint.c (java_val_print): Update.
3975 * value.h: Update.
3976 * valprint.c (generic_val_print): Update.
3977 (print_function_pointer_address): Add 'options' argument. Remove
3978 'addressprint' argument. Update.
3979 * m2-valprint.c (print_unpacked_pointer): Update.
3980 * gnu-v3-abi.c (print_one_vtable): Update.
3981 (gnuv3_print_method_ptr): Update.
3982 * f-valprint.c (f_val_print): Update.
3983 * cp-valprint.c (cp_print_value_fields): Update.
3984 * valprint.h (print_function_pointer_address): Update.
3985 * c-valprint.c (c_val_print): Update.
3986
9703b513
TT
39872012-05-18 Tom Tromey <tromey@redhat.com>
3988
3989 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3990 directly corresponding to the found psymtab.
3991 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3992 (dw2_find_pc_sect_symtab): Use it.
3993 * block.h (blockvector_contains_pc): Declare.
3994 * block.c (find_block_in_blockvector): New function.
3995 (blockvector_for_pc_sect): Use it.
3996 (blockvector_contains_pc): New function.
3997
5a439849
MR
39982012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3999
4000 * mips-tdep.h (mips_write_pc): New prototype.
4001 * mips-tdep.c (mips_write_pc): Make external, add description.
4002 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
4003 add description.
4004
8376de04
MR
40052012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
4006
4007 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
4008 mips_regnum->pc.
4009 (mips_unwind_pc, mips_write_pc): Likewise.
4010 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
4011 gdbarch_read_pc.
4012
d3581e61
JB
40132012-05-17 Joel Brobecker <brobecker@adacore.com>
4014
4015 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
4016 proc_warn, proc_error, proc_get_status, proc_flags,
4017 proc_why, proc_what, proc_nsysarg, proc_sysargs,
4018 proc_set_run_on_last_close, proc_unset_run_on_last_close,
4019 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
4020 proc_stop_process, proc_wait_for_stop, proc_run_process,
4021 proc_set_traced_signals, proc_set_traced_faults,
4022 proc_set_traced_sysentry, proc_set_traced_sysexit,
4023 proc_set_held_signals, proc_get_held_signals,
4024 proc_get_traced_signals, proc_get_traced_faults,
4025 proc_get_traced_sysentry, proc_get_traced_sysexit,
4026 proc_clear_current_fault, proc_set_current_signal,
4027 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
4028 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
4029 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
4030 proc_get_current_thread, proc_get_current_thread,
4031 proc_get_current_thread, proc_update_threads,
4032 proc_update_threads, proc_update_threads, proc_update_threads,
4033 proc_iterate_over_threads, procfs_find_new_threads,
4034 procfs_pid_to_str): Make static. Remove advance declaration.
4035 (proc_cursig): Make static. Conditionalized defintion on
4036 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
4037 (proc_syscall, proc_set_kill_on_last_close,
4038 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
4039 proc_get_pending_signals, proc_get_signal_actions,
4040 proc_trace_signal, proc_ignore_signal): Delete.
4041
81b9b86e
SDJ
40422012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
4043
4044 * coffread.c (cs_section_address): Passing proper argument for
4045 `bfd_get_section_vma'.
4046 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
4047 `bfd_get_section_flags'.
4048 * remote.c (remote_trace_set_readonly_regions): Likewise, for
4049 `bfd_get_section_vma'.
4050
abc9d0dc
TT
40512012-05-16 Tom Tromey <tromey@redhat.com>
4052
4053 PR macros/13205:
4054 * macrotab.h: (macro_define_special): Declare.
4055 (enum macro_special_kind): New.
4056 (struct macro_definition) <argc, replacement>: Update comments.
4057 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
4058 (macro_define_object_internal): New function.
4059 (macro_define_object): Use it.
4060 (macro_define_special): New function.
4061 (fixup_definition): New function.
4062 (macro_lookup_definition, foreach_macro_in_scope)
4063 (foreach_macro): Use fixup_definition.
4064 * macroexp.h (macro_stringify): Declare.
4065 * macroexp.c (free_buffer_return_text): New function.
4066 (stringify): Constify "arg".
4067 (macro_stringify): New function.
4068 * dwarf2read.c (macro_start_file): Call macro_define_special.
4069
6a3a010b 40702012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 4071 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
4072
4073 * breakpoint.h (bp_location): Add related_address member.
4074 * inferior.h (get_return_value): Take a pointer to struct value
4075 instead of struct type for the function requested.
4076 * value.h (using_struct_return): Likewise.
4077 * gdbarch.sh (return_value): Take a pointer to struct value
4078 instead of struct type for the function requested.
4079 * breakpoint.c (set_breakpoint_location_function): Initialize
4080 related_address for bp_gnu_ifunc_resolver breakpoints.
4081 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
4082 requested function's address to gdbarch_return_value.
4083 * eval.c (evaluate_subexp_standard): Pass the requested
4084 function's address to using_struct_return.
4085 * infcall.c (call_function_by_hand): Pass the requested
4086 function's address to using_struct_return and
4087 gdbarch_return_value.
4088 * infcmd.c (get_return_value): Take a pointer to struct value
4089 instead of struct type for the function requested.
4090 (print_return_value): Update accordingly.
4091 (finish_command_continuation): Likewise.
4092 * stack.c (return_command): Pass the requested function's
4093 address to using_struct_return and gdbarch_return_value.
4094 * value.c (using_struct_return): Take a pointer to struct value
4095 instead of struct type for the function requested. Pass the
4096 requested function's address to gdbarch_return_value.
4097 * python/py-finishbreakpoint.c (finish_breakpoint_object):
4098 New function_value member, replacing function_type.
4099 (bpfinishpy_dealloc): Update accordingly.
4100 (bpfinishpy_pre_stop_hook): Likewise.
4101 (bpfinishpy_init): Likewise. Record the requested function's
4102 address.
4103 * mips-tdep.c (mips_fval_reg): New enum.
4104 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
4105 words put in GP registers.
4106 (mips_o64_push_dummy_call): Update a comment.
4107 (mips_o32_return_value): Take a pointer to struct value instead
4108 of struct type for the function requested and use it to check if
4109 using the MIPS16 calling convention. Return the designated
4110 general purpose registers for floating-point values returned in
4111 MIPS16 mode.
4112 (mips_o64_return_value): Likewise.
4113 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
4114 (ppc_sysv_abi_broken_return_value): Likewise.
4115 (ppc64_sysv_abi_return_value): Likewise.
4116 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
4117 value instead of struct type for the function requested.
4118 * amd64-tdep.c (amd64_return_value): Likewise.
4119 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
4120 * arm-tdep.c (arm_return_value): Likewise.
4121 * avr-tdep.c (avr_return_value): Likewise.
4122 * bfin-tdep.c (bfin_return_value): Likewise.
4123 * cris-tdep.c (cris_return_value): Likewise.
4124 * frv-tdep.c (frv_return_value): Likewise.
4125 * h8300-tdep.c (h8300_return_value): Likewise.
4126 (h8300h_return_value): Likewise.
4127 * hppa-tdep.c (hppa32_return_value): Likewise.
4128 (hppa64_return_value): Likewise.
4129 * i386-tdep.c (i386_return_value): Likewise.
4130 * ia64-tdep.c (ia64_return_value): Likewise.
4131 * iq2000-tdep.c (iq2000_return_value): Likewise.
4132 * lm32-tdep.c (lm32_return_value): Likewise.
4133 * m32c-tdep.c (m32c_return_value): Likewise.
4134 * m32r-tdep.c (m32r_return_value): Likewise.
4135 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
4136 * m68k-tdep.c (m68k_return_value): Likewise.
4137 (m68k_svr4_return_value): Likewise.
4138 * m88k-tdep.c (m88k_return_value): Likewise.
4139 * mep-tdep.c (mep_return_value): Likewise.
4140 * microblaze-tdep.c (microblaze_return_value): Likewise.
4141 * mn10300-tdep.c (mn10300_return_value): Likewise.
4142 * moxie-tdep.c (moxie_return_value): Likewise.
4143 * mt-tdep.c (mt_return_value): Likewise.
4144 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
4145 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
4146 (ppc_sysv_abi_broken_return_value): Likewise.
4147 (ppc64_sysv_abi_return_value): Likewise.
4148 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
4149 * rl78-tdep.c (rl78_return_value): Likewise.
4150 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
4151 * rx-tdep.c (rx_return_value): Likewise.
4152 * s390-tdep.c (s390_return_value): Likewise.
4153 * score-tdep.c (score_return_value): Likewise.
4154 * sh-tdep.c (sh_return_value_nofpu): Likewise.
4155 (sh_return_value_fpu): Likewise.
4156 * sh64-tdep.c (sh64_return_value): Likewise.
4157 * sparc-tdep.c (sparc32_return_value): Likewise.
4158 * sparc64-tdep.c (sparc64_return_value): Likewise.
4159 * spu-tdep.c (spu_return_value): Likewise.
4160 * tic6x-tdep.c (tic6x_return_value): Likewise.
4161 * v850-tdep.c (v850_return_value): Likewise.
4162 * vax-tdep.c (vax_return_value): Likewise.
4163 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
4164 * xtensa-tdep.c (xtensa_return_value): Likewise.
4165 * gdbarch.c: Regenerate.
4166 * gdbarch.h: Regenerate.
4167
29ca12b3
TT
41682012-05-15 Tom Tromey <tromey@redhat.com>
4169
4170 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
4171
588ae58c
JB
41722012-05-15 Joel Brobecker <brobecker@adacore.com>
4173
4174 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4175 of command in two error message.
4176
855a6e68
JB
41772012-05-15 Joel Brobecker <brobecker@adacore.com>
4178
4179 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4180
d634f2de
JB
41812012-05-15 Joel Brobecker <brobecker@adacore.com>
4182
4183 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4184
9cc815f5
JK
41852012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 * NEWS (show auto-load scripts-directory): Add forgotten command.
4188
6a609e58
JK
41892012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4190
4191 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4192 parameters.
4193
ac1438b5
L
41942012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4195
4196 * amd64-tdep.c: Include features/i386/x32.c and
4197 features/i386/x32-avx.c.
4198 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4199 initialize_tdesc_x32_avx.
4200
e7e0cddf
SS
42012012-05-14 Stan Shebs <stan@codesourcery.com>
4202
4203 Add dynamic printf.
4204 * breakpoint.h (enum bptype): New type bp_dprintf.
4205 (struct breakpoint): New field extra_string.
4206 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4207 (create_breakpoint): Add extra_string arg.
4208 * breakpoint.c (dprintf_breakpoint_ops): New.
4209 (is_breakpoint): Add bp_dprintf.
4210 (bpstat_what): Add dprintf case.
4211 (bptype_string): Ditto.
4212 (print_one_breakpoint_location): Ditto.
4213 (init_bp_location): Ditto.
4214 (bkpt_print_mention): Ditto.
4215 (dprintf_style_enums): New array.
4216 (dprintf_style): New global.
4217 (dprintf_function): New global.
4218 (dprintf_channel): New global.
4219 (update_dprintf_command_list): New function.
4220 (update_dprintf_commands): New function.
4221 (init_breakpoint_sal): Add extra_string argument, handle it.
4222 (create_breakpoint_sal): Add extra_string argument.
4223 (create_breakpoints_sal): Add extra_string argument, update callers.
4224 (find_condition_and_thread): Add extra argument.
4225 (create_breakpoint): Add extra_string argument, record it.
4226 (dprintf_command): New function.
4227 (break_command_1): Add arg to create_breakpoint call.
4228 (handle_gnu_v3_exceptions): Ditto.
4229 (trace_command): Ditto.
4230 (ftrace_command): Ditto.
4231 (strace_command): Ditto.
4232 (bkpt_print_mention): Add dprintf case.
4233 (create_breakpoint_sal_default): Add extra_string argument.
4234 (_initialize_breakpoint): Add new commands.
4235 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4236 * python/py-breakpoint.c (bppy_init): Ditto.
4237 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4238
8ae38c14
MR
42392012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4240
4241 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4242
9f676e66
SCR
42432012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4244
4245 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4246 unsigned long long.
4247
7efc75aa
SCR
42482012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4249
4250 Add a new function gdb.find_pc_line to the Python API.
4251 * NEWS (Python Scripting): Add entry about the new function.
4252 * python/python.c (gdbpy_find_pc_line): New function which
4253 implements gdb.find_pc_line.
4254 (GdbMethods): Add entry for the new function.
4255
70af3797
PA
42562012-05-12 Pedro Alves <palves@redhat.com>
4257
4258 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4259 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4260
06da564e
EZ
42612012-05-12 Eli Zaretskii <eliz@gnu.org>
4262
4263 * inferior.c: Include completer.h
4264 (initialize_inferiors): Set completer of add-inferior to
4265 filename_completer.
4266
0288cee2
L
42672012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4268
4269 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4270 gdbarch_ptr_bit for x32 core dump.
4271
f6537a2c
L
42722012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4273
4274 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4275 and features/i386/x32-avx-linux.c.
4276
85d4a676
SS
42772012-05-11 Stan Shebs <stan@codesourcery.com>
4278 Kwok Cheung Yeung <kcy@codesourcery.com>
4279
4280 * NEWS: Describe new info os commands.
4281 * common/linux-osdata.c (PID_T, TIME_T): Define.
4282 (MAX_PID_T_STRLEN): New.
4283 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4284 MAX_PID_T_STRLEN.
4285 (command_from_pid): Add comment. Change to use PID_T.
4286 (commandline_from_pid): Change to use PID_T.
4287 (user_from_pid): Add comment.
4288 (get_process_owner): Add comment. Change to use PID_T and
4289 MAX_PID_T_STRLEN.
4290 (get_number_of_cpu_cores): Add comment.
4291 (get_cores_used_by_process): Add comment. Change to use PID_T and
4292 MAX_PID_T_STRLEN.
4293 (linux_xfer_osdata_processes): Change to use PID_T and
4294 MAX_PID_T_STRLEN.
4295 (compare_processes): New function.
4296 (linux_xfer_osdata_processgroups): New function.
4297 (linux_xfer_osdata_threads): Change to use PID_T.
4298 (linux_xfer_osdata_fds): New function.
4299 (format_socket_state, print_sockets): New functions.
4300 (union socket_addr): New union.
4301 (linux_xfer_osdata_isockets): New function.
4302 (time_from_time_t, group_from_gid): New functions.
4303 (linux_xfer_osdata_shm): New function.
4304 (linux_xfer_osdata_sem): New function.
4305 (linux_xfer_osdata_msg): New function.
4306 (linux_xfer_osdata_modules): New function.
4307 (osdata_table): Add new entries.
4308 * common/buffer.c (buffer_xml_printf): Add support for long and
4309 long long format specifiers.
4310
f24afd6d
L
43112012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4312
4313 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4314 (tdesc_x32_avx_linux): Likewise.
4315
7349ff92
JK
43162012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4317
4318 Implement multi-component --with-auto-load-dir.
4319 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4320 entries.
4321 (--with-auto-load-safe-path): Update the default value description.
4322 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4323 New.
4324 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4325 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4326 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4327 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4328 "set auto-load scripts-directory".
4329 * config.in: Regenerate.
4330 * configure: Regenerate.
4331 * configure.ac (--with-auto-load-dir): New configure option.
4332 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4333
6dea1fbd
JK
43342012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4335
4336 Provide $ddir substitution for --with-auto-load-safe-path.
4337 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4338 entries.
4339 * auto-load.c: Include observer.h.
4340 (auto_load_safe_path_vec_update): Call substitute_path_component for
4341 each component. New variable ddir_subst.
4342 (auto_load_gdb_datadir_changed): New function.
4343 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4344 AUTO_LOAD_SAFE_PATH. New comment.
4345 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4346 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4347 * config.in: Regenerate.
4348 * configure: Regenerate.
4349 * configure.ac (--auto-load-safe-path): Rename
4350 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4351 GDB_DATADIR/auto-load.
4352 * defs.h (substitute_path_component): New declaration.
4353 * top.c: Include observer.h.
4354 (set_gdb_datadir): New function.
4355 (init_main): Install it for "set data-directory".
4356 * utils.c (substitute_path_component): New function.
4357
b09aca3a
JK
43582012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4359
4360 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4361 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4362 DEBUG_FILE_DIRECTORY. Handle multiple components of
4363 DEBUG_FILE_DIRECTORY.
4364
95554aad
TT
43652012-05-10 Tom Tromey <tromey@redhat.com>
4366
4367 * dwarf2read.c (recursively_write_psymbols): New function.
4368 (write_psymtabs_to_index): Use it.
4369
4370 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4371 field.
4372 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4373 (load_partial_comp_unit): Update.
4374 (queue_comp_unit): Add argument 'pretend_language'.
4375 (process_queue): Update.
4376 (psymtab_to_symtab_1): Skip dependencies that have a user.
4377 (load_partial_comp_unit_reader): Give meaning to the 'data'
4378 argument.
4379 (load_full_comp_unit): Add 'pretend_language' argument.
4380 (process_full_comp_unit): Add 'pretend_language' argument. Set
4381 language on CU.
4382 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4383 Update.
4384 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4385 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4386 Update.
4387 (prepare_one_comp_unit): Add 'pretend_language' argument.
4388
4389 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4390 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4391 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4392 (dw2_do_instantiate_symtab): Check whether symtab was read in
4393 before queueing.
4394 (dw2_instantiate_symtab): Add assertion. Call
4395 process_cu_includes.
4396 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4397 (partial_symtab_p): New typedef.
4398 (set_partial_user): New function.
4399 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4400 (scan_partial_symbols): Add imported CU to imported_symtabs.
4401 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4402 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4403 (get_symtab, recursively_compute_inclusions)
4404 (compute_symtab_includes, process_cu_includes)
4405 (process_imported_unit_die): New functions.
4406 (process_die) <DW_TAG_imported_unit>: New case.
4407 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4408
4409 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4410 comment.
4411 (struct partial_die_info) <locdesc>: Remove.
4412 <d>: New field.
4413 (process_psymtab_comp_unit): Add 'read_partial' argument.
4414 Update.
4415 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4416 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4417 (add_partial_symbol): Update.
4418 (process_die): Handle DW_TAG_partial_unit.
4419 (read_file_scope): Update comment.
4420 (load_partial_dies): Handle DW_TAG_imported_unit.
4421 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4422 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4423
e871fbb9
TT
44242012-05-10 Tom Tromey <tromey@redhat.com>
4425
4426 * cc-with-dwz.sh: New file.
4427
b5b04b5b
TT
44282012-05-10 Tom Tromey <tromey@redhat.com>
4429
4430 * symtab.h (struct symtab) <includes, user>: New fields.
4431 * block.h (struct block_iterator) <d, idx, which>: New fields.
4432 * block.c (initialize_block_iterator, find_iterator_symtab)
4433 (block_iterator_step, block_iter_name_step)
4434 (block_iter_match_step): New functions.
4435 (block_iterator_first, block_iterator_next)
4436 (block_iter_name_first, block_iter_name_next)
4437 (block_iter_match_first, block_iter_match_next): Rewrite.
4438 (get_block_symtab): New function.
4439
84a146c9
TT
44402012-05-10 Tom Tromey <tromey@redhat.com>
4441
4442 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4443 set_block_symtab.
4444 * jit.c (finalize_symtab): Use allocate_global_block,
4445 set_block_symtab.
4446 * buildsym.c (finish_block_internal): New function, from old
4447 finish_block.
4448 (finish_block): Rewrite.
4449 (end_symtab): Use finish_block_internal, set_block_symtab.
4450 * block.h (struct global_block): New.
4451 (allocate_global_block, set_block_symtab): Declare.
4452 * block.c (allocate_global_block, set_block_symtab): New
4453 functions.
4454
9439a077
TT
44552012-05-10 Tom Tromey <tromey@redhat.com>
4456
4457 * psymtab.c (partial_map_expand_apply): Add assertion.
4458 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4459 (psymtab_to_symtab): Find unshared psymtab.
4460 (dump_psymtab): Print including psymtabs.
4461 (recursively_search_psymtabs): New function.
4462 (expand_symtabs_matching_via_partial): Use it.
4463 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4464 fields.
4465 (enum psymtab_search_status): New.
4466
8157b174
TT
44672012-05-10 Tom Tromey <tromey@redhat.com>
4468
4469 * tracepoint.c (scope_info): Update.
4470 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4471 (find_pc_sect_symtab, search_symbols)
4472 (default_make_symbol_completion_list_break_on)
4473 (make_file_symbol_completion_list): Update.
4474 * symmisc.c (dump_symtab_1): Update.
4475 * stack.c (print_frame_args, iterate_over_block_locals)
4476 (print_frame_labels, iterate_over_block_arg_vars): Update.
4477 * python/py-block.c (block_object) <dict>: Remove.
4478 <block>: New field.
4479 <iter>: Change type.
4480 (blpy_iter): Update.
4481 (blpy_block_syms_iternext): Update.
4482 * psymtab.c (map_block): Use block iterators.
4483 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4484 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4485 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4486 * infrun.c (check_exception_resume): Update.
4487 * cp-support.c (make_symbol_overload_list_block): Update.
4488 * coffread.c (patch_opaque_types): Update.
4489 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4490 * block.h (struct block_iterator): New.
4491 (block_iterator_first, block_iterator_next, block_iter_name_first)
4492 (block_iter_name_next, block_iter_match_first)
4493 (block_iter_match_next): Declare.
4494 (ALL_BLOCK_SYMBOLS): Redefine.
4495 * block.c (block_iterator_first, block_iterator_next)
4496 (block_iter_name_first, block_iter_name_next)
4497 (block_iter_match_first, block_iter_match_next): New functions.
4498 * ada-lang.c (ada_add_block_symbols)
4499 (ada_make_symbol_completion_list): Use block iterator.
4500
a2ca7a52
TT
45012012-05-10 Tom Tromey <tromey@redhat.com>
4502
4503 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4504 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4505 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4506 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4507 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4508 Update.
4509
64ea88dc
JB
45102012-05-10 Joel Brobecker <brobecker@adacore.com>
4511
4512 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4513 print-file-var-lib2.c, print-file-var-main.c and
4514 print-file-var.exp (located in gdb/testsuite/gdb.base).
4515
99a547d6
JB
45162012-05-10 Joel Brobecker <brobecker@adacore.com>
4517
4518 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4519 try locating the symbol in the symbol's own objfile first, before
4520 extending the search to all objfiles.
4521 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4522 out of lookup_symbol_aux_symtabs.
4523 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4524 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4525 Do not search EXCLUDE_OBJFILE.
4526 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4527 (lookup_symbol_global): Search for matches in the block's objfile
4528 first, before searching all other objfiles.
4529
0ece64fd
TG
45302012-05-10 Tristan Gingold <gingold@adacore.com>
4531
4532 * printcmd.c (set_command): Add pre/post inc/dec.
4533
3d16a105
FCE
45342012-05-09 Frank Ch. Eigler <fche@redhat.com>
4535
4536 * gdb.1: Document -ex option.
4537
2efbc0f7
JB
45382012-05-09 Joel Brobecker <brobecker@adacore.com>
4539
4540 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4541 * inferior.h (AT_SYMBOL): Delete.
4542
2c76a0c7
JB
45432012-05-09 Joel Brobecker <brobecker@adacore.com>
4544
4545 * mips-tdep.c (mips_push_dummy_code): New function.
4546 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4547 ON_STACK and install mips_push_dummy_code as our gdbarch
4548 push_dummy_code routine.
4549
9401a810
PA
45502012-05-09 Pedro Alves <palves@redhat.com>
4551
4552 * target.c (set_maintenance_target_async_permitted): Rename to ...
4553 (set_target_async_command): ... this.
4554 (show_maintenance_target_async_permitted): Rename to ...
4555 (show_target_async_command): ... this.
4556 (initialize_targets): Adjust.
4557
3929b321
DE
45582012-05-08 Doug Evans <dje@google.com>
4559
4560 * go-exp.y (classify_name): Add missing assignment of fields of
4561 yylval.ssym.
4562
c41535fd
EZ
45632012-05-08 Eli Zaretskii <eliz@gnu.org>
4564
4565 Display the ">" prompt in interactive mode while reading canned
4566 commands, even when the current interpreter is MI.
4567
4568 * interps.c (interp_set_temp): New function.
4569
4570 * interps.h (interp_set_temp): Add prototype.
4571
4572 * cli/cli-script.c (restore_interp): New cleanup function.
4573 (read_command_lines): Temporarily override the current interpreter
4574 with CLI and arrange for restoring the original one.
4575
c0749c4d
JS
45762012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4577
4578 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4579
d7333987
SDJ
45802012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4581
4582 * probe.c (parse_probes): Move conditional to check for
4583 debuginfo files from here...
4584 * stap-probe.c (stap_get_probes): ... to here.
4585
649e6d92
MK
45862012-05-07 Mark Kettenis <kettenis@gnu.org>
4587 H.J. Lu <hongjiu.lu@intel.com>
4588
4589 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4590 `movl %esp, %ebp' for the X32 ABI.
4591
f39c6ffd
TT
45922012-05-07 Tom Tromey <tromey@redhat.com>
4593
4594 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4595 get_DW_TAG_name.
4596 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4597 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4598 (dwarf_stack_op_name): Remove.
4599 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4600 (decode_locdesc): Use get_DW_OP_name.
4601 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4602 (dwarf2_compile_expr_to_ax): Likewise.
4603 (disassemble_dwarf_expression): Likewise.
4604 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4605
1e1f6591
CLT
46062012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4607
4608 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4609 (sh_linux_sigtramp_cache): New function.
4610 (sh_linux_sigreturn_init): New function.
4611 (sh_linux_rt_sigreturn_init): New function.
4612 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4613 patterns.
4614 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4615 syscall codes.
4616 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4617 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4618 (sh_linux_init_abi): Add init calls to register new tramp_frame
4619 definitions under 32-bit SH, update comments.
4620
545c08b4
PA
46212012-05-07 Pedro Alves <palves@redhat.com>
4622
daac165e
PA
4623 PR gdb/10952
4624
545c08b4
PA
4625 * amd64-linux-tdep.c: Include glibc-tdep.h.
4626 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4627 gdbarch_skip_solib_resolver callback.
4628
af2c1515
JK
46292012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4630
4631 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4632 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4633 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4634 (add_auto_load_safe_path): Change the error message.
4635 (_initialize_auto_load): Change the "safe-path" help text.
4636 * configure: Regenerate
4637 * configure.ac (--without-auto-load-safe-path): Set
4638 WITH_AUTO_LOAD_SAFE_PATH to /.
4639
1067f998
SDJ
46402012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4641
4642 * stap-probe.h: Do not include unecessary `probe.h'.
4643
45dfa85a
AM
46442012-05-05 Alan Modra <amodra@gmail.com>
4645
4646 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4647 bfd_und_section_ptr.
4648 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4649 and bfd_com_section_ptr.
4650
cf093994
JB
46512012-05-04 Joel Brobecker <brobecker@adacore.com>
4652
762ebb75 4653 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 4654
d40dc7a8
JB
46552012-05-04 Joel Brobecker <brobecker@adacore.com>
4656
4657 * windows-nat.h (segment_register_p_ftype): New typedef.
4658 (windows_set_segment_register_p): Add declaration.
4659 * windows-nat.c (segment_register_p): New static global.
4660 (windows_set_segment_register_p): New function.
4661 (do_windows_fetch_inferior_registers): Add special handling
4662 for segment registers.
4663 * amd64-windows-nat.c: #include "amd64-tdep.h".
4664 (amd64_windows_segment_register_p): New function.
4665 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4666 * i386-windows-nat.c: #include "i386-tdep.h".
4667 (i386_windows_segment_register_p): New function.
4668 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4669
52b3699b
TG
46702012-05-04 Tristan Gingold <gingold@adacore.com>
4671
4672 * printcmd.c (set_command): Emit a warning if the expression is not
4673 an assignment.
4674
94c74239
JB
46752012-05-03 Joel Brobecker <brobecker@adacore.com>
4676
4677 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4678 Make static.
4679
fcf57f19
SDJ
46802012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4681
4682 * stap-probe.c (stap_is_operator): Change declaration.
4683 (stap_get_opcode): Change return value.
4684 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4685 `stap_parse_argument_1'.
4686
27d2932e
PA
46872012-05-03 Pedro Alves <pedro@codesourcery.com>
4688
4689 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4690 debug log.
4691
a20ee7a4
SCR
46922012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4693
4694 Add two new methods global_block and static_block to gdb.Symtab
4695 objects.
4696 * NEWS (Python scripting): Add entry about the new methods.
4697 * python/py-symtab.c (stpy_global_block): New function which
4698 implements the gdb.Symtab.global_block() method.
4699 (stpy_static_block): New function which implements the
4700 gdb.Symtab.static_block() method.
4701 (symtab_object_methods): Add entries for the two new methods.
4702
943cb756
DE
47032012-05-03 Doug Evans <dje@google.com>
4704
4705 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4706 files.
4707
f4644a3f
YQ
47082012-05-03 Yao Qi <yao@codesourcery.com>
4709
4710 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4711 space.
4712 (i386_process_record): Ditto.
4713
ef61f180
JB
47142012-05-02 Joel Brobecker <brobecker@adacore.com>
4715
4716 * infcall.c (unwind_on_signal_p): Make static.
4717
02f1df11
JB
47182012-05-02 Joel Brobecker <brobecker@adacore.com>
4719
4720 * sol-thread.c (solaris_pid_to_str): Make static.
4721 (_initialize_sol_thread): Add prototype.
4722
39023530
JB
47232012-05-02 Joel Brobecker <brobecker@adacore.com>
4724
4725 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4726
c6b0c501
CF
47272012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4728
4729 * MAINTAINERS: Remove myself.
4730
1ef71717
JK
47312012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4732
4733 Fix --without-auto-load-safe-path for MS-Windows host platform.
4734 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4735
b31b86a7
EZ
47362012-05-02 Eli Zaretskii <eliz@gnu.org>
4737
4738 * gdb_curses.h: Undefine KEY_EVENT before including curses
4739 headers. Move "#undef MOUSE_MOVED" before any curses header
4740 inclusion.
4741
777532fc
SDJ
47422012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4743
4744 * features/i386/i386-mmx-linux.c: Regenerate.
4745 * features/rs6000/powerpc-32.c: Likewise.
4746 * features/rs6000/powerpc-32l.c: Likewise.
4747 * features/rs6000/powerpc-403.c: Likewise.
4748 * features/rs6000/powerpc-403gc.c: Likewise.
4749 * features/rs6000/powerpc-405.c: Likewise.
4750 * features/rs6000/powerpc-505.c: Likewise.
4751 * features/rs6000/powerpc-601.c: Likewise.
4752 * features/rs6000/powerpc-602.c: Likewise.
4753 * features/rs6000/powerpc-603.c: Likewise.
4754 * features/rs6000/powerpc-604.c: Likewise.
4755 * features/rs6000/powerpc-64.c: Likewise.
4756 * features/rs6000/powerpc-64l.c: Likewise.
4757 * features/rs6000/powerpc-750.c: Likewise.
4758 * features/rs6000/powerpc-860.c: Likewise.
4759 * features/rs6000/powerpc-e500.c: Likewise.
4760 * features/rs6000/powerpc-e500l.c: Likewise.
4761 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4762 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4763 * features/rs6000/rs6000.c: Likewise.
4764
d71871bc
SDJ
47652012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4766
4767 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4768 variable.
4769 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4770 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4771 (stap_parse_argument) <e>: Likewise.
4772 (handle_stap_probe) <byte_order>: Likewise.
4773
fd820528
DE
47742012-04-30 Doug Evans <dje@google.com>
4775
4776 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4777 init_and_read_dies_worker. All callers updated.
4778 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4779 replaced with init_cutu_and_read_dies.
4780 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4781 (find_partial_die): Remove FIXME. Don't free current CU.
4782
ec3f619d 47832012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
4784
4785 * contrib: New directory.
4786 * contrib/test_pubnames_and_indexes.py: New file.
4787
fceca515
DE
47882012-04-30 Doug Evans <dje@google.com>
4789
4790 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4791 All callers updated.
4792 (init_cu_die_reader): Verify the section is non-empty.
4793 (dwarf_decode_line_header): Don't dereference section->asection
4794 until we know the section is present.
4795
311fe7e1
SDJ
47962012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4797
4798 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4799 probes.
4800
5977971a
YQ
48012012-04-29 Yao Qi <yao@codesourcery.com>
4802
4803 * gdb-code-style.el: New hook gdb-markup-hook
4804 and gdb-comment-hook.
4805
dee91e82
DE
48062012-04-28 Doug Evans <dje@google.com>
4807
3019eac3
DE
4808 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4809 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4810 objfile->obfd.
4811 * symfile.h (dwarf2_debug_sections): New member addr.
4812 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4813 (ctx_no_get_addr_index): New function.
4814 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4815 (ctx_no_get_addr_index): Declare.
4816 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4817 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4818 (dwarf_expr_ctx_funcs): Update.
4819 (needs_get_addr_index): New function.
4820 (needs_frame_ctx_funcs): Update.
4821 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4822 * dwarf2read.c: #include "gdbcore.h".
4823 (dwarf2_per_objfile): New members addr, dwo_files.
4824 (dwarf2_elf_names): Add entry for addr.
4825 (struct dwo_section_names): New type.
4826 (dwo_section_names): New static global.
4827 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4828 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4829 old debug_types_section member updated to use this.
4830 Rename member debug_types_section to info_or_types_section,
4831 all uses updated.
4832 (signatured_type): Rename member type_offset to type_offset_in_tu,
4833 all uses updated. New member type_offset_in_section.
4834 (struct dwo_sections): New type.
4835 (struct dwo_unit): New type.
4836 (struct dwo_file): New type.
4837 (die_reader_specs): New member dwo_file.
4838 (dwarf2_locate_sections): Watch for .debug_addr.
4839 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4840 (dwarf2_read_section): Get bfd of section from bfd's asection,
4841 instead of objfile.
4842 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4843 (create_signatured_type_table_from_index): Initialize
4844 sig_type->info_or_types_section.
4845 (dw2_get_file_names): Statement lists for type units with DWO files
4846 live in the DWO file.
4847 (create_debug_types_hash_table): New function.
4848 (create_all_type_units): Rewrite.
4849 (init_cu_die_reader): New arg dwo_file, all callers updated.
4850 (init_and_read_dies_worker): Get section from
4851 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4852 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4853 continue reading the CU/TU from there.
4854 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4855 updated. Get section from this_cu->info_or_types_section.
4856 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4857 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4858 DW_FORM_GNU_str_index.
4859 (hash_dwo_file, eq_dwo_file): New functions.
4860 (allocate_dwo_file_hash_table): New function.
4861 (hash_dwo_unit, eq_dwo_unit): New functions.
4862 (allocate_dwo_unit_table): New function.
4863 (dwarf2_locate_dwo_sections): New function.
4864 (struct create_dwo_info_table_data): New type.
4865 (create_debug_info_hash_table_reader): New function.
4866 (create_debug_info_hash_table): New function.
4867 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4868 (lookup_dwo_file): New function.
4869 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4870 (free_dwo_file, free_dwo_file_cleanup): New functions.
4871 (free_dwo_file_from_slot, free_dwo_files): New functions.
4872 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4873 (dwarf2_record_block_ranges): Ditto.
4874 (read_partial_die): Ditto.
4875 (process_enumeration_scope): Update to use type_offset_in_section.
4876 (read_full_die_1): New function.
4877 (read_full_die): Rewrite.
4878 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4879 DW_FORM_GNU_str_index.
4880 (read_addr_index_1, read_addr_index): New functions.
4881 (read_addr_index_from_leb128): New function.
4882 (struct dwarf2_read_addr_index_data): New type.
4883 (dwarf2_read_addr_index_reader): New function.
4884 (dwarf2_read_addr_index): New function.
4885 (read_str_index): New function.
4886 (leb128_size): New function.
4887 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4888 If processing a type unit from a DWO file, get the line section
4889 from the DWO file.
4890 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4891 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4892 DW_FORM_GNU_str_index.
4893 (lookup_die_type): Check whether section offset of type's die is
4894 known before looking it up. Remove assert. Condition can
4895 legimately happen for inter-cu type references.
4896 (dwarf_attr_name): Handle Fission attributes.
4897 (dwarf_form_name): Handle Fission forms.
4898 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4899 DW_FORM_GNU_str_index.
4900 (follow_die_sig): Update to use type_offset_in_section.
4901 (decode_locdesc): New case DW_OP_GNU_addr_index.
4902 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4903 DW_FORM_GNU_str_index.
4904 (cu_debug_loc_section): New function.
4905 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4906 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4907 Free DWO files if present.
4908 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4909
dee91e82
DE
4910 Refactor DIE reading.
4911 * dwarf2read.c (dwarf2_per_objfile): Replace members
4912 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4913 (die_reader_specs): New member "die_section". Temporarily make
4914 member "buffer" non-const, pending constifying all info_ptr uses.
4915 (die_reader_func_ftype): New typedef.
4916 (dw2_get_file_names_reader): New function.
4917 (dw2_get_file_names): Rewrite.
4918 (read_and_check_type_unit_head): Rename arg type_offset to
4919 type_offset_in_tu.
4920 (create_all_type_units): Improve debugging message.
4921 Improve dummy type unit check.
4922 (init_cu_die_reader): New arg "section". All callers updated.
4923 (init_and_read_dies_worker): New function.
4924 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4925 (init_cutu_and_read_dies_no_follow): New function.
4926 (init_cutu_and_read_dies_simple): New function.
4927 (process_psymtab_comp_unit_reader): New function.
4928 (process_psymtab_comp_unit): Delete args section,
4929 is_debug_types_section. Rewrite. All callers updated.
4930 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4931 All callers updated. Rewrite.
4932 (load_partial_comp_unit_reader): New function.
4933 (load_partial_comp_unit): Rewrite.
4934 (skip_children): New arg reader. Delete args buffer, cu.
4935 All callers updated.
4936 (skip_one_die): New arg reader. Delete args buffer, cu.
4937 All callers updated.
4938 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4939 All callers updated.
4940 (load_full_comp_unit_reader): New function.
4941 (load_full_comp_unit): Rewrite.
4942 (read_comp_unit): Delete.
4943 (read_die_and_children_1): Delete, contents moved ...
4944 (read_die_and_children): ... here.
4945 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4946 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4947 All callers updated.
4948 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4949 All callers updated.
4950 (find_partial_die): Rewrite load_all_dies support.
4951 (read_attribute_value): New arg reader. Delete args abfd, cu.
4952 All callers updated.
4953 (read_attribute): New arg reader. Delete args abfd, cu.
4954 All callers updated.
4955 (load_full_type_unit): Add assert.
4956 (read_signatured_type_reader): New function.
4957 (read_signatured_type): Rewrite.
4958 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4959 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4960 All callers updated. Set per_cu->cu = NULL after freeing it.
4961 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4962 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4963 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4964 (set_die_type): Update.
4965 (get_die_type_at_offset): Update.
4966 (read_file_scope): Call prepare_one_comp_unit.
4967 (read_type_unit_scope): Ditto.
4968 (prepare_one_comp_unit): Set producer if present.
4969
72d59e0d
SDJ
49702012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4971
4972 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4973 gettext function on `error'.
4974
0fefef59
DE
49752012-04-27 Doug Evans <dje@google.com>
4976
4977 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4978 is empty.
4979
28106bc2
SDJ
49802012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4981 Tom Tromey <tromey@redhat.com>
4982
4983 * breakpoint.c (struct breakpoint_objfile_data)
4984 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4985 <exception_probes>: New fields.
4986 (free_breakpoint_probes): New function.
4987 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4988 `_Unwind_DebugHook'.
4989 (create_exception_master_breakpoint): Likewise.
4990 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4991 * infrun.c: Including necessary header files for handling SystemTap
4992 probes.
4993 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4994 via SystemTap probes.
4995 (check_exception_resume): Remove `func' argument. Handle exception
4996 unwinding breakpoint set via a SystemTap probe.
4997 (insert_exception_resume_from_probe): New function.
4998
55aa24fb
SDJ
49992012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5000 Tom Tromey <tromey@redhat.com>
5001 Jan Kratochvil <jan.kratochvil@redhat.com>
5002
5003 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
5004 (COMMON_OBS): Likewise.
5005 (HFILES_NO_SRCDIR): Add `probe'.
5006 * NEWS: Mention support for static and SystemTap probes.
5007 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
5008 SystemTap probes' arguments parser.
5009 * arm-linux-tdep.c: Including headers needed to perform the parsing
5010 of SystemTap probes' arguments.
5011 (arm_stap_is_single_operand): New function.
5012 (arm_stap_parse_special_token): Likewise.
5013 (arm_linux_init_abi): Initializing proper fields used by SystemTap
5014 probes' arguments parser.
5015 * ax-gdb.c (require_rvalue): Removing static declaration.
5016 (gen_expr): Likewise.
5017 * ax-gdb.h (gen_expr): Declaring function.
5018 (require_rvalue): Likewise.
5019 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
5020 (bkpt_probe_breakpoint_ops): New variable.
5021 (momentary_breakpoint_from_master): Set the `probe' value.
5022 (add_location_to_breakpoint): Likewise.
5023 (break_command_1): Using proper breakpoint_ops according to the
5024 argument passed by the user in the command line.
5025 (bkpt_probe_insert_location): New function.
5026 (bkpt_probe_remove_location): Likewise.
5027 (bkpt_probe_create_sals_from_address): Likewise.
5028 (bkpt_probe_decode_linespec): Likewise.
5029 (tracepoint_probe_create_sals_from_address): Likewise.
5030 (tracepoint_probe_decode_linespec): Likewise.
5031 (tracepoint_probe_breakpoint_ops): New variable.
5032 (trace_command): Using proper breakpoint_ops according to the
5033 argument passed by the user in the command line.
5034 (initialize_breakpoint_ops): Initializing breakpoint_ops for
5035 static probes on breakpoints and tracepoints.
5036 * breakpoint.h (struct bp_location) <probe>: New field.
5037 * cli-utils.c (skip_spaces_const): New function.
5038 (extract_arg): Likewise.
5039 * cli-utils.h (skip_spaces_const): Likewise.
5040 (extract_arg): Likewise.
5041 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
5042 * configure.ac: Append `stap-probe.o' to be generated when ELF
5043 support is present.
5044 * configure: Regenerate.
5045 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
5046 * elfread.c: Include `probe.h' and `arch-utils.h'.
5047 (probe_key): New variable.
5048 (elf_get_probes): New function.
5049 (elf_get_probe_argument_count): Likewise.
5050 (elf_evaluate_probe_argument): Likewise.
5051 (elf_compile_to_ax): Likewise.
5052 (elf_symfile_relocate_probe): Likewise.
5053 (stap_probe_key_free): Likewise.
5054 (elf_probe_fns): New variable.
5055 (elf_sym_fns): Add `sym_probe_fns' value.
5056 (elf_sym_fns_lazy_psyms): Likewise.
5057 (elf_sym_fns_gdb_index): Likewise.
5058 (_initialize_elfread): Initialize objfile cache for static
5059 probes.
5060 * gdb_vecs.h (struct probe): New forward declaration.
5061 (probe_p): New VEC declaration.
5062 * gdbarch.c: Regenerate.
5063 * gdbarch.h: Regenerate.
5064 * gdbarch.sh (stap_integer_prefix): New variable.
5065 (stap_integer_suffix): Likewise.
5066 (stap_register_prefix): Likewise.
5067 (stap_register_suffix): Likewise.
5068 (stap_register_indirection_prefix): Likewise.
5069 (stap_register_indirection_suffix): Likewise.
5070 (stap_gdb_register_prefix): Likewise.
5071 (stap_gdb_register_suffix): Likewise.
5072 (stap_is_single_operand): New function.
5073 (stap_parse_special_token): Likewise.
5074 (struct stap_parse_info): Forward declaration.
5075 * i386-tdep.c: Including headers needed to perform the parsing
5076 of SystemTap probes' arguments.
5077 (i386_stap_is_single_operand): New function.
5078 (i386_stap_parse_special_token): Likewise.
5079 (i386_elf_init_abi): Initializing proper fields used by SystemTap
5080 probes' arguments parser.
5081 * i386-tdep.h (i386_stap_is_single_operand): New function.
5082 (i386_stap_parse_special_token): Likewise.
5083 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
5084 * mipsread.c (ecoff_sym_fns): Likewise.
5085 * objfiles.c (objfile_relocate1): Support relocation for static
5086 probes.
5087 * parse.c (prefixify_expression): Remove static declaration.
5088 (initialize_expout): Likewise.
5089 (reallocate_expout): Likewise.
5090 * parser-defs.h (initialize_expout): Declare function.
5091 (reallocate_expout): Likewise.
5092 (prefixify_expression): Likewise.
5093 * ppc-linux-tdep.c: Including headers needed to perform the parsing
5094 of SystemTap probes' arguments.
5095 (ppc_stap_is_single_operand): New function.
5096 (ppc_stap_parse_special_token): Likewise.
5097 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
5098 probes' arguments parser.
5099 * probe.c: New file, for generic statically defined probe support.
5100 * probe.h: Likewise.
5101 * s390-tdep.c: Including headers needed to perform the parsing of
5102 SystemTap probes' arguments.
5103 (s390_stap_is_single_operand): New function.
5104 (s390_gdbarch_init): Initializing proper fields used by SystemTap
5105 probes' arguments parser.
5106 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
5107 * stap-probe.c: New file, for SystemTap probe support.
5108 * stap-probe.h: Likewise.
5109 * symfile.h: Include `gdb_vecs.h'.
5110 (struct sym_probe_fns): New struct.
5111 (struct sym_fns) <sym_probe_fns>: New field.
5112 * symtab.c (init_sal): Initialize `probe' field.
5113 * symtab.h (struct probe): Forward declaration.
5114 (struct symtab_and_line) <probe>: New field.
5115 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
5116 locations.
5117 (stop_tracing): Likewise.
5118 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
5119
22d2b532
SDJ
51202012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
5121 Tom Tromey <tromey@redhat.com>
5122
5123 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
5124 and to compile agent expressions.
5125 * infrun.c (siginfo_make_value): New argument `ignore'.
5126 (siginfo_funcs): New struct.
5127 (_initialize_infrun): New argument when calling
5128 `create_internalvar_type_lazy'.
5129 * thread.c (thread_id_make_value): New argument `ignore'.
5130 (thread_funcs): New struct.
5131 (_initialize_thread): New argument when calling
5132 `create_internalvar_type_lazy'.
5133 * tracepoint.c (sdata_make_value): New argument `ignore'.
5134 (sdata_funcs): New struct.
5135 (_initialize_tracepoint): New argument when calling
5136 `create_internalvar_type_lazy'.
5137 * value.c (make_value): New struct.
5138 (create_internalvar_type_lazy): New argument `data'.
5139 (compile_internalvar_to_ax): New function.
5140 (value_of_internalvar): Properly handling `make_value' case.
5141 (clear_internalvar): Likewise.
5142 (show_convenience): Adding `TRY_CATCH' block.
5143 * value.h (internalvar_make_value): Delete, replace by...
5144 (struct internalvar_funcs): ... this.
5145 (create_internalvar_type_lazy) <fun>: Delete argument.
5146 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
5147 (compile_internalvar_to_ax): New function.
5148 * windows-tdep.c (tlb_make_value): New argument `ignore'.
5149 (tlb_funcs): New struct.
5150 (_initialize_windows_tdep): New argument when calling
5151 `create_internalvar_type_lazy'.
5152
91da1414
MW
51532012-04-27 Mark Wielaard <mjw@redhat.com>
5154
5155 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
5156 see whether it is an address or a constant offset from DW_AT_low_pc.
5157 (dwarf2_record_block_ranges): Likewise.
5158 (read_partial_die): Likewise.
5159
4ab9d8ec
MW
51602012-04-26 Mark Wielaard <mjw@redhat.com>
5161
5162 * MAINTAINERS (Write After Approval): Add myself to the list.
5163
a0911fd0
MR
51642012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5165
5166 * proc-utils.h (proc_prettyprint_signalset): New prototype.
5167 (proc_prettyprint_signal): Likewise.
5168 (proc_prettyprint_faultset): Likewise.
5169 (proc_prettyprint_fault): Likewise.
5170 (proc_prettyprint_actionset): Likewise.
5171 (proc_prettyprint_flags): Move to new proc-flags.c section.
5172 (proc_prettyfprint_flags): New prototype.
5173 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5174 (proc_syscall, proc_cursig): Likewise.
5175 (proc_set_kill_on_last_close): Likewise.
5176 (proc_unset_kill_on_last_close): Likewise.
5177 (proc_set_watchpoint): Make static.
5178 (proc_delete_dead_threads): Likewise.
5179 (procfs_set_watchpoint): Likewise.
5180 (_initialize_procfs): Add prototype.
5181 * proc-events.c: Include proc-utils.h.
5182 (init_syscall_table): Make static.
5183 * proc-api.c (_initialize_proc_api): Add prototype.
5184 * proc-flags.c: Include proc-utils.h.
5185
9009e1ae
MR
51862012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5187
5188 * configure.ac: Add AC_ARG_PROGRAM.
5189 * configure: Regenerate.
5190
4fae6e18
JK
51912012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5192
5193 Fix DW_AT_lower_bound defaults for DWARF-4+.
5194 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5195 high. New variable low_default_is_valid. Implement DWARF-4+
5196 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5197 no default by the DWARF standard.
5198
14132e89 51992012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5200 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5201
5202 * infrun.c (handle_inferior_event): Move the check for return
5203 trampolines ahead of the check for function trampolines.
5204 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5205 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5206 (mips_str_mips16_ret_stub): Likewise.
5207 (mips_str_call_fp_stub): Likewise.
5208 (mips_str_call_stub): Likewise.
5209 (mips_str_fn_stub): Likewise.
5210 (mips_str_pic): Likewise.
5211 (mips_in_frame_stub): New function.
5212 (mips_unwind_pc): Return the return address rather than the PC
5213 if the PC of an intermediate frame is inside a call thunk.
5214 (mips_is_stub_suffix): New function.
5215 (mips_is_stub_mode): Likewise.
5216 (mips_get_mips16_fn_stub_pc): Likewise.
5217 (mips_skip_mips16_trampoline_code): Update to handle all the
5218 currently generated stub types. Don't recurse into __fn_stub
5219 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5220 Use cooked register accesses.
5221 (mips_in_return_stub): Reintroduce function.
5222 (mips_skip_trampoline_code): Traverse trampolines recursively.
5223 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5224
518f0db5 52252012-04-26 Joel Brobecker <brobecker@adacore.com>
5226
5227 GDB 7.4.1 released.
5228
3184d3f9
JL
52292012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5230
5231 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5232 * features/arm-with-m-vfp-d16.xml: New file. Describes
5233 Cortex-M with VFPv4-sp-d16 FPU register layout.
5234 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5235 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5236 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5237 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5238 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5239
b6201d44
DE
52402012-04-25 Doug Evans <dje@google.com>
5241
5242 * cli/cli-decode.c (print_doc_line): Use stream instead of
5243 current_uiout.
5244
4e2f8df6
SDJ
52452012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5246
5247 * features/arm-with-iwmmxt.c: Regenerate.
5248 * features/arm-with-m-fpa-layout.c: Likewise.
5249 * features/arm-with-m.c: Likewise.
5250 * features/arm-with-neon.c: Likewise.
5251 * features/arm-with-vfpv2.c: Likewise.
5252 * features/arm-with-vfpv3.c: Likewise.
5253 * features/mips-dsp-linux.c: Likewise.
5254 * features/mips-linux.c: Likewise.
5255 * features/mips64-dsp-linux.c: Likewise.
5256 * features/mips64-linux.c: Likewise.
5257 * features/s390-linux32.c: Likewise.
5258 * features/s390-linux32v1.c: Likewise.
5259 * features/s390-linux32v2.c: Likewise.
5260 * features/s390-linux64.c: Likewise.
5261 * features/s390-linux64v1.c: Likewise.
5262 * features/s390-linux64v2.c: Likewise.
5263 * features/s390x-linux64.c: Likewise.
5264 * features/s390x-linux64v1.c: Likewise.
5265 * features/s390x-linux64v2.c: Likewise.
5266 * features/tic6x-c62x-linux.c: Likewise.
5267 * features/tic6x-c62x.c: Likewise.
5268 * features/tic6x-c64x-linux.c: Likewise.
5269 * features/tic6x-c64x.c: Likewise.
5270 * features/tic6x-c64xp-linux.c: Likewise.
5271 * features/tic6x-c64xp.c: Likewise.
5272 * target-descriptions.c: Only generate `field_type' and `type'
5273 variables when needed.
5274
2def3e66
JB
52752012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5276
5277 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5278
a766d390
DE
52792012-04-25 Doug Evans <dje@google.com>
5280
5281 Initial pass at Go language support.
5282 * NEWS: Mention Go.
5283 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5284 go-valprint.c.
5285 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5286 (YYFILES): Add go-exp.c.
5287 (YYOBJ): Add go-exp.o.
5288 (local-maintainer-clean): Delete go-exp.c.
5289 * defs.h (enum language): Add language_go.
5290 * dwarf2read.c: #include "go-lang.h".
5291 (fixup_go_packaging): New function.
5292 (process_full_comp_unit): Call it when processing Go CUs.
5293 (dwarf2_physname): Add Go support.
5294 (read_file_scope): Handle missing language spec for GNU Go.
5295 (set_cu_language): Handle DW_LANG_Go.
5296 * go-exp.y: New file.
5297 * go-lang.h: New file.
5298 * go-lang.c: New file.
5299 * go-typeprint.c: New file.
5300 * go-valprint.c: New file.
5301 * symtab.c: #include "go-lang.h".
5302 (symbol_set_language): Handle language_go.
5303 (symbol_find_demangled_name, symbol_set_names): Ditto.
5304 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5305
4e2af517
JM
53062012-04-24 Jim Meyering <meyering@redhat.com>
5307
5308 avoid a few strncpy-induced buffer overruns
5309 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5310 fname and psargs before trying to concatenate.
5311 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5312 "name" before applying strchr.
5313
b77b7f52
SCR
53142012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5315
5316 * CONTRIBUTE: Use unified diff instead of context diff when
5317 generating patches.
5318
6321c22a
MR
53192012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5320
5321 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5322 code. Handle JR.HB correctly.
5323
742c84f6
MR
53242012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5325
5326 * mips-tdep.c
5327 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5328 with the other MIPS16 helpers.
5329
7fc7e0c3
SDJ
53302012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5331
5332 * observer.sh: Conditionally declare `args', thus cleaning up
5333 unused instances of this variable.
5334
20388dd6
YQ
53352012-04-24 Yao Qi <yao@codesourcery.com>
5336
5337 Revert this patch to allow breakpoint always-inserted
5338 in record target.
5339 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5340 * breakpoint.c: Include record.h.
5341 (breakpoints_always_inserted_mode): Return false when the record
5342 target is in use.
20388dd6
YQ
5343
5344 * breakpoint.c (iterate_over_bp_locations): New.
5345 * breakpoint.h: Declare.
5346 New typedef walk_bp_location_callback.
5347 * record.c (record_open): Call record_init_record_breakpoints.
5348 (record_sync_record_breakpoints): New.
5349 (record_init_record_breakpoints): New.
5350 * NEWS: Mention supporting breakpoint always-inserted mode in
5351 record target.
5352
4734f50e
MK
53532012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5354
5355 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5356 any thread.
5357
c326b90e
YQ
53582012-04-24 Yao Qi <yao@codesourcery.com>
5359
5360 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5361 (is_catchpoint): ... it.
5362 (print_one_breakpoint_location): Caller update.
5363 * breakpoint.h: Update declaration.
5364
d8fb5a1e
DM
53652012-04-23 David S. Miller <davem@davemloft.net>
5366
5367 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5368
34431a2a
TT
53692012-04-23 Tom Tromey <tromey@redhat.com>
5370
5371 * buildsym.c (add_free_pendings): Remove.
5372 * buildsym.h (add_free_pendings): Remove.
5373
4568ecf9
DE
53742012-04-23 Doug Evans <dje@google.com>
5375
5376 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5377 attr.u.unsnd instead of attr.u.addr.
5378 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5379 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5380 DW_FORM_ref_udata.
5381 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5382 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5383 DW_FORM_ref_udata.
5384 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5385
dca9aa3a
MR
53862012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5387
5388 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5389 (mips_o32_return_value): Likewise.
5390 (mips_o64_return_value): Likewise.
5391
c8ea1972
PH
53922012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5393
5394 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5395 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5396 their treatment in eval.c.
c8ea1972 5397
8d1b3521
DM
53982012-04-21 David S. Miller <davem@davemloft.net>
5399
5400 * sparc-tdep.c (X_DISP10): Define.
5401 (sparc_analyze_control_transfer): Handle compare-and-branch.
5402
03145bf4
JL
54032012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5404
5405 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5406 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5407
004159a2 54082012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5409 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5410
5411 * mips-tdep.c (mips_float_register_p): New function.
5412 (mips_convert_register_float_case_p): Use mips_float_register_p.
5413 (mips_register_type): Likewise.
5414 (mips_print_register): Likewise.
5415 (print_gp_register_row): Likewise.
5416 (mips_print_registers_info): Likewise.
5417
7f0e6aae
MR
54182012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5419
5420 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5421 of mips16 symbols.
5422
bc17beea
AP
54232012-04-20 Andrew Pinski <apinski@cavium.com>
5424
5425 * MAINTAINERS (Write After Approval): Add myself to the list.
5426
1730a5a5
SDJ
54272012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5428
5429 * MAINTAINERS: Update my e-mail address.
5430
38ea300a
PA
54312012-04-20 Pedro Alves <palves@redhat.com>
5432
5433 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5434 $srcdir.
5435 * configure: Regenerate.
5436
111dfaae
SDJ
54372012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5438
5439 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5440 declaration.
5441 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5442
4fb2c64a
JK
54432012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5444
5445 Fix compilation compatibility with python-2.4
5446 * python/py-type.c (convert_field): Cast ADDRSTRING for
5447 PyObject_SetAttrString as non-const. New comment.
5448
6328eb38
TT
54492012-04-19 Tom Tromey <tromey@redhat.com>
5450
5451 * top.c (quit_target): Use all_cleanups.
5452 * main.c (captured_command_loop): Use all_cleanups.
5453 * exceptions.c (throw_exception): Use all_cleanups.
5454
c971b7fa
PA
54552012-04-19 Pedro Alves <palves@redhat.com>
5456
5457 * Makefile.in (GNULIB_BUILDDIR): New.
5458 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5459 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5460 (CLEANDIRS). Remove gnulib/import.
5461 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5462 (all-lib): Ditto.
5463 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5464 (gnulib/import/Makefile): Replace gnulib/import with
5465 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5466 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5467 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5468 acx_configure_dir.m4.
5469 * acinclude.m4: Include acx_configure_dir.m4.
5470 * acx_configure_dir.m4: New file.
5471 * aclocal.m4: Regenerate.
a09130f9
PA
5472 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5473 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5474 (GNULIB): New variable.
5475 (GNULIB_STDINT_H): Adjust.
5476 (AC_OUTPUT): Don't output gnulib/Makefile.
5477 * gdb/defs.h: Include build-gnulib/config.h.
5478 * aclocal.m4: Regenerate.
5479 * config.in: Regenerate.
5480 * configure: Regenerate.
5481
5482 * gnulib/Makefile.in: New file.
5483 * gnulib/configure.ac: New file.
5484 * gnulib/aclocal.m4: New file.
5485 * gnulib/config.in: New file.
5486 * gnulib/configure: New file.
c971b7fa
PA
5487 * gnulib/: Re-run gnulib-tool to adjust.
5488
b10faa68
DE
54892012-04-19 Doug Evans <dje@google.com>
5490
5491 * cleanups.h (struct cleanup): Move to cleanups.c.
5492 (make_cleanup_dtor_ftype): New typedef.
5493 (make_cleanup_dtor): Use it.
5494 (ALL_CLEANUPS): Replace with ...
5495 (all_cleanups): ... this. Declare. All uses updated.
5496 * cleanups.c: #include "gdb_assert.h".
5497 (sentinel_cleanup): New static global.
5498 (SENTINEL_CLEANUP): Define.
5499 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5500 (make_my_cleanup2): Assert result is non-NULL.
5501 (all_cleanups): New function.
5502 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5503 of NULL.
5504
d8c267cc
PA
55052012-04-19 Pedro Alves <palves@redhat.com>
5506
5507 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5508 Adjust paths to gnulib imported files.
5509
809277f8
PA
55102012-04-19 Pedro Alves <palves@redhat.com>
5511
5512 * gnulib/: Move whole directory ...
5513 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5514 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5515 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5516 (aclocal_m4_deps): Adjust.
5517 * aclocal.m4: Regenerate.
5518 * configure: Regenerate.
5519 * configure.ac: Adjust AC_OUTPUT output.
5520
aad9eab9
YQ
55212012-04-19 Yao Qi <yao@codesourcery.com>
5522
5523 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5524 (vec.o): New rule.
5525 * vec.c: Move it ...
5526 * common/vec.c: ... here.
5527 * vec.h: Move it ...
5528 * common/vec.h: ... here.
5529
48fe4669
YQ
55302012-04-19 Yao Qi <yao@codesourcery.com>
5531
5532 * gdb-code-style.el: New.
5533
770d76d7
PA
55342012-04-18 Pedro Alves <palves@redhat.com>
5535
5536 Update gnulib from latest git.
5537 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5538
5539 * gnulib/Makefile.am: Update.
5540 * gnulib/dummy.c: Update.
5541 * gnulib/extra/arg-nonnull.h: Update.
5542 * gnulib/extra/c++defs.h: Update.
5543 * gnulib/extra/update-copyright: Update.
5544 * gnulib/extra/warn-on-use.h: Update.
5545 * gnulib/inttypes.in.h: Update.
5546 * gnulib/m4/00gnulib.m4: Update.
5547 * gnulib/m4/extensions.m4: Update.
5548 * gnulib/m4/gnulib-cache.m4: Update.
5549 * gnulib/m4/gnulib-common.m4: Update.
5550 * gnulib/m4/gnulib-comp.m4: Update.
5551 * gnulib/m4/gnulib-tool.m4: Update.
5552 * gnulib/m4/include_next.m4: Update.
5553 * gnulib/m4/inttypes-pri.m4: Update.
5554 * gnulib/m4/inttypes.m4: Update.
5555 * gnulib/m4/longlong.m4: Update.
5556 * gnulib/m4/memchr.m4: Update.
5557 * gnulib/m4/memmem.m4: Update.
5558 * gnulib/m4/mmap-anon.m4: Update.
5559 * gnulib/m4/multiarch.m4: Update.
5560 * gnulib/m4/onceonly.m4: Update.
5561 * gnulib/m4/stddef_h.m4: Update.
5562 * gnulib/m4/stdint.m4: Update.
5563 * gnulib/m4/string_h.m4: Update.
5564 * gnulib/m4/warn-on-use.m4: Update.
5565 * gnulib/m4/wchar_h.m4: Update.
5566 * gnulib/m4/wchar_t.m4: Update.
5567 * gnulib/m4/wint_t.m4: Update.
5568 * gnulib/memchr.c: Update.
5569 * gnulib/memmem.c: Update.
5570 * gnulib/stddef.in.h: Update.
5571 * gnulib/stdint.in.h: Update.
5572 * gnulib/str-two-way.h: Update.
5573 * gnulib/string.in.h: Update.
5574 * gnulib/wchar.in.h: Update.
5575
5576 * gnulib/extra/arg-nonnull.h: Delete.
5577 * gnulib/extra/c++defs.h: Delete.
5578 * gnulib/extra/warn-on-use.h: Delete.
5579 * gnulib/m4/wchar_h.m4: Delete.
5580 * gnulib/m4/wint_t.m4: Delete.
5581 * gnulib/wchar.in.h: Delete.
5582
5583 * gnulib/extra/snippets/arg-nonnull.h: New.
5584 * gnulib/extra/snippets/c++defs.h: New.
5585 * gnulib/extra/snippets/warn-on-use.h: New.
5586
5587 * aclocal.m4: Regenerate.
5588 * config.in: Regenerate.
5589 * configure: Regenerate.
5590 * gnulib/Makefile.in: Regenerate.
5591
174e088e
PA
55922012-04-18 Pedro Alves <palves@redhat.com>
5593
5594 Reimport the update-copyright module from gnulib
5595 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5596
5597 * configure: Regenerate.
5598 * gnulib/Makefile.am: Update.
5599 * gnulib/Makefile.in: Regenerate.
5600 * gnulib/extra/update-copyright: Update.
5601 * gnulib/m4/gnulib-cache.m4: Update.
5602 * gnulib/m4/gnulib-comp.m4: Update.
5603
7f533142
JB
56042012-04-18 Tristan Gingold <gingold@adacore.com>
5605
5606 * configure.ac (aix): Put -lpthread into libs.
5607 * configure: Regenerate.
5608
001822aa
TT
56092012-04-18 Tom Tromey <tromey@redhat.com>
5610
5611 * linespec.c (convert_linespec_to_sals): Don't use
5612 SYMBOL_OBJ_SECTION.
5613 (compare_msymbols): Arguments are minsym_and_objfile, not
5614 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5615
db026a31
PA
56162012-04-18 Pedro Alves <palves@redhat.com>
5617
5618 Revert gnulib/ part of:
5619 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5620 Copyright year update in most files (performed by copyright.sh).
5621
12df843f
JK
56222012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 Fix 64-bit constants on 32-bit hosts.
5625 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5626 from unsigned long to ULONGEST.
5627 (read_signed_leb128): Change declaration return type from long to
5628 LONGEST.
5629 (dwarf2_const_value_attr): Change declaration parameter value from long
5630 to LONGEST.
5631 (dwarf2_compute_name): Change variable value from long to LONGEST.
5632 (read_unsigned_leb128): Change return type, variable result and some
5633 casts from unsigned long to ULONGEST.
5634 (read_signed_leb128): Change return type, variable result and some
5635 casts from long to LONGEST.
5636 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5637 value from long to LONGEST.
5638 (dwarf2_const_value): Change variable value from long to LONGEST.
5639 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5640 plongest and hex_string.
5641 * symtab.h (struct general_symbol_info): Change ivalue from long to
5642 LONGEST, remove the comment.
5643 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5644 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5645
14e75d8e
JK
56462012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5647
5648 PR symtab/7259:
5649 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5650 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
5651 (ada_discrete_type_low_bound): Fix function comment. Use
5652 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
5653 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5654 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5655 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5656 Use TYPE_FIELD_ENUMVAL.
5657 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5658 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5659 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5660 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5661 TYPE_CODE_ENUM.
5662 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5663 * dwarf2read.c (process_enumeration_scope): Likewise.
5664 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5665 field.bitpos.
5666 (class StructMainTypePrettyPrinter): Support also
5667 FIELD_LOC_KIND_ENUMVAL.
5668 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5669 TYPE_CODE_ENUM.
5670 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5671 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5672 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5673 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5674 field enumval.
5675 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5676 accommodate enumval.
5677 (struct call_site): Adjust loc_kind to accommodate enumval.
5678 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5679 (TYPE_FIELD_ENUMVAL): New macros.
5680 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5681 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5682 TYPE_CODE_ENUM.
5683 * p-typeprint.c (pascal_type_print_base): Likewise.
5684 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5685 enumval.
5686 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5687 * python/py-type.c (convert_field): New variable addrstring. Use
5688 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5689 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5690 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5691 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5692 TYPE_CODE_ENUM.
5693 * valprint.c (generic_val_print): Likewise.
5694
380bca97
DE
56952012-04-17 Doug Evans <dje@google.com>
5696
dcc07052
DE
5697 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5698
380bca97
DE
5699 * dwarf2read.c: Whitespace fixes.
5700 (lookup_signatured_type): Tweak comment.
5701 (get_die_type_at_offset): Fix comment.
5702
ec92004f
JB
57032012-04-17 Joel Brobecker <brobecker@adacore.com>
5704
5705 * xcoffread.c (xcoff_secnum_to_sections): New function.
5706 (secnum_to_section, secnum_to_bfd_section): Reimplement
5707 using xcoff_secnum_to_sections. Rename "secnum" parameter
5708 into "n_scnum".
5709 (RECORD_MINIMAL_SYMBOL): Delete.
5710 (record_minimal_symbol): New function.
5711 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5712 by call to record_minimal_symbol and set misc_func_recorded
5713 to 1. Set last_csect_sec to the XCOFF section index instead
5714 of GDB's section_offset index. Update calls to
5715 prim_record_minimal_symbol_and_info to pass the BFD section
5716 as well.
5717
40301fb7
JB
57182012-04-17 Joel Brobecker <brobecker@adacore.com>
5719
5720 * xcoffread.c (read_xcoff_symtab): Delete variables
5721 last_csect_val and last_csect_sec and associated code.
5722
e0088cfd
DE
57232012-04-17 Doug Evans <dje@google.com>
5724
58d5e2c3
DE
5725 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5726 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5727 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5728 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5729
c27f5738
DE
5730 * cleanups.h: New file.
5731 * cleanups.c: New file.
5732 * Makefile.in (SFILES): Add cleanups.c.
5733 (HFILES_NO_SRCDIR): Add cleanups.h.
5734 (COMMON_OBS): Add cleanups.o.
5735 * defs.h (struct cleanup): Moved to cleanups.h.
5736 (do_cleanups,do_final_cleanups): Ditto.
5737 (discard_cleanups,discard_final_cleanups): Ditto
5738 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5739 (save_cleanups,save_final_cleanups): Ditto.
5740 (restore_cleanups,restore_final_cleanups): Ditto.
5741 (null_cleanup): Ditto.
5742 (make_my_cleanup,make_my_cleanup2): Ditto.
5743 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5744 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5745 (do_cleanups,do_final_cleanups): Ditto.
5746 (discard_cleanups,discard_final_cleanups): Ditto
5747 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5748 (save_cleanups,save_final_cleanups): Ditto.
5749 (restore_cleanups,restore_final_cleanups): Ditto.
5750 (null_cleanup): Ditto.
5751 (make_my_cleanup,make_my_cleanup2): Ditto.
5752 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5753
e0088cfd
DE
5754 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5755 make_my_cleanup.
5756 (make_cleanup_dyn_string_delete): Ditto.
5757 (make_cleanup_ui_file_delete): Ditto.
5758 (make_cleanup_ui_out_redirect_pop): Ditto.
5759 (make_cleanup_free_section_addr_info): Ditto.
5760 (make_cleanup_restore_integer): Ditto.
5761 (make_cleanup_unpush_target): Ditto.
5762 (make_cleanup_value_free_to_mark): Ditto.
5763 (make_cleanup_value_free): Ditto.
5764 (make_cleanup_free_so): Ditto.
5765
4dc84fd1
JK
57662012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5767
5768 New option "set debug auto-load".
5769 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5770 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5771 (auto_load_safe_path_vec_update)
5772 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5773 if DEBUG_AUTO_LOAD.
5774 (file_is_auto_load_safe): New parameters debug_fmt and ....
5775 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5776 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5777 caller by explanatory string.
5778 (_initialize_auto_load): Register "set debug auto-load".
5779 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5780 and ....
5781 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5782 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5783 by explanatory string.
5784 * main.c (captured_main): Likewise.
5785 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5786 (source_section_scripts): Likewise.
5787
bccbefd2
JK
57882012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5789
5790 New option "set auto-load safe-path".
5791 * NEWS: New commands "set auto-load safe-path"
5792 and "show auto-load safe-path".
5793 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5794 (auto_load_safe_path, auto_load_safe_path_vec)
5795 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5796 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5797 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5798 (source_gdb_script_for_objfile): New variable is_safe. Call
5799 file_is_auto_load_safe. Return if it is not.
5800 (struct loaded_script): New field loaded.
5801 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5802 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5803 output "Missing" to "No".
5804 (_initialize_auto_load): New variable cmd. Initialize
5805 auto_load_safe_path. Register "set auto-load safe-path",
5806 "show auto-load safe-path" and "add-auto-load-safe-path".
5807 * auto-load.h (maybe_add_script): Add parameter loaded.
5808 (file_is_auto_load_safe): New declaration.
5809 * config.in: Regenerate.
5810 * configure: Regenerate.
5811 * configure.ac: New parameters --with-auto-load-safe-path
5812 and --without-auto-load-safe-path.
5813 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5814 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5815 * main.c (captured_main): Check file_is_auto_load_safe for
5816 LOCAL_GDBINIT.
5817 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5818 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5819 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5820 not.
5821
bf88dd68
JK
58222012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5823
5824 auto-load: Implementation.
5825 * NEWS: New descriptions for "info auto-load",
5826 "info auto-load gdb-scripts", "info auto-load python-scripts",
5827 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5828 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5829 and "show auto-load-scripts". New description for "set auto-load",
5830 "show auto-load", "set auto-load gdb-scripts",
5831 "show auto-load gdb-scripts", "set auto-load python-scripts",
5832 "show auto-load python-scripts", "set auto-load local-gdbinit",
5833 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5834 "show auto-load libthread-db".
5835 * auto-load.c: Remove include python/python-internal.h. Add includes
5836 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5837 cli/cli-setshow.h.
5838 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5839 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5840 (gdbpy_global_auto_load): Rename to ...
5841 (global_auto_load): ... here.
5842 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5843 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5844 (script_language_gdb, source_gdb_script_for_objfile): New.
5845 (struct loaded_script): New field language.
5846 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5847 LANGUAGE.
5848 (maybe_add_script): Add parameter language. Drop redundant
5849 entry.full_path initialization. Initialize entry.language and
5850 (*slot)->language.
5851 (auto_load_objfile_script): Change parameter suffix to language.
5852 Remove the call of maybe_add_script.
5853 Call language->source_script_for_objfile.
5854 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5855 New.
5856 (collect_matching_scripts): Adjust it for
5857 struct collect_matching_scripts_data.
5858 (auto_load_info_scripts_pattern_nl): New variable.
5859 (info_auto_load_scripts): Rename to ...
5860 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5861 for struct collect_matching_scripts_data.
5862 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5863 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5864 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5865 (auto_load_info_cmdlist_get): New.
5866 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5867 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5868 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5869 "info auto-load local-gdbinit".
5870 * auto-load.h (struct script_language): New.
5871 (gdbpy_global_auto_load): Rename to ...
5872 (global_auto_load): ... here.
5873 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5874 (auto_load_local_gdbinit_loaded): New declarations.
5875 (maybe_add_script): New parameter language.
5876 (auto_load_objfile_script): Change parameter suffix to language.
5877 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5878 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5879 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5880 declarations.
5881 * linux-thread-db.c: Include auto-load.h and ctype.h.
5882 (auto_load_thread_db, show_auto_load_thread_db): New.
5883 (struct thread_db_info): New field filename.
5884 (delete_thread_db_info): Call xfree for FILENAME.
5885 (try_thread_db_load): Initialize FILENAME.
5886 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5887 if !AUTO_LOAD_THREAD_DB.
5888 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5889 (_initialize_thread_db): Install auto_load_thread_db
5890 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5891 as "info auto-load libthread-db".
5892 * main.c (captured_main): Rename gdbpy_global_auto_load to
5893 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5894 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5895 (print_gdb_help): Extend the help for 'local init file'.
5896 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5897 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5898 (auto_load_scripts): Rename to ...
5899 (auto_load_python_scripts): ... here, update the comment.
5900 (gdbpy_load_auto_script_for_objfile): New declaration.
5901 (show_auto_load_python_scripts, script_language_python)
5902 (gdbpy_load_auto_script_for_objfile): New.
5903 (source_section_scripts): Refactor the code.
5904 (load_auto_scripts_for_objfile): Rename to ...
5905 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5906 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5907 (info_auto_load_python_scripts): New.
5908 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5909 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5910 Register "set auto-load-scripts" as its deprecated alias. Register
5911 "info auto-load python-scripts". Register "info auto-load-scripts" as
5912 its deprecated alias.
5913 (load_auto_scripts_for_objfile): Rename to ...
5914 (gdbpy_load_auto_scripts_for_objfile): ... here.
5915 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5916 (gdbpy_load_auto_scripts_for_objfile): ... here.
5917
e2207b9a
JK
59182012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5919
5920 auto-load: Move files.
5921 * Makefile.in (SFILES): Add auto-load.c.
5922 (HFILES_NO_SRCDIR): Add auto-load.h.
5923 (COMMON_OBS): Add auto-load.o.
5924 (distclean): Change .gdbinit for gdb-gdb.gdb.
5925 * auto-load.c: New file, with parts from python/py-auto-load.c.
5926 * auto-load.h: New file, with parts from python/python.h.
5927 * configure: Regenerate.
5928 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5929 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5930 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5931 * main.c: Include auto-load.h.
5932 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5933 command.h, observer.h and progspace.h to auto-load.c. Add include
5934 auto-load.h.
5935 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5936 (struct loaded_script, auto_load_pspace_data)
5937 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5938 (hash_loaded_script_entry, eq_loaded_script_entry)
5939 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5940 (maybe_add_script): Move to auto-load.c.
5941 (source_section_scripts): Change maybe_add_script parameters passing,
5942 use script_not_found_warning_print.
5943 (clear_section_scripts, auto_load_objfile_script)
5944 (auto_load_new_objfile, loaded_script_ptr)
5945 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5946 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5947 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5948 auto_load_new_objfile and info_auto_load_scripts initizations to
5949 auto-load.c.
5950 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5951
e4ab2fad
JK
59522012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5953
5954 Code cleanup.
5955 * charset.c (find_charset_names): Remove variables ix and elt.
5956 Use free_char_ptr_vec.
5957 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5958 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5959 debugdir_end. New variable debugdir_len.
5960 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5961 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5962 declarations.
5963 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5964 and elt. Use free_char_ptr_vec.
5965 * source.c (add_path): Remove variables argv, arg and argv_index.
5966 New variables dir_vec, back_to, ix and name.
5967 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5968 make_cleanup_freeargv. Remove variable separator. Simplify the code
5969 no longer expecting DIRNAME_SEPARATOR.
5970 (openp): Remove variable p, p1 and len. New variables dir_vec,
5971 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5972 no longer expecting DIRNAME_SEPARATOR.
5973 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5974 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5975 debugdir_end.
5976 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5977 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5978 (dirnames_to_char_ptr_vec): New functions.
5979
5ee4ed9f
JK
59802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5981
5982 Code cleanup.
5983 * source.c (add_path): Remove always true conditional 'p == 0' and
5984 unindent its code block.
5985
f41f5e61
PA
59862012-04-17 Pedro Alves <palves@redhat.com>
5987
5988 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5989 (FIELD_BITPOS_LVAL): ... this.
5990 (FIELD_BITPOS): New.
5991 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5992 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5993 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5994 SET_FIELD_BITPOS.
5995 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5996 SET_FIELD_BITPOS.
5997 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5998 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5999 * target-descriptions.c (tdesc_gdb_type): Adjust to use
6000 SET_FIELD_BITPOS.
6001
945b3a32
JK
60022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
6003
6004 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
6005 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
6006 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
6007 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
6008 * jv-lang.c (java_link_class_type): Likewise, once.
6009 * stabsread.c (read_enum_type): Likewise.
6010
42476b70
YQ
60112012-04-16 Yao Qi <yao@codesourcery.com>
6012
6013 * common/agent.c (agent_run_command): Add one more parameter `len'.
6014 Update callers.
6015 * common/agent.h: Update declaration.
6016 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
6017 Update.
6018 (linux_child_static_tracepoint_markers_by_strid): Ditto.
6019
8264ba82
AG
60202012-04-14 Anton Gorenkov <xgsa@yandex.ru>
6021
6022 PR mi/13393
6023 * value.c (value_actual_type): New function.
6024 * value.h (value_actual_type): New declaration.
6025 * varobj.c (update_type_if_necessary): New function.
6026 (varobj_create): Call value_actual_type instead of
6027 value_type.
6028 (install_dynamic_child): distinct changed and type changed MI variable
6029 objects.
6030 (update_dynamic_varobj_children): Updated for install_dynamic_child
6031 change. All callers updated.
a09130f9 6032 (varobj_update): Support for MI variable object type change if
8264ba82
AG
6033 the value changed and RTTI is used to determine the type.
6034 (create_child_with_value): Call value_actual_type instead of
6035 value_type.
a09130f9 6036 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
6037 specify whether the given value should be casted to enclosing type.
6038 All callers updated.
6039
55a8c076
YQ
60402012-04-14 Yao Qi <yao@codesourcery.com>
6041
6042 Import gnulib module inttypes from git
6043 (250b80067c1e1d8faa0c42fb572f721975b929c5)
6044 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
6045 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
6046 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
6047 * aclocal.m4, config.in, configure: Regenerated.
6048 * gnulib/Makefile.am: Update.
6049 * gnulib/Makefile.in: Update.
6050 * gnulib/m4/gnulib-cache.m4: Update.
6051 * gnulib/m4/gnulib-comp.m4: Update.
6052 * gnulib/inttypes.in.h: New.
6053 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 6054 * gnulib/m4/inttypes.m4: New.
55a8c076 6055
ca7781d2
LM
60562012-04-13 Luis Machado <lgustavo@codesourcery.com>
6057
6058 * infrun.c (resume): Update PC address to the real PC after
6059 preparing to do displaced stepping.
6060
e319fa28
DE
60612012-04-12 Doug Evans <dje@google.com>
6062
6063 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
6064 All callers updated.
6065
15add3f5
MK
60662012-04-12 Mark Kettenis <kettenis@gnu.org>
6067
6068 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
6069
52dc124a
DE
60702012-04-12 Doug Evans <dje@google.com>
6071
0e50663e
DE
6072 * dwarf2read.c (create_all_type_units): Renamed from
6073 create_debug_types_hash_table. All callers updated.
6074
52dc124a
DE
6075 * dwarf2read.c (create_signatured_type_table_from_index): Rename
6076 local type_sig to sig_type, type_offset to type_offset_in_tu.
6077 (hash_signatured_type): Renamed from hash_type_signature,
6078 all callers updated.
6079 (eq_signatured_type): Renamed from eq_type_signature,
6080 all callers updated.
6081 (create_debug_types_hash_table): Rename local type_sig to sig_type.
6082 (process_enumeration_scope): Ditto.
6083 (lookup_signatured_type_at_offset): Ditto.
6084 (load_full_type_unit, read_signatured_type): Ditto.
6085
248fd3bf
YQ
60862012-04-12 Yao Qi <yao@codesourcery.com>
6087
6088 * remote.c (async_remote_interrupt): Correct function name in
6089 debug message.
6090 (async_remote_interrupt_twice): Ditto.
6091
bc3aa6c3
DE
60922012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
6093
6094 * source.c (find_and_open_source): Consistently pass resulting
6095 full path through xfullpath.
6096
9e529e1d
JK
60972012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6098
6099 Provide more specific displaced-stepping memory error message.
6100 * infrun.c (displaced_step_prepare): New variable status. Call
6101 target_read_memory instead of read_memory, provide more specific
6102 error message.
6103
82e0cec1
TG
61042012-04-11 Tristan Gingold <gingold@adacore.com>
6105
6106 PR gdb/13901
6107 * darwin-nat.c (darwin_execvp): Revert previous patch.
6108
d987a266
TG
61092012-04-11 Tristan Gingold <gingold@adacore.com>
6110
6111 PR gdb/13901
6112 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
6113 in case of change.
6114
016b7430
TG
61152012-04-11 Tristan Gingold <gingold@adacore.com>
6116
6117 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6118 warning.
6119
06fc020f
SCR
61202012-04-11 Siva Chandra Reddy <sivachandra@google.com>
6121
6122 New command 'explore' which helps explore values and types in
6123 scope.
6124 * NEWS: Add an entry about the new 'explore' command.
6125 * data-directory/Makefile.in: Add gdb/command/explore.py
6126 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 6127 command using the GDB Python API.
06fc020f 6128
de0919f8 61292012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
6130
6131 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
6132 extension in jump target calculation.
6133
de0919f8 61342012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
6135
6136 * mips-tdep.c (mips32_next_pc): Handle JALX.
6137
2f26ef89
YQ
61382012-04-10 Yao Qi <yao@codesourcery.com>
6139
6140 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
6141
2e505b66
YQ
61422012-04-10 Yao Qi <yao@codesourcery.com>
6143
6144 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
6145 and gnulib/m4/gnulib-tool.m4.
6146
0d99eb77
DE
61472012-04-10 Doug Evans <dje@google.com>
6148
6149 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
6150 (load_partial_dies): Clarify comment.
6151 (find_partial_die): Support rereading type units.
6152 Clarify CU handling, if we know offset is in CU, don't search for the
6153 containing CU. Add comment regarding memory waste.
6154
9a82b8ff
L
61552012-04-10 H.J. Lu <hongjiu.lu@intel.com>
6156
6157 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
6158 i386/x32-avx and i386/x32-avx-linux.
6159 (i386/x32-expedite): New.
6160 (i386/x32-linux-expedite): Likewise.
6161 (i386/x32-avx-expedite): Likewise.
6162 (i386/x32-avx-linux-expedite): Likewise.
6163 ($(outdir)/i386/x32.dat): Likewise.
6164 ($(outdir)/i386/x32-linux.dat): Likewise.
6165 ($(outdir)/i386/x32-avx.dat): Likewise.
6166 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
6167
6168 * features/i386/x32-avx-linux.xml: New file.
6169 * features/i386/x32-avx.xml: Likewise.
6170 * features/i386/x32-core.xml: Likewise.
6171 * features/i386/x32-linux.xml: Likewise.
6172 * features/i386/x32.xml: Likewise.
6173
6174 * features/i386/x32-avx-linux.c: New. Generated.
6175 * features/i386/x32-avx.c: Likewise.
6176 * features/i386/x32-linux.c: Likewise.
6177 * features/i386/x32.c: Likewise.
6178 * regformats/i386/x32-avx-linux.dat: Likewise.
6179 * regformats/i386/x32-avx.dat: Likewise.
6180 * regformats/i386/x32-linux.dat: Likewise.
6181 * regformats/i386/x32.dat: Likewise.
6182
ee41036f
TG
61832012-04-10 Tristan Gingold <gingold@adacore.com>
6184
6185 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6186 code to kill the inferior.
6187
a7aa5b8a
MK
61882012-04-09 Mark Kettenis <kettenis@gnu.org>
6189
6190 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6191 defines.
6192 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6193 defines.
a09130f9 6194 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6195 (yyvsp): New defines.
6196 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6197 defines.
6198 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6199 defines.
6200 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6201 defines.
6202 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6203 defines.
6204 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6205 defines.
6206
fb57d452
MK
62072012-04-09 Mark Kettenis <kettenis@gnu.org>
6208
a09130f9 6209 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6210 (sparc64_store_arguments): Fix coding style.
6211
cdc7b32f
MK
62122012-04-07 Mark Kettenis <kettenis@gnu.org>
6213
6214 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6215 complex floats, adjust some related comments and tighten a related
6216 assertion.
6217 (sparc64_extract_return_value): Handle complex floats.
6218
7adf1e79
DE
62192012-04-07 Doug Evans <dje@google.com>
6220
6221 * dwarf2read.c (load_partial_dies): Change condition to assert.
6222
50f1ae7b
DE
62232012-04-06 Doug Evans <dje@google.com>
6224
6225 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6226 "mov %rsp,%rbp".
6227
55fa75c3
KB
62282012-04-05 Kevin Buettner <kevinb@redhat.com>
6229
6230 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6231 fencepost error.
6232 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6233 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6234 architecture.
6235
40e084e1
KS
62362012-04-05 Keith Seitz <keiths@redhat.com>
6237
6238 * linespec.c (decode_compound): Remove.
6239 (enum offset_relative_sign): New enum.
6240 (struct line_offset): New struct.
6241 (struct linespec): New struct.
6242 (struct linespec_state): Move file_symtabs,
6243 user_filename, and user_function into struct linespec.
6244 Make result an anonymous struct holding vectors of
6245 symbolp and minsym_and_objfile_d.
6246 Add language member.
6247 (enum ls_token_type): New enum.
6248 (linespec_keywords): New array.
6249 (struct ls_token): New struct.
6250 (struct ls_parser): New struct.
6251 (linespec_lexer_lex_number): New function.
6252 (linespec_lexer_lex_keyword): New function.
6253 (is_ada_operator): New function.
6254 (skip_quote_char): New function.
6255 (copy_token_string): New function.
6256 (is_closing_quote_enclosed): New function.
6257 (find_parameter_list_end): New function.
6258 (linespec_lexer_lex_string): New function.
6259 (linespec_lexer_lex_one): New function.
6260 (linespec_lexer_consume_token): New function.
6261 (linespec_lexer_peek_token): New function.
6262 (cplusplus_error): Remove unused function.
6263 (find_methods): Update comment.
6264 (find_toplevel_char): Return const.
6265 (is_objc_method_format): Remove unused function.
6266 (find_toplevel_string): New function.
6267 (is_linespec_boundary): Remove.
6268 (symbol_not_found_error): New function.
6269 (find_method_overload_end): Remove function.
6270 (unexpected_linespec_error): New function.
6271 (keep_name_info): Remove.
6272 (linespec_parse_line_offset): New function.
6273 (linespec_parse_basic): New function.
6274 (canonicalize_linespec): New function.
6275 (decode_line_internal): Remove.
6276 (create_sals_line_offset): New function adapted from
6277 decode_all_digits.
6278 (convert_linespec_to_sals): New function.
6279 (parse_linespec): New function.
6280 (linespec_parser_new): New function.
6281 (linespec_state_destructor): Change parameter type to
6282 struct linespec_state *.
6283 Add language parameter.
6284 Remove freeing of moved members.
6285 (linespec_parser_delete): New function.
6286 (decode_line_full): Use parse_linespec and linespec_parser_new.
6287 (decode_line_1): Likewise.
6288 (decode_indirect): Rename to ...
6289 (linespec_expression_to_pc): ... this and rewrite
6290 to simply find CORE_ADDR, storing this result for later
6291 conversion to SALs.
6292 (locate_first_half): Remove.
6293 (deocde_objc): Add parameter LS.
6294 Initialize new struct collect_info members.
6295 Handle minimal symbols, too.
6296 (decode_compound): Delete.
6297 (lookup_prefix_sym): Rewrite.
6298 (compare_msymbols): New function.
6299 (find_method): Rewrite.
6300 Do not call cplusplus_error.
6301 (symtabs_from_filename): Rewrite.
6302 (collect_function_symbols): Delete.
6303 (find_function_symbols): Rewrite without ARGPTR-style
6304 processing.
6305 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6306 (decode_dollar): Adapted and renamed to ...
6307 (linespec_parse_variable): ... this.
6308 (find_linespec_symbols): New function.
6309 (decode_label): Adapted and renamed to ...
6310 (find_label_symbols): ... this.
6311 (decode_digits_list_mode): Add and use LS argument.
6312 (decode_digits_ordinary): Likewise.
6313 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6314 If in list mode, allow any symbol class. Otherwise, only
6315 permit LOC_BLOCK symbols.
6316 (minsym_found): Update comments.
6317 (search_minsyms_for_name): Do not convert the matching symbol
6318 into a SAL. Simply push the symbol and objfile into the
6319 result vector.
6320 (decode_variable): Delete. Contents adapted into
6321 find_linespec_symbols.
6322
6323 * cp-support.c (SKIP_SPACE): Remove.
6324 (operator_tokens): Remove unused global.
6325 (cp_validate_operator): Remove.
6326 * cp-support.h (cp_validate_operator): Remove declaration.
6327
a72c8f6a
JK
63282012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6329
6330 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6331 for TYPE_VPTR_FIELDNO.
6332 * valprint.c (valprint_check_validity): Make it global, move the
6333 function comment ...
6334 * value.h (valprint_check_validity): ... to this new declaration.
6335
cf9bb588
TG
63362012-04-02 Tristan Gingold <gingold@adacore.com>
6337
6338 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6339 the STATE32 api for i386 state.
6340 (i386_darwin_store_inferior_registers): Likewise.
6341
17092398
TG
63422012-04-02 Tristan Gingold <gingold@adacore.com>
6343
6344 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6345 SS offset.
6346 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6347 format_string.
6348
ece0061f
TG
63492012-04-02 Tristan Gingold <gingold@adacore.com>
6350
6351 PR gdb/13901
d987a266 6352 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6353
cf65ecd3
JK
63542012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6355
6356 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6357
9bc3523d
TT
63582012-03-30 Tom Tromey <tromey@redhat.com>
6359
6360 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6361 of TRY_CATCH. Fix error handling.
6362 * python/py-value.c (convert_value_from_python): Move 'old'
6363 declaration to innermost scope.
6364
b1ed564a
JB
63652012-03-29 Joel Brobecker <brobecker@adacore.com>
6366 Andrey Smirnov <andrew.smirnov@gmail.com>
6367
6368 -Wshadow warning fix.
6369 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6370 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6371 Adjust code accordingly.
6372
cb8e9b97
JB
63732012-03-29 Joel Brobecker <brobecker@adacore.com>
6374
6375 * ada-lang.c (symbol_completion_add): Rename parameter
6376 "encoded" into "encoded_p". Ajust code and documentation
6377 accordingly.
6378
c0af1706
JB
63792012-03-29 Joel Brobecker <brobecker@adacore.com>
6380 Andrey Smirnov <andrew.smirnov@gmail.com>
6381
6382 -Wshadow warning fix.
6383 * ada-lang.c (symbol_completion_add): Rename parameter
6384 "wild_match" into wild_match_p. Update code and documentation
6385 accordingly.
6386
6ea35997
JB
63872012-03-29 Joel Brobecker <brobecker@adacore.com>
6388
6389 * ada-lang.c (symbol_completion_match): Rename parameter
6390 "encoded" into "encoded_p". Ajust code and documentation
6391 accordingly.
6392
e701b3c0
JB
63932012-03-29 Joel Brobecker <brobecker@adacore.com>
6394 Andrey Smirnov <andrew.smirnov@gmail.com>
6395
6396 -Wshadow warning fix.
6397 * ada-lang.c (symbol_completion_match): Rename parameter
6398 "wild_match" into "wild_match_p". Adjust code and function
6399 documentation accordingly.
6400
5e2336be
JB
64012012-03-29 Joel Brobecker <brobecker@adacore.com>
6402 Andrey Smirnov <andrew.smirnov@gmail.com>
6403
6404 -Wshadow warning fix.
6405 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6406 "symbol_info" into "info". Adjust code accordingly.
6407 (ada_lookup_symbol): Likewise.
6408
9f88c959
JB
64092012-03-29 Joel Brobecker <brobecker@adacore.com>
6410
6411 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6412 of this function's documentation.
6413
82ccd55e
JB
64142012-03-29 Joel Brobecker <brobecker@adacore.com>
6415 Andrey Smirnov <andrew.smirnov@gmail.com>
6416
6417 -Wshadow warning fix.
6418 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6419 variable into "wild_match_p". Adjust code accordingly.
6420
d0a8ab18
JB
64212012-03-29 Joel Brobecker <brobecker@adacore.com>
6422 Andrey Smirnov <andrew.smirnov@gmail.com>
6423
6424 -Wshadow warning fix.
6425 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6426 parameter into "wild_match_p". Adjust code accordingly.
6427 Document this parameter in the function description.
6428
48b78332
JB
64292012-03-29 Joel Brobecker <brobecker@adacore.com>
6430 Andrey Smirnov <andrew.smirnov@gmail.com>
6431
6432 -Wshadow warning fix.
6433 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6434 "wild_match" parameter to "wild_match_p" (-Wshadow).
6435
2e6e0353
JB
64362012-03-29 Joel Brobecker <brobecker@adacore.com>
6437
6438 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6439 in function documentation.
6440
dc4024cd
JB
64412012-03-29 Joel Brobecker <brobecker@adacore.com>
6442 Andrey Smirnov <andrew.smirnov@gmail.com>
6443
6444 -Wshadow warning fix.
6445 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6446 variable into wild_match_p. Adjust code accordingly.
6447
6c88661c
JB
64482012-03-29 Joel Brobecker <brobecker@adacore.com>
6449 Andrey Smirnov <andrew.smirnov@gmail.com>
6450
6451 * ada-valprint.c (ada_val_print_1): Move the code handling
6452 TYPE_CODE_ENUM inside its own lexical block. Declare
6453 variables len and val there, instead of in the function's
6454 top level block. Avoid declaring deref_val again in a way
6455 that shadows another variable of the same name declared
6456 in one of the up-level blocks. Just re-use the up-level
6457 variable instead.
6458
4e5c77fe
JB
64592012-03-29 Joel Brobecker <brobecker@adacore.com>
6460
6461 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6462 Replace block_found argument by symbol_info. Adjust
6463 implementation accordingly. Add function documentation.
6464 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6465 Fix documentation.
6466 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6467 * ada-exp.y (write_object_renaming): Adjust to new
6468 ada_lookup_encoded_symbol API.
6469
1c0ac8c7
JB
64702012-03-29 Joel Brobecker <brobecker@adacore.com>
6471
6472 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6473 documentation.
6474
2aaed979
KB
64752012-03-28 Rathish C <rathish.c@kpitcummins.com>
6476
6477 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6478 (v850_register_name): Add the mpu and fpu register names.
6479 (v850e_register_name): Add the mpu and fpu register names.
6480 (v850e2_register_name): New function.
a09130f9 6481 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6482 bfd_mach_v850e2v3.
6483
927fbba6
JB
64842012-03-28 Joel Brobecker <brobecker@adacore.com>
6485
6486 * NEWS: Add entry for Ada varobj support.
6487
d32cafc7
JB
64882012-03-28 Joel Brobecker <brobecker@adacore.com>
6489
6490 * varobj.c (default_value_is_changeable_p): New function,
6491 extracted from varobj_value_is_changeable_p. Add declaration.
6492 (ada_value_is_changeable_p): New function, extracted from
6493 varobj_value_is_changeable_p. Add declaration.
6494 (struct language_specific): New field "value_is_changeable_p".
6495 (languages): Add entries for new field.
6496 (varobj_create): Set language before calling install_new_value.
6497 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6498 "value_is_changeable_p" language callback.
6499
181875a4
JB
65002012-03-28 Joel Brobecker <brobecker@adacore.com>
6501
6502 * ada-varobj.h, ada-varobj.c: New files.
6503 * Makefile.in (SFILES): Add ada-varobj.c.
6504 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6505 (COMMON_OBS): Add ada-varobj.o.
6506
7a290c40
JB
65072012-03-28 Joel Brobecker <brobecker@adacore.com>
6508
6509 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6510 (struct language_specific): New field "value_has_mutated".
6511 (languages): Set field "value_has_mutated" in each entry of array.
6512 (varobj_value_has_mutated): New function.
6513 (varobj_udpdate): Add handling of type mutation.
6514 (value_of_root): Add handling of type mutation.
6515 (ada_value_has_mutated): New function.
6516
ca9b8b9c
PA
65172012-03-28 Pedro Alves <palves@redhat.com>
6518
6519 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6520 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6521
cc0265cd
TT
65222012-03-28 Tom Tromey <tromey@redhat.com>
6523
6524 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6525 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6526 before returning.
6527
3ad2ec6f
TT
65282012-03-28 Tom Tromey <tromey@redhat.com>
6529
6530 * .dir-locals.el: New file.
6531
4a6510ba
PA
65322012-03-28 Pedro Alves <palves@redhat.com>
6533
6534 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6535
5a75128f
JB
65362012-03-28 Joel Brobecker <brobecker@adacore.com>
6537
6538 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6539 handling for r0.
6540
f99d8bf4
PA
65412012-03-27 Pedro Alves <palves@redhat.com>
6542
6543 Eliminate struct ui_stream.
6544
6545 * ui-out.h (struct ui_stream): Delete.
6546 (ui_out_field_stream): Adjust prototype.
6547 (ui_out_stream_new, ui_out_stream_delete)
6548 (make_cleanup_ui_out_stream_delete): Delete declarations.
6549 * ui-out.c (ui_out_field_stream): Change prototype to take a
6550 ui_file instead of a ui_stream. Adjust.
6551 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6552 (make_cleanup_ui_out_stream_delete): Delete.
6553 * breakpoint.c (print_breakpoint_location)
6554 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6555 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6556 * disasm.c (dump_insns): Ditto.
6557 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6558 prototype.
6559 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6560 ui_stream/ui_out_stream_new.
6561 * infcmd.c (print_return_value): Ditto.
6562 * osdata.c (info_osdata_command): Don't allocate a local
6563 ui_stream.
6564 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6565 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6566 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6567 allocate a local ui_stream.
6568 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6569 instead of ui_stream/ui_out_stream_new.
6570 (list_args_or_locals): Don't allocate a local ui_stream.
6571 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6572 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6573 ui_stream/ui_out_stream_new.
6574 * cli/cli-setshow.c (do_setshow_command): Ditto.
6575
6350a066 65762012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 6577
6350a066
PA
6578 * arm-linux-tdep.c (arm_linux_init_abi): Call
6579 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6580 * arm-tdep.c (arm_process_record): New function.
6581 (deallocate_reg_mem): New function.
6582 (decode_insn): New function.
6583 (thumb_record_branch): New function.
6584 (thumb_record_ldm_stm_swi(): New function.
6585 (thumb_record_misc): New function.
6586 (thumb_record_ld_st_stack): New function.
6587 (thumb_record_ld_st_imm_offset): New function.
6588 (thumb_record_ld_st_reg_offset(): New function.
6589 (thumb_record_add_sub_cmp_mov): New function.
6590 (thumb_record_shift_add_sub): New function.
6591 (arm_record_coproc_data_proc): New function.
6592 (arm_record_coproc): New function.
6593 (arm_record_b_bl): New function.
6594 (arm_record_ld_st_multiple): New function.
6595 (arm_record_ld_st_reg_offset): New function.
6596 (arm_record_ld_st_imm_offset): New function.
6597 (arm_record_data_proc_imm): New function.
6598 (arm_record_data_proc_misc_ld_str): New function.
6599 (arm_record_extension_space): New function.
6600 (arm_record_strx): New function.
6601 (sbo_sbz): New function.
6602 (struct insn_decode_record): New structure for arm insn record.
6603 (REG_ALLOC): New macro for reg allocations.
6604 (MEM_ALLOC): New macro for memory allocations.
6605 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 6606
89e028e2
AS
66072012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6608
6609 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6610 (store_register): Likewise.
6611
6350a066 66122012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 6613
6350a066 6614 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 6615
5b43fab2
JK
66162012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6617
6618 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6619 Describe also the option "auto".
6620
b5453b95
RH
66212012-03-22 Richard Henderson <rth@redhat.com>
6622
6623 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6624 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6625
227ee7fc
RH
66262012-03-22 Richard Henderson <rth@redhat.com>
6627
6628 * jit.c (jit_read_code_entry): Compute alignment and offset of
6629 int64_t member before computing entry_size.
6630
7b282c5a
SCR
66312012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6632
6633 Python scripting: Add new method Value.referenced_value to
6634 gdb.Value which can dereference pointer as well as reference
6635 values.
6636 * NEWS: Add entry under 'Python scripting' about the new method
6637 Value.referenced_value on gdb.Value objects.
6638 * python/py-value.c (valpy_referenced_value): New function
6639 defining a new method on gdb.Value objects which can dereference
6640 pointer and reference values.
6641
0c83539f
SCR
66422012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6643
6644 * MAINTAINERS (Write After Approval): Add myself to the list.
6645
7ccffd7c
KB
66462012-03-21 Kevin Buettner <kevinb@redhat.com>
6647
6648 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6649 in addition to "main".
6650
bd0b9f9e
JB
66512012-03-21 Joel Brobecker <brobecker@adacore.com>
6652
6653 * expression.h (op_name): Add declaration.
6654 * expprint.c (op_name): Remove declaration. Make non-static.
6655 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6656
a5362b9a
TS
66572012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6658
6659 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6660 of struct siginfo.
6661 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6662 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6663 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6664 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6665 (linux_nat_get_siginfo): Likewise.
6666 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6667 (linux_nat_get_siginfo): Likewise.
6668 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6669 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6670 * procfs.c (gdb_siginfo_t): Likewise.
6671
adcadaab
MF
66722012-03-21 Mike Frysinger <vapier@gentoo.org>
6673
6674 * .gitignore: Ignore more files.
6675
e278ad5b
PA
66762012-03-20 Pedro Alves <palves@redhat.com>
6677
6678 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6679 returns.
6680
741e63d7
YQ
66812012-03-20 Yao Qi <yao@codesourcery.com>
6682
6683 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6684 comment.
6685
b64f50a1
JK
66862012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6687
6688 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6689 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6690 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6691 sect_offset.
6692 * dwarf2expr.h (cu_offset, sect_offset): New types.
6693 (struct dwarf_expr_context_funcs) <dwarf_call>
6694 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6695 sect_offset.
6696 (struct dwarf_expr_context) <len>: Improve the comment.
6697 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6698 cu_offset and sect_offset.
6699 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6700 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6701 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6702 * dwarf2loc.h: Include dwarf2expr.h.
6703 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6704 and sect_offset.
6705 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6706 Improve the comment.
6707 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6708 (struct signatured_type, struct line_header, struct partial_die_info)
6709 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6710 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6711 (get_die_type_at_offset, create_cus_from_index)
6712 (create_signatured_type_table_from_index, dw2_get_file_names)
6713 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6714 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6715 (create_debug_types_hash_table, process_psymtab_comp_unit)
6716 (load_partial_comp_unit, create_all_comp_units)
6717 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6718 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6719 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6720 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6721 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6722 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6723 (find_partial_die, read_attribute_value, lookup_die_type)
6724 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6725 (is_ref_attr): New function comment.
6726 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6727 Use cu_offset and sect_offset.
6728 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6729 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6730 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6731 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6732 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6733 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6734 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6735 sect_offset.
6736
e97a38f7
JK
67372012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6738
6739 Code cleanup.
6740 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6741 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6742 with xfree.
6743 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6744
8320cc4f
JK
67452012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6746
6747 * NEWS: Describe new options --init-command=FILE, -ix and
6748 --init-eval-command=COMMAND, -iex.
6749 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6750 CMDARG_INIT_COMMAND.
6751 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6752 "init-command", "init-eval-command", "ix" and "iex" to the variable
6753 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6754 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6755 (print_gdb_help): Describe --init-command=FILE, -ix and
6756 --init-eval-command=COMMAND, -iex.
6757
26743505
JK
67582012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6759
6760 Code cleanup.
6761 * main.c (struct cmdarg): Move it here from main. Add more comments.
6762 (cmdarg_s, VEC (cmdarg_s)): New.
6763 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6764 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6765 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6766 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6767 of CMDARG.
6768
5ff5c7b4
TT
67692012-03-19 Tom Tromey <tromey@redhat.com>
6770
6771 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6772
ab260dad
JK
67732012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6774
6775 PR symtab/13777
6776 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6777 GCC >=4.5.
6778
c366c1f0
TT
67792012-03-16 Chris January <chris.january@allinea.com>
6780
6781 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6782 of clear.
6783
e16edb45
TT
67842012-03-16 Chris January <chris.january@allinea.com>
6785
6786 * source.c (add_path): Use memmove instead of strcpy because the
6787 strings overlap.
6788
53ba8333
JB
67892012-03-16 Joel Brobecker <brobecker@adacore.com>
6790
6791 * value.h (set_value_parent): Add declaration.
6792 * value.c (set_value_parent): New function.
6793 (value_address): If VALUE->PARENT is not NULL, then use it as
6794 the base address instead of VALUE->LOCATION.address.
6795 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6796 the same as OBJ's address. Adjust V's offset accordingly.
6797 Set V's parent.
6798
481860b3
GB
67992012-03-16 Gary Benson <gbenson@redhat.com>
6800
6801 PR breakpoints/10738
6802 * dwarf2read.c (use_deprecated_index_sections): New global.
6803 (struct partial_die_info): New member may_be_inlined.
6804 (read_partial_die): Set may_be_inlined where appropriate.
6805 (add_partial_subprogram): Add partial symbols for partial
6806 DIEs that may be inlined.
6807 (new_symbol_full): Add inlined subroutines to the current
6808 scope.
6809 (write_psymtabs_to_index): Bump version number.
6810 (dwarf2_read_index): Read only version 6 indices unless
6811 use_deprecated_index_sections is set.
6812 * linespec.c (symbol_and_data_callback): New structure.
6813 (iterate_inline_only): New function.
6814 (iterate_over_all_matching_symtabs): New argument
6815 "include_inline". If nonzero, also call the callback for
6816 symbols representing inlined subroutines.
6817 (lookup_prefix_sym): Pass extra argument to the above.
6818 (find_function_symbols): Likewise.
6819 (add_matching_symbols_to_info): Likewise.
6820 * NEWS: Mention that GDB can now set breakpoints on inlined
6821 functions.
6822
d0e7e15a
PM
68232012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6824
6825 * p-typeprint.c (pascal_type_print_method_args):
6826 Fix display of parameter of methods.
6827
3d354654
PM
68282012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6829
6830 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6831 Add missing prototype.
6832
cafe75b0
JK
68332012-03-16 Yao Qi <yao@codesourcery.com>
6834 Jan Kratochvil <jan.kratochvil@redhat.com>
6835
6836 Fix false compilation warning.
6837 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6838
25f8c692
JL
68392012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6840 Pedro Alves <pedro@codesourcery.com>
6841
6842 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6843 (arm_register_g_packet_guesses): New function.
6844 (arm_gdbarch_init): Don't force a target description with
6845 registers when the executable is detected as M-profile. Instead
6846 set gdbarch->tdep->is_m. Register `g' packet guesses.
6847 (_initialize_arm_tdep): Initialize the new target description.
6848 * features/arm-with-m-fpa-layout.xml: New description.
6849 * features/arm-with-m-fpa-layout.c: New, generated.
6850
35c63cd8
JB
68512012-03-15 Joel Brobecker <brobecker@adacore.com>
6852
6853 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6854 Update function description.
6855 (insert_bp_location): Do not wipe bl->target_info out.
6856 * mem-break.c: #include "gdb_string.h".
6857 (default_memory_insert_breakpoint): Do not call target_read_memory
6858 with a pointer to the breakpoint's shadow_contents buffer. Use
6859 a local buffer instead.
6860 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6861
57651221
TT
68622012-03-15 Tom Tromey <tromey@redhat.com>
6863
6864 * NEWS: Mention "info vtbl", not "info vtable".
6865 * cp-support.c (info_vtbl_command): Fix comment.
6866 (_initialize_cp_support): Fix text.
6867
410528f0
TT
68682012-03-15 Tom Tromey <tromey@redhat.com>
6869
6870 * cp-valprint.c (cp_print_value_fields): Use
6871 print_function_pointer_address for vtable slot.
6872
c4aeac85
TT
68732012-03-15 Tom Tromey <tromey@redhat.com>
6874
6875 * gnu-v3-abi.c (struct value_and_voffset): New.
6876 (hash_value_and_voffset, eq_value_and_voffset)
6877 (compare_value_and_voffset, compute_vtable_size)
6878 (print_one_vtable, gnuv3_print_vtable): New functions.
6879 (init_gnuv3_ops): Initialize 'print_vtable' field.
6880 * cp-support.c (info_vtbl_command): New function.
6881 (_initialize_cp_support): Add "info vtbl".
6882 * cp-abi.h (cplus_print_vtable): Declare.
6883 (struct cp_abi_ops) <print_vtable>: New field.
6884 * cp-abi.c (cplus_print_vtable): New function.
6885 * NEWS: Update.
6886
95cbceff
TT
68872012-03-15 Tom Tromey <tromey@redhat.com>
6888
6889 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6890 iterate_over_symbols.
6891
589b4a32
DE
68922012-03-14 Doug Evans <dje@google.com>
6893
6894 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6895 DW_OP_GNU_parameter_ref.
6896
e837f12a
JK
68972012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6898
6899 Fix double prompt of 'interpreter-exec mi'.
6900 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6901 (mi_interpreter_resume): use it.
6902 (mi_execute_command_input_handler): New function.
6903 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6904 mi_execute_command_input_handler.
6905
ff1e4526 69062012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
6907
6908 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6909 prototype.
6910 (darwin_debug_port_info): Make static.
6911 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6912 * machoread.c (_initialize_machoread): Add prototype.
6913 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6914 (i386_darwin_set_control, i386_darwin_get_control)
6915 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6916 i386_darwin_get_status, i386_darwin_get_control):
6917 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6918
d8a5d6ee
JB
69192012-03-13 Joel Brobecker <brobecker@adacore.com>
6920
6921 * ax-gdb.c (gen_usual_unary): Remove special handling of
6922 enum and bool types.
6923
af381b8c
JB
69242012-03-13 Joel Brobecker <brobecker@adacore.com>
6925
6926 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6927
786c562f
JB
69282012-03-13 Joel Brobecker <brobecker@adacore.com>
6929
6930 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6931
e3ebf1bb
JB
69322012-03-13 Chris January <chris.january@allinea.com>
6933
6934 * aix-thread.c (fill_sprs): Store the floating point registers
6935 at the correct offsets into vals.
6936
c5b7e1cb
DE
69372012-03-13 Doug Evans <dje@google.com>
6938
16899756
DE
6939 * NEWS: Mention symbol-reloading has been deleted.
6940 * symfile.c (symbol_reloading): Delete.
6941 (show_symbol_reloading): Delete.
6942 (_initialize_symfile): Delete set/show symbol-reloading.
6943
c5b7e1cb
DE
6944 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6945 read_in_chain until we have successfully read it in.
6946 (load_full_comp_unit): Ditto.
6947 (read_signatured_type): Add comment.
6948
46cb6474
JB
69492012-03-13 Chris January <chris.january@allinea.com>
6950
6951 * stabsread.c (fix_common_block): Change type of valu argument
6952 to CORE_ADDR.
6953
76219d77
JB
69542012-03-13 Chris January <chris.january@allinea.com>
6955
6956 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6957 instruction.
6958
87b0bb13
JK
69592012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6960
6961 * common/linux-procfs.c (linux_proc_get_int): New, from
6962 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6963 field.
6964 (linux_proc_get_tgid): Only call linux_proc_get_int.
6965 (linux_proc_get_tracerpid): New.
6966 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6967 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6968 linux_proc_pid_has_state.
6969 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6970 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6971 (linux_ptrace_attach_warnings): New.
6972 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6973 New declaration.
6974 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6975 (linux_nat_attach): New variables ex, buffer, message and message_s.
6976 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6977
5f572dec
JK
69782012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6979
6980 * Makefile.in (linux-ptrace.o): New.
6981 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6982 from linux-nat.c.
6983 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6984 * common/linux-ptrace.c: New file.
6985 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6986 * config/arm/linux.mh: Likewise.
6987 * config/i386/linux.mh: Likewise.
6988 * config/i386/linux64.mh: Likewise.
6989 * config/ia64/linux.mh: Likewise.
6990 * config/m32r/linux.mh: Likewise.
6991 * config/m68k/linux.mh: Likewise.
6992 * config/mips/linux.mh: Likewise.
6993 * config/pa/linux.mh: Likewise.
6994 * config/powerpc/linux.mh: Likewise.
6995 * config/powerpc/ppc64-linux.mh: Likewise.
6996 * config/powerpc/spu-linux.mh: Likewise.
6997 * config/s390/s390.mh: Likewise.
6998 * config/sparc/linux.mh: Likewise.
6999 * config/sparc/linux64.mh: Likewise.
7000 * config/xtensa/linux.mh: Likewise.
7001 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
7002 common/linux-procfs.c.
7003 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
7004
44f238bb
PA
70052012-03-13 Hui Zhu <teawater@gmail.com>
7006 Pedro Alves <palves@redhat.com>
7007
7008 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
7009 CREATE_BREAKPOINT_FLAGS_INSERTED.
7010 (create_breakpoint_sal, create_breakpoints_sal)
7011 (base_breakpoint_create_breakpoints_sal)
7012 (tracepoint_create_breakpoints_sal)
7013 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
7014 down.
7015 (break_command_1, handle_gnu_v3_exceptions, trace_command)
7016 (ftrace_command, strace_command): Adjust.
7017 (create_tracepoint_from_upload): Pass
7018 CREATE_BREAKPOINT_FLAGS_INSERTED.
7019 * breakpoint.h (enum breakpoint_create_flags): New.
7020 (create_breakpoint): New flags parameter.
7021 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
7022 * python/py-breakpoint.c (bppy_init): Adjust.
7023 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
7024 * spu-tdep.c (spu_catch_start): Adjust.
7025
1e51243a
PA
70262012-03-13 Pedro Alves <palves@redhat.com>
7027 Hui Zhu <teawater@gmail.com>
7028 Yao Qi <yao@codesourcery.com>
7029
7030 * remote.c (struct remote_state): New field `starting_up'.
7031 (remote_start_remote): Set and clear it.
7032 (remote_can_download_tracepoint): If starting up, return false.
7033
fa3064dd
YQ
70342012-03-13 Yao Qi <yao@codesourcery.com>
7035
7036 * inferior.h (struct inferior): Remove fields any_syscall_count,
7037 syscalls_counts and total_syscalls_count. Move them to new
7038 struct catch_syscall_inferior_data in breakpoint.c.
7039 * breakpoint.c: Call DEF_VEC_I(int).
7040 (struct catch_syscall_inferior_data): New.
7041 (get_catch_syscall_inferior_data): New.
7042 (catch_syscall_inferior_data_cleanup): New.
7043 (insert_catch_syscall): Update to access data in
7044 struct catch_syscall_inferior_data.
7045 (insert_catch_syscall): Likewise.
7046 (remove_catch_syscall): Likewise.
7047 (remove_catch_syscall): Likewise.
7048 (is_syscall_catchpoint_enabled): Likewise.
7049 (add_catch_command): Likewise.
7050 (_initialize_breakpoint): Register cleanup.
7051 * breakpoint.h: Removed DEF_VEC_I(int).
7052 * dwarf2loc.c: Call DEF_VEC_I(int).
7053 * mi/mi-main.c: Likewise.
7054
460fac3c
MK
70552012-03-12 Mark Kettenis <kettenis@gnu.org>
7056
7057 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
7058
e1aca11e
JB
70592012-03-12 Chris January <chris.january@allinea.com>
7060
7061 * aix-thread.c (_initialize_aix_thread): Add prototype.
7062 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
7063 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
7064
649c7061
JB
70652012-03-12 Joel Brobecker <brobecker@adacore.com>
7066
7067 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
7068 include of "amd64-nat.h".
7069
0b49e518
TT
70702012-03-12 Tom Tromey <tromey@redhat.com>
7071
7072 * buildsym.c (record_pending_block): Now static.
7073 * buildsym.h: (record_pending_block): Remove.
7074
fd24fa94
AT
70752012-03-12 Andreas Tobler <andreast@fgznet.ch>
7076
7077 * amd64bsd-nat.c: Include amd64bsd-nat.h.
7078
ba919b58
TT
70792012-03-09 Tom Tromey <tromey@redhat.com>
7080
7081 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
7082 producer_is_gxx_lt_4_6>: New fields.
7083 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
7084
a48e046c
TT
70852012-03-09 Tom Tromey <tromey@redhat.com>
7086
7087 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
7088
6f5e9362
JB
70892012-03-08 Joel Brobecker <brobecker@adacore.com>
7090
7091 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
7092 prototype.
7093
8d037db9
JB
70942012-03-08 Joel Brobecker <brobecker@adacore.com>
7095
7096 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
7097
4e841acf
JK
70982012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7099
7100 Fix -Wmissing-prototypes build.
7101 * arm-linux-nat.c (get_thread_id): Make it static.
7102 * xtensa-linux-nat.c (get_thread_id): Likewise.
7103
c6030312
JB
71042012-03-08 Joel Brobecker <brobecker@adacore.com>
7105
7106 * server.c (process_point_options): If a conditional expression
7107 is found, only print a message if remote_debug is nonzero.
7108
52323be9
LM
71092012-03-08 Luis Machado <lgustavo@codesourcery.com>
7110
7111 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
7112 of internal error for unknown/unsupported types.
7113
7fe25d9b
JK
71142012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7115
7116 Fix CU relative vs. absolute DIE offsets.
7117 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
7118 offset to offset_in_cu.
7119 * dwarf2read.c (process_enumeration_scope): Add CU offset to
7120 TYPE_OFFSET.
7121 (dwarf2_fetch_die_location_block): Rename parameter offset to
7122 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
7123
05e7c244
JK
71242012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7125
7126 * libunwind-frame.c: Rename to ...
7127 * ia64-libunwind-tdep.c: ... here.
7128 * libunwind-frame.h: Rename to ...
7129 * ia64-libunwind-tdep.h: ... here.
7130 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
7131 ia64-libunwind-tdep.h.
7132 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
7133 * README (--with-libunwind): Rename to ...
7134 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
7135 * config.in: Regenerate.
7136 * configure: Regenerate.
7137 * configure.ac: New option --with-libunwind-ia64, make the
7138 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
7139 Remove AC_DEFINE for HAVE_LIBUNWIND.
7140 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
7141 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
7142 Rename libunwind-frame in the general comment.
7143 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
7144 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
7145 Move forward declarations inside #ifndef. Rename libunwind-frame in
7146 the general comment.
7147 * ia64-tdep.c: Rename libunwind-frame.h #include to
7148 ia64-libunwind-tdep.h.
7149 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
7150 (ia64_libunwind_descr): Rename libunwind-frame to
7151 ia64-libunwind-tdep in these function comments.
7152 * ia64-tdep.h: Rename libunwind-frame.h #include to
7153 ia64-libunwind-tdep.h.
7154 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
7155 ia64-libunwind-tdep in that data comment.
7156
3755cbfd
JK
71572012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
7158
7159 * libunwind-frame.h (struct frame_unwind): New declaration.
7160
d1cda5d9
JB
71612012-03-08 Joel Brobecker <brobecker@adacore.com>
7162
7163 * breakpoint.c (_initialize_breakpoint): Fix error in help of
7164 "set breakpoint condition-evaluation" command.
7165
a0ba0aa2
TG
71662012-03-08 Tristan Gingold <gingold@adacore.com>
7167
7168 * sparc-stub.c: Move to stubs/
7169 * sh-stub.c: Likewise.
7170 * m68k-stub.c: Likewise.
7171 * m32r-stub.c: Likewise.
7172 * i386-stub.c: Likewise.
7173
7b8b6d6d
AS
71742012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7175
007cafee
AS
7176 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7177 linux_get_siginfo_type.
7178
7b8b6d6d
AS
7179 * m68klinux-nat.c: Include "gdb_proc_service.h".
7180 (PTRACE_GET_THREAD_AREA): Define.
7181 (ps_get_thread_area): New function.
7182
bba74b36
YQ
71832012-03-08 Yao Qi <yao@codesourcery.com>
7184
7185 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7186 `xsnprintf'.
7187 (remote_query_attached): Likewise.
7188 (remote_static_tracepoint_marker_at): Likewise.
7189 (remote_set_permissions): Likewise.
7190 (remote_detach_1, extended_remote_attach_1): Likewise.
7191 (send_g_packet, remote_vkill): Likewise.
7192 (extended_remote_disable_randomization): Likewise.
7193 (remote_add_target_side_condition): Likewise.
7194 (remote_insert_breakpoint): Likewise.
7195 (remote_remove_breakpoint): Likewise.
7196 (remote_insert_watchpoint): Likewise.
7197 (remote_remove_watchpoint): Likewise.
7198 (remote_insert_hw_breakpoint): Likewise.
7199 (remote_insert_hw_breakpoint): Likewise.
7200 (remote_remove_hw_breakpoint): Likewise.
7201 (remote_download_command_source): Likewise.
7202 (remote_download_tracepoint): Likewise.
7203 (remote_download_trace_state_variable): Likewise.
7204 (remote_disable_tracepoint): Likewise.
7205 (remote_trace_set_readonly_regions): Likewise.
7206 (remote_get_tracepoint_status): Likewise.
7207 (remote_trace_find): Likewise.
7208 (remote_get_trace_state_variable_value): Likewise.
7209 (remote_set_disconnected_tracing): Likewise.
7210 (remote_set_circular_trace_buffer): Likewise.
7211 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7212 (remote_use_agent): Likewise.
7213 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7214 Update callers.
7215
9b224c5e
PA
72162012-03-07 Pedro Alves <palves@redhat.com>
7217
7218 * NEWS: Mention QProgramSignals.
7219 * inferior.h (update_signals_program_target): Declare.
7220 * infrun.c: (update_signals_program_target): New.
7221 (handle_command): Update the target of the new program signals
7222 array changes.
7223 * remote.c (PACKET_QProgramSignals): New enum.
7224 (last_program_signals_packet): New global.
7225 (remote_program_signals): New.
7226 (remote_start_remote): Update the target with the program signals
7227 list.
7228 (remote_protocol_features): Add entry for QPassSignals.
7229 (remote_open_1): Free anc clear last_program_signals_packet.
7230 (init_remote_ops): Install remote_program_signals.
7231 * target.c (update_current_target): Adjust.
7232 (target_program_signals): New.
7233 * target.h (struct target_ops) <to_program_signals>: New field.
7234 (target_program_signals): Declare.
7235
74c48cbb
PA
72362012-03-07 Pedro Alves <palves@redhat.com>
7237
7238 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7239 extensions.
7240
0c13fc49
AS
72412012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7242
7243 * m68klinux-nat.c (getregs_supplies): Make static.
7244 (getfpregs_supplies): Likewise.
7245 (have_ptrace_getregs): Likewise.
7246
1281d2a3
JB
72472012-03-06 Joel Brobecker <brobecker@adacore.com>
7248
7249 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7250 in call to get_die_type_at_offset.
7251
2b03b41d
SS
72522012-03-06 Stan Shebs <stan@codesourcery.com>
7253
7254 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7255 * mi/mi-cmd-disas.c: Ditto.
7256 * mi/mi-cmd-env.c: Ditto.
7257 * mi/mi-cmd-file.c: Ditto.
7258 * mi/mi-cmd-stack.c: Ditto.
7259 * mi/mi-cmd-target.c: Ditto.
7260 * mi/mi-cmd-var.c: Ditto.
7261 * mi/mi-cmds.c: Ditto.
7262 * mi/mi-cmds.h: Ditto.
7263 * mi/mi-console.c: Ditto.
7264 * mi/mi-getopt.c: Ditto.
7265 * mi/mi-getopt.h: Ditto.
7266 * mi/mi-interp.c: Ditto.
7267 * mi/mi-main.c: Ditto.
7268 * mi/mi-out.c: Ditto.
7269 * mi/mi-parse.c: Ditto.
7270 * mi/mi-parse.h: Ditto.
7271 * mi/mi-symbol-cmds.c: Ditto.
7272
7273 * mi/mi-getopt.h: Move mi_opt struct up.
7274 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7275 return.
7276 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7277
c988ad87
TT
72782012-03-06 Tom Tromey <tromey@redhat.com>
7279
7280 * proc-service.c (ps_pglobal_lookup): Set the current program
7281 space.
7282
1b7c1b10
PA
72832012-03-06 Pedro Alves <palves@redhat.com>
7284
7285 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7286
3c182069
JB
72872012-03-05 Joel Brobecker <brobecker@adacore.com>
7288
7289 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7290
2e794194
JK
72912012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7292
7293 Code cleanup.
7294 * common/linux-osdata.c (linux_common_core_of_thread): New function
7295 comment.
7296 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7297 call by linux_common_core_of_thread.
7298 (linux_nat_core_of_thread_1): Remove.
7299 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7300 * linux-thread-db.c: Include linux-osdata.h.
7301 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7302 linux_common_core_of_thread.
7303
9f9f1f31
TT
73042012-03-05 Tom Tromey <tromey@redhat.com>
7305
7306 * value.c (value_primitive_field): Don't fetch contents for
7307 non-virtual bases.
7308
b7b189f3
TT
73092012-03-05 Tom Tromey <tromey@redhat.com>
7310
7311 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7312
05b8a789 73132012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7314
5538f557
JB
7315 * s390-nat.c: Include "gregset.h".
7316
75528772
JK
73172012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7318
7319 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7320 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7321 (libunwind_load): New variable so_error, use it for dlerror. Try to
7322 load also LIBUNWIND_SO_7.
7323
275418ae
PA
73242012-03-05 Pedro Alves <palves@redhat.com>
7325
7326 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7327 is not NULL, and remove resulting dead code.
7328
5cbb9812
TS
73292012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7330
7331 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7332 prologue to sh_analyze_prologue.
7333 (sh_analyze_prologue): Make better use of such an upper limit, and
7334 generally be more cautious about accessing memory.
7335
541515ad
TT
73362012-03-05 Tom Tromey <tromey@redhat.com>
7337
7338 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7339 _initialize_ia64_hpux_tdep.
7340
b4d36fb8
PA
73412012-03-05 Pedro Alves <palves@redhat.com>
7342
24490249
PA
7343 PR gdb/13766
7344
b4d36fb8
PA
7345 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7346 the register state is clear, supply explicit zero, instead of
7347 marking the register unavailable.
7348
60c9a3c0
TG
73492012-03-05 Tristan Gingold <gingold@adacore.com>
7350
7351 * NEWS: Mention OpenVMS ia64 new target.
7352
696759ad
TG
73532012-03-05 Tristan Gingold <gingold@adacore.com>
7354
7355 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7356 (ia64_unw_accessors, ia64_unw_rse_accessors)
7357 (ia64_libunwind_descr): Declare.
7358 * ia64-vms-tdep.c: New file.
7359 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7360 (ia64_libunwind_descr): Make them public.
7361 * configure.tgt: Add ia64-*-*vms*.
7362 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7363 (ALLDEPFILES): Add ia64-vms-tdep.c
7364
34864976
TG
73652012-03-05 Tristan Gingold <gingold@adacore.com>
7366
169081d0
TG
7367 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7368 * remote.c (PACKET_qXfer_uib): New enum value.
7369 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7370 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7371 (_initialize_remote): Call add_packet_config_cmd for
7372 xfer:uib packet.
7373
73742012-03-05 Tristan Gingold <gingold@adacore.com>
7375
7376 * osabi.c (gdb_osabi_names): Add OpenVMS.
7377 (generic_elf_osabi_sniffer): Likewise.
7378 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7379
6597b100
JK
73802012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7381
7382 Removed unused code.
7383 * libunwind-frame.c (libunwind_frame_unwind)
7384 (libunwind_frame_base_address): Remove.
7385 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7386
87399aa1
YQ
73872012-03-04 Yao Qi <yao@codesourcery.com>
7388
7389 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7390 remove trailing new line.
7391 (agent_run_command, agent_run_command): Add _ markup.
7392 (agent_capability_check): Likewise.
7393
abf1152a
JK
73942012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7395
7396 * breakpoint.c (set_condition_evaluation_mode): Set
7397 CONDITION_EVALUATION_MODE unconditionally.
7398
5808517f
YQ
73992012-03-03 Yao Qi <yao@codesourcery.com>
7400
7401 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7402 * common/agent.h: Update declaration.
7403 * inf-child.c (inf_child_use_agent): New.
7404 (inf_child_can_use_agent): New.
7405 (inf_child_target): Initialize fields `to_use_agent'
7406 and `to_can_use_agent'.
7407 * agent.c (agent_new_objfile): New.
89b7509a 7408 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7409 observer.
7410
7411 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7412 New.
89b7509a 7413 (linux_target_install_ops): Initialize field
5808517f
YQ
7414 `to_static_tracepoint_markers_by_strid'.
7415 * remote.c (free_current_marker): Move it to ...
7416 * tracepoint.c (free_current_marker): ... here. New.
7417 (cleanup_target_stop): New.
7418 * tracepoint.h: Declare free_current_marker.
7419 * NEWS: Add one entry about `info static-tracepoint-marker'.
7420
58b4daa5
YQ
74212012-03-03 Yao Qi <yao@codesourcery.com>
7422
7423 * common/agent.c (agent_loaded_p): New.
89b7509a 7424 (agent_look_up_symbols): New global.
58b4daa5
YQ
7425 * common/agent.h: Declare agent_loaded_p.
7426
8ffcbaaf
YQ
74272012-03-03 Yao Qi <yao@codesourcery.com>
7428
7429 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7430 (agent_capability_check, agent_capability_invalidate): New.
7431 (symbol_list): New array element.
7432 * common/agent.h (enum agent_capa): New.
7433 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7434
d1feda86
YQ
74352012-03-03 Yao Qi <yao@codesourcery.com>
7436
7437 * target.h (struct target_ops) <to_use_agent>: New field.
7438 (struct target_ops) <to_can_use_agent>: New field.
7439 (target_use_agent, target_can_use_agent): New macro.
7440 * target.c (update_current_target): Update.
7441 * remote.c: New enum `PACKET_QAgent'.
7442 (remote_protocol_features): Add a new element.
7443 (remote_use_agent, remote_can_use_agent): New.
7444 (init_remote_ops): Initialize field `can_use_agent' with
7445 remote_can_use_agent. Intiailize field `use_agent' with
7446 remote_use_agent.
7447 * common/agent.c (use_agent): New global.
7448 * common/agent.h: Declare it.
7449 * tracepoint.c (info_static_tracepoint_markers_command): Add
7450 comment.
7451 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7452 (COMMON_OBS): Add common/agent.o and agent.o
7453 (common-agent.o): New rule.
7454 * agent.c: New.
7455
2fa291ac
YQ
74562012-03-03 Yao Qi <yao@codesourcery.com>
7457
7458 * common/agent.c: New.
7459 * common/agent.h: New.
7460 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7461 AC_CHECK_HEADERS.
7462 * configure, configh.in: Regenerated.
7463
9fc05685
KB
74642012-03-02 Kevin Buettner <kevinb@redhat.com>
7465
7466 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7467 unless it exists for this architecture.
7468
a5ee536b
JB
74692012-03-02 Joel Brobecker <brobecker@adacore.com>
7470
7471 * language.h (struct language_defn): New "method" la_read_var_value.
7472 * findvar.c: #include "language.h".
7473 (default_read_var_value): Renames read_var_value. Rewrite
7474 function description.
7475 (read_var_value): New function.
7476 * value.h (default_read_var_value): Add prototype.
7477 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7478 New functions.
7479 (ada_language_defn): Add entry for la_read_var_value.
7480 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7481 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7482 language_defn structures to add entry for new la_read_var_value
7483 field.
7484
f59f708a
PA
74852012-03-02 Tom Tromey <tromey@redhat.com>
7486 Pedro Alves <palves@redhat.com>
7487
7488 PR breakpoints/13776:
7489 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7490 breakpoints.
7491 (delete_longjmp_breakpoint_at_next_stop): New.
7492 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7493 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7494 before deleting the inferior. Add comments.
7495 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7496 breakpoints immediately, but only on next stop. Move that code
7497 next to where we mark other breakpoints for deletion.
7498
44099a67
JB
74992012-03-02 Joel Brobecker <brobecker@adacore.com>
7500
7501 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7502 marker.
7503 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7504 violation.
7505
2a2ef594
PA
75062012-03-02 Pedro Alves <palves@redhat.com>
7507
7508 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7509
b261e0c5
UW
75102012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7511
7512 Fix -Wmissing-prototypes build.
7513 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7514 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7515 (gdbsim_has_memory): Likewise.
7516
a95babbf
YQ
75172012-03-02 Yao Qi <yao@codesourcery.com>
7518
7519 Fix -Wmissing-prototypes build.
7520 * charset.c (phony_iconv_open): Make static.
7521 (phony_iconv_close, phony_iconv): Likewise.
7522 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7523 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7524 prototype.
7525 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7526 * ser-mingw.c (create_select_thread): Make static.
7527 * windows-termcap.c (tgetent): New prototype.
7528 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7529
d603d4b3
JK
75302012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7531
7532 Fix -Wmissing-prototypes build.
7533 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7534 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7535 (_initialize_loadable): New prototypes.
7536
7fb3ad1f
DE
75372012-03-02 Doug Evans <dje@google.com>
7538
7539 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7540 abbrev table, read_comp_unit will do it.
7541
693be288
JK
75422012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7543
7544 Fix -Wmissing-prototypes build.
7545 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7546 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7547 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7548 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7549 (_initialize_arm_symbian_tdep): New prototype.
7550 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7551 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7552 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7553 static.
7554 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7555 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7556 prototype.
7557 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7558 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7559 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7560 static.
7561 * moxie-tdep.c (moxie_process_record): Likewise.
7562 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7563 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7564 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7565 (_initialize_rl78_tdep): New prototype.
7566 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7567 (_initialize_rx_tdep): New prototype.
7568 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7569 (_initialize_darwin_solib): New prototype.
7570 * solib-spu.c: Include solib-spu.h.
7571 (_initialize_spu_solib): New prototype.
7572 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7573 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7574 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7575 (tic6x_software_single_step): Make it static.
7576 (_initialize_tic6x_tdep): New prototype.
7577
638234e5
JK
75782012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7579
7580 Fix -Wmissing-prototypes build.
7581 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7582 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7583
f4a6f16d
JK
75842012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7585
7586 Fix -Wmissing-prototypes build.
7587 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7588 (frv_have_stopped_data_address): Remove.
7589
04dcf5fa
JK
75902012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7591
7592 Fix -Wmissing-prototypes build.
7593 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7594 * sh-tdep.c: Include sh64-tdep.h.
7595 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7596 * sh64-tdep.c: Include sh64-tdep.h.
7597 * sh64-tdep.h: New file.
7598
19080931
MR
75992012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7600
7601 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7602
9aac7884
MR
76032012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7604
7605 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7606 sp_regnum once the gdbarch_init_osabi hook has been called.
7607
a385295e
MR
76082012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7609
7610 * mips-tdep.c (mips32_bc1_pc): New function.
7611 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7612 BPOSGE32 and BPOSGE64 instructions.
7613 (deal_with_atomic_sequence): Likewise.
7614 (mips32_instruction_has_delay_slot): Likewise.
7615
1faeff08 76162012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
7617 Chris Dearman <chris@mips.com>
7618 Maciej W. Rozycki <macro@codesourcery.com>
7619 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
7620
7621 * features/mips-dsp.xml: New file.
7622 * features/mips64-dsp.xml: New file.
7623 * features/mips-dsp-linux.xml: New file.
7624 * features/mips64-dsp-linux.xml: New file.
7625 * features/Makefile (WHICH): Add mips-dsp-linux and
7626 mips64-dsp-linux.
7627 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7628 * features/mips-dsp-linux.c: New file.
7629 * features/mips64-dsp-linux.c: New file.
7630 * regformats/mips-dsp-linux.dat: New file.
7631 * regformats/mips64-dsp-linux.dat: New file.
7632 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7633 registers.
7634 (mips64_linux_register_addr): Likewise.
7635 (mips64_linux_regsets_fetch_registers): Likewise.
7636 (mips64_linux_regsets_store_registers): Likewise.
7637 (mips64_linux_fetch_registers): Update call to
7638 mips64_linux_regsets_fetch_registers.
7639 (mips64_linux_store_registers): Update call to
7640 mips64_linux_regsets_store_registers.
7641 (mips_linux_read_description): Probe for DSP registers.
7642 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7643 and initialize_tdesc_mips64_dsp_linux.
7644 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7645 Remove padding of no longer used embedded register slots.
7646 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7647 (MIPS_RESTART_REGNUM): Redefine enum value.
7648 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7649 strings.
7650 (mips_tx39_reg_names): Likewise.
7651 (mips_linux_reg_names): New array of register names for Linux
7652 targets.
7653 (mips_register_name): Check for a null pointer in
7654 mips_processor_reg_names and return an empty string.
7655 (mips_register_type): Exclude embedded registers for the IRIX
7656 and Linux ABIs.
7657 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7658 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7659 DSP registers.
7660 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7661 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7662 (mips_gdbarch_init): Likewise. Initialize internal register
7663 indices for the Linux ABI. Use dynamic numbers to refer to
7664 registers, as applicable, while parsing the target description.
7665 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7666
263689d8
JB
76672012-03-01 Joel Brobecker <brobecker@adacore.com>
7668
7669 * frame.h (read_frame_register_unsigned): Fix typo in function
7670 description.
7671
f3b4f45c
PA
76722012-03-01 Pedro Alves <palves@redhat.com>
7673
7674 * jit-reader.in [!__cplusplus]
7675 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7676
b03a2011
PA
76772012-03-01 Pedro Alves <palves@redhat.com>
7678
7679 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7680 * configure: Regenerate.
7681
70221824
PA
76822012-03-01 Pedro Alves <palves@redhat.com>
7683
7684 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7685 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7686 (ftrace_command, strace_command): Make static.
7687 * d-lang.c (_initialize_d_language): Declare.
7688 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7689 * dwarf2loc.c (_initialize_dwarf2loc):
7690 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7691 * exec.c (exec_get_section_table): Make static.
7692 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7693 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7694 * inferior.c (remove_inferior_command, add_inferior_command)
7695 (clone_inferior_command): Make static.
7696 * linux-nat.c (linux_nat_thread_address_space)
7697 (linux_nat_core_of_thread): Make static.
7698 * linux-tdep.c (_initialize_linux_tdep): Declare.
7699 * objc-lang.c (_initialize_objc_lang): Declare.
7700 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7701 Make static.
7702 (_initialize_opencl_language): Declare.
7703 * record.c (_initialize_record): Declare.
7704 * remote.c (demand_private_info, remote_get_tib_address)
7705 (remote_supports_cond_tracepoints)
7706 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7707 Make static.
7708 * skip.c (_initialize_step_skip): Declare.
7709 * symtab.c (skip_prologue_using_lineinfo): Make static.
7710 * tracepoint.c (delete_trace_state_variable)
7711 (trace_variable_command, delete_trace_variable_command)
7712 (get_uploaded_tsv, find_matching_tracepoint_location)
7713 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7714 Make static.
7715 * value.c (pack_unsigned_long): Make static.
7716 * varobj.c (varobj_ensure_python_env): Make static.
7717 * windows-tdep.c (_initialize_windows_tdep): Declare.
7718 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7719
33fbcbee
PA
77202012-03-01 Pedro Alves <palves@redhat.com>
7721
7722 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7723 gdbarch parameter.
7724 (linux_init_abi): Install it as has_shared_address_space gdbarch
7725 callback.
7726
44d0cd3b
PA
77272012-03-01 Pedro Alves <palves@redhat.com>
7728
7729 * observer.c (observer_test_first_notification_function)
7730 (observer_test_second_notification_function)
7731 (observer_test_third_notification_function): Add declarations.
7732
ed01b82c
PA
77332012-03-01 Pedro Alves <palves@redhat.com>
7734
7735 * common/signals.c (default_target_signal_to_host)
7736 (default_target_signal_from_host): Move ...
7737 * arch-utils.c: ... here.
7738 * arch-utils.h (default_target_signal_to_host)
7739 (default_target_signal_from_host): Declare.
7740
7741 * common/signals.c (target_signal_from_command): Move ...
7742 * infrun.c: ... here.
7743 * inferior.h (target_signal_from_command): Declare.
7744 * target.h (target_signal_from_command)
7745 (default_target_signal_from_host, default_target_signal_to_host):
7746 Delete declarations.
7747
7748 * common/signals.c (_initialize_signals): Delete.
7749
c9b87335
PA
77502012-03-01 Pedro Alves <palves@redhat.com>
7751
7752 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7753 both __cplusplus and !__cplusplus.
7754
9340a6c0
PA
77552012-03-01 Pedro Alves <palves@redhat.com>
7756
7757 * psymtab.c (find_and_open_source): Delete declaration.
7758 * source.c (find_and_open_source): Move comment ...
7759 * source.h (find_and_open_source): ... to this new declaration.
7760
e451c4a1
PA
77612012-03-01 Pedro Alves <palves@redhat.com>
7762
7763 * inline-frame.c: Include inline-frame.h.
7764
983fb104
PA
77652012-03-01 Pedro Alves <palves@redhat.com>
7766
7767 * tui/tui-data.c (set_gen_win_origin): Delete.
7768 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7769 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7770
5fbce5df
PA
77712012-03-01 Pedro Alves <palves@redhat.com>
7772
7773 * remote.c (encode_actions): Delete declaration.
7774 * tracepoint.c (encode_actions): Make extern.
7775 * tracepoint.h (encode_actions): Declare.
7776
49a8461d
PA
77772012-03-01 Pedro Alves <palves@redhat.com>
7778
7779 * python/py-breakpoint.c: Include python.h.
7780 * python/py-continueevent.c (create_continue_event_object): Make
7781 static.
7782 * python/py-lazy-string.c (stpy_get_type): Make static.
7783 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7784 Make static.
7785 * python/py-utils.c (unicode_to_target_python_string): Make
7786 static.
7787 * python/py-value.c: Include python.h.
7788
9079102f
PA
77892012-03-01 Pedro Alves <palves@redhat.com>
7790
7791 * inferior.c (delete_threads_of_inferior): Delete.
7792
a298c5e8
PA
77932012-03-01 Pedro Alves <palves@redhat.com>
7794
7795 Import fallback definitions from glibc.
7796
7797 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7798 ps_prochandle): Forward declare.
7799 (ps_err_e): Use glibc's comments.
7800 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7801 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7802 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7803 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7804 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7805 (struct ps_prochandle): Adjust comment.
7806
e3084549
PA
78072012-03-01 Pedro Alves <palves@redhat.com>
7808
7809 * ada-lang.c (ada_modulus_from_name): Delete.
7810 * ada-lex.l (lexer_init): Make static.
7811
ad5f7d6e
PA
78122012-03-01 Pedro Alves <palves@redhat.com>
7813
7814 PR gdb/13767
7815
7816 * frame.c (read_frame_register_unsigned): New.
7817 * frame.h (read_frame_register_unsigned): Declare.
7818 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7819 Handle it.
7820 (print_i387_control_word): New parameter `control_p'. Handle it.
7821 (i387_print_float_info): Handle unavailable float registers.
7822
e0a4d108
KS
78232012-03-01 Keith Seitz <keiths@redhat.com>
7824
7825 * linespec.c (decode_line_2): Sort the list of methods
7826 alphabetically before presenting the user with a selection
7827 menu.
7828
122d1940
DE
78292012-03-01 Doug Evans <dje@google.com>
7830
7831 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7832 has_namespace_info.
7833 (dwarf2_read_abbrevs): Remove corresponding initialization.
7834
7d74f244
DE
78352012-03-01 Scott J. Goldman <scottjg@vmware.com>
7836
7837 * NEWS: Mention new python command class gdb.COMMAND_USER.
7838 * cli/cli-cmds.c (show_user): Print error when used on a python
7839 command.
7840 (init_cli_cmds): Update documentation strings for "show user" and
7841 "set/show max-user-call-depth" to clarify that it does not apply to
7842 python commands.
7843 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7844 error check.
7845 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7846 gdb python api.
7847 * top.c (execute_command): Only execute a user-defined command as a
7848 legacy macro if c->user_commands is set.
7849
e88acd96
TT
78502012-03-01 Tom Tromey <tromey@redhat.com>
7851
7852 * valprint.h (struct generic_val_print_decorations): New.
7853 (generic_val_print): Declare.
7854 * valprint.c (generic_val_print): New function.
7855 * p-valprint.c (p_decorations): New global.
7856 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7857 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7858 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7859 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7860 * m2-valprint.c (m2_decorations): New global.
7861 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7862 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7863 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7864 TYPE_CODE_ERROR>: Call generic_val_print.
7865 * f-valprint.c (f_decorations): New global.
7866 (f_val_print): Use print_function_pointer_address.
7867 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7868 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7869 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7870 generic_val_print.
7871 * c-valprint.c (c_decorations): New global.
7872 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7873 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7874 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7875 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7876 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7877 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7878 case.
7879
d3eab38a
TT
78802012-03-01 Tom Tromey <tromey@redhat.com>
7881
7882 * valprint.c (val_print): Update.
7883 * p-valprint (pascal_val_print): Return void.
7884 * p-lang.h (pascal_val_print): Return void.
7885 * m2-valprint.c (m2_val_print): Return void.
7886 * m2-lang.h (m2_val_print): Return void.
7887 * language.h (struct language_defn) <la_val_print>: Return void.
7888 * language.c (unk_lang_val_print): Return void.
7889 * jv-valprint.c (java_val_print): Return void.
7890 * jv-lang.h (java_val_print): Return void.
7891 * f-valprint.c (f_val_print): Return void.
7892 * f-lang.h (f_val_print): Return void.
7893 * d-valprint.c (d_val_print): Return void.
7894 (dynamic_array_type): Update.
7895 * d-lang.h (d_val_print): Return void.
7896 * c-valprint.c (c_val_print): Return void.
7897 * c-lang.h (c_val_print): Return void.
7898 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7899 void.
7900 * ada-lang.h (ada_val_print): Return void.
7901
35c0084b
TT
79022012-03-01 Tom Tromey <tromey@redhat.com>
7903
7904 * value.h (val_print): Return void.
7905 * valprint.c (val_print): Return void.
7906
a1f5dd1b
TT
79072012-03-01 Tom Tromey <tromey@redhat.com>
7908
7909 * value.h (common_val_print): Return void.
7910 * valprint.c (common_val_print): Return void.
7911
8e069a98
TT
79122012-03-01 Tom Tromey <tromey@redhat.com>
7913
7914 * value.h (value_print): Return void.
7915 * valprint.c (value_print): Return void.
7916 * p-valprint.c (pascal_value_print): Return void.
7917 * p-lang.h (pascal_value_print): Return void.
7918 * language.h (struct language_defn) <la_value_print>: Return
7919 void.
7920 * language.c (unk_lang_value_print): Return void.
7921 * jv-valprint.c (java_value_print): Return void.
7922 * jv-lang.h (java_value_print): Return void.
7923 * f-valprint.c (c_value_print): Don't declare.
7924 Include c-lang.h.
7925 * c-valprint.c (c_value_print): Return void.
7926 * c-lang.h (c_value_print): Return void.
7927 * ada-valprint.c (ada_value_print): Return void.
7928 * ada-lang.h (ada_value_print): Return void.
7929
be335936
TT
79302012-03-01 Tom Tromey <tromey@redhat.com>
7931
7932 * value.c (value_primitive_field): Handle virtual base classes.
7933
b0db66a7
TT
79342012-03-01 Tom Tromey <tromey@redhat.com>
7935
7936 * gdbtypes.h (struct vbase): Remove.
7937
132c57b4
TT
79382012-03-01 Tom Tromey <tromey@redhat.com>
7939
7940 * c-valprint.c (print_function_pointer_address): Move...
7941 * valprint.c: ... here. Make non-static.
7942 * m2-valprint.c (print_function_pointer_address): Remove.
7943 * valprint.h (print_function_pointer_address): Declare.
7944
e41eec66
JB
79452012-03-01 Joel Brobecker <brobecker@adacore.com>
7946
7947 * NEWS: Document the fact that one can provide a condition when
7948 creating an Ada exception catchpoint.
7949
19c37f24
TT
79502012-03-01 Tom Tromey <tromey@redhat.com>
7951
7952 * valprint.c (val_print_type_code_flags): Fix placement of
7953 trailing brace.
7954
f0fed3a3
JB
79552012-03-01 Joel Brobecker <brobecker@adacore.com>
7956
7957 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7958 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7959 environment variable before calling update-copyright.
7960
8ba85d85
JB
79612012-03-01 Joel Brobecker <brobecker@adacore.com>
7962
7963 * gnulib/extra/update-copyright: Update to the latest from
7964 gnulib's git repository.
7965 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7966 variable to 2 instead of 1.
7967
8219b1e8
JB
79682012-02-29 Joel Brobecker <brobecker@adacore.com>
7969
7970 * varobj.c (c_value_of_variable): Remove dead code.
7971
718cb7da
JB
79722012-02-29 Joel Brobecker <brobecker@adacore.com>
7973
7974 * ada-lex.p (processId): Do not modify already encoded IDs.
7975 Update function documentation.
7976
739593e0
JB
79772012-02-29 Joel Brobecker <brobecker@adacore.com>
7978
7979 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7980 "name" with "struct symbol *name_sym".
7981 * ada-exp.y (write_var_or_type): Update call to
7982 ada_find_renaming_symbol.
7983 "name" with "struct symbol *name_sym". Adjust Implementation
7984 accordingly. Adjust the function documentation.
7985
852dff6c
JB
79862012-02-29 Joel Brobecker <brobecker@adacore.com>
7987
7988 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7989 * ada-lang.c (ada_find_any_type): Add advance declaration.
7990 Make static. Replace ada_find_any_symbol by
7991 ada_find_any_type_symbol.
7992 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7993 Improve function description. Make static.
7994 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7995 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7996
1b611343
JB
79972012-02-29 Joel Brobecker <brobecker@adacore.com>
7998
7999 * ada-lang.c (struct tag_args): Delete.
8000 (ada_get_tsd_type): Function body moved up in source file.
8001 (ada_tag_name_1, ada_tag_name_2): Delete.
8002 (ada_get_tsd_from_tag): New function.
8003 (ada_tag_name_from_tsd): New function.
8004 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
8005 to determine the tag name.
8006
41246937
JB
80072012-02-29 Joel Brobecker <brobecker@adacore.com>
8008
8009 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
8010 declaration.
8011 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
8012 function.
8013
ffde82bf
JB
80142012-02-29 Joel Brobecker <brobecker@adacore.com>
8015
8016 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
8017
2ad01556
JB
80182012-02-29 Joel Brobecker <brobecker@adacore.com>
8019
8020 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
8021 full searches.
8022
99b1c762
JB
80232012-02-29 Joel Brobecker <brobecker@adacore.com>
8024
8025 * ada-lang.c (constrained_packed_array_type): If there is a
8026 parallel XA type, use it to determine the array index type.
8027
2d4a02ee
JB
80282012-02-29 Joel Brobecker <brobecker@adacore.com>
8029
8030 * ada-valprint.c (ada_val_print_1): If our value is a reference
8031 to an array descriptor, dereference it before converting it
8032 to a simple array.
8033
c48db5ca
JB
80342012-02-29 Joel Brobecker <brobecker@adacore.com>
8035
8036 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
8037 creating fixed value.
8038 (ada_value_ind, ada_coerce_ref, assign_component)
8039 (ada_evaluate_subexp): Remove call to unwrap_value before
8040 call to ada_to_fixed_value.
8041
2e6fda7d
JB
80422012-02-29 Joel Brobecker <brobecker@adacore.com>
8043
8044 * ada-lang.c (to_fixed_array_type): Set result's type name.
8045
5845583d
JB
80462012-02-29 Joel Brobecker <brobecker@adacore.com>
8047
8048 * ada-lang.c (catch_ada_exception_command_split): Add new
8049 argument cond_string. Add support for condition at end of
8050 "catch exception" commands.
8051 (ada_decode_exception_location): Add new argument cond_string.
8052 Update call to catch_ada_exception_command_split.
8053 (create_ada_exception_catchpoint): Add new argument cond_string.
8054 Set the breakpoint condition if needed.
8055 (catch_ada_exception_command): Update call to
8056 ada_decode_exception_location.
8057 (ada_decode_assert_location): Add function documentation.
8058 Add support for condition at end of "catch assert" command.
8059 (catch_assert_command): Update calls to ada_decode_assert_location
8060 and create_ada_exception_catchpoint.
8061
9a7f938f
JK
80622012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8063
8064 Fix disp-step-syscall.exp: fork: single step over fork.
8065 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
8066 (i386_linux_get_syscall_number_from_regcache): ... here, new function
8067 comment, change parameters gdbarch and ptid to regcache. Remove
8068 parameter regcache, initialize gdbarch from regcache here.
8069 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
8070 New functions.
8071 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
8072 instead.
8073 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
8074 'syscall'. Make the 'int' check more strict.
8075
ffdf6de5
JK
80762012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8077
8078 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
8079 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
8080 (i386_linux_intx80_sysenter_syscall_record): ... here.
8081 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
8082 Use the renamed function name.
8083
c70a6932
JK
80842012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
8085
8086 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
8087 * breakpoint.c (until_break_command): Likewise.
8088 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
8089 * infcall.c (call_function_by_hand): Likewise.
8090 * infcmd.c (finish_forward): Likewise.
8091 * infrun.c (insert_exception_resume_breakpoint): Likewise.
8092
05b8a789 80932012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 8094
d4cd3da9
JB
8095 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
8096 avoid variable assignments inside condition.
8097
6425366c
JK
80982012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8099
8100 Fix static analysis issue found by cppcheck.
8101 * microblaze-tdep.c (microblaze_extract_return_value): Fix
8102 uninitialized BUF for size 2.
8103
c8cef75f 81042012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
8105 Nathan Froyd <froydnj@codesourcery.com>
8106 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
8107
8108 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
8109 (mips16_instruction_has_delay_slot): Likewise.
8110 (mips_segment_boundary): Likewise.
8111 (mips_adjust_breakpoint_address): Likewise.
8112 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
8113
473347ad 81142012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 8115 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
8116
8117 * infrun.c (handle_inferior_event): Don't proceed through
8118 shared library trampolines if stepping at the machine
8119 instruction level.
8120
cf233303
MR
81212012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
8122
8123 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
8124 too.
8125
cb2cf4ce
TS
81262012-02-27 Thomas Schwinge <thomas@codesourcery.com>
8127
8128 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
8129 (sh_stub_unwind_sniffer): New functions.
8130 (sh_stub_unwind): New variable.
8131 (sh_gdbarch_init): Wire everything.
8132
644cebc9
PA
81332012-02-27 Pedro Alves <palves@redhat.com>
8134
8135 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
8136 (linux_nat_post_attach_wait): Adjust to use
8137 linux_proc_pid_is_stopped.
8138 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
8139 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
8140 based on pid_is_stopped from both linux-nat.c and
8141 gdbserver/linux-low.c, and renamed.
8142
283002cf
MR
81432012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8144
8145 * remote.c (remote_watchpoint_addr_within_range): New function.
8146 (init_remote_ops): Use it.
8147
9b3e86b1
MR
81482012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
8149
8150 * target.h (target_watchpoint_addr_within_range): Document macro.
8151
e36930bb
PA
81522012-02-24 Pedro Alves <palves@redhat.com>
8153
8154 * stack.c (set_last_displayed_sal): Issue internal_error instead
8155 of warning, and issue it after clearing the last displayed sal.
8156
883bc8d1
PA
81572012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8158 Pedro Alves <palves@redhat.com>
8159
8160 * breakpoint.c (until_break_command): Install breakpoints after
8161 all frame manipulations.
8162
b775012e
LM
81632012-02-24 Luis Machado <lgustavo@codesourcery.com>
8164
8165 * remote.c (remote_supports_cond_breakpoints): New forward
8166 declaration.
8167 (remote_add_target_side_condition): New function.
8168 (remote_insert_breakpoint): Add target-side breakpoint
8169 conditional if supported.
8170 (remote_insert_hw_breakpoint): Likewise.
8171 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
8172 hook.
8173
8174 * target.c (update_current_target): Inherit
8175 to_supports_evaluation_of_breakpoint_conditions.
8176 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8177
8178 * target.h (struct target_ops)
8179 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8180 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8181
8182 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8183 (condition_evaluation_both, condition_evaluation_auto,
8184 condition_evaluation_host, condition_evaluation_target,
8185 condition_evaluation_enums, condition_evaluation_mode_1,
8186 condition_evaluation_mode): New static globals.
8187 (translate_condition_evaluation_mode): New function.
8188 (breakpoint_condition_evaluation_mode): New function.
8189 (gdb_evaluates_breakpoint_condition_p): New function.
8190 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8191 (mark_breakpoint_modified): New function.
8192 (mark_breakpoint_location_modified): New function.
8193 (set_condition_evaluation_mode): New function.
8194 (show_condition_evaluation_mode): New function.
8195 (bp_location_compare_addrs): New function.
8196 (get_first_location_gte_addr): New helper function.
8197 (set_breakpoint_condition): Free condition bytecode if locations
8198 has become unconditional. Call mark_breakpoint_modified (...).
8199 (condition_command): Call update_global_location_list (1) for
8200 breakpoints.
8201 (breakpoint_xfer_memory): Use is_breakpoint (...).
8202 (is_breakpoint): New function.
8203 (parse_cond_to_aexpr): New function.
8204 (build_target_condition_list): New function.
8205 (insert_bp_location): Handle target-side conditional
8206 breakpoints and call build_target_condition_list (...).
8207 (update_inserted_breakpoint_locations): New function.
8208 (insert_breakpoint_locations): Handle target-side conditional
8209 breakpoints.
8210 (bpstat_check_breakpoint_conditions): Add comment.
8211 (bp_condition_evaluator): New function.
8212 (bp_location_condition_evaluator): New function.
8213 (print_breakpoint_location): Print information on where the condition
8214 will be evaluated.
8215 (print_one_breakpoint_location): Likewise.
8216 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8217 breakpoint location.
8218 (force_breakpoint_reinsertion): New functions.
8219 (update_global_location_list): Handle target-side breakpoint
8220 conditions.
8221 Reinsert locations that are already inserted if conditions have
8222 changed.
8223 (bp_location_dtor): Free agent expression bytecode.
8224 (disable_breakpoint): Call mark_breakpoint_modified (...).
8225 Call update_global_location_list (...) with parameter 1 for breakpoints.
8226 (disable_command): Call mark_breakpoint_location_modified (...).
8227 Call update_global_location_list (...) with parameter 1 for breakpoints.
8228 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8229 (enable_command): mark_breakpoint_location_modified (...).
8230 (_initialize_breakpoint): Update documentation and add
8231 condition-evaluation breakpoint subcommand.
8232
8233 * breakpoint.h: Include ax.h.
8234 (condition_list): New data structure.
8235 (condition_status): New enum.
8236 (bp_target_info) <cond_list>: New field.
8237 (bp_location) <condition_changed, cond_bytecode>: New fields.
8238 (is_breakpoint): New prototype.
8239
3788aec7
LM
82402012-02-24 Luis Machado <lgustavo@codesourcery.com>
8241
8242 * remote.c (remote_state) <cond_breakpoints>: New field.
8243 (PACKET_ConditionalBreakpoints): New enum.
8244 (remote_cond_breakpoint_feature): New function.
8245 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8246 (remote_supports_cond_breakpoints): New function.
8247 (_initialize_remote): Add new packet configuration for
8248 target-side conditional breakpoints.
8249
72895ff6
LM
82502012-02-24 Luis Machado <lgustavo@codesourcery.com>
8251
8252 * NEWS: Mention target-side conditional breakpoint support,
8253 new condition-evaluation breakpoint subcommand and remote
8254 packet extensions.
8255
dea2aa5f
LM
82562012-02-24 Luis Machado <lgustavo@codesourcery.com>
8257
8258 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8259 number.
8260
8a8bc27f
TS
82612012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8262
8263 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8264 (after_prologue): Remove.
8265
6b446fdf
TT
82662012-02-23 Tom Tromey <tromey@redhat.com>
8267
8268 * jv-valprint.c (java_val_print): Remove dead code.
8269
ef59abfb
TG
82702012-02-23 Tristan Gingold <gingold@adacore.com>
8271
a09130f9
PA
8272 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8273 known_tasks_element and known_tasks_length fields.
8274 (read_known_tasks_array): Change argument type. Use pointer type
8275 and number of elements from DATA. Adjust.
8276 (read_known_tasks_list): Likewise.
8277 (get_known_tasks_addr): Remove.
8278 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8279 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8280 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8281
def166f6
JK
82822012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8283
8284 PR backtrace/13716
8285 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8286 it after set_momentary_breakpoint.
8287
aeaa2474
SA
82882012-02-22 Sterling Augustine <saugustine@google.com>
8289
8290 PR 13689:
8291 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8292
feea76c2
GB
82932012-02-22 Gary Benson <gbenson@redhat.com>
8294
8295 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8296 (find_slot_in_mapped_hash): Likewise.
8297
f06e05e0
JK
82982012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8299
8300 PR build/13638
8301 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8302 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8303 * configure: Regenerate.
8304
b54a8fd7
PA
83052012-02-21 Tristan Gingold <gingold@adacore.com>
8306 Pedro Alves <palves@redhat.com>
8307
8308 * ia64-tdep.c: Do not include libunwind-ia64.h.
8309 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8310 Include libunwind-ia64.h instead of libunwind.h.
8311 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8312 for libunwind.h existence.
8313 * configure, config.in: Regenerate.
8314
dfcee124
AG
83152012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8316
8317 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8318 instead of value_rtti_target_type.
8319 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8320 instead of value_rtti_target_type.
8321 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8322 value_rtti_target_type.
8323 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8324 (value_rtti_target_type): Rename to ...
8325 (value_rtti_indirect_type): ... here and make it indirect. Update
8326 function comment.
8327 * value.c (readjust_indirect_value_type): New function.
8328 (coerce_ref): Support for enclosing type setting for references
8329 with readjust_indirect_value_type.
8330 * value.h (readjust_value_type): New declaration.
8331 (value_rtti_target_type): Rename to ...
8332 (value_rtti_indirect_type): ... here.
8333
02568277
AG
83342012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8335
8336 * MAINTAINERS (Write After Approval): Add myself to the list.
8337
10c07b7e 83382012-02-20 Doug Evans <dje@google.com>
28ee876a 8339
d82ea6a8
DE
8340 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8341 Rename objfile_p_char parameter to objfilep.
8342 (build_objfile_section_table): Result is now void. All callers
8343 updated.
8344 * objfiles.h (struct objfile): Tweak comments, whitespace.
8345 (build_objfile_section_table): Update.
8346
28ee876a
DE
8347 * elfread.c (elf_symfile_segments): Fix warning text.
8348
24c79950
TT
83492012-02-20 Tom Tromey <tromey@redhat.com>
8350
8351 PR gdb/13498:
8352 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8353 particular set of file names once.
8354 (dw2_map_symbol_filenames): Likewise.
8355
3a9b40b6
JK
83562012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8357
8358 Code cleanup.
8359 * main.c (write_files): Remove the declaration.
8360 (external_editor_command): Move the declaration ...
8361 [GDBTK] (external_editor_command): ... here. Fix the comment.
8362
4d0795ca
TT
83632012-02-20 Tom Tromey <tromey@redhat.com>
8364
8365 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8366 extraneous block.
8367
637fd620
TG
83682012-02-20 Tristan Gingold <gingold@adacore.com>
8369
8370 * darwin-nat.h (enum darwin_msg_state): Add comments.
8371
6f124894
TG
83722012-02-20 Tristan Gingold <gingold@adacore.com>
8373
8374 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8375 value.
8376
2e6e3d9c
JB
83772012-20-18 Joel Brobecker <brobecker@adacore.com>
8378
8379 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8380 between function description and implementation.
8381
2e8265fd
TT
83822012-02-17 Tom Tromey <tromey@redhat.com>
8383
8384 PR python/12070:
8385 * python/py-event.c (event_object_getset): New global.
8386 (event_object_type): Reference it.
8387 * python/py-type.c (field_object_getset): New global.
8388 (field_object_type): Reference it.
8389 * python/python-internal.h (gdb_py_generic_dict): Declare.
8390 * python/py-utils.c (gdb_py_generic_dict): New function.
8391
8544a150 83922012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8393
8544a150 8394 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8395
ca193e27
TS
83962012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8397
8398 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8399 TYPE_CALLING_CONVENTION annotation.
8400
e5586183
KB
84012012-02-16 Kevin Buettner <kevinb@redhat.com>
8402
8403 * MAINTAINERS: Add rx to target ISA section.
8404 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8405 (ALLDEPFILES): Add rx-tdep.c.
8406
7dcd53a0
TT
84072012-02-16 Tom Tromey <tromey@redhat.com>
8408
8409 * symfile.c (symbol_file_add_main_1): Use inferior's
8410 symfile_flags.
8411 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8412 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8413 inferior.
8414 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8415 inferior.
8416 (follow_exec): Use inferior's symfile_flags.
8417 * inferior.h (struct inferior) <symfile_flags>: New field.
8418
ddd60447
MF
84192012-02-16 Mike Frysinger <vapier@gentoo.org>
8420
8421 PR gdb/9734:
8422 * remote-sim.c (gdbsim_create_inferior): Call error() when
8423 sim_create_inferior() fails.
8424
b0d32fb6
TG
84252012-02-16 Josh Matthews <josh@joshmatthews.net>
8426
8427 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8428
9addecb9
TT
84292012-02-16 Tom Tromey <tromey@redhat.com>
8430
8431 PR c++/13653:
8432 * thread.c (struct current_thread_cleanup) <was_removable>: New
8433 field.
8434 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8435 (make_cleanup_restore_current_thread): Initialize new field.
8436
a58b110a
KB
84372012-02-15 Kevin Buettner <kevinb@redhat.com>
8438
8439 * MAINTAINERS: Add rl78 to target ISA section.
8440 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8441 (ALLDEPFILES): Add rl78-tdep.c.
8442 * NEWS: Mention rl78 as a new target.
8443
4cb6da1c
AR
84442012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8445
8446 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8447 data.
8448 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8449
3af2590d
TT
84502012-02-15 Tom Tromey <tromey@redhat.com>
8451
8452 PR gdb/12659:
8453 * infcmd.c (registers_info): Print just the current register's
8454 name.
8455
c6910659
TT
84562012-02-15 Tom Tromey <tromey@redhat.com>
8457
8458 * python/py-symbol.c (sympy_value): Use _().
8459
7cee1e54
PA
84602012-02-15 Pedro Alves <palves@redhat.com>
8461
8462 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8463 output to be like native targets'.
8464 (remote_pid_to_str): Special case the null ptid.
8465
816338b5
SS
84662012-02-14 Stan Shebs <stan@codesourcery.com>
8467
8468 * NEWS: Mention enable count command.
8469 * breakpoint.h (struct breakpoint): New field enable_count.
8470 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8471 (enable_breakpoint): Add arg to call.
8472 (struct disp_data): New struct.
8473 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8474 (do_map_enable_once_breakpoint): Create a struct and pass it.
8475 (do_map_enable_delete_breakpoint): Ditto.
8476 (do_map_enable_count_breakpoint): New function.
8477 (enable_count_command): New function.
8478 (bpstat_stop_status): Decrement enable_count.
8479 (print_one_breakpoint_location): Report enable count.
8480 (_initialize_breakpoint): Add enable count command.
8481
c47a44f4
KB
84822012-02-14 Kevin Buettner <kevinb@redhat.com>
8483
8484 * rl78-tdep.c (reggroups.h): Include.
8485 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8486 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8487 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8488 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8489 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8490 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8491 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8492 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8493 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8494 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8495 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8496 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8497 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8498 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8499 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8500 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8501 beginning of register list.
8502 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8503 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8504 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8505 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8506 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8507 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8508 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8509 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8510 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8511 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8512 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8513 the pseudo registers. Rearrange other pseudo registers too so
8514 that the bank registers appear at the end.
8515 (rl78_register_type): Account for the fact that the byte sized
8516 bank registers are now pseudo-registers.
8517 (rl78_register_name): Rearrange the register name array. Make
8518 initial set of raw banked registers inaccessible.
8519 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8520 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8521 case for copying bytes back and forth between raw and pseudo
8522 versions of the banked registers. Update other cases to reflect
8523 the changed names.
8524 (rl78_return_value): Update to account for changed names of
8525 raw registers.
8526 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8527 rl78_register_sim_regno().
8528
e4569f1e
KB
85292012-02-14 Kevin Buettner <kevinb@redhat.com>
8530
8531 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8532 the name parameter being passed to find_pc_partial_function().
8533
7a05aae7
JK
85342012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8535
8536 * MAINTAINERS: Step down from being ia64 target maintainer.
8537
11fde611
JK
85382012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8539
8540 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8541 compilation warning.
8542
57008375
JK
85432012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8544
8545 Fix crash on loaded shlibs without loaded exec_bfd.
8546 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8547 (set_section_command): Replace exec_bfd by p->bfd.
8548
ff3c9849
TT
85492012-02-10 Tom Tromey <tromey@redhat.com>
8550
8551 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8552 when we have a C++ qualified name.
8553
db2b9fdd
PA
85542012-02-10 Pedro Alves <palves@redhat.com>
8555
8556 * inferior.c (inferior_pid_to_str): New.
8557 (print_inferior, inferior_command): Use it.
8558
12cd34f3
PA
85592012-02-10 Pedro Alves <palves@redhat.com>
8560
8561 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8562 the test CFLAGS.
8563 * configure: Regenerate.
8564
e871429d
JK
85652012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8566
8567 * linespec.c (decode_line_internal): Fix comment correctness.
8568
1916efaf
PA
85692012-02-09 Valery Khromov <valery.khromov@gmail.com>
8570
8571 PR gdb/12953
8572 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8573 * amd64bsd-nat.c: Add support for debug registers (adapted from
8574 i386bsd-nat.c).
8575 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8576 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8577 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8578 (amd64bsd_dr_get_control): New functions.
8579 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8580 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8581 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8582 watchpoints initialization.
8583 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8584
f4859d94
JK
85852012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8586
8587 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8588 flds_bnds.fields.
8589 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8590
c56a97f9
JK
85912012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8592
8593 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8594
1a119f36
JB
85952012-02-08 Joel Brobecker <brobecker@adacore.com>
8596
8597 * language.h (symbol_name_cmp_ftype): Renames
8598 symbol_name_match_p_ftype.
8599 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8600 la_get_symbol_name_match_p.
8601 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8602 ada_get_symbol_name_match_p. Update comment.
8603 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8604 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8605 Renames symbol_name_match_p. Update field type.
8606 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8607 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8608 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8609 "la_get_symbol_name_cmp" in comments.
8610 * language.c: Likewise.
8611
c71bb1cf
RO
86122012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8613
8614 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8615 %eflags offset.
8616 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8617 (amd64_sol2_gregset32_reg_offs): Likewise.
8618
4b2d20a5
TG
86192012-02-08 Joel Brobecker <brobecker@adacore.com>
8620
8621 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8622 of the returned BFD is allocated by GDB.
8623
f0823d2c
TT
86242012-02-07 Tom Tromey <tromey@redhat.com>
8625
8626 PR python/12027:
8627 * python/python-internal.h (frame_object_type): Declare.
8628 * python/py-symbol.c (sympy_needs_frame): New function.
8629 (sympy_value): New function.
8630 (symbol_object_getset): Add "needs_frame".
8631 (symbol_object_methods): Add "value".
8632 * python/py-frame.c (frame_object_type): No longer static.
8633
64e7d9dd
TT
86342012-02-07 Tom Tromey <tromey@redhat.com>
8635
8636 PR python/13599:
8637 * python/py-symbol.c (sympy_line): New function.
8638 (symbol_object_getset): Add "line".
8639
1d6b2d2b
TT
86402012-02-07 Tom Tromey <tromey@redhat.com>
8641
8642 * charset.c (find_charset_names): Check 'in' against NULL.
8643
0d5cff50
DE
86442012-02-06 Doug Evans <dje@google.com>
8645
8646 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8647 and fields.name members from char * to const char *. All uses updated.
8648 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8649 from char * to const char *. All uses updated.
8650 (type_name_no_tag): Update.
8651 (lookup_unsigned_typename, lookup_signed_typename): Update.
8652 * gdbtypes.c (type_name_no_tag): Change result type
8653 from char * to const char *. All callers updated.
8654 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8655 name parameter from char * to const char *.
8656 * symtab.h (struct cplus_specific): Change type of demangled_name
8657 member from char * to const char *. All uses updated.
8658 (struct general_symbol_info): Change type of name and
8659 mangled_lang.demangled_name members from char * to const char *.
8660 All uses updated.
8661 (symbol_get_demangled_name, symbol_natural_name): Update.
8662 (symbol_demangled_name, symbol_search_name): Update.
8663 * symtab.c (symbol_get_demangled_name): Change result type
8664 from char * to const char *. All callers updated.
8665 (symbol_natural_name, symbol_demangled_name): Ditto.
8666 (symbol_search_name): Ditto.
8667 (completion_list_add_name): Change type of symname,sym_text,
8668 text,word parameters from char * to const char *.
8669 (completion_list_objc_symbol): Change type of sym_text,
8670 text,word parameters from char * to const char *.
8671 * ada-lang.c (find_struct_field): Change type of name parameter
8672 from char * to const char *.
8673 (encoded_ordered_before): Similarly for N0,N1 parameters.
8674 (old_renaming_is_invisible): Similarly for function_name parameter.
8675 (ada_type_name): Change result type from char * to const char *.
8676 All callers updated.
8677 * ada-lang.h (ada_type_name): Update.
8678 * buildsym.c (hashname): Change type of name parameter
8679 from char * to const char *.
8680 * buildsym.h (hashname): Update.
8681 * dbxread.c (end_psymtab): Change type of include_list parameter
8682 from char ** to const char **.
8683 * dwarf2read.c (determine_prefix): Change result type
8684 from char * to const char *. All callers updated.
8685 * f-lang.c (find_common_for_function): Change type of name, funcname
8686 parameters from char * to const char *.
8687 * f-lang.c (find_common_for_function): Update.
8688 * f-valprint.c (list_all_visible_commons): Change type of funcname
8689 parameters from char * to const char *.
8690 * gdbarch.sh (static_transform_name): Change type of name parameter
8691 and result from char * to const char *.
8692 * gdbarch.c: Regenerate.
8693 * gdbarch.h: Regenerate.
8694 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8695 of name parameter from char * to const char *.
8696 * jv-lang.c (java_primitive_type_from_name): Ditto.
8697 (java_demangled_signature_length): Similarly for signature parameter.
8698 (java_demangled_signature_copy): Ditto.
8699 (java_demangle_type_signature): Ditto.
8700 * jv-lang.h (java_primitive_type_from_name): Update.
8701 (java_demangle_type_signature): Update.
8702 * objc-lang.c (specialcmp): Change type of a,b parameters
8703 from char * to const char *.
8704 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8705 from char * to const char *. All callers updated.
8706 * p-lang.h (is_pascal_string_type): Update.
8707 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8708 of name parameter from char * to const char *.
8709 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8710 * utils.c (fprintf_symbol_filtered): Ditto.
8711 * defs.h (fprintf_symbol_filtered): Update.
8712 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8713 * stabsread.h (end_psymtab): Update.
8714 * stack.c (find_frame_funname): Change type of funname parameter
8715 from char ** to const char **.
8716 * stack.h (find_frame_funname): Update.
8717 * typeprint.c (type_print): Change type of varstring parameter
8718 from char * to const char *.
8719 * value.h (type_print): Update.
8720 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8721 from char * to const char *. All callers updated.
8722 (xcoff_end_psymtab): Change type of include_list parameter
8723 from char ** to const char **. All callers updated.
8724 (swap_sym): Similarly for name parameter. All callers updated.
8725 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8726 Use xstrdup.
8727 (process_coff_symbol): Use xstrdup.
8728 * stabsread.c (stabs_method_name_from_physname): Renamed from
8729 update_method_name_from_physname. Change result type from void
8730 to char *. All callers updated.
8731 (read_member_functions): In has_destructor case, store name in objfile
8732 obstack instead of malloc space. In !has_stub case, fix mem leak.
8733
5579a92e
TT
87342012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8735
8736 * configure: Rebuild.
8737 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8738 LDFLAGS.
8739
9058f767
KB
87402012-02-03 Kevin Buettner <kevinb@redhat.com>
8741
8742 * configure.tgt (rl78-*-elf): New target.
8743 * rl78-tdep.c: New file.
8744
5b37825d
PW
87452012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8746
8747 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8748 and continue the loop. Add QUIT statement.
8749
e009ee71
TT
87502012-02-03 Tom Tromey <tromey@redhat.com>
8751
8752 PR gdb/13596:
8753 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8754 bfd_lookup_symbol_from_symtab.
8755 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8756 gdb_bfd_lookup_symbol_from_symtab.
8757
f7e44f65
JB
87582012-02-03 Joel Brobecker <brobecker@adacore.com>
8759
8760 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8761 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8762 symbol. Add assertion that sym2 is never NULL.
8763
2c02bd72
DE
87642012-02-02 Doug Evans <dje@google.com>
8765
8766 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8767 "name" parameter to const char ** from char **. All callers updated.
8768 (find_pc_partial_function): Ditto.
8769 (cache_pc_function_name): Change type to const char * from char *.
8770 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8771 (find_pc_partial_function): Update.
8772 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8773 type of "name" parameter to const char * from char *.
8774 All uses updated.
8775 * arch-utils.c (generic_in_solib_return_trampoline): Change
8776 type of "name" parameter to const char * from char *.
8777 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8778 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8779 type of "name" parameter to const char * from char *.
8780 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8781 * gdbarch.c: Regenerate.
8782 * gdbarch.h: Regenerate.
8783 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8784 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8785 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8786 type of "name" parameter to const char * from char *.
8787 * skip.c (skip_function_pc): Ditto.
8788 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8789 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8790 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8791 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8792 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8793 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8794 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8795 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8796 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8797
e886a173
PA
87982012-02-02 Pedro Alves <palves@redhat.com>
8799
8800 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8801 the current inferior has no execution. Make sure the current
8802 remote process matches gdb's current inferior.
8803
c709a7c2
TT
88042012-02-02 Tom Tromey <tromey@redhat.com>
8805
8806 PR gdb/13405:
8807 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8808 read-only memory.
8809
f149aabd
TT
88102012-02-02 Tom Tromey <tromey@redhat.com>
8811
8812 PR gdb/9307:
8813 * symtab.c (lookup_language_this): Set block_found.
8814
03bef283
TT
88152012-02-01 Tom Tromey <tromey@redhat.com>
8816
8817 PR gdb/13431:
8818 * jit.c (struct jit_inferior_data): Rewrite.
8819 (struct jit_objfile_data): New.
8820 (get_jit_objfile_data): New function.
8821 (add_objfile_entry): Update.
8822 (jit_read_descriptor): Return int. Replace descriptor_addr
8823 argument with inf_data. Update. Don't call error.
8824 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8825 descriptor here.
8826 (jit_inferior_init): Don't look up descriptor. Don't call error.
8827 (jit_reset_inferior_data_and_breakpoints)
8828 (jit_inferior_created_observer): Remove.
8829 (jit_inferior_exit_hook): Update.
8830 (jit_executable_changed_observer): Remove.
8831 (jit_event_handler): Update.
8832 (free_objfile_data): Reset inferior data if needed.
8833 (_initialize_jit): Update.
8834
f0bbc364
TT
88352012-02-01 Tom Tromey <tromey@redhat.com>
8836
8837 * jit.c (bfd_open_from_target_memory): Move higher in file.
8838
47c1316c
TG
88392012-02-01 Tristan Gingold <gingold@adacore.com>
8840
8841 * libunwind-frame.c (libunwind_load): Display message if dlopen
8842 failed.
8843
8e704927
GB
88442012-02-01 Gary Benson <gbenson@redhat.com>
8845
09c7a31f 8846 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
8847 (iterate_over_symbols): Use the above.
8848 * symtab.c (iterate_over_symbols): Likewise.
8849 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8850 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8851 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8852 (iterate_name_matcher): Document return values.
8853 (collect_one_symbol): Likewise.
8854 (collect_function_symbols): Likewise.
8855 (collect_symbols): Likewise.
8856
d9680e73
TT
88572012-02-01 Tom Tromey <tromey@redhat.com>
8858
8859 * ada-lang.c (resolve_subexp): Update.
8860 (ada_lookup_symbol_list): Add 'full_search' argument.
8861 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8862 ada_lookup_symbol_list.
8863 (ada_lookup_encoded_symbol): Update.
8864 (get_var_value): Update.
8865 * ada-exp.y (block_lookup): Update.
8866 (write_var_or_type): Update.
8867 (write_name_assoc): Update.
8868 * ada-lang.h (ada_lookup_symbol_list): Update.
8869
72e1143f
TT
88702012-01-31 Tom Tromey <tromey@redhat.com>
8871
8872 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8873 comment.
8874
ab2d2ad3
DE
88752012-01-31 Doug Evans <dje@google.com>
8876
8877 * symtab.h: Remove outdated comment.
e9111bf7 8878 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 8879
bc884eba
JB
88802012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8881
8882 Fix build error in Darwin port.
8883 * i386-darwin-nat.c: Include i386-nat.h.
8884
8fc3fc34
TT
88852012-01-30 Tom Tromey <tromey@redhat.com>
8886
8887 PR breakpoints/13568:
8888 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8889 argument. Check for recursive includes.
8890 (dwarf_decode_macros): Create an include hash.
8891
5d853008
ME
88922012-01-30 Michael Eager <eager@eagercon.com>
8893
8894 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8895 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 8896 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
8897 (powerpc_linux_in_plt_stub): New function.
8898 (powerpc_linux_in_dynsym_resolve_code): New function.
8899 (ppc_skip_trampoline_code): New function.
8900 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8901 Use glibc_skip_solib_resolver.
8902
40478521
JK
89032012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8904
8905 Code cleanup: Make 1440 bytes of data segment read-only.
8906 * arch-utils.c (endian_enum): Make it const char *const [].
8907 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8908 Likewise.
8909 * breakpoint.c (always_inserted_enums): Likewise.
8910 * cli/cli-cmds.c (script_ext_enums): Likewise.
8911 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8912 enumlist parameter const char *const *.
8913 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8914 const char *const *.
8915 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8916 parameter const char *const *.
8917 * cris-tdep.c (cris_modes): Make it const char *const [].
8918 * filesystem.c (target_file_system_kinds): Likewise.
8919 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8920 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8921 (can_use_displaced_stepping_enum, scheduler_enums)
8922 (exec_direction_names): Likewise.
8923 * language.c (_initialize_language): Make the type_or_range_names and
8924 case_sensitive_names variables const char *const [].
8925 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8926 * python/python.c (python_excp_enums): Likewise.
8927 * remote.c (interrupt_sequence_modes): Likewise.
8928 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8929 * serial.c (logbase_enums): Likewise.
8930 * sh-tdep.c (sh_cc_enum): Likewise.
8931 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8932 Likewise.
8933 * symtab.c (multiple_symbols_modes): Likewise.
8934 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8935 Likewise.
8936 * utils.c (internal_problem_modes): Likewise.
8937
b3b8b934
JK
89382012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8939
8940 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8941 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8942 result.
8943
8c85a4e2
DE
89442012-01-27 Doug Evans <dje@google.com>
8945
8946 * configure.ac (with_python): Fix absolute path handling for win32.
8947 * configure: Regenerate.
8948
78d8b4d7
DE
89492012-01-26 Doug Evans <dje@google.com>
8950
eca864fe
DE
8951 * symtab.c: Whitespace cleanup, no code changes.
8952
7e082072
DE
8953 * symtab.c (lookup_symbol_in_language): Improve comment.
8954 (lookup_symbol_aux): Fix comment.
8955
7dc25483
DE
8956 * psymtab.c (add_psymbol_to_list): Result is now "void".
8957 * psympriv.h (add_psymbol_to_list): Update.
8958
78d8b4d7
DE
8959 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8960
4c63965b
JK
89612012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8962
8963 Do not open script filenames twice.
8964 * cli/cli-cmds.c (source_script_from_stream): Pass to
8965 source_python_script also STREAM.
8966 * python/py-auto-load.c (source_section_scripts): Pass to
8967 source_python_script_for_objfile also STREAM.
8968 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8969 also INPUT.
8970 * python/python-internal.h (source_python_script_for_objfile): New
8971 parameter file, rename parameter file to filename.
8972 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8973 instead if !_WIN32. Update the function comment.
8974 (source_python_script, source_python_script_for_objfile)
8975 (source_python_script): New parameter file, rename parameter file to
8976 filename. Pass FILENAME to python_run_simple_file.
8977 * python/python.h (source_python_script): New parameter file, rename
8978 parameter file to filename.
8979
88f38a04
PA
89802012-01-26 Pedro Alves <palves@redhat.com>
8981
8982 * corelow.c (core_has_fake_pid): Delete.
8983 (core_close): Delete references to `core_has_fake_pid'.
8984 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8985 (core_open): Delete references to `core_has_fake_pid'.
8986 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8987 the removed global.
8988
e078317b
JB
89892012-01-26 Joel Brobecker <brobecker@adacore.com>
8990
8991 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8992 Remove language parameter from name_matcher. Adjust the comment.
8993 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8994 Remove language parameter.
8995 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8996 * linespec.c (iterate_name_matcher): Likewise.
8997 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8998 name_matcher. Adjust call accordingly.
8999 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
9000 (maintenance_check_symtabs): Adjust type of parameter "fun".
9001 * psymtab.h (maintenance_check_symtabs): Likewise.
9002
74ccd7f5
JB
90032012-01-26 Joel Brobecker <brobecker@adacore.com>
9004
9005 * language.h (symbol_name_match_p_ftype): New typedef.
9006 (struct language_defn): Replace field la_symbol_name_compare
9007 by la_get_symbol_name_match_p.
9008 * ada-lang.c (ada_get_symbol_name_match_p): New function.
9009 (ada_language_defn): Use it.
9010 * linespec.c (struct symbol_matcher_data): New type.
9011 (iterate_name_matcher): Rewrite.
9012 (iterate_over_all_matching_symtabs): Pass a pointer to
9013 a symbol_matcher_data struct to expand_symtabs_matching
9014 instead of just the lookup name.
9015 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
9016 opencl-lang.c, p-lang.c, language.c: Delete field
9017 la_symbol_name_compare, and replace by NULL for new field
9018 la_get_symbol_name_match_p.
9019 * symfile.h (struct quick_symbol_functions): Update comment.
9020
5d268276
TT
90212012-01-25 Tom Tromey <tromey@redhat.com>
9022
9023 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
9024 dereferencing.
9025
edcc5120
TT
90262012-01-24 Tom Tromey <tromey@redhat.com>
9027
9028 PR symtab/12406:
9029 * solib.c (update_solib_list): Update the program space's
9030 added_solibs and deleted_solibs fields.
9031 * progspace.h (struct program_space) <added_solibs,
9032 deleted_solibs>: New fields.
9033 (clear_program_space_solib_cache): Declare.
9034 * progspace.c (release_program_space): Call
9035 clear_program_space_solib_cache.
9036 (clear_program_space_solib_cache): New function.
9037 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
9038 bpstat_stop_status. Use handle_solib_event.
9039 * breakpoint.c: Include gdb_regex.h.
9040 (print_solib_event): New function.
9041 (bpstat_print): Use print_solib_event.
9042 (bpstat_stop_status): Add special case for bp_shlib_event.
9043 (handle_solib_event): New function.
9044 (bpstat_what): Use handle_solib_event.
9045 (struct solib_catchpoint): New.
9046 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
9047 (breakpoint_hit_catch_solib, check_status_catch_solib)
9048 (print_it_catch_solib, print_one_catch_solib)
9049 (print_mention_catch_solib, print_recreate_catch_solib): New
9050 functions.
9051 (catch_solib_breakpoint_ops): New global.
9052 (catch_load_or_unload, catch_load_command_1)
9053 (catch_unload_command_1): New functions.
9054 (internal_bkpt_check_status): Add special case for
9055 bp_shlib_event.
9056 (internal_bkpt_print_it): Use print_solib_event.
9057 (initialize_breakpoint_ops): Initialize
9058 catch_solib_breakpoint_ops.
9059 (_initialize_breakpoint): Register "catch load" and "catch
9060 unload".
9061 * breakpoint.h (handle_solib_event): Declare.
9062 * NEWS: Add entry for "catch load" and "catch unload".
9063
fa864999
TT
90642012-01-24 Tom Tromey <tromey@redhat.com>
9065
9066 * ada-lang.c: Include gdb_vecs.h.
9067 * charset.c: Include gdb_vecs.h.
9068 * tracepoint.h: Include gdb_vecs.h.
9069 * gdb_vecs.h: New file.
9070
f90263c1
TT
90712012-01-24 Pedro Alves <pedro@codesourcery.com>
9072
9073 * breakpoint.c (breakpoint_hit_catch_fork)
9074 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
9075 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
9076 * infrun.c (inferior_has_forked, inferior_has_vforked)
9077 (inferior_has_execd, inferior_has_called_syscall): Delete.
9078 (handle_syscall_event): Get syscall_number from the execution
9079 control state's wait status.
9080 (wait_for_inferior): Don't clear syscall_number.
9081
09ac7c10
TT
90822012-01-24 Pedro Alves <palves@redhat.com>
9083
9084 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
9085 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
9086 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
9087 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
9088 `ws' parameter.
9089 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
9090 false for events other than TARGET_SIGNAL_TRAP.
9091 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
9092 Add `ws' parameter.
9093 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
9094 events other than TARGET_SIGNAL_TRAP.
9095 (tracepoint_breakpoint_hit): Add `ws' parameter.
9096 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
9097 parameter.
9098 (bpstat_stop_status): Same.
9099 (pc_at_non_inline_function): Same.
9100 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
9101 to pass the current event's waitstatus to bpstat_stop_status
9102 and pc_at_non_inline_function.
9103
86eb7e95
JK
91042012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9105
9106 Code cleanup.
9107 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
9108 Update the function comment for it.
9109 (source_script_with_search): Call make_cleanup_fclose for STREAM.
9110 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
9111 for STREAM.
9112
a9b3a50f
PA
91132012-01-24 Pedro Alves <palves@redhat.com>
9114
9115 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
9116 outside `bs->stop' block.
9117 (bpstat_what): Rework bp_shlib_event handling.
9118 (internal_bkpt_check_status): If the breakpoint is a
9119 bp_shlib_event, then set bs->stop and bs->print if
9120 stop_on_solib_events is set.
9121
53fe1783
GB
91222012-01-24 Gary Benson <gbenson@redhat.com>
9123
9124 Delete #if 0'd out code.
9125 * stack.c (print_frame_label_vars): Remove.
9126 (catch_info): Likewise.
9127 (_initialize_stack): Remove "info catch" command.
9128 * NEWS: Mention the above.
9129
49c62f2e
PA
91302012-01-24 Pedro Alves <palves@redhat.com>
9131
9132 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
9133 it.
9134 (remote_notice_new_inferior): If the remote end doesn't support
9135 the multiprocess extensions, then the PID is fake.
9136 (add_current_inferior_and_thread): New.
9137 (remote_start_remote): Use it.
9138 (extended_remote_attach_1): Adjust.
9139 (extended_remote_create_inferior_1): Use
9140 add_current_inferior_and_thread.
9141
d0d8b0c6
JK
91422012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9143
9144 Fix watchpoints to be specific for each inferior.
9145 * breakpoint.c (watchpoint_in_thread_scope): Verify also
9146 current_program_space.
9147 * i386-nat.c (i386_inferior_data_cleanup): New.
9148 (i386_inferior_data_get): Replace variable inf_data_local by an
9149 inferior_data call.
9150 (i386_use_watchpoints): Initialize i386_inferior_data.
9151 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
9152 specific iterate_over_lwps.
9153
4403d8e9
JK
91542012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 Fix watchpoints across inferior fork.
9157 * amd64-linux-nat.c (update_debug_registers_callback): Update the
9158 comment for linux_nat_iterate_watchpoint_lwps.
9159 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
9160 linux_nat_iterate_watchpoint_lwps.
9161 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
9162 * i386-linux-nat.c (update_debug_registers_callback): Update the
9163 comment for linux_nat_iterate_watchpoint_lwps.
9164 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
9165 linux_nat_iterate_watchpoint_lwps.
9166 (i386_linux_prepare_to_resume): New comment on Linux kernel.
9167 * i386-nat.c: Include inferior.h.
9168 (dr_mirror): Remove.
9169 (i386_inferior_data, struct i386_inferior_data)
9170 (i386_inferior_data_get): New.
9171 (i386_debug_reg_state): Use i386_inferior_data_get.
9172 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
9173 (i386_insert_watchpoint, i386_remove_watchpoint)
9174 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9175 (i386_remove_hw_breakpoint): New variable state, use
9176 i386_debug_reg_state instead of DR_MIRROR.
9177 * linux-nat.c (delete_lwp): New declaration.
9178 (num_lwps): Move here from downwards.
9179 (delete_lwp_cleanup): New.
9180 (linux_child_follow_fork): Create new child_lp, call
9181 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9182 PTRACE_DETACH.
9183 (num_lwps): Move upwards.
9184 (linux_nat_iterate_watchpoint_lwps): New.
9185 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9186 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9187
2992c9a7 91882012-01-24 Joel Brobecker <brobecker@adacore.com>
9189
9190 GDB 7.4 released.
9191
e360902b
PA
91922012-01-23 Pedro Alves <palves@redhat.com>
9193
9194 * top.c (caution): Rename to ...
9195 (confirm): ... this.
9196 (show_caution): Rename to ...
9197 (show_confirm): ... this.
9198 (quit_cover): Adjust.
9199 (init_main): Adjust.
9200 * top.h (caution): Rename to ...
9201 (confirm): ... this.
9202 * utils.c (internal_vproblem, defaulted_query): Adjust.
9203
050a2e1d
PA
92042012-01-23 Pedro Alves <palves@redhat.com>
9205
9206 * top.c (caution): Update comment.
9207 (execute_command): Don't consider the current value of `caution'.
9208
77a35dd8
JK
92092012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9212
a71b5a38
UW
92132012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9214
9215 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9216 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9217 * target.c (target_fileio_pwrite): Remove buffer address from
9218 debug output.
9219 (target_fileio_pread): Likewise.
9220
d99bd577
UW
92212012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9222
9223 * NEWS: Document remote "info proc" and "generate-core-file".
9224
35c2fab7
UW
92252012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9226
9227 * gdbarch.sh (find_memory_regions): New callback.
9228 * gdbarch.c, gdbarch.h: Regenerate.
9229
9230 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9231 callback before falling back to target method.
9232
9233 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9234 (linux_target_install_ops): No longer install it.
9235
9236 * linux-tdep.c (linux_find_memory_regions): New function.
9237 (linux_init_abi): Install it.
9238
6432734d
UW
92392012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9240
9241 * gdbarch.sh (make_corefile_notes): New architecture callback.
9242 * gdbarch.c: Regenerate.
9243 * gdbarch.h: Likewise.
9244
9245 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9246 before target_make_corefile_notes. If NULL is returned, the
9247 target does not support core file generation.
9248
9249 * linux-nat.c: Include "linux-tdep.h".
9250 (find_signalled_thread, find_stop_signal): Remove.
9251 (linux_nat_do_thread_registers): Likewise.
9252 (struct linux_nat_corefile_thread_data): Likewise.
9253 (linux_nat_corefile_thread_callback): Likewise.
9254 (iterate_over_spus): Likewise.
9255 (struct linux_spu_corefile_data): Likewise.
9256 (linux_spu_corefile_callback): Likewise.
9257 (linux_spu_make_corefile_notes): Likewise.
9258 (linux_nat_collect_thread_registers): New function.
9259 (linux_nat_make_corefile_notes): Replace contents by call to
9260 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9261 as native-only callback.
9262
9263 * linux-tdep.h: Include "bfd.h".
9264 (struct regcache): Add forward declaration.
9265 (linux_collect_thread_registers_ftype): New typedef.
9266 (linux_make_corefile_notes): Add prototype.
9267 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9268 "regset.h", and "elf-bfd.h".
9269 (find_signalled_thread, find_stop_signal): New functions.
9270 (linux_spu_make_corefile_notes): Likewise.
9271 (linux_collect_thread_registers): Likewise.
9272 (struct linux_corefile_thread_data): New data structure.
9273 (linux_corefile_thread_callback): New funcion.
9274 (linux_make_corefile_notes): Likewise.
9275 (linux_make_corefile_notes_1): Likewise.
9276 (linux_init_abi): Install it.
9277
3030c96e
UW
92782012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9279
9280 * gdbarch.sh (info_proc): New callback.
9281 * gdbarch.c, gdbarch.h: Regenerate.
9282
9283 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9284 before falling back to the target info_proc callback.
9285
9286 * linux-nat.c: Do not include "cli/cli-utils.h".
9287 (linux_nat_info_proc): Remove.
9288 (linux_target_install_ops): No longer install it.
9289
9290 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9291 (read_mapping): New function.
9292 (linux_info_proc): Likewise.
9293 (linux_init_abi): Install it.
9294
145b16a9
UW
92952012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9296
9297 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9298 * infcmd.c: (info_proc_cmd_1): New function.
9299 (info_proc_cmd): New function, moved here from equivalent routine
9300 orignally in linux-nat.c.
9301 (info_proc_cmd_mappings): Likewise.
9302 (info_proc_cmd_stat): Likewise.
9303 (info_proc_cmd_status): Likewise.
9304 (info_proc_cmd_cwd): Likewise.
9305 (info_proc_cmd_cmdline): Likewise.
9306 (info_proc_cmd_exe): Likewise.
9307 (info_proc_cmd_all): Likewise.
9308 (_initialize_infcmd): Install "info proc" command and subcommands.
9309
9310 * target.h (struct target_ops): Add to_info_proc.
9311 (target_info_proc): Add prototype.
9312 * target.c (target_info_proc): New function.
9313
9314 * procfs.c (procfs_info_proc): Add prototype.
9315 (info_proc_cmd): Rename into ...
9316 (procfs_info_proc): ... this. Update argument types as appropriate
9317 for a to_info_proc implementation. Handle "what" argument.
9318 (procfs_target): Install procfs_info_proc.
9319 (_initialize_procfs): No longer install "info proc" command.
9320
9321 * linux-nat.c: (enum info_proc_what): Remove.
9322 (linux_nat_info_proc_cmd_1): Rename into ...
9323 (linux_nat_info_proc): ... this. Update argument types as appropriate
9324 for a to_info_proc implementation.
9325 (linux_nat_info_proc_cmd): Remove.
9326 (linux_nat_info_proc_cmd_mappings): Likewise.
9327 (linux_nat_info_proc_cmd_stat): Likewise.
9328 (linux_nat_info_proc_cmd_status): Likewise.
9329 (linux_nat_info_proc_cmd_cwd): Likewise.
9330 (linux_nat_info_proc_cmd_cmdline): Likewise.
9331 (linux_nat_info_proc_cmd_exe): Likewise.
9332 (linux_nat_info_proc_cmd_all): Likewise.
9333 (linux_target_install_ops): Install linux_nat_info_proc.
9334 (_initialize_linux_nat): No longer install "info proc" command
9335 and subcommands.
9336
b9e7b9c3
UW
93372012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9338
9339 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9340 * config.in, configure: Regenerate.
9341
9342 * target.h (struct target_ops): Add to_fileio_readlink.
9343 (target_fileio_readlink): Add prototype.
9344 * target.c (target_fileio_readlink): New function.
9345
9346 * inf-child.c: Conditionally include <sys/param.h>.
9347 (inf_child_fileio_readlink): New function.
9348 (inf_child_target): Install it.
9349
9350 * remote.c (PACKET_vFile_readlink): New enum value.
9351 (remote_hostio_readlink): New function.
9352 (init_remote_ops): Install it.
9353 (_initialize_remote): Handle vFile:readlink packet type.
9354
7313baad
UW
93552012-01-20 Pedro Alves <palves@redhat.com>
9356 Ulrich Weigand <ulrich.weigand@linaro.org>
9357
9358 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9359 * config.in, configure: Regenerate.
9360
9361 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9362 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9363 (target_fileio_open): Add prototype.
9364 (target_fileio_pwrite): Likewise.
9365 (target_fileio_pread): Likewise.
9366 (target_fileio_close): Likewise.
9367 (target_fileio_unlink): Likewise.
9368 (target_fileio_read_alloc): Likewise.
9369 (target_fileio_read_stralloc): Likewise.
9370
9371 * target.c: Include "gdb/fileio.h".
9372 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9373 (default_fileio_target): New function.
9374 (target_fileio_open): Likewise.
9375 (target_fileio_pwrite): Likewise.
9376 (target_fileio_pread): Likewise.
9377 (target_fileio_close): Likewise.
9378 (target_fileio_unlink): Likewise.
9379 (target_fileio_close_cleanup): Likewise.
9380 (target_fileio_read_alloc_1): Likewise.
9381 (target_fileio_read_alloc): Likewise.
9382 (target_fileio_read_stralloc): Likewise.
9383
9384 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9385 <fcntl.h>, and <unistd.h>.
9386 (inf_child_fileio_open_flags_to_host): New function.
9387 (inf_child_errno_to_fileio_error): Likewise.
9388 (inf_child_fileio_open): Likewise.
9389 (inf_child_fileio_pwrite): Likewise.
9390 (inf_child_fileio_pread): Likewise.
9391 (inf_child_fileio_close): Likewise.
9392 (inf_child_fileio_unlink): Likewise.
9393 (inf_child_target): Install to_fileio routines.
9394
9395 * remote.c (init_remote_ops): Install to_fileio routines.
9396
901f9912
UW
93972012-01-20 Pedro Alves <palves@redhat.com>
9398 Ulrich Weigand <ulrich.weigand@linaro.org>
9399
9400 * remote.c (remote_multi_process_p): Only check for multi-process
9401 protocol feature, do not check for extended protocol.
9402 (remote_supports_multi_process): Check for extended protocol here.
9403 (set_general_process): Likewise.
9404 (extended_remote_kill): Likewise.
9405 (remote_pid_to_str): Likewise.
9406 (remote_query_supported): Always query multiprocess mode.
9407
e714e1bf
UW
94082012-01-20 Pedro Alves <palves@redhat.com>
9409 Ulrich Weigand <ulrich.weigand@linaro.org>
9410
9411 * inferior.h (struct inferior): Add fake_pid_p.
9412 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9413 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9414 magic_null_ptid since the remote side doesn't provide a real PID.
9415
50897289
TT
94162012-01-19 Tom Tromey <tromey@redhat.com>
9417
9418 * NEWS: Combine the two Python sections.
9419
1afc2033
JK
94202012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9421
9422 * target.h (target_close): Update comment on the target's unpush state.
9423
305436e0
PA
94242012-01-19 Pedro Alves <palves@redhat.com>
9425
9426 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9427 linux_nat_async directly instead of going through the target
9428 vector.
9429 * target.c (unpush_target): Close target after unpushing it, not
9430 before.
9431
49323895
GB
94322012-01-19 Gary Benson <gbenson@redhat.com>
9433
9434 * mdebugread.c (sort_blocks): Replace integer constants with ones
9435 derived from FIRST_LOCAL_BLOCK.
9436
1db33378
PP
94372012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9438 Jan Kratochvil <jan.kratochvil@redhat.com>
9439
9440 PR gdb/9538
9441 * symfile.c (find_separate_debug_file): New function.
9442 (terminate_after_last_dir_separator): Likewise.
9443 (find_separate_debug_file_by_debuglink): Also try realpath.
9444 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9445 * configure: Regenerate.
9446 * config.in: Regenerate.
9447
f83d8a90
DE
94482012-01-18 Doug Evans <dje@google.com>
9449
9450 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9451 (main.o): Remove rule.
9452 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9453 (--with-sysroot): Rewrite.
9454 * configure: Regenerate.
9455 * config.in: Regenerate.
9456
2dbca4d6
SDJ
94572012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9458
9459 * parse.c (initialize_expout): New function.
9460 (reallocate_expout): Likewise.
9461 (parse_exp_in_context): Use `initialize_expout' and
9462 `reallocate_expout' when appropriate.
9463
0695b514
PA
94642012-01-18 Pedro Alves <palves@redhat.com>
9465
9466 * record.c (struct record_breakpoint, record_breakpoint_p)
9467 (record_breakpoints): New.
9468 (record_insert_breakpoint, record_remove_breakpoint): Manage
9469 record breakpoints list. Only remove breakpoints from the
9470 inferior if they had been inserted there in the first place.
9471
136e1c30
DE
94722012-01-17 Doug Evans <dje@google.com>
9473
9474 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9475 if we know we don't have a file name to look for.
9476
c0bf857d
PA
94772012-01-17 Pedro Alves <palves@redhat.com>
9478
9479 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9480 the frame's stop reason is UNWIND_UNAVAILABLE.
9481
b486de60
JK
94822012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9483
9484 Fix compilation error.
9485 * m2-exp.y (yyerror): Use ANSI C prototype.
9486
d04550a6
SDJ
94872012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9488
9489 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9490 (growbuf_by_size): Likewise.
9491 (yyerror): Likewise.
9492 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9493 (modblock): Remove variable (was #if 0'ed).
9494 (parse_number): Convert prototype from K&R to ANSI C.
9495 (yyerror): Likewise.
9496 * objc-exp.y (parse_number): Likewise.
9497 (yyerror): Likewise.
9498 (yylex): Remove #if 0'ed code.
9499 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9500 (yyerror): Likewise.
9501
4aac40c8
TT
95022012-01-16 Tom Tromey <tromey@redhat.com>
9503
9504 * NEWS: Add item.
9505 * symtab.h (compare_filenames_for_search): Declare.
9506 * symtab.c (compare_filenames_for_search): New function.
9507 (iterate_over_some_symtabs): Use it.
9508 * symfile.h (struct quick_symbol_functions)
9509 <map_symtabs_matching_filename>: Change spec.
9510 * psymtab.c (partial_map_symtabs_matching_filename): Use
9511 compare_filenames_for_search. Update for new spec.
9512 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9513 compare_filenames_for_search. Update for new spec.
9514 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9515
cafec441
TT
95162012-01-16 Tom Tromey <tromey@redhat.com>
9517
9518 PR python/13281:
9519 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9520 (struct main_type) <flag_flag_enum>: New field.
9521 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9522 * NEWS: Add entries.
9523 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9524 enums.
9525 * python/lib/gdb/printing.py (_EnumInstance): New class.
9526 (FlagEnumerationPrinter): Likewise.
9527
983af33b
SDJ
95282012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9529
9530 * breakpoint.c (create_sals_from_address_default): New function.
9531 (create_breakpoints_sal_default): Likewise.
9532 (decode_linespec_default): Likewise.
9533 (is_marker_spec): Removed.
9534 (strace_marker_p): New function.
9535 (init_breakpoint_sal): Using `strace_marker_p' instead of
9536 `is_marker_spec'.
9537 (create_breakpoint): Call method `create_sals_from_address' from
9538 breakpoint_ops, replacing code that created SALs conditionally
9539 on the type of the breakpoint. Call method `create_breakpoints_sal',
9540 replacing code that created breakpoints conditionally on the type
9541 wanted.
9542 (base_breakpoint_create_sals_from_address): New function.
9543 (base_breakpoint_create_breakpoints_sal): Likewise.
9544 (base_breakpoint_decode_linespec): Likewise.
9545 (base_breakpoint_ops): Add methods
9546 `base_breakpoint_create_sals_from_address',
9547 `base_breakpoint_create_breakpoints_sal' and
9548 `base_breakpoint_decode_linespec'.
9549 (bkpt_create_sals_from_address): New function.
9550 (bkpt_create_breakpoints_sal): Likewise.
9551 (bkpt_decode_linespec): Likewise.
9552 (tracepoint_create_sals_from_address): Likewise.
9553 (tracepoint_create_breakpoints_sal): Likewise.
9554 (tracepoint_decode_linespec): Likewise.
9555 (strace_marker_create_sals_from_address): Likewise.
9556 (strace_marker_create_breakpoints_sal): Likewise.
9557 (strace_marker_decode_linespec): Likewise.
9558 (strace_marker_breakpoint_ops): New variable.
9559 (addr_string_to_sals): Remove `marker_spec'. Call method
9560 `decode_linespec' from breakpoint_ops, replacing code that decoded
9561 an address string into a SAL. Use `strace_marker_p' instead of
9562 `marker_spec'.
9563 (strace_command): Decide whether we are dealing with a static
9564 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9565 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9566 * breakpoint.h (linespec_result, linespec_sals): New forward
9567 declarations.
9568 (breakpoint_ops) <create_sals_from_address>,
9569 <create_breakpoints_sal>, <decode_linespec>: New methods.
9570
4795f398
DE
95712012-01-14 Doug Evans <dje@google.com>
9572
9573 * NEWS: Update text for "maint set python print-stack".
9574 It is deprecated in gdb 7.4 and deleted in 7.5.
9575
ee5106fe
EZ
95762012-01-13 Eli Zaretskii <eliz@gnu.org>
9577
9578 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9579 including curses.h.
9580
b161e06f
JK
95812012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9582
9583 * configure: Regenerate.
9584 * config.in: Regenerate.
9585
85254831
KS
95862012-01-12 Keith Seitz <keiths@redhat.com>
9587
9588 PR mi/10586
9589 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9590 (ANONYMOUS_UNION_NAME): Define.
9591 (is_path_expr_parent): New function.
9592 (get_path_expr_parent): New function.
9593 (is_anonymous_child): New function.
9594 (create_child_with_value): If the child is anonymous and without
9595 a name, assign an object name to it.
9596 (c_describe_child): Use get_path_expr_parent to determine
9597 the parent expression.
9598 If there field represents an anonymous struct or union and
9599 has no name, set an appropriate display name and expression.
9600 (cplus_describe_child): Likewise.
9601
620fa63a
PA
96022012-01-12 Pedro Alves <palves@redhat.com>
9603
9604 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9605 available when %ebp is found to be zero (outermost).
9606
2efa2c79
AT
96072012-01-11 Andreas Tobler <andreast@fgznet.ch>
9608
9609 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9610 an internal gdb_static_assert.
9611 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9612
88e7d25d
TT
96132012-01-11 Tom Tromey <tromey@redhat.com>
9614
9615 PR gdb/9598:
9616 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9617 catch" and "catch throw".
9618
72384ba3
PH
96192012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9620
9621 * blockframe.c (block_innermost_frame): Start search from selected
9622 frame, if present, or otherwise the current frame.
9623
9624 * c-exp.y (variable): Update innermost_block for
9625 'block COLONCOLON NAME' clause.
9626 * m2-exp.y (variable): Ditto.
9627 * objc-exp.y (variable): Ditto.
9628
065a711f
TT
96292012-01-10 Tom Tromey <tromey@redhat.com>
9630
9631 PR python/13199:
9632 * python/python.c (finish_python_initialization): Set sys.argv.
9633
f3f5162e
DE
96342012-01-10 Doug Evans <dje@google.com>
9635
9636 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9637 "want_line_info". All callers updated.
9638 (dwarf_decode_lines_1): New function.
9639 (handle_DW_AT_stmt_list): Add function comment.
9640 New arg "want_line_info". All callers updated.
9641 (read_file_scope,read_type_unit_scope): Move comment from
9642 handle_DW_AT_stmt_list to here.
9643
9934703b
JK
96442012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9645
9646 Fix regression after libiberty/ update for GCC PR 6057 and others.
9647 * c-exp.y (operator) <OPERATOR DELETE>
9648 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9649 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9650 (make_builtin_type, make_name): New variable i, add gdb_assert.
9651 (operator) <OPERATOR NEW>: Update ARGS to 3.
9652 (operator) <OPERATOR DELETE>: Add trailing space.
9653 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9654 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9655 * cp-support.c (cp_canonicalize_string): Check NULL from
9656 cp_comp_to_string, call warning and return.
9657
06b9f45f
JK
96582012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9659
9660 Fix duplicate .o files after omitting libbfd.a.
9661 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9662 (SFILES): Add corelow.c.
9663 (COMMON_OBS): Add corelow.o.
9664 (ALLDEPFILES): Remove corelow.c.
9665 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9666 * config/alpha/alpha-osf3.mh: Likewise.
9667 * config/alpha/fbsd.mh: Likewise.
9668 * config/arm/nbsdaout.mh: Likewise.
9669 * config/arm/nbsdelf.mh: Likewise.
9670 * config/i386/i386gnu.mh: Likewise.
9671 * config/ia64/hpux.mh: Likewise.
9672 * config/ia64/linux.mh: Likewise.
9673 * config/m32r/linux.mh: Likewise.
9674 * config/m68k/linux.mh: Likewise.
9675 * config/mips/irix5.mh: Likewise.
9676 * config/mips/irix6.mh: Likewise.
9677 * config/pa/hpux.mh: Likewise.
9678 * config/pa/linux.mh: Likewise.
9679 * config/powerpc/aix.mh: Likewise.
9680 * config/sparc/linux.mh: Likewise.
9681 * config/sparc/linux64.mh: Likewise.
9682 * config/sparc/sol2.mh: Likewise.
9683 * config/vax/vax.mh: Likewise.
9684 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9685 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9686 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9687 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9688 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9689 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9690 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9691 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9692 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9693 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9694 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9695 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9696 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9697 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9698 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9699 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9700 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9701 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9702 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9703 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9704 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9705 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9706 corelow.o from gdb_target_obs.
9707 * corefile.c (core_target): Update the comment on NULL value.
9708 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9709 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9710 MATCHES. Drop YUMMY set on NULL.
9711 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9712 reclaim CORE_DATA if it is already NULL.
9713
34365054
DE
97142012-01-09 Doug Evans <dje@google.com>
9715
9716 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9717 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9718
696166a3
KS
97192012-01-09 Keith Seitz <keiths@redhat.com>
9720
9721 * breakpoint.c (wrapper.h): Don't include.
9722
8e7b59a5
KS
97232012-01-09 Keith Seitz <keiths@redhat.com>
9724
9725 * Makefile.in (SFILES): Remove wrapper.c.
9726 (HFILES_NO_SRCDIR): Remove wrapper.h.
9727 (COMMON_OBS): Remove wrapper.o.
9728 * cli/cli-interp.c: Don't inlude wrapper.h.
9729 * corelow.c: Likewise.
9730 (core_open): Replace gdb_target_find_new_threads with
9731 TRY_CATCH around target_find_new_threads.
9732 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9733 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9734 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9735 evaluate_expression.
9736 (varobj_set_value): Likewise for evaluate_expression and
9737 value_assign.
9738 (install_new_variable): Likewise for value_fetch_lazy.
9739 (adjust_value_for_child_access): Likewise for value_ind.
9740 (c_describe_child): Likewise for value_subscript and
9741 value_ind.
9742 (c_value_of_root): Likewise for evaluate_expression.
9743 * wrapper.c: Remove.
9744 * wrapper.h: Remove.
9745
1a4eeb98
DE
97462012-01-09 Doug Evans <dje@google.com>
9747
9ff913ba
DE
9748 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9749 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9750 "abfd" args with "section". All callers updated.
9751 Error checking code moved ...
9752 (error_check_comp_unit_head): ... here. New function.
9753 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9754 Delete arg "abfd". New arg "type_offset". All callers updated.
9755 (create_debug_types_hash_table): Simplify by using
9756 read_and_check_type_unit_head.
9757
1a4eeb98
DE
9758 * parser-defs.h (namecopy): Delete.
9759 * parse.c (namecopy, namecopy_size): Move into copy_name.
9760
2e6af8c0
JK
97612012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9762
9763 Partially fix duplicate .o files after omitting libbfd.a.
9764 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9765 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9766 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9767 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9768 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9769 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9770 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9771
9f2f828a
PA
97722012-01-09 Pedro Alves <palves@redhat.com>
9773
9774 * MAINTAINERS: Update my email address.
9775
4d72c0bc
DE
97762012-01-08 Doug Evans <dje@google.com>
9777
d467dd73
DE
9778 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9779 n_type_units. Rename type_comp_units to all_type_units.
9780 All uses updated.
9781 (add_signatured_type_cu_to_table): Renamed from
9782 add_signatured_type_cu_to_list. All callers updated.
9783
4d72c0bc
DE
9784 * gdbtypes.h (struct cplus_struct_type): Delete member
9785 nfn_fields_total. All uses removed.
9786
21b2bd31
DE
97872012-01-06 Doug Evans <dje@google.com>
9788
9789 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9790 to top of file.
9791 (dwarf2_find_comp_unit): Delete.
9792 (process_psymtab_comp_unit): Make result "void".
9793 Delete args buffer, info_ptr, buffer_size, and replace with
9794 "section". All callers updated.
9795 (dwarf2_build_psymtabs_hard): Simplify.
9796
bfd189b1
SDJ
97972012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9798 Thiago Jung Bauermann <bauerman@br.ibm.com>
9799
9800 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9801 before `struct gdb_exception'.
9802 * breakpoint.c (update_global_location_list_nothrow)
9803 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9804 * cp-abi.c (value_rtti_type): Likewise.
9805 * cp-support.c (cp_validate_operator): Likewise.
9806 * infrun.c (insert_exception_resume_breakpoint)
9807 (check_exception_resume, keep_going): Likewise.
9808 * mi-interp.c (mi_breakpoint_created)
9809 (mi_breakpoint_modified): Likewise.
9810 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9811 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9812 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9813
6b07635f
DE
98142012-01-05 Doug Evans <dje@google.com>
9815
0b30b85c
DE
9816 * dwarf2read.c (statement_prologue): Delete, unused.
9817
98714339
DE
9818 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9819 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9820
6b07635f
DE
9821 * dwarf2read.c (comp_unit_header): Delete, unused.
9822
761f4555
UW
98232012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9824
9825 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9826 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9827
2ca0b532
PA
98282012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9829
9830 * infrun.c (normal_stop): Don't skip calling the normal_stop
9831 observers if the thread was doing a multi-step, but stopped for
9832 some reason other than stepping.
9833
50aeff07
PA
98342012-01-05 Pedro Alves <alves.ped@gmail.com>
9835
9836 * cli/cli-decode.h: Add comments.
9837 (CMD_LIST_AMBIGUOUS): Moved to command.h
9838 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9839 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9840 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9841 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9842 (add_com, add_com_alias, add_info, add_info_alias)
9843 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9844 declarations.
9845 * command.h: Add and adjust comments.
9846 (CMD_LIST_AMBIGUOUS): Moved here.
9847 (help_cmd, help_cmd_list): Delete declarations.
9848
5953832c
DE
98492012-01-04 Doug Evans <dje@google.com>
9850
e5fe5e75
DE
9851 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9852 All callers updated.
9853 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9854 Replace all arguments with "per_cu". All callers updated.
9855
28dee7f5
DE
9856 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9857
23745b47
DE
9858 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9859 New arg "per_cu". All callers updated.
9860
5953832c
DE
9861 Delete #if 0'd out code.
9862 * language.c (binop_result_type): Delete.
9863 (simple_type, ordered_type, same_type, integral_type): Delete.
9864 (numeric_type, character_type, string_type, boolean_type): Delete.
9865 (float_type, structured_type): Delete.
9866 * language.h: Update.
9867
0f5b7562
TT
98682012-01-04 Tom Tromey <tromey@redhat.com>
9869
9870 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9871
78218f56
JB
98722012-01-04 Joel Brobecker <brobecker@adacore.com>
9873
9874 * corefile.c (close_exec_file): Delete.
9875 (reopen_exec_file): Remove commented out code that seems related
9876 to close_exec_file, which is being deleted here.
9877 * inferior.h (close_exec_file): Delete.
9878 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9879
0fcd72ba
JB
98802012-01-04 Joel Brobecker <brobecker@adacore.com>
9881
9882 * ada-lang.c: #include "cli/cli-utils.h".
9883 (get_selections): Use skip_spaces.
9884 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9885 (catch_ada_exception_command_split): Use skip_spaces.
9886 (ada_decode_assert_location): Likewise.
9887
1dabb4c4
JB
98882012-01-04 Joel Brobecker <brobecker@adacore.com>
9889
9890 * linespec.c (decode_line_internal): Check for C++ or Java
9891 compound constructs only if the current language is C, C++
9892 or Java.
9893
5931a2fa
JK
98942012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9895
9896 Revert:
9897 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9898 Joel Brobecker <brobecker@adacore.com>
9899 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9900 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9901 3 times.
9902 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9903 fall through into AT_ENTRY_POINT.
9904 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9905 DUMMY_ADDR with it.
9906 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9907 PPC_INSN_SIZE skip to 3 times.
9908
1a2da5ee
JB
99092012-01-04 Joel Brobecker <brobecker@adacore.com>
9910
9911 * linespec.c (add_minsym): Preserve function descriptors.
9912
8645ff69
UW
99132012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9914
9915 * breakpoint.c (all_locations_are_pending): Consider locations
9916 in program spaces executing during startup pending as well.
9917
0b302171
JB
99182012-01-04 Joel Brobecker <brobecker@adacore.com>
9919
9920 Copyright year update in most files of the GDB Project.
9921
8ba098ad
JB
99222012-01-04 Joel Brobecker <brobecker@adacore.com>
9923
9924 * copyright.sh: Delete.
9925 * copyright.py: Rewrite.
9926
09c01c30
JB
99272012-01-04 Joel Brobecker <brobecker@adacore.com>
9928
9929 * gnulib/extra/update-copyright: New file, imported from gnulib.
9930
3c36c0af
JB
99312012-01-04 Joel Brobecker <brobecker@adacore.com>
9932
9933 * README (Copyright and License Notices): New section.
9934
888fe1e1
TT
99352012-01-03 Tom Tromey <tromey@redhat.com>
9936
9937 PR python/12533:
9938 * python/py-value.c (valpy_dereference, valpy_get_address
9939 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9940 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9941 (valpy_absolute, valpy_richcompare): Free intermediate values.
9942
6e681866
JB
99432011-01-03 Joel Brobecker <brobecker@adacore.com>
9944
9945 * ada-lang.c: Reformat the copyright notice.
9946
0cd09acb
JK
99472012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9948
9949 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9950 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9951 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9952 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9953 Revert this part of:
9954 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9955 Build gdb directly from *.o files not using libgdb.a.
9956 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9957
12c3e59c
JB
99582012-01-02 Joel Brobecker <brobecker@adacore.com>
9959
9960 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9961 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9962 Reformat the copyright header.
9963
11bf1490
JK
99642012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9965
9966 Revert this part of:
9967 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9968 Remove the gdbtui binary.
9969 * gdb.c (main): Remove args.interpreter_p initialization.
9970 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9971 * main.h (struct captured_main_args): Remove interpreter_p.
9972
1fef196f
JB
99732012-01-02 Joel Brobecker <brobecker@adacore.com>
9974
9975 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9976
67827812
JB
99772012-01-02 Joel Brobecker <brobecker@adacore.com>
9978
9979 * top.c (print_gdb_version): Update copyright year.
9980
a4d0b831
YQ
99812012-01-02 Yao Qi <yao@codesourcery.com>
9982
9983 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9984
b5914469
JK
99852012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9986 Joel Brobecker <brobecker@adacore.com>
9987
9988 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9989 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9990 3 times.
9991 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9992 fall through into AT_ENTRY_POINT.
9993 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9994 DUMMY_ADDR with it.
9995 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9996 PPC_INSN_SIZE skip to 3 times.
9997
8da828f7
JK
99982012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9999
10000 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
10001 the return value.
10002 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
10003
8574e74b
JK
100042012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10005
10006 Build gdb directly from *.o files not using libgdb.a.
10007 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
10008 (COMMON_OBS): Remove solib-target.o.
10009 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
10010 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
10011 (LIBGDB_OBS, libgdb.a): Move it above.
10012 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
10013 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
10014 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
10015 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
10016 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
10017 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
10018 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
10019 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
10020 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
10021 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
10022 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
10023 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
10024 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
10025 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
10026 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
10027 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
10028 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
10029 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
10030 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
10031 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
10032 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
10033 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
10034 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
10035 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
10036 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
10037 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
10038 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
10039
217bff3e
JK
100402012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
10041
10042 Remove the gdbtui binary.
10043 * .gitignore (/gdbtui): Remove.
10044 * Makefile.in (TUI): Remove.
10045 (SUBDIR_TUI_OBS): Remove tui-main.o.
10046 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
10047 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
10048 (tui-main.o): Remove.
10049 (all_object_files): Remove tui-main.o.
10050 * NEWS: New note for the gdbtui removal.
10051 * configure: Rebuilt.
10052 * configure.ac: No longer add all-tui, clean-tui, install-tui and
10053 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
10054 CONFIG_UNINSTALL respectively.
10055 * gdb.c (main): Remove args.interpreter_p initialization.
10056 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
10057 * main.h (struct captured_main_args): Remove interpreter_p.
10058 * tui/tui-main.c: Remove.
10059
9cdd5dbd
DE
100602012-01-01 Doug Evans <dje@google.com>
10061
bb5ed363
DE
10062 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
10063 (dwarf2_physname, read_import_statement): Ditto.
10064 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
10065 (process_structure_scope read_subroutine_type): Ditto.
10066 (read_typedef, load_partial_dies, read_partial_die): Ditto.
10067 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
10068 (dwarf2_fetch_die_location_block): Ditto.
10069 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
10070
a0f42c21
DE
10071 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
10072 All callers updated.
10073 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
10074 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
10075 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
10076
2dc860c0
DE
10077 * dwarf2read.c (load_cu): Move assert to more useful location.
10078
68dc6402
DE
10079 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
10080 All callers updated.
10081
9cdd5dbd
DE
10082 * dwarf2read.c (dwarf2_per_objfile): Add comment.
10083 (dwarf2_elf_names): Minor reformat.
10084 (dwarf2_per_cu_data): Tweak comment.
10085 (dwarf2_read_section): Fix comment.
10086 (create_all_comp_units): Fix comment.
10087 (load_full_comp_unit): Fix comment.
10088 (process_full_comp_unit): Fix comment.
10089 (read_signatured_type): Fix comment.
10090
0c10e53e 10091For older changes see ChangeLog-2011.
c906108c
SS
10092\f
10093Local Variables:
10094mode: change-log
10095left-margin: 8
10096fill-column: 74
10097version-control: never
57da7796 10098coding: utf-8
c906108c 10099End:
This page took 1.819808 seconds and 4 git commands to generate.