gdb/
[binutils-gdb.git] / gdb / ChangeLog
1 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
4 and dir commands into an if block.
5
6 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
7
8 * python/py-breakpoint (struct pybp_code): Use int instead of
9 enum type_code.
10
11 2013-02-15 Pedro Alves <pedro@codesourcery.com>
12 Hafiz Abid Qadeer <abidh@codesourcery.com>
13
14 * NEWS: Mention new field "trace-file".
15 * tracepoint.c (trace_status_mi): Output "trace-file" field.
16 (tfile_open): Record the trace file's filename in the trace
17 status.
18 (tfile_files_info): Mention the name of the trace file.
19 Check the "filename" field explicitely.
20 (trace_status_command): Explicitely check "filename" field.
21 (trace_find_command): Ditto.
22 (trace_find_pc_command): Ditto.
23 (trace_find_tracepoint_command): Ditto.
24 (trace_find_line_command): Ditto.
25 (trace_find_range_command): Ditto.
26 (trace_find_outside_command): Ditto.
27 * tracepoint.h (struct trace_status) <from_file>: Rename it
28 to "filename" and make it hold the trace file's filename
29 instead of a boolean.
30 * remote.c (remote_get_trace_status): Initialize "filename"
31 field with NULL instead of 0.
32
33 2013-02-15 Yao Qi <yao@codesourcery.com>
34
35 * remote.c: Fix a typo.
36
37 2013-02-14 Pierre Muller <muller@sourceware.org>
38
39 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
40
41 2013-02-14 Pedro Alves <palves@redhat.com>
42
43 * utils.c (savestring): Don't #undef it. Move function to
44 common/common-utils.c.
45 * common/common-utils.c: Include gdb_string.h.
46 (savestring): Move here from utils.c.
47 * common/common-utils.h (savestring): Declare.
48
49 2013-02-14 Pedro Alves <palves@redhat.com>
50
51 * utils.c (savestring): Rename parameter 'size' to 'len'.
52
53 2013-02-14 Pedro Alves <palves@redhat.com>
54 Yufeng Zhang <yufeng.zhang@arm.com>
55
56 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
57 (aarch64_inferior_data, struct aarch64_inferior_data):
58 Delete.
59 (struct aarch64_process_info): New.
60 (aarch64_process_list): New global.
61 (aarch64_find_process_pid, aarch64_add_process)
62 (aarch64_process_info_get): New functions.
63 (aarch64_inferior_data_get): Delete.
64 (aarch64_process_info_get): New function.
65 (aarch64_forget_process): New function.
66 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
67 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
68 aarch64_get_debug_reg_state.
69 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
70 instead of linux_nat_iterate_watchpoint_lwps.
71 (aarch64_linux_new_fork): New function.
72 (aarch64_linux_child_post_startup_inferior): Use
73 aarch64_forget_process instead of aarch64_init_debug_reg_state.
74 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
75 (aarch64_linux_remove_hw_breakpoint)
76 (aarch64_handle_aligned_watchpoint)
77 (aarch64_handle_unaligned_watchpoint)
78 (aarch64_linux_insert_watchpoint)
79 (aarch64_linux_remove_watchpoint)
80 (aarch64_linux_stopped_data_address): Adjust to pass the current
81 process id to aarch64_debug_reg_state.
82 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
83 linux_nat_new_fork hook, and aarch64_forget_process as
84 linux_nat_forget_process hook; remove the call to
85 register_inferior_data_with_cleanup.
86
87 2013-02-14 Pedro Alves <palves@redhat.com>
88
89 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
90 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
91 lval_memory.
92
93 2013-02-14 Pedro Alves <pedro@codesourcery.com>
94 Hafiz Abid Qadeer <abidh@codesourcery.com>
95
96 * tracepoint.h (validate_trace_state_variable_name): Declare.
97 * tracepoint.c (validate_trace_state_variable_name): New.
98 (trace_variable_command): Parse the trace state variable's name
99 without using parse_expression. Do several validations.
100 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
101 trace state variable's name with parse_expression. Validate it.
102
103 2013-02-14 Yao Qi <yao@codesourcery.com>
104
105 * infcmd.c (breakpoint_proceeded): Remove it.
106
107 2013-02-14 Yao Qi <yao@codesourcery.com>
108
109 * tracepoint.c (end_actions_pseudocommand): Make it static.
110 (while_stepping_pseudocommand): Likewise.
111 * tracepoint.h (end_actions_pseudocommand): Remove the
112 declaration.
113 (while_stepping_pseudocommand): Likewise.
114
115 2013-02-14 Yao Qi <yao@codesourcery.com>
116
117 * cli/cli-decode.c (help_cmd): Remove the declaration of
118 "cmdlist".
119 (help_all): Likewise.
120
121 2013-02-13 Pedro Alves <palves@redhat.com>
122
123 * amd64-linux-nat.c (update_debug_registers_callback):
124 Update comment.
125 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
126 iterate_over_lwps.
127 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
128 i386_debug_reg_state.
129 (amd64_linux_new_fork): New function.
130 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
131 linux_nat_new_fork hook, and i386_forget_process as
132 linux_nat_forget_process hook.
133 * i386-linux-nat.c (update_debug_registers_callback):
134 Update comment.
135 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
136 iterate_over_lwps.
137 (i386_linux_prepare_to_resume): Pass the lwp's pid to
138 i386_debug_reg_state.
139 (i386_linux_new_fork): New function.
140 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
141 linux_nat_new_fork hook, and i386_forget_process as
142 linux_nat_forget_process hook.
143 * i386-nat.c (i386_init_dregs): Delete.
144 (i386_inferior_data, struct i386_inferior_data):
145 Delete.
146 (struct i386_process_info): New.
147 (i386_process_list): New global.
148 (i386_find_process_pid, i386_add_process, i386_process_info_get):
149 New functions.
150 (i386_inferior_data_get): Delete.
151 (i386_process_info_get): New function.
152 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
153 (i386_forget_process): New function.
154 (i386_cleanup_dregs): Rewrite.
155 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
156 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
157 (i386_stopped_data_address, i386_insert_hw_breakpoint)
158 (i386_remove_hw_breakpoint): Adjust to pass the current process id
159 to i386_debug_reg_state.
160 (i386_use_watchpoints): Don't register inferior data.
161 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
162 adjust comment.
163 (i386_forget_process): Declare.
164 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
165 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
166 New static globals.
167 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
168 (add_initial_lwp): New, factored out from ...
169 (add_lwp): ... this. Don't check the number of lwps before
170 calling linux_nat_new_thread.
171 (linux_nat_iterate_watchpoint_lwps): Delete.
172 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
173 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
174 forks and vforks.
175 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
176 initial lwp.
177 (linux_nat_kill, linux_nat_mourn_inferior): Call
178 linux_nat_forget_process.
179 (linux_nat_set_new_fork, linux_nat_set_forget_process)
180 (linux_nat_forget_process): New functions.
181 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
182 type.
183 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
184 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
185 types.
186 (linux_nat_set_new_fork, linux_nat_set_forget_process)
187 (linux_nat_forget_process): New declarations.
188
189 * amd64fbsd-nat.c (super_mourn_inferior): New global.
190 (amd64fbsd_mourn_inferior): New function.
191 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
192 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
193
194 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
195
196 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
197 Adding _().
198
199 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
200
201 * aarch64-linux-nat.c (debug_reg_change_callback)
202 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
203 %s and phex().
204
205 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
206
207 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
208 with LONGEST.
209
210 2013-02-13 Pedro Alves <palves@redhat.com>
211 Hafiz Abid Qadeer <abidh@codesourcery.com>
212
213 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
214
215 2013-02-12 Tom Tromey <tromey@redhat.com>
216
217 PR symtab/11464:
218 * c-exp.y (lex_one_token): Initialize other fields of yylval on
219 NAME return.
220 (classify_inner_name): Remove 'first_name' argument, add
221 'context'. Remove unused variable.
222 (yylex): Explicitly maintain the context type. Exit loop earlier
223 if NAME result is seen.
224
225 2013-02-12 Pedro Alves <palves@redhat.com>
226
227 * amd64-darwin-tdep.c: Add (C) after Copyright.
228 * cli/cli-cmds.h: Ditto.
229 * cli/cli-decode.c: Ditto.
230 * cli/cli-decode.h: Ditto.
231 * cli/cli-dump.c: Ditto.
232 * cli/cli-dump.h: Ditto.
233 * cli/cli-interp.c: Ditto.
234 * cli/cli-logging.c: Ditto.
235 * cli/cli-script.c: Ditto.
236 * cli/cli-script.h: Ditto.
237 * cli/cli-setshow.c: Ditto.
238 * cli/cli-setshow.h: Ditto.
239 * cli/cli-utils.c: Ditto.
240 * cli/cli-utils.h: Ditto.
241 * config/alpha/nm-osf3.h: Ditto.
242 * config/djgpp/djconfig.sh: Ditto.
243 * config/i386/nm-fbsd.h: Ditto.
244 * config/i386/nm-i386gnu.h: Ditto.
245 * config/nm-linux.h: Ditto.
246 * config/nm-nto.h: Ditto.
247 * config/rs6000/nm-rs6000.h: Ditto.
248 * config/sparc/nm-sol2.h: Ditto.
249 * darwin-nat-info.c: Ditto.
250 * dfp.c: Ditto.
251 * dfp.h: Ditto.
252 * gdb-demangle.h: Ditto.
253 * i386-darwin-nat.c: Ditto.
254 * i386-darwin-tdep.c: Ditto.
255 * linux-fork.h: Ditto.
256 * m32c-tdep.c: Ditto.
257 * microblaze-linux-tdep.c: Ditto.
258 * microblaze-rom.c: Ditto.
259 * microblaze-tdep.c: Ditto.
260 * microblaze-tdep.h: Ditto.
261 * mips-linux-tdep.h: Ditto.
262 * ppc-ravenscar-thread.c: Ditto.
263 * ppc-ravenscar-thread.h: Ditto.
264 * prologue-value.c: Ditto.
265 * prologue-value.h: Ditto.
266 * ravenscar-thread.c: Ditto.
267 * ravenscar-thread.h: Ditto.
268 * sparc-ravenscar-thread.c: Ditto.
269 * sparc-ravenscar-thread.h: Ditto.
270 * tilegx-linux-tdep.c: Ditto.
271 * unwind_stop_reasons.def: Ditto.
272 * windows-nat.h: Ditto.
273 * xtensa-linux-tdep.c: Ditto.
274 * xtensa-xtregs.c: Ditto.
275 * regformats/regdat.sh: Ditto.
276 * regformats/regdef.h: Ditto.
277
278 2013-02-12 Pedro Alves <palves@redhat.com>
279
280 * break-catch-sig.c: Update copyright years.
281
282 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
283
284 Add support for a destructor for ui_out data and use it to
285 provide a ui_out destructor.
286 * ui-out.h: Declare the new ui_out destructor.
287 (ui_out_impl): Add a field for data destructor in ui_out_impl.
288 * ui-out.c (default_data_destroy): Add a default data destructor
289 which does nothing.
290 (default_ui_out_impl): Set the new data_destroy field to
291 default_data_destroy
292 (uo_data_destroy): Local function which invokes the data
293 destructor if present.
294 (clear_table): Local function which clears the table data of a
295 ui_out object.
296 (ui_out_destroy): Public function which frees a ui_out object.
297 (ui_out_table_end): Use the new clear_table function.
298 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
299 NULL.
300 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
301 to NULL.
302
303 2013-02-11 Doug Evans <dje@google.com>
304
305 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
306 (printf_decfloat): New function. Broken out from ui_printf.
307 Remove unnecessary code to shift the entire format string down.
308 (printf_pointer): New function.
309 (ui_printf): Code to print C strings, wide C strings, decfloats,
310 and pointers moved to separate functions.
311
312 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
313
314 * valops.c (value_assign): Handling bitfield offset in
315 `lval_internalvar_component' case.
316
317 2013-02-08 Doug Evans <dje@google.com>
318
319 * common/format.c (parse_format_string): Fix whitespace.
320
321 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
322
323 * stack.c (return_command): Work around uninitialized variable
324 warning.
325
326 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
327
328 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
329 number of the registers from 36 to 34.
330
331 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
332
333 * NEWS: Mention new AArch64 native and target support.
334
335 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
336
337 * MAINTAINERS (Write After Approval): Add myself.
338
339 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
340 Marcus Shawcroft <marcus.shawcroft@arm.com>
341 Nigel Stephens <nigel.stephens@arm.com>
342 Yufeng Zhang <yufeng.zhang@arm.com>
343
344 * aarch64-linux-nat.c: New file.
345 * config/aarch64/linux.mh: New file.
346 * configure.host: Add AArch64.
347 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
348
349 2013-02-07 Doug Evans <dje@google.com>
350
351 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
352 disassemble command.
353
354 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
355
356 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
357 set_gdbarch_fetch_tls_load_module_address.
358
359 2013-02-06 David S. Miller <davem@davemloft.net>
360
361 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
362 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
363 * value.c (struct_return_convention): New function.
364 (using_struct_return): Implement in terms of struct_return_convention.
365 * value.h (struct_return_convention): Declare.
366 * stack.c (return_command): Allow successful overriding of the return
367 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
368
369 2013-02-06 Tom Tromey <tromey@redhat.com>
370
371 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
372 outside of TRY_CATCH.
373
374 2013-02-06 Yao Qi <yao@codesourcery.com>
375
376 * mi/mi-interp.c: Include "tracepoint.h".
377 (mi_tsv_modified): Declare.
378 (mi_tsv_created, mi_tsv_deleted): Update declaration.
379 (mi_interpreter_init): Call observer_attach_tsv_modified.
380 (mi_tsv_modified): New.
381 (mi_tsv_created, mi_tsv_deleted): Update.
382 * tracepoint.c (trace_variable_command): Call
383 observer_notify_tsv_modified if the initial value of tsv is
384 changed.
385 (delete_trace_state_variable): Call
386 observer_notify_tsv_deleted earlier.
387 (trace_variable_command): Caller update.
388 (create_tsv_from_upload): Likewise.
389 * observer.sh: Declare "struct trace_state_variable".
390
391 * NEWS: Mention the new MI notification "=tsv-modified".
392
393 2013-02-05 Doug Evans <dje@google.com>
394
395 * completer.c (location_completer): Fix typo in comment.
396
397 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
398
399 * breakpoint.c (add_location_to_breakpoint): Insert the location with
400 ADDRESS sorted.
401
402 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
403
404 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
405 Refactor if statement to avoid trailing || operator.
406
407 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
408
409 * NEWS: Add PowerPC FreeBSD as a new native configuration.
410
411 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
412
413 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
414 * configure.host: Add powerpc*-*-freebsd* target.
415 * configure.tgt: Add target info for powerpc*-*-freebsd*.
416 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
417 * config/powerpc/fbsd.mh: New file.
418
419 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
420 Denys Vlasenko <dvlasenk@redhat.com>
421 Pedro Alves <palves@redhat.com>
422
423 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
424 (struct elf_internal_linux_prpsinfo): Forward declare.
425 * gdbarch.h, gdbarch.c: Regenerate.
426 * linux-tdep.c: Include `cli/cli-utils.h'.
427 (linux_fill_prpsinfo): New function.
428 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
429 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
430 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
431 depending on gdbarch pointer bitness.
432 * ppc-linux-tdep.c: Include elf-bfd.h.
433 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
434 on 32-bit.
435
436 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
437 Marcus Shawcroft <marcus.shawcroft@arm.com>
438 Nigel Stephens <nigel.stephens@arm.com>
439 Yufeng Zhang <yufeng.zhang@arm.com>
440
441 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
442
443 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
444 Marcus Shawcroft <marcus.shawcroft@arm.com>
445 Nigel Stephens <nigel.stephens@arm.com>
446 Yufeng Zhang <yufeng.zhang@arm.com>
447
448 * aarch64-newlib-tdep.c: New file.
449 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
450 aarch64*-*-elf.
451 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
452 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
453 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
454 * osabi.c (gdb_osabi_names): Add "Newlib".
455
456 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
457 Marcus Shawcroft <marcus.shawcroft@arm.com>
458 Nigel Stephens <nigel.stephens@arm.com>
459 Yufeng Zhang <yufeng.zhang@arm.com>
460
461 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
462 (ALLDEPFILES): Add aarch64-linux-tdep.c.
463 * aarch64-linux-tdep.c: New file.
464 * aarch64-linux-tdep.h: New file.
465 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
466 * configure.tgt: Add aarch64-none-linux-gnu.
467
468 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
469 Marcus Shawcroft <marcus.shawcroft@arm.com>
470 Nigel Stephens <nigel.stephens@arm.com>
471 Yufeng Zhang <yufeng.zhang@arm.com>
472
473 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
474 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
475 (ALLDEPFILES): Add aarch64-tdep.c.
476 * aarch64-tdep.c: New file.
477 * aarch64-tdep.h: New file.
478 * configure.tgt: Add AArch64.
479 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
480 (aarch64-expedite): New definition.
481 * features/aarch64-core.xml: New file.
482 * features/aarch64-fpu.xml: New file.
483 * features/aarch64-without-fpu.c: New file (generated).
484 * features/aarch64-without-fpu.xml: New file.
485 * features/aarch64.c: New file (generated).
486 * features/aarch64.xml: New file.
487 * regformats/aarch64-without-fpu.dat: New file (generated).
488 * regformats/aarch64.dat: New file (generated).
489
490 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
491
492 * contrib/expect-read1.c: New file.
493 * contrib/expect-read1.sh: New file.
494
495 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
496
497 * dwarf2read.c (file_file_name): New function with code from
498 file_full_name.
499 (file_full_name): Move most of the code to file_file_name.
500 (macro_start_file): Rename variable full_name to file_name and use
501 file_file_name for it. Add comp_dir parameter to new_macro_table.
502 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
503 macro_source_file->filename access by macro_source_fullname call.
504 * macroscope.c (_initialize_macroscope): Update the new_macro_table
505 caller.
506 * macrotab.c (struct macro_table): New field comp_dir.
507 (macro_include): New variables link_fullname and source_fullname.
508 Replace any macro_source_file->filename access by macro_source_fullname
509 call.
510 (macro_lookup_inclusion): Remove the partial filenames checking code.
511 (check_for_redefinition): New variables source_fullname and
512 found_key_fullname. Replace any macro_source_file->filename access by
513 macro_source_fullname call.
514 (macro_undef): New variables source_fullname and key_fullname. Replace
515 any macro_source_file->filename access by macro_source_fullname call.
516 (macro_lookup_definition): New variables retval and source_fullname.
517 Replace any macro_source_file->filename access by macro_source_fullname
518 call.
519 (foreach_macro): New variable key_fullname. Replace any
520 macro_source_file->filename access by macro_source_fullname call.
521 (foreach_macro_in_scope): New variable datum_fullname. Replace any
522 macro_source_file->filename access by macro_source_fullname call.
523 (new_macro_table): Add parameter comp_dir. Initialize T with it.
524 (macro_source_fullname): New function.
525 * macrotab.h (struct macro_source_file): Extent the filename field
526 comment.
527 (new_macro_table): New parameter comp_dir, add a comment for it.
528 (macro_source_fullname): new declaration.
529
530 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
531
532 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
533 this_real_name to outer block. Use it also for
534 compare_filenames_for_search.
535 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
536 with dw2_get_real_path for file_matcher, considering also
537 BASENAMES_MAY_DIFFER.
538 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
539
540 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
541
542 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
543 to the file_matcher parameter. Pass 0 to it.
544 (dwarf2_create_include_psymtab): Copy also DIRNAME.
545 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
546 NULL psymtab_to_fullname result.
547 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
548 an expected filename instead.
549 (expand_symtabs_matching_via_partial): Add basenames parameter to the
550 file_matcher parameter. Call also psymtab_to_fullname, after newly
551 considering BASENAMES_MAY_DIFFER.
552 * source.c (rewrite_source_path): Remove static.
553 * source.h (rewrite_source_path): New declaration.
554 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
555 the expand_symtabs_matching field. Comment it.
556 * symtab.c (file_matches): New function comment. Add parameter
557 basenames, implement it.
558 (search_symbols_file_matches): Add basenames parameter. Update the
559 file_matches caller.
560 (search_symbols): Match FILES also against symtab_to_fullname.
561 Optimize it for BASENAMES_MAY_DIFFER.
562
563 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
564
565 * source.c (print_source_lines_base): Print for TUI also "fullname".
566 * tui/tui-data.c (init_content_element): Change tui_locator_element
567 field to full_name.
568 * tui/tui-data.h (struct tui_locator_element): Likewise.
569 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
570 tui_update_locator_filename calls to tui_update_locator_fullname.
571 Replace symtab->filename refererence by symtab_to_fullname call.
572 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
573 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
574 field to full_name. Replace symtab->filename refererence by
575 symtab_to_fullname call.
576 (tui_show_symtab_source): Rename parameter to fullname. Change
577 tui_locator_element field to full_name.
578 * tui/tui-stack.c: Include source.h.
579 (tui_set_locator_filename): Rename the declaration to ...
580 (tui_set_locator_fullname): ... here. Rename its parameter to
581 fullname, updates its comment.
582 (tui_set_locator_info): Rename its parameter to fullname.
583 (tui_set_locator_filename): Rename the definition to ...
584 (tui_set_locator_fullname): ... here. Rename its parameter to
585 fullname, updates its comment. Change tui_locator_element field to
586 full_name.
587 (tui_set_locator_info): Rename its parameter to fullname.
588 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
589 (tui_update_locator_filename): Rename to ...
590 (tui_update_locator_fullname): ... here. Rename callee to
591 tui_set_locator_fullname.
592 (tui_show_frame_info): Replace symtab->filename refererence by
593 symtab_to_fullname call.
594 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
595 (tui_update_locator_fullname): ... here.
596 * tui/tui-winsource.c (tui_display_main): Rename the callee to
597 tui_update_locator_fullname. Replace symtab->filename refererence by
598 symtab_to_fullname call.
599 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
600 Rename the callee to tui_update_locator_fullname.
601 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
602
603 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
604
605 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
606 by symtab_to_filename_for_display calls.
607 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
608 (clear_command): New variable sal_fullname, initialize it. Replace
609 compare_filenames_for_search by filename_cmp with sal_fullname.
610 (say_where, update_static_tracepoint): Replace symtab->filename
611 refererences by symtab_to_filename_for_display calls.
612 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
613 Likewise.
614 * dwarf2read.c: Include source.h.
615 (fixup_go_packaging): Replace symtab->filename refererences by
616 symtab_to_filename_for_display calls.
617 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
618 Replace symtab->filename refererences by symtab_to_filename_for_display
619 calls.
620 (create_sals_line_offset, convert_linespec_to_sals): New variable
621 fullname, initialize it, replace symtab->filename reference by the
622 variable.
623 * linux-fork.c: Include source.h.
624 (info_checkpoints_command): Replace symtab->filename refererences by
625 symtab_to_filename_for_display calls.
626 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
627 by symtab_to_filename_for_display calls.
628 * mdebugread.c: Include source.h.
629 (psymtab_to_symtab_1): Replace symtab->filename refererences by
630 symtab_to_filename_for_display calls.
631 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
632 (mi_cmd_file_list_exec_source_files): Likewise.
633 * printcmd.c: Include source.h.
634 (build_address_symbolic): Replace symtab->filename refererences by
635 symtab_to_filename_for_display calls.
636 * psymtab.c (partial_map_symtabs_matching_filename)
637 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
638 with psymtab_to_fullname.
639 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
640 by symtab_to_filename_for_display calls.
641 (stpy_get_filename): New variable filename, initialize it, use instead
642 of symtab->filename refererences.
643 (salpy_str): Make variable filename const char *. Replace
644 symtab->filename refererences by symtab_to_filename_for_display calls.
645 * skip.c: Include source.h and filenames.h.
646 (skip_file_command): Remove const from the symtab variable. Replace
647 symtab->filename refererences by symtab_to_fullname call.
648 (function_name_is_marked_for_skip): New variables searched_for_fullname
649 and fullname. Use them to search also with symtab's fullname.
650 * source.c (find_source_lines): Replace symtab->filename refererences
651 by symtab_to_filename_for_display calls.
652 (print_source_lines_base): New variable filename, use it instead of
653 symtab->filename. Replace symtab->filename refererences by
654 symtab_to_filename_for_display calls.
655 (line_info, forward_search_command): Replace symtab->filename
656 refererences by symtab_to_filename_for_display calls.
657 (reverse_search_command): Replace symtab->filename refererences by
658 symtab_to_filename_for_display calls. New variable filename for it.
659 * stack.c (frame_info): Likewise.
660 * symmisc.c: Include source.h.
661 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
662 (maintenance_info_symtabs): Replace symtab->filename refererences by
663 symtab_to_filename_for_display calls.
664 * symtab.c (iterate_over_some_symtabs): Call
665 compare_filenames_for_search also with symtab_to_fullname.
666 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
667 symtab->filename refererences by symtab_to_filename_for_display calls.
668 (find_line_symtab): Replace symtab->filename refererences by
669 symtab_to_filename_for_display calls.
670 (file_matches): Replace filename_cmp by compare_filenames_for_search.
671 (print_symbol_info): Make the last parameter const char *. New
672 variable s_filename. Use it in the function.
673 (symtab_symbol_info): Make the last_filename variable const char *.
674 Replace symtab->filename refererences by symtab_to_filename_for_display
675 calls.
676 (rbreak_command): New variable fullname. Use it. Replace
677 symtab->filename refererence by symtab_to_filename_for_display call.
678 * tracepoint.c (set_traceframe_context, trace_find_line_command)
679 (print_one_static_tracepoint_marker): Replace symtab->filename
680 refererences by symtab_to_filename_for_display calls.
681 * tui/tui-source.c (tui_set_source_content): New variables filename and
682 s_filename. Replace symtab->filename refererences by this variable.
683 Replace other symtab->filename refererences by
684 symtab_to_filename_for_display calls.
685
686 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
687 Jan Kratochvil <jan.kratochvil@redhat.com>
688
689 Add a new variable that controls a way in which filenames are
690 displayed.
691 * NEWS (set filename-display): New entry.
692 * source.c (filename_display_basename, filename_display_relative)
693 (filename_display_absolute, filename_display_kind_names)
694 (filename_display_string, show_filename_display_string)
695 (symtab_to_filename_for_display): New.
696 (_initialize_source): Added initialization of 'filename-display'
697 variable.
698 * source.h (symtab_to_filename_for_display): Added declaration.
699 * stack.c (print_frame): Added new variable and calling of a new
700 function and condition with this variable. Changed third argument of
701 calling of a function.
702
703 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
704
705 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
706 Rename field reference filename to fullname.
707 * tui/tui-data.h (struct tui_source_info): Rename field filename to
708 fullname. New comment for it.
709 * tui/tui-source.c (tui_set_source_content): Rename field reference
710 filename to fullname. Initialize field by symtab_to_fullname now.
711 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
712 reference filename to fullname. Use symtab_to_fullname during
713 comparison.
714
715 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
716
717 Code cleanup.
718 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
719 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
720 filename to fullname. Rename variable this_name to this_fullname.
721 Lowercase FILENAME_CMP call.
722 (dw2_find_symbol_file): New comment for the returned string.
723 (dwarf2_gdb_index_functions): Rename the function to
724 dw2_expand_symtabs_with_fullname.
725 * psymtab.c (read_psymtabs_with_filename): Rename to ...
726 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
727 fullname.
728 (psym_functions): Rename the function to read_psymtabs_with_fullname.
729 * symfile.h (struct quick_symbol_functions): Rename field
730 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
731 parameter filename to fullname. Document returned string meaning for
732 find_symbol_file.
733 * symtab.c (find_line_symtab): Rename the called function to
734 expand_symtabs_with_fullname.
735
736 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
737
738 Code cleanup.
739 * breakpoint.c (clear_command): Remove variable is_abs, unify the
740 call of filename_cmp with compare_filenames_for_search.
741 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
742 is_abs, unify the call of FILENAME_CMP with
743 compare_filenames_for_search. New gdb_asserts for real_path and name.
744 Unify the call of compare_filenames_for_search with FILENAME_CMP.
745 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
746 * symfile.h (struct quick_symbol_functions): Extend the comment for
747 map_symtabs_matching_filename.
748 * symtab.c (compare_filenames_for_search): Remove the function comment
749 relative path requirement. Handle absolute filenames, with a comment.
750 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
751 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
752 real_path and name. Unify the call of compare_filenames_for_search
753 with FILENAME_CMP.
754 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
755
756 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
757
758 Code cleanup.
759 * breakpoint.c (print_breakpoint_location): Replace bp_location field
760 source_file references by symtab field references. Remove variables
761 sal and fullname.
762 (momentary_breakpoint_from_master, add_location_to_breakpoint):
763 (clear_command, say_where): Replace bp_location field source_file
764 references by symtab field references.
765 (bp_location_dtor): Remove the source_file reference.
766 (update_static_tracepoint): Replace bp_location field source_file
767 references by symtab field references.
768 (breakpoint_free_objfile): New function.
769 * breakpoint.h (struct bp_location): Extend the comment for line_number.
770 Replace the field source_file by field symtab, extend its comment.
771 (breakpoint_free_objfile): New declaration.
772 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
773 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
774 field source_file references by symtab field references.
775
776 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
777
778 Replace xfullpath calls by gdb_realpath calls.
779 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
780 function comment.
781 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
782 Remove it from the iterate_over_some_symtabs call.
783 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
784 Remove it from the dw2_map_expand_apply calls, remove a block handling
785 it.
786 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
787 Remove it from the iterate_over_some_symtabs call.
788 (partial_map_symtabs_matching_filename): Remove parameter full_path.
789 Remove it from the partial_map_expand_apply calls, remove a block
790 handling it. Drop gdb_realpath call and cleanups from the real_path
791 handling.
792 * source.c (openp): Drop the comment part about xfullpath. Replace
793 xfullpath calls by gdb_realpath calls.
794 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
795 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
796 from method map_symtabs_matching_filename and its comment.
797 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
798 gdb_realpath call.
799 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
800 remove it also from the function comment, remove a block handling it.
801 Drop gdb_realpath call and cleanups from the real_path handling.
802 (iterate_over_symtabs): Drop variable full_path and its use.
803 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
804 * utils.c (xfullpath): Remove.
805 * utils.h (xfullpath): Remove.
806
807 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
808
809 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
810 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
811 (ALLDEPFILES): Add ppc64-tdep.c.
812 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
813 ppc64-tdep.o to gdb_target_obs.
814 * ppc64-tdep.h: New file.
815 * ppc64-tdep.c: New file.
816 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
817 ppc-linux-tdep.c to here.
818 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
819 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
820 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
821 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
822 from ppc-linux-tdep.c to here.
823 (ppc64_convert_from_func_ptr_addr): Rename from
824 ppc64_linux_convert_from_func_ptr_addr to
825 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
826 here.
827 * rs6000-tdep.c:
828 (read_insn): Move from ppc-linux-tdep.c to here.
829 (insns_match_pattern, insn_d_field, insn_ds_field): Move
830 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
831 * ppc-linux-tdep.c: Include ppc64-tdep.h.
832 Removed above functions.
833 (ppc_linux_init_abi): Adjust.
834
835 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
836
837 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
838
839 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
840
841 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
842
843 2013-02-01 Pedro Alves <palves@redhat.com>
844
845 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
846 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
847
848 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
849
850 * elfread.c (elf_symfile_read): Limit separate debug info additions to
851 files with no separate debug info.
852 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
853 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
854 only for files with no separate debug info.
855
856 2013-01-31 Tom Tromey <tromey@redhat.com>
857
858 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
859 change type.
860 (struct jit_program_space_data): Rename from jit_inferior_data.
861 Update comments.
862 (get_jit_program_space_data): Rename from get_jit_inferior_data.
863 Change return type. Attach data to program space.
864 (jit_program_space_data_cleanup): Rename from
865 jit_inferior_data_cleanup; change argument type.
866 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
867 change type.
868 (jit_register_code): Update.
869 (jit_update_inferior_cache): Remove.
870 (jit_breakpoint_deleted): Get jit data from the location's program
871 space.
872 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
873 'ps_data', change type.
874 (jit_inferior_init, jit_breakpoint_re_set_internal)
875 (jit_event_handler): Update.
876 (free_objfile_data): Get data from objfile's program space.
877 (_initialize_jit): Update.
878
879 2013-01-31 Tom Tromey <tromey@redhat.com>
880
881 PR gdb/13987:
882 * jit.c (struct jit_inferior_data) <cached_code_address,
883 jit_breakpoint>: New fields.
884 (jit_breakpoint_re_set_internal): Fix logging. Only create
885 breakpoint if cached address has changed.
886 (jit_update_inferior_cache, jit_breakpoint_deleted): New
887 functions.
888 (_initialize_jit): Register breakpoint deleted observer.
889
890 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
891
892 * infrun.c (handle_syscall_event): Remove unused gdbarch.
893 (save_infcall_suspend_state): Ifdef out unused inf.
894 (restore_infcall_suspend_state): Ifdef out unused inf.
895 * jit.c (jit_register_code): Remove unused i, b, inf_data.
896 (jit_frame_sniffer): Remove unused inf_data.
897
898 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
899
900 * c-exp.y (classify_inner_name): Remove unused type.
901 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
902 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
903 need_escape.
904 (c_get_string): Remove unused kind.
905 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
906
907 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
908
909 * charset.c (intermediate_encoding): Remove unused i.
910 * completer.c (signal_completer): Remove unused i.
911 * continuations.c (discard_my_continuations_1): Remove unused
912 continuation_ptr.
913 * corelow.c (core_close): Remove unuseD name.
914 (get_core_siginfo): Remove unused pid.
915 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
916 i, cps.
917 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
918 (loclist_describe_location): Remove unused first.
919 * event-top.c (command_line_handler): Remove unused got_eof.
920 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
921 (resize_section_table): Remove unused old_value.
922 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
923 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
924 * i386-tdep.c (i386_process_record): Remove unused rex.
925 * infcmd.c (get_return_value): Remove unused uiout.
926 * jv-lang.c (type_from_class): Remove unused is_array.
927 * jv-valprint.c (java_val_print): Remove unused i.
928 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
929 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
930 * m2-typeprint.c (m2_print_type): Remove unused code.
931 * macroexp.c (get_character_constant): Remove unused body_start.
932 (macro_stringify): Remove unused result.
933 * objc-lang.c (find_methods): Remove unused gdbarch.
934 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
935 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
936 * stack.c (print_frame_args): Remove unused summary.
937 * thread.c (thread_apply_command): Remove unused p.
938 * valarith.c (value_x_unop): Remove unused mangle_ptr.
939 * valops.c (search_struct_method): Remove unused skip.
940 * valprint.c (generic_val_print): Remove unused byte_order.
941 * varobj.c (varobj_update): Remove unused changed.
942 * cli/cli-cmds.c (complete_command): Remove unused next_item.
943 (alias_command): Remove unused c.
944 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
945 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
946 format.
947 (mi_cmd_data_write_memory): Remove unused word_format.
948 (mi_cmd_data_write_memory_bytes): Remove unused r.
949 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
950 p_start, p_end.
951 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
952 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
953 line_width.
954
955 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
956
957 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
958 * symtab.c (iterate_over_symtabs): Remove unused s.
959 (find_pc_sect_symtab): Remove unused pspAce.
960 (find_pc_sect_line): Remove unused alt_symtab.
961 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
962 (completion_list_add_name): Remove unused newsize.
963
964 2013-01-31 Tom Tromey <tromey@redhat.com>
965
966 PR c++/14998:
967 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
968 TYPE_CODE_FUNC.
969
970 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
971
972 * target.c (target_read_string): Remove unused origlen.
973
974 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
975
976 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
977 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
978 * ax-general.c (ax_print): Remove unused is_float.
979 * blockframe.c (block_innermost_frame): Remove unused start, end.
980 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
981
982 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
983
984 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
985 (svr4_read_so_list): Remove unused lmo.
986 * solib-target.c (solib_target_relocate_section_addresses): Remove
987 unused flags.
988
989 2013-01-30 Tom Tromey <tromey@redhat.com>
990
991 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
992
993 2013-01-30 Tom Tromey <tromey@redhat.com>
994
995 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
996 * utils.c (gnu_debuglink_crc32): Remove.
997 * utils.h (gnu_debuglink_crc32): Don't declare.
998
999 2013-01-30 Tom Tromey <tromey@redhat.com>
1000
1001 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1002 (read_structure_type, read_enumeration_type): Remove cast.
1003
1004 2013-01-30 Tom Tromey <tromey@redhat.com>
1005
1006 * dwarf2read.c (read_namespace_type): Remove cast.
1007 (read_typedef): Likewise.
1008
1009 2013-01-29 Tom Tromey <tromey@redhat.com>
1010
1011 * dwarf2read.c (free_dwo_file): Remove assert.
1012
1013 2013-01-29 Tom Tromey <tromey@redhat.com>
1014
1015 * value.c (deprecated_set_value_modifiable): Remove.
1016 * value.h (deprecated_set_value_modifiable): Remove.
1017
1018 2013-01-28 Doug Evans <dje@google.com>
1019
1020 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1021 to addresses from dwo files.
1022
1023 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1024
1025 * valops.c (find_overload_match): Remove unused argument 'lax'.
1026 * value.h: Remove unused argument 'lax' from the declaration of
1027 find_overload_match.
1028 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1029 to find_overload_match.
1030 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1031 argument to find_overload_match.
1032
1033 2013-01-25 Tom Tromey <tromey@redhat.com>
1034
1035 * dwarf2read.c (processing_has_namespace_info): Remove.
1036 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1037 (process_die, read_func_scope, dwarf2_start_symtab)
1038 (new_symbol_full): Update.
1039
1040 2013-01-25 Tom Tromey <tromey@redhat.com>
1041
1042 * cp-namespace.c (cp_set_block_scope): Remove.
1043 * cp-support.h (cp_set_block_scope): Remove.
1044 * dbxread.c: Include block.h.
1045 (cp_set_block_scope): New function.
1046 (process_one_symbol): Update.
1047 * dwarf2read.c (read_func_scope): Use block_set_scope.
1048
1049 2013-01-25 Pedro Alves <palves@redhat.com>
1050
1051 * remote.c (add_current_inferior_and_thread): Tweak comment.
1052
1053 2013-01-25 Tom Tromey <tromey@redhat.com>
1054
1055 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1056 (cp_add_using_directive): Add 'copy_names' argument.
1057 * cp-support.h (cp_add_using_directive): Update.
1058 (struct using_direct) <import_src, import_dest, alias,
1059 declaration>: Now const.
1060 * dwarf2read.c (read_import_statement): Use obconcat.
1061 Don't copy names passed to cp_add_using_directive.
1062
1063 2013-01-25 Tom Tromey <tromey@redhat.com>
1064
1065 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1066
1067 2013-01-25 Pedro Alves <palves@redhat.com>
1068
1069 * remote.c (stop_reply_extract_thread): New.
1070 (add_current_inferior_and_thread): New parameter 'wait_status'.
1071 Handle it.
1072 (remote_start_remote): Pass wait status to
1073 add_current_inferior_and_thread.
1074 (extended_remote_run): Update comment.
1075 (extended_remote_create_inferior_1): Pass wait status to
1076 add_current_inferior_and_thread.
1077
1078 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
1079 Ulrich Weigand <uweigand@de.ibm.com>
1080
1081 * valarith.c (value_vector_widen): New function for replicating a
1082 scalar into a vector.
1083 (value_binop): Use value_vector_widen to widen scalar to vector
1084 rather than casting, this better matches gcc C behaviour.
1085 * valops.c (value_casst): Update logic for casting between vector
1086 types, and for casting from scalar to vector, try to match gcc C
1087 behaviour.
1088 * value.h (value_vector_widen): Declare.
1089 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1090 function, handle special case for casting scalar to vector.
1091 (opencl_relop): Use opencl_value_cast.
1092 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1093 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1094 in order to use opencl_value_cast.
1095
1096 2013-01-25 Yao Qi <yao@codesourcery.com>
1097
1098 * event-loop.c: Include "queue.h".
1099 (gdb_event_p): New typedef.
1100 (DECLARE_QUEUE_P): Use.
1101 (DEFINE_QUEUE_P): Use.
1102 (async_queue_event): Remove.
1103 (gdb_event_xfree): New.
1104 (initialize_event_loop): New.
1105 (process_event): Use QUEUE macros.
1106 (event_queue): Remove.
1107 (gdb_wait_for_event): Caller update.
1108 (check_async_event_handlers): Likewise.
1109 (poll_timers): Likewise.
1110 * event-loop.h (initialize_event_loop): Declare.
1111 * event-loop.c (gdb_event_xfree): New.
1112 * top.c (gdb_init): Call initialize_event_loop.
1113
1114 2013-01-25 Yao Qi <yao@codesourcery.com>
1115
1116 * event-loop.c (async_queue_event): Remove one parameter
1117 'position'. Remove code handling 'position' == TAIL.
1118 (gdb_wait_for_event): Caller update.
1119 (check_async_event_handlers): Caller update.
1120 (poll_timers): Caller update.
1121 * event-loop.h (enum queue_position): Remove.
1122
1123 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1124
1125 * MAINTAINERS: Update my email.
1126
1127 2013-01-25 Yao Qi <yao@codesourcery.com>
1128
1129 * main.c (print_gdb_help): Remove "--epoch" from the help
1130 message.
1131
1132 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1133
1134 * symtab.c (skip_prologue_using_sal): Consider a file
1135 change the same as an increased line number
1136
1137 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1138
1139 * MAINTAINERS (Write After Approval): Add myself to the list.
1140
1141 2013-01-24 Tom Tromey <tromey@redhat.com>
1142
1143 * ada-lang.h (ada_decode_symbol): Make return type const.
1144 * ada-lang.c (ada_decode_symbol): Likewise.
1145
1146 2013-01-23 Doug Evans <dje@google.com>
1147
1148 * linespec.c (find_linespec_symbols): Make static.
1149
1150 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1151
1152 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1153 type on float conversion for complex type.
1154
1155 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1156
1157 Add a new class gdb.Architecture which exposes GDB's
1158 internal representation of architecture via GDB Python API.
1159 * Makefile.in: Add entries corresponding to the new file
1160 python/py-arch.c.
1161 * NEWS (Python Scripting): Add entries for the new class
1162 gdb.Architecture and the new method gdb.Frame.architecture.
1163 * python/py-arch.c: Implement gdb.Architecture class.
1164 * python/py-frame.c (frapy_arch): Implement the method
1165 gdb.Frame.architecture().
1166 (frame_object_methods): Add 'architecture' to the method table.
1167 * python/python-internal.h: Add declarations of new utility
1168 functions.
1169 * python/python.c (_initialize_python): Initialize
1170 gdb.Architecture class.
1171
1172 2013-01-23 Doug Evans <dje@google.com>
1173
1174 Work around binutils/15021.
1175 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1176 type_unit_group out of union s. All uses updated.
1177 (read_index_from_section): Watch for index version 8.
1178 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1179 an imported symtab.
1180 (write_psymtabs_to_index): Increment version number to 8.
1181
1182 2013-01-22 Pedro Alves <palves@redhat.com>
1183
1184 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1185 user-visible.
1186
1187 2013-01-22 Pedro Alves <palves@redhat.com>
1188
1189 * annotate.c (annotate_breakpoints_changed): Rename to ...
1190 (annotate_breakpoints_invalid): ... this. Make static.
1191 (breakpoint_changed): Adjust.
1192 (_initialize_annotate): Always install the observers. Install a
1193 "breakpoint_created" observer.
1194 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1195 * breakpoint.c (set_breakpoint_condition)
1196 (breakpoint_set_commands, do_map_commands_command)
1197 (init_raw_breakpoint, clear_command, set_ignore_count)
1198 (enable_breakpoint_disp): No longer call
1199 annotate_breakpoints_changed.
1200
1201 2013-01-22 Pedro Alves <palves@redhat.com>
1202
1203 * annotate.c: Include "inferior.h".
1204 (frames_invalid_emitted)
1205 (breakpoints_invalid_emitted): New globals.
1206 (async_background_execution_p): New function.
1207 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1208 emitting the annotation if it has already been emitted.
1209 (annotate_display_prompt): New function.
1210 * annotate.h (annotate_display_prompt): New declaration.
1211 * event-top.c: Include annotate.h.
1212 (display_gdb_prompt): Call annotate_display_prompt.
1213
1214 2013-01-22 Pedro Alves <palves@redhat.com>
1215
1216 * annotate.c (ignore_count_changed): Delete.
1217 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1218 (annotate_ignore_count_change): Delete.
1219 (annotate_stopped): Don't emit a delayed breakpoints-changed
1220 annotation.
1221 * annotate.h (annotate_ignore_count_change): Delete.
1222 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1223 annotate_ignore_count_change.
1224
1225 2013-01-22 Tom Tromey <tromey@redhat.com>
1226
1227 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1228 require_rvalue for a register location.
1229
1230 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1231
1232 * breakpoint.c (print_one_breakpoint_location): Add MI
1233 field 'thread-groups' when printing a breakpoint.
1234 (output_thread_groups): New function.
1235
1236 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1237
1238 * python/lib/gdb/commands/explore.py
1239 (CompoundExplorer.explore_expr): Correct the name of a method
1240 being invoked.
1241 (ExploreTypeCommand.invoke): Add a missing 'return'.
1242
1243 2013-01-21 Tom Tromey <tromey@redhat.com>
1244
1245 * gdb_obstack.h (obconcat): Move declaration here, from...
1246 * symfile.h (obconcat): ... here.
1247 * gdb_obstack.c: New file.
1248 (obconcat): Move from...
1249 * symfile.c (obconcat): ... here.
1250 * Makefile.in (SFILES): Add gdb_obstack.c.
1251 (COMMON_OBS): Add gdb_obstack.o.
1252
1253 2013-01-21 Tom Tromey <tromey@redhat.com>
1254
1255 * symfile.h (obsavestring): Don't declare.
1256 * symfile.c (obsavestring): Remove.
1257 * ada-exp.y: Use obstack_copy0, not obsavestring.
1258 * ada-lang.c: Use obstack_copy0, not obsavestring.
1259 * coffread.c: Use obstack_copy0, not obsavestring.
1260 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1261 * dbxread.c: Use obstack_copy0, not obsavestring.
1262 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1263 * jit.c: Use obstack_copy0, not obsavestring.
1264 * mdebugread.c: Use obstack_copy0, not obsavestring.
1265 * psymtab.c: Use obstack_copy0, not obsavestring.
1266 * stabsread.c: Use obstack_copy0, not obsavestring.
1267 * xcoffread.c: Use obstack_copy0, not obsavestring.
1268
1269 2013-01-21 Tom Tromey <tromey@redhat.com>
1270
1271 * dwarf2read.c (fixup_go_packaging): Save package name
1272 on objfile obstack.
1273 * gdbtypes.c (init_type): Don't copy name.
1274
1275 2013-01-21 Tom Tromey <tromey@redhat.com>
1276
1277 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1278 const.
1279 (struct attribute) <u.str>: Now const.
1280 (struct fnfieldlist) <name>: Now const.
1281 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1282 (partial_die_parent_scope): Make return type const.
1283 (partial_die_full_name, add_partial_symbol): Update.
1284 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1285 'name' const.
1286 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1287 (read_file_scope, read_func_scope, dwarf2_add_field)
1288 (dwarf2_add_member_fn, read_structure_type)
1289 (process_enumeration_scope, read_array_type, read_module_type)
1290 (read_base_type, read_subrange_type): Update.
1291 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1292 (new_symbol_full, guess_full_die_structure_name): Update.
1293 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1294 (dwarf2_name): Return const type.
1295 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1296 const.
1297
1298 2013-01-21 Tom Tromey <tromey@redhat.com>
1299
1300 * gdbtypes.c (init_type): Make 'name' const.
1301 * gdbtypes.h (init_type): Update.
1302
1303 2013-01-21 Tom Tromey <tromey@redhat.com>
1304
1305 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1306 (start_symtab): Make 'name' and 'dirname' const. Use
1307 set_last_source_file.
1308 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1309 (last_source_file): Define. Now static.
1310 (set_last_source_file, get_last_source_file): New functions.
1311 * buildsym.h (last_source_file): Don't declare.
1312 (start_symtab): Update.
1313 (set_last_source_file, get_last_source_file): Declare.
1314 * coffread.c (complete_symtab): Use set_last_source_file.
1315 (coff_end_symtab): Likewise.
1316 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1317 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1318 set_last_source_file.
1319 (process_one_symbol): Use get_last_source_file.
1320 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1321 (psymtab_to_symtab_1): Use get_last_source_file.
1322 * xcoffread.c (process_linenos): Use get_last_source_file.
1323 (complete_symtab): Use set_last_source_file.
1324 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1325 (scan_xcoff_symtab): Use set_last_source_file.
1326
1327 2013-01-21 Tom Tromey <tromey@redhat.com>
1328
1329 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1330 (symbol_set_names): Remove casts. Handle field const-ness.
1331
1332 2013-01-21 Tom Tromey <tromey@redhat.com>
1333
1334 * dwarf2read.c (new_symbol_full): Remove cast.
1335 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1336 * symtab.h (symbol_set_demangled_name): Update.
1337
1338 2013-01-21 Tom Tromey <tromey@redhat.com>
1339
1340 * main.c (captured_main): Call bfd_init.
1341
1342 2013-01-21 Tom Tromey <tromey@redhat.com>
1343
1344 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1345 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1346 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1347 * NEWS: Update.
1348
1349 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1350
1351 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1352
1353 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1354
1355 Fix gdb.fortran/common-block.exp crash in PIE mode.
1356 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1357 LOC_COMMON_BLOCK.
1358 * f-valprint.c (info_common_command_for_block): Expect
1359 LOC_COMMON_BLOCK in gdb_assert.
1360 * symtab.h (struct general_symbol_info): Update comment for the
1361 common_block member.
1362 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1363 (enum address_class): New member LOC_COMMON_BLOCK.
1364
1365 2013-01-18 David Blaikie <dblaikie@gmail.com>
1366
1367 * MAINTAINERS (Write After Approval): Add "David Blaikie".
1368
1369 2013-01-18 Tom Tromey <tromey@redhat.com>
1370
1371 PR c++/14999:
1372 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
1373 Call require_rvalue.
1374
1375 2013-01-18 Yao Qi <yao@codesourcery.com>
1376
1377 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
1378 (dbx_read_symtab): New declaration.
1379 (dbx_psymtab_to_symtab): Delete.
1380 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
1381 Rename parameter PST to SELF. Exchanged two parameters.
1382 (start_psymtab): Caller update.
1383 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
1384 (dwarf2_read_symtab): New declaration.
1385 (dwarf2_psymtab_to_symtab): Delete.
1386 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
1387 Rename parameter PST to SELF. Exchanged two parameters.
1388 (create_partial_symtab): Caller update.
1389 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
1390 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
1391 Rename parameter PST to SELF. Exchanged two parameters.
1392 (parse_partial_symbols, new_psymtab): Caller update.
1393 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
1394 two parameters.
1395 * psymtab.c (psymtab_to_symtab): Caller update.
1396 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
1397 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
1398 Rename parameter PST to SELF. Exchanged two parameters.
1399 (xcoff_start_psymtab): Caller update.
1400
1401 2013-01-18 Yao Qi <yao@codesourcery.com>
1402
1403 * infrun.c (proceed): Rename local variable 'oneproc' to
1404 'force_step'.
1405
1406 2013-01-17 Doug Evans <dje@google.com>
1407
1408 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
1409 (dw2_build_type_unit_groups): Delete. All uses updated.
1410
1411 * symtab.h (struct symbol_search): Add comment.
1412
1413 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1414
1415 * symtab.c (compare_filenames_for_search): New comment for
1416 HAS_DRIVE_SPEC.
1417
1418 2013-01-17 Tom Tromey <tromey@redhat.com>
1419
1420 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
1421
1422 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1423
1424 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
1425 initialize it by existing make_cleanup. Call new do_cleanups.
1426
1427 2013-01-17 Tom Tromey <tromey@redhat.com>
1428
1429 * cp-abi.c (cp_abi_completer): New function.
1430 (_initialize_cp_abi): Set completer for "set cp-abi".
1431
1432 2013-01-17 Tom Tromey <tromey@redhat.com>
1433
1434 * mem-break.c: Remove obsolete comment.
1435 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
1436
1437 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1438
1439 * jit.c (jit_reader_load_command): Interpret the jit reader name
1440 as an absolute path if it begins with a forward slash.
1441
1442 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
1443
1444 PR gdb/14550
1445
1446 * jit.c (finalize_symtab): Ensure that only the global block has a
1447 NULL superblock.
1448
1449 2013-01-17 Pedro Alves <palves@redhat.com>
1450
1451 * acinclude.m4: Include ../config/plugins.m4,
1452 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
1453 * Makefile.in (aclocal_m4_deps): Update.
1454 * aclocal.m4: Renegerate.
1455
1456 2013-01-16 Doug Evans <dje@google.com>
1457
1458 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
1459
1460 2013-01-16 Pedro Alves <palves@redhat.com>
1461 Tom Tromey <tromey@redhat.com>
1462
1463 PR cli/7221:
1464 * NEWS: Add "catch signal".
1465 * breakpoint.c (base_breakpoint_ops): No longer static.
1466 (bpstat_explains_signal): New function.
1467 (init_catchpoint): No longer static.
1468 (base_breakpoint_explains_signal): New function.
1469 (base_breakpoint_ops): Initialize new field.
1470 * breakpoint.h (enum bpstat_signal_value): New.
1471 (struct breakpoint_ops) <explains_signal>: New field.
1472 (bpstat_explains_signal): Remove macro, declare as function.
1473 (base_breakpoint_ops, init_catchpoint): Declare.
1474 * break-catch-sig.c: New file.
1475 * inferior.h (signal_catch_update): Declare.
1476 * infrun.c (signal_catch): New global.
1477 (handle_syscall_event): Update for change to
1478 bpstat_explains_signal.
1479 (handle_inferior_event): Likewise. Always handle random signals
1480 via bpstats.
1481 (signal_cache_update): Check signal_catch.
1482 (signal_catch_update): New function.
1483 (_initialize_infrun): Initialize signal_catch.
1484 * Makefile.in (SFILES): Add break-catch-sig.c.
1485 (COMMON_OBS): Add break-catch-sig.o.
1486
1487 2013-01-16 Tom Tromey <tromey@redhat.com>
1488
1489 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
1490 (print_one_catch_solib, print_one_catch_syscall)
1491 (print_one_catch_exec, print_one_exception_catchpoint): Emit
1492 "catch-type".
1493
1494 2013-01-16 Yao Qi <yao@codesourcery.com>
1495
1496 * printcmd.c (current_display_number): Make it static.
1497
1498 2013-01-16 Yao Qi <yao@codesourcery.com>
1499
1500 * infcmd.c (step_once): Don't check '!single_inst' as it was
1501 checked before.
1502
1503 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1504
1505 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
1506
1507 2013-01-14 Tom Tromey <tromey@redhat.com>
1508
1509 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
1510 set command.
1511 * command.h (add_setshow_string_noescape_cmd): Update.
1512 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
1513 (complete_set_gnutarget): New function.
1514 (_initialize_core): Set the "set gnutarget" completer.
1515
1516 2013-01-14 Tom Tromey <tromey@redhat.com>
1517
1518 PR symtab/14442:
1519 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
1520 (c_type_print_modifier): Likewise.
1521 * dwarf2read.c (read_tag_restrict_type): New function.
1522 (read_type_die_1): Handle DW_TAG_restrict_type.
1523 * gdbtypes.c (make_restrict_type): New function.
1524 (recursive_dump_type): Handle TYPE_RESTRICT.
1525 * gdbtypes.h (enum type_flag_values): Renumber.
1526 (enum type_instance_flag_value): Add
1527 TYPE_INSTANCE_FLAG_RESTRICT.
1528 (TYPE_RESTRICT): New macro.
1529 (make_restrict_type): Declare.
1530
1531 2013-01-14 Tom Tromey <tromey@redhat.com>
1532
1533 PR symtab/14931:
1534 * psymtab.c (struct psymtab_state): New.
1535 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
1536 functions.
1537 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
1538 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
1539
1540 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
1541 Pedro Alves <palves@redhat.com>
1542
1543 PR remote/14786
1544
1545 * remote.c (remote_threads_info): Make a copy of the reply from
1546 qfThreadInfo and use that instead of rs->buf.
1547
1548 2013-01-14 Yao Qi <yao@codesourcery.com>
1549
1550 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
1551 (dbx_psymtab_to_symtab): Likewise.
1552 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
1553 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
1554 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
1555
1556 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1557
1558 * parse.c (parse_exp_in_context): New variable inner_chain. Call
1559 make_cleanup_restore_current_language. Call set_language. Move
1560 OLD_CHAIN and INNER_CHAIN cleanups.
1561 * utils.c (do_restore_current_language)
1562 (make_cleanup_restore_current_language): New functions.
1563 * utils.h (make_cleanup_restore_current_language): New declaration.
1564
1565 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1566
1567 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
1568 non-existing files.
1569
1570 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
1571 non-existing files if FILENAME is already absolute.
1572
1573 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1574
1575 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
1576 fputs_filtered. Append trailing newline.
1577
1578 2013-01-11 Yao Qi <yao@codesourcery.com>
1579 Stan Shebs <stan@codesourcery.com>
1580
1581 * psymtab.c (init_psymbol_list): Clarify the comment.
1582
1583 2013-01-11 Yao Qi <yao@codesourcery.com>
1584
1585 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
1586 (update_dprintf_command_list): Assert that 'printf_line' is
1587 non-null. Remove condition check.
1588
1589 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1590
1591 Code cleanup.
1592 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
1593 type const char *.
1594 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
1595 const char *.
1596 * tui/tui-source.h (tui_source_is_displayed): Likewise.
1597
1598 2013-01-09 Anthony Green <green@moxielogic.com>
1599
1600 * cp-abi.c (cplus_print_vtable): Don't return value from void
1601 function.
1602 * ada-lang.c (re_set_catch_assert): Ditto.
1603
1604 2013-01-09 Doug Evans <dje@google.com>
1605
1606 * symfile.h (quick_symbol_functions): Delete member
1607 pre_expand_symtabs_matching. All uses removed.
1608 * dwarf2read.c (dw2_lookup_symbol): Implement.
1609 (dw2_do_expand_symtabs_matching): Delete.
1610 (dw2_pre_expand_symtabs_matching): Delete.
1611 (struct dw2_symtab_iterator): New type.
1612 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
1613 (dw2_expand_symtabs_for_function): Rewrite.
1614 (dwarf2_gdb_index_functions): Update.
1615 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
1616 (psym_functions): Update.
1617
1618 2013-01-09 Tom Tromey <tromey@redhat.com>
1619
1620 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
1621 * configure: Rebuild.
1622 * configure.ac: Add somread.o to the build if BFD has SOM
1623 support.
1624 * somread.c: Include som/aout.h, not syms.h.
1625 (som_symtab_read): Use som_external_symbol_dictionary_record.
1626 Unpack records manually.
1627 (_initialize_somread): Declare.
1628
1629 2012-01-08 Mike Frysinger <vapier@gentoo.org>
1630
1631 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
1632 Cast return_address to 64bits.
1633
1634 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
1635
1636 * printcmd.c: Remove define of function output_command.
1637 * tracepoint.c: Remove extern of function output_command.
1638 * valprint.h: (output_command): New extern.
1639
1640 2013-01-07 Tom Tromey <tromey@redhat.com>
1641
1642 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
1643 Remove.
1644 (objc_language_defn): Use c_printchar, c_printstr,
1645 c_emit_char.
1646
1647 2013-01-07 Tom Tromey <tromey@redhat.com>
1648
1649 PR cli/7719:
1650 * NEWS: Update.
1651 * ada-valprint.c (printstr, print_field_values): Remove
1652 "inspect_it" code.
1653 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
1654 code.
1655 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
1656 code.
1657 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
1658 * main.c (captured_main): Remove "epoch" argument.
1659 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
1660 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
1661 * p-valprint.c (pascal_object_print_value_fields): Remove
1662 "inspect_it" code.
1663 * printcmd.c (print_command_1): Remove 'inspect' argument.
1664 (print_command, call_command): Update.
1665 (inspect_command): Remove.
1666 (_initialize_printcmd): Make "inspect" an alias for "print".
1667 * top.c (epoch_interface): Remove.
1668 * top.h (epoch_interface): Remove.
1669 * valprint.c (user_print_options): Update.
1670 (print_converted_chars_to_obstack): Remove "inspect_it" code.
1671 * valprint.h (struct value_print_options) <inspect_it>: Remove
1672 field.
1673
1674 2013-01-04 Tom Tromey <tromey@redhat.com>
1675
1676 * valprint.h (read_string): Add 'extern'.
1677
1678 2013-01-07 Joel Brobecker <brobecker@adacore.com>
1679
1680 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
1681 used to decide whether to define darwin_read_dyld_info or not.
1682
1683 2013-01-03 Pierre Muller <muller@sourceware.org>
1684
1685 * main.c (relocate_gdb_directory): Avoid calling stat function
1686 if DIR is empty.
1687
1688 2013-01-03 Yao Qi <yao@codesourcery.com>
1689
1690 * psymtab.c (fixup_psymbol_section): Update declaration.
1691 (fixup_psymbol_section): Remove code returning value.
1692
1693 2013-01-03 Yao Qi <yao@codesourcery.com>
1694
1695 * symtab.h: Remove some out of date comments.
1696 (enum exception_event_kind): Move it ...
1697 * breakpoint.c: ... here.
1698
1699 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
1700
1701 PR gdb/14405
1702 * darwin-nat.c (darwin_read_dyld_info): Only build if
1703 TASK_DYLD_INFO_COUNT is defined.
1704 (darwin_xfer_partial): Call darwin_read_dyld_info only if
1705 TASK_DYLD_INFO_COUNT is defined.
1706
1707 2013-01-02 Tom Tromey <tromey@redhat.com>
1708
1709 * symfile.h (struct ecoff_debug_hack): Remove.
1710 * objfiles.c: Don't include mdebugread.h.
1711
1712 2013-01-02 Tom Tromey <tromey@redhat.com>
1713
1714 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
1715 * configure.ac: Check for Mach-O support in BFD. Update
1716 CONFIG_OBS.
1717 * configure: Rebuild.
1718
1719 2013-01-02 Tom Tromey <tromey@redhat.com>
1720
1721 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
1722 * configure.ac: Use GDB_AC_CHECK_BFD.
1723 * configure: Rebuild.
1724
1725 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
1726
1727 * MAINTAINERS: Update my email.
1728
1729 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1730
1731 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
1732
1733 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1734
1735 * rs6000-nat.c (bss_data_overlap): New function.
1736 (vmap_symtab): Use it to adjust the .bss section's offset.
1737
1738 2013-01-01 Joel Brobecker <brobecker@adacore.com>
1739
1740 Update year range in copyright notice of all files.
1741
1742 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
1743
1744 * top.c (print_gdb_version): Update copyright year.
1745
1746 For older changes see ChangeLog-2012.
1747 \f
1748 Local Variables:
1749 mode: change-log
1750 left-margin: 8
1751 fill-column: 74
1752 version-control: never
1753 coding: utf-8
1754 End: